PageSourceSearch

https://www.commudle.com/8468.a572745112c2d381.js

js commudle.com collected 2026-09-24 08:38:21 UTC 26,719 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkcommudle_admin=self.webpackChunkcommudle_admin||[]).push([[8468],{88468:(lt,f,o)=>{o.r(f),o.d(f,{ExternalFeedModule:()=>ct});var r=o(98434),m=o(89417),c=o(14481),v=o(93630),I=o(10049),y=o(35759),h=o(69262),d=o(73165),u=o(71027),p=o(55553),t=o(23214);let C=(()=>{class n{constructor(e,s){this.http=e,this.apiRoutesService=s,this.popular_tags_api="https://feed.commudle.com/feed/v2/popular-tags/"}pGetAll(e){const s=(new d.Nl).set("page",e);return this.http.get(this.apiRoutesService.getRoute(p.Q.EXTERNAL_FEEDS.INDEX),{params:s})}pGetTagBasedFeed(e,s,i){let a=new d.Nl;for(let g in e)a=a.append("tags[]",e[g]);return a=a.append("page",s),a=a.append("sort",i),this.http.get(this.apiRoutesService.getRoute(p.Q.EXTERNAL_FEEDS.TAGS_POST),{params:a})}pGetPopularFeed(e){const s=(new d.Nl).set("page",e);return this.http.get(this.apiRoutesService.getRoute(p.Q.EXTERNAL_FEEDS.POPULAR_POST),{params:s})}pShow(e){const s=(new d.Nl).set("feed_item_id",e);return this.http.get(this.apiRoutesService.getRoute(p.Q.EXTERNAL_FEEDS.SHOW),{params:s})}pGetPopularTags(){return this.http.get(this.popular_tags_api)}static{this.\u0275fac=function(s){return new(s||n)(t.KVO(d.Qq),t.KVO(u.Y))}}static{this.\u0275prov=t.jDH({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();var k=o(40663),T=o(97586),b=o(22299);const P=n=>["/feed",n];function S(n,l){if(1&n&&(t.j41(0,"div",13),t.nrm(1,"img",14),t.k0s()),2&n){const e=t.XpG();t.R7$(),t.FS9("alt",e.feedItem.details.source),t.FS9("src",e.feedItem.details.image,t.B4B),t.FS9("title",e.feedItem.details.image)}}function E(n,l){if(1&n&&(t.j41(0,"div",15)(1,"span",16),t.EFF(2,"#"),t.k0s(),t.EFF(3),t.k0s()),2&n){const e=l.$implicit;t.R7$(3),t.SpI(" ",e.name," ")}}function $(n,l){if(1&n&&(t.j41(0,"span"),t.EFF(1),t.k0s()),2&n){const e=t.XpG();t.R7$(),t.SpI(" ",e.feedItem.messages_count," ")}}let R=(()=>{class n{constructor(e){this.datePipe=e,this.moment=T}ngOnInit(){this.feedItem.details.created_at=this.datePipe.transform(this.feedItem.details.created_at,"d MMMM, YYYY")}static{this.\u0275fac=function(s){return new(s||n)(t.rXU(r.vh))}}static{this.\u0275cmp=t.VBU({type:n,selectors:[["app-external-feed-hlist-item"]],inputs:{feedItem:"feedItem"},standalone:!1,decls:21,vars:15,consts:[[1,"clickable","external-feed-list-item",3,"routerLink"],["class","image",4,"ngIf"],[1,"source-details","align-items-center","d-flex"],[1,"source-info"],[1,"title"],[1,"name"],["class","tags",4,"ngFor","ngForOf"],[1,"stats","d-flex","align-items-center"],[1,"stars"],[3,"icon","votableId","votableType"],[1,"comments",3,"routerLink"],[4,"ngIf"],["icon","message-circle-outline"],[1,"image"],[3,"alt","src","title"],[1,"tags"],[1,"tag-hash"]],template:function(s,i){1&s&&(t.j41(0,"div",0)(1,"nb-card")(2,"nb-card-body"),t.DNE(3,S,2,3,"div",1),t.j41(4,"div",2)(5,"div",3)(6,"em"),t.EFF(7),t.k0s(),t.nrm(8,"br"),t.j41(9,"small"),t.EFF(10),t.k0s()()(),t.j41(11,"div",4)(12,"h3",5),t.EFF(13),t.k0s()(),t.DNE(14,E,4,1,"div",6),t.j41(15,"div",7)(16,"p",8),t.nrm(17,"app-votes-display",9),t.k0s(),t.j41(18,"p",10),t.DNE(19,$,2,1,"span",11),t.nrm(20,"nb-icon",12),t.k0s()()()()()),2&s&&(t.Y8G("routerLink",t.eq3(11,P,i.feedItem.id)),t.R7$(3),t.Y8G("ngIf",i.feedItem.details.image.length>0),t.R7$(4),t.SpI(" ",i.feedItem.details.source," "),t.R7$(3),t.SpI(" ",i.feedItem.details.created_at," "),t.R7$(3),t.JRh(i.feedItem.details.title),t.R7$(),t.Y8G("ngForOf",i.feedItem.details.tags),t.R7$(3),t.Y8G("icon","heart")("votableId",i.feedItem.id)("votableType","FeedItem"),t.R7$(),t.Y8G("routerLink",t.eq3(13,P,i.feedItem.id)),t.R7$(),t.Y8G("ngIf",i.feedItem.messages_count>0))},dependencies:[r.Sq,r.bT,h.Wk,b.J,c.SrT,c.KH5,c.tHu],styles:['.external-feed-list-item[_ngcontent-%COMP%]   p[_ngcontent-%COMP%], .external-feed-list-item[_ngcontent-%COMP%]   a[_ngcontent-%COMP%], .external-feed-list-item[_ngcontent-%COMP%]   div[_ngcontent-%COMP%], .external-feed-list-item[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{font-family:Inter}.external-feed-list-item[_ngcontent-%COMP%]   nb-card[_ngcontent-%COMP%]{border:1px;box-shadow:none;margin-bottom:8px}.external-feed-list-item[_ngcontent-%COMP%]   nb-card[_ngcontent-%COMP%]   nb-card-body[_ngcontent-%COMP%]:hover{box-shadow:1px 1px 5px 5px #d3d3d3}.external-feed-list-item[_ngcontent-%COMP%]   nb-card[_ngcontent-%COMP%]   nb-card-body[_ngcontent-%COMP%]   .image[_ngcontent-%COMP%]{background-color:#f3f3f3;border:1px solid #f3f3f3;height:140px;margin-bottom:5px;overflow:hidden;text-align:center;width:100%}.external-feed-list-item[_ngcontent-%COMP%]   nb-card[_ngcontent-%COMP%]   nb-card-body[_ngcontent-%COMP%]   .image[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:100%}.external-feed-list-item[_ngcontent-%COMP%]   nb-card[_ngcontent-%COMP%]   nb-card-body[_ngcontent-%COMP%]   .source-details[_ngcontent-%COMP%]   .source-info[_ngcontent-%COMP%]{align-items:center;font-size:14px;margin-bottom:1px}.external-feed-list-item[_ngcontent-%COMP%]   nb-card[_ngcontent-%COMP%]   nb-card-body[_ngcontent-%COMP%]   h3.name[_ngcontent-%COMP%]{color:#000;font-size:24px;font-weight:600;line-height:normal;margin-bottom:15px;margin-top:15px}.external-feed-list-item[_ngcontent-%COMP%]   nb-card[_ngcontent-%COMP%]   nb-card-body[_ngcontent-%COMP%]   .tags[_ngcontent-%COMP%]{display:inline-block;font-color:"#b7b7b7";font-size:14px;line-height:1.3;margin-bottom:10px;padding:4px}.external-feed-list-item[_ngcontent-%COMP%]   nb-card[_ngcontent-%COMP%]   nb-card-body[_ngcontent-%COMP%]   .tags[_ngcontent-%COMP%]   .tag-hash[_ngcontent-%COMP%]{font-weight:400;opacity:.4}.external-feed-list-item[_ngcontent-%COMP%]   nb-card[_ngcontent-%COMP%]   nb-card-body[_ngcontent-%COMP%]   .stats[_ngcontent-%COMP%] > p[_ngcontent-%COMP%]{margin:0 16px 0 0}.external-feed-list-item[_ngcontent-%COMP%]   nb-card[_ngcontent-%COMP%]   nb-card-body[_ngcontent-%COMP%]   .stats[_ngcontent-%COMP%] > p.comments[_ngcontent-%COMP%]   nb-icon[_ngcontent-%COMP%]{color:#979797}']})}}return n})();const _=(n,l)=>({white:n,"light-purple":l});function G(n,l){if(1&n){const e=t.RV6();t.j41(0,"div",15)(1,"input",16),t.bIt("change",function(i){const a=t.eBV(e).$implicit,g=t.XpG();return t.Njj(g.updateCheckedTags(a,i))}),t.k0s(),t.j41(2,"label",17),t.EFF(3),t.k0s(),t.nrm(4,"br")(5,"br"),t.k0s()}if(2&n){const e=l.$implicit;t.R7$(),t.FS9("value",e),t.Mz_("id","#",e,""),t.Y8G("checked",!1),t.R7$(),t.Mz_("for","#",e,""),t.R7$(),t.SpI(" #",e," ")}}function L(n,l){if(1&n&&(t.j41(0,"div"),t.nrm(1,"app-external-feed-hlist-item",18),t.k0s()),2&n){const e=l.$implicit;t.R7$(),t.Y8G("feedItem",e)}}function D(n,l){if(1&n){const e=t.RV6();t.j41(0,"div",19)(1,"button",20),t.bIt("click",function(){t.eBV(e);const i=t.XpG();return t.Njj(i.getFeedPosts())}),t.EFF(2," Load More! "),t.k0s()()}}let j=(()=>{class n{constructor(e,s){this.feedItemService=e,this.seoService=s,this.externalPosts=[],this.page=1,this.canLoadMore=!0,this.tags=[],this.tagsMap={},this.tagsChecked=[],this.sortingCriterion="published_at",this.toggleLatestButton=!1,this.togglePopularButton=!1}ngOnInit(){this.setMeta(),this.getPopularTags(),this.initTagsMap(),this.getFeedPosts()}initTagsMap(){for(var e=0;e<this.tags.length;e++)this.tagsMap[this.tags[e]]=!1}getPopularTags(){this.feedItemService.pGetPopularTags().subscribe(e=>{let s=e.tags;for(let i in s)this.tags.push(s[i].tag)})}updateCheckedTags(e,s){this.page=1,1==s.target.checked?this.tagsChecked.push(e):this.tagsChecked=this.tagsChecked.filter(function(i){return i!=e}),this.externalPosts=[],this.canLoadMore=!0,this.getFeedPosts()}getFeedPosts(){(!this.total||this.externalPosts.length<this.total)&&(0==this.tagsChecked.length?"published_at"==this.sortingCriterion?this.feedItemService.pGetAll(this.page).subscribe(e=>{this.externalPosts=this.externalPosts.concat(e.feed_items),this.page+=1,this.total=e.total,this.externalPosts.length>=this.total&&(this.canLoadMore=!1)}):this.feedItemService.pGetPopularFeed(this.page).subscribe(e=>{this.externalPosts=this.externalPosts.concat(e.feed_items),this.page+=1,this.total=e.total,this.externalPosts.length>=this.total&&(this.canLoadMore=!1)}):this.feedItemService.pGetTagBasedFeed(this.tagsChecked,this.page,this.sortingCriterion).subscribe(e=>{this.externalPosts=this.externalPosts.concat(e.feed_items),this.page+=1,this.total=e.total,this.externalPosts.length>=this.total&&(this.canLoadMore=!1)}))}getLatestPosts(){this.toggleLatestButton=!0,this.togglePopularButton&&(this.togglePopularButton=!1),this.sortingCriterion="published_at",this.page=1,this.externalPosts=[],this.canLoadMore=!0,this.getFeedPosts()}getPopularPosts(){this.togglePopularButton=!0,this.toggleLatestButton&&(this.toggleLatestButton=!1),this.sortingCriterion="likes",this.page=1,this.externalPosts=[],this.canLoadMore=!0,this.getFeedPosts()}setMeta(){this.seoService.setTags("Feed from Around the World","Find what more is happening around the world of tech","https://commudle.com/assets/images/commudle-logo192.png")}static{this.\u0275fac=function(s){return new(s||n)(t.rXU(C),t.rXU(k.B))}}static{this.\u0275cmp=t.VBU({type:n,selectors:[["app-external-feed"]],standalone:!1,decls:27,vars:11,consts:[[1,"external-feed","page-padding"],[1,"page-container","d-flex","justify-content-center"],[1,"left-column"],[1,"tag-checkboxes"],[1,"header"],["class","tag-checkbox",4,"ngFor","ngForOf"],[1,"right-column"],["icon","cast-outline","status","warning"],[1,"sorting","d-flex","justify-content-center"],[3,"click","ngClass"],["
1icon","sun","status","warning"],["icon","flash","status","warning"],[1,"external-feed-list"],[4,"ngFor","ngForOf"],["class","load-more-button",4,"ngIf"],[1,"tag-checkbox"],["type","checkbox","name","tags",3,"change","value","id","checked"],[3,"for"],[3,"feedItem"],[1,"load-more-button"],["fullWidth","","nbButton","","status","primary","size","small","outline","",3,"click"]],template:function(s,i){1&s&&(t.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"nb-card",3)(4,"div",4),t.EFF(5,"Popular Tags"),t.k0s(),t.DNE(6,G,6,7,"div",5),t.k0s()(),t.j41(7,"div",6)(8,"nb-card",4)(9,"nb-card-body")(10,"h1"),t.nrm(11,"nb-icon",7),t.EFF(12," Feed "),t.k0s(),t.j41(13,"p"),t.EFF(14,"Some links from around the world!"),t.k0s()()(),t.j41(15,"nb-card")(16,"div",8)(17,"button",9),t.bIt("click",function(){return i.getLatestPosts()}),t.nrm(18,"nb-icon",10),t.EFF(19," Latest "),t.k0s(),t.j41(20,"button",9),t.bIt("click",function(){return i.getPopularPosts()}),t.nrm(21,"nb-icon",11),t.EFF(22," Hot "),t.k0s(),t.nrm(23,"hr"),t.k0s()(),t.j41(24,"div",12),t.DNE(25,L,2,1,"div",13),t.k0s(),t.DNE(26,D,3,0,"div",14),t.k0s()()()),2&s&&(t.R7$(6),t.Y8G("ngForOf",i.tags),t.R7$(11),t.Y8G("ngClass",t.l_i(5,_,!i.toggleLatestButton,i.toggleLatestButton)),t.R7$(3),t.Y8G("ngClass",t.l_i(8,_,!i.togglePopularButton,i.togglePopularButton)),t.R7$(5),t.Y8G("ngForOf",i.externalPosts),t.R7$(),t.Y8G("ngIf",i.canLoadMore&&i.total))},dependencies:[r.YU,r.Sq,r.bT,c.SrT,c.KH5,c.YP2,c.tHu,R],styles:[".external-feed[_ngcontent-%COMP%]   .left-column[_ngcontent-%COMP%]{margin-top:10px;width:264px}.external-feed[_ngcontent-%COMP%]   .left-column[_ngcontent-%COMP%]   .tag-checkboxes[_ngcontent-%COMP%]{border:1px;box-shadow:none;font-weight:10px;font-size:30px;text-align:left;margin-top:4px;margin-left:10px;padding-left:32px;padding-top:20px;padding-bottom:20px}.external-feed[_ngcontent-%COMP%]   .left-column[_ngcontent-%COMP%]   .tag-checkboxes[_ngcontent-%COMP%]   .header[_ngcontent-%COMP%]{height:50px;font-weight:500;font-size:25px;text-align:justify}.external-feed[_ngcontent-%COMP%]   .left-column[_ngcontent-%COMP%]   .tag-checkboxes[_ngcontent-%COMP%]   .tag-checkbox[_ngcontent-%COMP%]{font-size:16px}.external-feed[_ngcontent-%COMP%]   .left-column[_ngcontent-%COMP%]   .tag-checkboxes[_ngcontent-%COMP%]   .tag-checkbox[_ngcontent-%COMP%]   .label[_ngcontent-%COMP%]{display:inline-block}.external-feed[_ngcontent-%COMP%]   .right-column[_ngcontent-%COMP%]{width:700px}.external-feed[_ngcontent-%COMP%]   .right-column[_ngcontent-%COMP%]   .header[_ngcontent-%COMP%]{border:1px;box-shadow:none}.external-feed[_ngcontent-%COMP%]   .right-column[_ngcontent-%COMP%]   .header[_ngcontent-%COMP%]   h1[_ngcontent-%COMP%]{font-weight:500}.external-feed[_ngcontent-%COMP%]   .right-column[_ngcontent-%COMP%]   .header[_ngcontent-%COMP%]   h1[_ngcontent-%COMP%]   nb-icon[_ngcontent-%COMP%]{font-size:40px;font-weight:500}.external-feed[_ngcontent-%COMP%]   .right-column[_ngcontent-%COMP%]   .sorting[_ngcontent-%COMP%]{border:1px;box-shadow:none}.external-feed[_ngcontent-%COMP%]   .right-column[_ngcontent-%COMP%]   .sorting[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin:10px;background-color:#fff;font-size:16px;border:none;text-align:center;width:100px}.external-feed[_ngcontent-%COMP%]   .right-column[_ngcontent-%COMP%]   .sorting[_ngcontent-%COMP%]   .white[_ngcontent-%COMP%]{background-color:#fff}.external-feed[_ngcontent-%COMP%]   .right-column[_ngcontent-%COMP%]   .sorting[_ngcontent-%COMP%]   .light-purple[_ngcontent-%COMP%]{background-color:#eef}@media (min-width: 576px){.external-feed[_ngcontent-%COMP%]   .page-container[_ngcontent-%COMP%]{margin:0 auto}}"]})}}return n})();var Y=o(98426),w=o(52261),B=o(21413),N=o(56977),O=o(77317),M=o(84412),A=o(18641),X=o(52847);let z=(()=>{class n{constructor(e,s,i){this.actionCableConnection=e,this.authWatchService=s,this.ngZone=i,this.ACTIONS={SET_PERMISSIONS:"set_permissions",TOGGLE_FLAG:"toggle_flag",ERROR:"error"},this.subscriptions={},this.retryTimeouts={},this.channelsList=new M.t(new Set),this.channelsList$=this.channelsList.asObservable(),this.channelData={},this.channelData$={},this.ngZone.runOutsideAngular(()=>this.actionCableConnection.acSocket$.subscribe(a=>{this.cableConnection=a}))}subscribe(e,s,i){if(this.cableConnection){const a=`${s}_${e}_${i}`;this.channelData[a]=new M.t(null),this.channelData$[a]=this.channelData[a].asObservable(),this.channelsList.next(this.channelsList.getValue().add(a)),this.ngZone.runOutsideAngular(()=>{this.subscriptions[a]=this.cableConnection.subscriptions.create({channel:A.E.FLAG_CHANNEL,flaggable_type:e,flaggable_id:s,app_token:this.authWatchService.getAppToken()},{connected:()=>{this.retryTimeouts[a]&&(clearTimeout(this.retryTimeouts[a]),delete this.retryTimeouts[a])},received:g=>this.ngZone.run(()=>this.channelData[a].next(g)),rejected:()=>{this.retryTimeouts[a]=setTimeout(()=>this.subscribe(e,s,i),5e3)}})})}return this.subscriptions[`${s}_${e}_${i}`]}
1sendData(e,s,i,a,g){this.subscriptions[`${s}_${e}_${i}`].send({perform:a,data:g})}unsubscribe(e,s,i){const a=`${s}_${e}_${i}`;this.retryTimeouts[a]&&(clearTimeout(this.retryTimeouts[a]),delete this.retryTimeouts[a]),this.subscriptions[a]&&this.subscriptions[a].unsubscribe()}static{this.\u0275fac=function(s){return new(s||n)(t.KVO(X.z),t.KVO(O.E),t.KVO(t.SKi))}}static{this.\u0275prov=t.jDH({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();var U=o(9539);let H=(()=>{class n{constructor(e,s){this.http=e,this.apiRoutesService=s}pGetFlagsCount(e,s){const i=(new d.Nl).set("flaggable_type",e).set("flaggable_id",s);return this.http.get(this.apiRoutesService.getRoute(p.Q.FLAGS.PUBLIC.COUNT),{params:i})}static{this.\u0275fac=function(s){return new(s||n)(t.KVO(d.Qq),t.KVO(u.Y))}}static{this.\u0275prov=t.jDH({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();var V=o(46421),K=o(11196);const J=(n,l,e)=>({flagged:n,unflag:l,"has-flags":e});function W(n,l){if(1&n&&(t.j41(0,"span",3),t.EFF(1),t.k0s()),2&n){const e=t.XpG();t.R7$(),t.SpI(" ",e.totalFlags," ")}}let Q=(()=>{class n{constructor(e,s,i,a,g){this.authWatchService=e,this.flagChannel=s,this.flagsService=i,this.toastLogService=a,this.loginAuthService=g,this.uuid=(0,V.A)(),this.permittedActions=[],this.myFlag=!1,this.totalFlags=0,this.destroy$=new B.B}ngOnInit(){this.authWatchService.currentUser$.pipe((0,N.Q)(this.destroy$)).subscribe(e=>{this.currentUser=e,this.initData()})}ngOnDestroy(){this.flagsChannelDataSubscription&&this.flagsChannelDataSubscription.unsubscribe(),this.flagChannel.unsubscribe(this.flaggableType,this.flaggableId,this.uuid),this.destroy$.next(),this.destroy$.complete()}initData(){this.getAllFlags(),this.flagsChannelSubscription&&(this.flagsChannelDataSubscription.unsubscribe(),this.flagChannel.unsubscribe(this.flaggableType,this.flaggableId,this.uuid)),this.flagsChannelSubscription=this.flagChannel.subscribe(this.flaggableType,this.flaggableId,this.uuid),this.receiveData()}getAllFlags(){this.flagsService.pGetFlagsCount(this.flaggableType,this.flaggableId).subscribe(e=>{this.totalFlags=e.total,this.myFlag=e.flagged})}toggleFlag(){this.currentUser?this.flagChannel.sendData(this.flaggableType,this.flaggableId,this.uuid,this.flagChannel.ACTIONS.TOGGLE_FLAG,{}):this.loginAuthService.openLoginSignupTemplate()}receiveData(){this.flagsChannelListSubscription=this.flagChannel.channelsList$.subscribe(e=>{e.has(`${this.flaggableId}_${this.flaggableType}_${this.uuid}`)&&!this.flagsChannelDataSubscription&&(this.flagsChannelDataSubscription=this.flagChannel.channelData$[`${this.flaggableId}_${this.flaggableType}_${this.uuid}`].subscribe(s=>{if(s)switch(s.action){case this.flagChannel.ACTIONS.SET_PERMISSIONS:this.permittedActions=s.permitted_actions;break;case this.flagChannel.ACTIONS.TOGGLE_FLAG:s.increment?this.totalFlags+=1:this.totalFlags-=1,this.myFlag=!(!s.increment||s.user_id!==this.currentUser.id);break;case this.flagChannel.ACTIONS.ERROR:this.toastLogService.warningDialog(s.message,2e3)}}))})}static{this.\u0275fac=function(s){return new(s||n)(t.rXU(O.E),t.rXU(z),t.rXU(H),t.rXU(U.w),t.rXU(K.D))}}static{this.\u0275cmp=t.VBU({type:n,selectors:[["app-flags-display"]],inputs:{flaggableType:"flaggableType",flaggableId:"flaggableId",flagType:"flagType",size:"size"},standalone:!1,decls:5,vars:9,consts:[["class","count",4,"ngIf"],[3,"click"],["icon","flag",1,"hear",3,"ngClass"],[1,"count"]],template:function(s,i){1&s&&(t.j41(0,"div")(1,"p"),t.DNE(2,W,2,1,"span",0),t.j41(3,"span",1),t.bIt("click",function(){return i.toggleFlag()}),t.nrm(4,"nb-icon",2),t.k0s()()()),2&s&&(t.ZvI("clickable flags size-",i.size,""),t.R7$(2),t.Y8G("ngIf",i.totalFlags>0),t.R7$(2),t.Y8G("ngClass",t.sMw(5,J,i.myFlag,!i.myFlag,i.totalFlags>0)))},dependencies:[r.YU,r.bT,c.tHu],styles:[".flags[_ngcontent-%COMP%] > p[_ngcontent-%COMP%]{margin:0}.flags[_ngcontent-%COMP%] > p[_ngcontent-%COMP%]   .count[_ngcontent-%COMP%]{color:gray}.flags[_ngcontent-%COMP%] > p[_ngcontent-%COMP%]   nb-icon[_ngcontent-%COMP%]{font-size:1.2rem;color:#8080808c}.flags[_ngcontent-%COMP%] > p[_ngcontent-%COMP%]   nb-icon.flagged[_ngcontent-%COMP%]{color:#ff1e1ed6}
1.flags.size-large[_ngcontent-%COMP%] > p[_ngcontent-%COMP%]{font-size:1.8rem}.flags.size-large[_ngcontent-%COMP%] > p[_ngcontent-%COMP%]   nb-icon[_ngcontent-%COMP%]{font-size:1.8rem}"]})}}return n})();var Z=o(91451);const x=n=>["/feed",n];function q(n,l){if(1&n&&(t.j41(0,"div",16),t.nrm(1,"img",17),t.k0s()),2&n){const e=t.XpG();t.R7$(),t.FS9("alt",e.feedItem.details.source),t.FS9("src",e.feedItem.details.image,t.B4B),t.FS9("title",e.feedItem.details.source)}}function tt(n,l){if(1&n&&(t.j41(0,"div",18)(1,"span",19),t.EFF(2,"#"),t.k0s(),t.EFF(3),t.k0s()),2&n){const e=l.$implicit;t.R7$(3),t.JRh(e.name)}}function et(n,l){if(1&n&&(t.j41(0,"span"),t.EFF(1),t.k0s()),2&n){const e=t.XpG();t.R7$(),t.SpI(" ",e.feedItem.messages_count," ")}}function nt(n,l){if(1&n&&(t.j41(0,"nb-card")(1,"nb-card-header"),t.EFF(2,"Discussion"),t.k0s(),t.j41(3,"nb-card-body"),t.nrm(4,"app-messages",20),t.k0s()()),2&n){const e=t.XpG();t.R7$(4),t.Y8G("discussion",e.discussionChat)}}let st=(()=>{class n{constructor(e,s){this.discussionsService=e,this.datePipe=s}ngOnInit(){this.feedItem.details.created_at=this.datePipe.transform(this.feedItem.details.created_at,"d MMMM, YYYY"),this.getDiscussionChat()}getDiscussionChat(){this.discussionsService.pGetOrCreateForFeedItemChat(this.feedItem.id).subscribe(e=>this.discussionChat=e)}static{this.\u0275fac=function(s){return new(s||n)(t.rXU(w.T),t.rXU(r.vh))}}static{this.\u0275cmp=t.VBU({type:n,selectors:[["app-feed-item-details"]],inputs:{feedItem:"feedItem"},standalone:!1,decls:28,vars:20,consts:[[1,"single-external-feed-details",3,"routerLink"],["class","image",4,"ngIf"],[1,"source-details","d-flex","align-items-center"],[1,"source-info"],[1,"title"],[1,"name"],["class","tags",4,"ngFor","ngForOf"],[3,"href"],[1,"stats","d-flex","align-items-center"],[1,"stars"],[3,"icon","votableId","votableType"],[1,"comments",3,"routerLink"],[4,"ngIf"],["icon","message-circle-outline"],[1,"flags"],[3,"flaggableId","flaggableType"],[1,"image"],[3,"alt","src","title"],[1,"tags"],[1,"tag-hash"],[3,"discussion"]],template:function(s,i){1&s&&(t.j41(0,"div",0)(1,"nb-card")(2,"nb-card-body"),t.DNE(3,q,2,3,"div",1),t.j41(4,"div",2)(5,"div",3)(6,"em"),t.EFF(7),t.k0s(),t.nrm(8,"br"),t.j41(9,"small"),t.EFF(10),t.k0s()()(),t.j41(11,"div",4)(12,"h3",5),t.EFF(13),t.k0s()(),t.DNE(14,tt,4,1,"div",6),t.j41(15,"p"),t.EFF(16," Visit the post at: "),t.j41(17,"a",7),t.EFF(18),t.k0s()(),t.j41(19,"div",8)(20,"p",9),t.nrm(21,"app-votes-display",10),t.k0s(),t.j41(22,"p",11),t.DNE(23,et,2,1,"span",12),t.nrm(24,"nb-icon",13),t.k0s(),t.j41(25,"p",14),t.nrm(26,"app-flags-display",15),t.k0s()()()()(),t.DNE(27,nt,5,1,"nb-card",12)),2&s&&(t.Y8G("routerLink",t.eq3(16,x,i.feedItem.id)),t.R7$(3),t.Y8G("ngIf",i.feedItem.details.image.length>0),t.R7$(4),t.SpI(" ",i.feedItem.details.source," "),t.R7$(3),t.SpI(" ",i.feedItem.details.created_at," "),t.R7$(3),t.JRh(i.feedItem.details.title),t.R7$(),t.Y8G("ngForOf",i.feedItem.details.tags),t.R7$(3),t.FS9("href",i.feedItem.details.link,t.B4B),t.R7$(),t.JRh(i.feedItem.details.source),t.R7$(3),t.Y8G("icon","heart")("votableId",i.feedItem.id)("votableType","FeedItem"),t.R7$(),t.Y8G("routerLink",t.eq3(18,x,i.feedItem.id)),t.R7$(),t.Y8G("ngIf",i.feedItem.messages_count>0),t.R7$(3),t.Y8G("flaggableId",i.feedItem.id)("flaggableType","FeedItem"),t.R7$(),t.Y8G("ngIf",i.discussionChat))},dependencies:[r.Sq,r.bT,h.Wk,b.J,Q,Z.y,c.SrT,c.KH5,c.zJv,c.tHu],styles:['.single-external-feed-details[_ngcontent-%COMP%]   p[_ngcontent-%COMP%], .single-external-feed-details[_ngcontent-%COMP%]   a[_ngcontent-%COMP%], .single-external-feed-details[_ngcontent-%COMP%]   div[_ngcontent-%COMP%], .single-external-feed-details[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{font-family:Inter}.single-external-feed-details[_ngcontent-%COMP%]   nb-card[_ngcontent-%COMP%]{border:1px;box-shadow:none;margin-bottom:8px}.single-external-feed-details[_ngcontent-%COMP%]   nb-card[_ngcontent-%COMP%]   nb-card-body[_ngcontent-%COMP%]   .image[_ngcontent-%COMP%]{background-color:#f3f3f3;border:1px solid #f3f3f3;height:100%;margin-bottom:5px;overflow:hidden;width:100%}
1.single-external-feed-details[_ngcontent-%COMP%]   nb-card[_ngcontent-%COMP%]   nb-card-body[_ngcontent-%COMP%]   .image[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{height:100%;width:100%}.single-external-feed-details[_ngcontent-%COMP%]   nb-card[_ngcontent-%COMP%]   nb-card-body[_ngcontent-%COMP%]   .source-details[_ngcontent-%COMP%]   .source-info[_ngcontent-%COMP%]{align-items:center;font-size:14px;margin-bottom:1px}.single-external-feed-details[_ngcontent-%COMP%]   nb-card[_ngcontent-%COMP%]   nb-card-body[_ngcontent-%COMP%]   h3.name[_ngcontent-%COMP%]{color:#000;font-size:24px;font-weight:600;line-height:normal;margin-bottom:15px;margin-top:15px}.single-external-feed-details[_ngcontent-%COMP%]   nb-card[_ngcontent-%COMP%]   nb-card-body[_ngcontent-%COMP%]   .tags[_ngcontent-%COMP%]{display:inline-block;font-color:"#b7b7b7";font-size:.875rem;line-height:1.3;margin-bottom:10px;padding:4px}.single-external-feed-details[_ngcontent-%COMP%]   nb-card[_ngcontent-%COMP%]   nb-card-body[_ngcontent-%COMP%]   .tags[_ngcontent-%COMP%]   .tag-hash[_ngcontent-%COMP%]{font-weight:400;opacity:.4}.single-external-feed-details[_ngcontent-%COMP%]   nb-card[_ngcontent-%COMP%]   nb-card-body[_ngcontent-%COMP%]   .stats[_ngcontent-%COMP%]   .clickable[_ngcontent-%COMP%]   nb-icon[_ngcontent-%COMP%]{color:#979797}.single-external-feed-details[_ngcontent-%COMP%]   nb-card[_ngcontent-%COMP%]   nb-card-body[_ngcontent-%COMP%]   .stats[_ngcontent-%COMP%] > p[_ngcontent-%COMP%]{margin:0 16px 0 0}.single-external-feed-details[_ngcontent-%COMP%]   nb-card[_ngcontent-%COMP%]   nb-card-body[_ngcontent-%COMP%]   .stats[_ngcontent-%COMP%] > p.comments[_ngcontent-%COMP%]   nb-icon[_ngcontent-%COMP%]{color:#979797}.single-external-feed-details[_ngcontent-%COMP%]   .feed-discussion[_ngcontent-%COMP%]{margin:32px 0 64px}']})}}return n})();const F=()=>["/feed"];function it(n,l){if(1&n&&(t.j41(0,"div",1)(1,"div",2)(2,"a",3),t.nrm(3,"nb-icon",4),t.EFF(4," Back "),t.k0s()(),t.nrm(5,"app-feed-item-details",5),t.j41(6,"div",2)(7,"a",3),t.nrm(8,"nb-icon",4),t.EFF(9," Back "),t.k0s()()()),2&n){const e=t.XpG();t.R7$(2),t.Y8G("routerLink",t.lJ4(3,F)),t.R7$(3),t.Y8G("feedItem",e.feedItem),t.R7$(2),t.Y8G("routerLink",t.lJ4(4,F))}}const at=[{path:"",component:j},{path:":id",component:(()=>{class n{constructor(e,s){this.activatedRoute=e,this.feedItemService=s}ngOnInit(){this.activatedRoute.params.subscribe(e=>{this.getExternalFeed(e.id)})}getExternalFeed(e){this.feedItemService.pShow(e).subscribe(s=>{this.feedItem=s})}static{this.\u0275fac=function(s){return new(s||n)(t.rXU(Y.nX),t.rXU(C))}}static{this.\u0275cmp=t.VBU({type:n,selectors:[["app-feed-item"]],standalone:!1,decls:1,vars:1,consts:[["class","single-external-feed page-padding",4,"ngIf"],[1,"single-external-feed","page-padding"],[1,"page-navigation-actions"],["nbButton","","ghost","","size","small",1,"padding-0",3,"routerLink"],["icon","arrow-ios-back"],[3,"feedItem"]],template:function(s,i){1&s&&t.DNE(0,it,10,5,"div",0),2&s&&t.Y8G("ngIf",i.feedItem)},dependencies:[r.bT,h.Wk,c.YP2,c.tHu,st],styles:[".single-external-feed[_ngcontent-%COMP%]{width:100%}@media screen and (min-width: 920px){.single-external-feed[_ngcontent-%COMP%]{width:920px;margin:0 auto}}.single-external-feed[_ngcontent-%COMP%]   .page-navigation-actions[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{margin:0 16px 5px 0}.single-external-feed[_ngcontent-%COMP%]   .page-navigation-actions[_ngcontent-%COMP%]   a.new-build-button[_ngcontent-%COMP%]{padding:3px}.single-external-feed[_ngcontent-%COMP%]   .feed-discussion[_ngcontent-%COMP%]{margin:32px 0 64px}"]})}}return n})()}];let ot=(()=>{class n{static{this.\u0275fac=function(s){return new(s||n)}}static{this.\u0275mod=t.$C({type:n})}static{this.\u0275inj=t.G2t({imports:[h.iI.forChild(at),h.iI]})}}return n})(),ct=(()=>{class n{static{this.\u0275fac=function(s){return new(s||n)}}static{this.\u0275mod=t.$C({type:n})}static{this.\u0275inj=t.G2t({providers:[r.vh],imports:[r.MD,ot,I.u,v.sv,y.T,m.YN,m.X1,c.lVF,c.VcP,c.pty,c.P5N,c.clu,c.Ofb,c.Ad8,c.NeG,c.Mif,c.Ad8]})}}return n})()}}]);

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.