1"use strict";(self.webpackChunkmyplanner=self.webpackChunkmyplanner||[]).push([[4260],{31300:(U,A,o)=>{o.d(A,{u:()=>e});var I=o(34793),E=o(51192),O=o(98350),s=o(79035),M=o(11679),a=o(94650);const Z=[{path:"",component:E.M,children:[{path:"campaigns",component:O.$,canActivate:[M.p]},{path:"lists",component:s.k}]}];let e=(()=>{class h{}return h.\u0275fac=function(t){return new(t||h)},h.\u0275mod=a.oAB({type:h}),h.\u0275inj=a.cJS({imports:[I.Bz.forChild(Z),I.Bz]}),h})()},54260:(U,A,o)=>{o.r(A),o.d(A,{BroadcastModule:()=>h});var I=o(36895),E=o(31300),O=o(25800),s=o(14528),M=o(49028),a=o(59549),Z=o(284),e=o(94650);let h=(()=>{class b{}return b.\u0275fac=function(D){return new(D||b)},b.\u0275mod=e.oAB({type:b}),b.\u0275inj=e.cJS({imports:[I.ez,E.u,s.q,O.CommonComponentModule,M.Q,a.lN,Z.c]}),b})()},51192:(U,A,o)=>{o.d(A,{M:()=>b});var I=o(41074),E=o(70661),O=o(73799),s=o(94650),M=o(34793),a=o(36895),Z=o(3848);const e=function(t){return{active:t}};function h(t,D){if(1&t){const C=s.EpF();s.TgZ(0,"a",11),s.NdJ("click",function(){s.CHM(C);const f=s.oxw();return s.KtG(f.onTabChange(2))}),s._uU(1,"Tags"),s.qZA()}if(2&t){const C=s.oxw();s.Q6J("ngClass",s.VKq(1,e,2==C._value))}}let b=(()=>{class t{constructor(C,d,f,p){this.eventService=C,this.router=d,this.enumDataService=f,this.roleService=p}set value(C){this._value=C}ngOnInit(){this.advisorRolesData=this.roleService,"campaigns"===this.router.url.split("/")[4]?this._value=1:"lists"===this.router.url.split("/")[4]&&(this._value=2)}onTabChange(C){this._value=C}tabClick(C){}}return t.\u0275fac=function(C){return new(C||t)(s.Y36(I.P),s.Y36(M.F0),s.Y36(O.p),s.Y36(E.N))},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-broadcast"]],decls:14,vars:4,consts:[["id","uiTransactions"],[1,"row"],[1,"col-md-2","mob50"],[1,"m-0","pt-16"],[1,"col-md-10"],[1,"subnav-fixed"],["mat-align-tabs","end","mat-tab-nav-bar","",1,"d-none-992",3,"selectedTabChange"],["mat-tab-link","","routerLink","/admin/activities/broadcast/campaigns",1,"text-white","Roboto",3,"ngClass","click"],["class","transactionsWidth","mat-tab-link","","routerLink","/admin/activities/broadcast/lists",3,"ngClass","click",4,"ngIf"],[1,"row","mob-common-bg-color","mob-min-h-100vh"],[1,"col-md-12","p-0"],["mat-tab-link","","routerLink","/admin/activities/broadcast/lists",1,"transactionsWidth",3,"ngClass","click"]],template:function(C,d){1&C&&(s.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h3",3),s._uU(4,"Broadcasts"),s.qZA()(),s.TgZ(5,"div",4)(6,"div",5)(7,"nav",6),s.NdJ("selectedTabChange",function(p){return d.tabClick(p)}),s.TgZ(8,"a",7),s.NdJ("click",function(){return d.onTabChange(1)}),s._uU(9,"Campaigns"),s.qZA(),s.YNc(10,h,2,3,"a",8),s.qZA()()()()(),s.TgZ(11,"div",9)(12,"div",10),s._UZ(13,"router-outlet"),s.qZA()()),2&C&&(s.xp6(8),s.Q6J("ngClass",s.VKq(2,e,1==d._value)),s.xp6(2),s.Q6J("ngIf",d.advisorRolesData.activityPermission.subModule.calendar.enabled))},dependencies:[a.mk,a.O5,M.lC,M.yS,Z.BU,Z.Nj],styles:[".example-card[_ngcontent-%COMP%]{height:457px}#ui-broadcast[_ngcontent-%COMP%] .mat-tab-link.active[_ngcontent-%COMP%]{background-color:transparent!important;border-bottom:4px solid #008FFF!important;color:#008fff!important}#ui-broadcast[_ngcontent-%COMP%] .mat-tab-link[_ngcontent-%COMP%]{color:#595252!important;border-bottom:4px solid transparent;width:120px;background:transparent!important;letter-spacing:.75px!important;opacity:1!important;height:60px!important}#ui-broadcast[_ngcontent-%COMP%] .mat-tab-link.kycWidth[_ngcontent-%COMP%]{min-width:50px!important;width:50px!important}#ui-broadcast[_ngcontent-%COMP%] .mat-tab-link.transactionsWidth[_ngcontent-%COMP%]{width:150px!important}@media (max-width: 768px){#ui-broadcast[_ngcontent-%COMP%]{overflow-y:hidden!important;z-index:99}#ui-broadcast[_ngcontent-%COMP%] .mat-tab-links[_ngcontent-%COMP%]{align-items:center}#ui-broadcast[_ngcontent-%COMP%] .mat-tab-link[_ngcontent-%COMP%]{color:#fff!important;height:24px!important;max-width:80px;padding-right:0!important;padding-left:0!important}#ui-broadcast[_ngcontent-%COMP%] .mat-tab-link.active[_ngcontent-%COMP%]{background-color:#fff!important;
1color:#1a303e!important;border-bottom:0px!important;border-radius:16px!important}}.first[_ngcontent-%COMP%] p[_ngcontent-%COMP%]:nth-child(even){background-color:#f5f7f7}.transaction-width-2[_ngcontent-%COMP%]{width:90px!important}"]}),t})()},98350:(U,A,o)=>{o.d(A,{$:()=>vt});var I=o(2120),E=o(65730),O=o(70661),s=o(41074),M=o(67241),a=o(68686),Z=o(44591),e=o(97691),h=o(53626),b=o(73799),t=o(94650),D=o(65938),C=o(34793),d=o(36895),f=o(4859),p=o(97392),u=o(28255),y=o(98739),B=o(51572),S=o(81638);const N=["clientsTable"];function w(n,r){if(1&n){const i=t.EpF();t.TgZ(0,"button",24),t.NdJ("click",function(){t.CHM(i);const c=t.oxw(2);return t.KtG(c.openFragment("Email",null))}),t._uU(1,"BEGIN"),t.qZA()}}function K(n,r){if(1&n&&(t.TgZ(0,"div",14)(1,"div",15),t._UZ(2,"img",16),t.qZA(),t.TgZ(3,"div",17)(4,"h5",18),t._uU(5,"Broadcast emails to all your clients"),t.qZA(),t.TgZ(6,"p",19),t._uU(7,"The broadcast email feature allows you to send your own personalized emails to all your clients with a single click. This saves your time and human effort."),t.qZA(),t.TgZ(8,"h5",20),t._uU(9,"What all can you do here?"),t.qZA(),t.TgZ(10,"p",21),t._uU(11,"1.You can send festive messages to all your clients."),t.qZA(),t.TgZ(12,"p",21),t._uU(13,"2.You can add pictures, links, tables and much more in your campaign."),t.qZA(),t.TgZ(14,"p",21),t._uU(15,"3.You can add placeholders like \u201cClient name\u201d,\u201dCompany Logo\u201d to give it a personalized touch."),t.qZA(),t.TgZ(16,"p",21),t._uU(17,"4.If you have a HTML content ready, you can go to \u2018code view\u2019 and paste your HTML content there, and with this, you will be able to send personalized email to your clients."),t.qZA(),t.TgZ(18,"p",21),t._uU(19,"5.You can even customise the \u2018from\u2019 email id from the list of all your verified email IDs saved with IFANOW."),t.qZA(),t.TgZ(20,"p",22),t._uU(21,"Here\u2019s how it works"),t.qZA(),t.TgZ(22,"p",21),t._uU(23,"1.We will show you the list of clients. You can select/deselect and proceed"),t.qZA(),t.TgZ(24,"p",21),t._uU(25,"2.We will show you the email ID from which the email will be sent. If your email is not verified, it will be sent from [email protected]. We recommend you to verify and chose the correct \u201cFrom mail\u201d thru Email verification from the settings section. "),t.qZA(),t.TgZ(26,"p",21),t._uU(27,"3.You can compose your own email, add placeholders for more personalization & proceed to send it to your clients."),t.qZA(),t.YNc(28,w,2,0,"button",23),t.qZA()()),2&n){const i=t.oxw();t.xp6(28),t.Q6J("ngIf",i.broadCastCapability.Add)}}function k(n,r){if(1&n){const i=t.EpF();t.TgZ(0,"button",54),t.NdJ("click",function(){t.CHM(i);const c=t.oxw(3);return t.KtG(c.openFragment("Email",null))}),t._uU(1,"CREATE NEW CAMPAIGN"),t.qZA()}}function Y(n,r){if(1&n&&(t.TgZ(0,"div"),t.YNc(1,k,2,0,"button",53),t.qZA()),2&n){const i=t.oxw(2);t.xp6(1),t.Q6J("ngIf",i.broadCastCapability.Add)}}function W(n,r){if(1&n){const i=t.EpF();t.TgZ(0,"div",55),t.NdJ("click",function(){t.CHM(i);const c=t.oxw(2);return t.KtG(c.setTabValue())}),t.TgZ(1,"mat-icon",56),t._uU(2,"arrow_back"),t.qZA(),t.TgZ(3,"span"),t._uU(4,"Back"),t.qZA()()}}function J(n,r){1&n&&t._UZ(0,"mat-spinner",57),2&n&&t.Q6J("diameter",30)}function Q(n,r){1&n&&(t.TgZ(0,"th",58)(1,"h5",59),t._uU(2," Sent Broadcasts "),t.qZA()())}function H(n,r){if(1&n&&(t.TgZ(0,"td",60)(1,"div",61),t._uU(2),t.qZA()()),2&n){const i=r.$implicit;t.xp6(2),t.hij(" ",i.messageTitle," ")}}function F(n,r){1&n&&(t.TgZ(0,"th",62)(1,"h5",59),t._uU(2," Client no. "),t.qZA()())}function j(n,r){if(1&n&&(t.TgZ(0,"td",60)(1,"div",61),t._uU(2),t.qZA()()),2&n){const i=r.$implicit;t.xp6(2),t.hij(" ",null==i.clients?null:i.clients.length," ")}}function q(n,r){1&n&&(t.TgZ(0,"th",62)(1,"h5",59),t._uU(2," Tag name "),t.qZA()())}function $(n,r){if(1&n&&(t.TgZ(0,"td",60)(1,"div",61),t._uU(2),t.qZA()()),2&n){const i=r.$implicit,l=t.oxw(2);t.xp6(2),t.hij(" ",i.tagName?i.tagName:l.isLoading?"":"-"," ")}}function G(n,r){1&n&&(t.TgZ(0,"th",62)(1,"h5",59),t._uU(2," Sent On "),t.qZA()())}function z(n,r){if(1&n&&(t.TgZ(0,"td",60)(1,"div",61),t._uU(2),t.ALo(3,"date"),t.qZA()()),2&n){const i=r.$implicit;t.xp6(2),t.hij(" ",t.xi3(3,1,i.startTime,"dd-MM-yyyy")," ")}}function _(n,r){1&n&&(t.TgZ(0,"th",62)(1,"h5",59),t._uU(2," Sent count "),t.qZA()())}function v(n,r){if(1&n&&(t.TgZ(0,"td",60)(1,"div",61),t._uU(2),t.qZA()()),2&n){const i=r.$implicit;t.xp6(2),t.hij(" ",i.sentCount," ")}}function m(n,r){1&n&&(t.TgZ(0,"th",62)(1,"h5",59),t._uU(2," Not sent count "),t.qZA()())}function g(n,r){if(1&n&&(t.TgZ(0,"td",60)(1,"div",61),t._uU(2),t.qZA()()),2&n){const i=r.$implicit;t.xp6(2),t.hij(" ",i.notSentCount," ")}}function x(n,r){1&n&&(t.TgZ(0,"th",62)(1,"h5",59),t._uU(2," Status "),t.qZA()())}const L=function(n,r,i){return{"text-success":n,"text-danger":r,"text-primary":i}};function V(n,r){if(1&n&&(t.TgZ(0,"td",63)(1,"div",61),t._uU(2),t.qZA()()),2&n){const i=r.$implicit;t.Q6J("ngClass",t.kEZ(2,L,1==i.campaignStatus,3==i.campaignStatus,2==i.campaignStatus)),t.xp6(2),t.hij(" ",1==i.campaignStatus?"SENT":3==i.campaignStatus?"NOT SENT":2==i.campaignStatus?"DRAFT":"-"," ")}}function X(n,r){1&n&&t._UZ(0,"th",62)}function tt(n,r){1&n&&t._UZ(0,"img",70)}function et(n,r){if(1&n){const i=t.EpF();t.TgZ(0,"button",68),t.NdJ("click",function(){t.CHM(i);const c=t.oxw().$implicit,T=t.oxw(2);return t.KtG(T.deleteCampaign(c))}),t._uU(1,"Delete Campaign"),t.qZA()}}const it=function(n){return{"pe-none":n}};function nt(n,r){if(1&n){const i=t.EpF();t.TgZ(0,"td",64)(1,"div",61),t.YNc(2,tt,1,0,"img",65),t.TgZ(3,"mat-menu",null,66)(5,"button",67),t.NdJ("click",function(){const T=t.CHM(i).$implicit,P=t.oxw(2);return t.KtG(P.getEmailView(T))}),t._uU(6,"Edit Email"),t.qZA(),t.TgZ(7,"button",68),t.NdJ("click",function(){const T=t.CHM(i).$implicit,P=t.oxw(2);return t.KtG(P.viewEmail(T))}),t._uU(8,"View Email"),t.qZA(),t.TgZ(9,"button",67),t.NdJ("click",function(){const T=t.CHM(i).$implicit,P=t.oxw(2);return t.KtG(P.duplicateEmail(T))}),t._uU(10,"Duplicate Email"),t.qZA(),t.TgZ(11,"button",67),t.NdJ("click",function(){const T=t.CHM(i).$implicit,P=t.oxw(2);return t.KtG(P.excel(T,"Recipient List"))}),t._uU(12,"Download recipient list"),t.qZA(),t.TgZ(13,"button",67),t.NdJ("click",function(){const T=t.CHM(i).$implicit,P=t.oxw(2);return t.KtG(P.renameCampaign(T))}),t._uU(14,"Rename Campaign"),t.qZA(),t.YNc(15,et,2,0,"button",69),t.qZA()()()}if(2&n){const i=r.$implicit,l=t.MAs(4),c=t.oxw(2);t.Q6J("matMenuTriggerFor",l)("ngClass",t.VKq(8,it,0==i.campaignId)),t.xp6(2),t.Q6J("ngIf",!c.isLoading),t.xp6(3),t.Q6J("disabled",2!=i.campaignStatus),t.xp6(4),t.Q6J("disabled",2==i.campaignStatus||0!==c.promotionId),t.xp6(2),t.Q6J("disabled",2==i.campaignStatus),t.xp6(2),t.Q6J("disabled",0!==c.promotionId),t.xp6(2),t.Q6J("ngIf",2==i.campaignStatus)}}function at(n,r){1&n&&(t.TgZ(0,"th",62)(1,"h5",59),t._uU(2," Export "),t.qZA()())}function ot(n,r){1&n&&(t.TgZ(0,"mat-icon",73),t._uU(1,"save_alt"),t.qZA())}function st(n,r){if(1&n&&(t.TgZ(0,"td",71)(1,"div",61),t.YNc(2,ot,2,0,"mat-icon",72),t.qZA()()),2&n){const i=t.oxw(2);t.xp6(2),t.Q6J("ngIf",!i.isLoading)}}function ct(n,r){1&n&&(t.TgZ(0,"th",62)(1,"h5",59),t._uU(2," Delete "),t.qZA()())}function _t(n,r){1&n&&(t.TgZ(0,"mat-icon",73),t._uU(1,"delete_outline"),t.qZA())}function rt(n,r){if(1&n&&(t.TgZ(0,"td",71)(1,"div",61),t.YNc(2,_t,2,0,"mat-icon",72),t.qZA()()),2&n){const i=t.oxw(2);t.xp6(2),t.Q6J("ngIf",!i.isLoading)}}function lt(n,r){1&n&&t._UZ(0,"tr",74)}function mt(n,r){1&n&&t._UZ(0,"tr",75)}const dt=function(n){return{"cursor-not-allowed":n}};function pt(n,r){if(1&n){const i=t.EpF();t.TgZ(0,"div",76)(1,"mat-paginator",77,78),t.NdJ("page",function(c){t.CHM(i);const T=t.oxw(2);return t.KtG(T.isLoading?"":T.pageEvent=T.onPaginationChange(c))}),t.qZA()()}if(2&n){const i=t.oxw(2);t.xp6(1),t.Q6J("length",i.totalCampaign)("hidePageSize",!0)("pageSize",50)("ngClass",t.VKq(4,dt,i.isLoading))}}function gt(n,r){if(1&n){const i=t.EpF();
1t.TgZ(0,"div",79)(1,"button",80),t.NdJ("click",function(){t.CHM(i);const c=t.oxw(2);return t.KtG(c.previousPage())}),t.TgZ(2,"mat-icon"),t._uU(3,"chevron_left"),t.qZA(),t._uU(4," Previous "),t.qZA(),t.TgZ(5,"button",81),t.NdJ("click",function(){t.CHM(i);const c=t.oxw(2);return t.KtG(c.nextPage())}),t._uU(6," Next "),t.TgZ(7,"mat-icon"),t._uU(8,"chevron_right"),t.qZA()()()}if(2&n){const i=t.oxw(2);t.xp6(1),t.Q6J("disabled",0===i.currentPageIndex)}}function ut(n,r){if(1&n&&(t.TgZ(0,"div",25)(1,"div",26),t.YNc(2,Y,2,1,"div",27),t.YNc(3,W,5,0,"div",28),t.qZA(),t.TgZ(4,"div",29),t.YNc(5,J,1,1,"mat-spinner",30),t.qZA(),t.TgZ(6,"div",31)(7,"div")(8,"table",32),t.ynx(9,33),t.YNc(10,Q,3,0,"th",34),t.YNc(11,H,3,1,"td",35),t.BQk(),t.ynx(12,36),t.YNc(13,F,3,0,"th",37),t.YNc(14,j,3,1,"td",35),t.BQk(),t.ynx(15,38),t.YNc(16,q,3,0,"th",37),t.YNc(17,$,3,1,"td",35),t.BQk(),t.ynx(18,39),t.YNc(19,G,3,0,"th",37),t.YNc(20,z,4,4,"td",35),t.BQk(),t.ynx(21,40),t.YNc(22,_,3,0,"th",37),t.YNc(23,v,3,1,"td",35),t.BQk(),t.ynx(24,41),t.YNc(25,m,3,0,"th",37),t.YNc(26,g,3,1,"td",35),t.BQk(),t.ynx(27,42),t.YNc(28,x,3,0,"th",37),t.YNc(29,V,3,6,"td",43),t.BQk(),t.ynx(30,44),t.YNc(31,X,1,0,"th",37),t.YNc(32,nt,16,10,"td",45),t.BQk(),t.ynx(33,46),t.YNc(34,at,3,0,"th",37),t.YNc(35,st,3,1,"td",47),t.BQk(),t.ynx(36,48),t.YNc(37,ct,3,0,"th",37),t.YNc(38,rt,3,1,"td",47),t.BQk(),t.YNc(39,lt,1,0,"tr",49),t.YNc(40,mt,1,0,"tr",50),t.qZA()()(),t.YNc(41,pt,3,6,"div",51),t.YNc(42,gt,9,1,"div",52),t.qZA()),2&n){const i=t.oxw();t.xp6(2),t.Q6J("ngIf",0===i.promotionId),t.xp6(1),t.Q6J("ngIf",0!==i.promotionId),t.xp6(2),t.Q6J("ngIf",i.isSpinner),t.xp6(3),t.Q6J("dataSource",i.broadCastHistoryList)("appSkeletonLoading",i.isLoading),t.xp6(31),t.Q6J("matHeaderRowDef",i.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",i.displayedColumns),t.xp6(1),t.Q6J("ngIf",0===i.promotionId),t.xp6(1),t.Q6J("ngIf",0!==i.promotionId&&i.showPagination)}}function ht(n,r){if(1&n&&(t.TgZ(0,"tr",82)(1,"td",83),t._uU(2),t.qZA(),t.TgZ(3,"td",83),t._uU(4),t.qZA(),t.TgZ(5,"td",83),t._uU(6),t.qZA(),t.TgZ(7,"td",83),t._uU(8),t.qZA(),t.TgZ(9,"td",83)(10,"span"),t._uU(11),t.ALo(12,"date"),t.qZA()(),t.TgZ(13,"td",83),t._uU(14),t.qZA()()),2&n){const i=r.$implicit,l=r.index,c=t.oxw();t.xp6(2),t.hij(" ",l+1,""),t.xp6(2),t.hij(" ",i.name?i.name:"-"," "),t.xp6(2),t.hij(" ",i.email?i.email:"-"," "),t.xp6(2),t.hij(" ",c.tagName?c.tagName:"-"," "),t.xp6(3),t.Oqu(c.sentOn?t.xi3(12,6,c.sentOn,"dd-MMM-yyyy"):"-"),t.xp6(3),t.hij(" ",1==i.status?"SENT":0==i.status?"NOT SENT":"-"," ")}}let vt=(()=>{class n{constructor(i,l,c,T,P,R,ft,Ct){this.eventService=i,this.settingsService=l,this.roleService=c,this.dialog=T,this.cd=P,this.enumDataService=R,this.route=ft,this.router=Ct,this.broadCastHistoryList=new h.by,this.displayedColumns=["name","count","tagName","sentOn","sentCount","notSentCount","status","action"],this.reportDate=new Date,this.data=[{},{},{}],this.recipientList=new h.by(this.data),this.advisor=E.e.getUserInfo(),this.broadcastRecipientData=[],this.disableNext=!1,this.showPagination=!1}ngOnInit(){if(history.state&&history.state.capabilityId)this.gamecapabilityId=history.state.capabilityId,5==this.gamecapabilityId.gamificationRolesCapabilityMasterId&&this.handleAction();else{let i=JSON.parse(localStorage.getItem("gamification")||"[]");this.gamecapabilityId=i.filter(l=>5==l.gamificationRolesCapabilityMasterId)}this.advisorId=E.e.getAdvisorId(),this.broadCastCapability=this.roleService.activityPermission.subModule.broadcast.capabilityList,this.route.queryParams.subscribe(i=>{this.promotionId=i.promotionId?Number(i.promotionId):0,this.enumDataService.PRODUCTION||console.log("Received promotionId:",this.promotionId),this.getBroadcastHistoryLog(0)})}handleAction(){setTimeout(()=>{this.openFragment("Email",null)},400)}onPaginationChange(i){const{pageIndex:l}=i;return this.currentPageIndex=50*l,this.getBroadcastHistoryLog(this.currentPageIndex),i}openFragment(i,l,c){c||(c=this.gamecapabilityId);const P=this.eventService.changeUpperSliderState({flag:"Bulk-Email",id:1,data:{flag:i,broadcastFlag:!0,listFlag:!1,data:l,gamesdata:c},direction:"top",componentName:I.B,state:"open"}).subscribe(R=>{M.fK.isDialogClose(R)&&(this.settingsService.broadCastList=null,this.campaignId=R.campaignId,this.getBroadcastHistoryLog(0),P.unsubscribe())})}toggleBroadCast(){this.showHistoryOfBroadcast=!this.showHistoryOfBroadcast,this.showHistoryOfBroadcast&&(this.settingsService.broadCastList?this.getBroadcastHistoryLogRes(this.settingsService.broadCastList):this.getBroadcastHistoryLog(0))}getBroadcastHistoryLog(i){this.isLoading=!0;
1const l={advisorId:this.advisorId,cpgPromotionDetailsId:this.promotionId?this.promotionId:0,limit:50,offset:i};this.enumDataService.PRODUCTION||console.log("API Request Payload:",l),this.settingsService.getBroadcastHistoryLog(l).subscribe(c=>{this.totalCampaign=c.CampaignListCount,this.broadCastHistoryList.data=c.CampaignList,this.settingsService.broadCastList=c,this.isLoading=!1,this.promotionId&&0!==this.promotionId&&(this.enumDataService.PRODUCTION||console.log(`Total data received for cpgPromotionDetailsId ${this.promotionId}:`,c.CampaignList.length)),this.showPagination=c.CampaignList.length>50,this.disableNext=c.CampaignList.length<50},c=>{this.broadCastHistoryList.data=[],this.isLoading=!1,console.error(c)})}getBroadcastHistoryLogRes(i){this.isLoading=!1,i?(this.totalCampaign=i.CampaignListCount,this.broadCastHistoryList.data=i.CampaignList,this.settingsService.broadCastList=i):this.broadCastHistoryList.data=[]}getEmailView(i){const l={advisorId:E.e.getAdvisorId(),campaignId:i.campaignId};this.settingsService.getBroadcastView(l).subscribe(c=>{c&&(this.viewData=c,this.openFragment("Email",this.viewData))},c=>{this.eventService.openSnackBar(c,"DISMISS")})}viewEmail(i){this.dialog.open(Z.v,{width:"700px",data:{createdDate:i.startTime,campaignId:0!=i.campaignId?i.campaignId:this.campaignId}}).afterClosed().subscribe(c=>{})}duplicateEmail(i){this.settingsService.duplicateCampaign({advisorId:this.advisorId,broadcastCampaignId:i.campaignId}).subscribe(c=>{this.getBroadcastHistoryLog(0),this.eventService.openSnackBar("Campaign duplicated and saved as draft successfully.","DISMISS")},c=>{this.eventService.openSnackBar(c,"DISMISS")})}renameCampaign(i){this.dialog.open(e.M,{width:"400px",data:i}).afterClosed().subscribe(c=>{(c||null!=c)&&this.getBroadcastHistoryLog(0)})}deleteCampaign(i){this.settingsService.deleteCampaign({advisorId:this.advisorId,campaignId:i.campaignId}).subscribe(c=>{this.eventService.openSnackBar("Campaign deleted successfully.","DISMISS"),this.getBroadcastHistoryLog(0)},c=>{this.eventService.openSnackBar(c,"DISMISS")})}excel(i,l){this.isSpinner=!0,this.campaignName=i.messageTitle,this.tagName=i.tagName,this.sentOn=i.startTime,this.fromEmail=i.fromEmail,this.settingsService.getBroadcastRecipient({logId:i.id,type:1}).subscribe(T=>{this.broadcastRecipientData=T},T=>{}),this.cd.markForCheck(),this.cd.detectChanges(),setTimeout(()=>{const T=new Blob([this.clientsTable.nativeElement.innerHTML],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=utf-8"});saveAs(T,l+".xls"),this.isSpinner=!1},500)}previousPage(){this.currentPageIndex>0&&(this.currentPageIndex-=50,this.getBroadcastHistoryLog(this.currentPageIndex))}nextPage(){this.currentPageIndex+=50,this.getBroadcastHistoryLog(this.currentPageIndex)}setTabValue(){this.router.navigate(["/admin/activities/broadcast/campaigns"])}}return n.\u0275fac=function(i){return new(i||n)(t.Y36(s.P),t.Y36(a.g),t.Y36(O.N),t.Y36(D.uw),t.Y36(t.sBO),t.Y36(b.p),t.Y36(C.gz),t.Y36(C.F0))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-campaigns"]],viewQuery:function(i,l){if(1&i&&t.Gf(N,5),2&i){let c;t.iGM(c=t.CRH())&&(l.clientsTable=c.first)}},decls:39,vars:10,consts:[[1,"pt-150"],["class","row pt-28 align-items-center",4,"ngIf"],["class","row p-20 pt-0",4,"ngIf"],[2,"display","none"],["clientsTable",""],["charset","UTF-8"],[2,"width","100%","border-collapse","collapse","font-family","Roboto,sans-serif"],["colspan","7",2,"text-align","right"],[2,"margin","0px","font-size","14px","padding-top","12px"],[2,"margin","0px","font-size","14px","margin-bottom","5px"],["colspan","2",2,"padding","10px"],[2,"background-color","#F5F7F7","height","40px","border","1px solid #DADCE0"],[2,"padding","7px 8px","font-weight","600","font-size","13px !important","line-height","16px !important","color","#202020","border-right","1px solid #DADCE0"],["style","border-left: 1px solid #DADCE0;border-bottom: 1px solid #DADCE0;height: 40px !important;",4,"ngFor","ngForOf"],[1,"row","pt-28","align-items-center"],[1,"col-md-12","col-lg-6","pl-0","text-center"],["src","https://res.cloudinary.com/futurewise/image/upload/v1704797347/My-Planner_Whitewashed/broadcast-w_2.2-svg.svg","width","558","alt","icon-broadcast",1,"img-max-width","bg-primary"],[1,"col-md-12","col-lg-6","pr-0"],[1,"m-0","roboto","f-500"],[1,"m-0","roboto","f-400","pt-16"],[1,"m-0","roboto","f-500","pt-16"],[1,"m-0","roboto","f-400"],[1,"m-0","roboto","f-500","pt-10"],["mat-stroked-button","","class","tab-block btn-primary mt-36",3,"click",4,"ngIf"],["mat-stroked-button","",1,"tab-block","btn-primary","mt-36",3,"click"],[1,"row","p-20","pt-0"],[1,"col-md-3","pb-12","pr-0"],[4,"ngIf"],["class","d-flex mb-20 c-p",3,"click",4,"ngIf"],[1,"col-md-1","p-0","pt-12"],["class","pb-8",3,"diameter",4,"ngIf"],[1,"col-md-12"],["mat-table","","id","table-low","appSkeletonLoading","",1,"skeletonAnimation",3,"dataSource","appSkeletonLoading"],["matColumnDef","name"],["mat-header-cell","","class","br",4,"matHeaderCellDef"],["mat-cell","","class","br",4,"matCellDef"],["matColumnDef","count"],["mat-header-cell","","class","br text-black-lt",4,"matHeaderCellDef"],["matColumnDef","tagName"],["matColumnDef","sentOn"],["matColumnDef","sentCount"],["matColumnDef","notSentCount"],["matColumnDef","status"],["mat-cell","","class","br",3,"ngClass",4,"matCellDef"],["matColumnDef","action"],["mat-cell","","class","br text-center c-p",3,"matMenuTriggerFor","ngClass",4,"matCellDef"],["matColumnDef","export"],["mat-cell","","class","br text-center",4,"matCellDef"],["matColumnDef","delete"],["mat-header-row","","class","h-40",4,"matHeaderRowDef"],["mat-row","","class","h-36",4,"matRowDef","matRowDefColumns"],["class","col-md-12 p-0",4,"ngIf"],["class","col-md-12 p-0","style","display: flex; justify-content: end; margin-top: 20px;",4,"ngIf"],["mat-stroked-button","","class","tab-block btn-primary mt-8 mr-10 d-inline",3,"click",4,"ngIf"],["mat-stroked-button","",1,"tab-block","btn-primary","mt-8","mr-10","d-inline",3,"click"],[1,"d-flex","mb-20","c-p",3,"click"],[1,"back-arrow"],[1,"pb-8",3,"diameter"],["mat-header-cell","",1,"br"],[1,"f-500","f-14"],["mat-cell","",1,"br"],[1,"bar"],["mat-header-cell","",1,"br","text-black-lt"],["mat-cell","",1,"br",3,"ngClass"],["mat-cell","",1,"br","text-center","c-p",3,"matMenuTriggerFor","ngClass"],["src","https://res.cloudinary.com/futurewise/image/upload/v1619592625/myplanner/images/svg/dot-menu.svg","alt","",4,"ngIf"],["menu","matMenu"],["mat-menu-item","",3,"disabled","click"],["mat-menu-item","",3,"click"],["mat-menu-item","",3,"click",4,"ngIf"],["src","https://res.cloudinary.com/futurewise/image/upload/v1619592625/myplanner/images/svg/dot-menu.svg","alt",""],["mat-cell","",1,"br","text-center"],["class","c-p actions",4,"ngIf"],[1,"c-p","actions"],["mat-header-row","",1,"h-40"],["mat-row","",1,"h-36"],[1,"col-md-12","p-0"],[1,"p-0",3,"length","hidePageSize","pageSize","ngClass","page"],["paginator",""],[1,"col-md-12","p-0",2,"display","flex","justify-content","end","margin-top","20px"],["mat-button","",2,"font-size","12px",3,"disabled","click"],["mat-button","",2,"font-size","12px",3,"click"],[2,"border-left","1px solid #DADCE0","border-bottom","1px solid #DADCE0","height","40px !important"],[2,"padding","7px 8px","font-size","13px !important","line-height","16px !important","color","#202020","border-right","1px solid #DADCE0"]],template:function(i,l){1&i&&(t.TgZ(0,"div",0),t.YNc(1,K,29,1,"div",1),t.qZA(),t.YNc(2,ut,43,9,"div",2),t.TgZ(3,"div",3,4)(5,"html"),t._UZ(6,"meta",5),t.TgZ(7,"table",6)(8,"tr")(9,"td",7)(10,"p",8)(11,"strong"),t._uU(12),t.qZA()(),t.TgZ(13,"p",8)(14,"strong"),t._uU(15),t.qZA()(),t.TgZ(16,"p",8)(17,"strong"),t._uU(18),t.qZA()(),t.TgZ(19,"p",9)(20,"strong"),t._uU(21),t.ALo(22,"date"),t.qZA()()()(),t.TgZ(23,"tr"),t._UZ(24,"td",10),t.qZA(),t.TgZ(25,"tr",11)(26,"td",12),t._uU(27," Index "),t.qZA(),t.TgZ(28,"td",12),t._uU(29," Client Name "),t.qZA(),t.TgZ(30,"td",12),t._uU(31," Email "),t.qZA(),t.TgZ(32,"td",12),t._uU(33," Tag Name "),t.qZA(),t.TgZ(34,"td",12),t._uU(35," Sent on "),t.qZA(),t.TgZ(36,"td",12),t._uU(37," Status "),t.qZA()(),t.YNc(38,ht,15,9,"tr",13),t.qZA()()()),2&i&&(t.xp6(1),t.Q6J("ngIf",!l.isLoading&&0==l.broadCastHistoryList.data.length),t.xp6(1),t.Q6J("ngIf",l.broadCastHistoryList.data.length>0),t.xp6(10),t.hij(" ",l.campaignName?l.campaignName+" campaign":"-"," Recipient List "),t.xp6(3),t.hij("Adv
1isor : ",l.advisor.name," "),t.xp6(3),t.hij("From : ",l.fromEmail?l.fromEmail:"-"," "),t.xp6(3),t.hij(" Report as on: ",t.xi3(22,7,l.reportDate,"dd-MMM-yyyy"),""),t.xp6(17),t.Q6J("ngForOf",l.broadcastRecipientData))},dependencies:[d.mk,d.sg,d.O5,f.lW,p.Hw,u.VK,u.OP,u.p6,y.NW,B.Ou,h.BZ,h.fO,h.as,h.w1,h.Dz,h.nj,h.ge,h.ev,h.XQ,h.Gk,S.d,d.uU],styles:[".mat-column-name[_ngcontent-%COMP%]{width:40%!important}.pe-none[_ngcontent-%COMP%]{pointer-events:none!important}"]}),n})()},97691:(U,A,o)=>{o.d(A,{M:()=>t});var I=o(41074),E=o(68686),O=o(65730),s=o(24006),M=o(65938),a=o(94650),Z=o(59549),e=o(284),h=o(33152),b=o(93416);let t=(()=>{class D{constructor(d,f,p,u,y){this.fb=d,this.dialogRef=f,this.data=p,this.settingsService=u,this.eventService=y,this.barButtonOptions={active:!1,text:"SAVE",buttonColor:"accent",barColor:"accent",raised:!0,stroked:!1,mode:"determinate",value:10,disabled:!1,fullWidth:!1}}ngOnInit(){this.advisorId=O.e.getAdvisorId(),this.createCampaignForm()}createCampaignForm(){this.campaignForm=this.fb.group({subject:[this.data?this.data.messageTitle:"",[s.kI.required]]})}renameCampaign(){this.barButtonOptions.active=!0;const d={advisorId:O.e.getAdvisorId(),campaignId:this.data.campaignId,subject:this.campaignForm.get("subject").value};this.settingsService.renameCampaign(d).subscribe(f=>{f&&(this.barButtonOptions.active=!1,this.dialogRef.close({data:f}),this.eventService.openSnackBar("Campaign updated successfully.","DISMISS"))},f=>{this.close(),this.barButtonOptions.active=!1,this.eventService.openSnackBar(f,"DISMISS")})}close(){this.dialogRef.close()}}return D.\u0275fac=function(d){return new(d||D)(a.Y36(s.QS),a.Y36(M.so),a.Y36(M.WI),a.Y36(E.g),a.Y36(I.P))},D.\u0275cmp=a.Xpm({type:D,selectors:[["app-rename-campaign"]],decls:23,vars:4,consts:[[1,"p-20","roboto",3,"formGroup"],[1,"f-20","text-black","mb-20"],[1,"row","pt-20"],[1,"col-10","p-0"],[1,"f-16","mb-0"],[1,"col-2","p-0","full-end"],[1,"mb-0"],[1,"col-12","p-0"],["appearance"," standard","floatLabel","never"],["autocomplete","off","matInput","","placeholder","Enter a new campaign name","formControlName","subject",1,"form-control","br-0","pt-8","mb-0",3,"maxLength"],["name",""],[1,"row","pt-80"],[1,"col-4","p-0"],[1,"text-primitive","bg-white",3,"click"],[1,"col-8","p-0","full-end"],[1,"br-0","text-inherit","ml-12",3,"options","btnClick"]],template:function(d,f){if(1&d&&(a.TgZ(0,"div",0)(1,"h3",1),a._uU(2," Rename Campaign "),a.qZA(),a.TgZ(3,"div",2)(4,"div",3)(5,"p",4),a._uU(6,"Campaign name"),a.qZA()(),a.TgZ(7,"div",5)(8,"p",6),a._uU(9),a.qZA()(),a.TgZ(10,"div",7)(11,"mat-form-field",8),a._UZ(12,"input",9,10),a.TgZ(14,"mat-error")(15,"span"),a._uU(16,"This field is required."),a.qZA()()()()(),a.TgZ(17,"div",11)(18,"div",12)(19,"button",13),a.NdJ("click",function(){return f.close()}),a._uU(20," CANCEL "),a.qZA()(),a.TgZ(21,"div",14)(22,"app-progress-button",15),a.NdJ("btnClick",function(){return f.renameCampaign()}),a.qZA()()()()),2&d){const p=a.MAs(13);a.Q6J("formGroup",f.campaignForm),a.xp6(9),a.hij("",p.value.length,"/20"),a.xp6(3),a.Q6J("maxLength",100),a.xp6(10),a.Q6J("options",f.barButtonOptions)}},dependencies:[Z.TO,Z.KE,e.Nt,s.Fj,s.JJ,s.JL,s.sg,s.u,h.k,b.l]}),D})()},44591:(U,A,o)=>{o.d(A,{v:()=>C});var I=o(65938),E=o(65730),O=o(70661),s=o(68686),M=o(41074),a=o(94650),Z=o(11481),e=o(36895),h=o(51572);function b(d,f){1&d&&(a.TgZ(0,"div",4),a._UZ(1,"mat-spinner",5),a.qZA()),2&d&&(a.xp6(1),a.Q6J("diameter",30))}function t(d,f){if(1&d){const p=a.EpF();a.TgZ(0,"div",6)(1,"div",7)(2,"p",8),a._uU(3),a.ALo(4,"date"),a.qZA()(),a.TgZ(5,"div",9)(6,"img",10),a.NdJ("click",function(){a.CHM(p);const y=a.oxw();return a.KtG(y.close())}),a.qZA()()()}if(2&d){const p=a.oxw();a.xp6(3),a.AsE(" ",p.viewData.subject," - ",a.xi3(4,2,p.data.createdDate,"dd/MM/yyyy")," ")}}function D(d,f){if(1&d&&(a.TgZ(0,"div",11)(1,"div",12),a._UZ(2,"p",13),a.qZA()()),2&d){const p=a.oxw();a.xp6(2),a.Q6J("innerHtml",p.msg,a.oJD)}}let C=(()=>{class d{constructor(p,u,y,B,S,N){this.data=p,this.eventService=u,this.settingsService=y,this.roleService=B,this.dialogRef=S,this.sanitizer=N,this.inputData=[]}ngOnInit(){this.getEmailView()}getEmailView(){this.isLoading=!0;const p={advisorId:E.e.getAdvisorId(),campaignId:this.data.campaignId};this.settingsService.getBroadcastView(p).subscribe(u=>{u&&(u.subject.includes("\\u20B9")&&(u.subject=this.replaceAll(u.subject,"\\u20B9","\u20b9")),this.viewData=u,this.msg=this.innerHtmlText(u.messageBody),this.isLoading=!1)},u=>{this.isLoading=!1,this.eventService.openSnackBar(u,"DISMISS")})}innerHtmlText(p){let u;return p&&(u=this.sanitizer.bypassSecurityTrustHtml(p)),u}close(){this.dialogRef.close()}replaceAll(p,u,y){return p.split(u).join(y)}}return d.\u0275fac=function(p){return new(p||d)(a.Y36(I.WI),a.Y36(M.P),a.Y36(s.g),a.Y36(O.N),a.Y36(I.so),a.Y36(Z.H7))},d.\u0275cmp=a.Xpm({type:d,selectors:[["app-view-email"]],decls:4,vars:3,consts:[[1,"p-20"],["class","row p-20 d-flex justify-content-center",4,"ngIf"],["class","row",4,"ngIf"],["class","row borderLine scorllable p-20",4,"ngIf"],[1,"row","p-20","d-flex","justify-content-center"],[3,"diameter"],[1,"row"],[1,"col-md-11","p-0"],[1,"f-20","f-600"],[1,"col-md-1","full-end","p-0"],["src","https://res.cloudinary.com/futurewise/image/upload/v1622610962/myplanner/images/svg/close-icon.svg","height","14","
1width","14","alt","close icon",1,"material-icons","c-p","mb-16",3,"click"],[1,"row","borderLine","scorllable","p-20"],[1,"col-md-12","dashedClass","p-0"],[1,"f-14","f-400",3,"innerHtml"]],template:function(p,u){1&p&&(a.TgZ(0,"div",0),a.YNc(1,b,2,1,"div",1),a.YNc(2,t,7,5,"div",2),a.YNc(3,D,3,1,"div",3),a.qZA()),2&p&&(a.xp6(1),a.Q6J("ngIf",1==u.isLoading),a.xp6(1),a.Q6J("ngIf",!u.isLoading&&u.viewData),a.xp6(1),a.Q6J("ngIf",!u.isLoading&&u.viewData))},dependencies:[e.O5,h.Ou,e.uU],styles:[".scorllable[_ngcontent-%COMP%]{max-height:calc(100vh - 9rem);overflow-y:scroll;padding-bottom:80px}.scorllable[_ngcontent-%COMP%]::-webkit-scrollbar{width:4px}.scorllable[_ngcontent-%COMP%]::-webkit-scrollbar-track{background:#f1f1f1}"]}),d})()},79035:(U,A,o)=>{o.d(A,{k:()=>z});var I=o(41074),E=o(65730),O=o(68686),s=o(53626),M=o(46854),a=o(93584),Z=o(70661),e=o(94650),h=o(65938),b=o(34793),t=o(36895),D=o(97392),C=o(81638);function d(_,v){1&_&&(e.TgZ(0,"div",2)(1,"div",3)(2,"p",4),e._uU(3,"No tags created yet!"),e.qZA()()())}function f(_,v){1&_&&(e.TgZ(0,"th",21)(1,"h5",22),e._uU(2," Name "),e.qZA()())}function p(_,v){if(1&_&&(e.TgZ(0,"td",23)(1,"div",24),e._uU(2),e.qZA()()),2&_){const m=v.$implicit,g=e.oxw(2);e.xp6(2),e.hij(" ",g.isLoading?"":m.tagName," ")}}function u(_,v){1&_&&(e.TgZ(0,"th",25)(1,"h5",22),e._uU(2," No. of clients "),e.qZA()())}function y(_,v){if(1&_&&(e.TgZ(0,"td",23)(1,"div",24),e._uU(2),e.qZA()()),2&_){const m=v.$implicit,g=e.oxw(2);e.xp6(2),e.hij(" ",g.isLoading?"":m.clientCount," ")}}function B(_,v){1&_&&(e.TgZ(0,"th",25)(1,"h5",22),e._uU(2," Created On "),e.qZA()())}function S(_,v){if(1&_&&(e.TgZ(0,"td",23)(1,"div",24),e._uU(2),e.ALo(3,"date"),e.qZA()()),2&_){const m=v.$implicit,g=e.oxw(2);e.xp6(2),e.hij(" ",g.isLoading?"":e.xi3(3,1,m.createdDate,"dd-MMM-yyyy")," ")}}function N(_,v){1&_&&(e.TgZ(0,"th",25)(1,"h5",22),e._uU(2," Edited On "),e.qZA()())}function w(_,v){if(1&_&&(e.TgZ(0,"td",23)(1,"div",24),e._uU(2),e.ALo(3,"date"),e.qZA()()),2&_){const m=v.$implicit,g=e.oxw(2);e.xp6(2),e.hij(" ",g.isLoading?"":e.xi3(3,1,m.updatedDate,"dd-MMM-yyyy")," ")}}function K(_,v){1&_&&(e.TgZ(0,"th",25)(1,"h5",22),e._uU(2," Clone "),e.qZA()())}function k(_,v){if(1&_){const m=e.EpF();e.TgZ(0,"img",28),e.NdJ("click",function(){e.CHM(m);const x=e.oxw().$implicit,L=e.oxw(2);return e.KtG(L.cloneTags(x))}),e.qZA()}}function Y(_,v){if(1&_&&(e.TgZ(0,"td",26)(1,"div",24),e.YNc(2,k,1,0,"img",27),e.qZA()()),2&_){const m=e.oxw(2);e.xp6(2),e.Q6J("ngIf",!m.isLoading)}}function W(_,v){1&_&&(e.TgZ(0,"th",25)(1,"h5",22),e._uU(2," Edit "),e.qZA()())}function J(_,v){if(1&_){const m=e.EpF();e.TgZ(0,"mat-icon",30),e.NdJ("click",function(){e.CHM(m);const x=e.oxw().$implicit,L=e.oxw(2);return e.KtG(L.gotoEditTags(x))}),e._uU(1,"edit"),e.qZA()}}function Q(_,v){if(1&_&&(e.TgZ(0,"td",26)(1,"div",24),e.YNc(2,J,2,0,"mat-icon",29),e.qZA()()),2&_){const m=e.oxw(2);e.xp6(2),e.Q6J("ngIf",!m.isLoading)}}function H(_,v){1&_&&(e.TgZ(0,"th",25)(1,"h5",22),e._uU(2," Delete "),e.qZA()())}function F(_,v){if(1&_){const m=e.EpF();e.TgZ(0,"mat-icon",30),e.NdJ("click",function(){e.CHM(m);const x=e.oxw().$implicit,L=e.oxw(2);return e.KtG(L.deleteTag(x))}),e._uU(1,"delete_outline"),e.qZA()}}function j(_,v){if(1&_&&(e.TgZ(0,"td",26)(1,"div",24),e.YNc(2,F,2,0,"mat-icon",29),e.qZA()()),2&_){const m=e.oxw(2);e.xp6(2),e.Q6J("ngIf",!m.isLoading)}}function q(_,v){1&_&&e._UZ(0,"tr",31)}function $(_,v){1&_&&e._UZ(0,"tr",32)}function G(_,v){if(1&_&&(e.TgZ(0,"div",5)(1,"div",6)(2,"table",7),e.ynx(3,8),e.YNc(4,f,3,0,"th",9),e.YNc(5,p,3,1,"td",10),e.BQk(),e.ynx(6,11),e.YNc(7,u,3,0,"th",12),e.YNc(8,y,3,1,"td",10),e.BQk(),e.ynx(9,13),e.YNc(10,B,3,0,"th",12),e.YNc(11,S,4,4,"td",10),e.BQk(),e.ynx(12,14),e.YNc(13,N,3,0,"th",12),e.YNc(14,w,4,4,"td",10),e.BQk(),e.ynx(15,15),e.YNc(16,K,3,0,"th",12),e.YNc(17,Y,3,1,"td",16),e.BQk(),e.ynx(18,17),e.YNc(19,W,3,0,"th",12),e.YNc(20,Q,3,1,"td",16),e.BQk(),e.ynx(21,18),e.YNc(22,H,3,0,"th",12),e.YNc(23,j,3,1,"td",16),e.BQk(),e.YNc(24,q,1,0,"tr",19),e.YNc(25,$,1,0,"tr",20),e.qZA()()()),2&_){const m=e.oxw();e.xp6(2),e.Q6J("dataSource",m.existingList)("appSkeletonLoading",m.isLoading),e.xp6(22),e.Q6J("matHeaderRowDef",m.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",m.displayedColumns)}}let z=(()=>{class _{constructor(m,g,x,L,V){this.settingsService=m,this.eventService=g,this.dialog=x,this.router=L,this.roleService=V,this.existingList=new s.by,this.displayedColumns=["name","count","createdOn","clone","edit","delete"],this.original=[],this.clone=[]}ngOnInit(){this.tagsCapability=this.roleService.activityPermission.subModule.calendarCapabilityObj,this.getTags()}getTags(){this.isLoading=!0;const m={advisorId:E.e.getAdvisorId()};this.existingList.data=[{},{},{}],this.settingsService.getTagsList(m).subscribe(g=>{g&&g.length>0?(this.existingList.data=g,this.isLoading=!1):(this.isLoading=!1,this.existingList.data=[])},g=>{this.isLoading=!1,this.existingList.data=[],this.eventService.openSnackBar(g,"DISMISS")})}cloneTags(m){if(0!=this.tagsCapability.add){this.existingList.data=[{},{},{}],this.isLoading=!0,this.original=m;const g={advisorId:E.e.getAdvisorId(),tagId:m.tagId};this.settingsService.cloneTags(g).subscribe(x=>{x&&setTimeout(()=>{this.getTags(),this.eventService.openSnackBar("Tag cloned successfully.","Dismiss")},5e3)},x=>{this.existingList.data=[],this.isLoading=!1,this.eventService.openSnackBar(x,"DISMISS")})}}gotoEditTags(m){0!=this.tagsCapability.edit&&(m&&m.tagId&&(m.flag="Edit tag",m.listFlag=!1),this.dialog.open(M.T,{width:"404px",data:m}).afterClosed().subscribe(x=>{if(x)this.router.navigate(["/admin/activities/tags"],{queryParams:{mapClientsFlag:x.mapClientsFlag,tagId:m.tagId,tagName:m.tagName}});else if(null==x)return;this.getTags()}))}deleteTag(m){if(0!=this.tagsCapability.delete){const x=this.dialog.open(a.$,{width:"350px",data:{body:"Are you sure you want to delete this tag?",body2:"This action cannot be changed.",btnYes:"CANCEL",btnNo:"DELETE",positiveMethod:()=>{this.settingsService.deleteTags({advisorId:E.e.getAdvisorId(),tagId:m.tagId}).subscribe(L=>{L&&(this.eventService.openSnackBar("Tag deleted successfully.","Dismiss"),this.getTags())},L=>{this.eventService.openSnackBar(L,"Dismiss")}),x.close()},negativeMethod:()=>{x.close()}},autoFocus:!1});x.afterClosed().subscribe(L=>{})}}getLists(){this.isLoading=!0;const m={advisorId:E.e.getAdvisorId()};this.existingList.data=[{},{},{}],this.settingsService.getExistingLists(m).subscribe(g=>{g&&g.length>0&&(this.existingList.data=g,this.isLoading=!1)},g=>{this.isLoading=!1,this.existingList.data=[],this.eventService.openSnackBar(g,"DISMISS")})}}return _.\u0275fac=function(m){return new(m||_)(e.Y36(O.g),e.Y36(I.P),e.Y36(h.uw),e.Y36(b.F0),e.Y36(Z.N))},_.\u0275cmp=e.Xpm({type:_,selectors:[["app-lists"]],decls:2,vars:2,consts:[["class","p-20",4,"ngIf"],["class","row p-20 pt-150",4,"ngIf"],[1,"p-20"],[1,"row","h-100vh","align-items-center","justify-content-center"],[1,"f-400","f-16","text-grey-dark1"],[1,"row","p-20","pt-150"],[1,"col-12"],["mat-table","","id","table-low","appSkeletonLoading","",1,"skeletonAnimation",3,"dataSource","appSkeletonLoading"],["matColumnDef","name"],["mat-header-cell","","class","br",4,"matHeaderCellDef"],["mat-cell","","class","br",4,"matCellDef"],["matColumnDef","count"],["mat-header-cell","","class","br text-black-lt",4,"matHeaderCellDef"],["matColumnDef","createdOn"],["matColumnDef","editedOn"],["matColumnDef","clone"],["mat-cell","","class","br text-center",4,"matCellDef"],["matColumnDef","edit"],["matColumnDef","delete"],["mat-header-row","","class","h-40",4,"matHeaderRowDef"],["mat-row","","class","h-36",4,"matRowDef","matRowDefColumns"],["mat-header-cell","",1,"br"],[1,"f-500","f-14"],["mat-cell","",1,"br"],[1,"bar"],["mat-header-cell","",1,"br","text-black-lt"],["mat-cell","",1,"br","text-center"],["class","c-p actions","src","https://res.cloudinary.com/futurewise/image/upload/v1664262061/content_copy_cmt58d.png","alt","clone","width","18.7px","height","22",3,"click",4,"ngIf"],["src","https://res.cloudinary.com/futurewise/image/upload/v1664262061/content_copy_cmt58d.png","alt","clone","width","18.7px","height","22",1,"c-p","actions",3,"click"],["class","c-p actions actions2",3,"click",4,"ngIf"],[1,"c-p","actions","actions2",3,"click"],["mat-header-row","",1,"h-40"],["mat-row","",1,"h-36"]],template:function(m,g){1&m&&(e.YNc(0,d,4,0,"div",0),e.YNc(1,G,26,4,"div",1)),2&m&&(e.Q6J("ngIf",0==g.existingList.data.length),e.xp6(1),e.Q6J("ngIf",g.existingList.data.length>0))},dependencies:[t.O5,D.Hw,s.BZ,s.fO,s.as,s.w1,s.Dz,s.nj,s.ge,s.ev,s.XQ,s.Gk,C.d,t.uU],styles:[".listsTable[_ngcontent-%COMP%]{width:80%!important}.text-black-lt[_ngcontent-%COMP%]{color:#212121}.actions[_ngcontent-%COMP%]{color:#757575}.actions2[_ngcontent-%COMP%]{width:24px;height:24px}"]}),_})()}}]);
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.