PageSourceSearch

https://ttb.org/7897.041b030db168ca08.js

js ttb.org collected 2026-09-24 09:37:34 UTC 15,142 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[7897],{33428(N,U,a){a.d(U,{p:()=>v});var f=a(55537),r=a(83534),I=a(34594),E=a(6977),h=a(49458),R=a(99788),l=a(47762),T=a(61e3),M=a(47415),e=a(10599),O=a(68554),S=a(20995);function u(m,t){1&m&&(e.j41(0,"ion-card",12)(1,"p")(2,"span"),e.EFF(3),e.nI1(4,"translate"),e.nrm(5,"br"),e.EFF(6),e.nI1(7,"translate"),e.k0s()()()),2&m&&(e.R7$(3),e.SpI("",e.bMT(4,2,"SERMONS.nocommentsyet")," ....."),e.R7$(3),e.JRh(e.bMT(7,4,"SERMONS.bethefirstone")))}function k(m,t){if(1&m&&(e.j41(0,"small"),e.EFF(1),e.k0s()),2&m){const c=e.XpG().$implicit,d=e.XpG();e.R7$(),e.JRh(d.appService.getDateTimeFormat(c.created_at))}}function P(m,t){if(1&m&&(e.j41(0,"div",13)(1,"div",14)(2,"ion-avatar",15),e.nrm(3,"img",16),e.k0s()(),e.j41(4,"div",17)(5,"h3",18),e.EFF(6),e.nI1(7,"translate"),e.k0s(),e.j41(8,"p"),e.EFF(9),e.k0s(),e.j41(10,"p"),e.DNE(11,k,2,1,"small",19),e.k0s()()()),2&m){const c=t.$implicit;e.R7$(6),e.SpI(" ",c.name?c.name:e.bMT(7,3,"FEED.Anonymous")," "),e.R7$(3),e.JRh(c.comment),e.R7$(2),e.Y8G("ngIf",c.created_at)}}let v=(()=>{class m{constructor(c,d,_,C,b,$,j){this.apiService=c,this.observableService=d,this.authService=_,this.commonComponentService=C,this.router=b,this.appService=$,this.translate=j,this.comments=[],this.id=1,this.from="shows",this.from_page_url="",this.comment="",this.account_donor_id=1,this.is_logged_in=!1,this.first_last_name=""}ngOnInit(){this.translate.get(M.U7.ALERTS).subscribe(c=>{this.alert_message=c}),this.observableService.user_login_status.subscribe(()=>{this.getUserData()})}getUserData(){const c=this.authService.getUserData();c?(this.account_donor_id=c.id,this.first_last_name=c.first_last_name,this.is_logged_in=!0):(this.account_donor_id=1,this.first_last_name="",this.is_logged_in=!1)}loginToast(){this.commonComponentService.presentToast("bottom",this.alert_message?.login_to_comment||M.U7.LOGIN_TO_COMMENT,"warning"),""!==this.from_page_url&&this.router.navigate(["/auth-main",{fromPage:this.from_page_url}])}onCreateComment(){if(this.is_logged_in){if(""!==this.comment){const c={id:this.id,c
1omment_type:this.from,comment:this.comment,station_id:parseInt(this.observableService.station_id),account_donor_id:this.account_donor_id,attachment:null};this.apiService.createComment(c).subscribe(d=>{d.status&&(this.comments.push({id:d.data.id,name:this.first_last_name||"Anonymous",comment:d.data.comment,account_donor_id:this.account_donor_id,station_id:parseInt(this.observableService.station_id),created_at:d.data.created_at||"",updated_at:d.data.updated_at||""}),this.comment="")})}}else this.loginToast()}static{this.\u0275fac=function(d){return new(d||m)(e.rXU(I.G),e.rXU(O.s),e.rXU(R.u),e.rXU(l.F),e.rXU(S.Ix),e.rXU(T.d),e.rXU(h.c$))}}static{this.\u0275cmp=e.VBU({type:m,selectors:[["app-comments-section"]],inputs:{comments:"comments",id:"id",from:"from",from_page_url:"from_page_url"},features:[e.Jv_([I.G])],decls:13,vars:7,consts:[[1,"commitSection"],[1,"commitSection--Listing","ion-margin-top"],["class","cCard cCard--alert cCard--gray ion-text-left",4,"ngIf"],["class","ionMedia",4,"ngFor","ngForOf"],[1,"commitSection--footer"],["lines","none",1,"inputField","inputField--chatBox"],["slot","start"],["width","40","height","40","alt","user-img","src","assets/img/user_icon.png"],["autocapitalize","sentences","inputmode","text","name","comment",1,"inputField__area",3,"ngModelChange","ngModel","placeholder"],["slot","end"],["color","primary","fill","clear","size","small",3,"click"],["size","small","src","assets/ionicons/dist/collection/components/icon/svg/send.svg"],[1,"cCard","cCard--alert","cCard--gray","ion-text-left"],[1,"ionMedia"],[1,"ionMedia__item"],[1,"small"],["alt","urer-profile","src","assets/img/user_icon.png"],[1,"ionMedia__body"],[1,"mt-0",2,"font-weight","bold"],[4,"ngIf"]],template:function(d,_){1&d&&(e.j41(0,"div",0)(1,"div",1),e.DNE(2,u,8,6,"ion-card",2)(3,P,12,5,"div",3),e.k0s(),e.j41(4,"div",4)(5,"ion-item",5)(6,"ion-avatar",6),e.nrm(7,"img",7),e.k0s(),e.j41(8,"ion-input",8),e.nI1(9,"translate"),e.mxI("ngModelChange",function(b){return e.DH7(_.comment,b)||(_.comment=b),b}),e.k0s(),e.j41(10,"ion-buttons",9)(11,"ion-button",10),e.bIt("click",function(){return _.onCreateComment()}),e.nrm(12,"ion-icon",11),e.k0s()()()()()),2&d&&(e.R7$(2),e.Y8G("ngIf",!(null!=_.comments&&_.comments.length)),e.R7$(),e.Y8G("ngForOf",_.comments),e.R7$(5),e.Y8G("placeholder",e.mNQ(e.bMT(9,5,"Enter_your_message"))),e.R50("ngModel",_.comment))},dependencies:[r.b_,r.mC,r.uz,r.$w,r.QW,r.Jm,r.iq,f.bT,f.Sq,E.YN,E.BC,E.vS,h.h,h.D9],styles:[".commitSection--Listing[_ngcontent-%COMP%]{margin-bottom:30px}.commitSection--Listing[_ngcontent-%COMP%]   .ionMedia[_ngcontent-%COMP%]:not(:last-child){margin-bottom:15px}"]})}}return m})()},37897(N,U,a){a.d(U,{FeedPage:()=>W});var f=a(55537),r=a(83534),I=a(86234),E=a(59477),h=a(84943),R=a(53118),l=a(30299);let T=(()=>{class s{constructor(i){this.http=i,this.api_end_point=h.environment.api_end_point,this._headers=new E.Lr,this._headers=this._headers.append("Content-Type","application/json"),this._headers=this._headers.append("Content-Type","application/x-www-form-urlencoded; charset=UTF-8"),this._headers=this._headers.append("Authorization",this.api_end_point)}getNewsfeedData(i){return this.http.get(`${h.environment.api_end_point}${R.S.NEWS_WALL.NEWS}/${i}`)}postNews(i){return this.http.post(`${h.environment.api_end_point}Events/getEvents`,i,{headers:this._headers})}likeNews(i){return this.http.post(`${h.environment.api_end_point}${R.S.NEWS_WALL.LIKES}`,i,{headers:this._headers})}static{this.\u0275fac=function(n){return new(n||s)(l.KVO(E.Qq))}}static{this.\u0275prov=l.jDH({token:s,factory:s.\u0275fac,providedIn:"root"})}}return s})();var M=a(33428),e=a(47762),O=a(99788),S=a(61e3),u=a(49458),k=a(47415),P=a(22322),v=a(85562),m=a(42989),t=a(10599),c=a(20995),d=a(68554);const _=()=>({color:"cornflowerblue"}),C=()=>({});function b(s,g){1&s&&(t.j41(0,"ion-content")(1,"ion-button",21),t.EFF(2,"Report"),t.k0s()())}function $(s,g){if(1&s){const i=t.RV6();t.j41(0,"div",15)(1,"ion-button",16),t.bIt("click",function(){l.eBV(i);const o=t.XpG();return l.Njj(o.showComments())}),t.nrm(2,"ion-icon",22),t.j41(3,"span",18),t.EFF(4),t.k0s(),t.EFF(5),t.nI1(6,"translate"),t.k0s()()}if(2&s){const i=t.XpG();t.R7$(4),t.JRh(i.cardData.comments.length),t.R7$(),t.SpI(" ",t.bMT(6,2,"FEED.c
1omments")," ")}}function j(s,g){if(1&s&&t.nrm(0,"app-comments-section",23),2&s){const i=t.XpG();t.Y8G("comments",i.cardData.comments)("id",i.cardData.id)("from","newswall")("from_page_url","feed/"+i.pageId)}}(0,P.a)({chatbox:v.IJm,"thumbs-up":v.dEQ,thumbsUp:v.dEQ});let y=(()=>{class s{constructor(i,n,o,p,D,F,J){this.news_feed_service=i,this.auth_service=n,this.common_component_service=o,this.router=p,this.observable_service=D,this.app_service=F,this.translate=J,this.show_comments=!1,this.account_donor_id=0,this.station_id=0,this.is_liked=!1,this.is_logged_in=!1,this.page_data={}}ngOnInit(){const i=setInterval(()=>{this.translate.get(k.U7.ALERTS).subscribe(n=>{this.alert_message=n,clearInterval(i)})},200);this.observable_service.user_login_status.subscribe(()=>{this.getUserData()}),this.cardData&&this.cardData.comments&&this.cardData.comments.map(n=>{n.created_at=n.comment_time})}setPageData(i){this.page_data=i.pages.find(n=>n.id===this.pageId)||{}}getUserData(){const i=this.auth_service.getUserData();i?(this.account_donor_id=i.id,this.is_logged_in=!0,this.isNewsLiked(this.account_donor_id)):(this.is_logged_in=!1,this.is_liked=!1)}showComments(){this.show_comments=!this.show_comments}likeNews(i){this.is_logged_in?this.news_feed_service.likeNews({station_id:this.station_id,account_donor_id:this.account_donor_id,newswall_id:i}).subscribe(o=>{o.status&&(this.cardData.feed_likes=this.cardData.feed_likes+1,this.is_liked=!0)}):this.navigateToLogin()}navigateToLogin(){this.common_component_service.presentToast("bottom",this.alert_message?this.alert_message.login_to_like:k.U7.LOGIN_TO_LIKE,"warning"),this.router.navigate(["/auth-main",{fromPage:`feed/${this.pageId}`}])}isNewsLiked(i){if(this.cardData.likes&&this.cardData.likes.length){const n=this.cardData.likes.find(o=>o.account_donor_id===i);this.is_liked=!!n}}static{this.\u0275fac=function(n){return new(n||s)(t.rXU(T),t.rXU(O.u),t.rXU(e.F),t.rXU(c.Ix),t.rXU(d.s),t.rXU(S.d),t.rXU(u.c$))}}static{this.\u0275cmp=t.VBU({type:s,selectors:[["app-feed-card"]],inputs:{cardData:"cardData",pageId:"pageId"},decls:34,vars:15,consts:[[1,"feedItem"],[1,"ionMedia","ion-margin-bottom"],[1,"ionMedia__topRightAction"],["trigger","click-trigger3","triggerAction","click"],[1,"ionMedia__item"],[1,"small"],["alt","user-profile","src","assets/img/user_icon.png"],[1,"ionMedia__body"],[1,"ion-no-margin"],[1,"cCard"],[1,"cCard__topAction"],["color","primary","shape","round"],[1,"cCard__imgDiv"],["alt","feed-image",3,"imgSrc"],[1,"feedActionRow"],[1,"feedActionRow__col"],["color","medium","fill","clear",3,"click"],["slot","start","name","thumbs-up",3,"ngStyle"],[2,"margin-right","4px"],["class","feedActionRow__col",4,"ngIf"],[3,"comments","id","from","from_page_url",4,"ngIf"],["color","primary","fill","clear","expand","block",1,"ion-text-left"],["slot","start","name","chatbox"],[3,"comments","id","from","from_page_url"]],template:function(n,o){1&n&&(t.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"ion-popover",3),t.DNE(4,b,3,0,"ng-template"),t.k0s()(),t.j41(5,"div",4)(6,"ion-avatar",5),t.nrm(7,"img",6),t.k0s()(),t.j41(8,"div",7)(9,"h3",8),t.EFF(10),t.k0s(),t.j41(11,"p"),t.EFF(12),t.k0s()()(),t.j41(13,"ion-card",9)(14,"div",10)(15,"ion-button",11),t.EFF(16),t.k0s()(),t.j41(17,"div",12),t.nrm(18,"img",13),t.k0s(),t.j41(19,"ion-card-content")(20,"ion-card-title"),t.EFF(21),t.k0s(),t.j41(22,"p"),t.EFF(23),t.k0s(),t.j41(24,"div",14)(25,"div",15)(26,"ion-button",16),t.bIt("click",function(){return o.likeNews(o.cardData.id)}),t.nrm(27,"ion-icon",17),t.j41(28,"span",18),t.EFF(29),t.k0s(),t.EFF(30),t.nI1(31,"translate"),t.k0s()(),t.DNE(32,$,7,4,"div",19),t.k0s(),t.DNE(33,j,1,4,"app-comments-section",20),t.k0s()()()),2&n&&(t.R7$(10),t.JRh(o.cardData.full_name),t.R7$(2),t.JRh(o.app_service.getDateTimeFormat(o.cardData.start_date)),t.R7$(4),t.JRh(o.cardData.type),t.R7$(2),t.Y8G("imgSrc",o.cardData.attachment?o.cardData.attachment:"assets/img/bg.jpg"),t.R7$(3),t.JRh(o.cardData.title),t.R7$(2),t.JRh(o.cardData.description),t.R7$(4),t.Y8G("ngStyle",o.is_liked?t.lJ4(13,_):t.lJ4(14,C)),t.R7$(2),t.JRh(o.cardData.feed_likes),t.R7$(),t.SpI(" ",t.bMT(31,11,"FEED.likes")," "),t.R7$(2),t.Y8G("ngIf","0"===o.page_data.is_hide_comment),t.R7$(),t.Y8G("ngIf",o.show_comments))},dependencies:[r.b_,r.I9,r.tN,r.Jm,r.iq,r.mC,r.CF,r.W9,M.p,f.bT,f.B3,u.h,m.v,u.D9],encapsulation:2})}}return s})();var L=a(18856),w=a(45438);function B(s,g){if(1&s&&(t.j41(0,"div",14),t.nrm(1,"app-feed-card",15),t.k0s()),2&s){const i=g.$implicit,n=t.XpG(2);t.R7$(),t.Y8G("cardData",i)("pageId",n.page_id)}}function X(s,g){if(1&s&&(t.j41(0,"ion-grid",12),t.DNE(1,B,2,2,"div",13),t.k0s()),2&s){const i=t.XpG();t.R7$(),t.Y8G("ngForOf",i.news_feed)}}
1function x(s,g){1&s&&(t.j41(0,"div",18),t.nrm(1,"ion-spinner",19),t.k0s())}function A(s,g){1&s&&(t.j41(0,"ion-card",20)(1,"h3"),t.EFF(2),t.nI1(3,"translate"),t.k0s()()),2&s&&(t.R7$(2),t.JRh(t.bMT(3,1,"FEED.no_feed_available")))}function G(s,g){if(1&s&&t.DNE(0,x,2,0,"div",16)(1,A,4,3,"ion-card",17),2&s){const i=t.XpG();t.Y8G("ngIf",i.loading),t.R7$(),t.Y8G("ngIf",!i.loading)}}(0,P.a)({"arrow-back":v.$$C,arrowBack:v.$$C});let W=(()=>{class s{constructor(i,n,o,p,D,F){this.activated_route=i,this.news_feed_service=n,this.appservice=o,this.observable_service=p,this.subscription_service=D,this.router=F,this.news_feed=[],this.loading=!1,this.page_id=1,this.title="",this.end_of_data=!1,this.current_page=1,this.lang=L.YM.ENG_LANG_ID,this.station_id=""}ngOnInit(){this.observable_service.lang_code.subscribe(i=>{this.lang=i}),this.activated_route.params.subscribe(i=>{this.page_id=i.page_id,this.observable_service.station_detail.subscribe(n=>{this.setPageData(n)})})}setPageData(i){if(0!==i.design.station_id){this.station_id=i.design.station_id.toString();const n=i.pages.find(o=>o.id.toString()===this.page_id.toString());n&&(this.observable_service.lang_code.subscribe(o=>{this.lang=o,this.title=n.title[this.lang]?n.title[this.lang]:n.title.en}),this.getNewsFeed())}}getNewsFeed(){this.loading||this.end_of_data||(this.loading=!0,this.news_feed_service.getNewsfeedData(this.station_id).subscribe(i=>{this.loading=!1,i.status&&(this.news_feed=i.data,this.current_page=i.current_page,this.current_page===i.total_pages&&(this.end_of_data=!0))}))}loadData(i){this.end_of_data||this.getNewsFeed(),i.target.complete()}goBack(){this.appservice.goBack()}ionViewWillEnter(){this.subscription_service.handleSubscriptions(this.page_id.toString(),this.router.url)}static{this.\u0275fac=function(n){return new(n||s)(t.rXU(c.nX),t.rXU(T),t.rXU(S.d),t.rXU(d.s),t.rXU(w.q),t.rXU(c.Ix))}}static{this.\u0275cmp=t.VBU({type:s,selectors:[["app-feed"]],decls:19,vars:6,consts:[["noData",""],[1,"innerPageHeader","innerPageHeader--mobile"],[1,"header--toolbar"],["slot","start"],["color","dark","fill","clear","size","small",3,"click"],["slot","start","name","arrow-back"],[1,"backBtn-wrapper","ion-hide-lg-down"],["color","primary","shape","round",3,"click"],[1,"page-wrapper"],["fixed","",4,"ngIf","ngIfElse"],["threshold","50px",3,"ionInfinite"],["loadingSpinner","bubbles","loadingText",""],["fixed",""],["class","feedsWrapper",4,"ngFor","ngForOf"],[1,"feedsWrapper"],[3,"cardData","pageId"],["class","commonIcon ion-margin-end ion-text-center",4,"ngIf"],["class","cCard cCard--alert",4,"ngIf"],[1,"commonIcon","ion-margin-end","ion-text-center"],["dir","ltr","align","center","name","crescent"],[1,"cCard","cCard--alert"]],template:function(n,o){if(1&n){const p=t.RV6();t.j41(0,"ion-header",1)(1,"ion-toolbar",2)(2,"ion-buttons",3)(3,"ion-button",4),t.bIt("click",function(){return l.eBV(p),l.Njj(o.goBack())}),t.nrm(4,"ion-icon",5),t.EFF(5),t.k0s()()()(),t.j41(6,"ion-content")(7,"div",6)(8,"ion-button",7),t.bIt("click",function(){return l.eBV(p),l.Njj(o.goBack())}),t.nrm(9,"ion-icon",5),t.EFF(10),t.nI1(11,"translate"),t.k0s()(),t.j41(12,"div",8),t.DNE(13,X,2,1,"ion-grid",9)(14,G,2,2,"ng-template",null,0,t.C5r),t.k0s(),t.j41(16,"ion-infinite-scroll",10),t.bIt("ionInfinite",function(F){return l.eBV(p),l.Njj(o.loadData(F))}),t.nrm(17,"ion-infinite-scroll-content",11),t.k0s(),t.nrm(18,"app-footer"),t.k0s()}if(2&n){const p=t.sdS(15);t.R7$(5),t.SpI(" ",o.title?o.title:""," "),t.R7$(5),t.SpI(" ",t.bMT(11,4,"Back")," "),t.R7$(3),t.Y8G("ngIf",o.news_feed.length)("ngIfElse",p)}},dependencies:[r.eU,r.ai,r.QW,r.Jm,r.iq,r.W9,r.lO,r.w2,r.b_,r.Ax,r.Hp,f.bT,f.Sq,y,I.n,u.h,u.D9],styles:[".feedActionRow[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;border-top:2px solid #F3F3F3;padding-top:8px;margin-top:15px}.feedItem[_ngcontent-%COMP%]{margin-bottom:30px}.feedItem[_ngcontent-%COMP%]     .commitSection--Listing{max-height:230px;overflow-y:auto;min-height:200px;padding-right:16px;margin-right:-16px;margin-bottom:0;padding-bottom:15px;padding-top:10px}"]})}}return 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.