PageSourceSearch

https://sociallab.sa/chunk-BQq8X0x8.js

js sociallab.sa collected 2026-10-01 23:55:53 UTC 8,792 bytes, 1 lines download raw bytes

1import {T}from'./chunk-CTujN8NQ.js';import {g}from'./chunk-DX-Rkvyc.js';import {c}from'./chunk-DGpypiby.js';import {c as ce}from'./chunk-BRsHFk4j.js';import'./chunk-C0DmzTpz.js';import {W,V,aE as ut,O,X as Xb,N as Ng,bv as Og,bN as Gc,m as wC,cV as fu,Y as UI,T as Tt,j as Xv,z as zg,w as w0,b1 as ei,H as H0,Z as Zx,k as dn,b2 as da,cp as xr,l as zw,s as sk,n as nd,b3 as id,r as rC,o as mv,p as GC,t as tD,q as vD,aO as cD,aP as hD,u as al,x as tM,y as dM,L as Lb,A as r1,P as P1,B as xS,C as Vs,J as GS,K as iI,M as RI,Q as us,S as ms,_ as tE,$ as Dn,a0 as ME,a1 as ny,a2 as go,a3 as Kd,a4 as XE,a5 as LT,a6 as mA,a7 as mt,a8 as fy,a9 as ZT,aa as Js,ac as H_,ae as pS,ad as gd,ai as dy,bn as nS,ag as SC,ah as YT,aj as jy,al as gS,aR as i_,bV as zy,aS as Vp,aT as d_,bW as W_,aU as Hp,ab as Ey,af as XT,bD as db,bX as $y,bE as pb,am as JT}from'./main-4WA6AAHG.js';import {l as l$1}from'./chunk-CkU8oUfw.js';var De=()=>["Turn on comment replies and choose whether the reply is public, private, or both.","The wording follows your Messenger auto-reply settings \u2014 change it there, not here.","Test by commenting on your own post from another account."],Le=(n,g)=>g.id;function We(n,g){if(n&1&&(Js(0,"mat-option",10),H_(1),gd()),n&2){let e=g.$implicit;dy("value",e.id),SC(),jy(e.resolvedName);}}function ke(n,g){if(n&1){let e=i_();Js(0,"mat-form-field",1)(1,"mat-label"),H_(2),pS(3,"translate"),gd(),Js(4,"mat-select",9),zy("ngModelChange",function(t){Vp(e);let l=d_();return W_(l.channelAccountId,t)||(l.channelAccountId=t),Hp(t)}),Ey("ngModelChange",function(){Vp(e);let t=d_();return Hp(t.load())}),XT(5,We,2,2,"mat-option",10,Le),gd(),db(),gd();}if(n&2){let e=d_();SC(2),jy(gS(3,2,"Account name")),SC(2),$y("ngModel",e.channelAccountId),pb(),SC(),JT(e.channelAccountStore.forPlatform(e.EnumMessagingPlatform.Messenger));}}function ze(n,g){n&1&&(Js(0,"div",7),fy(1,"app-spinner",11),gd()),n&2&&(SC(),dy("diameter",48));}function je(n,g){n&1&&(Js(0,"div",7),fy(1,"app-spinner",11),gd()),n&2&&(SC(),dy("diameter",28));}function Ne(n,g){if(n&1){let e=i_();Js(0,"div",8)(1,"mat-card",12)(2,"mat-card-content")(3,"div",13)(4,"div",14)(5,"mat-icon",15),H_(6,"forum"),gd(),Js(7,"div",16)(8,"span",17),H_(9),pS(10,"translate"),gd(),Js(11,"span",18),H_(12),pS(13,"translate"),gd()()(),Js(14,"mat-slide-toggle",19),zy("ngModelChange",function(t){Vp(e);let l=d_();return W_(l.autoReplyPrivateMessage,t)||(l.autoReplyPrivateMessage=t),Hp(t)}),Ey("change",function(){Vp(e);let t=d_();return Hp(t.save())}),gd(),db(),gd()()(),Js(15,"mat-card",12)(16,"mat-card-content")(17,"div",13)(18,"div",14)(19,"mat-icon",15),H_(20,"comment"),gd(),Js(21,"div",16)(22,"span",17),H_(23),pS(24,"translate"),gd(),Js(25,"span",18),H_(26),pS(27,"translate"),gd()()(),Js(28,"mat-slide-toggle",19),zy("ngModelChange",function(t){Vp(e);let l=d_();return W_(l.autoReplyPublicComment,t)||(l.autoReplyPublicComment=t),Hp(t)}),Ey("change",function(){Vp(e);let t=d_();return Hp(t.save())}),gd(),db(),gd()()(),ZT(29,je,2,1,"div",7),gd();}if(n&2){let e=d_();SC(9),jy(gS(10,7,"Auto-Reply to Comments (Private DM)")),SC(3),jy(gS(13,9,"Automatically send a private message to users who comment on your posts, only if they have active sessions")),SC(2),$y("ngModel",e.autoReplyPrivateMessage),pb(),SC(9),jy(gS(24,11,"Auto-Reply to Comments (Public)")),SC(3),jy(gS(27,13,"Automatically post a public reply on comments on your posts")),SC(2),$y("ngModel",e.autoReplyPublicComment),pb(),SC(),YT(e.saving?29:-1);}}var zt=(()=>{class n{constructor(e,s,t,l){this.messengerService=e,this.toast=s,this.translate=t,this.channelAccountStore=l,this.autoReplyPrivateMessage=false,this.autoReplyPublicComment=false,this.loading=true,this.saving=false,this.channelAccountId=null,this.EnumMessagingPlatform=c,this.PLATFORM=c.Messenger,this.accountsSub=W.EMPTY,this.loadedOnce=false,this.loadSub=W.EMPTY;}ngOnInit(){this.accountsSub=this.channelAccountStore.accounts$.subscribe(()=>this.syncSelectedAccount());}ngOnDestroy(){this.accountsSub.unsubscribe(),this.loadSub.unsubscribe();}syncSelectedAccount(){let e=this.channelAccountStore.forPlatform(this.PLATFORM),s=e.length>1?e.some(t=>t.id===this.channelAccountId)?this.channelAccountId:e[0].id:null;s===this.channelAccountId&&this.loadedOnce||(this.channelAccountId=s,this.loadedOnce=true,this.load());}load(){this.channelAccountId===null&&this.channelAccountStore.isMultiAccount(this.PLATFORM)||(this.loadSub.unsubscribe(),this.loading=true,this.loadSub=this.messengerService.getMessengerAccount(this.channelAccountId).subscribe({next:e=>{e?.succeeded&&e.data&&(this.autoReplyPrivateMessage=e.data.autoReplyPrivateMessage??false,this.autoReplyPublicComment=e.data.autoReplyPublicComment??false),this.loading=false;},error:()=>{this.loading=false;}}));}save(){this.saving=true,this.messengerService.updateMessengerCommentSettings(this.autoReplyPrivateMessage,this.autoReplyPublicComment,this.channelAccountId).subscribe({next:e=>{this.saving=false,e?.succeeded&&this.toast.success("Settings saved successfully");},error:()=>{this.saving=false;}});}static{this.\u0275fac=function(s){return new(s||n)(V(g),V(ut),V(O),V(T))};}static{this.\u0275cmp=Xb({type:n,selectors:[["app-messenger-comment-settings"]],decls:18,vars:13,consts:[["helpKey","msg-comments","intro","What happens when someone comments on your Facebook posts: whether you reply publicly under the comment, privately in Messenger, or both.","warning","A private reply only reaches people who already have an open session with you. For everyone else, only the public reply is delivered.",3,"steps"],["appearance","outline",1,"w-100"],[1,"glass-page"],[1,"glass-section"],[1,"ig-comment-notes"],[1,"n
1otes-icon"],[1,"notes-list"],[1,"spinner-center"],[1,"settings-list"],[3,"ngModelChange","ngModel"],[3,"value"],[3,"diameter"],[1,"setting-card"],[1,"setting-row"],[1,"setting-info"],["color","primary",1,"setting-icon"],[1,"setting-text"],[1,"setting-title"],[1,"setting-desc"],["color","primary",3,"ngModelChange","change","ngModel"]],template:function(s,t){s&1&&(fy(0,"app-page-help",0),ZT(1,ke,7,4,"mat-form-field",1),Js(2,"div",2)(3,"div",3)(4,"div",4),fy(5,"mat-icon",5),Js(6,"ul",6)(7,"li"),H_(8),pS(9,"translate"),gd(),Js(10,"li"),H_(11),pS(12,"translate"),gd(),Js(13,"li"),H_(14),pS(15,"translate"),gd()()(),ZT(16,ze,2,1,"div",7)(17,Ne,30,15,"div",8),gd()()),s&2&&(dy("steps",nS(12,De)),SC(),YT(t.channelAccountStore.isMultiAccount(t.EnumMessagingPlatform.Messenger)?1:-1),SC(7),jy(gS(9,6,"Comment settings follow the same auto-reply rules defined in Messenger messaging settings.")),SC(3),jy(gS(12,8,"Enabling or disabling the AI agent will also be reflected in these settings.")),SC(3),jy(gS(15,10,"Private DM replies are only sent to users who have an active session.")),SC(2),YT(t.loading?16:17));},dependencies:[ce,l$1,Ng,Og,Gc,wC,fu,UI,Tt,Xv,zg,w0,ei,H0,Zx,dn,da,xr,zw,sk,nd,id,rC,mv,GC,tD,vD,cD,hD,al,tM,dM,Lb,r1,P1,xS,Vs,GS,iI,RI,us,ms,tE,Dn,ME,ny,go,Kd,XE,LT,mA,mt],styles:[".settings-list[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:16px;max-width:640px}.setting-card[_ngcontent-%COMP%]{border-radius:var(--radius-lg);box-shadow:0 2px 8px #1f9d4d14}.setting-row[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:16px}.setting-info[_ngcontent-%COMP%]{display:flex;align-items:flex-start;gap:12px;flex:1}.setting-icon[_ngcontent-%COMP%]{margin-top:2px;flex-shrink:0}.setting-text[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:4px}.setting-title[_ngcontent-%COMP%]{font-weight:500;font-size:var(--font-size-base)}.setting-desc[_ngcontent-%COMP%]{font-size:var(--font-size-sm);color:#5d6b85}.spinner-center[_ngcontent-%COMP%]{display:flex;justify-content:center;padding:16px 0}.ig-comment-notes[_ngcontent-%COMP%]{display:flex;align-items:flex-start;gap:10px;background:#e8f6ee;border-left:3px solid #1f9d4d;border-radius:var(--radius-card);padding:12px 16px;margin-bottom:20px;max-width:640px}[dir=rtl][_ngcontent-%COMP%]   .ig-comment-notes[_ngcontent-%COMP%]{border-left:none;border-right:3px solid #1f9d4d}.ig-comment-notes[_ngcontent-%COMP%]   .notes-icon[_ngcontent-%COMP%]{color:#1f9d4d;font-size:var(--font-size-xl);flex-shrink:0;margin-top:2px}.ig-comment-notes[_ngcontent-%COMP%]   .notes-list[_ngcontent-%COMP%]{margin:0;padding:0 0 0 16px;list-style:disc}[dir=rtl][_ngcontent-%COMP%]   .ig-comment-notes[_ngcontent-%COMP%]   .notes-list[_ngcontent-%COMP%]{padding:0 16px 0 0}.ig-comment-notes[_ngcontent-%COMP%]   .notes-list[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{font-size:var(--font-size-sm);color:#2a3547;line-height:1.6}.ig-comment-notes[_ngcontent-%COMP%]   .notes-list[_ngcontent-%COMP%]   li[_ngcontent-%COMP%] + li[_ngcontent-%COMP%]{margin-top:4px}"],changeDetection:1});}}return n})();export{zt as MessengerCommentSettingsComponent};

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.