1import{a as z}from"./chunk-5XVWBPX5.js";import"./chunk-2DTM4PCL.js";import"./chunk-N75DXDGH.js";import{b as R}from"./chunk-53A43W3A.js";import"./chunk-UB7IYPFH.js";import"./chunk-QPQCECSN.js";import"./chunk-XRWMWB3K.js";import"./chunk-YIKHX72X.js";import"./chunk-P35ON6PX.js";import"./chunk-HLOHHFCD.js";import"./chunk-HJHBSEUQ.js";import{k as j}from"./chunk-CXWAFE77.js";import{$,Eb as S,Jb as p,Kb as P,Mb as U,Nb as V,Ob as o,Pb as r,Ub as v,W as y,Yb as g,Zb as s,_ as I,ab as C,ba as L,eb as l,hc as d,ic as x,jb as h,jc as B,l as k,lc as w,m as A,mc as b,nc as M,q as f,qb as F,ra as m,sa as u,ub as _,vc as D,wc as T,z as E}from"./chunk-P5UROMFP.js";function O(i,a){if(i&1){let e=v();o(0,"img",15),g("error",function(){m(e);let n=s().$implicit,c=s(2);return u(c.onLoadError(n,n.datavalue.title.cover))}),r()}if(i&2){let e=s().$implicit,t=s(2);S("src",e.datavalue.title.cover||t.noCover,C)("alt",e.datavalue.title.artist+" - "+e.datavalue.title.title)}}function N(i,a){if(i&1){let e=v();o(0,"img",15),g("error",function(){m(e);let n=s().$implicit,c=s(2);return u(c.onLoadError(n,n.datavalue.player.logo))}),r()}if(i&2){let e=s().$implicit,t=s(2);S("src",e.datavalue.player.logo||t.noCover,C)("alt",e.datavalue.player.author+" - "+e.datavalue.player.name)}}function H(i,a){if(i&1&&(o(0,"div",14)(1,"span",16),d(2),r(),o(3,"p",17),d(4),r()(),o(5,"p",18),d(6),r()),i&2){let e=s().$implicit;l(2),x(e.datavalue.title.artist),l(2),x(e.datavalue.title.title),l(2),B("Bei uns geh\xF6rt - ",e.datavalue.player.name,"")}}function J(i,a){if(i&1&&(o(0,"div",14)(1,"span",16),d(2),r(),o(3,"p",17),d(4),r()()),i&2){let e=s().$implicit;l(2),x(e.datavalue.player.author),l(2),x(e.datavalue.player.name)}}function Y(i,a){if(i&1){let e=v();o(0,"div",6)(1,"div",8),_(2,O,1,2,"img",9)(3,N,1,2,"img",9),o(4,"button",10),g("click",function(){let n=m(e).$implicit,c=s(2);return u(c.play(n))}),o(5,"span",11),d(6,"play_circle"),r()()(),o(7,"div",12)(8,"div",13),d(9,"\xA0"),r(),_(10,H,7,3)(11,J,5,2,"div",14),r()()}if(i&2){let e=a.$implicit;l(2),p(e.datavalue.title?2:-1),l(),p(e.datavalue.player.type==="audio"?3:-1),l(7),p(e.datavalue.title?10:-1),l(),p(e.datavalue.player.type==="audio"?11:-1)}}function W(i,a){if(i&1){let e=v();o(0,"div",7)(1,"button",19),g("click",function(){m(e);let n=s(2);return u(n.loadMore$.next(null))}),d(2," Mehr laden "),r()()}}function G(i,a){if(i&1&&(o(0,"div",0)(1,"div",1)(2,"h2"),d(3,"Titel, die du magst"),r(),o(4,"div",2)(5,"span",3),d(6," info "),r(),o(7,"div",4),d(8," Hier findest Du alle Deine gelikten Titel. "),r()()()(),o(9,"section",5),U(10,Y,12,4,"div",6,P),_(12,W,3,0,"div",7),r()),i&2){s();let e=M(0),t=M(2);l(10),V(e),l(2),p(t?12:-1)}}var Q=class i{constructor(a,e){this.quantooService=a;this.playerService=e;this.songs$=this.loadMore$.asObservable().pipe(I(null),y((t,n)=>({item:n,from:t.from+t.size,size:n?1:this.#e}),{item:null,from:-this.#e,size:this.#e}),$(({item:t,from:n,size:c})=>E([t===null?f(t):this.quantooService.deleteUserDataJSON(t.uuid,t.partition,t.datakey),this.quantooService.getMyLikedSongs(this.user,n,c),f(c)])),L(([t,n,c])=>n.length===0||c===this.#e&&n.length<this.#e?this.showLoadMoreButton$.next(!1):null),y((t,[n,c,K])=>[...t.filter(q=>q.datakey!==n?.datakey),...c],[]))}user;noCover;songs$;loadMore$=new k;showLoadMoreButton$=new A(!0);#e=4;onLoadError(a,e){e&&e.length>0&&this.loadMore$.next(a)}play(a){a.datavalue.player.type==="radio"&&this.playerService.changeRadioStation(a.datavalue.player),a.datavalue.player.type==="audio"&&this.playerService.changeAudio(a.datavalue.player)}static \u0275fac=function(e){return new(e||i)(h(R),h(z))};static \u0275cmp=F({type:i,selectors:[["app-my-area-songs"]],inputs:{user:"user",noCover:"noCover"},decls:5,vars:7,consts:[[1,"pl-4","containerwidth:pl-0","flex","flex-row","w-full","justify-between"],[1,"flex","flex-row","w-full","items-center","gap-1"],[1,"tooltip-container","relative"],["aria-label","Hilfsmeldung \xF6ffnen",1,"material-symbols-outlined","text-[1.2rem]","md:text-[1.5rem]"],[1,"tooltip-content"],[1,"pl-0","containerwidth:pl-0","grid","gap-4","grid-cols-1","md:grid-cols-2","lg:grid-cols-2"],[1,"flex","flex-row","gap-x-4","lg:pr-4","bg-white","drop-shadow-md"],[1,"col-span-full","flex","justify-center"],[1,"relative","aspect-square","w-40","h-40"],[1,"w-full","h-full","object-cover",3,"src","alt"],["aria-label","Audio-Inhalt anh\xF6ren",1,"absolute","bottom-0","right-1","text-white","playButton","mt-2","transition","duration-100","hover:text-primary",3,"click"],[1,"material-symbols-outlined","filled","text-[4rem]"],[1,"flex","w-full","flex-col","gap-0","justify-between","py-4","px-4","lg:px-0"],[1,"hidden","lg:block"],[1,"flex","flex-col","gap-0"],[1,"w-full","h-full","object-cover",3,"error","src","alt"],[1,"font-bold","text-lg"],[1,"font-base"],[1,"italic","mt-4","lg:mt-0"],[1,"button","primary","self-end","mt-4",3,"click"]],template:function(e,t){if(e&1&&(w(0),D(1,"async"),w(2),D(3,"async"),_(4,G,13,1)),e&2){let n=b(T(1,1,t.songs$));l(2),b(T(3,4,t.showLoadMoreButton$)),l(2),p(n&&n.length?4:-1)}},dependencies:[j],encapsulation:2,changeDetection:0})};export{Q as MyAreaSongsComponent};
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.