PageSourceSearch

https://app.quicklead.io/5749.5f312f5a056af2b6.js

js quicklead.io collected 2026-10-08 18:28:51 UTC 67,839 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkquicklead_ui=self.webpackChunkquicklead_ui||[]).push([[5749],{5749:(Zt,b,l)=>{l.r(b),l.d(b,{CampaignsDetailsPersonalizedSendMessageModule:()=>St});var m=l(6895),u=l(396),g=l(8341),I=l(7146),z=l(7579),L=l(5226),M=l.n(L),U=l(8149),e=l(8256),T=l(3785),P=l(5571),J=l(5019),F=l(3447),w=l(171),q=l(8596),A=l(6487),h=l(4006),G=l(7556),R=l(6865),Q=l(1669),H=l(9751);const V=function(i){return{show:i}};let Y=(()=>{class i{constructor(t,n,a,s,r,c){this._rootNode=t,this.toastrService=n,this.localStorageService=a,this.defaultImageService=s,this.spinnerService=r,this.apiRepository=c,this.show=!1,this.previewMessage="",this.id="",this.showClose=!0,this.onClose=new e.vpe}ngOnInit(){const t=this.localStorageService.get(g.tl.ACCESS_USER_DETAILS);null!==t&&(this.lnDetails=JSON.parse(t))}open(t,n){this.reciveUser=t,this.id=n,this.previewMessage="",this.getMessage(),this.show=!0}close(){this.show=!1}closeInternal(){this.onClose.next(null),this.close()}has(t){return $(this._rootNode.nativeElement).find(t).length}getMessage(){this.spinnerService.setSpinnerDiv("#viewDiv"),this.apiRepository.getSendedMessage(this.id,this.reciveUser.profileUrlWithName).subscribe(t=>{this.previewMessage=t.data,this.spinnerService.removeSpinnerDiv("#viewDiv")},t=>{this.toastrService.showError(t.error.message),this.spinnerService.removeSpinnerDiv("#viewDiv")})}}return i.\u0275fac=function(t){return new(t||i)(e.Y36(e.SBq),e.Y36(P._),e.Y36(H.n),e.Y36(w.v),e.Y36(A.V),e.Y36(T.v))},i.\u0275cmp=e.Xpm({type:i,selectors:[["app-view-personalized-message"]],inputs:{showClose:"showClose"},outputs:{onClose:"onClose"},decls:46,vars:10,consts:[["id","viewPersonalizedMessageModal","tabindex","-1","role","dialog","aria-labelledby","AddChampion","aria-hidden","true",1,"modal","fade",3,"ngClass"],["viewPersonalizedMessageModal",""],["role","document",1,"modal-dialog","modal
1-dialog-centered"],[1,"modal-content"],[1,"modal-body","min-height"],["id","viewDiv",1,"h-100"],[1,"d-flex","justify-content-between","align-items-center"],[1,"d-flex","justify-content-left","align-items-center"],[1,"avatar-wrapper"],[1,"avatar","avatar-sm","font-20","me-3"],[1,"avatar-initial","bg-label-primary"],[1,"bx","bxs-show"],[1,"d-flex","flex-column"],[1,"text-body","text-truncate","mb-0"],[1,"fw-medium"],[1,"text-muted"],["href","javascript:void(0);",1,"text-dark","close",3,"click"],[1,"d-flex","justify-content-between","align-items-center","mb-2","flex-column","flex-sm-row"],[1,"d-flex","justify-content-left","align-items-center","mb-2"],[1,"avatar","avatar-sm","me-0"],["alt","Avatar",1,"rounded-circle",3,"src","error"],[1,"d-flex","flex-column","p-2"],[1,"text-body","text-truncate"],["version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink","width","25px","height","25px","viewBox","0,0,256,256",1,"arrow-svg"],["fill","#696cff","fill-rule","nonzero","stroke","none","stroke-width","1","stroke-linecap","butt","stroke-linejoin","miter","stroke-miterlimit","10","stroke-dasharray","","stroke-dashoffset","0","font-family","none","font-weight","none","font-size","none","text-anchor","none",2,"mix-blend-mode","normal"],["transform","scale(5.12,5.12)"],["d","M29.84375,13.09375c-0.77734,0.07422 -1.44141,0.59766 -1.69531,1.33594c-0.25781,0.74219 -0.05859,1.5625 0.50781,2.10156l6.46875,6.46875h-25.125c-0.0625,-0.00391 -0.125,-0.00391 -0.1875,0c-1.10547,0.05078 -1.95703,0.98828 -1.90625,2.09375c0.05078,1.10547 0.98828,1.95703 2.09375,1.90625h25.125l-6.5,6.46875c-0.78516,0.78516 -0.78516,2.05859 0,2.84375c0.78516,0.78516 2.05859,0.78516 2.84375,0l9.875,-9.90625l1.4375,-1.40625l-1.4375,-1.40625l-9.875,-9.90625c-0.42187,-0.43359 -1.01953,-0.65234 -1.625,-0.59375z"],[1,"mt-3",2,"white-space","break-spaces","background","rgb(231 231 255 / 32%)","border-radius","15px","height","calc( 100vh - 261px)","overflow-y","auto","padding","15px"]],template:function(t,n){1&t&&(e.TgZ(0,"div",0,1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"div",5)(6,"div",6)(7,"div",7)(8,"div",8)(9,"div",9)(10,"span",10),e._UZ(11,"i",11),e.qZA()()(),e.TgZ(12,"div",12)(13,"a",13)(14,"span",14),e._uU(15,"Sent message"),e.qZA()(),e.TgZ(16,"small",15),e._uU(17,"How your connection will see your message"),e.qZA()()(),e.TgZ(18,"a",16),e.NdJ("click",function(){return n.close()}),e.TgZ(19,"span"),e._uU(20,"\xd7"),e.qZA()()(),e._UZ(21,"hr"),e.TgZ(22,"div",17)(23,"div",18)(24,"div",8)(25,"div",19)(26,"img",20),e.NdJ("error",function(s){return n.defaultImageService.handleImageError(s,n.lnDetails.lnProfileData.firstName)}),e.qZA()()(),e.TgZ(27,"div",21)(28,"a",22)(29,"span",14),e._uU(30),e.qZA()()()(),e.TgZ(31,"div"),e.O4$(),e.TgZ(32,"svg",23)(33,"g",24)(34,"g",25),e._UZ(35,"path",26),e.qZA()()()(),e.kcU(),e.TgZ(36,"div",18)(37,"div",8)(38,"div",19)(39,"img",20),e.NdJ("error",function(s){return n.defaultImageService.handleImageError(s,null==n.reciveUser?null:n.reciveUser.firstName)}),e.qZA()()(),e.TgZ(40,"div",21)(41,"a",22)(42,"span",14),e._uU(43),e.qZA()()()()(),e.TgZ(44,"div",27),e._uU(45),e.qZA()()()()()()),2&t&&(e.Q6J("ngClass",e.VKq(8,V,n.show)),e.xp6(26),e.Q6J("src",n.lnDetails.lnProfileData.profilePicture,e.
1LSH),e.xp6(4),e.AsE("",null==n.lnDetails||null==n.lnDetails.lnProfileData?null:n.lnDetails.lnProfileData.firstName," ",null==n.lnDetails||null==n.lnDetails.lnProfileData?null:n.lnDetails.lnProfileData.lastName,""),e.xp6(9),e.Q6J("src",null==n.reciveUser?null:n.reciveUser.profilePictureDisplayImage,e.LSH),e.xp6(4),e.AsE("",null==n.reciveUser?null:n.reciveUser.firstName," ",null==n.reciveUser?null:n.reciveUser.lastName,""),e.xp6(2),e.Oqu(n.previewMessage))},dependencies:[m.mk],styles:["#viewPersonalizedMessageModal[_ngcontent-%COMP%]{display:none!important}#viewPersonalizedMessageModal.show[_ngcontent-%COMP%]{position:fixed;inset:0;background:rgb(0 0 0 / 22%);z-index:10000;display:block!important}hr[_ngcontent-%COMP%]{color:#d9dee3}.avatar-sm[_ngcontent-%COMP%]{width:2rem;height:2rem}.avatar[_ngcontent-%COMP%]{position:relative;width:2rem;height:2rem;cursor:pointer;margin-right:1rem!important}.avatar-sm[_ngcontent-%COMP%]   .avatar-initial[_ngcontent-%COMP%]{font-size:.75rem}.avatar[_ngcontent-%COMP%]   .avatar-initial[_ngcontent-%COMP%]{position:absolute;inset:0;text-transform:uppercase;display:flex;align-items:center;justify-content:center;color:#7934f3;background-color:#f0eafd;font-weight:500}.bg-label-primary[_ngcontent-%COMP%]{background-color:#e7e7ff!important;color:#696cff!important}.rounded-circle[_ngcontent-%COMP%]{border-radius:50%!important}.min-height[_ngcontent-%COMP%]{min-height:200px}.list-item[_ngcontent-%COMP%]{max-height:250px;overflow-y:auto}.select-hover[_ngcontent-%COMP%]:hover{background:rgb(231 231 231 / 33%)!important;border-radius:5px}.close[_ngcontent-%COMP%]{font-size:25px}@media screen and (max-width: 576px){.arrow-svg[_ngcontent-%COMP%]{transform:rotate(90deg)}}"]}),i})();var B=l(1249),D=l(4333),j=l(1515),W=l(1965),X=l(7331),ee=l(148),te=l(3177),ne=l(5969),ie=l(1806),ae=l(2569);function se(i,o){1&i&&e._UZ(0,"app-skeleton",37)}function oe(i,o){1&i&&e._UZ(0,"app-empty-state",38)}function re(i,o){if(1&i&&(e.ynx(0),e.YNc(1,se,1,0,"app-skeleton",35),e.YNc(2,oe,1,0,"app-empty-state",36),e.BQk()),2&i){const t=e.oxw();e.xp6(1),e.Q6J("ngIf",!t.detailsError),e.xp6(1),e.Q6J("ngIf",t.detailsError)}}function le(i,o){1&i&&(e.TgZ(0,"span",61),e._UZ(1,"i",62),e._uU(2," Social Signal "),e.qZA()),2&i&&e.Q6J("appTooltip","<sub>Auto import in Social Signal</sub>")}function ce(i,o){if(1&i){const t=e.EpF();e.TgZ(0,"button",63),e.NdJ("click",function(){e.CHM(t);const a=e.oxw(3);return e.KtG(a.openEditCampaignHeaderModal())}),e._UZ(1,"i",64),e._uU(2,"Edit "),e.qZA()}}const pe=function(i,o,t){return["/",i,o,t]};function de(i,o){if(1&i){const t=e.EpF();e.TgZ(0,"div",41)(1,"span",42),e._UZ(2,"i",43),e.qZA(),e.TgZ(3,"div",44)(4,"h1",45),e._uU(5),e.qZA(),e.TgZ(6,"div",46)(7,"span",47),e._UZ(8,"i",48),e._uU(9," AI personalized message"),e.qZA(),e.YNc(10,le,3,1,"span",49),e.TgZ(11,"span",50),e.ALo(12,"lowercase"),e._UZ(13,"span",51),e._uU(14),e.ALo(15,"titlecase"),e.qZA(),e.TgZ(16,"span",52),e._UZ(17,"i",53),e._uU(18),e.qZA(),e.TgZ(19,"span",52),e._UZ(20,"i",54),e._uU(21),e.ALo(22,"customDate"),e.qZA()()(),e.TgZ(23,"div",55)(24,"a",56),e._UZ(25,"i",57),e._uU(26,"View message "),e.qZA(),e.YNc(27,ce,3,0,"button",58),e.TgZ(28,"button",59),e.NdJ("click",function(){e.CHM(t);const a=e.oxw(2);return e.KtG(a.refreshData())}),e._UZ(29,"i",60),e._uU(30,"Refresh "),e.qZA()()()}if(2&i){const t=e.oxw(2);e.xp6(5),e.Oqu(t.campaigns.campaignName),e.xp6(5),e.Q6J("ngIf",t.campaigns.fromSocialSiganlList),e.xp6(1),e.Q6J("ngClass","cd-chip--"+e.lcZ(12,8,t.campaigns.campaignStatus)),e.xp6(3),e.hij("",e.lcZ(15,10,t.campaigns.campaignStatus)," "),e.xp6(4),e.hij(" ",t.displayCampaignTimeZone(),""),e.xp6(3),e.hij(" Started ",e.xi3(22,12,t.campaigns.createdDate,"dd MMM yyyy"),""),e.xp6(3),e.Q6J("routerLink",e.kEZ(15,pe,t.ROUTS.CAMPAIGNS,t.ROUTS.CHANGE_PERSONALIZED_MESSAGE,t.id)),e.xp6(3),e.Q6J("ngIf","ARCHIVED"!==t.campaigns.campaignStatus&&"COMPLETED"!==t.campaigns.campaignStatus)}}const ge=function(){return["SEND_MESSAGE","SEND_MESSAGES_REPLY"]},_e=function(){return["PERSONALIZED_MESSAGE"]},me=function(){return["MESSAGE_FAILED"]},ue=function(){return["MESSAGE_NOT_SENT"]};function he(i,o){if(1&i){const t=e.EpF();e.YNc(0,de,31,19,"div",39),e.TgZ(1,"app-campaign-statistics",40),e.NdJ("openInbox",function(){e.CHM(t);const a=e.oxw();return e.KtG(a.openCampaignInbox())})("openCredits",function(){e.CHM(t);const a=e.oxw();return e.KtG(a.openCredits())})("filterSelect",function(a){e.CHM(t);const s=e.oxw();return e.KtG(s.pushFilterCard(a))}),e.qZA()}if(2&i){const t=e.oxw();e.Q6J("ngIf",t.campaigns),e.xp6(1),e.Q6J("campaignId",t.id)("refresh",t.statisticsRefresh)("campaignStatus",t.campaigns.campaignStatus)("leadingCards",t.flowLeadingCards)("metricFilters",t.metricFilters)("metricKeys",e.DdM(13,ge))("limitTypes",e.DdM(14,_e))("failedFilter",e.DdM(15,me))("queuedCount",t.queuedTotal)("queuedFilter",e.DdM(16,ue))("totalContacts",(null==t.campaigns.detailByType?null:t.campaigns.detailByType.totalNoOfConnections)||0)("sentContacts",(null==t.campaigns.detailByType?null:t.campaigns.detailByType.totalNoOfSentMessages)||0)}}function fe(i,o){1&i&&(e.TgZ(0,"span",65),e._uU(1,"?"),e.qZA()),2&i&&e.Q6J("appTooltip","<sub>Search for a profile name or their current position.</sub>")}function Ce(i,o){if(1&i){const t=e.EpF();e.TgZ(0,"i",66),e.NdJ("click",function(){e.CHM(t);const a=e.oxw(),s=e.MAs(12);return a.clearInput(),e.KtG(s.value="")}
1),e.qZA()}}function ve(i,o){1&i&&e._UZ(0,"span",67)}function xe(i,o){1&i&&e._UZ(0,"img",68)}function Se(i,o){if(1&i&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&i){const t=e.oxw(2);e.xp6(1),e.hij("(",t.contactList.totalElements,")")}}function be(i,o){if(1&i){const t=e.EpF();e.TgZ(0,"button",69),e.NdJ("click",function(){e.CHM(t);const a=e.oxw();return e.KtG(a.download())}),e._UZ(1,"i",70),e._uU(2,"Export "),e.YNc(3,Se,2,1,"span",71),e.qZA()}if(2&i){const t=e.oxw();e.Q6J("appTooltip","<sub>Export contact list as CSV or Excel.</sub>"),e.xp6(3),e.Q6J("ngIf",t.contactList&&0!==(null==t.contactList?null:t.contactList.totalElements))}}function Me(i,o){if(1&i){const t=e.EpF();e.TgZ(0,"span",96),e.NdJ("click",function(){e.CHM(t);const a=e.oxw(2);return e.KtG(a.resetAllFilters())}),e._uU(1,"Clear all"),e.qZA()}}function Te(i,o){if(1&i&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&i){const t=e.oxw(2);e.xp6(1),e.Oqu(t.filterView.names.CurrentStep)}}function Pe(i,o){if(1&i&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&i){const t=e.oxw(2);e.xp6(1),e.Oqu(t.filterView.values.CurrentStep)}}const C=function(i){return{checked:i}};function we(i,o){if(1&i){const t=e.EpF();e.TgZ(0,"li")(1,"span",97),e.NdJ("click",function(){const s=e.CHM(t).$implicit,r=e.oxw(2);return e.KtG(r.toggleFilter("CurrentStep",s.key))}),e._UZ(2,"div",98),e._uU(3),e.qZA()()}if(2&i){const t=o.$implicit,n=e.oxw(2);e.xp6(2),e.Q6J("ngClass",e.VKq(2,C,n.filterView.selectedKeys[t.key])),e.xp6(1),e.hij(" ",t.label," ")}}function Ae(i,o){if(1&i&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&i){const t=e.oxw(2);e.xp6(1),e.Oqu(t.filterView.names.PreviousCampaign)}}function De(i,o){if(1&i&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&i){const t=e.oxw(2);e.xp6(1),e.Oqu(t.filterView.values.PreviousCampaign)}}function Ze(i,o){if(1&i){const t=e.EpF();e.TgZ(0,"i",99),e.NdJ("click",function(a){return e.CHM(t),e.oxw(2).clearFilters("PreviousCampaign"),e.KtG(a.stopPropagation())}),e.qZA()}}function Ne(i,o){if(1&i){const t=e.EpF();e.TgZ(0,"li")(1,"span",97),e.NdJ("click",function(){const s=e.CHM(t).$implicit,r=e.oxw(2);return e.KtG(r.toggleFilter("PreviousCampaign",s.key))}),e._UZ(2,"div",98),e._uU(3),e.qZA()()}if(2&i){const t=o.$implicit,n=e.oxw(2);e.xp6(2),e.Q6J("ngClass",e.VKq(2,C,n.filterView.selectedKeys[t.key])),e.xp6(1),e.hij(" ",t.label," ")}}function Ee(i,o){if(1&i&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&i){const t=e.oxw(2);e.xp6(1),e.Oqu(t.filterView.names.Date)}}function ke(i,o){if(1&i&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&i){const t=e.oxw(2);e.xp6(1),e.Oqu(t.filterView.values.Date)}}function ye(i,o){if(1&i){const t=e.EpF();e.TgZ(0,"i",99),e.NdJ("click",function(a){return e.CHM(t),e.oxw(2).clearFilters("Date"),e.KtG(a.stopPropagation())}),e.qZA()}}function Oe(i,o){if(1&i){const t=e.EpF();e.TgZ(0,"app-date-range-picker",100),e.NdJ("apply",function(a){e.CHM(t);const s=e.oxw(2);return e.KtG(s.onDateRangeApply(a))})("cancel",function(){e.CHM(t);const a=e.oxw(2);return e.KtG(a.onDateRangeCancel())}),e.qZA()}if(2&i){const t=e.oxw(2);e.Q6J("startDate",t.rangeStartDate)("endDate",t.rangeEndDate)("maxDate",t.today)}}function Ie(i,o){if(1&i){const t=e.EpF();e.TgZ(0,"span",101),e.NdJ("click",function(){e.CHM(t);const a=e.oxw(2);return e.KtG(a.resetAllFilters())}),e._uU(1," Reset Filter "),e.qZA()}}const v=function(i){return{"leads-pill--active":i}};function ze(i,o){if(1&i){const t=e.EpF();e.TgZ(0,"div",72)(1,"div",73)(2,"span",74),e._UZ(3,"i",75),e._uU(4,"Filters "),e.qZA(),e.YNc(5,Me,2,0,"span",76),e.TgZ(6,"i",77),e.NdJ("click",function(){e.CHM(t);const a=e.oxw();return e.KtG(a.closeFiltersPanel())}),e.qZA()(),e.TgZ(7,"div",78)(8,"span",79),e.NdJ("shown.bs.dropdown",function(){e.CHM(t);const a=e.oxw();return e.KtG(a.isDropdownOpen.CurrentStep=!0)})("hidden.bs.dropdown",function(){e.CHM(t);const a=e.oxw();return e.KtG(a.isDropdownOpen.CurrentStep=!1)}),e.TgZ(9,"span",80),e.NdJ("click",function(a){return e.CHM(t),e.oxw().clearFilters("CurrentStep"),e.KtG(a.stopPropagation())}),e._UZ(10,"i",81),e.qZA(),e.YNc(11,Te,2,1,"span",71),e.YNc(12,Pe,2,1,"span",71),e.qZA(),e.TgZ(13,"ul",82),e.YNc(14,we,4,4,"li",83),e.qZA(),e.TgZ(15,"span",84),e.NdJ("shown.bs.dropdown",function(){e.CHM(t);const a=e.oxw();return e.KtG(a.isDropdownOpen.PreviousCampaign=!0)})("hidden.bs.dropdown",function(){e.CHM(t);const a=e.oxw();return e.KtG(a.isDropdownOpen.PreviousCampaign=!1)}),e.YNc(16,Ae,2,1,"span",71),e.YNc(17,De,2,1,"span",71),e._UZ(18,"i",85),e.YNc(19,Ze,1,0,"i",86),e.qZA(),e.TgZ(20,"ul",87)(21,"li",88)(22,"p",89)(23,"small")(24,"b"),e._uU(25,"Show connections exist in below campaign"),e.qZA()()()(),e.YNc(26,Ne,4,4,"li",83),e.qZA(),e.TgZ(27,"span",90),e.NdJ("shown.bs.dropdown",function(){e.CHM(t);const a=e.oxw();return e.KtG(a.isDropdownOpen.Date=!0)})("hidden.bs.dropdown",function(){e.CHM(t);const a=e.oxw();return e.KtG(a.isDropdownOpen.Date=!1)})("click",function(){e.CHM(t);const a=e.oxw();return e.KtG(a.onDatePickerOpen())}),e._UZ(28,"i",91),e.YNc(29,Ee,2,1,"span",71),e.YNc(30,ke,2,1,"span",71),e._UZ(31,"i",85),e.YNc(32,ye,1,0,"i",86),e.qZA(),e.TgZ(33,"ul",92)(34,"li",93),e.YNc(35,Oe,1,3,"app-date-range-picker",94),e.qZA()(),e.YNc(36,Ie,2,0,"span",95),e.qZA()()}if(2&i){const t=e.oxw();e.xp6(5),e.Q6J("ngIf",t.filterView.any),e.xp6(1),e.Q6J("appTooltip","<sub>Hide filters</sub>"),e.xp6(2),e.Q6J("ngClass",e.VKq(18,v,t.contactSearchModal.filter.includes("MESSAGE_SENT")||t.contactSearchModal.filter.includes("MESSAGE_NOT_SENT")||t.contactSearchModal.filter.includes("MESSAGE_FAILED"))),e.xp6(2),e.Q6J("ngClass",t.isDropdownOpen.CurrentStep||t.filterView.active.CurrentStep?"fa-times-circle":"fa-plus-circle"),e.xp6(1),e.Q6J("ngIf",!t.filterView.active.CurrentStep),e.xp6(1),e.Q6J("ngIf",t.filterView.active.CurrentStep),e.xp6(2),e.Q6J("ngForOf",t.filters.CurrentStep),e.xp6(1),e.Q6J("ngClass",e.VKq(20,v,t.contactSearchModal.filter.includes("INVITATION_CHAMPAIGN_EXISTS")||t.contactSearchModal.filter.includes("INVITATION_WITHDRAWN_EXISTS")||t.contactSearchModal.filter.includes("INMAIL_CHAMPAIGN_EXISTS")||t.contactSearchModal.filter.includes("EMAIL_FINDER_CHAMPAIGN_EXISTS")||t.contactSearchModal.filter.includes("SEND_MESSAGE_CHAMPAIGN_EXISTS")||t.contactSearchModal.filter.includes("PERSONALIZED_MESSAGE_CHAMPAIGN_EXISTS")||t.contactSearchModal.filter.includes("VISIT_PROFILE_CHAMPAIGN_EXISTS")||t.contactSearchModal.filter.includes("POST_LIKE_CHAMPAIGN_EXISTS")||t.contactSearchModal.filter.includes("POST_COMMENT_CHAMPAIGN_EXISTS"))),e.xp6(1),e.Q6J("ngIf",!t.filterView.active.PreviousCampaign),e.xp6(1),e.Q6J("ngIf",t.filterView.active.PreviousCampaign),e.xp6(2),e.Q6J("ngIf",t.filterView.active.PreviousCampaign),e.xp6(7),e.Q6J("ngForOf",t.filters.PreviousCampaign),e.xp6(1),e.Q6J("ngClass",e.VKq(22,v,t.filterView.active.Date)),e.xp6(2),e.Q6J("ngIf",!t.filterView.active.Date),e.xp6(1),e.Q6J("ngIf",t.filterView.active.Date),e.xp6(2),e.Q6J("ngIf",t.filterView.active.Date),e.xp6(3),e.Q6J("ngIf",t.datePickerVisible),e.xp6(1),e.Q6J("ngIf",t.filterView.any)}}function Le(i,o){if(1&i){const t=e.EpF();e.TgZ(0,"button",111),e.NdJ("click",function(){e.CHM(t);const a=e.oxw(2);return e.KtG(a.removeFromCampign())}),e._UZ(1,"i",112),e._uU(2," Remove "),e.qZA()}if(2&i){const t=e.oxw(2);e.Q6J("disabled",0===t.removedContactList.length)("appTooltip","<sub>Remove contact from this campaign</sub>")}}function Ue(i,o){if(1&i){const t=e.EpF();e.TgZ(0,"div",102)(1,"span",103),e._UZ(2,"i",104),e._uU(3),e.qZA(),e.TgZ(4,"button",105),e.NdJ("click",function(){e.CHM(t);const a=e.oxw();return e.KtG(a.getAddCampaign())}),e._UZ(5,"i",106),e._uU(6,"Add to a other campaign "),e.qZA(),e.TgZ(7,"button",107),e.NdJ("click",function(){e.CHM(t);const a=e.oxw();return e.KtG(a.popupService.openSelectConnectionModal(a.connectionGroupsList))}),e._UZ(8,"i",108),e._uU(9,"Move to list "),e.qZA(),e.YNc(10,Le,3,2,"button",109),e.TgZ(11,"span",110),e.NdJ("click",function(){e.CHM(t);const a=e.oxw();return e.KtG(a.getContactListAll())}),e._uU(12,"Clear"),e.qZA()()}if(2&i){const t=e.oxw();e.xp6(3),e.hij("",t.removedContactList.length," selected "),e.xp6(1),e.Q6J("disabled",0===t.removedContactList.length),e.xp6(3),e.Q6J("disabled",0===t.removedContactList.length)("appTooltip","<sub>Move contact to other list</sub>"),e.xp6(3),e.Q6J("ngIf","ARCHIVED"!==t.campaigns.campaignStatus&&"COMPLETED"!==t.campaigns.campaignStatus)}}
1const Je=function(i,o){return{checked:i,"minus-checked":o}};function Fe(i,o){if(1&i){const t=e.EpF();e.TgZ(0,"div",118),e.NdJ("click",function(){e.CHM(t);const a=e.oxw(2);return e.KtG(a.getContactListAll())}),e.qZA()}if(2&i){const t=e.oxw(2);e.Q6J("ngClass",e.WLB(1,Je,t.removedContactList.length==t.totalContact,0!==t.removedContactList.length&&t.removedContactList.length!==t.totalContact))}}function qe(i,o){if(1&i&&(e.TgZ(0,"th",119)(1,"span",120),e._UZ(2,"i",121),e.TgZ(3,"span",122),e._uU(4),e.qZA()()()),2&i){const t=o.$implicit,n=e.oxw(2);e.Udp("width",n.defaultColumnWidth(t.key),"px")("min-width",80,"px"),e.Q6J("appColumnResize",t.key),e.xp6(4),e.Oqu(t.label)}}function Ge(i,o){if(1&i&&(e.TgZ(0,"tr",124)(1,"td")(2,"div",125),e._UZ(3,"span",126)(4,"span",127),e.TgZ(5,"span",128),e._UZ(6,"span",129)(7,"span",130),e.qZA(),e._UZ(8,"span",131)(9,"span",132)(10,"span",133),e.qZA()()()),2&i){const t=o.index,n=e.oxw(3);e.Q6J("ngClass","ql-skel-row--"+(t+1)),e.xp6(1),e.uIk("colspan",n.skeletonColspan)}}function Re(i,o){if(1&i&&(e.ynx(0),e.YNc(1,Ge,11,2,"tr",123),e.BQk()),2&i){const t=e.oxw(2);e.xp6(1),e.Q6J("ngForOf",t.skeletonRows)}}function Qe(i,o){if(1&i&&(e.TgZ(0,"tr")(1,"td",134)(2,"div",135)(3,"small"),e._uU(4,"Waiting to get record"),e.qZA()()()()),2&i){const t=e.oxw(3);e.xp6(1),e.uIk("colspan",t.visibleColumnCount)}}function He(i,o){if(1&i&&(e.TgZ(0,"tr")(1,"td",134),e._UZ(2,"app-empty-state",136),e.qZA()()),2&i){const t=e.oxw(3);e.xp6(1),e.uIk("colspan",t.visibleColumnCount)}}function Ve(i,o){if(1&i&&(e.ynx(0),e.YNc(1,Qe,5,1,"tr",71),e.YNc(2,He,3,1,"tr",71),e.BQk()),2&i){const t=e.oxw(2);e.xp6(1),e.Q6J("ngIf",!t.error1||!t.groupLoad),e.xp6(1),e.Q6J("ngIf",t.error1&&t.groupLoad)}}function Ye(i,o){if(1&i&&(e.ynx(0),e.TgZ(1,"tr")(2,"td",134),e._UZ(3,"app-empty-state",137),e.qZA()(),e.BQk()),2&i){const t=e.oxw(2);e.xp6(2),e.uIk("colspan",t.visibleColumnCount)}}function $e(i,o){if(1&i&&(e.TgZ(0,"span",155)(1,"sup",146),e._uU(2),e.qZA()()),2&i){const t=e.oxw(3).$implicit;e.xp6(2),e.Oqu(t.email[0])}}function Ke(i,o){if(1&i){const t=e.EpF();e.TgZ(0,"td",146)(1,"div",147)(2,"div",148)(3,"div",149)(4,"img",150),e.NdJ("error",function(a){e.CHM(t);const s=e.oxw(2).$implicit,r=e.oxw(3);return e.KtG(r.defaultImageService.handleImageError(a,s.firstName))}),e.qZA()()(),e.TgZ(5,"div",151)(6,"a",152),e.NdJ("click",function(){e.CHM(t);const a=e.oxw(2).$implicit,s=e.oxw(3);return e.KtG(s.popupService.openContactDetails(a.profileUrlWithName,a.profileUrl,a.saved?s.CONSTANTS.CONTACT_SAVED:s.CONSTANTS.CONTACT_NOT_SAVED,a.fullProfile,!1,a))}),e.TgZ(7,"span",153)(8,"b"),e._uU(9),e.qZA()()(),e.YNc(10,$e,3,1,"span",154),e.qZA()()()}if(2&i){const t=e.oxw(2).$implicit;e.xp6(4),e.Q6J("src",t.profilePictureDisplayImage,e.LSH),e.xp6(5),e.AsE(" ",t.firstName," ",t.lastName,""),e.xp6(1),e.Q6J("ngIf",t.email&&t.email.length>0)}}function Be(i,o){if(1&i&&(e.TgZ(0,"div",157)(1,"p",158)(2,"small"),e._uU(3),e.qZA()(),e.TgZ(4,"p",159)(5,"small"),e._uU(6),e.qZA()()()),2&i){const t=o.$implicit;e.xp6(3),e.Oqu(t.title),e.xp6(3),e.Oqu(t.companyName)}}function je(i,o){if(1&i&&(e.ynx(0),e.YNc(1,Be,7,2,"div",156),e.BQk()),2&i){const t=e.oxw(3).$implicit;e.xp6(1),e.Q6J("ngForOf",t.currentPosition.slice(0,1))}}function We(i,o){1&i&&(e.TgZ(0,"div",162)(1,"span",158),e._UZ(2,"i",163),e.qZA()())}function Xe(i,o){if(1&i&&(e.TgZ(0,"div",164)(1,"small"),e._uU(2),e.qZA()()),2&i){const t=e.oxw(4).$implicit;e.xp6(2),e.Oqu(t.linkedInProfileHeadline)}}function et(i,o){if(1&i&&(e.ynx(0),e.YNc(1,We,3,0,"div",160),e.YNc(2,Xe,3,1,"div",161),e.BQk()),2&i){const t=e.oxw(3).$implicit;e.xp6(1),e.Q6J("ngIf",!t.linkedInProfileHeadline),e.xp6(1),e.Q6J("ngIf",t.linkedInProfileHeadline)}}function tt(i,o){if(1&i&&(e.TgZ(0,"td",146),e.YNc(1,je,2,1,"ng-container",71),e.YNc(2,et,3,2,"ng-container",71),e.qZA()),2&i){const t=e.oxw(2).$implicit;e.xp6(1),e.Q6J("ngIf",t.currentPosition&&t.currentPosition.length>0),e.xp6(1),e.Q6J("ngIf",!t.currentPosition||0===t.currentPosition.length)}}function nt(i,o){if(1&i){const t=e.EpF();e.TgZ(0,"button",167),e.NdJ("click",function(){e.CHM(t);const a=e.oxw(3).$implicit,s=e.oxw(3);return e.KtG(s.popupService.openViewPersonalizedMessageModal(a,s.id))}),e._UZ(1,"i",168),e._uU(2,"Message "),e.qZA()}}function it(i,o){1&i&&(e.TgZ(0,"span",169),e._UZ(1,"i",163),e.qZA())}function at(i,o){if(1&i&&(e.TgZ(0,"td"),e.YNc(1,nt,3,0,"button",165),e.YNc(2,it,2,0,"span",166),e.qZA()),2&i){const t=e.oxw(2).$implicit;e.xp6(1),e.Q6J("ngIf","SENT"==t.campaignContactStatus),e.xp6(1),e.Q6J("ngIf","SENT"!=t.campaignContactStatus)}}function st(i,o){1&i&&(e.TgZ(0,"p",89)(1,"small")(2,"span",171),e._uU(3," Sent"),e.qZA()()())}function ot(i,o){1&i&&(e.TgZ(0,"p",89)(1,"small")(2,"span",172),e._uU(3," Replied"),e.qZA()()())}function rt(i,o){1&i&&(e.TgZ(0,"p",89)(1,"small")(2,"span",173),e._uU(3," No replied"),e.qZA()()())}function lt(i,o){1&i&&(e.TgZ(0,"p",89)(1,"small")(2,"span",174),e._uU(3," In queue"),e.qZA()()())}function ct(i,o){if(1&i&&(e.TgZ(0,"p",89)(1,"small")(2,"span",175),e._uU(3," Failed"),e.qZA()()()),2&i){const t=e.oxw(3).$implicit;e.xp6(2),e.Q6J("appTooltip",t.failedReason||"")}}function pt(i,o){if(1&i&&(e.TgZ(0,"td",134),e.YNc(1,st,4,0,"p",170),e.YNc(2,ot,4,0,"p",170),e.YNc(3,rt,4,0,"p",170),e.YNc(4,lt,4,0,"p",170),e.YNc(5,ct,4,1,"p",170),e.qZA()),2&i){const t=e.oxw(2).$implicit;e.xp6(1),e.Q6J("ngIf","SENT"==t.campaignContactStatus),e.xp6(1),e.Q6J("ngIf","REPLIED"==t.campaignContactStatus),e.xp6(1),e.Q6J("ngIf","NO_REPLIED"==t.campaignContactStatus),e.xp6(1),e.Q6J("ngIf","IN_QUEUE"==t.campaignContactStatus),e.xp6(1),e.Q6J("ngIf","FAILED"==t.campaignContactStatus)}}function dt(i,o){1&i&&(e.ynx(0,142),e.YNc(1,Ke,11,4,"td",143),e.YNc(2,tt,3,2,"td",143),e.YNc(3,at,3,2,"td",144),e.YNc(4,pt,6,5,"td",145),e.BQk()),2&i&&(e.Q6J("ngSwitch",o.$implicit.key),e.xp6(1),e.Q6J("ngSwitchCase","name"),e.xp6(1),e.Q6J("ngSwitchCase","headline"),e.xp6(1),e.Q6J("ngSwitchCase","message"),e.xp6(1),e.Q6J("ngSwitchCase","status"))}function gt(i,o){if(1&i){const t=e.EpF();e.TgZ(0,"tr",139)(1,"td",140)(2,"div",118),e.NdJ("click",function(){const s=e.CHM(t).$implicit,r=e.oxw(3);return e.KtG(r.prepareRemoveList(s.profileUrl))}),e.qZA()(),e.YNc(3,dt,5,5,"ng-container",141),e.qZA()}if(2&i){const t=o.$implicit,n=e.oxw(3);e.xp6(2),e.Q6J("ngClass",e.VKq(2,C,n.removedContactList.includes(t.profileUrl))),e.xp6(1),e.Q6J("ngForOf",n.orderedVisibleColumns)}}const _t=function(i,o,t){return{itemsPerPage:i,currentPage:o,totalItems:t}};function mt(i,o){if(1&i&&(e.ynx(0),e.YNc(1,gt,4,4,"tr",138),e.ALo(2,"paginate"),e.BQk()),2&i){const t=e.oxw(2);e.xp6(1),e.Q6J("ngForOf",e.xi3(2,1,t.contactList.content,e.kEZ(4,_t,t.contactList.size,t.contactList.pageable.pageNumber+1,t.contactList.totalElements)))}}function ut(i,o){if(1&i&&(e.TgZ(0,"table",113)(1,"thead")(2,"tr",114)(3,"th"),e.YNc(4,Fe,1,4,"div",115),e.qZA(),e.YNc(5,qe,5,6,"th",116),e.qZA()(),e.TgZ(6,"tbody",117),e.YNc(7,Re,2,1,"ng-container",71),e.YNc(8,Ve,3,2,"ng-container",71),e.YNc(9,Ye,4,1,"ng-container",71),e.YNc(10,mt,3,8,"ng-container",71),e.qZA()()),2&i){const t=e.oxw();e.xp6(4),e.Q6J("ngIf",t.contactList&&t.contactList.totalElements>0),e.xp6(1),e.Q6J("ngForOf",t.orderedVisibleColumns),e.xp6(2),e.Q6J("ngIf",t.tableLoading),e.xp6(1),e.Q6J("ngIf",!(t.tableLoading||t.contactList&&t.groupLoad)),e.xp6(1),e.Q6J("ngIf",t.contactList&&0===t.contactList.totalElements),e.xp6(1),e.Q6J("ngIf",t.contactList&&t.contactList.totalElements>0&&t.groupLoad&&t.campaigns)}}function ht(i,o){if(1&i){const t=e.EpF();e.TgZ(0,"button",193),e.NdJ("click",function(){const s=e.CHM(t).$implicit;e.oxw();const r=e.MAs(31);return e.KtG(r.setCurrent(s.value))}),e._uU(1),e.qZA()}if(2&i){const t=o.$implicit;e.oxw();const n=e.MAs(31);e.ekj("lb-page-num--active",n.getCurrent()===t.value),e.xp6(1),e.Oqu(t.label)}}function ft(i,o){if(1&i){const t=e.EpF();e.TgZ(0,"div",176)(1,"div",177)(2,"span",178),e._uU(3," Showing "),e.TgZ(4,"b"),e._uU(5),e.qZA(),e._uU(6,"\u2013"),e.TgZ(7,"b"),e._uU(8),e.qZA(),e._uU(9," of "),e.TgZ(10,"b"),e._uU(11),e.qZA()(),e.TgZ(12,"span",179),e._uU(13,"Rows per page"),e.qZA(),e.TgZ(14,"span",180),e._uU(15),e._UZ(16,"i",181),e.qZA(),e.TgZ(17,"ul",182)(18,"li")(19,"span",97),e.NdJ("click",function(){e.CHM(t);const a=e.oxw();return e.KtG(a.limit(10))}),e._uU(20,"10"),e.qZA()(),e.TgZ(21,"li")(22,"span",97),e.NdJ("click",function(){e.CHM(t);const a=e.oxw();return e.KtG(a.limit(50))}),e._uU(23,"50"),e.qZA()(),e.TgZ(24,"li")(25,"span",97),e.NdJ("click",function(){e.CHM(t);const a=e.oxw();return e.KtG(a.limit(100))}),e._uU(26,"100"),e.qZA()(),e.TgZ(27,"li")(28,"span",97),e.NdJ("click",function(){e.CHM(t);const a=e.oxw();return e.KtG(a.limit(200))}),e._uU(29,"200"),e.qZA()()(),e.TgZ(30,"pagination-template",183,184),e.NdJ("pageChange",function(a){e.CHM(t);const s=e.oxw();return e.KtG(s.pageChangedEvent(a))}),e.TgZ(32,"div",185)(33,"span",186),e._uU(34),e.qZA(),e.TgZ(35,"button",187),e.NdJ("click",function(){e.CHM(t);const a=e.MAs(31);return e.KtG(a.setCurrent(1))}),e._UZ(36,"i",188),e.qZA(),e.TgZ(37,"button",187),e.NdJ("click",function(){e.CHM(t);const a=e.MAs(31);return e.KtG(a.previous())}),e._UZ(38,"i",189),e.qZA(),e.YNc(39,ht,2,3,"button",190),e.TgZ(40,"button",187),e.NdJ("click",function(){e.CHM(t);const a=e.MAs(31);return e.KtG(a.next())}),e._UZ(41,"i",191),e.qZA(),e.TgZ(42,"button",187),e.NdJ("click",function(){e.CHM(t);const a=e.MAs(31);return e.KtG(a.setCurrent(a.getLastPage()))}),e._UZ(43,"i",192),e.qZA()()()()()}if(2&i){const t=e.MAs(31),n=e.oxw();e.xp6(5),e.Oqu(n.contactList.pageable.pageNumber*n.contactList.size+1),e.xp6(3),e.Oqu((n.contactList.pageable.pageNumber+1)*n.contactList.size>n.contactList.totalElements?n.contactList.totalElements:(n.contactList.pageable.pageNumber+1)*n.contactList.size),e.xp6(3),e.Oqu(n.contactList.totalElements),e.xp6(4),e.hij(" ",n.contactSearchModal.limit," "),e.xp6(19),e.AsE("Page ",t.getCurrent()," of ",t.getLastPage(),""),e.xp6(1),e.Q6J("disabled",t.isFirstPage()),e.xp6(2),e.Q6J("disabled",t.isFirstPage()),e.xp6(2),e.Q6J("ngForOf",t.pages),e.xp6(1),e.Q6J("disabled",t.isLastPage()),e.xp6(2),e.Q6J("disabled",t.isLastPage())}}const Ct=[{path:"",component:(()=>{class i{toggleFiltersPanel(){this.filtersPanelOpen=!this.filtersPanelOpen}closeFiltersPanel(){this.filtersPanelOpen=!1}filtersActive(){return"function"==typeof this.isAnyFilterApplied&&!!this.isAnyFilterApplied()}get orderedVisibleColumns(){return this.builtInColumns}get visibleColumnCount(){return 1+this.orderedVisibleColumns.length}defaultColumnWidth(t){switch(t){case"name":return 240;case"headline":return 200;case"message":return 140;case"status":return 130;default:return 160}}externalHref(t){const n=(t??"").trim();return n?/^https?:\/\//i.test(n)?n:n.startsWith("//")?"https:"+n:"https://"+n.replace(/^\/+/,""):"#"}contactLinkedInUrl(t){if(!t)return null;const n=(t.linkedinProfileUrlWithName||t.linkedinProfileUrl||"").trim();return n.length>0?this.externalHref(n):null}icpScorePercent(t){return null==t||Number.isNaN(Number(t))?0:Math.max(0,Math.min(100,Math.round(Number(t))))}icpScoreMatchLabel(t){const n=this.icpScorePercent(t);return 0===n?"Poor match":n<40?"Needs review":n<55?"Good potential":"Good fit"}icpScoreBarToneClass(t){const n=this.icpScorePercent(t);return 0===n?"icp-score-fill--poor":n<40?"icp-score-fill--review":n<55?"icp-score-fill--potential":"icp-score-fill--fit"}icpScoreLabelToneClass(t){const n=this.icpScorePercent(t);return 0===n?"icp-score-label--poor":n<40?"icp-score-label--review":n<55?"icp-score-label--potential":"icp-score-label--fit"}icpScoreBadgeBgClass(t){const n=this.icpScorePercent(t);return n<40?"bg-label-danger":n<55?"bg-label-warning":"bg-label-success"}icpScoreTooltipToneClass(t){if(null==t||Number.isNaN(Number(t)))return"icp-match-tip--neutral";const n=this.icpScorePercent(t);return 0===n?"icp-match-tip--poor":n<40?"icp-match-tip--review":n<55?"icp-match-tip--potential":"icp-match-tip--fit"}icpScoreCardTooltip(t,n){var a,s,r,c;const p=O=>this.icpEscapeHtmlForTooltip(null==O?"":String(O)),d=this.icpScorePercent(n?.score),_=this.icpScoreTooltipToneClass(n?.score),x=[t?.firstName,t?.lastName].filter(
1Boolean).join(" ").trim()||"\u2014",f=(null===(s=null===(a=t?.currentPosition)||void 0===a?void 0:a[0])||void 0===s?void 0:s.title)||t?.linkedInProfileHeadline||"",Z=(null===(c=null===(r=t?.currentPosition)||void 0===r?void 0:r[0])||void 0===c?void 0:c.companyName)||"",N=null!=n?.band?String(n.band).toUpperCase():"",E=null!=n?.reason&&String(n.reason).trim().length>0?String(n.reason).trim():"",bt=E?p(E):'<span class="icp-match-tip-muted">No analysis text available.</span>',k=this.icpTooltipLocationLine(t,n),Mt=k?`<div class="icp-match-tip-loc"><i class="bx bx-map"></i><span>${p(k)}</span></div>`:"",S=t?.imageUrl,Tt="string"==typeof S&&/^https?:\/\//i.test(S.trim())?S.trim():"",y=this.defaultImageService.convertSvgToDataUrl(t?.firstName?String(t.firstName):""),Pt=this.icpEscapeAttr(y),wt=`<img class="icp-match-tip-avatar" src="${this.icpEscapeAttr(Tt||y)}" alt="" width="40" height="40" onerror="this.onerror=null;this.src='${Pt}';" />`,At=null!=n?.score?`<div class="icp-match-tip-pct">${d}<span class="icp-match-tip-pct-sign">%</span></div>${N?`<div class="icp-match-tip-band">${p(N)}</div>`:""}`:'<div class="icp-match-tip-pct icp-match-tip-muted">\u2014</div>',Dt=null!=n?.score?`<div class="icp-match-tip-score-row">\n             <span class="icp-match-tip-label">ICP Match Score</span>\n             <span class="icp-match-tip-ratio">${d}/100</span>\n           </div>\n           <div class="icp-match-tip-bar-track">\n             <div class="icp-match-tip-bar-fill${0===d?" icp-match-tip-bar-fill--zero":""}"${d>0?` style="width:${d}%"`:""}></div>\n           </div>`:"";return`<div class="icp-match-tip ${_}">\n      <div class="icp-match-tip-head">\n        <div class="icp-match-tip-head-row">\n          <div class="icp-match-tip-avatar-wrap">${wt}</div>\n          <div class="icp-match-tip-head-main">\n            <div class="icp-match-tip-name">${p(x)}</div>\n            ${f?`<div class="icp-match-tip-title">${p(f)}</div>`:""}\n            ${Z?`<div class="icp-match-tip-company">${p(Z)}</div>`:""}\n          </div>\n          <div class="icp-match-tip-head-score">${At}</div>\n        </div>\n      </div>\n      <div class="icp-match-tip-mid">\n        ${Dt}\n        ${Mt}\n      </div>\n      <div class="icp-match-tip-ai">\n        <div class="icp-match-tip-ai-h">AI ANALYSIS</div>\n        <div class="icp-match-tip-ai-box">${bt}</div>\n      </div>\n    </div>`}icpEscapeHtmlForTooltip(t){return String(t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/\n/g,"<br/>")}icpEscapeAttr(t){return String(t).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;")}icpTooltipInitials(t){return((t?.firstName?String(t.firstName).charAt(0):"")+(t?.lastName?String(t.lastName).charAt(0):"")).toUpperCase()||"?"}icpTooltipLocationLine(t,n){var a,s,r,c;const p=null===(s=null===(a=n?.breakdown)||void 0===a?void 0:a.location)||void 0===s?void 0:s.matchedPhrases;if(Array.isArray(p)&&p.length>0)return p.filter(_=>null!=_&&String(_).trim().length>0).join(", ");const d=null===(c=null===(r=t?.currentPosition)||void 0===r?void 0:r[0])||void 0===c?void 0:c.location;return null!=d&&String(d).trim().length>0?String(d).trim():null!=t?.geoRegion&&String(t.geoRegion).trim().length>0?String(t.geoRegion).trim():""}contactLocationTooltip(t){return'<div class="text-start"><i class="bx bx-map me-1"></i><sub>'+t.location+"</sub></div>"}constructor(t,n,a,s,r,c,p,d,_,x){this.route=t,this.apiRepository=n,this.toastrService=a,this.popupService=s,this.datePipe=r,this.clipboardService=c,this.defaultImageService=p,this.router=d,this.sharedService=_,this.spinnerService=x,this.filtersPanelOpen=!1,this.builtInColumns=[{key:"name",label:"Name"},{key:"headline",label:"Headline"},{key:"message",label:"Message"},{key:"status",label:"Status"}],this.salesAccess=!0,this.icpProcessingInfo="",this.ROUTS=g.ks,this.CONSTANTS=g.tl,this.canEditCampaignHeaderFields=g.kI,this.groups=[],this.connectionGroupsList=[],this.groupsSearch=[],this.bgClasses=g.tl.bgClasses,this.error=!1,this.error1=!1,this.contactList=void 0,this.searchSubject=ne
1w z.x,this.removedContactList=[],this.groupLoad=!1,this.downloadFile=!1,this.totalContact=0,this.forEmail="The email has been copied",this.forWesite="The website has been copied.",this.isFiltersOpen=!0,this.isDropdownOpen={},this.statisticsStartDate="",this.statisticsEndDate="",this.rangeStartDate=new Date,this.rangeEndDate=new Date,this.datePickerVisible=!1,this.today=new Date,this.dateRangeLabel="",this.filters={CurrentStep:[{key:"MESSAGE_SENT",label:"Sent",exclusiveWith:["MESSAGE_NOT_SENT","MESSAGE_FAILED"]},{key:"MESSAGE_NOT_SENT",label:"In queue",exclusiveWith:["MESSAGE_SENT","MESSAGE_FAILED"]},{key:"MESSAGE_FAILED",label:"Failed",exclusiveWith:["MESSAGE_SENT","MESSAGE_NOT_SENT"]}],PreviousCampaign:[{key:"INVITATION_CHAMPAIGN_EXISTS",label:"Invitation"},{key:"INVITATION_WITHDRAWN_EXISTS",label:"Invitation withdrawn"},{key:"INMAIL_CHAMPAIGN_EXISTS",label:"Inmail"},{key:"EMAIL_FINDER_CHAMPAIGN_EXISTS",label:"Email finder"},{key:"SEND_MESSAGE_CHAMPAIGN_EXISTS",label:"Send messages"},{key:"PERSONALIZED_MESSAGE_CHAMPAIGN_EXISTS",label:"Personalized messages"},{key:"VISIT_PROFILE_CHAMPAIGN_EXISTS",label:"Visit profile"},{key:"POST_LIKE_CHAMPAIGN_EXISTS",label:"Post like"},{key:"POST_COMMENT_CHAMPAIGN_EXISTS",label:"Post comment"}]},this.statisticsRefresh=0,this.metricFilters={SEND_MESSAGE:["MESSAGE_SENT"]},this.tableLoading=!0,this.skeletonRows=[1,2,3,4,5,6],this.detailsError=!1,this.filterView={active:{},values:{},names:{},selectedKeys:{},any:!1},this.contactSearchModal=new U.u,this.searchSubject.pipe((0,I.b)(10)).subscribe(()=>{this.getContactList()}),this.campaigns=void 0,this.route.params.subscribe(f=>{this.id=f.id})}ngOnInit(){this.init()}init(){this.getDetails(),this.getContactList(),this.getGroups(),this.getConnectionGroups()}openCampaignInbox(){var t,n;this.router.navigate([this.ROUTS.INBOX],{state:{filterCampaignAdd:{id:this.id,name:null===(t=this.campaigns)||void 0===t?void 0:t.campaignName,type:null===(n=this.campaigns)||void 0===n?void 0:n.campaignType}}})}openCredits(){this.router.navigate([this.ROUTS.DASHBOARD],{state:{showCredits:!0}})}get flowLeadingCards(){var t;const n=null===(t=this.campaigns)||void 0===t?void 0:t.detailByType;return n?[{key:"TARGETED",label:"Total contacts",value:n.totalNoOfConnections||0,filter:[]}]:[]}get queuedTotal(){var t;const n=null===(t=this.campaigns)||void 0===t?void 0:t.detailByType;return n?Math.max(0,(n.totalNoOfConnections||0)-(n.totalNoOfSentMessages||0)):0}refreshData(){this.statisticsRefresh++,this.init()}previousPage(){let t="STANDBY"===this.campaigns.campaignStatus?`${g.ks.CAMPAIGNS}/running`:`${g.ks.CAMPAIGNS}/${this.campaigns.campaignStatus.toLowerCase()}`;this.router.navigate([t])}get skeletonColspan(){return Math.max(6,this.visibleColumnCount)}getContactList(){this.refreshFilterView(),this.error=!1,this.tableLoading=!0,(""!=this.statisticsStartDate&&""!=this.statisticsEndDate?this.apiRepository.getCampaignsContactByStatisticsDate(this.contactSearchModal,this.id,this.statisticsStartDate,this.statisticsEndDate):this.apiRepository.getCampaignsContact(this.contactSearchModal,this.id)).subscribe(n=>{this.tableLoading=!1,this.contactList=n,0==this.contactSearchModal.filter.length&&0==this.contactSearchModal.filterTag.length&&1==this.contactSearchModal.page&&""==this.contactSearchModal.search&&""==this.statisticsStartDate&&(this.totalContact=this.contactList.totalElements)},n=>{this.error=!0,this.contactList=void 0,this.tableLoading=!1,this.toastrService.showError(n.error.message)})}download(){M().fire({title:"Export format",text:"Choose CSV or Excel for your export.",showDenyButton:!0,showCancelButton:!0,confirmButtonText:"Excel",denyButtonText:"CSV",cancelButtonText:"Cancel",customClass:{confirmButton:"btn btn-primary btn-sm",denyButton:"btn btn-secondary btn-sm",cancelButton:"btn btn-light btn-sm",popup:"custom-popup-class"}}).then(t=>{t.isConfirmed?this.doDownload("EXCEL"):t.isDenied&&this.doDownload("CSV")})}doDownload(t){this.downloadFile=!0;const n=Object.assign(Object.assign({},this.contactSearchModal),{exportFormat:t});this.apiRepository.downloadCampaignContact(n,this.id,this.statisticsStartDate,this.statisticsEndDate).subscribe(a=>{this.downloadFile=!1;const s="CSV"===t,r=new Blob([a],{type:s?"text/csv":"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}),c=window.URL.createObjectURL(r),p=document.createElement("a");p.href=c;const d=s?".csv":".xlsx";p.download=this.campaigns.campaignName.replace(" ","_").toLowerCase()+d,document.body.appendChild(p),p.click(),window.URL.revokeObjectURL(c),document.body.removeChild(p)},a=>{var s;this.downloadFile=!1,this.toastrService.showError(400==a.status?g.X3.NO_LIST_WITH_THIS_NAME_ERROR:401==a.status?g.X3.SECURITY_BREACH_NO_ACCESS_OTHERS_ERROR:511==a.status?g.X3.NO_CONTACTS_DOWNLOAD_FROM_LIST_ERROR:500==a.status?g.X3.EXCEL_DOWNLOAD_CONTACT_US_
1ERROR:(null===(s=a.error)||void 0===s?void 0:s.message)||"Failed to export contact list")})}getConnectionGroups(){this.apiRepository.getConnectionGroups().subscribe(t=>{this.connectionGroupsList=t},t=>{})}pageChangedEvent(t){this.contactSearchModal.page=t,this.getContactList()}getDetails(){this.detailsError=!1,this.apiRepository.getCampaignsDetails(this.id).subscribe(t=>{this.campaigns=t,this.detailsError=!1},t=>{this.detailsError=!0,this.toastrService.showError(t.error.message)})}effectiveServerTimeZone(){if(!this.campaigns)return Intl.DateTimeFormat().resolvedOptions().timeZone;const t=this.campaigns.campaignTimeZone;return t&&String(t).trim()?String(t).trim():Intl.DateTimeFormat().resolvedOptions().timeZone}displayCampaignTimeZone(){if(!this.campaigns)return"\u2014";const t=this.campaigns.campaignTimeZone;return t&&String(t).trim()?String(t).trim():this.effectiveServerTimeZone()}openEditCampaignHeaderModal(){if(this.campaigns){if(!(0,g.kI)(this.campaigns.campaignStatus))return void this.toastrService.showWarning("Pause this campaign first, then you can edit it.");this.popupService.openCampaignTimezoneHeaderEditor({campaignId:this.id,campaignName:this.campaigns.campaignName,campaignTimeZone:this.campaigns.campaignTimeZone,showNameField:!0})}}onCampaignHeaderSaved(t){this.campaigns&&(void 0!==t.campaignName&&(this.campaigns.campaignName=t.campaignName),void 0!==t.campaignTimeZone&&(this.campaigns.campaignTimeZone=t.campaignTimeZone))}searchByName(t){this.contactSearchModal.search=t.currentTarget.value,this.contactSearchModal.page=1,this.searchSubject.next(this.contactSearchModal.search)}limit(t){this.contactSearchModal.page=1,this.contactSearchModal.limit=t,this.getContactList()}getGroups(){this.groupLoad=!1,this.apiRepository.getGroups().subscribe(t=>{this.groups=t,this.groupLoad=!0,this.groupsSearch=[],this.groups.forEach(n=>this.groupsSearch.push(n))},t=>{this.groupLoad=!0,this.toastrService.showError(t.error.message)})}searchGroupsByName(t){let n=t.target.value.toLowerCase();this.groupsSearch=this.groups.filter(a=>a.name.toLowerCase().includes(n))}clearInput(){this.groupsSearch=this.groups}selectList(t){this.contactSearchModal.listId=this.contactSearchModal.listId==t?0:t,this.getContactList()}removeFilter(t){const n=this.contactSearchModal.filter.indexOf(t);-1!==n&&(this.contactSearchModal.filter.splice(n,1),this.contactSearchModal.page=1,this.getContactList())}pushAndRemove(t,n){const a=this.contactSearchModal.filter.indexOf(n);-1!==a&&this.contactSearchModal.filter.splice(a,1),this.contactSearchModal.filter.push(t),this.contactSearchModal.page=1,this.getContactList()}pushFilterCard(t){this.contactSearchModal.filter=t,this.contactSearchModal.page=1,this.contactSearchModal.listId=0,this.getContactList()}pushFilter(t){this.contactSearchModal.filter=[t],this.contactSearchModal.page=1,this.getContactList()}prepareRemoveList(t){if(this.removedContactList.includes(t)){const n=this.removedContactList.indexOf(t);-1!==n&&this.removedContactList.splice(n,1)}else this.removedContactList.push(t)}removeFromCampign(){"RUNNING"!==this.campaigns.campaignStatus?M().fire({html:'Do you want to remove a contact from the campaign ? <div class="text-danger"><small>Remove only the connection that is in the queue</small></div>',confirmButtonText:"Yes",cancelButtonText:"No",showCancelButton:!0,customClass:{confirmButton:"btn btn-primary btn-sm",cancelButton:"btn btn-secondary btn-sm",popup:"custom-popup-class"}}).then(t=>{t.isConfirmed&&("ARCHIVED"===this.campaigns.campaignStatus||"COMPLETED"===this.campaigns.campaignStatus?this.toastrService.showError(g.X3.CAMPAIGNS_CONTACT_NOT_REMOVE):"RUNNING"!==this.campaigns.campaignStatus?this.setRemoveFromCampign():this.toastrService.showError(g.X3.CAMPAIGNS_CONTACT_RUNNING_NOT_REMOVE))}):this.toastrService.showWarning("This campaign is currently running, so you cannot remove contacts. To remove them, please pause the campaign first")}setRemoveFromCampign(){this.removedContactList.length>0&&this.apiRepository.setRemoveFromCampign(this.removedContactList,this.id).subscribe(t=>{this.contactList.content=this.contactList.content.filter(n=>!this.removedContactList.includes(n.linkedinProfileUrlWithName)),this.removedContactList=[],0==this.contactList.content.length&&this.contactSearchModal.page>1&&(this.contactSearchModal.page=this.contactSearchModal.page-1),this.getContactList(
1),this.getDetails()},t=>{this.toastrService.showError(t.error.message)})}updateContactValue(t){this.contactList.content.filter(n=>n.profileUrlWithName===t.linkedinProfileUrlWithName).forEach(n=>{n.fullProfile=t.isFullProfile,n.groupId=t.groupId,n.saved=!0})}getContactListAll(){if("RUNNING"!==this.campaigns.campaignStatus)if(this.removedContactList.length>0)this.removedContactList=[];else{let t=Object.assign({},this.contactSearchModal);this.apiRepository.getCampaignsContactAll(t,this.id).subscribe(n=>{this.removedContactList=n},n=>{this.error=!0,this.contactList=void 0,this.toastrService.showError(n.error.message)})}else this.toastrService.showWarning("This campaign is currently running, so you cannot remove contacts. To remove them, please pause the campaign first")}moveConnection(t){this.apiRepository.moveConnection(t.id,this.removedContactList,"profileUrl").subscribe(n=>{this.getConnectionGroups(),this.removedContactList=[],this.toastrService.showSuccess(n.message)},n=>{this.toastrService.showError(n.error.message)})}getAddCampaign(){this.apiRepository.getUrlFromConnection(this.removedContactList,"profileUrl","_id").subscribe(t=>{console.log(t),this.popupService.openAddToCampaignModal("CONNECTION",t)},t=>{this.toastrService.showError(t.error.message)})}uncheck(t){this.removedContactList=[],this.popupService.closeAddToCampaignModal()}copyText(t,n){t.length>0&&(this.clipboardService.copyFromContent(t),this.toastrService.showSuccess(n))}generateListTooltip(t){return t&&t.length>0?`<div><div class="mb-1"><u>Click to copy</u></div>${t.map(a=>`<div class="name-ellipsis text-left"><sub><i  class="me-1 bx bx-envelope"></i>${a}</sub></div>`).join("")}</div>`:"<sub>Email is not available</sub>"}getTooltipContent(t){let n=this.sharedService.convertServerTimeToLocal(t);return`<sub> Connected at: ${this.datePipe.transform(n,"dd-MMM-yyyy")}</sub>`}generateTooltip(t){return null!=t&&""!=t&&null!=t?`<div><div class="mb-1"><u>Click to copy</u></div><sub>${t}</sub></div>`:"<sub>Website not available</sub>"}getSavedGroup(t,n){let a=t.filter(s=>s.id==n);return 0==a.length?"<sub>Connection is not saved<sub>":`<sub>Saved in contact group ${a[0].name}<sub>`}clearSearchInput(){this.contactSearchModal.search="",this.contactSearchModal.page=1,this.getContactList()}toggleFilters(){this.isFiltersOpen=!this.isFiltersOpen}refreshFilterView(){var t;const n={},a={},s={};n.CurrentStep=this.isFilterActive("CurrentStep"),a.CurrentStep=this.getSelectedValues("CurrentStep"),s.CurrentStep=this.getFilterNameOnly("CurrentStep"),n.PreviousCampaign=this.isFilterActive("PreviousCampaign"),a.PreviousCampaign=this.getSelectedValues("PreviousCampaign"),s.PreviousCampaign=this.getFilterNameOnly("PreviousCampaign"),n.Date=""!==this.statisticsStartDate,a.Date=this.dateRangeLabel,s.Date=this.getFilterNameOnly("Date");const r={};for(const c of(null===(t=this.contactSearchModal)||void 0===t?void 0:t.filter)||[])r[c]=!0;this.filterView={active:n,values:a,names:s,selectedKeys:r,any:this.isAnyFilterApplied()}}isFilterActive(t){const n=this.contactSearchModal.filter;return this.filters[t].some(a=>n.includes(a.key))}getFilterLabel(t){const a={PreviousCampaign:"Previous campaign",CurrentStep:"Current step"}[t]||t,s=this.contactSearchModal.filter,r=this.filters[t].filter(c=>s.includes(c.key)).map(c=>c.label);return 0===r.length?a:1===r.length?`${a} | ${r[0]}`:`${a} | ${r[0]} + more`}getSelectedValues(t){const n=this.contactSearchModal.filter,a=this.filters[t].filter(s=>n.includes(s.key)).map(s=>s.label);return 0===a.length?"":1===a.length?a[0]:`${a[0]} + ${a.length-1} more`}getFilterNameOnly(t){return{PreviousCampaign:"Previous campaign",CurrentStep:"Current step",Date:"Action date"}[t]||t}clearFilters(t){if("Date"===t)return this.statisticsStartDate="",this.statisticsEndDate="",this.dateRangeLabel="",this.datePickerVisible=!1,this.contactSearchModal.page=1,void this.getContactList();const n=this.filters[t].map(a=>a.key);this.contactSearchModal.filter=this.contactSearchModal.filter.filter(a=>!n.includes(a)),this.contactSearchModal.page=1,this.getContactList()}toggleFilter(t,n){var a;const s=this.contactSearchModal.filter,r=this.filters[t],c=s.indexOf(n);c>-1?s.splice(c,1):(null===(a=r.find(d=>d.key===n)?.exclusiveWith)||void 0===a||a.forEach(d=>{const _=s.indexOf(d);_>-1&&s.splice(_,1)}),s.push(n)),this.contactSearchModal.page=1,this.getContactList(
1)}isSelected(t){return this.contactSearchModal.filter.includes(t)}isAnyFilterApplied(){return this.contactSearchModal.filter&&this.contactSearchModal.filter.length>0||this.contactSearchModal.filterTag&&this.contactSearchModal.filterTag.length>0||""!==this.statisticsStartDate}onDatePickerOpen(){this.datePickerVisible=!0}onDateRangeApply(t){this.rangeStartDate=new Date(t.start),this.rangeEndDate=new Date(t.end),this.rangeStartDate.setHours(0,0,0,0),this.rangeEndDate.setHours(0,0,0,0),this.statisticsStartDate=this.formatDay(this.rangeStartDate),this.statisticsEndDate=this.formatDay(this.rangeEndDate),this.dateRangeLabel=this.shortDay(this.rangeStartDate)+" - "+this.shortDay(this.rangeEndDate),this.datePickerVisible=!1,this.contactSearchModal.page=1,this.getContactList()}onDateRangeCancel(){this.datePickerVisible=!1}formatDay(t){const n=a=>String(a).padStart(2,"0");return n(t.getDate())+"-"+n(t.getMonth()+1)+"-"+t.getFullYear()}shortDay(t){return t.toLocaleDateString("en-GB",{day:"numeric",month:"short"})}resetAllFilters(){this.contactSearchModal.filter=[],this.contactSearchModal.filterTag=[],this.statisticsStartDate="",this.statisticsEndDate="",this.dateRangeLabel="",this.datePickerVisible=!1,this.isDropdownOpen&&Object.keys(this.isDropdownOpen).forEach(t=>this.isDropdownOpen[t]=!1),this.getContactList()}}return i.\u0275fac=function(t){return new(t||i)(e.Y36(u.gz),e.Y36(T.v),e.Y36(P._),e.Y36(J.q),e.Y36(m.uU),e.Y36(F.Yv),e.Y36(w.v),e.Y36(u.F0),e.Y36(q.F),e.Y36(A.V))},i.\u0275cmp=e.Xpm({type:i,selectors:[["app-campaigns-details-personalized-send-message"]],decls:42,vars:25,consts:[["id","campaignsDetails"],[4,"ngIf","ngIfElse"],["requested",""],[1,"mt-3"],[1,"card"],[1,"card-body"],[1,"leads-toolbar","mb-3"],[1,"leads-toolbar-row"],[1,"leads-search-wrap","leads-search-wrap--inline"],[1,"bx","bx-search","leads-search-icon"],["type","text","placeholder","Search by name or headline...",1,"leads-search-input",3,"ngModel","ngModelChange","keyup.enter"],["searchInputContact",""],["class","help-dot",3,"appTooltip",4,"ngIf"],["class","bx bx-x cursor-pointer",3,"click",4,"ngIf"],[1,"leads-pill","leads-pill--filters",3,"click"],[1,"bx","bx-filter-alt","me-1"],["class","leads-filter-dot",4,"ngIf"],[1,"bx","ms-1",3,"ngClass"],["src","../../../../../assets/images/sppiner.svg","width","30px",4,"ngIf"],["class","lb-btn",3,"appTooltip","click",4,"ngIf"],["class","leads-filter-panel",4,"ngIf"],["class","leads-selection-bar leads-selection-bar--pinned",4,"ngIf"],[1,"w-100","table-responsive"],["class","datatables-users table border-top dataTable no-footer dtr-column",4,"ngIf"],["class","leads-pagination",4,"ngIf"],[3,"editorHost","headerSaved"],["campaignHeaderTimezoneEditor",""],[3,"showClose","onClose","updateContactValue"],["contactDetails",""],[3,"showClose","onClose"],["viewPersonalizedMessageModal",""],[3,"showClose","onClose","selectedGroup"],["selectConnectionModal",""],[3,"showClose","onClose","uncheck"],["addToCampaignModal",""],["pageName","campaignDetails",4,"ngIf"],["title","Could not load this campaign","message","Refresh the page to try again.","tone","warning",4,"ngIf"],["pageName","campaignDetails"],["title","Could not load this campaign","message","Refresh the page to try again.","tone","warning"],["class","cd-head",4,"ngIf"],[3,"campaignId","refresh","campaignStatus","leadingCards","metricFilters","metricKeys","limitTypes","failedFilter","queuedCount","queuedFilter","totalContacts","sentContacts","openInbox","openCredits","filterSelect"],[1,"cd-head"],[1,"cd-head__icon"],[1,"bx","bx-message-rounded-dots"],[1,"cd-head__text"],[1,"cd-head__title"],[1,"cd-chips"],[1,"cd-chip","cd-chip--type"],[1,"bx","bx-message-rounded"],["class","cd-chip",3,"appTooltip",4,"ngIf"],[1,"cd-chip","cd-chip--status",3,"ngClass"],[1,"cd-chip__dot"],[1,"cd-chip"],[1,"bx","bx-globe"],[1,"bx","bx-calendar-alt"],[1,"cd-head__actions"],[1,"btn","btn-outline-primary","btn-sm",3,"routerLink"],[1,"bx","bx-message-square-dots","me-1"],["type","button","class","btn btn-outline-primary btn-sm",3,"click",4,"ngIf"],["type","button",1,"btn","btn-primary","btn-sm",3,"click"],[1,"bx","bx-revision","me-1"],[1,"cd-chip",3,"appTooltip"],[1,"bx","bx-sync"],["type","button",1,"btn","btn-outline-primary","btn-sm",3,"click"],[1,"bx","bx-pencil","me-1"],[1,"help-dot",3,"appTooltip"],[1,"bx","bx-x","cursor-pointer",3,"click"],[1,"leads-filter-dot"],["src","../../../../../assets/images/sppiner.svg","width","30px"],[1,"lb-btn",3,"appTooltip","click"],[1,"bx","bx-download"],[4,"ngIf"],[1,"leads-filter-panel"],[1,"leads-filter-panel-head"],[1,"leads-filter-panel-title"],[1,"bx","bx-filter-alt"],["class","leads-filter-panel-clear",3,"click",4,"ngIf"],[1,"bx","bx-x","leads-filter-panel-close",3,"appTooltip","click"],[1,"leads-filter-panel-body"],["id","timelineWapper","data-bs-toggle","dropdown","aria-haspopup","true","aria-expanded","fal
1se",1,"leads-pill",3,"ngClass","shown.bs.dropdown","hidden.bs.dropdown"],[2,"margin-right","6px",3,"click"],[1,"fa",3,"ngClass"],["aria-labelledby","timelineWapper",1,"dropdown-menu","dropdown-menu-top"],[4,"ngFor","ngForOf"],["id","campaignFilter","data-bs-toggle","dropdown","aria-haspopup","true","aria-expanded","false",1,"leads-pill",3,"ngClass","shown.bs.dropdown","hidden.bs.dropdown"],[1,"bx","bx-chevron-down","ms-1"],["class","bx bx-x ms-1",3,"click",4,"ngIf"],["aria-labelledby","campaignFilter","appStopClickPropagation","",1,"dropdown-menu","dropdown-menu-top"],[1,"dropdown-item","small"],[1,"mb-0"],["id","dateFilter","data-bs-toggle","dropdown","aria-haspopup","true","aria-expanded","false",1,"leads-pill",3,"ngClass","shown.bs.dropdown","hidden.bs.dropdown","click"],[1,"bx","bx-calendar-alt","me-1"],["aria-labelledby","dateFilter","appStopClickPropagation","",1,"dropdown-menu","dropdown-menu-top","leads-date-picker-menu"],[1,"list-unstyled"],[3,"startDate","endDate","maxDate","apply","cancel",4,"ngIf"],["class","leads-pill leads-pill--reset",3,"click",4,"ngIf"],[1,"leads-filter-panel-clear",3,"click"],[1,"dropdown-item","small","cursor-pointer",3,"click"],[1,"form-check-input",3,"ngClass"],[1,"bx","bx-x","ms-1",3,"click"],[3,"startDate","endDate","maxDate","apply","cancel"],[1,"leads-pill","leads-pill--reset",3,"click"],[1,"leads-selection-bar","leads-selection-bar--pinned"],[1,"leads-selection-count"],[1,"bx","bx-check-square"],[1,"lb-btn",3,"disabled","click"],[1,"fa","fa-plus","me-1"],[1,"lb-btn",3,"disabled","appTooltip","click"],[1,"bx","bx-move","me-1"],["class","lb-btn lb-btn--danger",3,"disabled","appTooltip","click",4,"ngIf"],[1,"leads-selection-clear",3,"click"],[1,"lb-btn","lb-btn--danger",3,"disabled","appTooltip","click"],[1,"fa","fa-trash","me-1"],[1,"datatables-users","table","border-top","dataTable","no-footer","dtr-column"],[1,"view-tr-stiky"],["class","form-check-input cursor-pointer",3,"ngClass","click",4,"ngIf"],["class","text-nowrap leads-th",3,"appColumnResize","width","min-width",4,"ngFor","ngForOf"],["id","getContactList",1,"position-relative"],[1,"form-check-input","cursor-pointer",3,"ngClass","click"],[1,"text-nowrap","leads-th",3,"appColumnResize"],[1,"leads-th-inner"],["aria-hidden","true",1,"bx","bx-grid-vertical","leads-th-grip"],[1,"leads-th-label"],[3,"ngClass",4,"ngFor","ngForOf"],[3,"ngClass"],[1,"ql-skel-cell"],[1,"ql-skel",2,"width","1rem","height","1rem","border-radius","4px","flex","none"],[1,"ql-skel","ql-skel--circle",2,"width","2rem","height","2rem","flex","none"],[1,"ql-skel-stack",2,"max-width","220px"],[1,"ql-skel",2,"height","0.625rem","width","70%"],[1,"ql-skel",2,"height","0.5rem","
1width","45%"],[1,"ql-skel",2,"height","0.625rem","flex","1 1 auto"],[1,"ql-skel",2,"height","0.625rem","width","110px","flex","none"],[1,"ql-skel",2,"height","0.625rem","width","70px","flex","none"],[1,"text-center"],[1,"w-100","text-center","mt-2",2,"height","100px"],["title","Something went wrong","message","Sometimes, a simple page refresh can resolve the issue","tone","warning"],["title","No record found","message","Try adjusting or clearing the keywords to display better results."],["class","odd",4,"ngFor","ngForOf"],[1,"odd"],[1,"padding-lr-0","check-box-td"],[3,"ngSwitch",4,"ngFor","ngForOf"],[3,"ngSwitch"],["class","",4,"ngSwitchCase"],[4,"ngSwitchCase"],["class","text-center",4,"ngSwitchCase"],[1,""],[1,"d-flex","justify-content-left","align-items-center"],[1,"avatar-wrapper"],[1,"avatar","avatar-sm","me-3"],["alt","Avatar",1,"rounded-circle",3,"src","error"],[1,"d-flex","flex-column","leads-table-name-stack"],["href","javascript:void(0);","href","javascript:void(0);",1,"name-ellipsis","text-body","text-truncate",3,"click"],[1,"fw-medium"],["class","text-muted name-ellipsis",4,"ngIf"],[1,"text-muted","name-ellipsis"],["class","mb-2",4,"ngFor","ngForOf"],[1,"mb-2"],[1,"mb-0","line-height-16","name-ellipsis"],[1,"mb-0","text-muted","line-height-14","name-ellipsis"],["class","width-120 text-center",4,"ngIf"],["class","mb-0 line-height-16 line-3 w-100",4,"ngIf"],[1,"width-120","text-center"],[1,"bx","bx-minus"],[1,"mb-0","line-height-16","line-3","w-100"],["class","lb-btn",3,"click",4,"ngIf"],["class","text-muted",4,"ngIf"],[1,"lb-btn",3,"click"],[1,"bx","bx-history"],[1,"text-muted"],["class","mb-0",4,"ngIf"],[1,"badge","bg-label-primary","p-1","rounded"],[1,"badge","bg-label-success","p-1","rounded"],[1,"badge","bg-label-dark","p-1","rounded"],[1,"badge","bg-label-secondary","p-1","rounded"],["appTooltipCustomClass","ql-failed-tip","appTooltipPlacement","bottom",1,"badge","bg-label-danger","p-1","rounded",3,"appTooltip"],[1,"leads-pagination"],[1,"lb-bar-right"],[1,"lb-showing"],[1,"lb-rows-label"],["id","limit","data-bs-toggle","dropdown","aria-haspopup","true","aria-expanded","false",1,"lb-rows-select"],[1,"bx","bx-chevron-down"],["aria-labelledby","limit",1,"dropdown-menu","dropdown-menu-top",2,"max-width","max-content"],[3,"pageChange"],["p","paginationApi"],[1,"lb-pager","lb-pager--sm"],[1,"lb-page-of"],["type","button",1,"lb-page-btn",3,"disabled","click"],[1,"bx","bx-chevrons-left"],[1,"bx","bx-chevron-left"],["type","button","class","lb-page-btn lb-page-num",3,"lb-page-num--active","click",4,"ngFor","ngForOf"],[1,"bx","bx-chevron-right"],[1,"bx","bx-chevrons-right"],["type","button",1,"lb-page-btn","lb-page-num",3,"click"]],template:function(t,n){if(1&t&&(e.TgZ(0,"div",0),e.YNc(1,re,3,2,"ng-container",1),e.YNc(2,he,2,17,"ng-template",null,2,e.W1O),e.qZA(),e.TgZ(4,"div",3)(5,"div",4)(6,"div",5)(7,"div",6)(8,"div",7)(9,"div",8),e._UZ(10,"i",9),e.TgZ(11,"input",10,11),e.NdJ("ngModelChange",function(s){return n.contactSearchModal.search=s})("keyup.enter",function(s){return n.searchByName(s)}),e.qZA(),e.YNc(13,fe,2,1,"span",12),e.YNc(14,Ce,1,0,"i",13),e.qZA(),e.TgZ(15,"span",14),e.NdJ("click",function(){return n.toggleFiltersPanel()}),e._UZ(16,"i",15),e._uU(17,"Filters "),e.YNc(18,ve,1,0,"span",16),e._UZ(19,"i",17),e.qZA(),e.YNc(20,xe,1,0,"img",18),e.YNc(21,be,4,2,"button",19),e.qZA(),e.YNc(22,ze,37,24,"div",20),e.YNc(23,Ue,13,5,"div",21),e.qZA(),e.TgZ(24,"div",22),e.YNc(25,ut,11,6,"table",23),e.YNc(26,ft,44,11,"div",24),e.qZA()()()(),e.TgZ(27,"app-campaign-timezone-field",25,26),e.NdJ("headerSaved",function(s){return n.onCampaignHeaderSaved(s)}),e._uU(29),e.qZA(),e.TgZ(30,"app-contact-details",27,28),e.NdJ("onClose",function(){return n.popupService.closeContactDetails()})("updateContactValue",function(s){return n.updateContactValue(s)}),e._uU(32),e.qZA(),e.TgZ(33,"app-view-personalized-message",29,30),e.NdJ("onClose",function(){return n.popupService.closeViewPersonalizedMessageModal()}),e._uU(35),e.qZA(),e.TgZ(36,"app-select-connection-group",31,32),e.NdJ("onClose",function(){return n.popupService.closeSelectConnectionModal()}
1)("selectedGroup",function(s){return n.moveConnection(s)}),e._uU(38),e.qZA(),e.TgZ(39,"app-add-to-campaign",33,34),e.NdJ("onClose",function(){return n.popupService.closeAddToCampaignModal()})("uncheck",function(s){return n.uncheck(s)}),e._uU(41),e.qZA()),2&t){const a=e.MAs(3),s=e.MAs(12),r=e.MAs(28),c=e.MAs(31),p=e.MAs(34),d=e.MAs(37),_=e.MAs(40);e.xp6(1),e.Q6J("ngIf",!n.campaigns)("ngIfElse",a),e.xp6(10),e.Q6J("ngModel",n.contactSearchModal.search),e.xp6(2),e.Q6J("ngIf",""==s.value),e.xp6(1),e.Q6J("ngIf",""!==s.value),e.xp6(1),e.ekj("leads-pill--active",n.filterView.any),e.xp6(3),e.Q6J("ngIf",n.filterView.any),e.xp6(1),e.Q6J("ngClass",n.filtersPanelOpen?"bx-chevron-up":"bx-chevron-down"),e.xp6(1),e.Q6J("ngIf",n.downloadFile),e.xp6(1),e.Q6J("ngIf",!n.downloadFile),e.xp6(1),e.Q6J("ngIf",n.filtersPanelOpen),e.xp6(1),e.Q6J("ngIf",n.removedContactList.length>0),e.xp6(2),e.Q6J("ngIf",n.campaigns||n.tableLoading),e.xp6(1),e.Q6J("ngIf",n.contactList),e.xp6(1),e.Q6J("editorHost",!0),e.xp6(2),e.hij(" ",n.popupService.bindCampaignTimezoneHeaderEditor(r),"\n"),e.xp6(1),e.Q6J("showClose",!0),e.xp6(2),e.hij(" ",n.popupService.bindContactDetails(c)," "),e.xp6(1),e.Q6J("showClose",!0),e.xp6(2),e.hij(" ",n.popupService.bindViewPersonalizedMessageModal(p)," "),e.xp6(1),e.Q6J("showClose",!0),e.xp6(2),e.hij(" ",n.popupService.bindSelectConnectionModal(d)," "),e.xp6(1),e.Q6J("showClose",!0),e.xp6(2),e.hij(" ",n.popupService.bindAddToCampaignModal(_)," ")}},dependencies:[m.mk,m.sg,m.O5,m.RF,m.n9,u.rH,h.Fj,h.JJ,h.On,G.F,R.a,Q.E,Y,B._,D.tk,j.M,W.i,X.s,ee.C,te._,ne.M,ie.w,m.i8,m.rS,D._s,ae.F],styles:["[_nghost-%COMP%]{display:block;width:100%}.back[_ngcontent-%COMP%]{line-height:26px!important;font-size:24px!important;margin-right:15px}.input-group.edit-ready[_ngcontent-%COMP%]   .set-btn[_ngcontent-%COMP%]{background:#f1f0fb;color:#7163fc}.input-group[_ngcontent-%COMP%]   .set-btn[_ngcontent-%COMP%]{padding:5px 9px;background:#ffffff;outline:3px solid #ffffff;outline-offset:-4px;color:#fff}.input-group[_ngcontent-%COMP%]   .set-btn[_ngcontent-%COMP%]   .bx[_ngcontent-%COMP%]{font-size:22px!important}.title-card[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{display:inline-block!important}.title-card[_ngcontent-%COMP%]   .input-group[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{padding:.1rem .875rem;font-size:24px;font-weight:600;line-height:27px}.total-tag[_ngcontent-%COMP%]{color:#7163fc;background:rgb(113 99 252 / 18%);border-radius:18px;padding:2px 12px}.total-tag-2[_ngcontent-%COMP%]{color:#7163fc;background:rgb(113 99 252 / 18%);border-radius:18px;padding:5px 15px}.color-change[_ngcontent-%COMP%]{color:#6a798d!important;margin-top:15px!important}.title-card[_ngcontent-%COMP%]   .input-group[_ngcontent-%COMP%]:not(.edit-ready)   .form-control[_ngcontent-%COMP%], .title-card[_ngcontent-%COMP%]   .input-group[_ngcontent-%COMP%]:not(.edit-ready)   .input-group-text.set-btn[_ngcontent-%COMP%]{border-color:#fff!important}.title-card[_ngcontent-%COMP%]   .form-control[_ngcontent-%COMP%]:hover:not([disabled]):not([focus]), .title-card[_ngcontent-%COMP%]   .form-control[_ngcontent-%COMP%]:hover:not([disabled]):not([focus]) ~ .input-group-text.set-btn[_ngcontent-%COMP%]{border-color:#696cff!important;cursor:text}.title-card[_ngcontent-%COMP%]   .input-group[_ngcontent-%COMP%]:focus-within   .form-control[_ngcontent-%COMP%], .title-card[_ngcontent-%COMP%]   .input-group.edit-ready[_ngcontent-%COMP%]   .form-control[_ngcontent-%COMP%], .title-card[_ngcontent-%COMP%]   .input-group[_ngcontent-%COMP%]:focus-within   .input-group-text.set-btn[_ngcontent-%COMP%]{border-color:#696cff!important}.title-card[_ngcontent-%COMP%]   .input-group.edit-ready[_ngcontent-%COMP%]   .input-group-text.set-btn[_ngcontent-%COMP%]{border:1px solid #696cff}.back-title-card[_ngcontent-%COMP%]{background:#ffffff;border-radius:5px;border:1px solid #696cff}.back-title-card-green[_ngcontent-%COMP%]{background:#ffffff;border-radius:5px;border:1px solid #82e347}.back-title-card-red[_ngcontent-%COMP%]{background:#ffffff;border-radius:5px;border:1px solid #ff3e1d}.filter-tag.filter-active[_ngcontent-%COMP%]{outline:1px rgb(113 99 252) solid;color:#7163fc!important;font-weight:600}.filter-tag[_ngcontent-%COMP%]{padding:5px 12px;border:2px solid #ffffff;background:#f1f0fb;font-size:13px;outline:1px rgb(113 99 252 / 23%) solid;outline-offset:-5px;border-radius:20px;margin-left:5px!important;margin-right:5px!important;cursor:pointer}.filter-tags-container[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center}.one-line[_ngcontent-%COMP%]{word-break:break-word;display:-webkit-box;-webkit-box-orient:vertical;-ms-box-orient:vertical;box-orient:vertical;-webkit-line-clamp:1;-moz-line-clamp:1;-ms-line-clamp:1;line-clamp:1;overflow:hidden}.group-item[_ngcontent-%COMP%]{max-height:229px;overflow-y:auto}.name-ellipsis[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
1max-width:200px}.check-box-td[_ngcontent-%COMP%]{width:30px!important}@media screen and (max-width: 576px){.filter-tag[_ngcontent-%COMP%]{display:inline-block;width:100%;margin-bottom:5px}table[_ngcontent-%COMP%]{white-space:nowrap}}@media screen and (max-width: 992px){.filter-row[_ngcontent-%COMP%]{width:100%}.small-input[_ngcontent-%COMP%]{width:100%!important;flex:1 1 100%;margin-bottom:5px;order:1}.export-search-row[_ngcontent-%COMP%]{width:100%;justify-content:flex-start!important}.export-search-row[_ngcontent-%COMP%] > .text-center[_ngcontent-%COMP%]{order:2;width:100%}.export-search-row[_ngcontent-%COMP%] > .text-center[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{width:100%}}.help-dot[_ngcontent-%COMP%]{width:16px;height:16px;border-radius:50%;border:1px solid #888;color:#555;display:flex;align-items:center;justify-content:center;font-size:11px;cursor:pointer;background:white;margin-left:4px}.filter-header[_ngcontent-%COMP%]{cursor:pointer;font-weight:600;font-size:14px;display:flex;align-items:center;gap:8px;-webkit-user-select:none;user-select:none;padding:6px 0}.filters-container[_ngcontent-%COMP%]{margin-top:10px}.filter-reset[_ngcontent-%COMP%]{color:#696cff;font-weight:700}.circle-icon[_ngcontent-%COMP%]{display:inline-flex;justify-content:center;align-items:center;width:14px;height:14px;border:2px solid #666;border-radius:50%;font-size:14px;line-height:0;margin-left:6px;cursor:pointer;color:#666;font-weight:700}.circle-icon[_ngcontent-%COMP%]:hover{border-color:#000;color:#000}[_nghost-%COMP%]   table.datatables-users[_ngcontent-%COMP%]{table-layout:fixed;width:100%;min-width:1180px}[_nghost-%COMP%]   table.datatables-users[_ngcontent-%COMP%] > thead[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%] > th[_ngcontent-%COMP%], [_nghost-%COMP%]   table.datatables-users[_ngcontent-%COMP%] > tbody[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%] > td[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}.leads-date-picker-menu[_ngcontent-%COMP%]{min-width:580px;padding:0;border-radius:12px;overflow:hidden}.leads-date-picker-menu[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]{list-style:none}@media (max-width: 640px){.leads-date-picker-menu[_ngcontent-%COMP%]{min-width:min(580px,calc(100vw - 32px));max-width:calc(100vw - 32px)}}"]}),i})()}];let vt=(()=>{class i{}return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=e.oAB({type:i}),i.\u0275inj=e.cJS({imports:[u.Bz.forChild(Ct),u.Bz]}),i})();var xt=l(3303);let St=(()=>{class i{}return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=e.oAB({type:i}),i.\u0275inj=e.cJS({imports:[m.ez,vt,h.UX,h.u5,xt.m]}),i})()}}]);

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.