PageSourceSearch

https://www.vivanationtv.com/912.d5d09a49ccd06fdb.js

js vivanationtv.com collected 2026-10-07 19:29:52 UTC 105,461 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkhungama_music_web=self.webpackChunkhungama_music_web||[]).push([[912],{10912:(gt,I,c)=>{c.r(I),c.d(I,{UserProfileModule:()=>pt});var _=c(69808),v=c(56443),d=c(99056),E=c(35966),f=c(48968),p=c(38757),u=c(74538),e=c(29863),U=c(5070),M=c(4892),Z=c(41845),S=c(38194),k=c(52950),G=c(98839),x=c(63601),h=c(89854);function Y(o,l){if(1&o){const t=e.EpF();e.TgZ(0,"div",13)(1,"h3"),e._uU(2,"Hello, New User"),e.qZA(),e.TgZ(3,"h5"),e._uU(4,"Login to watch unlimited entertainment"),e.qZA(),e.TgZ(5,"div",14),e.NdJ("click",function(){return e.CHM(t),e.oxw().redirectToLogin("mobile")}),e.TgZ(6,"a",15),e._uU(7),e.ALo(8,"translate"),e.qZA()()()}2&o&&(e.xp6(7),e.Oqu(e.lcZ(8,1,"profile_str_40")))}function J(o,l){if(1&o){const t=e.EpF();e.TgZ(0,"div")(1,"div",16),e.NdJ("click",function(){return e.CHM(t),e.oxw().redirectToActivity()}),e.TgZ(2,"img",17),e.NdJ("error",function(){e.CHM(t);const n=e.oxw();return n.storageService.setDefaultImage(null==n.userDetails?null:n.userDetails.profileImage,"image")}),e.qZA(),e.TgZ(3,"div",18)(4,"p")(5,"span",19),e._uU(6),e.ALo(7,"translate"),e.qZA(),e._UZ(8,"br"),e.TgZ(9,"a",20),e._uU(10),e.ALo(11,"translate"),e.qZA()()(),e._UZ(12,"span",21),e.qZA(),e._UZ(13,"hr",22),e.TgZ(14,"div",23)(15,"a",24),e._UZ(16,"span",25),e._uU(17),e.ALo(18,"translate"),e.qZA(),e.TgZ(19,"p",26),e._uU(20),e.qZA()()()}if(2&o){const t=e.oxw();e.Gre("logged-in-plan-box ",(null==t.userDetails?null:t.userDetails.boxClass)||"free-plan-box",""),e.xp6(2),e.s9C("src",(null==t.userDetails?null:t.userDetails.profileImage)||(null==t.userDetails?null:t.userDetails.alternateProfileImage),e.LSH),e.s9C("alt",(null==t.userDetails?null:t.userDetails.profileImage)||(null==t.userDetails?null:t.userDetails.alternateProfileImage)),e.xp6(3),e.Akn("gold-plan-box"===(null==t.userDetails?null:t.userDetails.boxClass)?"font-weight: bold;":""),e.xp6(1),e.AsE(" ",e.lcZ(7,15,"profile_str_1"),", ",null!=t.userDetails&&t.userDetails.firstName&&null!=t.userDetails&&t.userDetails.lastName?(null==t.userDetails?null:t.userDetails.firstName)+(null==t.userDetails?null:t.userDetails.lastName):null==t.userDetails?null:t.userDetails.handleName," "),e.xp6(3),e.Gre("view-profile ",null!=t.userDetails&&t.userDetails.icon?"":"text-white",""),e.xp6(1),e.Oqu(e.lcZ(11,17,"profile_str_34")),e.xp6(7),e.hij(" ",e.lcZ(18,19,"popup_str_70")," "),e.xp6(3),e.Oqu(null==t.userDetails||null==t.userDetails.subscription?null:t.userDetails.subscription.user_membership_type)}}function R(o,l){if(1&o){const t=e.EpF();e.TgZ(0,"a")(1,"div",33),e.NdJ("click",function(){e.CHM(t);const n=e.oxw().$implicit;return e.oxw(2).optionSelected("Settings",n)}),e.TgZ(2,"div",34)(3,"h3"),e._uU(4),e.ALo(5,"translate"),e.qZA(),e.TgZ(6,"p"),e._uU(7),e.ALo(8,"translate"),e.qZA()(),e.TgZ(9,"div",35),e._UZ(10,"img",36),e.qZA()()()}if(2&o){const t=e.oxw().$implicit,i=e.oxw().$implicit;e.xp6(1),e.ekj("list-item-last",null==t?null:t.item_last),e.xp6(2),e.ekj("list-item-highlight",null==t?null:t.highlight),e.xp6(1),e.hij(" ",e.lcZ(5,7,null==t?null:t.title),""),e.xp6(3),e.Oqu(e.lcZ(8,9,null==t?null:t.subTitle)),e.xp6(3),e.s9C("src",null==i?null:i.image,e.LSH)}}function j(o,l){if(1&o&&(e.ynx(0),e.YNc(1,R,11,11,"a",12),e.BQk()),2&o){const t=l.$implicit;e.xp6(1),e.Q6J("ngIf",null==t?null:t.title)}}function V(o,l){if(1&o&&(e.ynx(0),e.TgZ(1,"div",27)(2,"div",28)(3,"div",29)(4,"h2",30),e._uU(5),e.ALo(6,"translate"),e.qZA()()(),e.TgZ(7,"div",31)(8,"div",32),e.YNc(9,j,2,1,"ng-container",10),e.qZA()()(),e.BQk()),2&o){const t=l.$implicit;e.xp6(5),e.hij(" ",e.lcZ(6,6,null==t?null:t.header)," "),e.xp6(2),e.ekj("inner-list-box-reset",null==t?null:t.settings)("pb-50per",null==t?null:t.general),e.xp6(2),e.Q6J("ngForOf",null==t?null:t.data)}}function H(o,l){if(1&o){const t=e.EpF();e.TgZ(0,"div",37)(1,"a",38),e.NdJ("click",function(){return e.CHM(t),e.oxw().buyHungamaGold()}),e._UZ(2,"span",25),e.TgZ(3,"span",39),e._uU(4),e.ALo(5,"translate"),e.qZA()()()}2&o&&(e.xp6(4),e.Oqu(e.lcZ(5,1,"general_setting_str_46")))}function Q(o,l){if(1&o){const t=e.EpF();e.TgZ(0,"div",37)(1,"p"),e._uU(2,"Unlock unlimited downloads"),e.qZA(),e.TgZ(3,"a",38),e.NdJ("click",function(){return e.CHM(t),e.oxw().buyHungamaGold()}),e._UZ(4,"span",25),e.TgZ(5,"span",39),e._uU(6),e.ALo(7,"translate"),e.qZA()()()}
12&o&&(e.xp6(6),e.Oqu(e.lcZ(7,1,"general_setting_str_47")))}function z(o,l){if(1&o){const t=e.EpF();e.ynx(0),e.TgZ(1,"div",40)(2,"div",41)(3,"div",42),e.NdJ("click",function(){return e.CHM(t),e.oxw().cancel()}),e._UZ(4,"div",43),e.qZA(),e.TgZ(5,"div",44)(6,"div",45),e._uU(7),e.ALo(8,"translate"),e.qZA(),e.TgZ(9,"p",46),e._uU(10),e.ALo(11,"translate"),e.qZA(),e.TgZ(12,"div",47)(13,"a",48),e.NdJ("click",function(){return e.CHM(t),e.oxw().cancel()}),e._uU(14),e.ALo(15,"translate"),e.qZA(),e.TgZ(16,"a",49),e.NdJ("click",function(){e.CHM(t);const n=e.oxw();return n.ssoStorageService.logout(),n.redirectToLogin("")}),e._uU(17),e.ALo(18,"translate"),e.qZA()()()()(),e.BQk()}2&o&&(e.xp6(7),e.Oqu(e.lcZ(8,4,"profile_str_33")),e.xp6(3),e.hij(" ",e.lcZ(11,6,"profile_str_109"),""),e.xp6(4),e.Oqu(e.lcZ(15,8,"download_str_3")),e.xp6(3),e.hij("",e.lcZ(18,10,"profile_str_33")," "))}function B(o,l){if(1&o){const t=e.EpF();e.ynx(0),e.TgZ(1,"div",50)(2,"div",41)(3,"div",42),e.NdJ("click",function(){return e.CHM(t),e.oxw().cancel()}),e._UZ(4,"div",43),e.qZA(),e.TgZ(5,"div",51)(6,"div",52),e._uU(7),e.ALo(8,"translate"),e.qZA(),e.TgZ(9,"p",53),e._uU(10),e.ALo(11,"translate"),e.qZA(),e.TgZ(12,"div",54)(13,"div",55),e._UZ(14,"img",56),e.TgZ(15,"div"),e._uU(16),e.ALo(17,"translate"),e.qZA()(),e.TgZ(18,"div",55),e._UZ(19,"img",56),e.TgZ(20,"div"),e._uU(21),e.ALo(22,"translate"),e.qZA()(),e.TgZ(23,"div",55),e._UZ(24,"img",56),e.TgZ(25,"div"),e._uU(26),e.ALo(27,"translate"),e.qZA()(),e.TgZ(28,"div",55),e._UZ(29,"img",56),e.TgZ(30,"div"),e._uU(31),e.ALo(32,"translate"),e.qZA()(),e.TgZ(33,"div",55),e._UZ(34,"img",56),e.TgZ(35,"div"),e._uU(36),e.ALo(37,"translate"),e.qZA()()(),e.TgZ(38,"div",47)(39,"a",48),e.NdJ("click",function(){return e.CHM(t),e.oxw().delete()}),e._uU(40),e.ALo(41,"translate"),e.qZA(),e.TgZ(42,"a",49),e.NdJ("click",function(){return e.CHM(t),e.oxw().cancel()}),e._uU(43),e.ALo(44,"translate"),e.qZA()()()()(),e.BQk()}2&o&&(e.xp6(7),e.hij(" ",e.lcZ(8,9,"popup_str_107")," "),e.xp6(3),e.Oqu(e.lcZ(11,11,"popup_str_92")),e.xp6(6),e.hij(" ",e.lcZ(17,13,"popup_str_93")," "),e.xp6(5),e.Oqu(e.l
1cZ(22,15,"popup_str_94")),e.xp6(5),e.hij(" ",e.lcZ(27,17,"popup_str_95")," "),e.xp6(5),e.Oqu(e.lcZ(32,19,"popup_str_96")),e.xp6(5),e.hij("",e.lcZ(37,21,"popup_str_97")," "),e.xp6(4),e.hij(" ",e.lcZ(41,23,"popup_str_5")," "),e.xp6(3),e.Oqu(e.lcZ(44,25,"download_str_3")))}let $=(()=>{class o{constructor(t,i,n,a,r,g,m,b){this.storageService=t,this.subscribePopupService=i,this.ssoStorageService=n,this.eventTrackingService=a,this.activatedRoute=r,this.userService=g,this.footerCatalogService=m,this.router=b,this.userSettingOptions=f.sE.getOptions(this.ssoStorageService),this.logOutClick=!1,this.deleteAccountPopup=!1,this.subscriptionType=d.AR,this.activeTab=E.m6.GENRAL_SETTING,this.breadcrumb=this.storageService.getBreadcrumb(),this.userDetails=this.ssoStorageService.getUserDetails(),null!==localStorage.getItem("DeviceType")||p.l.getDeviceType(),this.device_name=localStorage.getItem("DeviceType")}ngOnInit(){this.createLinkForCanonicalURL()}onback(){var t;this.router.navigate([null===(t=this.breadcrumb)||void 0===t?void 0:t.activePage]),this.storageService.setBreadcrumb(Object.assign(this.breadcrumb,{activeTab:"home"})),this.trackGoogleADsBackEvent()}optionSelected(t,i){if("Share App"!==i.name){if("Log out"===i.name)return p.l.bodyOverflowHidden(),this.trackGoogleADsClickEvent("logout"),void(this.logOutClick=!0);if("Login"!==i.name)if("Delete Account"!==i.name)if("Help & Support"!==i.name){if("Terms And Conditions"===i.name)return this.router.navigate([u.of.MAIN_ROUTING.CONDITIONS]),void this.trackTermAndConditionEvent();if("Privacy Policy"===i.name)return this.router.navigate([u.of.MAIN_ROUTING.PRIVACY_POLICY]),void this.trackTermAndConditionEvent();if("Settings"!==t);else{const n=p.l.removeUnwantedChar(i.name);this.router.navigateByUrl(u.of.MAIN_ROUTING.PROFILE_SETTING,{skipLocationChange:!0}).then(()=>this.router.navigate([u.of.MAIN_ROUTING.PROFILE_SETTING,n]))}}else this.router.navigate([u.of.MAIN_ROUTING.CONTACT_US]);else this.deleteAccount();else this.redirectToLogin("")}else p.l.sharepwa({url:"https://go.onelink.me/4LX1?pid=af_app_invites&af_referrer_customer_id=893878919&af_referrer_name=+&af_cost_value=50&af_referrer_uid=1654068904144-9186432980969121165&af_channel=&af_siteid=com.hungama.myplay.activity&af_cost_currency=coin",title:"Share app"})}redirectToLogin(t){this.trackGoogleADsClickEvent("login_with_mobile"),this.router.navigate("web"===this.device_name?["./auth"]:["mobile-auth"],{queryParams:{type:t}})}redirectToActivity(){this.router.navigate([u.of.MAIN_ROUTING.PROFILE_SETTING+"/"+u.of.MAIN_ROUTING.EDIT_PROFILE]),this.trackUserProfileClickEvent()}redirctToEarnCoin(){this.router.navigate([u.of.MAIN_ROUTING.PROFILE_SETTING+"/"+u.of.MAIN_ROUTING.EARN_COIN]),this.trackGoogleADsClickEvent("earn_coins"),this.trackCoinEarnClickEvent("coins_earn")}redirectToRedeem(){var t;this.router.navigate([u.of.MAIN_ROUTING.PROFILE_SETTING+"/"+u.of.MAIN_ROUTING.REDEEM_COIN,null===(t=this.userDetails)||void 0===t?void 0:t.user_id]),this.trackGoogleADsClickEvent("redeem_coins"),this.trackCoinEarnClickEvent("coins_redeem")}ngAfterViewInit(){f.CW.stickHeader(10)}redirectToLogout(){this.ssoStorageService.logout(),this.logOutClick=!this.logOutClick}deleteAccount(){p.l.bodyOverflowHidden(),this.deleteAccountPopup=!0}cancel(){p.l.bodyOverflowAuto(),this.deleteAccountPopup=!1,this.logOutClick=!1,this.router.navigate([u.of.MAIN_ROUTING.PROFILE_SETTING]),this.trackGoogleADsSelectEvents("close_clicked","")}delete(){var t;p.l.bodyOverflowAuto();const n={user_id:null===(t=this.userDetails)||void 0===t?void 0:t.user_id};this.userService.deleteAccount(n).subscribe(a=>{a&&"500"!=a.code?(this.deleteAccountPopup=!1,setTimeout(()=>{this.redirectToLogout(),this.router.navigateByUrl(u.of.MAIN_ROUTING.MOBILE_AUTH,{skipLocationChange:!0}).then(()=>this.router.navigate([u.of.MAIN_ROUTING.MOBILE_AUTH]))})):p.l.toastNotification("Delete Account",a.message,"TOP_RIGHT","DANGER")})}trackTermAndConditionEvent(){this.trackEvent("clicked TnC Continue",{action:!0},[d.F5.MIXPANEL])}trackGoogleADsBackEvent(){let t;t={event:this.breadcrumb.activeTab,action:"back",label:""},this.trackEvent(t,"",[d.F5.GOOGLE_AD_MANAGER,d.F5.GOOGLEANALYTICS])}trackGoogleADsSelectEvents(t,i){this.trackEvent({event:"Onboarding Popup",action:t,label:i},"",[d.F5.GOOGLE_AD_MANAGER,d.F5.GOOGLEANALYTICS])}trackUserProfileClickEvent(){this.trackEvent({event:"Top Navigation",action:"Profile",label:"user-profile"},"",[d.F5.GOOGLE_AD_MANAGER,d.F5.GOOGLEANALYTICS])}trackGoogleADsClickEvent(t){let i;i={event:"Profile Top",action:t,label:""},this.trackEvent(i,"",[d.F5.GOOGLE_AD_MANAGER,d.F5.GOOGLEANALYTICS])}trackCoinEarnClickEvent(t){let i;i={event:"Profile Top",action:t,label:"",Device:this.device_name},this.trackEvent(t,i,[d.F5.MIXPANEL])}trackEvent(t,i,n){this.eventTrackingService.trackEvent(t,i,n)}buyHungamaGold(){this.subscribePopup(this.userDetails)}subscribePopup(t=null){this.subscribePopupService.setPopup({notification:!1,isAutoClose:!0,message:"",type:"subscribe",title:"subscribe",callback:this.subscribePopupCallback.bind(this),data:{planPrice:0},extraCss:{"z-index":99999}})}subscribePopupCallback(t){var i;if(t&&t.action){const n=null===(i=this.userDetails)||void 0===i?void 0:i.user_id,a=window.location.href;this.openInNewTab(p.l.get_PaymentAuthURL("vivaplan",n,"subscription",a,"",this.userDetails))}}openInNewTab(t){window.open(t,"_system")}createLinkForCanonicalURL(){this.footerCatalogService.createLinkForCanonicalURL()}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(U.V),e.Y36(M.r),e.Y36(Z.T),e.Y36(S.f),e.Y36(v.gz),e.Y36(k.K),e.Y36(G.T),e.Y36(v.F0))},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-user-profile"]],decls:16,vars:8,consts:[["id","wrapper"],["id","content"],[1,"full-screen-wrapper","user-profile-pg"],[1,"go-back-box","mainwrp"],[1,"back-icon",3,"click"],["loading","lazy","src","https://pwa-un.hungama.com/images/back-icon.svg","alt","arrow"],[1,"title"],[1,"content-box","padding-side"],["class","non-logged-plan-box",4,"ngIf"],[3,"class",4,"ngIf"],[4,"ngFor","ngForOf"],["class","footer-action buy-hungama-gold-btnbox",4,"ngIf"],[4,"ngIf"],[1,"non-logged-plan-box"],[1,"button-box","justify-content-center",3,"click"],[1,"button-blue","full-width-btn"],[1,"inlne-flex",3,"click"],["loading","lazy",1,"user-icon",3,"src","alt","error"],[1,"profile-box"],[1,"user-name"],[1,"curs
1or-pointer",2,"font-weight","bold"],[1,"icon-left","login-ricon"],[1,"sep-1"],[1,"d-flex","justify-content-space-between"],[1,"free-btn","h-gold-btn","cursor-pointer"],[1,"icon-gold"],[1,"free-user"],[1,"hg-section-wrapper","hg-section-wrapper-reset"],[1,"hg_wrapper"],[1,"hg_header","pd-rt"],[1,"hg_headline","hg_headline-reset","pl18"],[1,"inner-list-box","inner-list-box-reset","profile-set-pg-sec","up-comp-sec"],[1,"mylab-contentbox"],[1,"list-item",3,"click"],[1,"list-item-content","w-auto"],[1,"list-item-right"],["alt","thumbnail",3,"src"],[1,"footer-action","buy-hungama-gold-btnbox"],[1,"button-gold","d-block","full-width-btn","vh-centeralign-flex",2,"z-index","9999",3,"click"],[1,"gold-btn-text"],["id","cdropdown",1,"cdropdown-popupbox"],[1,"cdropdown","logoutPopupHeight"],[1,"minimize-popup",2,"margin-top","5px",3,"click"],[1,"minimize-popup-border"],[1,"upi-popup-content",2,"margin-top","15px","padding-bottom","20px"],[1,"cmlang","mt-10"],[1,"cmlangsel"],[1,"d-flex","justify-content-center","mt-30","mb-30"],[1,"button-transparent","mr-5","w-100","cursor-pointer",3,"click"],[1,"button-blue","w-100","cursor-pointer",3,"click"],["id","cdropdown",1,"cdropdown-popupbox","delet-ac-popup"],[1,"upi-popup-content",2,"margin-top","15px"],[1,"cmlang1"],[1,"cmlangsel1","mt-10"],[1,"delete-confirmation-info","mt-10"],[1,"d-flex","list-info"],["width","5","height","5","loading","lazy","src","https://pwa-un.hungama.com/images/bullet.svg","alt","bullets",1,"mr-20"]],template:function(t,i){1&t&&(e.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"a",4),e.NdJ("click",function(){return i.onback()}),e._UZ(5,"img",5),e.qZA(),e.TgZ(6,"span",6),e._uU(7),e.qZA()(),e.TgZ(8,"div",7),e.YNc(9,Y,9,3,"div",8),e.YNc(10,J,21,21,"div",9),e.qZA(),e.YNc(11,V,10,8,"ng-container",10),e.qZA()()(),e.YNc(12,H,6,3,"div",11),e.YNc(13,Q,8,3,"div",11),e.YNc(14,z,19,12,"ng-container",12),e.YNc(15,B,45,27,"ng-container",12)),2&t&&(e.xp6(7),e.Oqu(i.userDetails&&"false"===(null==i.userDetails?null:i.userDetails.real_user)?"Account":null==i.userDetails?null:i.userDetails.handleName),e.xp6(2),e.Q6J("ngIf",i.userDetails&&"false"===(null==i.userDetails?null:i.userDetails.real_user)),e.xp6(1),e.Q6J("ngIf",i.userDetails&&"false"!==(null==i.userDetails?null:i.userDetails.real_user)),e.xp6(1),e.Q6J("ngForOf",i.userSettingOptions),e.xp6(1),e.Q6J("ngIf",(null==i.userDetails?null:i.userDetails.user_membership_type_id)==i.subscriptionType.ADS_FREE),e.xp6(1),e.Q6J("ngIf",(null==i.userDetails?null:i.userDetails.user_membership_type_id)==i.subscriptionType.FREE),e.xp6(1),e.Q6J("ngIf",i.logOutClick),e.xp6(1),e.Q6J("ngIf",i.deleteAccountPopup))},directives:[x.u,_.O5,_.sg],pipes:[h.X$],styles:['@import"https://pwa-un.hungama.com/css/set11-mobile.css";@import"https://pwa-un.hungama.com/css/set16.css";.music-playback-lang-value[_ngcontent-%COMP%]{width:50%!important}.music-playback-lang-value-radio[_ngcontent-%COMP%]{width:20%!important}.music-playback-setting[_ngcontent-%COMP%]   .list-item[_ngcontent-%COMP%]{margin-top:0!important}.non-logged-in-manage-sub[_ngcontent-%COMP%]{padding:35px 0;text-align:center}.nli-m-img[_ngcontent-%COMP%]{width:206px;margin-bottom:20px}.nli-m-txt[_ngcontent-%COMP%]{color:#c6c6c6;font-size:14px;line-height:22px}.nli-m-txt-1[_ngcontent-%COMP%]{margin:0 0 25px}.width-350[_ngcontent-%COMP%]{width:350px;height:42px;font-size:16px}.border-radius25[_ngcontent-%COMP%]{border-radius:22px}.hg-albm-ttl[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;max-width:31vh;display:block;white-space:nowrap;min-width:31vh}.parentaldesable[_ngcontent-%COMP%]{pointer-events:none;opacity:.4}.w-100[_ngcontent-%COMP%]{width:100%}.user-pic[_ngcontent-%COMP%]{border-radius:50%}.error-msg[_ngcontent-%COMP%]{font-size:14px;font-weight:500;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:normal;text-align:left;color:#e21e3e;margin-bottom:30px;margin-left:15px}.btn-block[_ngcontent-%COMP%]{width:100%;padding:0;display:flex;align-items:center;justify-content:center}.error-icon[_ngcontent-%COMP%]{width:20px;position:absolute;right:11px;margin:0;top:13px}.logoutPopupHeight[_ngcontent-%COMP%]{padding-bottom:11vw}.footer-action[_ngcontent-%COMP%]{backdrop-filter:blur(30px);-webkit-backdrop-filter:blur(30px);background-color:#00000094;width:100vw;padding:5vw;position:fixed;bottom:0px;text-align:center;z-index:9999999}.cdropdown[_ngcontent-%COMP%]{width:100%;height:334px;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;
1left:0px;bottom:0px;padding-bottom:11vm}.non-logged-plan-box[_ngcontent-%COMP%]{background:#5648FB}.non-logged-plan-box[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%], .non-logged-plan-box[_ngcontent-%COMP%]   h5[_ngcontent-%COMP%]{color:#fff}.free-btn[_ngcontent-%COMP%]{background:#00FF99;color:#090016}.gold-plan-box[_ngcontent-%COMP%], .view-profile[_ngcontent-%COMP%], .gold-plan-box[_ngcontent-%COMP%]   .login-ricon[_ngcontent-%COMP%]{color:#fff!important}@media only screen and (max-width: 400px){.login-inner-top-box[_ngcontent-%COMP%]   .btn-156[_ngcontent-%COMP%]{padding:10px!important;font-size:14px!important}}@media only screen and (max-width: 1023px){.delet-ac-popup[_ngcontent-%COMP%]   .cdropdown[_ngcontent-%COMP%]{height:auto!important}.up-comp-sec[_ngcontent-%COMP%]   .mylab-contentbox[_ngcontent-%COMP%]{width:100%!important}.cdropdown[_ngcontent-%COMP%]{top:61vh!important;bottom:unset!important}}']}),o})();var K=c(40520),L=c(15439),P=c(62920);function X(o,l){1&o&&e._UZ(0,"img",16)}function W(o,l){1&o&&e._UZ(0,"img",17)}function ee(o,l){if(1&o){const t=e.EpF();e.TgZ(0,"div",18)(1,"a",19),e.NdJ("click",function(){return e.CHM(t),e.oxw(2).subscribePopup("")}),e._UZ(2,"span",20),e._uU(3),e.ALo(4,"translate"),e.qZA()()}2&o&&(e.xp6(3),e.Oqu(e.lcZ(4,1,"Subscribe Now")))}function te(o,l){if(1&o&&(e.TgZ(0,"div",9)(1,"div",10)(2,"div",11),e.YNc(3,X,1,0,"img",12),e.YNc(4,W,1,0,"img",13),e.qZA()(),e.TgZ(5,"div",14)(6,"p"),e._uU(7),e.ALo(8,"translate"),e.qZA()(),e.YNc(9,ee,5,3,"div",15),e.qZA()),2&o){const t=e.oxw();e.xp6(3),e.Q6J("ngIf",!(null!=t.userDetails&&t.userDetails.isGold)),e.xp6(1),e.Q6J("ngIf",null==t.userDetails?null:t.userDetails.isGold),e.xp6(3),e.Oqu(e.lcZ(8,4,"general_setting_str_55")),e.xp6(2),e.Q6J("ngIf",!(null!=t.userDetails&&t.userDetails.isGold))}}function ie(o,l){1&o&&e._UZ(0,"img",33)}function ne(o,l){1&o&&e._UZ(0,"img",33)}function oe(o,l){1&o&&(e.TgZ(0,"div",34),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&o&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"general_setting_str_50"),""))}function ae(o,l){1&o&&(e.TgZ(0,"div",34),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&o&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"general_setting_str_51"),""))}function le(o,l){1&o&&(e.TgZ(0,"div",35),e._UZ(1,"div",36),e.qZA())}function re(o,l){if(1&o&&(e.TgZ(0,"div",35),e._UZ(1,"div",37),e.qZA()),2&o){const t=e.oxw(2);e.xp6(1),e.Udp("width",(null==t.manageSubscription?null:t.manageSubscription.days_remaining)/(null==t.manageSubscription?null:t.manageSubscription.total_days)*100,"%")}}function se(o,l){1&o&&(e.TgZ(0,"div",38),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&o&&(e.xp6(1),e.hij(" 0\xa0",e.lcZ(2,1,"general_setting_str_52")," "))}function ce(o,l){if(1&o&&(e.TgZ(0,"div",38),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&o){const t=e.oxw(2);e.xp6(1),e.AsE(" ",null==t.manageSubscription?null:t.manageSubscription.days_remaining,"\xa0",e.lcZ(2,2,"general_setting_str_52")," ")}}function ue(o,l){if(1&o){const t=e.EpF();e.TgZ(0,"div",9)(1,"div",21)(2,"div",11),e.YNc(3,ie,1,0,"img",22),e.YNc(4,ne,1,0,"img",23),e.YNc(5,oe,3,3,"div",24),e.YNc(6,ae,3,3,"div",24),e.qZA()(),e.YNc(7,le,2,0,"div",25),e.YNc(8,re,2,2,"div",25),e.YNc(9,se,3,3,"div",26),e.YNc(10,ce,3,4,"div",26),e.TgZ(11,"ul",27)(12,"li")(13,"h3",28),e._uU(14),e.ALo(15,"translate"),e.qZA(),e.TgZ(16,"div",29)(17,"span",30),e._uU(18),e.qZA()()(),e.TgZ(19,"li")(20,"h3",28),e._uU(21),e.ALo(22,"translate"),e.qZA(),e.TgZ(23,"div",29)(24,"h3",28),e._uU(25),e.qZA(),e._uU(26," \xa0 "),e.TgZ(27,"span",30),e._uU(28),e.qZA()()(),e.TgZ(29,"li")(30,"h3",28),e._uU(31),e.ALo(32,"translate"),e.qZA(),e.TgZ(33,"div",29)(34,"span",30),e._uU(35),e.ALo(36,"translate"),e.qZA()()(),e.TgZ(37,"li")(38,"h3",28),e._uU(39),e.ALo(40,"translate"),e.qZA(),e.TgZ(41,"div",29)(42,"span",30),e._uU(43),e.qZA()()()(),e.TgZ(44,"div",18)(45,"a",19),e.NdJ("click",function(){return e.CHM(t),e.oxw().subscribePopup("")}),e._UZ(46,"span",20),e._uU(47),e.ALo(48,"translate"),e.qZA()(),e.TgZ(49,"div",18)(50,"a",31),e.NdJ("click",function(){return e.CHM(t),e.oxw().cancelSubscription()}),e.TgZ(51,"span",32),e._uU(52),e.ALo(53,"translate"),e.qZA()()()()}if(2&o){const t=e.oxw();e.xp6(3),e.Q6J("ngIf",!(null!=t.manageSubscription&&t.manageSubscription.days_remaining)),e.xp6(1),e.Q6J("ngIf",null==t.manageSubscription?null:t.manageSubscription.days_remaining),e.xp6(1),e.Q6J("ngIf",!(null!=t.manageSubscription&&t.manageSubscription.days_remaining)),e.xp6(1),e.Q6J("ngIf",null==t.manageSubscription?null:t.manageSubscription.days_remaining),e.xp6(1),e.Q6J("ngIf",!(null!=t.manageSubscription&&t.manageSubscription.days_remaining)),e.xp6(1),e.Q6J("ngIf",null==t.manageSubscription?null:t.manageSubscription.days_remaining),e.xp6(1),e.Q6J("ngIf",!(null!=t.manageSubscription&&t.manageSubscription.days_remaining)),e.xp6(1),e.Q6J("ngIf",null==t.manageSubscription?null:t.manageSubscription.days_remaining),e.xp6(4),e.Oqu(e.l
1cZ(15,20,"subscription_plan")),e.xp6(4),e.Oqu("Gold User"==(null==t.userDetails?null:t.userDetails.user_membership_type)?"Viva Nation OTT":(null==t.userDetails?null:t.userDetails.user_membership_type)||"Free User"),e.xp6(3),e.Oqu(e.lcZ(22,22,"amount")),e.xp6(4),e.AsE("","INR"===(null==t.manageSubscription?null:t.manageSubscription.currency)?"\u20b9":null==t.manageSubscription?null:t.manageSubscription.currency," ",null!=t.manageSubscription&&t.manageSubscription.subscription_status?null==t.manageSubscription?null:t.manageSubscription.plan_price:"-",""),e.xp6(3),e.Oqu(null==t.manageSubscription?null:t.manageSubscription.plan_name),e.xp6(3),e.Oqu(e.lcZ(32,24,"general_setting_str_61")),e.xp6(4),e.Oqu(e.lcZ(36,26,null!=t.userDetails&&null!=t.userDetails.auto_renewal&&t.userDetails.auto_renewal.status?"general_setting_str_53":"general_setting_str_54")),e.xp6(4),e.Oqu(e.lcZ(40,28,"general_setting_str_62")),e.xp6(4),e.Oqu(null!=t.manageSubscription&&t.manageSubscription.subscription_status?t.dateToFormat:"-"),e.xp6(4),e.Oqu(e.lcZ(48,30,"Subscribe Now")),e.xp6(5),e.hij(" ",e.lcZ(53,32,"cancel_subscription"),"")}}function pe(o,l){1&o&&e._UZ(0,"img",33)}function ge(o,l){if(1&o){const t=e.EpF();e.TgZ(0,"div",18)(1,"a",41),e.NdJ("click",function(){return e.CHM(t),e.oxw(2).buyHungamaGold()}),e._UZ(2,"span",42),e.TgZ(3,"span",32),e._uU(4),e.ALo(5,"translate"),e.qZA()()()}if(2&o){const t=e.oxw(2);e.xp6(4),e.hij(" ",e.lcZ(5,1,null!=t.userDetails&&t.userDetails.user_membership_type?"general_setting_str_46":"Subscribe Now"),"")}}function de(o,l){if(1&o&&(e.ynx(0),e.TgZ(1,"div",9)(2,"div",10)(3,"div",11),e.YNc(4,pe,1,0,"img",22),e.qZA()(),e.TgZ(5,"div",14)(6,"p",39),e._uU(7," You can get a lot more out of it, Upgrade to Gold. "),e.qZA(),e.TgZ(8,"p",40),e._uU(9," get all features - No Ads, Unlimited downloads, High Quality Audio & Video. "),e.qZA()(),e.YNc(10,ge,6,3,"div",15),e.qZA(),e.BQk()),2&o){const t=e.oxw();e.xp6(4),e.Q6J("ngIf",!(null!=t.userDetails&&t.userDetails.isGold)),e.xp6(6),e.Q6J("ngIf",!(null!=t.userDetails&&t.userDetails.isGold))}}let _e=(()=>{class o{constructor(t,i,n,a,r){this.ssoStorageService=t,this.router=i,this.subscribePopupService=n,this._location=a,this.miscService=r,this.subscriptionType=d.AR}ngOnInit(){this.userDetails=this.ssoStorageService.getUserDetails(),this.userDetails&&this.userDetails.manageSubscription&&(this.manageSubscription=this.userDetails.manageSubscription,this.dateToFormat=L(this.manageSubscription.subscription_end_date).format("DD MMMM yyyy"))}back(){this._location.back()}buyHungamaGold(){this.subscribePopup(this.userDetails)}subscribePopup(t=null){this.subscribePopupService.setPopup({notification:!1,isAutoClose:!0,message:"",type:"subscribe",title:"subscribe",callback:this.subscribePopupCallback.bind(this),data:{planPrice:0},extraCss:{"z-index":99999}})}subscribePopupCallback(t){var i;if(t&&t.action){const n=null===(i=this.userDetails)||void 0===i?void 0:i.user_id,a=window.location.href,r=p.l.get_PaymentAuthURL("payment",n,"subscription",a,"",this.userDetails);r&&this.openInNewTab(r)}}openInNewTab(t){"https:"!==location.protocol&&location.replace(window.location.href.replace("http:","https:")),window.open(t,"_system")}cancelSubscription(){this.miscService.uunsubscription({country:"IN",product_id:1,platform_id:2,order_id:this.manageSubscription.order_id,identity:this.userDetails.user_id}).subscribe(i=>{i&&(p.l.toastNotification("My Subscription","Successfully Cancel Subscription from auto deduction"),this.getUserPackageDetail())})}getUserPackageDetail(){if(!this.userDetails||!this.userDetails.user_id)return;const t={headers:new K.WM({"API-KEY":d.ig})};this.miscService.postCheckSubscriptionStatus({identity:this.userDetails.user_id,product_id:1,device:"web",variant:"v1"},t).subscribe(n=>{var a;if(n&&n.data&&n.data){const r=p.l.getUserSubscriptionType(n.data.user);this.userDetails.manageSubscription=Object.keys(n.data.subscriptions||{}).length&&n.data.subscriptions||null,this.userDetails.subscription=p.l.getUserSubscriptionType(Object.assign({real_user:this.userDetails.real_user}
1,n.data.user)),this.userDetails.auto_renewal=Object.keys(n.data.auto_renewal||{}).length&&n.data.auto_renewal||null,this.userDetails.tvod=(null===(a=null==n?void 0:n.data)||void 0===a?void 0:a.tvod)||[],this.ssoStorageService.updateUserDetails(Object.assign(this.userDetails,r)),setTimeout(()=>{this.redirectToBack()},2e3)}})}redirectToBack(){this.router.navigate(["/user-setting"])}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(Z.T),e.Y36(v.F0),e.Y36(M.r),e.Y36(_.Ye),e.Y36(P.Y))},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-manage-subscription"]],decls:12,vars:6,consts:[["id","wrapper"],["id","content"],[1,"full-screen-wrapper"],[1,"go-back-box","mainwrp"],[1,"back-icon","cursor-pointer",3,"click"],["loading","lazy","src","https://pwa-un.hungama.com/images/back-icon.svg","alt","arrow"],[1,"title",2,"font-weight","bold"],["class","subscription-box",4,"ngIf"],[4,"ngIf"],[1,"subscription-box"],[1,"sub-status","padding-5","pb-0"],[1,"flow-root"],["loading","lazy","src","https://images1.hungama.com/Viva%20Nation/viva_nation_white-logo.png","class","hungama-logo fleft","alt","logo","loading","lazy",4,"ngIf"],["loading","lazy","src","https://images1.hungama.com/Viva%20Nation/viva_nation_white-logo.png","class","hungama-gold-logo fleft","alt","logo","loading","lazy",4,"ngIf"],[1,"content","padding-5"],["class","button-box",4,"ngIf"],["loading","lazy","src","https://images1.hungama.com/Viva%20Nation/viva_nation_white-logo.png","alt","logo","loading","lazy",1,"hungama-logo","fleft"],["loading","lazy","src","https://images1.hungama.com/Viva%20Nation/viva_nation_white-logo.png","alt","logo","loading","lazy",1,"hungama-gold-logo","fleft"],[1,"button-box"],[1,"button-gold","w-100","text-white","cursor-pointer",3,"click"],[1,"icon-gold","mr-8"],[1,"sub-status","padding-5"],["loading","lazy","src","https://images1.hungama.com/Viva%20Nation/viva_nation_white-logo.png","class","hungama-gold-logo fleft","alt","logo",4,"ngIf"],["loading","lazy","src","https://images1.hungama.com/Viva%20Nation/viva_nation_white-logo.png","alt","logo","class","hungama-gold-logo fleft",4,"ngIf"],["class","fright active-label",4,"ngIf"],["class","progressbar",4,"ngIf"],["class","progress-day-remaining",4,"ngIf"],[1,"subs-info"],[1,"fleft"],[1,"fright"],[1,"sub-title"],[1,"button-gold","cancel-btn","d-block","full-width-btn","vh-centeralign-flex",3,"click"],[1,"gold-btn-text"],["loading","lazy","src","https://images1.hungama.com/Viva%20Nation/viva_nation_white-logo.png","alt","logo",1,"hungama-gold-logo","fleft"],[1,"fright","active-label"],[1,"progressbar"],[1,"progressbar-status","progressbar-expired"],[1,"progressbar-status"],[1,"progress-day-remaining"],[1,"nli-m-txt"],[1,"nli-m-txt","nli-m-txt-1"],[1,"button-gold","d-block","full-width-btn","vh-centeralign-flex",3,"click"],[1,"icon-gold"]],template:function(t,i){1&t&&(e.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"a",4),e.NdJ("click",function(){return i.back()}),e._UZ(5,"img",5),e.qZA(),e.TgZ(6,"span",6),e._uU(7),e.ALo(8,"translate"),e.qZA()(),e.YNc(9,te,10,6,"div",7),e.YNc(10,ue,54,34,"div",7),e.YNc(11,de,11,2,"ng-container",8),e.qZA()()()),2&t&&(e.xp6(7),e.hij(" ",e.lcZ(8,4,"general_setting_str_16"),""),e.xp6(2),e.Q6J("ngIf",0==(null==i.userDetails?null:i.userDetails.isGold)||"freeuser-pop"==(null==i.userDetails?null:i.userDetails.class)),e.xp6(1),e.Q6J("ngIf","false"!==(null==i.userDetails?null:i.userDetails.real_user)&&1==(null==i.userDetails?null:i.userDetails.isGold)),e.xp6(1),e.Q6J("ngIf","ad-free-pop"==(null==i.userDetails?null:i.userDetails.class)))},directives:[x.u,_.O5],pipes:[h.X$],styles:['@import"https://pwa-un.hungama.com/css/set11-mobile.css";@import"https://pwa-un.hungama.com/css/set16.css";.text-white[_ngcontent-%COMP%]{color:#080014!important}.progressbar-status[_ngcontent-%COMP%]{background:#00FF99}.cancel-btn[_ngcontent-%COMP%]{background:#757575!important}.button-box[_ngcontent-%COMP%]{margin-top:0!important}']}),o})();var s=c(93075),F=c(48340),w=c(17489),N=c(41303),q=c(80193);function me(o,l){if(1&o){const t=e.EpF();e.TgZ(0,"app-three-dots",29),e.NdJ("optionDetails",function(n){return e.CHM(t),e.oxw().getThreeDotdata(n)}),e.qZA()}if(2&o){const t=e.oxw();e.Q6J("optionDetail",t.optionDetail)}}function he(o,l){if(1&o){const t=e.EpF();e.TgZ(0,"div",10)(1,"div",22)(2,"div",15)(3,"div",16)(4,"div",23)(5,"h3"),e._uU(6),e.ALo(7,"translate"),e.qZA(),e.TgZ(8,"p"),e._uU(9),e.ALo(10,"translate"),e.qZA()(),e.TgZ(11,"div",24)(12,"label",25)(13,"input",30),e.NdJ("change",function(){return e.CHM(t),e.oxw().onInputFieldChange()}),e.qZA(),e._UZ(14,"span",27),e.qZA()()()()()()}2&o&&(e.xp6(6),e.hij(" ",e.lcZ(7,2,"profile_str_69")," "),e.xp6(3),e.hij(" ",e.lcZ(10,4,"music_playback_str_1")," "))}function fe(o,l){if(1&o){const t=e.EpF();e.TgZ(0,"div",10)(1,"div",11)(2,"div",12)(3,"h2",13),e._uU(4),e.ALo(5,"translate"),e.qZA()()(),e.TgZ(6,"div",14),e.NdJ("click",function(){return e.CHM(t),e.oxw().onboardingApiCall()}),e.TgZ(7,"div",15)(8,"div",16)(9,"div",17)(10,"h3"),e._uU(11),e.ALo(12,"translate"),e.qZA()(),e.TgZ(13,"div",18)(14,"span",19),e._uU(15),e.qZA(),e._uU(16,"\xa0\xa0"),e._UZ(17,"img",20),e.qZA()()()()()}if(2&o){const t=e.oxw();e.xp6(4),e.hij(" ",e.lcZ(5,3,"menu_str_7")," "),e.xp6(7),e.hij(" ",e.lcZ(12,5,"profile_str_67")," "),e.xp6(4),e.Oqu(t.musicPlaybackSettingsForm.get("music_language_preference_title").value)}}function ve(o,l){if(1&o){const t=e.EpF();e.TgZ(0,"div",21)(1,"div",22)(2,"div",15)(3,"div",16)(4,"div",23)(5,"h3"),e._uU(6),e.ALo(7,"translate"),e.qZA(),e.TgZ(8,"p"),e._uU(9),e.ALo(10,"translate"),e.qZA()(),e.TgZ(11,"div",24)(12,"label",25)(13,"input",31),e.NdJ("change",function(){return e.CHM(t),e.oxw().onInputFieldChange()}),e.qZA(),e._UZ(14,"span",27),e.qZA()()()()()()}2&o&&(e.xp6(6),e.hij("",e.lcZ(7,2,"general_setting_str_6"),"\xa0"),e.xp6(3),e.hij(" ",e.lcZ(10,4,"profile_str_74")," "))}function be(o,l){if(1&o){const t=e.EpF();e.TgZ(0,"div",21)(1,"div",32)(2,"div",15)(3,"div",16)(4,"div",23)(5,"h3"),e._uU(6),e.ALo(7,"translate"),e.qZA()(),e.TgZ(8,"div",24)(9,"label",25)(10,"input",33),e.NdJ("change",function(){return e.CHM(t),e.oxw().onInputFieldChange()}),e.qZA(),e._UZ(11,"span",27),e.qZA()()()()()()}2&o&&(e.xp6(6),e.hij(" ",e.lcZ(7,1,"profile_str_77")," "))}const xe=function(o){return[o]};let Ze=(()=>{class o{constructor(t,i,n,a,r,g,m,b){var A,y,T,C;this.miscService=t,this.storageService=i,this.router=n,this.fb=a,this.userService=r,this.ssoStorageService=g,this.notificationPopupService=m,this.translate=b,this.optionDetail={isOptionShow:!1,newTitle:this.instant("Streaming Quality"),type:F.jG.GLOBAL,data:{},itemList:[]},this.streamingQualityEnum={auto:"Auto(Recommended)",high:"High",mid:"Medium",hd:"HD",dolby:"Dolby",low:"Low"},this.appLanguageList=[],this.isMusicStreaming=!0,this.appLanguageList=null===(C=null===(T=null===(y=null===(A=this.miscService.getAppLangInSession())||void 0===A?void 0:A.data)||void 0===y?void 0:y.body)||void 0===T?void 0:T.rows[0])||void 0===C?void 0:C.items,this.isMusicStreaming="false"!=this.storageService.getMusicStreamingStatus()}ngOnInit(){this.initMusicPlaybackSettingForm(),this.getMusicPlaybackSettings()}instant(t){return this.translate.instant(t)}initMusicPlaybackSettingForm(){this.musicPlaybackSettingsForm=this.fb.group({type:[f.Fh.MUSIC_PLAYBACK,s.kI.required],autoPlay:[!1,s.kI.required],streaming_quality:["Auto (Recommended)"],music_language_preference:["en,hi",s.kI.required],music_language_preference_title:["English, Hindi"],equalizer
1:["equalizer"],sleep_timer:[!1,s.kI.required],show_lyrics:[!0],gapless:[!0,s.kI.required],crossfade:[0],smooth_song_transition:[!0,s.kI.required]})}onInputFieldChange(){this.postMusicPlaybackSetting()}getMusicPlaybackSettings(){const t=this.ssoStorageService.getUserDetails();!t||!t.user_id||this.userService.getGeneralSetting(t.user_id,f.Fh.MUSIC_PLAYBACK).subscribe(i=>{if(i&&i.data){const n=((i.data.data||[]).find(a=>a.type===f.Fh.MUSIC_PLAYBACK)||{}).preference[0];this.overrideMusicLangPatch(n),-1==Object.values(this.streamingQualityEnum).indexOf(n.streaming_quality)&&(n.streaming_quality="Auto (Recommended)"),this.musicPlaybackSettingsForm.patchValue(n,{emitEvent:!1})}"No data found"==i.message&&this.postMusicPlaybackSetting()})}overrideMusicLangPatch(t){const i=(0,w.cloneDeep)(t.music_language_preference||"").split(","),n=t.music_language_preference_title?(0,w.cloneDeep)(t.music_language_preference_title||"").split(","):[],a=(this.storageService.getOnBoardingPopUpData("MUSIC")||"").split(","),r=this.appLanguageList.filter(g=>a.indexOf(g.code)>-1).map(g=>g.title);t.music_language_preference=(0,w.uniq)([...i,...a||[]]).join(),t.music_language_preference_title=(0,w.uniq)([...n,...r||[]]).join()}postMusicPlaybackSetting(){const t=this.musicPlaybackSettingsForm.getRawValue();localStorage.setItem("AutoPlay",t.autoPlay);const i={type:f.Fh.MUSIC_PLAYBACK,preference:[t]},a=this.ssoStorageService.getUserDetails().user_id;!a||this.userService.postMusicPlaybackSetting(i,a).subscribe(r=>{})}back(){this.router.navigate([u.of.MAIN_ROUTING.PROFILE_SETTING])}streamQuality(){this.optionDetail=p.l.music_Quality(this.translate),this.optionDetail.newTitle=this.instant("Streaming Quality"),this.optionDetail.itemList.forEach(t=>{t.name===this.musicPlaybackSettingsForm.get("streaming_quality").value&&(t.icon="icon-tick")})}getThreeDotdata(t){var i,n,a;"HD"!=(null===(i=null==t?void 0:t.selectedTab)||void 0===i?void 0:i.title)&&"Dolby"!=(null===(n=null==t?void 0:t.selectedTab)||void 0===n?void 0:n.title)||(null===(a=null==t?void 0:t.data)||void 0===a?void 0:a.userId)==d.AR.GOLD?(this.optionDetail.itemList.forEach(r=>{r.icon=""}),this.optionDetail=t||{},this.optionDetail.selectedTab.icon="icon-tick",this.musicPlaybackSettingsForm.get("streaming_quality").setValue(this.optionDetail.selectedTab.title),this.onInputFieldChange()):this.buyHungamaGold()}buyHungamaGold(){const t=this.ssoStorageService.getUserDetails();if(!t||!(null==t?void 0:t.user_id)||"false"==(null==t?void 0:t.real_user))return void this.router.navigate([u.of.MAIN_ROUTING.AUTH]);const n=window.location.href,a=p.l.get_PaymentAuthURL("vivaplan",null==t?void 0:t.user_id,"subscription",n,"",t);window.location=a}onboardingApiCall(){this.miscService.getOnboardingPopUp("musiclang").subscribe(t=>{var i,n;if(t&&(null===(i=null==t?void 0:t.data)||void 0===i?void 0:i.body)){const a=null===(n=null==t?void 0:t.data)||void 0===n?void 0:n.body,r=null==a?void 0:a.rows[0].items,{title:g,subTitle:m}=this.makeOnboardingContent(a);this.languagePopup(g,m,r)}})}makeOnboardingContent(t){return{title:this.getTransliteration(null==t?void 0:t.transliteration,"headding"),subTitle:this.getTransliteration(null==t?void 0:t.transliteration,"subheadding")}}getTransliteration(t,i){const n=this.storageService.getUserLanguage()||"en";return t[i][n]}languagePopup(t,i,n){const a=this.ssoStorageService.getUserDetails();this.setUserSelectedLangInPopup(n),p.l.bodyOverflowHidden(),this.notificationPopupService.setOptions({itemList:n,title:t,subTitle:i,searchInput:!1,type:"musiclang",callback:this.getUserSelectedLang.bind(this),className:"langpopup",buttons:[{title:"Ask later",className:"button-transparent d-block",divName:"askme-later-btn-box",type:"button",id:0},{title:"Save",className:(null==a?void 0:a.isGold)?"button-blue btn-gold-bg d-block":"button-blue d-block",divName:"save-btn-box",type:"submit",id:1}]})}setUserSelectedLangInPopup(t){const i=this.musicPlaybackSettingsForm.get("music_language_preference").value;i&&"string"==typeof i&&i.split(",")&&(i.split(",")||[]).forEach(n=>{const a=(t||[]).find(r=>r.code==n);a&&(a.checked=!0)})}getUserSelectedLang(t){if(p.l.bodyOverflowAuto(),t&&t.action){const i=(t.selected||[]).map(n=>n.title)||[];this.musicPlaybackSettingsForm.get("music_language_preference").setValue(this.storageService.getOnBoardingPopUpData("MUSIC"),{emitEvent:!1}),this.musicPlaybackSettingsForm.get("music_language_preference_title").setValue(i.toString())}}ngAfterViewInit(){f.CW.stickHeader(1)}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(P.Y),e.Y36(U.V),e.Y36(v.F0),e.Y36(s.qu),e.Y36(k.K),e.Y36(Z.T),e.Y36(N.n),e.Y36(h.sK))},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-music-playback"]],decls:46,vars:21,consts:[[3,"formGroup"],["id","wrapper"],["id","content"],[1,"full-screen-wrapper","music-playback-setting"],[3,"optionDetail","optionDetail
1s",4,"ngIf"],[1,"go-back-box","mainwrp"],[1,"back-icon",3,"click"],["loading","lazy","src","https://pwa-un.hungama.com/images/back-icon.svg","alt","arrow"],[1,"title"],["class","hg-section-wrapper hg-section-wrapper-reset",4,"ngIf"],[1,"hg-section-wrapper","hg-section-wrapper-reset"],[1,"hg_wrapper"],[1,"hg_header","pd-rt"],[1,"setting-title","hg_headline-reset"],[1,"inner-list-box","inner-list-box-reset","up-comp-sec",3,"click"],[1,"mylab-contentbox"],[1,"list-item","list-item-last"],[1,"list-item-content","w-auto","music-playback-lang-title"],[1,"list-item-right","music-playback-lang-value"],[1,"list-language"],["loading","lazy","src","https://pwa-un.hungama.com/images/icon_back_white.svg","alt","arrow"],[1,"hg-section-wrapper","hg-section-wrapper-reset","mt-21"],[1,"inner-list-box","inner-list-box-reset","up-comp-sec"],[1,"list-item-content","w-auto"],[1,"list-item-right","music-playback-lang-value-radio"],[1,"switch"],["type","checkbox","formControlName","sleep_timer",3,"change"],[1,"slider","round"],["class","hg-section-wrapper hg-section-wrapper-reset mt-21",4,"ngIf"],[3,"optionDetail","optionDetails"],["type","checkbox","formControlName","autoPlay",3,"change"],["type","checkbox","formControlName","show_lyrics",3,"change"],[1,"inner-list-box","inner-list-box-reset","pb-50per","up-comp-sec"],["type","checkbox","formControlName","smooth_song_transition",3,"change"]],template:function(t,i){1&t&&(e.TgZ(0,"form",0)(1,"div",1)(2,"div",2)(3,"div",3),e.YNc(4,me,1,1,"app-three-dots",4),e.TgZ(5,"div",5)(6,"a",6),e.NdJ("click",function(){return i.back()}),e._UZ(7,"img",7),e.qZA(),e.TgZ(8,"span",8),e._uU(9),e.ALo(10,"translate"),e.qZA()(),e.YNc(11,he,15,6,"div",9),e.TgZ(12,"div",10)(13,"div",11)(14,"div",12)(15,"h2",13),e._uU(16),e.ALo(17,"translate"),e.qZA()()(),e.TgZ(18,"div",14),e.NdJ("click",function(){return i.streamQuality()}),e.TgZ(19,"div",15)(20,"div",16)(21,"div",17)(22,"h3"),e._uU(23),e.ALo(24,"translate"),e.qZA()(),e.TgZ(25,"div",18)(26,"span",19),e._uU(27),e.qZA(),e._uU(28,"\xa0\xa0 "),e._UZ(29,"img",20),e.qZA()()()()(),e.YNc(30,fe,18,7,"div",9),e.TgZ(31,"div",21)(32,"div",22)(33,"div",15)(34,"div",16)(35,"div",23)(36,"h3"),e._uU(37),e.ALo(38,"translate"),e.qZA()(),e.TgZ(39,"div",24)(40,"label",25)(41,"input",26),e.NdJ("change",function(){return i.onInputFieldChange()}),e.qZA(),e._UZ(42,"span",27),e.qZA()()()()()(),e.YNc(43,ve,15,6,"div",28),e._UZ(44,"div",21),e.YNc(45,be,12,3,"div",28),e.qZA()()()()),2&t&&(e.Q6J("formGroup",i.musicPlaybackSettingsForm),e.xp6(4),e.Q6J("ngIf",i.optionDetail&&i.optionDetail.isOptionShow),e.xp6(5),e.Oqu(e.l
1cZ(10,11,"general_setting_str_4")),e.xp6(2),e.Q6J("ngIf",i.isMusicStreaming),e.xp6(5),e.hij(" ",e.lcZ(17,13,"profile_str_71")," "),e.xp6(7),e.hij(" ",e.lcZ(24,15,"general_setting_str_17"),""),e.xp6(4),e.Oqu(e.VKq(19,xe,i.musicPlaybackSettingsForm.get("streaming_quality").value)),e.xp6(3),e.Q6J("ngIf",i.isMusicStreaming),e.xp6(7),e.hij(" ",e.lcZ(38,17,"menu_str_29")," "),e.xp6(6),e.Q6J("ngIf",i.isMusicStreaming),e.xp6(2),e.Q6J("ngIf",i.isMusicStreaming))},directives:[s._Y,s.JL,s.sg,_.O5,q.w,x.u,s.Wl,s.JJ,s.u],pipes:[h.X$],styles:['@import"https://pwa-un.hungama.com/css/set11-mobile.css";@import"https://pwa-un.hungama.com/css/set16.css";@media only screen and (max-width: 1023px){input[_ngcontent-%COMP%]:checked + .slider[_ngcontent-%COMP%]:before{transform:translate(0);top:3px}.up-comp-sec[_ngcontent-%COMP%]   .mylab-contentbox[_ngcontent-%COMP%]{width:100%!important;min-height:auto!important}.list-item[_ngcontent-%COMP%]{padding:3.5vw 0px!important;margin:0!important}}']}),o})();function Ae(o,l){if(1&o){const t=e.EpF();e.TgZ(0,"app-three-dots",26),e.NdJ("optionDetails",function(n){return e.CHM(t),e.oxw().getThreeDotdata(n)}),e.qZA()}if(2&o){const t=e.oxw();e.Q6J("optionDetail",t.optionDetail)}}let Te=(()=>{class o{constructor(t,i,n,a,r,g,m,b,A,y){var T,C,D,O;this.router=t,this.fb=i,this.userService=n,this.ssoStorageService=a,this.eventTrackingService=r,this.miscService=g,this.storageService=m,this.notificationPopupService=b,this.translate=A,this._location=y,this.optionDetail={isOptionShow:!1,newTitle:this.instant("Streaming Quality"),type:F.jG.GLOBAL,data:{},itemList:[]},this.appLanguageList=[],this.streamingQualityEnum={auto:"Auto(Recommended)",high:"High",mid:"Medium",hd:"HD",dolby:"Dolby",low:"Low",mv:"MV"},this.appLanguageList=null===(O=null===(D=null===(C=null===(T=this.miscService.getAppLangInSession())||void 0===T?void 0:T.data)||void 0===C?void 0:C.body)||void 0===D?void 0:D.rows[0])||void 0===O?void 0:O.items,null!==localStorage.getItem("DeviceType")||p.l.getDeviceType(),this.device_name=localStorage.getItem("DeviceType")}ngOnInit(){this.initVideoPlaybackSettingForm(),this.getVideoPlaybackSettings()}instant(t){return this.translate.instant(t)}initVideoPlaybackSettingForm(){this.videoPlaybackSettingsForm=this.fb.group({type:[f.Fh.VIDEO_PLAYBACK,s.kI.required],autoPlay:[!0,s.kI.required],streaming_quality:["Auto (Recommended)"],video_language_preference:["en,hi"],video_language_preference_title:["English, Hindi"]}),this.videoPlaybackSettingsForm.valueChanges.subscribe(()=>this.postVideoPlaybackSetting())}getVideoPlaybackSettings(){const t=this.ssoStorageService.getUserDetails();!t||!t.user_id||this.userService.getGeneralSetting(t.user_id,f.Fh.VIDEO_PLAYBACK).subscribe(i=>{if(i&&i.data){const n=((i.data.data||[]).find(a=>a.type===f.Fh.VIDEO_PLAYBACK)||{}).preference[0];this.overrideVideoLangPatch(n),-1==Object.values(this.streamingQualityEnum).indexOf(n.streaming_quality)&&(n.streaming_quality="Auto (Recommended)"),this.videoPlaybackSettingsForm.patchValue(n,{emitEvent:!1})}"No data found"==i.message&&this.postVideoPlaybackSetting()})}overrideVideoLangPatch(t){const i=(0,w.cloneDeep)(t.video_language_preference||"").split(","),n=t.video_language_preference_title?(0,w.cloneDeep)(t.video_language_preference_title||"").split(","):[],a=(this.storageService.getOnBoardingPopUpData("VIDEO")||"").split(","),r=this.appLanguageList.filter(g=>a.indexOf(g.code)>-1).map(g=>g.title);t.video_language_preference=(0,w.uniq)([...i,...a||[]]).join(),t.video_language_preference_title=(0,w.uniq)([...n,...r||[]]).join()}postVideoPlaybackSetting(){const t=this.videoPlaybackSettingsForm.getRawValue();localStorage.setItem("videoAutoPlay",t.autoPlay);const i={type:f.Fh.VIDEO_PLAYBACK,preference:[t]},a=this.ssoStorageService.getUserDetails().user_id;!a||this.userService.postVideoPlaybackSettings(i,a).subscribe(r=>{})}back(){this._location.back()}streamQuality(){this.optionDetail=p.l.videomQulaity("",this.translate),this.optionDetail.newTitle=this.instant("Streaming Quality"),this.optionDetail.itemList.forEach(t=>{t.name===this.videoPlaybackSettingsForm.get("streaming_quality").value&&(t.icon="icon-tick")})}getThreeDotdata(t){var i,n,a,r;"HD"!=(null===(i=null==t?void 0:t.selectedTab)||void 0===i?void 0:i.title)&&"Dolby"!=(null===(n=null==t?void 0:t.selectedTab)||void 0===n?void 0:n.title)||(null===(a=null==t?void 0:t.data)||void 0===a?void 0:a.userId)==d.AR.GOLD?(this.optionDetail.itemList.forEach(g=>{g.icon=""}),this.optionDetail=t||{},this.optionDetail.selectedTab.icon="icon-tick",this.videoPlaybackSettingsForm.get("streaming_quality").setValue(null===(r=null==t?void 0:t.selectedTab)||void 0===r?void 0:r.title)):this.buyHungamaGold()}buyHungamaGold(){const t=this.ssoStorageService.getUserDetails();if(!t||!(null==t?void 0:t.user_id)||"false"==(null==t?void 0:t.real_user))return void this.router.navigate([u.of.MAIN_ROUTING.AUTH]);const n=window.location.href,a=p.l.get_PaymentAuthURL("vivaplan",null==t?void 0:t.user_id,"subscription",n,"",t);this.openInNewTab(a)}openInNewTab(t){window.location=t}onboardingApiCall(){this.miscService.getOnboardingPopUp("videolang").subscribe(t=>{var i,n;if(t&&(null===(i=null==t?void 0:t.data)||void 0===i?void 0:i.body)){const a=null===(n=null==t?void 0:t.data)||void 0===n?void 0:n.body,r=null==a?void 0:a.rows[0].items,{title:g,subTitle:m}=this.makeOnboardingContent(a);this.languagePopup(g,m,r)}})}makeOnboardingContent(t){return{title:this.getTransliteration(null==t?void 0:t.transliteration,"headding"),subTitle:this.getTransliteration(null==t?void 0:t.transliteration,"subheadding")}}getTransliteration(t,i){const n=this.storageService.getUserLanguage()||"en";return t[i][n]}languagePopup(t,i,n){const a=this.ssoStorageService.getUserDetails();this.setUserSelectedLangInPopup(n),p.l.bodyOverflowHidden(),this.notificationPopupService.setOptions({itemList:n,title:t,subTitle:i,searchInput:!1,type:"videolang",callback:this.getUserSelectedLang.bind(this),className:"langpopup",buttons:[{title:"Ask later",className:"button-transparent d-block",divName:"askme-later-btn-box",type:"button",id:0},{title:"Save",className:(null==a?void 0:a.isGold)?"button-blue btn-gold-bg d-block":"button-blue d-block",divName:"save-btn-box",type:"submit",id:1}]})}setUserSelectedLangInPopup(t){const i=this.videoPlaybackSettingsForm.get("video_language_preference").value;
1i&&"string"==typeof i&&i.split(",")&&(i.split(",")||[]).forEach(n=>{const a=(t||[]).find(r=>r.code==n);a&&(a.checked=!0)})}getUserSelectedLang(t){if(p.l.bodyOverflowAuto(),t&&t.action){const i=(t.selected||[]).map(n=>n.title)||[];this.videoPlaybackSettingsForm.get("video_language_preference").setValue(this.storageService.getOnBoardingPopUpData("VIDEO"),{emitEvent:!1}),this.videoPlaybackSettingsForm.get("video_language_preference_title").setValue(i.toString()),this.movieLanguageTrackEvent(t)}}movieLanguageTrackEvent(t){const n={language_chosen:(t&&t.selected||[]).map(a=>a.title),source:"USER SETTING"};this.trackEvent("movies_language_selected",n,[d.F5.MOENGAGE,d.F5.AMPLITUDE])}trackEvent(t,i,n){this.eventTrackingService.trackEvent(t,i,n)}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(v.F0),e.Y36(s.qu),e.Y36(k.K),e.Y36(Z.T),e.Y36(S.f),e.Y36(P.Y),e.Y36(U.V),e.Y36(N.n),e.Y36(h.sK),e.Y36(_.Ye))},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-video-playback"]],decls:63,vars:25,consts:[[3,"formGroup"],["id","wrapper"],["id","content"],[1,"full-screen-wrapper"],[3,"optionDetail","optionDetails",4,"ngIf"],[1,"go-back-box","mainwrp"],[1,"back-icon",3,"click"],["loading","lazy","src","https://pwa-un.hungama.com/images/back-icon.svg","alt","arrow"],[1,"title"],[1,"hg-section-wrapper","hg-section-wrapper-reset"],[1,"inner-list-box","inner-list-box-reset","up-comp-sec"],[1,"mylab-contentbox"],[1,"list-item","list-item-last"],[1,"list-item-content","w-auto"],[1,"list-item-right","music-playback-lang-value-radio"],[1,"switch"],["type","checkbox","formControlName","autoPlay"],[1,"slider","round"],[1,"hg_wrapper"],[1,"hg_header","pd-rt"],[1,"setting-title","hg_headline-reset"],[1,"inner-list-box","inner-list-box-reset","up-comp-sec",3,"click"],[1,"list-item-content","w-auto","music-playback-lang-title"],[1,"list-item-right","music-playback-lang-value"],[1,"list-language"],["loading","lazy","src","https://pwa-un.hungama.com/images/icon_back_white.svg","alt","arrow"],[3,"optionDetail","optionDetails"]],template:function(t,i){1&t&&(e.TgZ(0,"form",0)(1,"div",1)(2,"div",2)(3,"div",3),e.YNc(4,Ae,1,1,"app-three-dots",4),e.TgZ(5,"div",5)(6,"a",6),e.NdJ("click",function(){return i.back()}),e._UZ(7,"img",7),e.qZA(),e.TgZ(8,"span",8),e._uU(9),e.ALo(10,"translate"),e.qZA()(),e.TgZ(11,"div",9)(12,"div",10)(13,"div",11)(14,"div",12)(15,"div",13)(16,"h3"),e._uU(17),e.ALo(18,"translate"),e.qZA(),e.TgZ(19,"p"),e._uU(20),e.ALo(21,"translate"),e.qZA()(),e.TgZ(22,"div",14)(23,"label",15),e._UZ(24,"input",16)(25,"span",17),e.qZA()()()()()(),e.TgZ(26,"div",9)(27,"div",18)(28,"div",19)(29,"h2",20),e._uU(30),e.ALo(31,"translate"),e.qZA()()(),e.TgZ(32,"div",21),e.NdJ("click",function(){return i.streamQuality()}),e.TgZ(33,"div",11)(34,"a")(35,"div",12)(36,"div",22)(37,"h3"),e._uU(38),e.ALo(39,"translate"),e.qZA()(),e.TgZ(40,"div",23)(41,"span",24),e._uU(42),e.qZA(),e._uU(43,"\xa0\xa0"),e._UZ(44,"img",25),e.qZA()()()()()(),e.TgZ(45,"div",9)(46,"div",18)(47,"div",19)(48,"h2",20),e._uU(49),e.ALo(50,"translate"),e.qZA()()(),e.TgZ(51,"div",21),e.NdJ("click",function(){return i.onboardingApiCall()}),e.TgZ(52,"div",11)(53,"div",12)(54,"div",22)(55,"h3"),e._uU(56),e.ALo(57,"translate"),e.qZA()(),e.TgZ(58,"div",23)(59,"span",24),e._uU(60),e.qZA(),e._uU(61,"\xa0\xa0"),e._UZ(62,"img",25),e.qZA()()()()()()()()()),2&t&&(e.Q6J("formGroup",i.videoPlaybackSettingsForm),e.xp6(4),e.Q6J("ngIf",i.optionDetail&&i.optionDetail.isOptionShow),e.xp6(5),e.Oqu(e.l
1cZ(10,11,"general_setting_str_5")),e.xp6(8),e.hij(" ",e.lcZ(18,13,"profile_str_69")," \xa0"),e.xp6(3),e.hij(" ",e.lcZ(21,15,"profile_str_79")," "),e.xp6(10),e.hij(" ",e.lcZ(31,17,"video_player_str_15")," "),e.xp6(8),e.hij(" ",e.lcZ(39,19,"general_setting_str_17")," "),e.xp6(4),e.Oqu(i.videoPlaybackSettingsForm.get("streaming_quality").value),e.xp6(7),e.hij(" ",e.lcZ(50,21,"menu_str_7")," "),e.xp6(7),e.hij(" ",e.lcZ(57,23,"profile_str_113")," "),e.xp6(4),e.Oqu(i.videoPlaybackSettingsForm.get("video_language_preference_title").value))},directives:[s._Y,s.JL,s.sg,_.O5,q.w,x.u,s.Wl,s.JJ,s.u],pipes:[h.X$],styles:['@import"https://pwa-un.hungama.com/css/set11-mobile.css";@import"https://pwa-un.hungama.com/css/set16.css";@media only screen and (max-width: 1023px){input[_ngcontent-%COMP%]:checked + .slider[_ngcontent-%COMP%]:before{transform:translate(0);top:3px}.up-comp-sec[_ngcontent-%COMP%]   .mylab-contentbox[_ngcontent-%COMP%]{width:100%!important;min-height:auto!important}.list-item[_ngcontent-%COMP%]{padding:3.5vw 0px!important;margin:0!important}}']}),o})();var we=c(98850);function ke(o,l){if(1&o){const t=e.EpF();e.TgZ(0,"a",29),e.NdJ("click",function(){return e.CHM(t),e.oxw(2).redirectToEditProfile()}),e._UZ(1,"img",30),e._uU(2),e.ALo(3,"translate"),e.qZA()}if(2&o){const t=e.oxw(2);e.ekj("btn-gold-bg",null==t.userData?null:t.userData.isGold),e.xp6(2),e.hij(" ",e.lcZ(3,3,"profile_str_20")," ")}}function ye(o,l){if(1&o){const t=e.EpF();e.TgZ(0,"a",31),e.NdJ("click",function(){e.CHM(t);const n=e.oxw(2);return n.followUnfollow(null==n.userData?null:n.userData.uId,n.userData.follow=!n.userData.follow)}),e._UZ(1,"i"),e._uU(2),e.ALo(3,"translate"),e.qZA()}if(2&o){const t=e.oxw(2);e.xp6(1),e.Gre("icon-",null!=t.userData&&t.userData.follow?"invite":"tick"," button-icon"),e.xp6(1),e.hij(" ",e.lcZ(3,4,null!=t.userData&&t.userData.follow?"artist_str_3":"profile_str_5")," ")}}function Ce(o,l){if(1&o&&e._UZ(0,"img",32),2&o){const t=e.oxw(2);e.s9C("src",(null==t.userDetails?null:t.userDetails.profileImage)||(null==t.userDetails?null:t.userDetails.alternateProfileImage),e.LSH),e.s9C("alt",(null==t.userDetails?null:t.userDetails.profileImage)||(null==t.userDetails?null:t.userDetails.alternateProfileImage))}}function Ue(o,l){if(1&o){const t=e.EpF();e.TgZ(0,"li",23),e.NdJ("click",function(){e.CHM(t);const n=e.oxw(2);return n.redirectToUserPlaylist(null==n.userDetails?null:n.userDetails.uId)}),e.TgZ(1,"span",24),e._uU(2),e.qZA(),e._uU(3),e.ALo(4,"translate"),e.qZA()}if(2&o){const t=e.oxw(2);e.xp6(2),e.hij("",null==t.playListDetails?null:t.playListDetails.count," "),e.xp6(1),e.Oqu(e.lcZ(4,2,"profile_str_4"))}}function Se(o,l){if(1&o){const t=e.EpF();e.TgZ(0,"a",33),e.NdJ("click",function(){return e.CHM(t),e.oxw(2).redirectToEditProfile()}),e._UZ(1,"img",30),e._uU(2),e.ALo(3,"translate"),e.qZA()}if(2&o){const t=e.oxw(2);e.ekj("btn-gold-bg",null==t.userData?null:t.userData.isGold),e.xp6(2),e.hij(" ",e.lcZ(3,3,"profile_str_20")," ")}}function Pe(o,l){if(1&o){const t=e.EpF();e.TgZ(0,"a",31),e.NdJ("click",function(){e.CHM(t);const n=e.oxw(2);return n.followUnfollow(null==n.userData?null:n.userData.uId,n.userData.follow=!n.userData.follow)}),e._UZ(1,"i"),e._uU(2),e.ALo(3,"translate"),e.qZA()}if(2&o){const t=e.oxw(2);e.xp6(1),e.Gre("icon-",null!=t.userData&&t.userData.follow?"invite":"tick"," button-icon"),e.xp6(1),e.hij(" ",e.lcZ(3,4,null!=t.userData&&t.userData.follow?"artist_str_3":"profile_str_5")," ")}}function De(o,l){1&o&&e._UZ(0,"img",51)}function Ne(o,l){if(1&o){const t=e.EpF();e.TgZ(0,"img",52),e.NdJ("error",function(){e.CHM(t);const n=e.oxw().$implicit;return e.oxw(3).storageService.setDefaultImage(null==n?null:n.data,"image")}),e.qZA()}if(2&o){const t=e.oxw().$implicit;e.s9C("alt",null==t||null==t.data?null:t.data.title),e.uIk("src",null==t||null==t.data?null:t.data.image,e.LSH)}}function Oe(o,l){if(1&o){const t=e.EpF();e.TgZ(0,"div",43),e.NdJ("click",function(){const a=e.CHM(t).$implicit;return e.oxw(3).onClickBucket(a)}),e.TgZ(1,"div",44)(2,"div",45),e.YNc(3,De,1,0,"img",46),e.YNc(4,Ne,1,2,"img",47),e.qZA(),e.TgZ(5,"div",48)(6,"h3",49),e._uU(7),e.qZA(),e.TgZ(8,"p")(9,"a",50),e._uU(10),e.ALo(11,"translate"),e.qZA(),e.TgZ(12,"a",50),e._uU(13),e.ALo(14,"translate"),e.qZA()()()()()}if(2&o){const t=l.$implicit;e.xp6(3),e.Q6J("ngIf",!(null!=t&&null!=t.data&&t.data.image)),e.xp6(1),e.Q6J("ngIf",null==t||null==t.data?null:t.data.image),e.xp6(3),e.Oqu(null==t||null==t.data?null:t.data.title),e.xp6(3),e.hij(" ",e.lcZ(11,6,null!=t&&t.public?"profile_str_28":"profile_str_29")," "),e.xp6(3),e.AsE(" ",null==t||null==t.data||null==t.data.misc?null:t.data.misc.fav_count," ",e.lcZ(14,8,"profile_str_30"),"")}}function Ie(o,l){if(1&o&&(e.TgZ(0,"div",34)(1,"div",35)(2,"div",36)(3,"div",37)(4,"h2",38)(5,"a",39),e._uU(6),e.ALo(7,"translate"),e.qZA(),e._UZ(8,"a",40),e.qZA()(),e.TgZ(9,"div",41),e.YNc(10,Oe,15,10,"div",42),e.qZA()()()()),2&o){const t=e.oxw(2);
1e.xp6(6),e.Oqu(e.lcZ(7,2,"profile_str_15")),e.xp6(4),e.Q6J("ngForOf",t.playListDetails.data)}}function Me(o,l){if(1&o){const t=e.EpF();e.ynx(0),e.TgZ(1,"div",4)(2,"div",5)(3,"a",6),e.NdJ("click",function(){return e.CHM(t),e.oxw().back()}),e._UZ(4,"span",7),e.qZA(),e.TgZ(5,"span",8)(6,"div",9),e.YNc(7,ke,4,5,"a",10),e.YNc(8,ye,4,6,"a",11),e._uU(9," \xa0\xa0\xa0\xa0\xa0 "),e.TgZ(10,"a",12),e.NdJ("click",function(){return e.CHM(t),e.oxw().onClickShare()}),e._UZ(11,"img",13),e._uU(12),e.ALo(13,"translate"),e.qZA()()()()(),e.TgZ(14,"div",14),e.YNc(15,Ce,1,2,"img",15),e.TgZ(16,"form",16)(17,"div",17)(18,"span",18),e.NdJ("click",function(){return e.CHM(t),e.MAs(21).focus()}),e._UZ(19,"img",19),e.TgZ(20,"input",20,21),e.NdJ("keyup",function(){return e.CHM(t),e.oxw().updateProfileForm()}),e.qZA()()()(),e.TgZ(22,"ul"),e.YNc(23,Ue,5,4,"li",22),e.TgZ(24,"li",23),e.NdJ("click",function(){e.CHM(t);const n=e.oxw();return n.redirectToUserFollower(null==n.userDetails?null:n.userDetails.uId)}),e.TgZ(25,"span",24),e._uU(26),e.qZA(),e._uU(27),e.ALo(28,"translate"),e.qZA(),e.TgZ(29,"li",23),e.NdJ("click",function(){e.CHM(t);const n=e.oxw();return n.redirectToUserFollowing(null==n.userDetails?null:n.userDetails.uId)}),e.TgZ(30,"span",24),e._uU(31),e.qZA(),e._uU(32),e.ALo(33,"translate"),e.qZA()(),e.TgZ(34,"div",9),e.YNc(35,Se,4,5,"a",25),e.YNc(36,Pe,4,6,"a",11),e._uU(37," \xa0\xa0\xa0\xa0\xa0 "),e.TgZ(38,"a",12),e.NdJ("click",function(){return e.CHM(t),e.oxw().onClickShare()}),e._UZ(39,"img",26),e._uU(40),e.ALo(41,"translate"),e.qZA()(),e._UZ(42,"hr",27),e.qZA(),e.YNc(43,Ie,11,4,"div",28),e.BQk()}if(2&o){const t=e.oxw();e.xp6(7),e.Q6J("ngIf",t.userData.user_id===t.userId),e.xp6(1),e.Q6J("ngIf",(null==t.userData?null:t.userData.user_id)!==t.userId),e.xp6(4),e.hij(" ",e.lcZ(13,16,"movie_str_2")," "),e.xp6(3),e.Q6J("ngIf",(null==t.userDetails?null:t.userDetails.profileImage)||(null==t.userDetails?null:t.userDetails.alternateProfileImage)),e.xp6(1),e.Q6J("formGroup",t.editProfileForm),e.xp6(7),e.Q6J("ngIf",t.isMusicStreaming),e.xp6(2),e.Udp("cursor",null!=t.userDetails&&t.userDetails.followerCount?"":"auto"),e.xp6(1),e.Oqu(null==t.userDetails?null:t.userDetails.followerCount),e.xp6(1),e.hij(" ",e.lcZ(28,18,"profile_str_3"),""),e.xp6(4),e.Oqu(null==t.userDetails?null:t.userDetails.followingCount),e.xp6(1),e.hij(" ",e.lcZ(33,20,"profile_str_5")," "),e.xp6(3),e.Q6J("ngIf",t.userData.user_id===t.userId),e.xp6(1),e.Q6J("ngIf",(null==t.userData?null:t.userData.user_id)!==t.userId),e.xp6(4),e.hij(" ",e.lcZ(41,22,"movie_str_2")," "),e.xp6(3),e.Q6J("ngIf",t.isMusicStreaming)}}function Le(o,l){if(1&o){const t=e.EpF();e.TgZ(0,"a",33),e.NdJ("click",function(){return e.CHM(t),e.oxw(2).redirectToEditProfile()}),e._UZ(1,"img",30),e._uU(2),e.ALo(3,"translate"),e.qZA()}if(2&o){const t=e.oxw(2);e.ekj("btn-gold-bg",null==t.userData?null:t.userData.isGold),e.xp6(2),e.hij(" ",e.lcZ(3,3,"profile_str_20"),"")}}function Fe(o,l){if(1&o){const t=e.EpF();e.TgZ(0,"a",31),e.NdJ("click",function(){e.CHM(t);const n=e.oxw(2);return n.followUnfollow(null==n.userData?null:n.userData.uId,n.userData.follow=!n.userData.follow)}),e._UZ(1,"i"),e._uU(2),e.ALo(3,"translate"),e.qZA()}if(2&o){const t=e.oxw(2);e.xp6(1),e.Gre("icon-",null!=t.userData&&t.userData.follow?"invite":"tick"," button-icon"),e.xp6(1),e.Oqu(e.lcZ(3,4,null!=t.userData&&t.userData.follow?"artist_str_3":"profile_str_5"))}}function qe(o,l){if(1&o){const t=e.EpF();e.ynx(0),e.TgZ(1,"div",53)(2,"div",54)(3,"a",55),e.NdJ("click",function(){return e.CHM(t),e.oxw().back()}),e._UZ(4,"img",56),e.qZA(),e.TgZ(5,"span",57),e._uU(6),e.qZA()(),e.TgZ(7,"div",14),e._UZ(8,"img",58),e.TgZ(9,"div",17)(10,"span",59),e._uU(11),e.qZA()(),e.TgZ(12,"ul")(13,"li"),e._uU(14),e.ALo(15,"translate"),e.qZA(),e.TgZ(16,"li"),e._uU(17),e.ALo(18,"translate"),e.qZA(),e.TgZ(19,"li"),e._uU(20),e.ALo(21,"translate"),e.qZA()(),e.TgZ(22,"div",9),e.YNc(23,Le,4,5,"a",25),e.YNc(24,Fe,4,6,"a",11),e._uU(25," \xa0\xa0\xa0\xa0\xa0"),e.TgZ(26,"a",60),e._UZ(27,"img",13),e._uU(28),e.ALo(29,"translate"),e.qZA()(),e._UZ(30,"div",61)(31,"hr",62)(32,"img",63),e.TgZ(33,"p",64),e._uU(34),e.ALo(35,"translate"),e.qZA(),e.TgZ(36,"p",65),e._uU(37),e.ALo(38,"translate"),e.qZA(),e.TgZ(39,"span",66)(40,"a",67),e.NdJ("click",function(){return e.CHM(t),e.oxw().onExploreNow()}),e._uU(41),e.ALo(42,"translate"),e.qZA()()()(),e.BQk()}if(2&o){const t=e.oxw();e.xp6(6),e.Oqu(null!=t.userDetails&&t.userDetails.firstName&&null!=t.userDetails&&t.userDetails.lastName?(null==t.userDetails?null:t.userDetails.firstName)+(null==t.userDetails?null:t.userDetails.lastName):null==t.userDetails?null:t.userDetails.handleName),e.xp6(5),e.Oqu(null!=t.userDetails&&t.userDetails.firstName&&null!=t.userDetails&&t.userDetails.lastName?(null==t.userDetails?null:t.userDetails.firstName)+(null==t.userDetails?null:t.userDetails.lastName):null==t.userDetails?null:t.userDetails.handleName),e.xp6(3),e.hij("0 ",e.lcZ(15,13,"profile_str_4"),""),e.xp6(3),e.hij("0 ",e.lcZ(18,15,"profile_str_3"),""),e.xp6(3),e.hij("0 ",e.lcZ(21,17,"profile_str_5"),""),e.xp6(3),e.Q6J("ngIf",t.userData.user_id===t.userId),e.xp6(1),e.Q6J("ngIf",(null==t.userData?null:t.userData.user_id
1)!==t.userId),e.xp6(4),e.hij(" ",e.lcZ(29,19,"movie_str_2")," "),e.xp6(6),e.Oqu(e.lcZ(35,21,"profile_str_18")),e.xp6(3),e.hij(" ",e.lcZ(38,23,"user_activity_str_1")," "),e.xp6(3),e.ekj("btn-gold-bg",null==t.userData?null:t.userData.isGold),e.xp6(1),e.Oqu(e.lcZ(42,25,"profile_str_19"))}}let Ee=(()=>{class o{constructor(t,i,n,a,r,g,m,b,A,y){this.ssoStorageService=t,this.storageService=i,this.router=n,this.userService=a,this.fb=r,this.listenService=g,this.translate=m,this._location=b,this.activatedRoute=A,this.eventTrackingService=y,this.playListDetails=[],this.isMusicStreaming=!0;const T=this.storageService.getMusicStreamingStatus();this.isMusicStreaming="true"==T}ngOnInit(){this.userId=this.activatedRoute.snapshot.paramMap.get("contentId"),this.getUserActivity(),this.getPLaylistActivity(),this.userDetails=this.ssoStorageService.getUserDetails(),this.userDetails&&this.userDetails.user_id&&(this.initForm(),this.setFormvalue())}ngAfterViewInit(){f.CW.stickHeader(150)}initForm(){this.editProfileForm=this.fb.group({firstName:["",[s.kI.required]]})}setFormvalue(){if(this.editProfileForm.patchValue(this.userDetails),this.userDetails&&!this.userDetails.firstName){let t=this.userDetails.handleName?this.userDetails.handleName:this.userDetails.nickname?this.userDetails.nickname:this.userDetails.user_id?this.userDetails.user_id:"User";this.editProfileForm.get("firstName").setValue(t)}}removeUnwantedKey(t){const i={};return t&&(Object.keys(t).forEach(n=>{"null"!==t[n]&&""!==t[n]&&"undefined"!==t[n]&&null!=t[n]&&" "!==t[n]&&(i[n]=t[n])}),i)}updateProfileForm(){if(!this.userDetails||!this.userDetails.user_id&&!this.userDetails.uId)return;if(this.editProfileForm.invalid)return void this.editProfileForm.markAllAsTouched();const t=this.removeUnwantedKey(this.editProfileForm.getRawValue()),i=new FormData;for(var n in t)i.append(n,t[n]);this.editProfileForm.valid&&this.userService.updateProfile(i,this.userDetails.user_id).subscribe(a=>{a&&a.result&&200===a.statusCode&&this.ssoStorageService.updateUserDetails(a.result[0]||{})},a=>{p.l.toastNotification(`${this.translate.instant("user_str_5")}`,`${this.translate.instant("msg_profile_update_fail")}`)})}getUserActivity(){this.userData=this.ssoStorageService.getUserDetails(),this.userData&&this.userData.user_id&&(this.userId?this.userService.getUserDetail(this.userId).subscribe(t=>{t&&(this.userDetails=t.result[0])}):this.userService.getUserDetail(this.userData.user_id).subscribe(t=>{t&&(this.userDetails=t.result[0])}))}followUnfollow(t,i){this.userService.posttUserFollowUnfollow({followingId:this.userId,follow:i=!i},t).subscribe(a=>{})}onClickBucket(t){const i=p.l.getCurrentItemConfig(t,t.data.id,null);i&&p.l.navigateToRelatedView(this.router,i)}onClickShare(){var t;const i=(null===(t=this.userDetails)||void 0===t?void 0:t.shareableURL)||"https://www.hungama.com/user-profile",n="whatsapp://send?text="+i,a=navigator;/iPhone|iPad|iPod|Android/i.test(a.userAgent)&&(a.share?a.share({title:"INVITE on Viva Nation World",text:"New Songs, Download New MP3 Songs Online, New Hindi Songs, Latest Bollywood Songs, New Movies, Hindi Videos - Viva Nation",url:i}).then(()=>console.log("Share complete")):window.location=n)}getPLaylistActivity(){const t=this.ssoStorageService.getUserDetails();!t||!t.uId||(this.userId?this.listenService.getPlaylist(this.userId).subscribe(i=>{i&&(this.playListDetails=i)}):this.listenService.getPlaylist(t.uId).subscribe(i=>{i&&(this.playListDetails=i)}))}redirectToUserFollower(t){var i;!(null===(i=this.userDetails)||void 0===i?void 0:i.followerCount)||this.router.navigateByUrl(u.of.MAIN_ROUTING.PROFILE_SETTING,{skipLocationChange:!0}).then(()=>this.router.navigate([u.of.MAIN_ROUTING.PROFILE_SETTING,u.of.MAIN_ROUTING.USER_FOLLOWERS,t]))}redirectToUserFollowing(t){this.router.navigateByUrl(u.of.MAIN_ROUTING.PROFILE_SETTING,{skipLocationChange:!0}).then(()=>this.router.navigate([u.of.MAIN_ROUTING.PROFILE_SETTING,u.of.MAIN_ROUTING.USER_FOLLOWING,t]))}redirectToUserPlaylist(t){this.router.navigateByUrl(u.of.MAIN_ROUTING.PROFILE_SETTING,{skipLocationChange:!0}).then(()=>this.router.navigate([u.of.MAIN_ROUTING.PROFILE_SETTING,u.of.MAIN_ROUTING.USER_PLAYLIST,t]))}redirectToEditProfile(){this.router.navigateByUrl(u.of.MAIN_ROUTING.PROFILE_SETTING,{skipLocationChange:!0}).then(()=>this.router.navigate([u.of.MAIN_ROUTING.PROFILE_SETTING,u.of.MAIN_ROUTING.EDIT_PROFILE]))}onExploreNow(){this.router.navigate(["/"])}back(){this.router.navigate([u.of.MAIN_ROUTING.PROFILE_SETTING]),this.trackGoogleADsBackEvent()}trackGoogleADsBackEvent(){let t;t={event:u.of.MAIN_ROUTING.USER_SETTING,action:"back",label:""},this.trackEvent(t,"",[d.F5.GOOGLE_AD_MANAGER,d.F5.GOOGLEANALYTICS])}trackEvent(t,i,n){this.eventTrackingService.trackEvent(t,i,n)}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(Z.T),e.Y36(U.V),e.Y36(v.F0),e.Y36(k.K),e.Y36(s.qu),e.Y36(we.P),e.Y36(h.sK),e.Y36(_.Ye),e.Y36(v.gz),e.Y36(S.f))}
1,o.\u0275cmp=e.Xpm({type:o,selectors:[["app-user-activity"]],decls:5,vars:2,consts:[["id","wrapper"],["id","content"],[1,"full-screen-wrapper"],[4,"ngIf"],[1,"mainwrp"],[1,"header"],[1,"arwback",3,"click"],[1,"icon-Back"],[1,"header-button"],[1,"button-box","button-box-reset"],["class","button-blue btn-block btn-122","style","padding: 9px 10px;",3,"btn-gold-bg","click",4,"ngIf"],["class","button-blue cursor-pointer btn-122",3,"click",4,"ngIf"],[1,"button-transparent","btn-122",3,"click"],["src","https://pwa-un.hungama.com/images/share.svg","alt","share",1,"button-icon"],[1,"content-box","text-center","text-white","user-info-box"],["class","user-icon1",3,"src","alt",4,"ngIf"],[3,"formGroup"],[1,"text-center","user-info"],[1,"profile-title",3,"click"],["src","https://pwa-un.hungama.com/images/edit-user.svg","alt","user",1,"profile-edit-icon"],["type","text","formControlName","firstName",3,"keyup"],["fhandlename",""],[3,"click",4,"ngIf"],[3,"click"],[2,"color","white"],["class","button-blue btn-block btn-122",3,"btn-gold-bg","click",4,"ngIf"],["src","https://pwa-un.hungama.com/images/share.svg","alt","arrow",1,"button-icon"],[1,"sep-1","sep-1-margin","sep-1-margin-reset"],["id","Discover","class","hg-tabcontent",4,"ngIf"],[1,"button-blue","btn-block","btn-122",2,"padding","9px 10px",3,"click"],["src","https://pwa-un.hungama.com/images/edit-user.svg","alt","user",1,"button-icon"],[1,"button-blue","cursor-pointer","btn-122",3,"click"],[1,"user-icon1",3,"src","alt"],[1,"button-blue","btn-block","btn-122",3,"click"],["id","Discover",1,"hg-tabcontent"],[1,"hg-section-wrapper"],[1,"hg_wrapper","hg_wrapper-reset"],[1,"hg_header","library-box"],[1,"hg_headline"],[1,"prdct-title","cursor-pointer"],[1,"prdct-viewall","cursor-pointer"],[1,""],["class","innpage-container",3,"click",4,"ngFor","ngForOf"],[1,"innpage-container",3,"click"],[1,"mylab-row"],[1,"mylab-imgbox"],["class","mylab-poster-img","style","border-radius: 7px;","src","https://pwa-un.hungama.com/images/no-playlist-cover.svg","alt","default",4,"ngIf"],["class","hg_item_image","loading","lazy","style","border-radius: 7px;","class","mylab-poster-img",3,"alt","error",4,"ngIf"],[1,"mylab-contentbox"],[1,"mylab-contentbox-title","hg-albm-ttl"],[1,"cursor-pointer"],["src","https://pwa-un.hungama.com/images/no-playlist-cover.svg","alt","default",1,"mylab-poster-img",2,"border-radius","7px"],["loading","lazy",1,"mylab-poster-img",2,"border-radius","7px",3,"alt","error"],["id","Discover",1,"hg-tabcontent","user-profile-wrap"],[1,"go-back-box","mainwrp"],[1,"back-icon",3,"click"],["src","https://pwa-un.hungama.com/images/back-icon.svg","alt","arrow"],[1,"title"],["src","https://pwa-un.hungama.com/images/user-icon.svg",1,"user-icon1"],[1,"user-name"],[1,"button-transparent","cursor-pointer","btn-122"],[1,"mobile-div","user-mobile-border"],[1,"sep-1","sep-1-margin"],["src","https://pwa-un.hungama.com/images/cat.svg","alt","category",1,"cat-img"],[1,"user-name","mb-9",2,"text-align","center !important"],[1,"activity-info"],[1,"button-box","button-box-reset","justify-content-center"],[1,"button-blue","button-blue-add-on","btn-122",3,"click"]],template:function(t,i){1&t&&(e.TgZ(0,"div",0)(1,"div",1)(2,"div",2),e.YNc(3,Me,44,24,"ng-container",3),e.YNc(4,qe,43,27,"ng-container",3),e.qZA()()()),2&t&&(e.xp6(3),e.Q6J("ngIf",(null==i.playListDetails?null:i.playListDetails.count)>0),e.xp6(1),e.Q6J("ngIf",(null==i.playListDetails?null:i.playListDetails.count)<=0))},directives:[_.O5,x.u,s._Y,s.JL,s.sg,s.Fj,s.JJ,s.u,_.sg],pipes:[h.X$],styles:[".button-box-reset[_ngcontent-%COMP%]{margin-top:20px;padding:0 30px;justify-content:center;-webkit-justify-content:center;-moz-justify-content:center}.button-box[_ngcontent-%COMP%]{display:flex;margin-top:10px;justify-content:center;-webkit-justify-content:center;-moz-justify-content:center}.cat-img[_ngcontent-%COMP%]{width:180px;margin-bottom:20px}img[_ngcontent-%COMP%]{max-width:100%;height:auto}.user-info[_ngcontent-%COMP%]{display:block;width:100%;text-align:left;margin:0 auto}.user-info-box[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]{margin-top:9px}.mainwrp[_ngcontent-%COMP%]{font-size:16px;font-weight:500;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:normal;text-align:left;color:#fff;padding-top:4.5vw;position:relative}.user-info-box[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{list-style:none;display:inline;font-size:13px;font-weight:400;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:normal;text-align:left;color:#c6c6c6;padding:0 10px;position:relative}"]}),o})();var Ge=c(44227),Ye=c(63118);function Je(o,l){1&o&&(e.TgZ(0,"p",40),e._uU(1," Please enter your Name."),e.qZA())}function Re(o,l){if(1&o){const t=e.EpF();e.TgZ(0,"img",41),e.NdJ("click",function(){return e.CHM(t),e.oxw(),e.MAs(27).focus()}),e.qZA()}}function je(o,l){1&o&&e._UZ(0,"img",42)}function Ve(o,l){1&o&&(e.TgZ(0,"p",40),e._uU(1," User Name is required."),e.qZA())}function He(o,l){1&o&&(e.TgZ(0,"p",40),e._uU(1," Please Enter Valid E-mail Address "),e.qZA())}function Qe(o,l){1&o&&(e.TgZ(0,"p",40),e._uU(1," Mobile number is required."),e.qZA())}function ze(o,l){1&o&&(e.TgZ(0,"p",40),e._uU(1," Mobile number must be at least 10 characters."),e.qZA())}function Be(o,l){1&o&&e._UZ(0,"img",43)}let $e=(()=>{class o{constructor(t,i,n,a,r,g,m){this.router=t,this.fb=i,this.ssoStorageService=n,this.userService=a,this.loaderService=r,this.translate=g,this._location=m,this.isEdit=!0,new Date}ngOnInit(){this.loaderService.isLoading.subscribe(t=>{this.loading=t}),this.userDetails=this.ssoStorageService.getUserDetails(),this.userDetails&&this.userDetails.user_id&&(this.initForm(),this.setFormvalue(
1))}initForm(){this.editProfileForm=this.fb.group({file:[""],type:["profile"],handleName:["",s.kI.required],email:["",[s.kI.pattern("^[a-z0-9._%+-]+@[a-z0-9.-]+.[a-z]{2,4}$")]],phone:["",[s.kI.minLength(10)]],gender:["",s.kI.required],dob:[""],firstName:["",[s.kI.required]],lastName:[""]})}setFormvalue(){if(this.userDetails&&this.userDetails.phone&&this.userDetails.phone.length>10&&(this.userDetails.phone=this.userDetails.phone.replace(/91/,"")),this.userDetails&&this.userDetails.dob&&(this.userDetails.dob=this.convertDate(this.userDetails.dob)),this.userDetails.gender||(this.userDetails.gender="M"),this.editProfileForm.patchValue(this.userDetails),this.userDetails&&!this.userDetails.firstName){let t=this.userDetails.handleName?this.userDetails.handleName:this.userDetails.nickname?this.userDetails.nickname:this.userDetails.user_id?this.userDetails.user_id:"User";this.editProfileForm.get("firstName").setValue(t)}}errormsg(){this.isEdit=!this.editProfileForm.get("handleName").invalid}uploadUserPhoto(t){const i=document.getElementById("output");this.imageFile=t.target.files[0],t&&t.srcElement&&t.srcElement.value&&(i.src=URL.createObjectURL(this.imageFile),t.srcElement.value=null)}updateProfileForm(){if(!this.userDetails||!this.userDetails.user_id)return;if(this.editProfileForm.invalid)return void this.editProfileForm.markAllAsTouched();const t=this.removeUnwantedKey(this.editProfileForm.getRawValue()),i=new FormData;for(var n in this.imageFile&&(t.type="profile",t.file=this.imageFile),t)i.append(n,t[n]);this.editProfileForm.valid&&this.userService.updateProfile(i,this.userDetails.user_id).subscribe(a=>{if(a&&a.result&&200===a.statusCode){const r=a.result[0]||{};r&&r.dob&&(r.dob=this.convertDate(r.dob)),this.ssoStorageService.updateUserDetails(r),p.l.toastNotification(`${this.translate.instant("user_str_5")}`,`${this.translate.instant("Success")}`),setTimeout(()=>{this.redirectToBack()},2e3)}},a=>{p.l.toastNotification(`${this.translate.instant("user_str_5")}`,`${this.translate.instant("msg_profile_update_fail")}`)})}removeUnwantedKey(t){const i={};return t&&(Object.keys(t).forEach(n=>{"null"!==t[n]&&""!==t[n]&&"undefined"!==t[n]&&null!=t[n]&&" "!==t[n]&&(i[n]=t[n])}),i)}convertDate(t){return L(t,"MM-DD-YYYY",!0).isValid()||(t=p.l.parseDate(t,"MM-DD-YYYY")),t}redirectToBack(){this._location.back()}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(v.F0),e.Y36(s.qu),e.Y36(Z.T),e.Y36(k.K),e.Y36(Ge.D),e.Y36(h.sK),e.Y36(_.Ye))},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-edit-profile"]],decls:78,vars:55,consts:[["id","wrapper"],["id","content"],[1,"full-screen-wrapper","full-screen-wrapper-pb","profile-edit-wrap"],[1,"go-back-box","mainwrp"],[1,"back-icon",3,"click"],["src","https://pwa-un.hungama.com/images/back-icon.svg","alt","arrow"],[1,"title"],[1,"profile-content","padding-5"],[1,"profile-pic"],["id","output","loading","lazy","alt","thumbnail",1,"user-pic",3,"src"],[3,"formGroup"],[1,"text-center","pdtop-5"],[1,"profile-title",3,"click"],["loading","lazy","src","https://pwa-un.hungama.com/images/edit-user.svg","alt","user",1,"profile-edit-icon"],["type","text","formControlName","firstName"],["fhandlename",""],["class","error-msg",4,"ngIf"],[1,"profile-detail"],["for","fusername"],[1,"inputbox"],["type","text","id","fusername","name","fusername","autocomplete","off","formControlName","handleName",3,"placeholder","keyup"],["fusername",""],["loading","lazy","src","https://pwa-un.hungama.com/images/edit-user.svg","class","input-icon edit-profile-icon","alt","user",3,"click",4,"ngIf"],["loading","lazy","src","https://pwa-un.hungama.com/images/error-msg.svg","alt","thumbnail","class","error-icon edit-profile-icon",4,"ngIf"],["for","email"],["type","email","readonly","","id","email","name","email","autocomplete","off","formControlName","email",3,"placeholder"],["for","phone"],["type","text","readonly","","id","phone","autocomplete","off","name","phone","formControlName","phone","maxlength","10",3,"placeholder"],["for","gender"],["formControlName","gender"],["value","M",2,"color","black"],["value","F",2,"color","black"],["value","O",2,"color","black"],["for","dob"],["id","minDatePicker","readonly","",1,"inputbox"],["formControlName","dob","readonly","","id","minDatePicker","theme","dp-material",3,"mode","placeholder"],["minDatePicker",""],["src",".https://pwa-un.hungama.com/image/error-msg.svg","alt","thumbnail","class","input-icon-datepicker",4,"ngIf"],[1,"footer-action",2,"z-index","9999999!important"],[1,"button-blue","d-block",3,"click"],[1,"error-msg"],["loading","lazy","src","https://pwa-un.hungama.com/images/edit-user.svg","alt","user",1,"input-icon","edit-profile-icon",3,"click"],["loading","lazy","src","https://pwa-un.hungama.com/images/error-msg.svg","alt","thumbnail",1,"error-icon","edit-profile-icon"],["src",".https://pwa-un.hungama.com/image/error-msg.svg","alt","thumbnail",1,"input-icon-datepicker"]],template:function(t,i){if(1&t){const n=e.EpF();e.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"a",4),e.NdJ("click",function(){return i.redirectToBack()}),e._UZ(5,"img",5),e.qZA(),e.TgZ(6,"span",6),e._uU(7),e.ALo(8,"translate"),e.qZA()(),e.TgZ(9,"div",7)(10,"div",8),e._UZ(11,"img",9),e.qZA(),e.TgZ(12,"form",10)(13,"div",11)(14,"span",12),e.NdJ("click",function(){return e.CHM(n),e.MAs(17).focus()}),e._UZ(15,"img",13)(16,"input",14,15),e.qZA(),e.YNc(18,Je,2,0,"p",16),e.qZA(),e._UZ(19,"hr"),e.TgZ(20,"div",17)(21,"label",18),e._uU(22),e.ALo(23,"translate"),e.qZA(),e._UZ(24,"br"),e.TgZ(25,"div",19)(26,"input",20,21),e.NdJ("keyup",function(){return i.errormsg()}),e.ALo(28,"translate"),e.qZA(),e.YNc(29,Re,1,0,"img",22),e.YNc(30,je,1,0,"img",23),e.qZA(),e.YNc(31,Ve,2,0,"p",16),e.TgZ(32,"label",24),e._uU(33),e.ALo(34,"translate"),e.qZA(),e._UZ(35,"br"),e.TgZ(36,"div",19),e._UZ(37,"input",25),e.ALo(38,"translate"),e.qZA(),e.YNc(39,He,2,0,"p",16),e.TgZ(40,"label",26),e._uU(41),e.ALo(42,"translate"),e.qZA(),e._UZ(43,"br"),e.TgZ(44,"div",19),e._UZ(45,"input",27),e.ALo(46,"translate"),e.qZA(),e.YNc(47,Qe,2,0,"p",16),e.YNc(48,ze,2,0,"p",16),e.TgZ(49,"label",28),e._uU(50),e.ALo(51,"translate"),e.qZA(),e._UZ(52,"br"),e.TgZ(53,"div",19)(54,"select",29)(55,"option",30),e._uU(56),e.ALo(57,"translate"),e.qZA(),e.TgZ(58,"option",31),e._uU(59),e.ALo(60,"translate"),e.qZA(),e.TgZ(61,"option",32),e._uU(62),e.ALo(63,"translate"),e.qZA()()(),e.TgZ(64,"label",33),e._uU(65),e.ALo(66,"translate"),e.qZA(),e._UZ(67,"br"),e.TgZ(68,"div",34),e._UZ(69,"dp-date-picker",35,36),e.ALo(71,"translate"),e.YNc(72,Be,1,0,"img",37),e.qZA()()()()()()(),e.TgZ(73,"div",38)(74,"a",39),e.NdJ("click",function(){return i.updateProfileForm()}),e.TgZ(75,"span"),e._uU(76),e.ALo(77,"translate"),e.qZA()()()}
12&t&&(e.xp6(7),e.Oqu(e.lcZ(8,27,"profile_str_20")),e.xp6(4),e.s9C("src",(null==i.userDetails?null:i.userDetails.profileImage)||(null==i.userDetails?null:i.userDetails.alternateProfileImage),e.LSH),e.xp6(1),e.Q6J("formGroup",i.editProfileForm),e.xp6(6),e.Q6J("ngIf",((null==i.editProfileForm?null:i.editProfileForm.get("firstName").dirty)||(null==i.editProfileForm?null:i.editProfileForm.get("firstName").touched))&&i.editProfileForm.get("firstName").errors&&i.editProfileForm.get("firstName").errors.required),e.xp6(4),e.Oqu(e.lcZ(23,29,"user_str_1")),e.xp6(4),e.s9C("placeholder",e.lcZ(28,31,"user_str_1")),e.xp6(3),e.Q6J("ngIf",i.isEdit),e.xp6(1),e.Q6J("ngIf",((null==i.editProfileForm?null:i.editProfileForm.get("handleName").dirty)||(null==i.editProfileForm?null:i.editProfileForm.get("handleName").touched))&&i.editProfileForm.get("handleName").errors&&i.editProfileForm.get("handleName").errors.required),e.xp6(1),e.Q6J("ngIf",((null==i.editProfileForm?null:i.editProfileForm.get("handleName").dirty)||(null==i.editProfileForm?null:i.editProfileForm.get("handleName").touched))&&i.editProfileForm.get("handleName").errors&&i.editProfileForm.get("handleName").errors.required),e.xp6(2),e.Oqu(e.lcZ(34,33,"profile_str_21")),e.xp6(4),e.s9C("placeholder",e.lcZ(38,35,"profile_str_21")),e.xp6(2),e.Q6J("ngIf",((null==i.editProfileForm?null:i.editProfileForm.get("email").dirty)||(null==i.editProfileForm?null:i.editProfileForm.get("email").touched))&&i.editProfileForm.get("email").errors&&i.editProfileForm.get("email").errors.pattern),e.xp6(2),e.hij(" ",e.lcZ(42,37,"login_str_27")," "),e.xp6(4),e.s9C("placeholder",e.lcZ(46,39,"login_str_27")),e.xp6(2),e.Q6J("ngIf",((null==i.editProfileForm?null:i.editProfileForm.get("phone").dirty)||(null==i.editProfileForm?null:i.editProfileForm.get("phone").touched))&&i.editProfileForm.get("phone").errors&&i.editProfileForm.get("phone").errors.required),e.xp6(1),e.Q6J("ngIf",((null==i.editProfileForm?null:i.editProfileForm.get("phone").dirty)||(null==i.editProfileForm?null:i.editProfileForm.get("phone").touched))&&i.editProfileForm.get("phone").errors&&i.editProfileForm.get("phone").errors.minlength),e.xp6(2),e.Oqu(e.lcZ(51,41,"profile_str_23")),e.xp6(6),e.Oqu(e.lcZ(57,43,"Gender[0]")),e.xp6(3),e.Oqu(e.lcZ(60,45,"Gender[1]")),e.xp6(3),e.Oqu(e.lcZ(63,47,"Gender[2]")),e.xp6(3),e.Oqu(e.lcZ(66,49,"profile_str_41")),e.xp6(4),e.s9C("placeholder",e.lcZ(71,51,"profile_str_41")),e.Q6J("mode","day"),e.xp6(3),e.Q6J("ngIf",(null==i.editProfileForm?null:i.editProfileForm.get("dob").dirty)&&(null==i.editProfileForm?null:i.editProfileForm.get("dob").touched)&&i.editProfileForm.get("dob").errors),e.xp6(2),e.ekj("btn-gold-bg",null==i.userDetails?null:i.userDetails.isGold),e.xp6(2),e.Oqu(e.lcZ(77,53,"profile_str_43")))},directives:[x.u,s._Y,s.JL,s.sg,s.Fj,s.JJ,s.u,_.O5,s.nD,s.EJ,s.YN,s.Kr,Ye.L],pipes:[h.X$],styles:[".inputbox[_ngcontent-%COMP%]{border-radius:9px;-webkit-backdrop-filter:blur(30px);backdrop-filter:blur(30px);background-color:#ffffff1a!important;width:100%;padding:14px!important;margin:10px 0!important;border:0px!important;font-size:14px!important;position:relative}.text-center[_ngcontent-%COMP%]{text-align:center}.profile-pic[_ngcontent-%COMP%]{width:190px;height:190px;background-size:cover;background-repeat:no-repeat;margin:0 auto;position:relative}.profile-edit-icon[_ngcontent-%COMP%]{width:15px;height:15px}.edit-profile-icon[_ngcontent-%COMP%]{top:17px}.input-icon[_ngcontent-%COMP%]{width:15px;position:absolute;right:11px;margin:0;top:13px}input[_ngcontent-%COMP%]{border:none!important;outline:none!important;width:100%!important;background:transparent!important;color:#fff!important;font-size:14px!important}.profile-title[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{font-size:21px!important;font-weight:600;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:normal;text-align:left;color:#fff}.profile-content[_ngcontent-%COMP%]   hr[_ngcontent-%COMP%]{margin:30px 0}label[_ngcontent-%COMP%]{font-size:15px!important;font-weight:400;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:normal;text-align:left;color:#c6c6c6;padding:13px}.padding-5[_ngcontent-%COMP%]{padding:5vw}.footer-action[_ngcontent-%COMP%]{backdrop-filter:blur(30px);-webkit-backdrop-filter:blur(30px);background-color:#00000094;width:100vw;padding:5vw;position:fixed;bottom:0px;text-align:center;z-index:999999!important}select[_ngcontent-%COMP%]{background-color:transparent!important;border:0px!important;padding:5px!important;width:100%!important;color:#fff!important}.title[_ngcontent-%COMP%]{font-size:17px;font-weight:500;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:normal;text-align:center;color:#fff;width:95%;display:inline-block;margin:0 auto;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}.user-info[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{text-align:center;margin-top:15px}
1.user-name[_ngcontent-%COMP%]{text-align:left;overflow:hidden;text-overflow:ellipsis;width:97%;display:inline-block;white-space:nowrap}"]}),o})();var Ke=c(74513);function Xe(o,l){1&o&&e._UZ(0,"img",22)}function We(o,l){1&o&&e._UZ(0,"img",23)}function et(o,l){if(1&o){const t=e.EpF();e.TgZ(0,"div",11)(1,"div",12)(2,"div",13),e.NdJ("click",function(){const a=e.CHM(t).$implicit;return e.oxw().redirectToOtherUserProfile(a)}),e.TgZ(3,"img",14),e.NdJ("error",function(){const a=e.CHM(t).$implicit;return e.oxw().storageService.setDefaultImage(null==a?null:a.profileImage,"image")}),e.qZA()(),e.TgZ(4,"div",15),e.NdJ("click",function(){const a=e.CHM(t).$implicit;return e.oxw().redirectToOtherUserProfile(a)}),e.TgZ(5,"h3",16),e._uU(6),e.qZA(),e.TgZ(7,"p",17),e._uU(8),e.ALo(9,"translate"),e.qZA()(),e.TgZ(10,"div",18)(11,"a",19),e.NdJ("click",function(){const a=e.CHM(t).$implicit;return e.oxw().followUnfollow(null==a?null:a.uId,a.follow=!a.follow)}),e.YNc(12,Xe,1,0,"img",20),e.YNc(13,We,1,0,"img",21),e.qZA()()()()}if(2&o){const t=l.$implicit;e.xp6(3),e.s9C("src",(null==t?null:t.profileImage)||(null==t?null:t.alternateProfileImage),e.LSH),e.s9C("alt",(null==t?null:t.profileImage)||(null==t?null:t.alternateProfileImage)),e.xp6(3),e.hij("",null!=t&&t.firstName&&null!=t&&t.lastName?(null==t?null:t.firstName)+(null==t?null:t.lastName):null==t?null:t.handleName," "),e.xp6(2),e.AsE("",t.followerCount," ",e.lcZ(9,7,"user_str_3"),""),e.xp6(4),e.Q6J("ngIf",null==t?null:t.follow),e.xp6(1),e.Q6J("ngIf",!(null!=t&&t.follow))}}let tt=(()=>{class o{constructor(t,i,n,a,r,g,m){this.router=t,this.ssoStorageService=i,this.userService=n,this.activatedRoute=a,this.storageService=r,this.translate=g,this._location=m,this.follow=!1}ngOnInit(){this.userId=this.activatedRoute.snapshot.paramMap.get("contentId"),this.userDetails=this.ssoStorageService.getUserDetails(),this.userDetails&&this.userDetails.user_id&&this.getFollowersData()}getFollowersData(){!this.userDetails||!this.userDetails.user_id||(this.userId?this.userService.getUserFollowing(this.userId).subscribe(t=>{t&&(this.userFollowersData=t.follower)}):this.userService.getUserFollowing(this.userDetails.user_id).subscribe(t=>{t&&(this.userFollowersData=t.follower)}))}followUnfollow(t,i){this.userDetails&&this.userDetails.user_id&&this.userService.posttUserFollowUnfollow({followingId:t,follow:i},this.userDetails.user_id).subscribe(a=>{a&&a.message&&p.l.toastNotification(`${this.translate.instant("msg_user_profile_followers")}`,`${this.translate.instant("msg_success")}`,Ke.ht.BOTTOM_CENTER)})}redirectToOtherUserProfile(t){this.router.navigate([u.of.MAIN_ROUTING.PROFILE_SETTING+"/"+u.of.MAIN_ROUTING.USER_ACTIVITY,t.uId])}back(){this._location.back()}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(v.F0),e.Y36(Z.T),e.Y36(k.K),e.Y36(v.gz),e.Y36(U.V),e.Y36(h.sK),e.Y36(_.Ye))},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-user-followers"]],decls:13,vars:4,consts:[["id","wrapper"],["id","content"],[1,"full-screen-wrapper"],[1,"go-back-box","mainwrp"],[1,"back-icon",3,"click"],["loading","lazy","src","https://pwa-un.hungama.com/images/back-icon.svg","alt","arrow"],[1,"title"],["id","Discover",1,"hg-tabcontent"],[1,"hg-section-wrapper"],[1,"hg_wrapper","hg_wrapper-reset"],["class","innpage-container",4,"ngFor","ngForOf"],[1,"innpage-container"],[1,"mylab-row"],[1,"mylab-imgbox",3,"click"],["loading","lazy","loading","lazy",1,"my-lab-poster-img",3,"src","alt","error"],[1,"mylab-contentbox","mylab-contentbox-list",3,"click"],[1,"mylab-contentbox-title"],[1,"followers"],[1,"mylab-icons"],[1,"prdct-viewall",3,"click"],["loading","lazy","src","https://pwa-un.hungama.com/images/follow.svg","alt","follow",4,"ngIf"],["loading","lazy","src","https://pwa-un.hungama.com/images/followed.svg","alt","followed",4,"ngIf"],["loading","lazy","src","https://pwa-un.hungama.com/images/follow.svg","alt","follow"],["loading","lazy","src","https://pwa-un.hungama.com/images/followed.svg","alt","followed"]],template:function(t,i){1&t&&(e.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"a",4),e.NdJ("click",function(){return i.back()}),e._UZ(5,"img",5),e.qZA(),e.TgZ(6,"span",6),e._uU(7),e.ALo(8,"translate"),e.qZA()(),e.TgZ(9,"div",7)(10,"div",8)(11,"div",9),e.YNc(12,et,14,9,"div",10),e.qZA()()()()()()),2&t&&(e.xp6(7),e.Oqu(e.l
1cZ(8,2,"user_str_3")),e.xp6(5),e.Q6J("ngForOf",i.userFollowersData))},directives:[x.u,_.sg,_.O5],pipes:[h.X$],styles:[""]}),o})(),it=(()=>{class o{constructor(t){this._location=t}ngOnInit(){}redirectToBack(){this._location.back()}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(_.Ye))},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-earn-coin"]],decls:10,vars:3,consts:[["id","wrapper"],["id","content"],[1,"full-screen-wrapper","full-screen-wrapper-pb-earncoin"],[1,"go-back-box","mainwrp"],[1,"back-icon",3,"click"],["loading","lazy","src","https://pwa-un.hungama.com/images/back-icon.svg","alt","arrow"],[1,"title"],["loading","lazy","src","https://assetsun.hungama.com/images/200_Earn%20coins%20%E2%80%93audio.png","alt","earn coins",1,"nli-m-img",2,"width","100%"]],template:function(t,i){1&t&&(e.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"a",4),e.NdJ("click",function(){return i.redirectToBack()}),e._UZ(5,"img",5),e.qZA(),e.TgZ(6,"span",6),e._uU(7),e.ALo(8,"translate"),e.qZA()(),e._UZ(9,"img",7),e.qZA()()()),2&t&&(e.xp6(7),e.Oqu(e.l
1cZ(8,1,"profile_str_36")))},directives:[x.u],pipes:[h.X$],styles:[""]}),o})(),nt=(()=>{class o{constructor(t,i){this._location=t,this.ssoStorageService=i,this.userDetails=this.ssoStorageService.getUserDetails()}ngOnInit(){}getMobileOperatingSystem(){var t=navigator.userAgent||navigator.vendor;return/windows phone/i.test(t)?"Windows Phone":/android/i.test(t)?(window.open("https://play.google.com/store/apps/details?id=com.hungama.myplay.activity&hl=en","_blank"),"Android"):/iPad|iPhone|iPod/.test(t)?(window.open("https://apps.apple.com/us/app/hungama-music-songs-radio/id414009038","_blank"),"iOS"):"unknown"}redirectToBack(){this._location.back()}ngAfterViewInit(){p.l.setAutoSliderInstance("landpage-slider")}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(_.Ye),e.Y36(Z.T))},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-redeem-coin"]],decls:35,vars:14,consts:[["id","wrapper"],["id","content"],[1,"full-screen-wrapper"],[1,"go-back-box","mainwrp"],["href","javascript:void(0)",1,"back-icon",3,"click"],["loading","lazy","src","https://pwa-un.hungama.com/images/back-icon.svg"],[1,"title"],[1,"content-box0"],[1,"swiper-container","landpage-slider","pd-lr"],[1,"swiper-wrapper"],[1,"swiper-slide"],["href","javascript:void(0)"],["src","https://pwa-un.hungama.com/images/redeem-coins-banner.png","alt","banner"],[1,"hg-section-wrapper","hg-section-wrapper-reset"],[1,"redeem-coins-row"],[1,"redeem-coins"],["src","https://pwa-un.hungama.com/images/Redeem_Coins.gif"],[1,"title-rc"],[1,""],[1,"footer-action",2,"z-index","9999999",3,"click"],[1,"free-redeeem-coin-btn","button-gold","d-block","ec-btn"],["src","https://pwa-un.hungama.com/images/apple-icon-white.svg",1,"btn-ec-icon"],["src","https://pwa-un.hungama.com/images/playstore-icon-white.svg",1,"btn-ec-icon"],[1,"ec-h-divider"]],template:function(t,i){1&t&&(e.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"a",4),e.NdJ("click",function(){return i.redirectToBack()}),e._UZ(5,"img",5),e.qZA(),e.TgZ(6,"span",6),e._uU(7),e.ALo(8,"translate"),e.qZA()(),e.TgZ(9,"div",7)(10,"div",8)(11,"div",9)(12,"div",10)(13,"a",11),e._UZ(14,"img",12),e.qZA()(),e.TgZ(15,"div",10)(16,"a",11),e._UZ(17,"img",12),e.qZA()()()()(),e.TgZ(18,"div",13)(19,"div",14)(20,"div",15),e._UZ(21,"img",16),e.TgZ(22,"h2",17),e._uU(23),e.ALo(24,"translate"),e.qZA(),e.TgZ(25,"p",18),e._uU(26),e.ALo(27,"translate"),e.qZA()()()()()(),e.TgZ(28,"div",19),e.NdJ("click",function(){return i.getMobileOperatingSystem()}),e.TgZ(29,"a",20),e._UZ(30,"img",21)(31,"img",22)(32,"span",23),e._uU(33),e.ALo(34,"translate"),e.qZA()()()),2&t&&(e.xp6(7),e.Oqu(e.l
1cZ(8,6,"profile_str_37")),e.xp6(16),e.hij(" ",e.lcZ(24,8,"follow_these_simple_steps_to_redeem_coins")," "),e.xp6(3),e.hij(" ",e.lcZ(27,10,"download_the_hungama_app_from_the_profile_section_got_to_redeem_coins_choose_your_rewards_and_redeem")," "),e.xp6(3),e.ekj("btn-gold-bg",null==i.userDetails?null:i.userDetails.isGold),e.xp6(4),e.hij(" ",e.lcZ(34,12,"get_app"),""))},directives:[x.u],pipes:[h.X$],styles:[".redeem-coins[_ngcontent-%COMP%]   h2.title-rc[_ngcontent-%COMP%]{font-size:18px;font-weight:500;font-stretch:normal;font-style:normal;line-height:1.11;letter-spacing:normal;text-align:center;color:#fff;margin:25px 0 20px}.redeem-coins[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{font-size:13px;font-weight:400;font-stretch:normal;font-style:normal;line-height:1.38;letter-spacing:normal;text-align:center;color:#909090}.title[_ngcontent-%COMP%]{font-size:17px;font-weight:500;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:normal;text-align:center;color:#fff;width:95%;display:inline-block;margin:0 auto;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}.back-icon[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:3vw}img[_ngcontent-%COMP%]{max-width:100%;height:auto}.redeem-coins[_ngcontent-%COMP%]{padding:8vw 0 30.933vw;text-align:center}*[_ngcontent-%COMP%]{font-family:SF Pro Text}.footer-action[_ngcontent-%COMP%]{backdrop-filter:blur(30px);-webkit-backdrop-filter:blur(30px);background-color:#00000094;width:100vw;padding:5vw;position:fixed;bottom:0px;text-align:center;z-index:9999999}.free-redeeem-coin-btn[_ngcontent-%COMP%]{width:100%;height:auto;object-fit:contain;background-image:linear-gradient(37deg,#2b68e8 10%,#2ca1f7 89%)}@media only screen and (max-width: 1023px){.hg-section-wrapper[_ngcontent-%COMP%], .content-box0[_ngcontent-%COMP%]{padding:0 18px!important}.mainwrp[_ngcontent-%COMP%]{font-size:16px;font-weight:500;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:normal;text-align:left;color:#fff;padding-top:4.5vw;position:relative}.go-back-box[_ngcontent-%COMP%]{padding:5vw}.back-icon[_ngcontent-%COMP%]{position:absolute;left:5vw}img.btn-ec-icon[_ngcontent-%COMP%]{margin:0 5px}span.ec-h-divider[_ngcontent-%COMP%]{display:inline-flex;width:1px;height:20px;background:rgb(255 255 255 / 40%);margin-left:5px;font-size:16px;margin-right:5px}}"]}),o})();function ot(o,l){if(1&o){const t=e.EpF();e.ynx(0),e.TgZ(1,"div",27)(2,"div",31)(3,"div",28)(4,"div"),e._UZ(5,"img",32),e.qZA(),e.TgZ(6,"div")(7,"h3"),e._uU(8),e.ALo(9,"translate"),e.qZA(),e.TgZ(10,"p"),e._uU(11),e.ALo(12,"translate"),e._UZ(13,"span",33),e.qZA()()()(),e.TgZ(14,"div",22)(15,"label",23)(16,"input",34),e.NdJ("change",function(){return e.CHM(t),e.oxw().audioVideoOff()}),e.qZA(),e._UZ(17,"span",25),e.qZA()()(),e.TgZ(18,"div",15)(19,"div",31)(20,"div",28)(21,"div"),e._UZ(22,"img",35),e.qZA(),e.TgZ(23,"div",36)(24,"h3"),e._uU(25),e.ALo(26,"translate"),e.qZA(),e.TgZ(27,"p"),e._uU(28),e.ALo(29,"translate"),e.qZA()()()(),e.TgZ(30,"div",22)(31,"label",23)(32,"input",37),e.NdJ("change",function(){return e.CHM(t),e.oxw().audioVideoOff()}),e.qZA(),e._UZ(33,"span",25),e.qZA()()(),e.BQk()}if(2&o){const t=e.oxw();e.xp6(8),e.hij(" ",e.lcZ(9,8,"general_setting_str_70")," "),e.xp6(3),e.hij(" ",e.lcZ(12,10,"general_setting_str_71")," "),e.xp6(3),e.Akn(t.genralSettingForm.get("allowAge18Plus").value?" pointer-events: none;":""),e.xp6(11),e.hij(" ",e.lcZ(26,12,"general_setting_str_72")," "),e.xp6(3),e.hij(" ",e.lcZ(29,14,"general_setting_str_73")," "),e.xp6(2),e.Akn(t.genralSettingForm.get("allowAge18Plus").value?" pointer-events: none;":"")}}const at=[{path:"",component:$},{path:"general",component:(()=>{class o{constructor(t,i,n,a,r,g,m,b,A){this.miscService=t,this.storageService=i,this.ssoStorageService=n,this.eventTrackingService=a,this.userService=r,this.fb=g,this.translate=m,this.router=b,this.notificationPopupService=A,this.audiVideoToggel=!1}ngOnInit(){this.initGenralSettingForm(),this.getGeneralSetting(),this.getLanguageList(),this.userDetails=this.ssoStorageService.getUserDetails(),this.setSelectedLang()}setSelectedLang(){var t,i,n;(null===(n=null===(i=null===(t=this.languageDetails)||void 0===t?void 0:t.data)||void 0===i?void 0:i.body)||void 0===n?void 0:n.rows[0].items).forEac
1h(r=>{r.code==this.storageService.getUserLanguage()&&this.genralSettingForm.get("languageTitle").setValue(r.title.toString())})}back(){this.router.navigate([u.of.MAIN_ROUTING.PROFILE_SETTING])}getLanguageList(){this.miscService.getOnboardingPopUp("applang").subscribe(t=>{t&&(this.languageDetails=t)})}onboardingApiCall(){var t,i,n,a;if(this.languageDetails&&(null===(i=null===(t=this.languageDetails)||void 0===t?void 0:t.data)||void 0===i?void 0:i.body)){const r=null===(a=null===(n=this.languageDetails)||void 0===n?void 0:n.data)||void 0===a?void 0:a.body,g=null==r?void 0:r.rows[0].items,{title:m,subTitle:b}=this.makeOnboardingContent(r);this.languagePopup(m,b,g)}this.trackGoogleADSAppLanguageList("app_language",this.genralSettingForm.get("languageTitle").value)}makeOnboardingContent(t){return{title:this.getTransliteration(null==t?void 0:t.transliteration,"headding"),subTitle:this.getTransliteration(null==t?void 0:t.transliteration,"subheadding")}}initGenralSettingForm(){const t=this.storageService.getUserLanguage();this.genralSettingForm=this.fb.group({type:[f.Fh.GENRAL_SETTING,s.kI.required],emailNotification:[!0,s.kI.required],mobileNotification:[!0,s.kI.required],allowExplicitContent:[!1,s.kI.required],allowAudioContent:[!1],allowVideoContent:[!1],appLanguage:[t],languageTitle:["en"==t?"English":""],allowAge18Plus:[!1,s.kI.required]})}getGeneralSetting(){const t=this.ssoStorageService.getUserDetails();!t||!t.user_id||this.userService.getGeneralSetting(t.user_id,f.Fh.GENRAL_SETTING).subscribe(i=>{if(i&&i.data){const n=((i.data.data||[]).find(a=>a.type===f.Fh.GENRAL_SETTING)||{}).preference[0];this.genralSettingForm.patchValue(n,{emitEvent:!1})}})}postGenralSetting(){const t=this.genralSettingForm.getRawValue(),i={type:f.Fh.GENRAL_SETTING,preference:[t]},a=this.ssoStorageService.getUserDetails().user_id;!a||this.userService.postGeneralSetting(i,a).subscribe(r=>{})}explicitValChngeEvent(){let t=this.genralSettingForm.get("allowExplicitContent").value;this.genralSettingForm.get("allowAudioContent").setValue(t),this.genralSettingForm.get("allowVideoContent").setValue(t),this.postGenralSetting()}audioVideoOff(){!this.genralSettingForm.get("allowAudioContent").value&&!this.genralSettingForm.get("allowVideoContent").value&&this.genralSettingForm.get("allowExplicitContent").setValue(!1),(this.genralSettingForm.get("allowAudioContent").value||this.genralSettingForm.get("allowVideoContent").value)&&this.genralSettingForm.get("allowExplicitContent").setValue(!0),this.postGenralSetting()}Age18ValChngeEvent(){let t=this.genralSettingForm.get("allowAge18Plus").value;t&&(this.genralSettingForm.get("allowExplicitContent").setValue(!t),this.genralSettingForm.get("allowAudioContent").setValue(!t),this.genralSettingForm.get("allowVideoContent").setValue(!t)),this.postGenralSetting()}getTransliteration(t,i){const n=this.storageService.getUserLanguage()||"en";return t[i][n]}languagePopup(t,i,n){const a=this.ssoStorageService.getUserDetails(),r=this.genralSettingForm.get("appLanguage").value;p.l.bodyOverflowHidden(),this.notificationPopupService.setOptions({itemList:n,title:t,selected:r,notification:!0,subTitle:i,searchInput:!1,type:"applang",callback:this.getUserSelectedLang.bind(this),buttons:[{title:"Ask later",className:"button-transparent d-block",divName:"askme-later-btn-box",type:"button",id:0},{title:"Save",className:(null==a?void 0:a.isGold)?"button-blue btn-gold-bg d-block":"button-blue d-block",divName:"save-btn-box",type:"submit",id:1}],className:"vlangpopup"})}getUserSelectedLang(t){if(p.l.bodyOverflowAuto(),t&&t.action){const i=(t.selected||[]).map(a=>a.title)||[],n=this.storageService.getUserLanguage();this.genralSettingForm.get("appLanguage").setValue(n,{emitEvent:!1}),this.genralSettingForm.get("languageTitle").setValue(i.toString()),this.translate.use(n)}}trackGoogleADSAppLanguageList(t,i){let n;n={event:"Settings",action:t,label:i},this.trackEvent(n,"",[d.F5.GOOGLE_AD_MANAGER,d.F5.GOOGLEANALYTICS])}trackEvent(t,i,n){this.eventTrackingService.trackEvent(t,i,n)}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(P.Y),e.Y36(U.V),e.Y36(Z.T),e.Y36(S.f),e.Y36(k.K),e.Y36(s.qu),e.Y36(h.sK),e.Y36(v.F0),e.Y36(N.n))}
1,o.\u0275cmp=e.Xpm({type:o,selectors:[["app-general-setting"]],decls:72,vars:32,consts:[["id","wrapper"],["id","content"],[1,"full-screen-wrapper"],[1,"go-back-box","mainwrp"],[1,"back-icon",3,"click"],["loading","lazy","src","https://pwa-un.hungama.com/images/back-icon.svg","alt","arrow"],[1,"title"],[1,"hg-section-wrapper","hg-section-wrapper-reset","profile-set-pg-sec"],[3,"formGroup"],[1,"hg-section-wrapper","hg-section-wrapper-reset"],[1,"hg_wrapper"],[1,"hg_header","pd-rt"],[1,"setting-title","hg_headline-reset"],[1,"inner-list-box","inner-list-box-reset","up-comp-sec"],[1,"mylab-contentbox"],[1,"list-item","list-item-last"],[1,"list-item-content","w-auto"],[1,"list-item-right",3,"click"],[1,"list-language",2,"overflow","visible"],["loading","lazy","src","https://pwa-un.hungama.com/images/icon_back_white.svg","alt","arrow"],[1,"list-item",3,"click"],[1,"setting-title"],[1,"list-item-right"],[1,"switch"],["type","checkbox","formControlName","allowExplicitContent",3,"change"],[1,"slider","round"],[4,"ngIf"],[1,"list-item"],[1,"d-flex"],[1,"age-msg-sec"],["type","checkbox","formControlName","allowAge18Plus",3,"change"],[1,"list-item-content","w-auto","audio-content"],["loading","lazy","src","https://pwa-un.hungama.com/images/audio-content.svg","alt","audio content",1,"mr-5","mt--20"],[1,"eicn"],["type","checkbox","formControlName","allowAudioContent",3,"change"],["loading","lazy","src","https://pwa-un.hungama.com/images/13video-content.svg","alt","video content",1,"mr-5","mt--20"],[1,"onethreeplusbox"],["type","checkbox","formControlName","allowVideoContent",3,"change"]],template:function(t,i){1&t&&(e.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"a",4),e.NdJ("click",function(){return i.back()}),e._UZ(5,"img",5),e.qZA(),e.TgZ(6,"span",6),e._uU(7),e.ALo(8,"translate"),e.qZA()(),e.TgZ(9,"div",7)(10,"form",8)(11,"div",9)(12,"div",10)(13,"div",11)(14,"h2",12),e._uU(15),e.ALo(16,"translate"),e.qZA()()(),e.TgZ(17,"div",13)(18,"div",14)(19,"div",15)(20,"div",16)(21,"h3"),e._uU(22),e.ALo(23,"translate"),e.qZA()(),e.TgZ(24,"div",17),e.NdJ("click",function(){return i.onboardingApiCall()}),e.TgZ(25,"span",18),e._uU(26),e.qZA(),e._uU(27,"\xa0\xa0"),e._UZ(28,"img",19),e.qZA()()()()(),e.TgZ(29,"div",9)(30,"div",10)(31,"div",11)(32,"h2",12),e._uU(33),e.ALo(34,"translate"),e.qZA()()(),e.TgZ(35,"div",13)(36,"div")(37,"div",20),e.NdJ("click",function(a){return i.audiVideoToggel=!i.audiVideoToggel,a.stopPropagation()}),e.TgZ(38,"div",16)(39,"h3"),e._uU(40),e.ALo(41,"translate"),e.qZA(),e.TgZ(42,"span",21),e._uU(43),e.ALo(44,"translate"),e.qZA()(),e.TgZ(45,"div",22)(46,"label",23)(47,"input",24),e.NdJ("change",function(){return i.explicitValChngeEvent(),i.audiVideoToggel=!i.audiVideoToggel}),e.qZA(),e._UZ(48,"span",25),e.qZA()()(),e.YNc(49,ot,34,16,"ng-container",26),e.qZA()()(),e.TgZ(50,"div",9)(51,"div",10)(52,"div",11)(53,"h2",12),e._uU(54," Age Confirmation "),e.qZA()()(),e.TgZ(55,"div",13)(56,"div",14),e.ynx(57),e.TgZ(58,"div",27)(59,"div",16)(60,"div",28)(61,"div")(62,"h3"),e._uU(63),e.ALo(64,"translate"),e.qZA(),e.TgZ(65,"p",29),e._uU(66),e.ALo(67,"translate"),e.qZA()()()(),e.TgZ(68,"div",22)(69,"label",23)(70,"input",30),e.NdJ("change",function(){return i.Age18ValChngeEvent()}),e.qZA(),e._UZ(71,"span",25),e.qZA()()(),e.BQk(),e.qZA()()()()()()()()),2&t&&(e.xp6(7),e.Oqu(e.l
1cZ(8,16,"general_setting_str_3")),e.xp6(3),e.Q6J("formGroup",i.genralSettingForm),e.xp6(5),e.hij(" ",e.lcZ(16,18,"menu_str_7")," "),e.xp6(7),e.Oqu(e.lcZ(23,20,"general_setting_str_64")),e.xp6(4),e.Oqu(i.genralSettingForm.get("languageTitle").value),e.xp6(7),e.hij(" ",e.lcZ(34,22,"general_setting_str_66")," "),e.xp6(3),e.Gre("mylab-contentbox ",i.genralSettingForm.get("allowAge18Plus").value?"parentaldesable":"",""),e.xp6(4),e.hij(" ",e.lcZ(41,24,"general_setting_str_67")," "),e.xp6(3),e.hij(" ",e.lcZ(44,26,"general_setting_str_68")," "),e.xp6(2),e.Akn(i.genralSettingForm.get("allowAge18Plus").value?" pointer-events: none;":""),e.xp6(4),e.Q6J("ngIf",i.audiVideoToggel),e.xp6(14),e.hij(" ",e.lcZ(64,28,"Age 18+ or Older")," "),e.xp6(3),e.hij(" ",e.lcZ(67,30,"You are 18 years of age or older to access age appropriate content")," "))},directives:[x.u,s._Y,s.JL,s.sg,s.Wl,s.JJ,s.u,_.O5],pipes:[h.X$],styles:['@import"https://pwa-un.hungama.com/css/set11-mobile.css";@import"https://pwa-un.hungama.com/css/set16.css";.audio-content[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{display:inline-block!important;width:40.7px!important;height:auto!important}.audio-content[_ngcontent-%COMP%]   .onethreeplusbox[_ngcontent-%COMP%]{margin-left:5vw!important}@media only screen and (max-width: 1023px){input[_ngcontent-%COMP%]:checked + .slider[_ngcontent-%COMP%]:before{transform:translate(0)!important;top:3px!important}.up-comp-sec[_ngcontent-%COMP%]   .mylab-contentbox[_ngcontent-%COMP%]{width:100%!important;min-height:auto!important}p.age-msg-sec[_ngcontent-%COMP%]{overflow:visible;text-overflow:unset;margin-bottom:17px}}']}),o})()},{path:"manage-my-subscription",component:_e},{path:"music-playback",component:Ze},{path:"video-playback",component:Te},{path:"user-activity/:contentId",component:Ee},{path:"edit-profile",component:$e},{path:"user-followers/:contentId",component:tt},{path:"earn-coin",component:it},{path:"redeem-coin/:contentId",component:nt}];let lt=(()=>{class o{}return o.\u0275fac=function(t){return new(t||o)}
1,o.\u0275mod=e.oAB({type:o}),o.\u0275inj=e.cJS({imports:[[v.Bz.forChild(at)],v.Bz]}),o})();var rt=c(74666),st=c(49360),ct=c(69827),ut=c(55231);let pt=(()=>{class o{}return o.\u0275fac=function(t){return new(t||o)},o.\u0275mod=e.oAB({type:o}),o.\u0275inj=e.cJS({imports:[[_.ez,lt,_.ez,h.aw.forChild(),rt.m,s.u5,s.UX,st.g,ct._h,ut.x]]}),o})()}}]);

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.