1"use strict";(self.webpackChunkkompoz_ui=self.webpackChunkkompoz_ui||[]).push([[233],{8589:(N,w,c)=>{c.d(w,{q:()=>a});var a=(()=>{return(_=a||(a={}))[_.PENDING_APPROVAL=0]="PENDING_APPROVAL",_[_.RELEASED=1]="RELEASED",_[_.RETRACTED=9]="RETRACTED",_[_.UNKNOWN=99]="UNKNOWN",a;var _})()},7312:(N,w,c)=>{c.d(w,{E:()=>a});class a{constructor(){this.filestackInfo={}}withJSFilestackInfo(x){return this.filestackInfo={handle:x.handle,fileName:x.filename,mimeType:x.mimetype,size:x.size,url:x.url,awsContainer:x.container,awsKey:x.key},this}build(){return this.filestackInfo}}},709:(N,w,c)=>{c.d(w,{X:()=>g});var a=c(4650),_=c(2837),x=c(6895);function l(f,m){if(1&f){const e=a.EpF();a.TgZ(0,"a",2),a.NdJ("click",function(){a.CHM(e);const A=a.oxw();return a.KtG(A.onButtonClicked())}),a._UZ(1,"i",3),a.qZA()}if(2&f){const e=a.oxw();a.Q6J("ngClass",e.cssClass)}}function i(f,m){if(1&f){const e=a.EpF();a.TgZ(0,"a",4),a.NdJ("click",function(){a.CHM(e);const A=a.oxw();return a.KtG(A.onButtonClicked())}),a._uU(1,"Report Content"),a.qZA()}if(2&f){const e=a.oxw();a.Q6J("ngClass",e.cssClass)}}let g=(()=>{class f{constructor(e){this.flaggedContentService=e,this.title=void 0,this.url=void 0,this.cssClass="",this.kompozObject=void 0,this.format="BUTTON"}ngOnInit(){}onButtonClicked(){let e;void 0!==this.kompozObject&&(e={objectId:this.kompozObject.objectId,objectTypeCode:this.kompozObject.objectTypeCode}),this.flaggedContentService.flag({title:this.title,url:this.url,context:e})}}return f.\u0275fac=function(e){return new(e||f)(a.Y36(_.H))},f.\u0275cmp=a.Xpm({type:f,selectors:[["kmpzu-flagged-content-button"]],inputs:{title:"title",url:"url",cssClass:"cssClass",kompozObject:"kompozObject",format:"format"},decls:2,vars:2,consts:[["class","uk-icon-button uk-button-default","title","Report content",3,"ngClass","click",4,"ngIf"],["title","Report content",3,"ngClass","click",4,"ngIf"],["title","Report content",1,"uk-icon-button","uk-button-default",3,"ngClass","click"],["title","Report content",1,"fa-sharp","fa-light","fa-flag-alt"],["title","Report content",3,"ngClass","click"]],template:function(e,C){1&e&&(a.YNc(0,l,2,1,"a",0),a.YNc(1,i,2,1,"a",1)),2&e&&(a.Q6J("ngIf","BUTTON"===C.format),a.xp6(1),a.Q6J("ngIf","LINK"===C.format))},dependencies:[x.mk,x.O5]}),f})()},8281:(N,w,c)=>{c.d(w,{I:()=>F});var a=c(1217),_=c(2722),x=c(667),l=c(9269),i=c(4650),g=c(6895);function f(p,y){1&p&&i._UZ(0,"i",6)}function m(p,y){1&p&&i._UZ(0,"i",7)}function e(p,y){if(1&p){const u=i.EpF();i.TgZ(0,"a",3),i.NdJ("click",function(){i.CHM(u);const U=i.oxw(2);return i.KtG(U.onFollowButtonClicked())}),i.YNc(1,f,1,0,"i",4),i.YNc(2,m,1,0,"i",5),i.qZA()}if(2&p){const u=i.oxw(2);i.Q6J("ngClass",u.cssClass),i.xp6(1),i.Q6J("ngIf",!1===u.isBusy),i.xp6(1),i.Q6J("ngIf",!0===u.isBusy)}}function C(p,y){1&p&&(i.TgZ(0,"span"),i._uU(1,"Follow"),i.qZA())}function A(p,y){1&p&&(i.TgZ(0,"span"),i._UZ(1,"i",9),i._uU(2,"\xa0 Follow"),i.qZA())}function v(p,y){if(1&p){const u=i.EpF();
1i.TgZ(0,"a",8),i.NdJ("click",function(){i.CHM(u);const U=i.oxw(2);return i.KtG(U.onFollowButtonClicked())}),i.YNc(1,C,2,0,"span",0),i.YNc(2,A,3,0,"span",0),i.qZA()}if(2&p){const u=i.oxw(2);i.Q6J("ngClass",u.cssClass),i.xp6(1),i.Q6J("ngIf",!1===u.isBusy),i.xp6(1),i.Q6J("ngIf",!0===u.isBusy)}}function R(p,y){if(1&p&&(i.ynx(0),i.YNc(1,e,3,3,"a",1),i.YNc(2,v,3,3,"a",2),i.BQk()),2&p){const u=i.oxw();i.xp6(1),i.Q6J("ngIf",!1===u.large),i.xp6(1),i.Q6J("ngIf",!0===u.large)}}function h(p,y){1&p&&i._UZ(0,"i",15)}function T(p,y){1&p&&i._UZ(0,"i",16)}function k(p,y){if(1&p){const u=i.EpF();i.TgZ(0,"a",12),i.NdJ("click",function(){i.CHM(u);const U=i.oxw(2);return i.KtG(U.onFollowButtonClicked())}),i.YNc(1,h,1,0,"i",13),i.YNc(2,T,1,0,"i",14),i.qZA()}if(2&p){const u=i.oxw(2);i.Q6J("ngClass",u.cssClass),i.xp6(1),i.Q6J("ngIf",!1===u.isBusy),i.xp6(1),i.Q6J("ngIf",!0===u.isBusy)}}function P(p,y){1&p&&(i.TgZ(0,"span"),i._uU(1,"Following"),i.qZA())}function L(p,y){1&p&&(i.TgZ(0,"span"),i._UZ(1,"i",9),i._uU(2,"\xa0 Following"),i.qZA())}function I(p,y){if(1&p){const u=i.EpF();i.TgZ(0,"a",17),i.NdJ("click",function(){i.CHM(u);const U=i.oxw(2);return i.KtG(U.onFollowButtonClicked())}),i.YNc(1,P,2,0,"span",0),i.YNc(2,L,3,0,"span",0),i.qZA()}if(2&p){const u=i.oxw(2);i.Q6J("ngClass",u.cssClass),i.xp6(1),i.Q6J("ngIf",!1===u.isBusy),i.xp6(1),i.Q6J("ngIf",!0===u.isBusy)}}function B(p,y){if(1&p&&(i.ynx(0),i.YNc(1,k,3,3,"a",10),i.YNc(2,I,3,3,"a",11),i.BQk()),2&p){const u=i.oxw();i.xp6(1),i.Q6J("ngIf",!1===u.large),i.xp6(1),i.Q6J("ngIf",!0===u.large)}}let F=(()=>{class p extends l.g{set kompozObject(u){this._kompozObject=u,this.updateFollowState()}constructor(u,Z){super(),this.sessionContextService=u,this.kompozObjectService=Z,this.large=!1,this.cssClass="",this._kompozObject=void 0,this._currentUser=void 0,this.isFollowing=!1}ngOnInit(){this.isFollowing=!1,this.sessionContextService.currentUserState.pipe((0,_.R)(this.destroy$)).subscribe({next:u=>{this._currentUser=this.sessionContextService.currentUser,this.updateFollowState()}})}updateFollowState(){if(void 0===this._currentUser||void 0===this._kompozObject)return;this.isFollowing=!1,this.isBusy=!0;let u=(new a.j9).withObject(this._kompozObject).withUser(this._currentUser).withLimit(0,1).build();this.kompozObjectService.searchFollowers(u).pipe((0,_.R)(this.destroy$)).subscribe({next:Z=>{this.isBusy=!1,this.isFollowing=1===Z.length},error:Z=>{this.isBusy=!1}})}onFollowButtonClicked(){void 0!==this._currentUser&&void 0!==this._kompozObject?!0===this.isFollowing?(this.isBusy=!0,this.kompozObjectService.unFollowKompozObject(this.sessionContextService.accessToken,this._kompozObject).pipe((0,_.R)(this.destroy$)).subscribe({next:()=>{this.isBusy=!1,this.isFollowing=!1},error:u=>{this.isBusy=!1,this.showError(u)}})):(this.isBusy=!0,this.kompozObjectService.followKompozObject(this.sessionContextService.accessToken,this._kompozObject).pipe((0,_.R)(this.destroy$)).subscribe({next:()=>{this.isBusy=!1,this.isFollowing=!0},error:u=>{this.isBusy=!1,this.showError(u)}})):this.toast("Please sign-in to follow this.")}}return p.\u0275fac=function(u){return new(u||p)(i.Y36(x.au),i.Y36(a.Iu))},p.\u0275cmp=i.Xpm({type:p,selectors:[["kmpzu-follow-button"]],inputs:{kompozObject:"kompozObject",large:"large",cssClass:"cssClass"},features:[i.qOj],decls:2,vars:2,consts:[[4,"ngIf"],["class","uk-icon-button uk-button-default","title","Follow",3,"ngClass","click",4,"ngIf"],["class","uk-button uk-button-default k-button-rounded","title","Follow",3,"ngClass","click",4,"ngIf"],["title","Follow",1,"uk-icon-button","uk-button-default",3,"ngClass","click"],["class","fa-sharp fa-light fa-bell","title","Follow",4,"ngIf"],["class","fa-sharp fa-regular fa-spinner fa-spin","title","Follow",4,"ngIf"],["title","Follow",1,"fa-sharp","fa-light","fa-bell"],["title","Follow",1,"fa-sharp","fa-regular","fa-spinner","fa-spin"],["title","Follow",1,"uk-button","uk-button-default","k-button-rounded",3,"ngClass","click"],[1,"fa-sharp","fa-regular","fa-spinner","fa-spin"],["class","uk-icon-button uk-button-tertiary","title","Stop following",3,"ngClass","click",4,"ngIf"],["class","uk-button uk-button-tertiary k-button-rounded","title","Stop following",3,"ngClass","click",4,"ngIf"],["title","Stop following",1,"uk-icon-button","uk-button-tertiary",3,"ngClass","click"],["class","fa-kit fa-sharp-light-bell-circle-check","title","Following",4,"ngIf"],["class","fa-sharp fa-regular fa-spinner fa-spin","title","Following",4,"ngIf"],["title","Following",1,"fa-kit","fa-sharp-light-bell-circle-check"],["title","Following",1,"fa-sharp","fa-regular","fa-spinner","fa-spin"],["title","Stop following",1,"uk-button","uk-button-tertiary","k-button-rounded",3,"ngClass","click"]],template:function(u,Z){1&u&&(i.YNc(0,R,3,2,"ng-container",0),i.YNc(1,B,3,2,"ng-container",0)),2&u&&(i.Q6J("ngIf",!1===Z.isFollowing),i.xp6(1),i.Q6J("ngIf",!0===Z.isFollowing))},dependencies:[g.mk,g.O5]}),p})()},2914:(N,w,c)=>{c.d(w,{Z:()=>F});var a=c(1217),_=c(2722),x=c(667),l=c(9269),i=c(4650),g=c(6895);function f(p,y){1&p&&i._UZ(0,"i",6)}function m(p,y){1&p&&i._UZ(0,"i",7)}function e(p,y){if(1&p){const u=i.EpF();
1i.TgZ(0,"a",3),i.NdJ("click",function(){i.CHM(u);const U=i.oxw(2);return i.KtG(U.onLikeButtonClicked())}),i.YNc(1,f,1,0,"i",4),i.YNc(2,m,1,0,"i",5),i.qZA()}if(2&p){const u=i.oxw(2);i.Q6J("ngClass",u.cssClass),i.xp6(1),i.Q6J("ngIf",!1===u.isBusy),i.xp6(1),i.Q6J("ngIf",!0===u.isBusy)}}function C(p,y){1&p&&(i.TgZ(0,"span"),i._uU(1,"Like"),i.qZA())}function A(p,y){1&p&&(i.TgZ(0,"span"),i._UZ(1,"i",9),i._uU(2,"\xa0 Like"),i.qZA())}function v(p,y){if(1&p){const u=i.EpF();i.TgZ(0,"a",8),i.NdJ("click",function(){i.CHM(u);const U=i.oxw(2);return i.KtG(U.onLikeButtonClicked())}),i.YNc(1,C,2,0,"span",0),i.YNc(2,A,3,0,"span",0),i.qZA()}if(2&p){const u=i.oxw(2);i.Q6J("ngClass",u.cssClass),i.xp6(1),i.Q6J("ngIf",!1===u.isBusy),i.xp6(1),i.Q6J("ngIf",!0===u.isBusy)}}function R(p,y){if(1&p&&(i.ynx(0),i.YNc(1,e,3,3,"a",1),i.YNc(2,v,3,3,"a",2),i.BQk()),2&p){const u=i.oxw();i.xp6(1),i.Q6J("ngIf",!1===u.large),i.xp6(1),i.Q6J("ngIf",!0===u.large)}}function h(p,y){1&p&&i._UZ(0,"i",15)}function T(p,y){1&p&&i._UZ(0,"i",16)}function k(p,y){if(1&p){const u=i.EpF();i.TgZ(0,"a",12),i.NdJ("click",function(){i.CHM(u);const U=i.oxw(2);return i.KtG(U.onLikeButtonClicked())}),i.YNc(1,h,1,0,"i",13),i.YNc(2,T,1,0,"i",14),i.qZA()}if(2&p){const u=i.oxw(2);i.Q6J("ngClass",u.cssClass),i.xp6(1),i.Q6J("ngIf",!1===u.isBusy),i.xp6(1),i.Q6J("ngIf",!0===u.isBusy)}}function P(p,y){1&p&&(i.TgZ(0,"span"),i._uU(1,"Liked"),i.qZA())}function L(p,y){1&p&&(i.TgZ(0,"span"),i._UZ(1,"i",9),i._uU(2,"\xa0 Liked"),i.qZA())}function I(p,y){if(1&p){const u=i.EpF();i.TgZ(0,"a",17),i.NdJ("click",function(){i.CHM(u);const U=i.oxw(2);return i.KtG(U.onLikeButtonClicked())}),i.YNc(1,P,2,0,"span",0),i.YNc(2,L,3,0,"span",0),i.qZA()}if(2&p){const u=i.oxw(2);i.Q6J("ngClass",u.cssClass),i.xp6(1),i.Q6J("ngIf",!1===u.isBusy),i.xp6(1),i.Q6J("ngIf",!0===u.isBusy)}}function B(p,y){if(1&p&&(i.ynx(0),i.YNc(1,k,3,3,"a",10),i.YNc(2,I,3,3,"a",11),i.BQk()),2&p){const u=i.oxw();i.xp6(1),i.Q6J("ngIf",!1===u.large),i.xp6(1),i.Q6J("ngIf",!0===u.large)}}let F=(()=>{class p extends l.g{set kompozObject(u){this._kompozObject=u,this.updateLikeState()}constructor(u,Z){super(),this.sessionContextService=u,this.kompozObjectService=Z,this.large=!1,this.cssClass="",this._kompozObject=void 0,this._currentUser=void 0,this.isLiked=!1}ngOnInit(){this.isLiked=!1,this.sessionContextService.currentUserState.pipe((0,_.R)(this.destroy$)).subscribe({next:u=>{this._currentUser=this.sessionContextService.hasUser()?this.sessionContextService.currentUser:void 0,this.updateLikeState()}})}updateLikeState(){if(void 0===this._currentUser||void 0===this._kompozObject)return;this.isLiked=!1,this.isBusy=!0;let u=(new a.RR).withObject(this._kompozObject).withUser(this._currentUser).withLimit(0,1).build();this.kompozObjectService.searchLikers(u).pipe((0,_.R)(this.destroy$)).subscribe({next:Z=>{this.isBusy=!1,this.isLiked=1===Z.length},error:Z=>{this.isBusy=!1}})}onLikeButtonClicked(){void 0!==this._currentUser&&void 0!==this._kompozObject?!0===this.isLiked?(this.isBusy=!0,this.kompozObjectService.unLikeKompozObject(this.sessionContextService.accessToken,this._kompozObject).pipe((0,_.R)(this.destroy$)).subscribe({next:()=>{this.isBusy=!1,this.isLiked=!1},error:u=>{this.isBusy=!1,this.showError(u)}})):(this.isBusy=!0,this.kompozObjectService.likeKompozObject(this.sessionContextService.accessToken,this._kompozObject).pipe((0,_.R)(this.destroy$)).subscribe({next:()=>{this.isBusy=!1,this.isLiked=!0},error:u=>{this.isBusy=!1,this.showError(u)}})):this.toast("Please sign-in to like this.")}}return p.\u0275fac=function(u){return new(u||p)(i.Y36(x.au),i.Y36(a.Iu))},p.\u0275cmp=i.Xpm({type:p,selectors:[["kmpzu-like-button"]],inputs:{kompozObject:"kompozObject",large:"large",cssClass:"cssClass"},features:[i.qOj],decls:2,vars:2,consts:[[4,"ngIf"],["class","uk-icon-button uk-button-default","title","Like",3,"ngClass","click",4,"ngIf"],["class","uk-button uk-button-default k-button-rounded","title","Like",3,"ngClass","click",4,"ngIf"],["title","Like",1,"uk-icon-button","uk-button-default",3,"ngClass","click"],["class","fa-sharp fa-light fa-heart","title","Like",4,"ngIf"],["class","fa-sharp fa-regular fa-spinner fa-spin","title","Like",4,"ngIf"],["title","Like",1,"fa-sharp","fa-light","fa-heart"],["title","Like",1,"fa-sharp","fa-regular","fa-spinner","fa-spin"],["title","Like",1,"uk-button","uk-button-default","k-button-rounded",3,"ngClass","click"],[1,"fa-sharp","fa-regular","fa-spinner","fa-spin"],["class","uk-icon-button uk-button-tertiary","title","Un-like",3,"ngClass","click",4,"ngIf"],["class","uk-button uk-button-tertiary k-button-rounded","title","Un-like",3,"ngClass","click",4,"ngIf"],["title","Un-like",1,"uk-icon-button","uk-button-tertiary",3,"ngClass","click"],["class","fa-sharp fa-light fa-heart","title","Liked",4,"ngIf"],["class","fa-sharp fa-regular fa-spinner fa-spin","title","Liked",4,"ngIf"],["title","Liked",1,"fa-sharp","fa-light","fa-heart"],["title","Liked",1,"fa-sharp","fa-regular","fa-spinner","fa-spin"],["title","Un-like",1,"uk-button","uk-button-tertiary","k-button-rounded",3,"ngClass","click"]],template:function(u,Z){1&u&&(i.YNc(0,R,3,2,"ng-container",0),i.YNc(1,B,3,2,"ng-container",0)),2&u&&(i.Q6J("ngIf",!1===Z.isLiked),i.xp6(1),i.Q6J("ngIf",!0===Z.isLiked))},dependencies:[g.mk,g.O5]}),p})()},701:(N,w,c)=>{c.d(w,{a:()=>R});var a=c(9269),_=c(1217),x=c(2722),l=c(4650),i=c(6895),g=c(7418);function f(h,T){1&h&&(l.ynx(0),l._UZ(1,"div",1),l.BQk())}function m(h,T){1&h&&(l.TgZ(0,"span",6),l._uU(1,", "),l.qZA())}function e(h,T){if(1&h&&(l.ynx(0),l.TgZ(1,"a",4),l._uU(2),l.qZA(),l.YNc(3,m,2,0,"span",5),l.BQk()),2&h){const k=T.$implicit,P=T.last;l.xp6(1),l.MGl("routerLink","/user/",k.userName,""),l.hYB("title","",k.firstName," ",k.lastName,""),l.xp6(1),l.Oqu(k.userName),l.xp6(1),l.Q6J("ngIf",!1===P)}}function C(h,T){if(1&h&&(l.TgZ(0,"div")(1,"a",4),l._uU(2),l.qZA()()),2&h){const k=T.$implicit;l.xp6(1),l.MGl("routerLink","/user/",k.userName,""),l.hYB("title","",k.firstName," ",k.lastName,""),l.xp6(1),l.Oqu(k.userName)}}function A(h,T){if(1&h&&(l.TgZ(0,"div",7),l._uU(1," \xa0 "),l.TgZ(2,"a",6),l._uU(3),l.qZA(),l.TgZ(4,"div",8),l.YNc(5,C,3,4,"div",2),l.qZA()()),2&h){const k=l.oxw(2);l.xp6(3),l.hij("+ ",k.kompozObject.likeCount-k.likers.length," more"),l.xp6(2),l.Q6J("ngForOf",k.moreLikers)}}function v(h,T){if(1&h&&(l.ynx(0),l.YNc(1,e,4,5,"ng-container",2),l.YNc(2,A,6,2,"div",3),l.BQk()),2&h){const k=l.oxw();let P;l.xp6(1),l.Q6J("ngForOf",k.likers),l.xp6(1),l.Q6J("ngIf",k.likers.length<(null!==(P=null==k.kompozObject?null:k.kompozObject.likeCount)&&void 0!==P?P:0))}}let R=(()=>
1{class h extends a.g{constructor(k){super(),this.kompozObjectService=k,this.count=5,this.more=20,this.likers=[],this.moreLikers=[]}ngOnInit(){}ngOnChanges(k){void 0!==this.kompozObject&&0!==this.kompozObject.likeCount?this.onLoadLikers():this.likers=[]}onLoadLikers(){this.isBusy=!0,this.likers=[],this.moreLikers=[];let k=(new _.RR).withObject(this.kompozObject).withLimit(0,this.count+this.more).build();this.kompozObjectService.searchLikers(k).pipe((0,x.R)(this.destroy$)).subscribe({next:P=>{this.likers=P.slice(0,this.count),P.length>this.count&&this.more>0&&(this.moreLikers=P.slice(this.count,this.count+this.more)),this.isBusy=!1},error:P=>{this.isBusy=!1}})}}return h.\u0275fac=function(k){return new(k||h)(l.Y36(_.Iu))},h.\u0275cmp=l.Xpm({type:h,selectors:[["kmpzu-likes-viewer"]],inputs:{kompozObject:"kompozObject",count:"count",more:"more"},features:[l.qOj,l.TTD],decls:2,vars:2,consts:[[4,"ngIf"],["uk-spinner",""],[4,"ngFor","ngForOf"],["class","uk-inline",4,"ngIf"],[1,"uk-text-small","uk-text-light","uk-text-muted",3,"routerLink","title"],["class","uk-text-small uk-text-light uk-text-muted",4,"ngIf"],[1,"uk-text-small","uk-text-light","uk-text-muted"],[1,"uk-inline"],["uk-dropdown","mode:hover;"]],template:function(k,P){1&k&&(l.YNc(0,f,2,0,"ng-container",0),l.YNc(1,v,3,2,"ng-container",0)),2&k&&(l.Q6J("ngIf",!0===P.isBusy),l.xp6(1),l.Q6J("ngIf",!1===P.isBusy&&void 0!==P.kompozObject&&0!==P.likers.length))},dependencies:[i.sg,i.O5,g.rH]}),h})()},6414:(N,w,c)=>{c.d(w,{u:()=>A});var a=c(1217),_=c(2722),x=c(4445),l=c(9269),i=c(4650),g=c(6895),f=c(8270),m=c(1308);function e(v,R){1&v&&(i.TgZ(0,"div",4),i._UZ(1,"div",5),i.qZA())}function C(v,R){if(1&v&&(i.TgZ(0,"div"),i._UZ(1,"kmpzu-notification-viewer-card",6)(2,"hr"),i.qZA()),2&v){const h=R.$implicit;i.xp6(1),i.Q6J("notification",h)}}let A=(()=>{class v extends l.g{constructor(h){super(),this.kompozObjectService=h,this.kompozObject=void 0,this.reader=void 0,this.from=void 0,this.reloadSeconds=0,this.pageSize=30,this.notifications=[],this.reloadTimer=0,this.pagination=new x.tl(1,30)}ngOnInit(){}ngOnDestroy(){super.ngOnDestroy(),0!==this.reloadTimer&&(window.clearTimeout(this.reloadTimer),this.reloadTimer=0)}ngOnChanges(h){this.loadNotitications()}empty(){this.notifications=[]}loadNotitications(){if(void 0===this.kompozObject)return;0!==this.reloadTimer&&(window.clearTimeout(this.reloadTimer),this.reloadTimer=0);let h=(new a.vc).withReader(this.reader).withFromUser(this.from).withLimit(this.pagination.getRecordIndex(),this.pagination.getPageSize()+1).build();this.isBusy=!0,this.kompozObjectService.searchNotifications(this.kompozObject,h).pipe((0,_.R)(this.destroy$)).subscribe({next:T=>{this.notifications=T.slice(0,this.pagination.getPageSize()),this.isBusy=!1,this.pagination.setHasNextPage(T.length>this.pagination.getPageSize()),this.reloadSeconds>0&&(this.reloadTimer=window.setTimeout(()=>{this.loadNotitications()},1e3*this.reloadSeconds))},error:T=>{this.isBusy=!1,this.showError(T)}})}onPageNumberClicked(h){this.pagination.setPageNumber(h),this.scrollToTop(),this.loadNotitications()}}return v.\u0275fac=function(h){return new(h||v)(i.Y36(a.Iu))},v.\u0275cmp=i.Xpm({type:v,selectors:[["kmpzu-notifications-viewer"]],inputs:{kompozObject:"kompozObject",reader:"reader",from:"from",reloadSeconds:"reloadSeconds",pageSize:"pageSize"},features:[i.qOj,i.TTD],decls:5,vars:4,consts:[["class","uk-text-center",4,"ngIf"],[4,"ngFor","ngForOf"],[1,"uk-margin-top"],[3,"pagination","hideIfOne","pageNumberClicked"],[1,"uk-text-center"],["uk-spinner",""],[3,"notification"]],template:function(h,T){1&h&&(i.YNc(0,e,2,0,"div",0),i.YNc(1,C,3,1,"div",1),i._UZ(2,"br"),i.TgZ(3,"div",2)(4,"kmpzu-pagination",3),i.NdJ("pageNumberClicked",function(P){return T.onPageNumberClicked(P)}),i.qZA()()),2&h&&(i.Q6J("ngIf",!0===T.isBusy),i.xp6(1),i.Q6J("ngForOf",T.notifications),i.xp6(3),i.Q6J("pagination",T.pagination)("hideIfOne",!0))},dependencies:[g.sg,g.O5,f.Q,m.P]}),v})()},6194:(N,w,c)=>{c.d(w,{m:()=>g});var a=c(4650),_=c(4006),x=c(8741),l=c(6895);function i(f,m){if(1&f){const e=a.EpF();a.TgZ(0,"span",7),a.NdJ("click",function(){const v=a.CHM(e).$implicit,R=a.oxw();return a.KtG(R.onTagClicked(v))}),a._uU(1),a._UZ(2,"i",8),a.qZA()}if(2&f){const e=m.$implicit;a.xp6(1),a.hij("\xa0 ",e,"\xa0 ")}}let g=(()=>{class f{set tagString(e){this.tags=x._.stringToArray(e,",")}constructor(){this.tags=[],this.tagsChanged=new a.vpe,this.tagInputForm=new _.nJ({keywords:new _.p4("")})}ngOnInit(){}onKeywordKeyDown(e){if(","===e.key||";"===e.key||"Enter"===e.key||"Tab"===e.key){let C=(this.tagInputForm.get("keywords")?.value??"").trim();""!==C&&(this.tags.push(C.toLowerCase()),this.tagsChanged.emit(this.tags)),this.tagInputForm.get("keywords")?.setValue(""),e.stopPropagation(),e.preventDefault()}}onKeywordBlur(e){let C=(this.tagInputForm.get("keywords")?.value??"").trim();""!==C&&(this.tags.push(C.toLowerCase()),this.tagInputForm.get("keywords")?.setValue("")),this.tagsChanged.emit(this.tags)}onTagClicked(e){this.tags=this.tags.filter(C=>C!==e),this.tagsChanged.emit(this.tags)}}return f.\u0275fac=function(e){return new(e||f)},f.\u0275cmp=a.Xpm({type:f,selectors:[["kmpzu-tag-input"]],inputs:{tags:"tags",tagString:"tagString"},outputs:{tagsChanged:"tagsChanged"},decls:7,vars:2,consts:[[3,"formGroup"],[1,"k-chip-container"],["uk-grid","",1,"uk-grid-small"],[1,"uk-width-auto",2,"padding-top","6px"],["class","k-chip",3,"click",4,"ngFor","ngForOf"],[1,"uk-width-expand"],["formControlName","keywords",1,"uk-input",2,"border","1p
1x solid transparent",3,"keydown","blur"],[1,"k-chip",3,"click"],[1,"fa-sharp","fa-light","fa-times","uk-text-muted"]],template:function(e,C){1&e&&(a.TgZ(0,"form",0)(1,"div",1)(2,"div",2)(3,"div",3),a.YNc(4,i,3,1,"span",4),a.qZA(),a.TgZ(5,"div",5)(6,"input",6),a.NdJ("keydown",function(v){return C.onKeywordKeyDown(v)})("blur",function(v){return C.onKeywordBlur(v)}),a.qZA()()()()()),2&e&&(a.Q6J("formGroup",C.tagInputForm),a.xp6(4),a.Q6J("ngForOf",C.tags))},dependencies:[l.sg,_._Y,_.Fj,_.JJ,_.JL,_.sg,_.u]}),f})()},4329:(N,w,c)=>{c.d(w,{Z:()=>g});var a=c(4650),_=c(7007),x=c(6895);function l(f,m){if(1&f&&a._UZ(0,"i"),2&f){const e=a.oxw();a.Gre("",e.icon," uk-margin-small-right")}}const i=["*"];let g=(()=>{class f{constructor(e){this.signalService=e,this.id="",this.title="What's this?",this.icon=void 0}ngOnInit(){}onClick(){this.signalService.signalHelpTip(this.id)}}return f.\u0275fac=function(e){return new(e||f)(a.Y36(_.g))},f.\u0275cmp=a.Xpm({type:f,selectors:[["kmpzu-whats-this-button"]],inputs:{id:"id",title:"title",icon:"icon"},ngContentSelectors:i,decls:4,vars:2,consts:[[1,"uk-text-small","uk-text-light",3,"click"],[3,"class",4,"ngIf"]],template:function(e,C){1&e&&(a.F$t(),a.Hsn(0),a.TgZ(1,"a",0),a.NdJ("click",function(){return C.onClick()}),a.YNc(2,l,1,3,"i",1),a._uU(3),a.qZA()),2&e&&(a.xp6(2),a.Q6J("ngIf",void 0!==C.icon),a.xp6(1),a.Oqu(C.title))},dependencies:[x.O5]}),f})()},9857:(N,w,c)=>{c.r(w),c.d(w,{RadioFeatureLibModule:()=>Xe});var a=c(6895),_=c(7418),x=c(4006),l=c(7217),i=c(2518),g=c(1217),f=c(8589),m=c(2722),e=c(4650);function C(s,r){if(1&s){const t=e.EpF();e.TgZ(0,"div")(1,"form",9)(2,"div",10)(3,"label",11),e._uU(4,"Release URL"),e.qZA(),e._UZ(5,"br"),e.TgZ(6,"div",12)(7,"a",13),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.onCopyUrl())}),e._UZ(8,"i",14),e.qZA(),e._UZ(9,"input",15),e.qZA()(),e.TgZ(10,"div",10)(11,"label",11),e._uU(12,"Short URL"),e.qZA(),e._UZ(13,"br"),e.TgZ(14,"div",12)(15,"a",13),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.onCopyShortUrl())}),e._UZ(16,"i",14),e.qZA(),e._UZ(17,"input",16),e.qZA()(),e._UZ(18,"br"),e.TgZ(19,"div",10)(20,"label",17),e._uU(21,"Audio Player Embed HTML"),e.qZA(),e.TgZ(22,"div",18),e._UZ(23,"textarea",19),e.qZA()(),e.TgZ(24,"div",10)(25,"div",18)(26,"div",20)(27,"div",21)(28,"div",22),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.onLayoutCard())}),e.TgZ(29,"span",23),e._uU(30,"Image on Left"),e.qZA(),e.TgZ(31,"div",24)(32,"div",25),e._UZ(33,"i",26),e.qZA(),e.TgZ(34,"div",27),e._UZ(35,"i",28),e.qZA()()()(),e.TgZ(36,"div",21)(37,"div",22),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.onLayoutTile())}),e.TgZ(38,"span",23),e._uU(39,"Image on Top"),e.qZA(),e.TgZ(40,"div"),e._UZ(41,"i",26)(42,"br")(43,"i",28),e.qZA()()()(),e.TgZ(44,"div",29)(45,"a",30),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.onCopyEmbedCode())}),e._UZ(46,"i",31),e._uU(47,"\xa0 Copy Embed Code"),e.qZA()()()()()()}if(2&s){const t=e.oxw();e.xp6(1),e.Q6J("formGroup",t.theForm)}}let A=(()=>{class s extends l.vQ{constructor(){super("share-release-modal"),this.theForm=new x.cw({url:new x.NI(""),shortUrl:new x.NI(""),embedCode:new x.NI("")})}ngOnInit(){}initWith(t){return this.release=t,this.theForm.get("url")?.setValue("https://www.kompoz.com/radio/release/"+t.objectId),this.theForm.get("shortUrl")?.setValue("https://kmpz.co/r/"+t.objectId),this.onLayoutCard(),this}onCopyUrl(){let t=this.theForm.get("url")?.value??"";this.copyToClipboard(t),this.toast("Release URL copied to clipboard")}onCopyShortUrl(){let t=this.theForm.get("shortUrl")?.value??"";this.copyToClipboard(t),this.toast("Short URL copied to clipboard")}onCopyEmbedCode(){let t=this.theForm.get("embedCode")?.value??"";this.copyToClipboard(t),this.toast("Embed code copied to clipboard")}onLayoutTile(){this.theForm.get("embedCode")?.setValue(`<iframe src="https://player.kompoz.com/release/${this.release?.objectId}?format=tile" width="560" height="560" scrolling="no" frameborder="0"></iframe>`)}onLayoutCard(){this.theForm.get("embedCode")?.setValue(`<iframe src="https://player.kompoz.com/release/${this.release?.objectId}?format=card" width="100%" height="300" scrolling="no" frameborder="0"></iframe>`)}}return s.\u0275fac=function(t){return new(t||s)},s.\u0275cmp=e.Xpm({type:s,selectors:[["radf-share-release-modal"]],features:[e.qOj],decls:11,vars:2,consts:[["uk-modal","",3,"id"],[1,"uk-modal-dialog"],["type","button","uk-close","",1,"uk-modal-close-default"],[1,"uk-modal-header"],[1,"uk-modal-title"],["uk-overflow-auto","",1,"uk-modal-body"],[4,"ngIf"],[1,"uk-modal-footer"],["type","button",1,"uk-button","uk-button-primary","k-button-rounded","k-button-transparent","uk-modal-close"],[3,"formGroup"],[1,"uk-margin"],[1,"uk-form-label","k-required"],[1,"uk-inline",2,"width","100%"],["title","Copy to clipboard",1,"uk-form-icon","uk-form-icon-flip",3,"click"],["title","Copy to clipboard",1,"fa-sharp","fa-regular","fa-copy"],["formControlName","url","type","text","placeholder","","autocomplete","off",1,"uk-input"],["formControlName","shortUrl","type","text","placeholder","","autocomplete","off",1,"uk-input"],["for","url","title","URL",1,"uk-form-label","k-required"],[1,"uk-form-control
1s"],["formControlName","embedCode","rows","3",1,"uk-textarea"],["uk-grid","",1,"uk-grid-small"],[1,"uk-width-1-2","uk-text-center"],[1,"k-selectable-div","single",2,"min-height","80px",3,"click"],[1,"uk-text-small","uk-text-light","uk-text-muted"],["uk-grid","",1,"uk-grid-collapse"],[1,"uk-width-1-2","uk-text-right"],[1,"fa-sharp","fa-solid","fa-image","uk-text-muted","fa-1x","fa-fw"],[1,"uk-width-1-2","uk-text-left"],[1,"fa-sharp","fa-solid","fa-align-left","uk-text-muted","fa-1x","fa-fw"],[1,"uk-text-right","uk-margin"],["title","Copy to clipboard",1,"uk-button","uk-button-small","uk-button-secondary","k-button-rounded",3,"click"],[1,"fa-sharp","fa-light","fa-copy"]],template:function(t,n){1&t&&(e.TgZ(0,"div",0)(1,"div",1),e._UZ(2,"button",2),e.TgZ(3,"div",3)(4,"span",4),e._uU(5,"Share Song"),e.qZA()(),e.TgZ(6,"div",5),e.YNc(7,C,48,1,"div",6),e.qZA(),e.TgZ(8,"div",7)(9,"button",8),e._uU(10,"Close"),e.qZA()()()()),2&t&&(e.s9C("id",n.modalId),e.xp6(7),e.Q6J("ngIf",void 0!==n.release))},dependencies:[a.O5,x._Y,x.Fj,x.JJ,x.JL,x.sg,x.u]}),s})();var v=c(8617),R=c(635),h=c(6414),T=c(8281),k=c(2914),P=c(709),L=c(701),I=c(9033);function B(s,r){1&s&&(e.TgZ(0,"div",2),e._UZ(1,"div",3),e.qZA())}function F(s,r){if(1&s&&(e.TgZ(0,"tr")(1,"td",7)(2,"a",8),e._UZ(3,"img",9),e.ALo(4,"kompozImage"),e.qZA()(),e.TgZ(5,"td")(6,"a",10),e._uU(7),e.qZA(),e._UZ(8,"br"),e.TgZ(9,"span",11),e._uU(10),e.qZA(),e._UZ(11,"br")(12,"span",12),e.ALo(13,"lowercase"),e._uU(14,"\xa0 "),e.TgZ(15,"span",13),e._uU(16),e.qZA()(),e.TgZ(17,"td",14),e._uU(18),e.qZA()()),2&s){const t=r.$implicit;e.xp6(2),e.MGl("routerLink","/radio/artist/",null==t.user?null:t.user.userName,""),e.s9C("title",null==t.user?null:t.user.userName),e.xp6(1),e.Gre("uk-border-circle plan-",null==t.user||null==t.user.subscriptionPlan?null:t.user.subscriptionPlan.planId,""),e.s9C("src",e.lcZ(4,17,t.user),e.LSH),e.s9C("alt",null==t.user?null:t.user.userName),e.xp6(3),e.MGl("routerLink","/radio/artist/",null==t.user?null:t.user.userName,""),e.xp6(1),e.Oqu(null==t.user?null:t.user.userName),e.xp6(3),e.AsE("",null==t.user?null:t.user.firstName," ",null==t.user?null:t.user.lastName,""),e.xp6(2),e.Gre("flag-icon flag-icon-",e.lcZ(13,19,null==t.user||null==t.user.country?null:t.user.country.countryCodeISO2),""),e.s9C("title",null==t.user||null==t.user.country?null:t.user.country.countryName),e.xp6(4),e.Oqu(null==t.user||null==t.user.country?null:t.user.country.countryName),e.xp6(2),e.hij(" ",t.linerNotes," ")}}function p(s,r){if(1&s&&(e.TgZ(0,"div")(1,"h3",4),e._uU(2,"Composition"),e.qZA(),e.TgZ(3,"table",5)(4,"tbody"),e.YNc(5,F,19,21,"tr",6),e.qZA()()()),2&s){const t=e.oxw();e.xp6(5),e.Q6J("ngForOf",t.releaseUsersForComposition)}}function y(s,r){if(1&s&&(e.TgZ(0,"tr")(1,"td",7)(2,"a",8),e._UZ(3,"img",15),e.ALo(4,"kompozImage"),e.qZA()(),e.TgZ(5,"td")(6,"a",10),e._uU(7),e.qZA(),e._UZ(8,"br"),e.TgZ(9,"span",11),e._uU(10),e.qZA(),e._UZ(11,"br")(12,"span",12),e.ALo(13,"lowercase"),e._uU(14,"\xa0 "),e.TgZ(15,"span",13),e._uU(16),e.qZA()(),e.TgZ(17,"td",14),e._uU(18),e.qZA()()),2&s){const t=r.$implicit;e.xp6(2),e.MGl("routerLink","/radio/artist/",null==t.user?null:t.user.userName,""),e.s9C("title",null==t.user?null:t.user.userName),e.xp6(1),e.Gre("uk-border-circle plan-",null==t.user||null==t.user.subscriptionPlan?null:t.user.subscriptionPlan.planId,""),e.s9C("src",e.lcZ(4,16,t.user),e.LSH),e.xp6(3),e.MGl("routerLink","/radio/artist/",null==t.user?null:t.user.userName,""),e.xp6(1),e.Oqu(null==t.user?null:t.user.userName),e.xp6(3),e.AsE("",null==t.user?null:t.user.firstName," ",null==t.user?null:t.user.lastName,""),e.xp6(2),e.Gre("flag-icon flag-icon-",e.lcZ(13,18,null==t.user||null==t.user.country?null:t.user.country.countryCodeISO2),""),e.s9C("title",null==t.user||null==t.user.country?null:t.user.country.countryName),e.xp6(4),e.Oqu(null==t.user||null==t.user.country?null:t.user.country.countryName),e.xp6(2),e.hij(" ",t.linerNotes," ")}}function u(s,r){if(1&s&&(e.TgZ(0,"div")(1,"h3",4),e._uU(2,"Sound Recording"),e.qZA(),e.TgZ(3,"table",5)(4,"tbody"),e.YNc(5,y,19,20,"tr",6),e.qZA()()()),2&s){const t=e.oxw();e.xp6(5),e.Q6J("ngForOf",t.releaseUsersForSoundRecording)}}let Z=(()=>{class s extends l.gE{set release(t){this.loadUsers(t)}constructor(t){super(),this.releaseService=t,this.releaseUsersForComposition=[],this.releaseUsersForSoundRecording=[]}ngOnInit(){}loadUsers(t){if(void 0===t)return this.releaseUsersForComposition=[],void(this.releaseUsersForSoundRecording=[]);this.isBusy=!0,this.releaseService.getReleaseUsers(t).pipe((0,m.R)(this.destroy$)).subscribe({next:n=>{this.releaseUsersForComposition=n.filter(o=>o.categoryCode===g.gD.COMPOSITION),this.releaseUsersForSoundRecording=n.filter(o=>o.categoryCode===g.gD.SOUND_RECORDING),this.isBusy=!1},error:n=>{this.isBusy=!1,this.toast(n.error.message,"danger")}})}}return s.\u0275fac=function(t){return new(t||s)(e.Y36(g.x8))},s.\u0275cmp=e.Xpm({type:s,selectors:[["radf-release-users"]],inputs:{release:"release"},features:[e.qOj],decls:3,vars:3,consts:[["class","uk-text-center",4,"ngIf"],[4,"ngIf"],[1,"uk-text-center"],["uk-spinner",""],[1,"uk-text-muted","uk-text-light"],[1,"uk-table","uk-table-divider"],[4,"ngFor","ngForOf"],[2,"width","70px"],[3,"routerLink","title"],["width","65","height","65",3,"src","alt"],["t
1itle","View artist page",3,"routerLink"],[1,"uk-text-bold"],[3,"title"],[1,"uk-text-small","uk-text-muted"],[1,"uk-text-middle","uk-text-right"],["width","65","height","65",3,"src"]],template:function(t,n){1&t&&(e.YNc(0,B,2,0,"div",0),e.YNc(1,p,6,1,"div",1),e.YNc(2,u,6,1,"div",1)),2&t&&(e.Q6J("ngIf",!0===n.isBusy),e.xp6(1),e.Q6J("ngIf",!1===n.isBusy&&0!==n.releaseUsersForComposition.length),e.xp6(1),e.Q6J("ngIf",!1===n.isBusy&&0!==n.releaseUsersForSoundRecording.length))},dependencies:[a.sg,a.O5,_.rH,a.i8,I.C]}),s})();var U=c(8406);function W(s,r){1&s&&(e.TgZ(0,"div",3),e._UZ(1,"div",4),e.qZA())}function V(s,r){1&s&&e._UZ(0,"i",37)}function X(s,r){1&s&&e._UZ(0,"i",38)}function ee(s,r){if(1&s&&(e.TgZ(0,"div")(1,"div",39)(2,"span",40),e._uU(3),e.ALo(4,"number"),e.qZA()(),e._UZ(5,"kmpzu-likes-viewer",41),e.qZA()),2&s){const t=e.oxw(3);e.xp6(3),e.hij("",e.lcZ(4,4,t.currentRelease.likeCount)," likes"),e.xp6(2),e.Q6J("kompozObject",t.currentRelease)("count",4)("more",20)}}function te(s,r){if(1&s&&(e.TgZ(0,"div")(1,"h3"),e._uU(2,"Liner Notes"),e.qZA(),e._UZ(3,"div",42),e.qZA()),2&s){const t=e.oxw(3);e.xp6(3),e.Q6J("innerHtml",t.currentRelease.linerNotes,e.oJD)}}function ie(s,r){if(1&s&&(e.TgZ(0,"div")(1,"h3"),e._uU(2,"Lyrics"),e.qZA(),e._UZ(3,"div",43),e.qZA()),2&s){const t=e.oxw(3);e.xp6(3),e.Q6J("innerText",t.currentRelease.lyrics)}}const ne=function(s,r){return{channel:s,genre:r}};function se(s,r){if(1&s){const t=e.EpF();e.TgZ(0,"div",10)(1,"div",11)(2,"a",12),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.onPlay())}),e._UZ(3,"img",13),e.ALo(4,"kompozImage"),e.qZA(),e._UZ(5,"br"),e.TgZ(6,"p")(7,"a",14)(8,"span",15),e._uU(9),e.qZA()()(),e.TgZ(10,"table",16)(11,"tbody")(12,"tr")(13,"td"),e._uU(14,"Released"),e.qZA(),e.TgZ(15,"td"),e._uU(16),e.ALo(17,"date"),e.qZA()(),e.TgZ(18,"tr")(19,"td"),e._uU(20,"Publisher"),e.qZA(),e.TgZ(21,"td"),e._uU(22,"Kompoz"),e.qZA()(),e.TgZ(23,"tr")(24,"td"),e._uU(25,"BPM"),e.qZA(),e.TgZ(26,"td"),e._uU(27),e.qZA()(),e.TgZ(28,"tr")(29,"td",17),e._uU(30),e.ALo(31,"date"),e.qZA()()()()(),e.TgZ(32,"div",18)(33,"div",19)(34,"div",20)(35,"h1",21),e._uU(36),e.qZA()(),e.TgZ(37,"div",22),e._UZ(38,"kmpzu-like-button",23)(39,"kmpzu-follow-button",23),e.TgZ(40,"a",24),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.onAddToPlaylist())}),e.YNc(41,V,1,0,"i",25),e.YNc(42,X,1,0,"i",26),e.qZA(),e.TgZ(43,"a",27),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.onShare())}),e._UZ(44,"i",28),e.qZA(),e._UZ(45,"kmpzu-flagged-content-button",29),e.qZA()(),e.TgZ(46,"div",30)(47,"div",20)(48,"a",31),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.onPlay())}),e._UZ(49,"i",32),e._uU(50,"\xa0 Play"),e.qZA(),e.TgZ(51,"a",33),e.ALo(52,"collaborationUrl"),e._uU(53,"Collaboration"),e.qZA()(),e.TgZ(54,"div",34),e.YNc(55,ee,6,6,"div",35),e.qZA()(),e._UZ(56,"br")(57,"br")(58,"radf-release-users",36)(59,"br"),e.YNc(60,te,4,1,"div",35),e.YNc(61,ie,4,1,"div",35),e.qZA()()}if(2&s){const t=e.oxw(2);let n,o;e.xp6(2),e.s9C("title",t.currentRelease.releaseTitle),e.xp6(1),e.s9C("src",e.lcZ(4,22,t.currentRelease),e.LSH),e.xp6(4),e.Q6J("queryParams",e.WLB(32,ne,null==t.currentRelease.collaboration||null==t.currentRelease.collaboration.genre?null:t.currentRelease.collaboration.genre.channelId,null==t.currentRelease.collaboration||null==t.currentRelease.collaboration.genre?null:t.currentRelease.collaboration.genre.genreId)),e.xp6(2),e.Oqu(null==t.currentRelease.collaboration||null==t.currentRelease.collaboration.genre?null:t.currentRelease.collaboration.genre.genreTitle),e.xp6(7),e.Oqu(e.xi3(17,24,t.currentRelease.releaseDate,"MMMM yyyy")),e.xp6(11),e.Oqu(0===(null==t.currentRelease.collaboration?null:t.currentRelease.collaboration.bpm)?"":null==t.currentRelease.collaboration?null:t.currentRelease.collaboration.bpm),e.xp6(3),e.AsE(" Copyright (c) ",e.xi3(31,27,t.currentRelease.releaseDate,"yyyy")," ",null==t.currentRelease.userNameCredits||null==(n=t.currentRelease.userNameCredits.split(","))?null:n.join(", ")," "),e.xp6(6),e.Oqu(t.currentRelease.releaseTitle),e.xp6(2),e.Q6J("kompozObject",t.currentRelease)("large",!1),e.xp6(1),e.Q6J("kompozObject",t.currentRelease)("large",!1),e.xp6(2),e.Q6J("ngIf",!1===t.isBusyPlaylist),e.xp6(1),e.Q6J("ngIf",!0===t.isBusyPlaylist),e.xp6(3),e.Q6J("title",t.currentRelease.releaseTitle)("kompozObject",t.currentRelease),e.xp6(6),e.s9C("routerLink",e.lcZ(52,30,t.currentRelease.collaboration)),e.xp6(4),e.Q6J("ngIf",0!==(null!==(o=null==t.currentRelease?null:t.currentRelease.likeCount)&&void 0!==o?o:0)),e.xp6(3),e.Q6J("release",t.currentRelease),e.xp6(2),e.Q6J("ngIf",void 0!==t.currentRelease.linerNotes&&""!==t.currentRelease.linerNotes),e.xp6(1),e.Q6J("ngIf",void 0!==t.currentRelease.lyrics&&""!==t.currentRelease.lyrics)}}function oe(s,r){if(1&s&&(e.TgZ(0,"div",5)(1,"div",6),e.YNc(2,se,62,35,"div",7),e.qZA(),e._UZ(3,"br")(4,"kmpzu-comments-viewer",8)(5,"br")(6,"kmpzu-notifications-viewer",9),e.qZA()),2&s){const t=e.oxw();e.xp6(2),e.Q6J("ngIf",void 0!==t.currentRelease),e.xp6(2),e.Q6J("object",t.currentRelease)("readonly",!1),e.xp6(2),e.Q6J("kompozObject",t.currentRelease)("reloadSeconds",120)("pageSize",30)}}let ae=(()=>{class s extends l.gE{constructor(t,n,o,d,b,O,S,E){super(),this.sessionContext=t,this.releaseService=n,this.playlistService=o,this.kompozObjectService=d,this.pageService=b,this.audioPlayerLoaderService=O,this.activatedRoute=S,this.router=E,this.currentRelease=void 0,this.isBusyPlaylist=!1}ngOnInit(){this.pageService.setTitleAndTab("Loading...",l.W$.RADIO),this.scrollToTop(),this.activatedRoute.paramMap.pipe((0,m.R)(this.destroy$)).subscribe({next:t=>{const n=+(t.get("releaseId")??0);this.loadRelease(n)}})}loadRelease(t){this.isBusy=!0,this.releaseService.getRelease(t).pipe((0,m.R)(this.destroy$)).subscribe({next:n=>{this.isBusy=!1,n.statusCode===f.q.RELEASED?this.onReleaseLoaded(n):this.router.navigateByUrl("/radio")},error:n=>{this.isBusy=!1,this.router.navigateByUrl("/radio")}})}onPlay(){void 0!==this.currentRelease&&this.audioPlayerLoaderService.loadRelease(this.currentRelease)}onReleaseLoaded(t){this.currentRelease=t,this.pageService.setTitle(this.currentRelease.releaseTitle),!0===this.sessionContext.hasUser()&&this.kompozObjectService.visitKompozObject(this.sessionContext.accessToken,t).pi
1pe((0,m.R)(this.destroy$)).subscribe({next:()=>{},error:n=>{}})}onReport(){}onShare(){void 0!==this.currentRelease&&this.shareReleaseModalComponent.initWith(this.currentRelease).showModal()}onAddToPlaylist(){0!=this.sessionContext.hasUser()?this.playlistPickerComponent.init().showModal():this.toast("Please sign-in to add to a playlist")}onPlaylistPicked(t){this.playlistPickerComponent.hideModal(),this.isBusyPlaylist=!0,this.playlistService.addReleaseToPlaylist(this.sessionContext.accessToken,t,this.currentRelease).subscribe({next:n=>{this.toast("Added to playlist "+t.title),this.isBusyPlaylist=!1},error:n=>{this.showError(n),this.isBusyPlaylist=!1}})}}return s.\u0275fac=function(t){return new(t||s)(e.Y36(l.au),e.Y36(g.x8),e.Y36(g.r$),e.Y36(g.Iu),e.Y36(l.Ph),e.Y36(i.O7),e.Y36(_.gz),e.Y36(_.F0))},s.\u0275cmp=e.Xpm({type:s,selectors:[["radf-release-info-page"]],viewQuery:function(t,n){if(1&t&&(e.Gf(A,5),e.Gf(v.e,5)),2&t){let o;e.iGM(o=e.CRH())&&(n.shareReleaseModalComponent=o.first),e.iGM(o=e.CRH())&&(n.playlistPickerComponent=o.first)}},features:[e.qOj],decls:5,vars:2,consts:[["class","uk-container uk-text-center",4,"ngIf"],["class","uk-container",4,"ngIf"],[3,"picked"],[1,"uk-container","uk-text-center"],["uk-spinner",""],[1,"uk-container"],[1,"k-selectable-div","flat-card"],["class","uk-grid","uk-grid","",4,"ngIf"],[3,"object","readonly"],[3,"kompozObject","reloadSeconds","pageSize"],["uk-grid","",1,"uk-grid"],[1,"uk-width-1-1","uk-width-1-3@m"],[3,"title","click"],[3,"src"],["routerLink","/radio/explore","title","View more in this genre",1,"no-underline",3,"queryParams"],[1,"k-label-genre","k-label-xlarge"],[1,"uk-table","uk-table-small","uk-table-divider"],["colspan","2",1,"uk-text-small"],[1,"uk-width-1-1","uk-width-2-3@m"],["uk-grid",""],[1,"uk-width-1-1","uk-width-expand@s"],[1,"uk-margin-remove"],[1,"uk-width-1-1","uk-width-auto@s","uk-text-right@"],["cssClass","uk-margin-small-right",3,"kompozObject","large"],["title","Add to playlist",1,"uk-icon-button","uk-button-default","uk-margin-small-right",3,"click"],["class","fa-sharp fa-light fa-circle-plus","title","Add to playlist",4,"ngIf"],["class","fa-sharp fa-regular fa-spinner fa-spin","title","Add to playlist",4,"ngIf"],["title","Share",1,"uk-icon-button","uk-button-default","uk-margin-small-right",3,"click"],["title","Share",1,"fa-sharp","fa-light","fa-share-nodes"],[3,"title","kompozObject"],["uk-grid","",1,"uk-grid-small"],["title","Play audio",1,"uk-button","uk-button-primary","k-button-rounded","uk-margin-small-right",3,"click"],[1,"fa-sharp","fa-solid","fa-play"],["title","Go to collaboration",1,"uk-button","uk-button-secondary","k-button-rounded",3,"routerLink"],[1,"uk-width-1-1","uk-width-auto@s"],[4,"ngIf"],[3,"release"],["title","Add to playlist",1,"fa-sharp","fa-light","fa-circle-plus"],["title","Add to playlist",1,"fa-sharp","fa-regular","fa-spinner","fa-spin"],[1,"uk-text-right@s"],[1,"uk-margin-small-left","uk-text-light"],[3,"kompozObject","count","more"],[3,"innerHtml"],[2,"white-space","pre-line",3,"innerText"]],template:function(t,n){1&t&&(e._UZ(0,"br"),e.YNc(1,W,2,0,"div",0),e.YNc(2,oe,7,6,"div",1),e._UZ(3,"radf-share-release-modal"),e.TgZ(4,"kmpzu-playlist-picker",2),e.NdJ("picked",function(d){return n.onPlaylistPicked(d)}),e.qZA()),2&t&&(e.xp6(1),e.Q6J("ngIf",void 0===n.currentRelease),e.xp6(1),e.Q6J("ngIf",void 0!==n.currentRelease))},dependencies:[a.O5,_.rH,R.Q,h.u,T.I,k.Z,P.X,v.e,L.a,Z,A,a.JJ,a.uU,I.C,U.M]}),s})();var M=c(8270);function le(s,r){1&s&&(e.TgZ(0,"div",10),e._UZ(1,"div",11),e.qZA())}function re(s,r){if(1&s&&(e.TgZ(0,"div",0)(1,"div",12)(2,"a",13),e._UZ(3,"img",14),e.ALo(4,"uppercase"),e.ALo(5,"kompozImage"),e.qZA(),e.TgZ(6,"div",15)(7,"span"),e.ALo(8,"uppercase"),e._uU(9),e.qZA()()(),e.TgZ(10,"div",16)(11,"a",17),e._uU(12),e.qZA(),e._UZ(13,"br"),e.TgZ(14,"span",18),e._uU(15),e.qZA(),e._UZ(16,"br")(17,"span",19),e.ALo(18,"lowercase"),e._uU(19," \xa0 "),e.TgZ(20,"span",20),e._uU(21),e.qZA()(),e._UZ(22,"br"),e.TgZ(23,"p",10)(24,"a",21),e._uU(25,"Full Profile"),e.qZA()()()),2&s){const t=e.oxw();e.xp6(2),e.MGl("routerLink","/user/",t.currentUser.userName,""),e.s9C("title",t.currentUser.userName),e.xp6(1),e.Gre("uk-border-circle plan-",e.lcZ(4,21,null==t.currentUser.subscriptionPlan?null:t.currentUser.subscriptionPlan.planTitle)," large"),e.s9C("src",e.lcZ(5,23,t.currentUser),e.LSH),e.s9C("title",t.currentUser.userName),e.xp6(4),e.Gre("label plan-",e.lcZ(8,25,null==t.currentUser.subscriptionPlan?null:t.currentUser.subscriptionPlan.planTitle),""),e.xp6(2),e.Oqu(null==t.currentUser.subscriptionPlan?null:t.currentUser.subscriptionPlan.planTitle),e.xp6(2),e.MGl("routerLink","/user/",t.currentUser.userName,""),e.xp6(1),e.Oqu(t.currentUser.userName),e.xp6(3),e.AsE("",t.currentUser.firstName," ",t.currentUser.lastName,""),e.xp6(2),e.Gre("flag-icon flag-icon-",e.lcZ(18,27,null==t.currentUser.country?null:t.currentUser.country.countryCodeISO2),""),e.s9C("title",null==t.currentUser.country?null:t.currentUser.country.countryName),e.xp6(4),e.Oqu(null==t.currentUser.country?null:t.currentUser.country.countryName),e.xp6(3),e.MGl("routerLink","/user/",t.currentUser.userName,"")}}function ue(s,r){1&s&&(e.TgZ(0,"div",10),e._UZ(1,"div",11),e.qZA())}function ce(s,r){if(1&s){const t=e.EpF();e.TgZ(0,"tr")(1,"td",22)(2,"a",23),e._UZ(3,"img",24),e.ALo(4,"kompozImage"),e.qZA()(),e.TgZ(5,"td")(6,"a",25),e._uU(7),e.qZA(),e._UZ(8,"br"),e.TgZ(9,"span",26),e._uU(10),e.qZA(),e._UZ(11,"br"),e.TgZ(12,"span",20),e._uU(13),e.ALo(14,"date"),e.qZA(),e._UZ(15,"br"),e.TgZ(16,"a",27),e.NdJ("click",function(){const d=e.CHM(t).$implicit,b=e.oxw();return e.KtG(b.onPlay(d))}),e._UZ(17,"i",28),e.qZA()(),e.TgZ(18,"td",29),e._UZ(19,"kmpzu-like-button",30),e.TgZ(20,"a",31),e.NdJ("click",function(){const d=e.CHM(t).$implicit,b=e.oxw();return e.KtG(b.onAddToPlaylist(d))}),e._UZ(21,"i",32),e.qZA()()()}if(2&s){const t=r.$implicit;let n;e.xp6(2),e.MGl("routerLink","/radio/release/",t.objectId,""),e.xp6(1),e.s9C("src",e.lcZ(4,8,t),e.LSH),e.xp6(3),e.MGl("routerLink","/radio/release/",t.objectId,""),e.xp6(1),e.Oqu(t.releaseTitle),e.xp6(3),e.Oqu(null==t.userNameCredits||null==(n=t.userNameCredits.split(","))?null:n.join(", ")),e.xp6(3),e.Oqu(e.xi3(14,10,t.releaseDate,"MMMM yyyy")),e.xp6(6),e.Q6J("kompozObject",t)("large",!1)}}let pe=(()=>{class s extends l.gE{constructor(t,n,o,d,b,O,S,E){super(),this.sessionContext=t,this.userService=n,this.releaseService=o,this.playlistService=d,this.audioPlayerLoaderService=b,this.pageService=O,this.activatedRoute=S,this.router=E,this.currentUser=void 0,this.releases=[],this.selectedRelease=void 0,this.isBusyReleases=!1,this.pagination=new l.tl(1,50)}ngOnInit(){this.pageService.setTitleAndTab("Releases by ...",l.W$.RADIO),this.activatedRoute.paramMap.pipe((0,m.R)(this.destroy$)).subscribe({next:t=>{let n=t.get("userName")??"";this.loadUser(n)}})}loadUser(t){this.isBusy=!0,this.userService.getUser(t).pipe((0,m.R)(this.destroy$)).subscribe({next:n=>{this.currentUser=n,this.isBusy=!1,this.pageService.setTitle("Releases by "+n.userName),this.loadReleases()},error:n=>{this.isBusy=!1,this.router.navigateByUrl("/radio")}})}loadReleases(){this.isBusyReleases=!0;let t=(new g.Fb).withParticipant(this.currentUser).withStatus(f.q.RELEASED).withLim
1it(this.pagination.getRecordIndex(),this.pagination.getPageSize()+1).build();this.releaseService.searchReleases(t).pipe((0,m.R)(this.destroy$)).subscribe({next:n=>{this.releases=n.slice(0,this.pagination.getPageSize()),this.isBusyReleases=!1,this.pagination.setHasNextPage(n.length>this.pagination.getPageSize())},error:n=>{this.isBusyReleases=!1,this.router.navigateByUrl("/radio")}})}onPlay(t){this.audioPlayerLoaderService.loadRelease(t,!0)}onPageNumberClicked(t){this.pagination.setPageNumber(t),this.loadReleases(),this.scrollToTop()}onAddToPlaylist(t){0!=this.sessionContext.hasUser()?(this.selectedRelease=t,this.playlistPickerComponent.init().showModal()):this.toast("Please sign-in to add to your playlists")}onPlaylistPicked(t){this.playlistPickerComponent.hideModal(),this.playlistService.addReleaseToPlaylist(this.sessionContext.accessToken,t,this.selectedRelease).pipe((0,m.R)(this.destroy$)).subscribe({next:n=>{this.selectedRelease=void 0,this.toast("Song added to playlist "+t.title)},error:n=>{this.selectedRelease=void 0,this.showError(n)}})}}return s.\u0275fac=function(t){return new(t||s)(e.Y36(l.au),e.Y36(g.KD),e.Y36(g.x8),e.Y36(g.r$),e.Y36(i.O7),e.Y36(l.Ph),e.Y36(_.gz),e.Y36(_.F0))},s.\u0275cmp=e.Xpm({type:s,selectors:[["radf-artist-page"]],viewQuery:function(t,n){if(1&t&&e.Gf(v.e,5),2&t){let o;e.iGM(o=e.CRH())&&(n.playlistPickerComponent=o.first)}},features:[e.qOj],decls:17,vars:6,consts:[[1,"uk-container"],[1,"uk-grid"],[1,"uk-width-1-1","uk-width-1-3@s","uk-width-1-4@m"],["class","uk-text-center",4,"ngIf"],["class","uk-container",4,"ngIf"],[1,"uk-width-1-1","uk-width-2-3@s","uk-width-3-4@m"],[1,"uk-table","uk-table-divider"],[4,"ngFor","ngForOf"],[3,"pagination","hideIfOne","pageNumberClicked"],[3,"picked"],[1,"uk-text-center"],["uk-spinner",""],[2,"position","relative"],[3,"routerLink","title"],[3,"src","title"],[2,"position","absolute","bottom","5%","left","8%"],[1,"uk-margin-top","uk-text-center"],[1,"uk-text-large",3,"routerLink"],[1,"uk-text-lead"],[3,"title"],[1,"uk-text-small","uk-text-muted"],[1,"uk-button","uk-button-secondary","k-button-rounded",3,"routerLink"],[2,"width","175px"],[3,"routerLink"],["title","Release Info",3,"src"],[1,"k-text-large2",3,"routerLink"],[1,"uk-text-small"],[1,"uk-button","uk-button-primary","k-button-rounded","uk-margin-top",3,"click"],["title","Play","role","presentation",1,"fa-sharp","fa-solid","fa-play"],[1,"uk-text-right"],["cssClass","uk-margin-small-right",3,"kompozObject","large"],["title","Add to playlist",1,"uk-icon-button","uk-button-default","uk-margin-small-right",3,"click"],["title","Add to playlist",1,"fa-sharp","fa-light","fa-circle-plus"]],template:function(t,n){1&t&&(e.TgZ(0,"div",0),e._UZ(1,"br"),e.TgZ(2,"div",1)(3,"div",2),e.YNc(4,le,2,0,"div",3),e.YNc(5,re,26,29,"div",4),e.qZA(),e.TgZ(6,"div",5)(7,"h3"),e._uU(8,"Latest Releases"),e.qZA(),e.YNc(9,ue,2,0,"div",3),e.TgZ(10,"table",6)(11,"tbody"),e.YNc(12,ce,22,13,"tr",7),e.qZA()(),e._UZ(13,"br")(14,"br"),e.TgZ(15,"kmpzu-pagination",8),e.NdJ("pageNumberClicked",function(d){return n.onPageNumberClicked(d)}),e.qZA()()()(),e.TgZ(16,"kmpzu-playlist-picker",9),e.NdJ("picked",function(d){return n.onPlaylistPicked(d)}),e.qZA()),2&t&&(e.xp6(4),e.Q6J("ngIf",!0===n.isBusy),e.xp6(1),e.Q6J("ngIf",void 0!==n.currentUser),e.xp6(4),e.Q6J("ngIf",!0===n.isBusyReleases),e.xp6(3),e.Q6J("ngForOf",n.releases),e.xp6(3),e.Q6J("pagination",n.pagination)("hideIfOne",!0))},dependencies:[a.sg,a.O5,_.rH,M.Q,k.Z,v.e,a.gd,a.i8,a.uU,I.C]}),s})();var G=c(9082),J=c(7923),K=c(5064),q=c(1763),de=c(8420),Q=c(5352);function _e(s,r){if(1&s){const t=e.EpF();e.TgZ(0,"div",1)(1,"div",2)(2,"a",3),e._UZ(3,"img",4),e.ALo(4,"kompozImage"),e.qZA(),e.TgZ(5,"div",5),e._uU(6),e.qZA()(),e.TgZ(7,"div",6)(8,"h3",7),e._uU(9),e.qZA(),e.TgZ(10,"div",8),e._uU(11),e.ALo(12,"plusMore"),e.qZA(),e.TgZ(13,"span",9),e._uU(14),e.ALo(15,"dateago"),e.qZA()(),e.TgZ(16,"div",10)(17,"a",11),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.onPlay())}),e._UZ(18,"i",12),e.qZA(),e._UZ(19,"kmpzu-like-button",13),e.TgZ(20,"a",14),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.onAddToPlaylist())}),e._UZ(21,"i",15),e.qZA(),e.TgZ(22,"a",16),e._UZ(23,"i",17),e.qZA(),e.TgZ(24,"div",18)(25,"ul",19),e.ynx(26),e.TgZ(27,"li")(28,"a",20),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.onAddToPlaylist())}),e._uU(29,"Add to Playlist"),e.qZA()(),e._UZ(30,"li",21),e.BQk(),e.TgZ(31,"li")(32,"a",22),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.onPlay())}),e._uU(33,"Play"),e.qZA()(),e.TgZ(34,"li")(35,"a",23),e._uU(36,"Go To..."),e.qZA()(),e._UZ(37,"li",21),e.TgZ(38,"li")(39,"a",24),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.onReportContent())}),e._uU(40,"Report to Moderator"),e.qZA()()()()()()}if(2&s){const t=e.oxw();e.xp6(2),e.MGl("routerLink","/radio/release/",t.release.objectId,""),e.s9C("title",t.release.releaseTitle),e.xp6(1),e.s9C("src",e.lcZ(4,11,t.release),e.LSH),e.s9C("title",t.release.releaseTitle),e.xp6(3),e.hij(" ",null==t.release.collaboration||null==t.release.collaboration.genre?null:t.release.collaboration.genre.genreTitle," "),e.xp6(3),e.Oqu(t.release.releaseTitle),e.xp6(2),e.hij(" ",e.xi3(12,13,t.release.userNameCredits,3)," "),e.xp6(3),e.Oqu(e.l
1cZ(15,16,t.release.releaseDate)),e.xp6(5),e.Q6J("kompozObject",t.release)("large",!1),e.xp6(16),e.MGl("routerLink","/radio/release/",t.release.objectId,"")}}let ge=(()=>{class s{constructor(t){this.audioPlayerLoaderService=t,this.release=void 0,this.playlist=new e.vpe,this.report=new e.vpe}ngOnInit(){}onPlay(){void 0!==this.release&&this.audioPlayerLoaderService.loadRelease(this.release)}onAddToPlaylist(){this.playlist.emit(this.release)}onReportContent(){this.report.emit(this.release)}}return s.\u0275fac=function(t){return new(t||s)(e.Y36(i.O7))},s.\u0275cmp=e.Xpm({type:s,selectors:[["radf-release-card"]],inputs:{release:"release"},outputs:{playlist:"playlist",report:"report"},decls:1,vars:1,consts:[["class","uk-card uk-card-small uk-card-default uk-box-shadow-small uk-card-hover",4,"ngIf"],[1,"uk-card","uk-card-small","uk-card-default","uk-box-shadow-small","uk-card-hover"],[1,"uk-card-media-top","uk-inline"],[3,"routerLink","title"],["width","900","height","900",3,"src","title"],[1,"uk-position-bottom-right","k-label-genre"],[1,"uk-card-body"],[1,"uk-card-title","k-radio-card-title","uk-text-truncate"],[1,"uk-text-small","uk-text-light","uk-text-muted",2,"min-height","45px"],[1,"uk-text-small","uk-text-light"],[1,"uk-card-footer"],["title","Play audio",1,"uk-button","uk-button-primary","k-button-rounded",3,"click"],[1,"fa-sharp","fa-solid","fa-play"],["cssClass","uk-margin-small-left",3,"kompozObject","large"],["title","Add to playlist",1,"uk-icon-button","uk-button-default",2,"margin-left","2px",3,"click"],[1,"fa-sharp","fa-light","fa-circle-plus"],["title","Options",1,"uk-icon-button","uk-button-default",2,"margin-left","2px"],[1,"fa-sharp","fa-light","fa-ellipsis-h"],["uk-dropdown","mode: click;"],[1,"uk-nav","uk-text-left","uk-dropdown-nav"],["title","Add release to a playlist",3,"click"],[1,"uk-nav-divider"],["title","Play music",3,"click"],[3,"routerLink"],[3,"click"]],template:function(t,n){1&t&&e.YNc(0,_e,41,18,"div",0),2&t&&e.Q6J("ngIf",void 0!==n.release)},dependencies:[a.O5,_.rH,k.Z,I.C,de.R,Q.i]}),s})();var me=c(4329);const Y=function(s){return{"k-active":s}};let j=(()=>{class s{constructor(t){this.router=t,this.tab="RELEASES",this.search=new e.vpe}}return s.\u0275fac=function(t){return new(t||s)(e.Y36(_.F0))},s.\u0275cmp=e.Xpm({type:s,selectors:[["radf-ui-radio-tabs"]],inputs:{tab:"tab"},outputs:{search:"search"},decls:24,vars:9,consts:[["uk-grid","",1,"uk-grid-collapse",2,"margin-bottom","15px"],[1,"uk-width-1-1","uk-width-1-4@m"],[1,"k-flat-card-div",2,"padding","10px 30px 10px 30px","position","relative"],[1,"uk-text-light","uk-text-small","uk-text-muted",2,"margin-bottom","8px"],["role","presentation",1,"fa-sharp","fa-light","fa-cloud-music"],["uk-grid","",1,"uk-grid-small"],[1,"uk-width-auto","k-tab",3,"ngClass"],["routerLink","/radio","title","Finished songs"],[2,"position","absolute","top","3px","right","20px"],["id","radio_publish_howto","title","How do I publish here?"],[1,"uk-width-1-1","uk-width-3-4@m"],[1,"k-flat-card-div",2,"padding","10px 30px 10px 30px","margin-left","2px"],["role","presentation",1,"fa-sharp","fa-light","fa-list-music"],["routerLink","/radio/playlists","title","Public playlists"],["routerLink","/radio/playlists/my","title","Playlists I've created"]],template:function(t,n){1&t&&(e.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),e._UZ(4,"i",4),e._uU(5,"\xa0 Songs "),e.qZA(),e.TgZ(6,"div",5)(7,"div",6)(8,"a",7),e._uU(9,"Published"),e.qZA()()(),e.TgZ(10,"div",8),e._UZ(11,"kmpzu-whats-this-button",9),e.qZA()()(),e.TgZ(12,"div",10)(13,"div",11)(14,"div",3),e._UZ(15,"i",12),e._uU(16,"\xa0 Playlists "),e.qZA(),e.TgZ(17,"div",5)(18,"div",6)(19,"a",13),e._uU(20,"Shared Playlists"),e.qZA()(),e.TgZ(21,"div",6)(22,"a",14),e._uU(23,"My Playlists"),e.qZA()()()()()()),2&t&&(e.xp6(7),e.Q6J("ngClass",e.VKq(3,Y,"RELEASES"===n.tab)),e.xp6(11),e.Q6J("ngClass",e.VKq(5,Y,"PLAYLISTS"===n.tab)),e.xp6(3),e.Q6J("ngClass",e.VKq(7,Y,"PLAYLISTS_MY"===n.tab)))},dependencies:[a.mk,_.rH,me.Z]}),s})();function he(s,r){if(1&s){const t=e.EpF();e.ynx(0),e.TgZ(1,"a",27),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.onPickGenre())}),e._uU(2,"All Genres"),e.qZA(),e.BQk()}}function fe(s,r){if(1&s){const t=e.EpF();e.ynx(0),e.TgZ(1,"a",28),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.onPickGenre())}),e._uU(2),e.qZA(),e.TgZ(3,"a",29),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.onClearChannel())}),e._UZ(4,"i",30),e.qZA(),e.BQk()}if(2&s){const t=e.oxw();e.xp6(2),e.Oqu(t.radioFilter.channel.title)}}function ke(s,r){if(1&s){const t=e.EpF();e.ynx(0),e.TgZ(1,"a",28),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.onPickGenre())}),e._uU(2),e.ALo(3,"plusMore"),e.qZA(),e.TgZ(4,"a",29),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.onClearChannel())}),e._UZ(5,"i",30),e.qZA(),e.BQk()}if(2&s){const t=e.oxw();e.xp6(2),e.Oqu(e.xi3(3,1,t.radioFilter.genreStr,2))}}function ye(s,r){if(1&s){const t=e.EpF();e.ynx(0),e.TgZ(1,"a",27),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.onPickParticipant())}),e._uU(2,"All Members"),e.qZA(),e.BQk()}}function xe(s,r){if(1&s){const t=e.EpF();e.ynx(0),e.TgZ(1,"a",28),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.onPickParticipant())}),e._uU(2),e.qZA(),e.TgZ(3,"a",29),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.onClearParticipant())}),e._UZ(4,"i",30),e.qZA(),e.BQk()}if(2&s){const t=e.oxw();e.xp6(2),e.Oqu(t.radioFilter.participant.userName)}}function Ce(s,r){1&s&&(e.TgZ(0,"div",31),e._UZ(1,"div",32),e.qZA())}function ve(s,r){if(1&s){const t=e.EpF();e.TgZ(0,"div",33)(1,"radf-release-card",34),e.NdJ("playlist",function(o){e.CHM(t);const d=e.oxw();return e.KtG(d.onAddToPlaylist(o))})("report",function(o){e.CHM(t);const d=e.oxw();return e.KtG(d.onReport(o))}),e.qZA(),e._UZ(2,"br"),e.qZA()}if(2&s){const t=r.$implicit;e.xp6(1),e.Q6J("release",t)}}const D=function(s){return{"fa-check":s}};let H=(()=>{class s extends l.gE{constructor(t,n,o,d,b,O,S,E){super(),this.sessionContext=t,this.releaseService=n,this.playlistService=o,this.lookupService=d,this.pageService=b,this.storageService=O,this.activatedRoute=S,this.router=E,this.releases=[],this.selectedRelease=void 0,this.radioWall=g.Uu.RadioWall,this.radioFilter={},this.pagination=new l.tl(1,36)}ngOnInit(){this.pageService.setTitleAndTab("Kompoz Radio",l.W$.RADIO),this.pageService.updateMetaTag("description","Discover and stream new original music created online. Music split sheets and license music for TV and YouTibe. Listen to playlists."),this.scrollToTop(),this.loadSavedFilter(),this.doSearch()}doSearch(){this.isBusy=!0;
1let t=(new g.Fb).withChannel(this.radioFilter.channel).withGenres(this.radioFilter?.genres??[]).withParticipant(this.radioFilter.participant).withStatus(f.q.RELEASED).withSort(this.radioFilter?.sortCode??g.JQ.RELEASE_DATE_DESC).withLimit(this.pagination.getRecordIndex(),this.pagination.getPageSize()+1).build();this.releaseService.searchReleases(t).pipe((0,m.R)(this.destroy$)).subscribe({next:n=>{this.releases=n.slice(0,this.pagination.getPageSize()),this.isBusy=!1,this.pagination.setHasNextPage(n.length>this.pagination.getPageSize())},error:n=>{this.toast(n.error.message,"danger"),this.isBusy=!1}})}onPageNumberClicked(t){this.pagination.setPageNumber(t),this.scrollToTop(),this.doSearch()}onPickGenre(){this.channelGenrePickerModalComponent.initWith(this.radioFilter.channel,!0).showModal()}onGenrePicked(t){this.radioFilter.channel=t,this.radioFilter.genres=t.genreList,this.radioFilter.genreStr=t.genreList?.map(n=>n.genreTitle??"")??[],this.saveFilter(),this.onPageNumberClicked(1)}onClearChannel(){this.radioFilter.channel=void 0,this.radioFilter.genres=void 0,this.saveFilter(),this.onPageNumberClicked(1)}onPickParticipant(){this.userSearchPickerComponent.init().showModal()}onParticipantPicked(t){this.userSearchPickerComponent.hideModal(),this.radioFilter.participant=t,this.saveFilter(),this.onPageNumberClicked(1)}onClearParticipant(){this.radioFilter.participant=void 0,this.saveFilter(),this.onPageNumberClicked(1)}onSort(t){this.radioFilter.sortCode=t,this.hideDropdowns(),this.saveFilter(),this.onPageNumberClicked(1)}onClearFilters(){this.radioFilter.channel=void 0,this.radioFilter.genres=void 0,this.radioFilter.genreStr=void 0,this.radioFilter.participant=void 0,this.saveFilter(),this.onPageNumberClicked(1)}onPickRelease(){this.releaseSearchPickerComponent.init().showModal()}onReleasePicked(t){this.releaseSearchPickerComponent.hideModal(),this.router.navigateByUrl("/radio/release/"+t.objectId)}saveFilter(){this.storageService.putItem(l.wA.RadioFilterV1,this.radioFilter??{},l.V1.SecondsPerMonth)}loadSavedFilter(){this.radioFilter=this.storageService.getItem(l.wA.RadioFilterV1)??{},void 0===this.radioFilter.sortCode&&(this.radioFilter.sortCode=g.JQ.RELEASE_DATE_DESC)}onAddToPlaylist(t){0!=this.sessionContext.hasUser()?(this.selectedRelease=t,this.playlistPickerComponent.init().showModal()):this.toast("Please sign-in to add to your playlists")}onPlaylistPicked(t){this.playlistPickerComponent.hideModal(),this.playlistService.addReleaseToPlaylist(this.sessionContext.accessToken,t,this.selectedRelease).pipe((0,m.R)(this.destroy$)).subscribe({next:n=>{this.selectedRelease=void 0,this.toast("Song added to playlist "+t.title)},error:n=>{this.selectedRelease=void 0,this.showError(n)}})}onReport(t){}}return s.\u0275fac=function(t){return new(t||s)(e.Y36(l.au),e.Y36(g.x8),e.Y36(g.r$),e.Y36(g.WO),e.Y36(l.Ph),e.Y36(l.V1),e.Y36(_.gz),e.Y36(_.F0))},s.\u0275cmp=e.Xpm({type:s,selectors:[["radf-radio-explore-page"]],viewQuery:function(t,n){if(1&t&&(e.Gf(G.K,5),e.Gf(K.g,5),e.Gf(J.P,5),e.Gf(v.e,5)),2&t){let o;e.iGM(o=e.CRH())&&(n.channelGenrePickerModalComponent=o.first),e.iGM(o=e.CRH())&&(n.userSearchPickerComponent=o.first),e.iGM(o=e.CRH())&&(n.releaseSearchPickerComponent=o.first),e.iGM(o=e.CRH())&&(n.playlistPickerComponent=o.first)}},features:[e.qOj],decls:46,vars:24,consts:[[1,"uk-container","uk-container-xlarge"],["tab","RELEASES"],["uk-grid","",1,"uk-grid-small"],[1,"uk-width-1-1","uk-width-2-3@s","uk-width-3-4@m","uk-width-4-5@l"],[1,"k-filter-card","uk-margin-bottom"],["uk-grid",""],[1,"uk-width-expand"],[4,"ngIf"],[1,"uk-width-auto"],["title","Search",1,"uk-icon-button","uk-button-primary",3,"click"],[1,"fa-sharp","fa-light","fa-search"],["title","Sort",1,"uk-icon-button","uk-button-secondary","uk-margin-small-left"],[1,"fa-sharp","fa-light","fa-sort-amount-down"],["uk-dropdown","mode: click;"],[1,"uk-nav","uk-dropdown-nav"],[3,"click"],[1,"fa-sharp","fa-light","fa-fw",3,"ngClass"],["class","uk-text-center uk-margin",4,"ngIf"],["class","uk-width-1-1 uk-width-1-2@s uk-width-1-2@m uk-width-1-4@l",4,"ngFor","ngForOf"],[3,"pagination","hideIfOne","pageNumberClicked"],[1,"uk-width-1-1","uk-width-1-3@s","uk-width-1-4@m","uk-width-1-5@l"],["aspectRatio","4x3",3,"slots","slot"],[3,"kompozObject","reloadSeconds","pageSize"],[3,"multiselect","picked"],[3,"userPicked"],[3,"releasePicked"],[3,"picked"],[1,"uk-button","uk-button-primary","k-button-rounded","k-button-transparent",3,"click"],[1,"uk-button","uk-button-primary","k-button-rounded",3,"click"],["title","Clear",1,"uk-icon-button","uk-button-default",3,"click"],[1,"fa-sharp","fa-light","fa-times"],[1,"uk-text-center","uk-margin"],["uk-spinner",""],[1,"uk-width-1-1","uk-width-1-2@s","uk-width-1-2@m","uk-width-1-4@l"],[3,"release","playlist","report"]],template:function(t,n){1&t&&(e.TgZ(0,"div",0),e._UZ(1,"radf-ui-radio-tabs",1),e.TgZ(2,"div",2)(3,"div",3)(4,"div",4)(5,"div",5)(6,"div",6),e.YNc(7,he,3,0,"ng-container",7),e.YNc(8,fe,5,1,"ng-container",7),e.YNc(9,ke,6,4,"ng-container",7),e._uU(10," \xa0\xa0 "),e.YNc(11,ye,3,0,"ng-container",7),e.YNc(12,xe,5,1,"ng-container",7),e.qZA(),e.TgZ(13,"div",8)(14,"a",9),e.NdJ("click",function(){return n.onPickRelease()}),e._UZ(15,"i",10),e.qZA(),e.TgZ(16,"a",11),e._UZ(17,"i",12),e.qZA(),e.TgZ(18,"div",13)(19,"ul",14)(20,"li")(21,"a",15),e.NdJ("click",function(){return n.onSort("RELEASE_DATE_DESC")}),e._UZ(22,"i",16),e._uU(23," New Releases"),e.qZA()(),e.TgZ(24,"li")(25,"a",15),e.NdJ("click",function(){return n.onSort("RELEASE_DATE_ASC")}),e._UZ(26,"i",16),e._uU(27," Oldest"),e.qZA()(),e.TgZ(28,"li")(29,"a",15),e.NdJ("click",function(){return n.onSort("LIKE_COUNT_DESC")}),e._UZ(30,"i",16),e._uU(31," Most Likes"),e.qZA()()()()()()(),e.YNc(32,Ce,2,0,"div",17),e.TgZ(33,"div",2),e.YNc(34,ve,3,1,"div",18),e.qZA(),e._UZ(35,"br")(36,"br"),e.TgZ(37,"kmpzu-pagination",19),e.NdJ("pageNumberClicked",function(d){return n.onPageNumberClicked(d)}),e.qZA()(),e.TgZ(38,"div",20),e._UZ(39,"kmpzu-ad-presentation-wrapper",21)(40,"br")(41,"kmpzu-notifications-viewer",22),e.qZA()()(),e.TgZ(42,"kmpzu-channel-genre-picker-modal",23),e.NdJ("picked",function(d){return n.onGenrePicked(d)}),e.qZA(),e.TgZ(43,"kmpzu-user-search-picker",24),e.NdJ("userPicked",function(d){return n.onParticipantPicked(d)}),e.qZA(),e.TgZ(44,"kmpzu-release-search-picker",25),e.NdJ("releasePicked",function(d){return n.onReleasePicked(d)}),e.qZA(),e.TgZ(45,"kmpzu-playlist-picker",26),e.NdJ("picked",function(d){return n.onPlaylistPicked(d)}),e.qZA()),2&t&&(e.xp6(7),e.Q6J("ngIf",void 0===n.radioFilter.channel),e.xp6(1),e.Q6J("ngIf",void 0!==n.radioFilter.channel&&(void 0===n.radioFilter.genres||0===n.radioFilter.genres.length)),e.xp6(1),e.Q6J("ngIf",void 0!==n.radioFilter.channel&&void 0!==n.radioFilter.genres&&0!==n.radioFilter.genres.length),e.xp6(2),e.Q6J("ngIf",void 0===n.radioFilter.participant),e.xp6(1),e.Q6J("ngIf",void 0!==n.radioFilter.participant),e.xp6(10),e.Q6J("ngClass",e.VKq(18,D,"RELEASE_DATE_DESC"===n.radioFilter.sortCode)),e.xp6(4),e.Q6J("ngClass",e.VKq(20,D,"RELEASE_DATE_ASC"===n.radioFilter.sortCode)),e.xp6(4),e.Q6J("ngClass",e.VKq(22,D,"LIKE_COUNT_DESC"===n.radioFilter.sortCode)),e.xp6(2),e.Q6J("ngIf",!0===n.isBusy),e.xp6(2),e.Q6J("ngForOf",n.releases),e.xp6(3),e.Q6J("pagination",n.pagination)("hideIfOne",!0),e.xp6(2),e.Q6J("slots",1)("slot",0),e.xp6(2),e.Q6J("kompozObject",n.radioWall)("reloadSeconds",120)("pageSize",30),e.xp6(1),e.Q6J("multiselect",!0))},dependencies:[a.mk,a.sg,a.O5,M.Q,G.K,h.u,K.g,q.X,J.P,v.e,ge,j,Q.i]}),s})(),Te=(()=>{class s{transform(t,n="label"){return void 0===t?"":t.privacyCode===g.sB.PUBLIC?"label"===n?"Public":"fa-sharp fa-light fa-lock-open":t.privacyCode===g.sB.RESTRICTED?"label"===n?"Restricted":"fa-kit fa-sharp-light-lock-circle-exclamation":t.privacyCode===g.sB.PRIVATE?"label"===n?"Private":"fa-kit fa-sharp-light-lock-shield":"Unknown"}}return s.\u0275fac=function(t){return new(t||s)},s.\u0275pipe=e.Yjl({name:"playlistPrivacy",type:s,pure:!0}),s})();function Ze(s,r){if(1&s){const t=e.EpF();e.TgZ(0,"div",1)(1,"div",2)(2,"a",3),e._UZ(3,"img",4),e.ALo(4,"kompozImage"),e.qZA(),e.TgZ(5,"div",5),e._uU(6),e.ALo(7,"playlistPrivacy"),e.qZA()(),e.TgZ(8,"div",6)(9,"h3",7),e._uU(10),e.qZA(),e.TgZ(11,"div",8),e._uU(12),e._UZ(13,"br"),e.TgZ(14,"span",9),e._uU(15),e.qZA()()(),e.TgZ(16,"div",10)(17,"a",11),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.onPlay())}),e._UZ(18,"i",12),e.qZA(),e.TgZ(19,"a",13),e._UZ(20,"i",14),e.qZA(),e.TgZ(21,"div",15)(22,"ul",16)(23,"li")(24,"a",17),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.onPlay())}),e._uU(25,"Play"),e.qZA()(),e.TgZ(26,"li")(27,"a",18),e._uU(28,"Go To..."),e.qZA()()()()()()}if(2&s){const t=e.oxw();e.xp6(2),e.MGl("routerLink","/radio/playlist/",t.playlist.objectId,""),e.s9C("title",t.playlist.title),e.xp6(1),e.s9C("src",e.lcZ(4,9,t.playlist),e.LSH),e.s9C("title",t.playlist.title),e.xp6(3),e.hij(" ",e.xi3(7,11,t.playlist,"label")," "),e.xp6(4),e.Oqu(t.playlist.title),e.xp6(2),e.hij(" ",t.playlist.releaseCount," songs "),e.xp6(3),e.hij("@",null==t.playlist.owner?null:t.playlist.owner.userName,""),e.xp6(12),e.MGl("routerLink","/radio/playlist/",t.playlist.objectId,"")}}let $=(()=>{class s extends l.gE{constructor(){super(),this.playlist=void 0,this.play=new e.vpe}ngOnInit(){}onPlay(){this.hideDropdowns(),this.play.emit(this.playlist)}onReportContent(){}}return s.\u0275fac=function(t){return new(t||s)},s.\u0275cmp=e.Xpm({type:s,selectors:[["kmpzu-playlist-card"]],inputs:{playlist:"playlist"},outputs:{play:"play"},features:[e.qOj],decls:1,vars:1,consts:[["class","uk-card uk-card-small uk-card-default uk-box-sha
1dow-small uk-card-hover",4,"ngIf"],[1,"uk-card","uk-card-small","uk-card-default","uk-box-shadow-small","uk-card-hover"],[1,"uk-card-media-top","uk-inline"],[3,"routerLink","title"],["width","900","height","900",3,"src","title"],[1,"uk-position-bottom-right","k-label-genre"],[1,"uk-card-body"],[1,"uk-card-title","k-radio-card-title","uk-text-truncate"],[1,"uk-text-small","uk-text-light","uk-text-muted",2,"min-height","50px"],[1,"uk-text-small","uk-text-light","uk-text-muted"],[1,"uk-card-footer"],["title","Play audio",1,"uk-button","uk-button-primary","k-button-rounded",3,"click"],[1,"fa-sharp","fa-solid","fa-play"],["title","Options",1,"uk-icon-button","uk-button-primary","k-button-transparent","uk-margin-small-left"],[1,"fa-sharp","fa-light","fa-ellipsis-h"],["uk-dropdown","mode: click;"],[1,"uk-nav","uk-text-left","uk-dropdown-nav"],["title","Play music",3,"click"],[3,"routerLink"]],template:function(t,n){1&t&&e.YNc(0,Ze,29,14,"div",0),2&t&&e.Q6J("ngIf",void 0!==n.playlist)},dependencies:[a.O5,_.rH,I.C,Te]}),s})();function Pe(s,r){1&s&&(e.TgZ(0,"div",13),e._UZ(1,"div",14),e.qZA())}function be(s,r){if(1&s){const t=e.EpF();e.TgZ(0,"div",15)(1,"kmpzu-playlist-card",16),e.NdJ("play",function(o){e.CHM(t);const d=e.oxw();return e.KtG(d.onPlay(o))}),e.qZA()()}if(2&s){const t=r.$implicit;e.xp6(1),e.Q6J("playlist",t)}}let we=(()=>{class s extends l.gE{constructor(t,n,o,d){super(),this.sessionContext=t,this.playlistService=n,this.playlistAudioPlayerService=o,this.pageService=d,this.playlists=[],this.pagination=new l.tl(1,40)}ngOnInit(){this.pageService.setTitleAndTab("Radio Playlists",l.W$.RADIO),this.scrollToTop(),this.loadPlaylists()}loadPlaylists(){let t=(new g.gL).withMinReleaseCount(4).withPrivacy(g.sB.PUBLIC).withLimit(this.pagination.getRecordIndex(),this.pagination.getPageSize()+1).build();this.isBusy=!0,this.playlistService.searchPlaylists(t).pipe((0,m.R)(this.destroy$)).subscribe({next:n=>{this.playlists=n.slice(0,this.pagination.getPageSize()),this.isBusy=!1,this.pagination.setHasNextPage(n.length>this.pagination.getPageSize())},error:n=>{this.isBusy=!1,this.showError(n)}})}onPageNumberClicked(t){this.pagination.setPageNumber(t),this.scrollToTop(),this.loadPlaylists()}onPlay(t){this.playlistAudioPlayerService.play(t,!1)}}return s.\u0275fac=function(t){return new(t||s)(e.Y36(l.au),e.Y36(g.r$),e.Y36(i.o_),e.Y36(l.Ph))},s.\u0275cmp=e.Xpm({type:s,selectors:[["kompoz4-ui-playlists-page"]],features:[e.qOj],decls:15,vars:6,consts:[[1,"uk-container","uk-container-expand"],["uk-grid","",1,"uk-grid-small","uk-margin-remove"],[1,"uk-width-expand"],["tab","PLAYLISTS"],[1,"uk-width-auto"],[1,"uk-width-1-1","uk-width-2-3@s","uk-width-3-4@m","uk-width-4-5@l"],["class","uk-text-center uk-margin",4,"ngIf"],["uk-grid","",1,"uk-grid-small"],["class","uk-width-1-1 uk-width-1-3@s uk-width-1-4@m",4,"ngFor","ngForOf"],[1,"uk-margin-top"],[3,"pagination","hideIfOne","pageNumberClicked"],[1,"uk-width-1-1","uk-width-1-3@s","uk-width-1-4@m","uk-width-1-5@l"],["aspectRatio","4x3",3,"slots","slot"],[1,"uk-text-center","uk-margin"],["uk-spinner",""],[1,"uk-width-1-1","uk-width-1-3@s","uk-width-1-4@m"],[3,"playlist","play"]],template:function(t,n){1&t&&(e.TgZ(0,"div",0)(1,"div",1)(2,"div",2),e._UZ(3,"radf-ui-radio-tabs",3),e.qZA(),e._UZ(4,"div",4),e.qZA(),e.TgZ(5,"div",1)(6,"div",5),e.YNc(7,Pe,2,0,"div",6),e.TgZ(8,"div",7),e.YNc(9,be,2,1,"div",8),e.qZA(),e._UZ(10,"br"),e.TgZ(11,"div",9)(12,"kmpzu-pagination",10),e.NdJ("pageNumberClicked",function(d){return n.onPageNumberClicked(d)}),e.qZA()()(),e.TgZ(13,"div",11),e._UZ(14,"kmpzu-ad-presentation-wrapper",12),e.qZA()()()),2&t&&(e.xp6(7),e.Q6J("ngIf",!0===n.isBusy),e.xp6(2),e.Q6J("ngForOf",n.playlists),e.xp6(3),e.Q6J("pagination",n.pagination)("hideIfOne",!1),e.xp6(2),e.Q6J("slots",1)("slot",0))},dependencies:[a.sg,a.O5,M.Q,q.X,j,$]}),s})();var z=c(9935),Ae=c(1667);function Ue(s,r){1&s&&(e.TgZ(0,"div",13),e._UZ(1,"div",14),e.qZA())}function Re(s,r){if(1&s){const t=e.EpF();e.TgZ(0,"div",20)(1,"kmpzu-playlist-card",21),e.NdJ("play",function(){const d=e.CHM(t).$implicit,b=e.oxw(2);return e.KtG(b.onPlay(d))}),e.qZA()()}if(2&s){const t=r.$implicit;e.xp6(1),e.Q6J("playlist",t)}}function Ie(s,r){if(1&s){const t=e.EpF();e.TgZ(0,"div")(1,"div",15),e.YNc(2,Re,2,1,"div",16),e.qZA(),e.TgZ(3,"div",17),e._UZ(4,"br"),e.TgZ(5,"a",18),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.onCreatePlaylist())}),e._UZ(6,"i",19),e.qZA()()()}if(2&s){const t=e.oxw();e.xp6(2),e.Q6J("ngForOf",t.playlists)}}function Ne(s,r){if(1&s){const t=e.EpF();e.TgZ(0,"div")(1,"div",22)(2,"p",23)(3,"span",24),e._uU(4,"Let's create your first playlist."),e.qZA(),e._UZ(5,"br"),e._uU(6," Or browse the "),e.TgZ(7,"a",25),e._uU(8,"Radio"),e.qZA(),e._uU(9," listings and find a song, then click the Add to Playlist option to create your Playlist. "),e.qZA(),e._UZ(10,"br"),e.TgZ(11,"a",26),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.onCreatePlaylist())}),e._uU(12,"Create Playlist"),e.qZA()()()}}let Oe=(()=>{class s extends l.gE{constructor(t,n,o,d,b){super(),this.sessionContext=t,this.playlistService=n,this.playlistAudioPlayerService=o,this.pageService=d,this.router=b,this.playlists=[],this.pagination=new l.tl(1,40)}ngOnInit(){this.pageService.setTitleAndTab("My Playlists",l.W$.RADIO),this.scrollToTop(),this.sessionContext.currentUserState.pipe((0,m.R)(this.destroy$)).subscribe({next:t=>{t===l.pg.LOGGED_IN&&(this.pagination.setPageNumber(1),this.loadPlaylists())}})}loadPlaylists(){let t=(new g.gL).withOwner(this.sessionContext.currentUser).withLim
1it(this.pagination.getRecordIndex(),this.pagination.getPageSize()+1).build();this.isBusy=!0,this.playlistService.searchPlaylists(t).pipe((0,m.R)(this.destroy$)).subscribe({next:n=>{this.playlists=n.slice(0,this.pagination.getPageSize()),this.isBusy=!1,this.pagination.setHasNextPage(n.length>this.pagination.getPageSize())},error:n=>{this.isBusy=!1,this.showError(n)}})}onPageNumberClicked(t){this.pagination.setPageNumber(t),this.scrollToTop(),this.loadPlaylists()}onPlay(t){this.playlistAudioPlayerService.play(t,!1)}onCreatePlaylist(){this.playlistFormComponent.init().showModal()}onPlaylistCreated(t){this.playlistFormComponent.hideModal(),this.playlists=[t],this.router.navigateByUrl(`/radio/playlist/${t.objectId}`)}}return s.\u0275fac=function(t){return new(t||s)(e.Y36(l.au),e.Y36(g.r$),e.Y36(i.o_),e.Y36(l.Ph),e.Y36(_.F0))},s.\u0275cmp=e.Xpm({type:s,selectors:[["kompoz4-ui-my-playlists-page"]],viewQuery:function(t,n){if(1&t&&e.Gf(z.l,5),2&t){let o;e.iGM(o=e.CRH())&&(n.playlistFormComponent=o.first)}},features:[e.qOj],decls:17,vars:7,consts:[[1,"uk-container","uk-container-expand"],["uk-grid","",1,"uk-grid-small","uk-margin-remove"],[1,"uk-width-expand"],["tab","PLAYLISTS_MY"],[1,"uk-width-auto"],[1,"uk-width-1-1","uk-width-2-3@s","uk-width-3-4@m","uk-width-4-5@l"],["class","uk-text-center uk-margin",4,"ngIf"],[4,"ngIf"],[1,"uk-margin-top"],[3,"pagination","hideIfOne","pageNumberClicked"],[1,"uk-width-1-1","uk-width-1-3@s","uk-width-1-4@m","uk-width-1-5@l"],["aspectRatio","4x3",3,"slots","slot"],[3,"created"],[1,"uk-text-center","uk-margin"],["uk-spinner",""],["uk-grid","",1,"uk-grid-small"],["class","uk-width-1-1 uk-width-1-3@s uk-width-1-4@m",4,"ngFor","ngForOf"],[1,"uk-margin"],["title","Create a new playlist",1,"uk-icon-button","k-icon-button-large","uk-button-secondary",3,"click"],["title","Create a new playlist",1,"fa-sharp","fa-light","fa-plus"],[1,"uk-width-1-1","uk-width-1-3@s","uk-width-1-4@m"],[3,"playlist","play"],[1,"uk-placeholder","uk-text-center"],[1,"uk-text-light"],[1,"uk-text-lead"],["routerLink","/radio"],[1,"uk-button","uk-button-primary","k-button-rounded",3,"click"]],template:function(t,n){if(1&t&&(e.TgZ(0,"div",0)(1,"div",1)(2,"div",2),e._UZ(3,"radf-ui-radio-tabs",3),e.qZA(),e._UZ(4,"div",4),e.qZA(),e.TgZ(5,"div",1)(6,"div",5)(7,"kmpzu-user-login-guard"),e.YNc(8,Ue,2,0,"div",6),e.YNc(9,Ie,7,1,"div",7),e.YNc(10,Ne,13,0,"div",7),e._UZ(11,"br"),e.TgZ(12,"div",8)(13,"kmpzu-pagination",9),e.NdJ("pageNumberClicked",function(d){return n.onPageNumberClicked(d)}),e.qZA()()()(),e.TgZ(14,"div",10),e._UZ(15,"kmpzu-ad-presentation-wrapper",11),e.qZA()()(),e.TgZ(16,"kmpzu-playlist-form",12),e.NdJ("created",function(d){return n.onPlaylistCreated(d)}),e.qZA()),2&t){let o,d;e.xp6(8),e.Q6J("ngIf",!0===n.isBusy),e.xp6(1),e.Q6J("ngIf",!1===n.isBusy&&0!==(null!==(o=null==n.playlists?null:n.playlists.length)&&void 0!==o?o:0)),e.xp6(1),e.Q6J("ngIf",!1===n.isBusy&&0===(null!==(d=null==n.playlists?null:n.playlists.length)&&void 0!==d?d:0)),e.xp6(3),e.Q6J("pagination",n.pagination)("hideIfOne",!0),e.xp6(2),e.Q6J("slots",1)("slot",0)}},dependencies:[a.sg,a.O5,_.rH,M.Q,q.X,Ae.O,z.l,j,$]}),s})();var Se=c(1254);function Ee(s,r){1&s&&(e.TgZ(0,"div",4),e._UZ(1,"div",5),e.qZA())}function Le(s,r){if(1&s&&(e.TgZ(0,"span",30),e._uU(1),e.qZA()),2&s){const t=r.$implicit;e.xp6(1),e.hij(" #",t," ")}}function Be(s,r){if(1&s&&(e.TgZ(0,"div",28),e._UZ(1,"br"),e.YNc(2,Le,2,1,"span",29),e.qZA()),2&s){const t=e.oxw(2);e.xp6(2),e.Q6J("ngForOf",null==t.playlist?null:t.playlist.tags)}}const Fe=function(s,r){return{"uk-button-tertiary":s,"uk-button-default":r}};function Me(s,r){if(1&s){const t=e.EpF();e.ynx(0),e.TgZ(1,"a",31),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.onPlay())}),e.qZA(),e.TgZ(2,"a",32),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.onToggleShuffle())}),e._UZ(3,"i",33),e.qZA(),e.BQk()}if(2&s){const t=e.oxw(2);e.xp6(1),e.Q6J("innerHTML",t.playButtonHtml,e.oJD),e.xp6(1),e.Q6J("ngClass",e.WLB(2,Fe,!0===t.isShuffle,!1===t.isShuffle))}}function Je(s,r){if(1&s){const t=e.EpF();e.TgZ(0,"li")(1,"a",38),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(3);return e.KtG(o.onUndoRemove())}),e._uU(2),e.ALo(3,"truncate"),e.qZA()()}if(2&s){const t=e.oxw(3);e.xp6(2),e.hij("Re-Add '",e.xi3(3,1,t.removedRelease.releaseTitle,25),"'")}}function ze(s,r){if(1&s){const t=e.EpF();e.ynx(0),e.TgZ(1,"a",34),e._UZ(2,"i",35),e.qZA(),e.TgZ(3,"div",36)(4,"ul",37)(5,"li")(6,"a",38),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.onEditPlaylist())}),e._uU(7,"Edit"),e.qZA()(),e.TgZ(8,"li")(9,"a",38),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.onDeletePlaylist())}),e._uU(10,"Delete"),e.qZA()(),e._UZ(11,"li",39),e.TgZ(12,"li")(13,"a",38),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.onAddSong())}),e._uU(14,"Add Songs"),e.qZA()(),e.YNc(15,Je,4,4,"li",21),e.qZA()(),e.BQk()}if(2&s){const t=e.oxw(2);e.xp6(15),e.Q6J("ngIf",void 0!==t.removedRelease)}}function qe(s,r){if(1&s&&(e.ynx(0),e.TgZ(1,"span",40),e._uU(2),e.ALo(3,"number"),e.qZA(),e._uU(4," \xa0 "),e._UZ(5,"kmpzu-likes-viewer",41),e.BQk()),2&s){const t=e.oxw(2);e.xp6(2),e.hij("",e.lcZ(3,4,t.playlist.likeCount)," likes"),e.xp6(3),e.Q6J("kompozObject",t.playlist)("count",4)("more",20)}}function Qe(s,r){1&s&&(e.TgZ(0,"div",42),e._UZ(1,"div",5),e.qZA())}function Ye(s,r){if(1&s){const t=e.EpF();e.TgZ(0,"div",44)(1,"p",45)(2,"span",46),e._uU(3,"Your Playlist is Empty"),e.qZA(),e._UZ(4,"br"),e._uU(5," The best way to build your playlist is to browse the "),e.TgZ(6,"a",47),e._uU(7,"Radio"),e.qZA(),e._uU(8," listings and find a song, then click the Add to Playlist. "),e.qZA(),e._UZ(9,"br"),e.TgZ(10,"a",48),e._uU(11,"Browse Radio Page"),e.qZA(),e.TgZ(12,"a",49),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(3);return e.KtG(o.onAddSong())}),e._uU(13,"Add A Song"),e.qZA()()}}function je(s,r){1&s&&(e.TgZ(0,"div",44)(1,"p",45)(2,"span",46),e._uU(3,"This Playlist is Empty"),e.qZA()()())}function De(s,r){if(1&s&&(e.TgZ(0,"div"),e.YNc(1,Ye,14,0,"div",43),e.YNc(2,je,4,0,"div",43),e.qZA()),2&s){const t=e.oxw(2);e.xp6(1),e.Q6J("ngIf",!0===t.canManagePlaylist()),e.xp6(1),e.Q6J("ngIf",!1===t.canManagePlaylist())}}function Ge(s,r){1&s&&e._UZ(0,"i",64)}function Ke(s,r){if(1&s){const t=e.EpF();e.ynx(0),e._UZ(1,"li",39),e.TgZ(2,"li")(3,"a",38),e.NdJ("click",function(){e.CHM(t);const o=e.oxw().$implicit,d=e.oxw(3);return e.KtG(d.onRemoveRelease(o))}),e._uU(4,"Remove"),e.qZA()(),e.BQk()}}function He(s,r){if(1&s){const t=e.EpF();e.TgZ(0,"tr")(1,"td",53)(2,"a",54),e._UZ(3,"img",55),e.ALo(4,"kompozImage"),e.qZA()(),e.TgZ(5,"td")(6,"a",54),e._uU(7),e.qZA(),e._UZ(8,"br"),e.TgZ(9,"span",45),e._uU(10),e.ALo(11,"plusMore"),e.qZA(),e._UZ(12,"br"),e.TgZ(13,"div",56),e._uU(14),e.qZA()(),e.TgZ(15,"td",57),e._UZ(16,"br"),e.YNc(17,Ge,1,0,"i",58),e.qZA(),e.TgZ(18,"td",59),e._UZ(19,"br"),e.TgZ(20,"a",60),e.NdJ("click",function(){const d=e.CHM(t).$implicit,b=e.oxw(3);return e.KtG(b.onPlayRelease(d))}),e._UZ(21,"i",61),e.qZA(),e.TgZ(22,"a",62),e._UZ(23,"i",63),e.qZA(),e.TgZ(24,"div",36)(25,"ul",37)(26,"li")(27,"a",54),e._uU(28,"Go to release"),e.qZA()(),e.TgZ(29,"li")(30,"a",54),e._uU(31,"Go to collaboration"),e.qZA()(),e.YNc(32,Ke,5,0,"ng-container",21),e.qZA()()()()}if(2&s){const t=r.$implicit,n=e.oxw(3);e.xp6(2),e.MGl("routerLink","/radio/release/",t.objectId,""),e.xp6(1),e.s9C("src",e.lcZ(4,11,t),e.LSH),e.s9C("title",t.releaseTitle),e.xp6(3),e.MGl("routerLink","/radio/release/",t.objectId,""),e.xp6(1),e.Oqu(t.releaseTitle),e.xp6(3),e.Oqu(e.xi3(11,13,t.userNameCredits,5)),e.xp6(4),e.hij(" ",null==t.genreID3?null:t.genreID3.genreTitle," "),e.xp6(3),e.Q6J("ngIf",(null==n.currentAudioPlayerSrc?null:n.currentAudioPlayerSrc.title)===t.releaseTitle),e.xp6(10),e.MGl("routerLink","/radio/release/",t.objectId,""),e.xp6(3),e.MGl("routerLink","/studio/collaboration/",null==t.collaboration?null:t.collaboration.objectId,""),e.xp6(2),e.Q6J("ngIf",!0===n.canManagePlaylist())}}function $e(s,r){if(1&s&&(e.TgZ(0,"div",50)(1,"table",51)(2,"tbody"),e.YNc(3,He,33,16,"tr",52),e.qZA()()()),2&s){const t=e.oxw(2);e.xp6(3),e.Q6J("ngForOf",t.releases)}}function We(s,r){if(1&s){const t=e.EpF();e.TgZ(0,"div",6)(1,"div",7)(2,"div",8)(3,"div",9)(4,"h1",10),e._uU(5),e.qZA(),e.TgZ(6,"div",11)(7,"div",12)(8,"span",13),e._uU(9),e.qZA(),e._UZ(10,"br"),e.TgZ(11,"span",13),e._uU(12,"Created by"),e.qZA(),e.TgZ(13,"span"),e._uU(14,"\xa0"),e.qZA(),e.TgZ(15,"a",14),e._uU(16),e.qZA()(),e.TgZ(17,"div",15),e.YNc(18,Be,3,1,"div",16),e.qZA()()(),e.TgZ(19,"div",17),e._UZ(20,"kmpzu-like-button",18)(21,"kmpzu-follow-button",18)(22,"kmpzu-flagged-content-button",19),e.qZA()(),e._UZ(23,"br"),e.TgZ(24,"div",20)(25,"div",12),e.YNc(26,Me,4,5,"ng-container",21),e.YNc(27,ze,16,1,"ng-container",21),e.qZA(),e.TgZ(28,"div",22),e.YNc(29,qe,6,6,"ng-container",21),e.qZA()(),e.YNc(30,Qe,2,0,"div",23),e.YNc(31,De,3,2,"div",21),e.YNc(32,$e,4,1,"div",24),e._UZ(33,"br"),e.TgZ(34,"div",25)(35,"kmpzu-pagination",26),e.NdJ("pageNumberClicked",function(o){e.CHM(t);const d=e.oxw();return e.KtG(d.onPageNumberClicked(o))}),e.qZA()()(),e._UZ(36,"br")(37,"kmpzu-notifications-viewer",27),e.qZA()}if(2&s){const t=e.oxw();let n,o,d,b;e.xp6(5),e.Oqu(t.playlist.title),e.xp6(4),e.hij("",t.playlist.releaseCount," songs"),e.xp6(6),e.MGl("routerLink","/user/",null==t.playlist.owner?null:t.playlist.owner.userName,""),e.xp6(1),e.hij("@",null==t.playlist.owner?null:t.playlist.owner.userName,""),e.xp6(2),e.Q6J("ngIf",void 0!==(null==t.playlist?null:t.playlist.tags)&&0!==(null==t.playlist||null==t.playlist.tags?null:t.playlist.tags.length)),e.xp6(2),e.Q6J("kompozObject",t.playlist)("large",!1),e.xp6(1),e.Q6J("kompozObject",t.playlist)("large",!1),e.xp6(1),e.Q6J("title","Playlist: "+t.playlist.title)("kompozObject",t.playlist),e.xp6(4),e.Q6J("ngIf",0!==(null!==(n=null==t.releases?null:t.releases.length)&&void 0!==n?n:0)),e.xp6(1),e.Q6J("ngIf",!0===t.canManagePlaylist()),e.xp6(2),e.Q6J("ngIf",(null!==(o=t.playlist.likeCount)&&void 0!==o?o:0)>0),e.xp6(1),e.Q6J("ngIf",!0===t.isBusy),e.xp6(1),e.Q6J("ngIf",!1===t.isBusy&&0===(null!==(d=null==t.releases?null:t.releases.length)&&void 0!==d?d:0)),e.xp6(1),e.Q6J("ngIf",0!==(null!==(b=null==t.releases?null:t.releases.length)&&void 0!==b?b:0)),e.xp6(3),e.Q6J("pagination",t.pagination)("hideIfOne",!0),e.xp6(2),e.Q6J("kompozObject",t.playlist)("reloadSeconds",120)("pageSize",30)}}const Ve=[{path:"",component:H},{path:"explore",component:H},{path:"playlists",component:we},{path:"playlists/my",component:Oe},{path:"playlist/:playlistId",component:(()=>{class s extends l.gE{constructor(t,n,o,d,b,O,S,E,et){super(),this.sessionContext=t,this.pageService=n,this.playlistService=o,this.releaseService=d,this.playlistAudioPlayerService=b,this.kompozObjectService=O,this.audioPlayerService=S,this.activatedRoute=E,this.router=et,this.playlist=void 0,this.releases=[],this.removedRelease=void 0,this.isShuffle=!1,this.playButtonHtml="<i class='fa-sharp fa-solid fa-play' title='Play'></i> Play",this.currentAudioPlayerSrc=void 0,this.pagination=new l.tl(1,40)}ngOnInit(){this.pageService.setTitleAndTab("Loading...",l.W$.RADIO),this.scrollToTop(),this.activatedRoute.paramMap.pipe((0,m.R)(this.destroy$)).subscribe({next:t=>{const n=+(t.get("playlistId")??0);this.loadPlaylist(n)}}),this.audioPlayerService.playerEvent.pipe((0,m.R)(this.destroy$)).subscribe({next:t=>{this.onAudioPlayerEvent(t)}}),this.audioPlayerService.playerSrc.pipe((0,m.R)(this.destroy$)).subscribe({next:t=>{this.onAudioPlayerSourceChanged(t)}})}loadPlaylist(t){this.isBusy=!0,this.playlistService.getPlaylist(t).pipe((0,m.R)(this.destroy$)).subscribe({next:n=>{this.isBusy=!1,this.playlist=n,this.pageService.setTitle(n.title??"Playlist "+n.objectId),this.pagination.setPageNumber(1),this.loadPlaylistReleases(),this.recordVisit()},error:n=>{this.isBusy=!1,this.router.navigateByUrl("/radio/playlists/my")}})}recordVisit(){!0===this.sessionContext.hasUser()&&this.kompozObjectService.visitKompozObject(this.sessionContext.accessToken,this.playlist).pipe((0,m.R)(this.destroy$)).subscribe({next:()=>{},error:t=>{}})}loadPlaylistReleases(){this.isBusy=!0;let t=(new g.Fb).withPlaylist(this.playlist).withStatus(f.q.RELEASED).withLim
1it(this.pagination.getRecordIndex(),this.pagination.getPageSize()+1).build();this.releaseService.searchReleases(t).pipe((0,m.R)(this.destroy$)).subscribe({next:n=>{this.isBusy=!1,this.releases=n.slice(0,this.pagination.getPageSize()),this.pagination.setHasNextPage(n.length>this.pagination.getPageSize())},error:n=>{this.isBusy=!1,this.showError(n)}})}onAudioPlayerEvent(t){switch(t){case i.KX.LOADING:this.playButtonHtml="<i class='fa-sharp fa-solid fa-spinner fa-spin' title='Loading'></i> Loading";break;case i.KX.PLAYING:this.playButtonHtml="<i class='fa-sharp fa-solid fa-stop' title='Stop'></i> Stop";break;case i.KX.PAUSED:this.playButtonHtml="<i class='fa-sharp fa-solid fa-play' title='Play'></i> Play",this.currentAudioPlayerSrc=void 0;break;default:this.playButtonHtml="<i class='fa-sharp fa-solid fa-play' title='Play'></i> Play"}}onAudioPlayerSourceChanged(t){this.currentAudioPlayerSrc=t}onEditPlaylist(){this.hideDropdowns(),this.playlistFormComponent.init(this.playlist).showModal()}onPlaylistUpdated(t){this.playlist=t,this.playlistFormComponent.hideModal()}onDeletePlaylist(){this.hideDropdowns(),this.confirm("Are you sure you want to delete this playlist?",()=>{this.isBusy=!0,this.playlistService.deletePlaylist(this.sessionContext.accessToken,this.playlist).pipe((0,m.R)(this.destroy$)).subscribe({next:()=>{this.isBusy=!1,this.router.navigateByUrl("/radio/playlists/my")},error:t=>{this.isBusy=!1,this.showError(t)}})})}canManagePlaylist(){return this.sessionContext.hasSameUser(this.playlist?.owner)}onPlay(){void 0!==this.playlist&&(!0===this.audioPlayerService.isPlaying()?this.audioPlayerService.stop():this.playlistAudioPlayerService.play(this.playlist,this.isShuffle))}onPlayRelease(t){void 0!==this.playlist&&this.playlistAudioPlayerService.playRelease(this.playlist,t)}onPageNumberClicked(t){this.pagination.setPageNumber(t),this.scrollToTop(),this.loadPlaylistReleases()}onToggleShuffle(){this.isShuffle=!this.isShuffle,this.playlistAudioPlayerService.buildOrderedIndexArray(this.isShuffle)}onRemoveRelease(t){this.playlistService.removeReleaseFromPlaylist(this.sessionContext.accessToken,this.playlist,t).pipe((0,m.R)(this.destroy$)).subscribe({next:()=>{this.removedRelease=t;let n=this.releases.indexOf(t,0);-1!==n&&this.releases.splice(n,1)},error:n=>{this.showError(n)}})}onUndoRemove(){void 0!==this.removedRelease&&(this.hideDropdowns(),this.playlistService.addReleaseToPlaylist(this.sessionContext.accessToken,this.playlist,this.removedRelease).pipe((0,m.R)(this.destroy$)).subscribe({next:t=>{this.removedRelease=void 0,this.releases.push(t)},error:t=>{this.showError(t)}}))}onAddSong(){this.hideDropdowns(),this.releaseSearchPickerComponent.init().showModal()}onAddSongPicked(t){this.releaseSearchPickerComponent.hideModal(),this.playlistService.addReleaseToPlaylist(this.sessionContext.accessToken,this.playlist,t).pipe((0,m.R)(this.destroy$)).subscribe({next:n=>{this.releases.push(n)},error:n=>{this.showError(n)}})}}return s.\u0275fac=function(t){return new(t||s)(e.Y36(l.au),e.Y36(l.Ph),e.Y36(g.r$),e.Y36(g.x8),e.Y36(i.o_),e.Y36(g.Iu),e.Y36(i.kg),e.Y36(_.gz),e.Y36(_.F0))},s.\u0275cmp=e.Xpm({type:s,selectors:[["kmpzu-playlist-page"]],viewQuery:function(t,n){if(1&t&&(e.Gf(J.P,5),e.Gf(z.l,5)),2&t){let o;e.iGM(o=e.CRH())&&(n.releaseSearchPickerComponent=o.first),e.iGM(o=e.CRH())&&(n.playlistFormComponent=o.first)}},features:[e.qOj],decls:5,vars:2,consts:[["class","uk-container uk-text-center",4,"ngIf"],["class","uk-container",4,"ngIf"],[3,"updated"],[3,"releasePicked"],[1,"uk-container","uk-text-center"],["uk-spinner",""],[1,"uk-container"],[1,"k-selectable-div","flat-card"],["uk-grid",""],[1,"uk-width-1-1","uk-width-auto@m"],[1,"uk-margin-remove"],["uk-grid","",1,"uk-grid-small"],[1,"uk-width-1-1","uk-width-auto@s"],[1,"uk-text-light","uk-text-muted"],[1,"uk-text-light",3,"routerLink"],[1,"uk-width-1-1","uk-width-expand@s"],["class","uk-margin",4,"ngIf"],[1,"uk-width-1-1","uk-width-expand@m","uk-text-right@s"],["cssClass","uk-margin-small-right",3,"kompozObject","large"],[3,"title","kompozObject"],["uk-grid","",1,"uk-margin"],[4,"ngIf"],[1,"uk-width-1-1","uk-width-expand@s","uk-text-right@s"],["class","uk-uk-text-center",4,"ngIf"],["class","uk-overflow-auto",4,"ngIf"],[1,"uk-margin-top"],[3,"pagination","hideIfOne","pageNumberClicked"],[3,"kompozObject","reloadSeconds","pageSize"],[1,"uk-margin"],["class","k-chip uk-margin-small-right",4,"ngFor","ngForOf"],[1,"k-chip","uk-margin-small-right"],["title","Play",1,"uk-button","uk-button-primary","uk-button-large","k-button-rounded",3,"innerHTML","click"],[1,"uk-icon-button","k-icon-button-large","uk-margin-small-left",3,"ngClass","click"],["title","Shuffle",1,"fa-sharp","fa-regular","fa-shuffle"],[1,"uk-icon-button","uk-button-default","k-icon-button-large","uk-margin-small-left"],["t
1itle","More options",1,"fa-sharp","fa-light","fa-ellipsis"],["uk-dropdown","mode: click; pos: bottom-center;"],[1,"uk-nav","uk-dropdown-nav"],[3,"click"],[1,"uk-nav-divider"],[1,"uk-margin-small-left","uk-text-light"],[3,"kompozObject","count","more"],[1,"uk-uk-text-center"],["class","uk-placeholder uk-text-center",4,"ngIf"],[1,"uk-placeholder","uk-text-center"],[1,"uk-text-light"],[1,"uk-text-lead"],["routerLink","/radio"],["routerLink","/radio",1,"uk-button","uk-button-primary","k-button-rounded"],[1,"uk-button","uk-button-default","k-button-rounded","uk-margin-small-left",3,"click"],[1,"uk-overflow-auto"],[1,"uk-table","uk-table-small","uk-table-divider"],[4,"ngFor","ngForOf"],["width","90"],[3,"routerLink"],[3,"src","title"],[1,"uk-label","k-label-genre"],[1,"uk-text-center"],["class","fa-sharp fa-light fa-volume-high fa-fade",4,"ngIf"],[1,"uk-text-right","uk-text-nowrap"],["title","Play",1,"uk-icon-button","uk-button-primary",3,"click"],["title","Play",1,"fa-sharp","fa-solid","fa-play"],["title","Play",1,"uk-icon-button","uk-button-default","uk-margin-small-left"],["title","Play",1,"fa-sharp","fa-light","fa-ellipsis"],[1,"fa-sharp","fa-light","fa-volume-high","fa-fade"]],template:function(t,n){1&t&&(e._UZ(0,"br"),e.YNc(1,Ee,2,0,"div",0),e.YNc(2,We,38,22,"div",1),e.TgZ(3,"kmpzu-playlist-form",2),e.NdJ("updated",function(d){return n.onPlaylistUpdated(d)}),e.qZA(),e.TgZ(4,"kmpzu-release-search-picker",3),e.NdJ("releasePicked",function(d){return n.onAddSongPicked(d)}),e.qZA()),2&t&&(e.xp6(1),e.Q6J("ngIf",void 0===n.playlist),e.xp6(1),e.Q6J("ngIf",void 0!==n.playlist))},dependencies:[a.mk,a.sg,a.O5,_.rH,M.Q,h.u,T.I,k.Z,P.X,J.P,z.l,L.a,a.JJ,I.C,Se.W,Q.i]}),s})()},{path:"release/:releaseId",component:ae},{path:"artist/:userName",component:pe}];let Xe=(()=>{class s{}return s.\u0275fac=function(t){return new(t||s)},s.\u0275mod=e.oAB({type:s}),s.\u0275inj=e.cJS({imports:[a.ez,x.UX,_.Bz.forChild(Ve),l.rY,i.xH]}),s})()}}]);
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.