1"use strict";(self.webpackChunkfansite=self.webpackChunkfansite||[]).push([[4089],{64089:(H,w,a)=>{a.r(w),a.d(w,{NewsModule:()=>$});var d=a(1402),n=a(5e3),h=a(59703),C=a(26381),M=a(44480),l=a(22313),P=a(95797),f=a(54004),u=a(51081),v=a(30368),O=a(99332),x=a(1006),y=a(40520);let _=(()=>{class e{constructor(t,o){this.environment=t,this.http=o}getNews(t){return t.clone().setWhere("is_active","eq",!0),this.http.get(`${this.environment.BACKEND_URL}/api/master-admin/post`,{params:(0,x.q)((0,v.J)(t))}).pipe((0,f.U)(r=>(0,O._)(r)))}}return e.\u0275fac=function(t){return new(t||e)(n.\u0275\u0275inject(u.G),n.\u0275\u0275inject(y.eN))},e.\u0275prov=n.\u0275\u0275defineInjectable({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();var i=a(69808),s=a(41777),k=a(81125);const S=(0,s.X$)("indicatorRotate",[(0,s.SB)("collapsed",(0,s.oB)({transform:"rotate(0deg)"})),(0,s.SB)("expanded",(0,s.oB)({transform:"rotate(180deg)"})),(0,s.eR)("expanded <=> collapsed",(0,s.jt)(k.$m))]);var g=a(76025),b=a(24132),p=a(25245),m=a(47423);function N(e,c){if(1&e&&(n.\u0275\u0275elementStart(0,"div",14),n.\u0275\u0275element(1,"div",15),n.\u0275\u0275elementEnd()),2&e){const t=n.\u0275\u0275nextContext();n.\u0275\u0275advance(1),n.\u0275\u0275property("ngStyle",t.getBackgroundStyle(t.newsPost.image))}}
1function I(e,c){if(1&e&&(n.\u0275\u0275elementStart(0,"div",16),n.\u0275\u0275element(1,"rr-shared-video-player",17),n.\u0275\u0275elementEnd()),2&e){const t=n.\u0275\u0275nextContext();n.\u0275\u0275advance(1),n.\u0275\u0275property("videoId",t.videoId)("playerMode",t.videoPlayerMode)}}const B=function(e){return{pushed:e}};let E=(()=>{class e{constructor(t){this.sanitizer=t,this.isMoreShown=!1}toggleMore(){this.isMoreShown=!this.isMoreShown}getBackgroundStyle(t){return{"background-image":"url("+t+")"}}get videoPlayerMode(){return this.newsPost.youtubeVideo?g.B.YOUTUBE:g.B.RR_DEFAULT}get videoId(){return this.videoPlayerMode===g.B.YOUTUBE?this.newsPost.youtubeVideo:this.newsPost.videoId}}return e.\u0275fac=function(t){return new(t||e)(n.\u0275\u0275directiveInject(l.DomSanitizer))},e.\u0275cmp=n.\u0275\u0275defineComponent({type:e,selectors:[["rr-fansite-feature-shell-news-card"]],inputs:{newsPost:"newsPost"},decls:23,vars:17,consts:[[1,"news-card"],[1,"news-card-container"],["class","news-card-image-container",4,"ngIf"],["class","news-card-video-container",4,"ngIf"],[1,"news-card-content"],[1,"text-content"],[1,"author"],[1,"author-name"],[1,"date"],[1,"title"],[1,"text","line-breaker",3,"innerHTML"],[1,"links",3,"ngClass"],["target","_blank",3,"href"],["mat-button","","color","accent",3,"click"],[1,"news-card-image-container"],[1,"news-image",3,"ngStyle"],[1,"news-card-video-container"],[3,"videoId","playerMode"]],template:function(t,o){1&t&&(n.\u0275\u0275elementStart(0,"div",0)(1,"div",1),n.\u0275\u0275template(2,N,2,1,"div",2),n.\u0275\u0275template(3,I,2,2,"div",3),n.\u0275\u0275elementStart(4,"div",4)(5,"div",5)(6,"div",6)(7,"div",7),n.\u0275\u0275text(8),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementStart(9,"div",8),n.\u0275\u0275text(10),n.\u0275\u0275pipe(11,"date"),n.\u0275\u0275elementEnd()(),n.\u0275\u0275elementStart(12,"div",9)(13,"span"),n.\u0275\u0275text(14),n.\u0275\u0275elementEnd()(),n.\u0275\u0275element(15,"div",10),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementStart(16,"div",11)(17,"a",12),n.\u0275\u0275text(18),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementStart(19,"button",13),n.\u0275\u0275listener("click",function(){return o.toggleMore()}),n.\u0275\u0275text(20),n.\u0275\u0275elementStart(21,"mat-icon"),n.\u0275\u0275text(22,"keyboard_arrow_down"),n.\u0275\u0275elementEnd()()()()()()),2&t&&(n.\u0275\u0275advance(2),n.\u0275\u0275property("ngIf",1===o.newsPost.mediaType),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",2===o.newsPost.mediaType),n.\u0275\u0275advance(5),n.\u0275\u0275textInterpolate1(" ",o.newsPost.from," "),n.\u0275\u0275advance(2),n.\u0275\u0275textInterpolate1(" ",n.\u0275\u0275pipeBind1(11,13,o.newsPost.publishedAt)," "),n.\u0275\u0275advance(4),n.\u0275\u0275textInterpolate(o.newsPost.theme),n.\u0275\u0275advance(1),n.\u0275\u0275classProp("preview",!o.isMoreShown),n.\u0275\u0275property("innerHTML",o.newsPost.text,n.\u0275\u0275sanitizeHtml),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngClass",n.\u0275\u0275pureFunction1(15,B,!o.isMoreShown)),n.\u0275\u0275advance(1),n.\u0275\u0275property("href",o.newsPost.link,n.\u0275\u0275sanitizeUrl),n.\u0275\u0275advance(1),n.\u0275\u0275textInterpolate1(" ",o.newsPost.linkText," "),n.\u0275\u0275advance(2),n.\u0275\u0275textInterpolate1(" ",o.isMoreShown?"less":"more"," "),n.\u0275\u0275advance(1),n.\u0275\u0275property("@indicatorRotate",o.isMoreShown?"expanded":"collapsed"))},dependencies:[i.mk,i.O5,i.PC,b.p,p.Hw,m.lW,i.uU],styles:[".news-card[_ngcontent-%COMP%]{min-height:260px;padding:20px;margin-top:10px;margin-bottom:10px;background-color:#0c1031;box-shadow:0 3px 5px -1px #0003,0 5px 8px #00000024,0 1px 14px #0000001f}.news-card[_ngcontent-%COMP%] .news-card-container[_ngcontent-%COMP%] .news-card-image-container[_ngcontent-%COMP%]{width:49%;height:260px;float:left;margin-right:20px;margin-bottom:20px}.news-card[_ngcontent-%COMP%] .news-card-container[_ngcontent-%COMP%] .news-card-image-container[_ngcontent-%COMP%] .news-image[_ngcontent-%COMP%]{width:100%;height:100%;background-repeat:no-repeat;background-size:contain;background-position-x:50%;background-position-y:50%}.news-card[_ngcontent-%COMP%] .news-card-container[_ngcontent-%COMP%] .news-card-video-container[_ngcontent-%COMP%]{width:49%;float:left;margin-right:20px;margin-bottom:20px}.news-card[_ngcontent-%COMP%] .news-card-container[_ngcontent-%COMP%] .news-card-video-container[_ngcontent-%COMP%] video-handler[_ngcontent-%COMP%]{width:100%;height:100%}.news-card[_ngcontent-%COMP%] .news-card-container[_ngcontent-%COMP%] .news-card-content[_ngcontent-%COMP%]{width:49%;margin-top:20px;
1display:inline}.news-card[_ngcontent-%COMP%] .news-card-container[_ngcontent-%COMP%] .news-card-content[_ngcontent-%COMP%] .text-content[_ngcontent-%COMP%]{min-height:260px}.news-card[_ngcontent-%COMP%] .news-card-container[_ngcontent-%COMP%] .news-card-content[_ngcontent-%COMP%] .text-content[_ngcontent-%COMP%] .author[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.news-card[_ngcontent-%COMP%] .news-card-container[_ngcontent-%COMP%] .news-card-content[_ngcontent-%COMP%] .text-content[_ngcontent-%COMP%] .author[_ngcontent-%COMP%] .author-name[_ngcontent-%COMP%]{font-size:15px;font-weight:500}.news-card[_ngcontent-%COMP%] .news-card-container[_ngcontent-%COMP%] .news-card-content[_ngcontent-%COMP%] .text-content[_ngcontent-%COMP%] .author[_ngcontent-%COMP%] .date[_ngcontent-%COMP%]{font-size:13px;font-weight:300}.news-card[_ngcontent-%COMP%] .news-card-container[_ngcontent-%COMP%] .news-card-content[_ngcontent-%COMP%] .text-content[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{font-size:22px;margin-top:20px;color:#fff;text-overflow:ellipsis;overflow:hidden;line-height:1.5}.news-card[_ngcontent-%COMP%] .news-card-container[_ngcontent-%COMP%] .news-card-content[_ngcontent-%COMP%] .text-content[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{margin-top:20px;font-size:15px;font-weight:300;color:#d5daffcc;line-height:1.5}.news-card[_ngcontent-%COMP%] .news-card-container[_ngcontent-%COMP%] .news-card-content[_ngcontent-%COMP%] .text-content[_ngcontent-%COMP%] .text[_ngcontent-%COMP%] ul{list-style-position:inside;padding:0;margin:0}.news-card[_ngcontent-%COMP%] .news-card-container[_ngcontent-%COMP%] .news-card-content[_ngcontent-%COMP%] .text-content[_ngcontent-%COMP%] .text.preview[_ngcontent-%COMP%]{max-height:130px;overflow:hidden;text-overflow:ellipsis}.news-card[_ngcontent-%COMP%] .news-card-container[_ngcontent-%COMP%] .news-card-content[_ngcontent-%COMP%] .text-content[_ngcontent-%COMP%] .line-breaker[_ngcontent-%COMP%]{white-space:pre-line}.news-card[_ngcontent-%COMP%] .news-card-container[_ngcontent-%COMP%] .news-card-content[_ngcontent-%COMP%] .links[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;margin-top:0;color:#ff3ea7}.news-card[_ngcontent-%COMP%] .news-card-container[_ngcontent-%COMP%] .news-card-content[_ngcontent-%COMP%] .links[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{font-size:15px;font-weight:300;color:#727cc2}.news-card[_ngcontent-%COMP%] .news-card-container[_ngcontent-%COMP%] .news-card-content[_ngcontent-%COMP%] .links.pushed[_ngcontent-%COMP%]{margin-top:-1px}@media (max-width: 1350px){.news-card[_ngcontent-%COMP%]{height:auto}.news-card[_ngcontent-%COMP%] .news-card-container[_ngcontent-%COMP%]{flex-direction:column}.news-card[_ngcontent-%COMP%] .news-card-container[_ngcontent-%COMP%] .news-card-image-container[_ngcontent-%COMP%], .news-card[_ngcontent-%COMP%] .news-card-container[_ngcontent-%COMP%] .news-card-video-container[_ngcontent-%COMP%]{width:100%;float:none}.news-card[_ngcontent-%COMP%] .news-card-container[_ngcontent-%COMP%] .news-card-content[_ngcontent-%COMP%]{width:100%}.news-card[_ngcontent-%COMP%] .news-card-container[_ngcontent-%COMP%] .news-card-content[_ngcontent-%COMP%] .links.pushed[_ngcontent-%COMP%]{margin:0}.news-card[_ngcontent-%COMP%] .news-card-container[_ngcontent-%COMP%] .news-card-content[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{min-height:auto}}"],data:{animation:[(0,s.X$)("bodyExpansion",[(0,s.eR)("* => shown",[(0,s.oB)({height:"0px",visibility:"hidden"}),(0,s.jt)("5000ms 100ms cubic-bezier(0.4,0.4,0.2,1)",(0,s.oB)({height:"auto"}))]),(0,s.eR)("* => hide",[(0,s.jt)("5000ms cubic-bezier(0.4,0.4,0.2,1)",(0,s.oB)({height:"auto"}))])]),S]}}),e})();function R(e,c){if(1&e&&(n.\u0275\u0275elementStart(0,"div",6)(1,"div",7),n.\u0275\u0275element(2,"rr-fansite-feature-shell-news-card",8),n.\u0275\u0275elementEnd()()),2&e){const t=c.$implicit;n.\u0275\u0275advance(2),n.\u0275\u0275property("newsPost",t)}}const z=function(){return["news"]};function T(e,c){1&e&&(n.\u0275\u0275elementStart(0,"div",9)(1,"a",10),n.\u0275\u0275text(2,"More news"),n.\u0275\u0275elementEnd()()),2&e&&(n.\u0275\u0275advance(1),n.\u0275\u0275property("routerLink",n.\u0275\u0275pureFunction0(1,z)))}let j=(()=>{class e{constructor(t,o,r){this.changeDetectorRef=t,this.newsService=o,this.state=r,this.pageSize=6,this.showLink=!1,this.pageIndex=0,this.sort={active:"published_at",direction:"desc"}}ngOnInit(){const t=(0,l.makeStateKey)("fansite_"+this.pageSize);this.news=this.state.get(t,void 0),this.news?this.changeDetectorRef.markForCheck():this.getNews().subscribe(o=>{this.news=o.data,this.state.set(t,this.news),this.changeDetectorRef.markForCheck()})}getNews(){const t=new P.A;return t.setPage(this.pageSize,this.pageIndex),t.setOrderBy(this.sort.active,this.sort.direction),this.pageIndex++,this.newsService.getNews(t)}}return e.\u0275fac=function(t){return new(t||e)(n.\u0275\u0275directiveInject(n.ChangeDetectorRef),n.\u0275\u0275directiveInject(_),n.\u0275\u0275directiveInject(l.TransferState))},e.\u0275cmp=n.\u0275\u0275defineComponent({type:e,selectors:[["rr-fansite-feature-shell-news-block"]],inputs:{pageSize:"pageSize",showLink:"showLink"},decls:8,vars:2,consts:[["id","news",1,"news-block"],[1,"news-title"],[1,"news-content"],[1,"news"],["class","news-container",4,"ngFor","ngForOf"],["class","more-news",4,"ngIf"],[1,"news-container"],[1,"post-container"],[3,"newsPost"],[1,"more-news"],[3,"routerLink"]],template:function(t,o){1&t&&(n.\u0275\u0275elementStart(0,"div",0)(1,"div",1)(2,"p"),n.\u0275\u0275text(3,"Rebel News"),n.\u0275\u0275elementEnd()(),n.\u0275\u0275elementStart(4,"div",2)(5,"div",3),n.\u0275\u0275template(6,R,3,1,"div",4),n.\u0275\u0275elementEnd(),n.\u0275\u0275template(7,T,3,2,"div",5),n.\u0275\u0275elementEnd()()),2&t&&(n.\u0275\u0275advance(6),n.\u0275\u0275property("ngForOf",o.news),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",o.showLink))},dependencies:[i.sg,i.O5,d.yS,E],styles:["[_nghost-%COMP%] .news-block .news-title{display:flex;justify-content:center;align-items:center;padding:80px 20px 30px}[_nghost-%COMP%] .news-block .news-title p{margin-bottom:0;font-size:35px;font-weight:700;text-align:center;color:#fff}[_nghost-%COMP%] .news-block .news-content{overflow:hidden}[_nghost-%COMP%] .news-block .news-content .news .news-container:nth-child(odd){background-color:#0000001a}[_nghost-%COMP%] .news-block .news-content .news .news-container .news-card{margin:0 auto;max-width:700px;background:transparent;box-shadow:none}[_nghost-%COMP%] .news-block .news-content .news .news-container .news-card .links.pushed{margin-top:0!important}[_nghost-%COMP%] .news-block .news-content .news .news-container:last-child .news-card{border-bottom:0}[_nghost-%COMP%] .news-block .news-content p{margin-bottom:0}[_nghost-%COMP%] .news-block .text{width:auto!important;word-wrap:break-word}@media screen and (max-width: 1100px){[_nghost-%COMP%] .news-block{padding-top:50px}[_nghost-%COMP%] .news-block .news-title{padding:30px 20px}}"],changeDetection:0}),e})(),F=(()=>{class e{constructor(t){this.metaTags=t}ngOnInit(){const t="Rebel News - Music Industry News from Rhythmic Rebellion";this.metaTags.update({pageTitle:t,objectName:t,description:"Read news about the Rhythmic Rebellion service and the entire music industry \u{1f3b8} Build a great website including scrolling lyric karaoke and build it for FREE!\u{1f4b0} Fans hear you DJ and introduce your own songs."})}}return e.\u0275fac=function(t){return new(t||e)(n.\u0275\u0275directiveInject(h.N))},e.\u0275cmp=n.\u0275\u0275defineComponent({type:e,selectors:[["rr-fansite-feature-shell-news"]],decls:7,vars:1,consts:[["cdkScrollable","","id","landing-container",1,"landing-container"],["landingContainer",""],["search",""],[1,"news-wrap"],["id","top-section"],[3,"pageSize"]],template:function(t,o){1&t&&(n.\u0275\u0275elementStart(0,"div",0,1)(2,"rr-fansite-ui-header"),n.\u0275\u0275element(3,"rr-fansite-feature-shell-quick-search-control",2),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementStart(4,"div",3),n.\u0275\u0275element(5,"div",4)(6,"rr-fansite-feature-shell-news-block",5),n.\u0275\u0275elementEnd()()),2&t&&(n.\u0275\u0275advance(6),n.\u0275\u0275property("pageSize",999))},dependencies:[C.i,M.G,j],styles:["[_nghost-%COMP%] .news-wrap[_ngcontent-%COMP%]{height:100%;display:flex;flex-direction:column}"],changeDetection:0}),e})(),D=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=n.\u0275\u0275defineNgModule({type:e}),e.\u0275inj=n.\u0275\u0275defineInjector({imports:[d.Bz.forChild([{path:"",component:F}]),d.Bz]}),e})();var L=a(23835),U=a(69197),A=a(83519);let $=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=n.\u0275\u0275defineNgModule({type:e}),e.\u0275inj=n.\u0275\u0275defineInjector({imports:[i.ez,D,U.J,p.Ps,m.ot,A.l,L.O]}),e})()}}]);
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.