PageSourceSearch

https://www.weighbook.com/5508.7eda1603b3728bd3.js

js weighbook.com collected 2026-10-01 15:50:07 UTC 318,989 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkbass_kingdom=self.webpackChunkbass_kingdom||[]).push([[5508],{49169:(Y,y,g)=>{g.d(y,{V:()=>A});var _=g(65879),c=g(96814),L=g(55546);let A=(()=>{class m{constructor(M,d){this.el=M,this.platformId=d}onClick(M){(0,c.NF)(this.platformId)&&(0,L.k)(this.el.nativeElement.href)&&M.preventDefault()}static{this.\u0275fac=function(d){return new(d||m)(_.Y36(_.SBq),_.Y36(_.Lbi))}}static{this.\u0275dir=_.lG2({type:m,selectors:[["a","appExternalLink",""]],hostBindings:function(d,v){1&d&&_.NdJ("click",function(w){return v.onClick(w)})},standalone:!0})}}return m})()},35508:(Y,y,g)=>{g.r(y),g.d(y,{LeadsModule:()=>fi});var _=g(96814),c=g(56223),L=g(40840),A=g(6176),m=g(35420),f=g(15861),M=g(78645),d=g(10708),v=g(59773),e=g(65879),w=g(19347),O=g(86059),b=g(72901),H=g(55940);function j(i,r){if(1&i){const t=e.EpF();e.TgZ(0,"button",8),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.cancel())}),e.TgZ(1,"span",9),e._uU(2,"close"),e.qZA()()}}function K(i,r){if(1&i&&(e.TgZ(0,"option",25),e._uU(1),e.qZA()),2&i){const t=r.$implicit;e.Q6J("value",t),e.xp6(1),e.Oqu(t)}}function $(i,r){if(1&i){const t=e.EpF();e.TgZ(0,"div",10)(1,"p",11),e._uU(2," Upload a CSV of leads. Common header names are auto-detected (first_name, last_name, organization, email, phone, state, source, etc.). You can also remap them in the next step. "),e.qZA(),e.TgZ(3,"label",12)(4,"input",13),e.NdJ("change",function(o){e.CHM(t);const a=e.oxw();return e.KtG(a.onFileSelected(o))}),e.qZA(),e.TgZ(5,"span",14),e._uU(6,"file_upload"),e.qZA(),e.TgZ(7,"span",15),e._uU(8,"Click to choose a CSV file"),e.qZA(),e.TgZ(9,"span",16),e._uU(10,'Headers like "first_name", "Email", "Organization" are mapped automatically'),e.qZA()(),e.TgZ(11,"div",17)(12,"label",18)(13,"span",19),e._uU(14,"Default status (for blank rows)"),e.qZA(),e.TgZ(15,"select",20),e.NdJ("ngModelChange",function(o){e.CHM(t);const a=e.oxw();return e.KtG(a.defaultStatus=o)}),e.YNc(16,K,2,2,"option",21),e.qZA()(),e.TgZ(17,"label",18)(18,"span",19),e._uU(19,"Default source (optional)"),e.qZA(),e.TgZ(20,"input",22),e.NdJ("ngModelChange",function(o){e.CHM(t);const a=e.oxw();return e.KtG(a.defaultSource=o)}),e.qZA()()(),e.TgZ(21,"div",23)(22,"button",24),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.downloadSampleCsv())}),e.TgZ(23,"span",9),e._uU(24,"download"),e.qZA(),e._uU(25," Download sample CSV "),e.qZA(),e.TgZ(26,"button",24),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.cancel())}),e._uU(27,"Cancel"),e.qZA()()()}if(2&i){const t=e.oxw();e.xp6(15),e.Q6J("ngModel",t.defaultStatus),e.xp6(1),e.Q6J("ngForOf",t.statusOptions),e.xp6(4),e.Q6J("ngModel",t.defaultSource)}}function B(i,r){if(1&i&&(e.TgZ(0,"div",39)(1,"strong"),e._uU(2),e.qZA(),e._uU(3," invalid"),e.qZA()),2&i){const t=e.oxw(2);e.xp6(2),e.Oqu(t.totalInvalid)}}function R(i,r){if(1&i&&(e.TgZ(0,"option",25),e._uU(1),e.qZA()),2&i){const t=r.$implicit;e.Q6J("value",t.key),e.xp6(1),e.Oqu(t.label)}}function V(i,r){if(1&i){const t=e.EpF();e.TgZ(0,"div",40)(1,"span",41),e._uU(2),e.qZA(),e.TgZ(3,"span",42),e._uU(4,"arrow_forward"),e.qZA(),e.TgZ(5,"select",43),e.NdJ("ngModelChange",function(o){const s=e.CHM(t).$implicit,l=e.oxw(2);return e.KtG(l.headerMap[s]=o)})("change",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.onHeaderMapChange())}),e.TgZ(6,"option",44),e._uU(7,"- Skip -"),e.qZA(),e.YNc(8,R,2,2,"option",21),e.qZA()()}if(2&i){const t=r.$implicit,n=e.oxw(2);e.xp6(2),e.Oqu(t),e.xp6(3),e.Q6J("ngModel",n.headerMap[t]),e.xp6(3),e.Q6J("ngForOf",n.leadFields)}}function W(i,r){if(1&i&&(e.TgZ(0,"span",35),e._uU(1),e.qZA()),2&i){const t=e.oxw().$implicit;e.xp6(1),e.hij("\xb7 ",t.lead.email,"")}}function X(i,r){if(1&i&&(e.TgZ(0,"span",35),e._uU(1),e.qZA()),2&i){const t=e.oxw().$implicit;e.xp6(1),e.hij("\xb7 ",t.lead.state,"")}}function ee(i,r){if(1&i&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&i){const t=r.$implicit,n=r.last;e.xp6(1),e.AsE("",t,"",n?"":"; ","")}}function te(i,r){if(1&i&&(e.TgZ(0,"div",49)(1,"span",9),e._uU(2,"warning"),e.qZA(),e.YNc(3,ee,2,2,"span",50),e.qZA()),2&i){const t=e.oxw().$implicit;e.xp6(3),e.Q6J("ngForOf",t.errors)}}function ne(i,r){if(1&i&&(e.TgZ(0,"div",45)(1,"div",46)(2,"strong"),e._uU(3),e.qZA(),e.TgZ(4,"span",35),e._uU(5),e.qZA(),e.YNc(6,W,2,1,"span",47),e.YNc(7,X,2,1,"span",47),e.qZA(),e.YNc(8,te,4,1,"div",48),e.qZA()),2&i){const t=r.$implicit;e.ekj("has-errors",t.errors.length),e.xp6(3),e.AsE("",t.lead.first_name||"?"," ",t.lead.last_name||"",""),e.xp6(2),e.Oqu(t.lead.organization||""),e.xp6(1),e.Q6J("ngIf",t.lead.email),e.xp6(1),e.Q6J("ngIf",t.lead.state),e.xp6(1),e.Q6J("ngIf",t.errors.length)}}function oe(i,r){if(1&i){const t=e.EpF();e.TgZ(0,"div",26)(1,"div",27)(2,"div",28)(3,"strong"),e._uU(4),e.qZA(),e._uU(5," ready"),e.qZA(),e.YNc(6,B,4,1,"div",29),e.TgZ(7,"div",30),e._uU(8),e.qZA()(),e.TgZ(9,"div",31)(10,"h3"),e._uU(11,"Column Mapping"),e.qZA(),e.TgZ(12,"div",32),e.YNc(13,V,9,3,"div",33),e.qZA()(),e.TgZ(14,"div",34)(15,"h3"),e._uU(16,"Preview "),e.TgZ(17,"span",35),e._uU(18,"(first 5 rows)"),e.qZA()(),e.TgZ(19,"div",36),e.YNc(20,ne,9,8,"div",37),e.qZA()(),e.TgZ(21,"div",23)(22,"button",24),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.step="upload")}),e._uU(23,"Back"),e.qZA(),e.TgZ(24,"button",38),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.runImport())}),e.TgZ(25,"span",9),e._uU(26,"cloud_upload"),e.qZA(),e._uU(27),e.qZA()()()}if(2&i){const t=e.oxw();e.xp6(4),e.Oqu(t.totalValid),e.xp6(2),e.Q6J("ngIf",t.totalInvalid>0),e.xp6(2),e.Oqu(t.fileName),e.xp6(5),e.Q6J("ngForOf",t.rawHeaders),e.xp6(7),e.Q6J("ngForOf",t.rows.slice(0,5))("ngForTrackBy",t.trackByRow),e.xp6(4),e.Q6J("disabled",0===t.totalValid),e.xp6(3),e.AsE(" Import ",t.totalValid," ",1===t.totalValid?"lead":"leads"," ")}}function ie(i,r){if(1&i&&(e.TgZ(0,"div",51),e._UZ(1,"mat-spinner",52),e.TgZ(2,"p"),e._uU(3),e.qZA()()),2&i){const t=e.oxw();e.xp6(3),e.AsE("Importing ",t.importedCount," of ",t.totalValid,"...")}}function ae(i,r){if(1&i&&(e.TgZ(0,"li"),e._uU(1),e.qZA()),2&i){const t=r.$implicit;e.xp6(1),e.Oqu(t)}}function re(i,r){if(1&i&&(e.TgZ(0,"div",58)(1,"h4"),e._uU(2),e.qZA(),e.TgZ(3,"ul"),e.YNc(4,ae,2,1,"li",50),e.qZA()()),2&i){const t=e.oxw(2);e.xp6(2),e.AsE("",t.importErrors.length," ",1===t.importErrors.length?"row":"rows"," failed:"),e.xp6(2),e.Q6J("ngForOf",t.importErrors)}}function se(i,r){if(1&i){const t=e.EpF();e.TgZ(0,"div",53)(1,"div",54)(2,"span",9),e._uU(3,"check_circle"),e.qZA()(),e.TgZ(4,"h3"),e._uU(5,"Import complete"),e.qZA(),e.TgZ(6,"p",55)(7,"strong"),e._uU(8),e.qZA(),e._uU(9),e.qZA(),e.YNc(10,re,5,3,"div",56),e.TgZ(11,"div",23)(12,"button",57),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.close())}),e._uU(13,"Done"),e.qZA()()()}if(2&i){const t=e.oxw();e.xp6(8),e.Oqu(t.importedCount),e.xp6(1),e.hij(" ",1===t.importedCount?"lead":"leads"," imported. "),e.xp6(1),e.Q6J("ngIf",t.importErrors.length)}}const le={first_name:["first_name","firstname","first name","fname","given name"],last_name:["last_name","lastname","last name","lname","surname","family name"],organization:["organization","org","company","club","tour"],email:["email","email address","e-mail"],phone:["phone","phone number","mobile","cell"],street:["street","address","address 1","street address"],city:["city"],state:["state","regi
1on","province"],zip:["zip","postal","postal code","zip code"],country:["country"],status:["status","lead status"],source:["source","lead source"],website:["website","url","web"],notes:["notes","comments","note"]},S=["Future Opp","Contacted","Replied","Interested","Demo Scheduled","Demo Completed","Converted","Not Interested","DNC"];let ce=(()=>{class i{constructor(t,n,o){this.dialogRef=t,this.leadsService=n,this.authService=o,this.step="upload",this.fileName="",this.rawHeaders=[],this.headerMap={},this.rows=[],this.totalValid=0,this.totalInvalid=0,this.importedCount=0,this.importErrors=[],this.defaultStatus="Future Opp",this.defaultSource="",this.leadFields=[{key:"first_name",label:"First Name"},{key:"last_name",label:"Last Name"},{key:"organization",label:"Organization"},{key:"email",label:"Email"},{key:"phone",label:"Phone"},{key:"street",label:"Street"},{key:"city",label:"City"},{key:"state",label:"State"},{key:"zip",label:"Zip"},{key:"country",label:"Country"},{key:"status",label:"Status"},{key:"source",label:"Source"},{key:"website",label:"Website"},{key:"notes",label:"Notes"}],this.statusOptions=S}onFileSelected(t){const o=t.target.files?.[0];if(!o)return;this.fileName=o.name;const a=new FileReader;a.onload=s=>{this.parseCsv(s.target?.result||"")},a.readAsText(o)}parseCsv(t){const n=this.splitCsvLines(t);if(!n.length)return void alert("CSV is empty.");this.rawHeaders=this.parseCsvRow(n[0]).map(a=>a.trim()),this.headerMap={},this.rawHeaders.forEach(a=>{this.headerMap[a]=this.autoMapHeader(a)});const o=n.slice(1).filter(a=>a.trim().length);this.rows=o.map(a=>{const s=this.parseCsvRow(a),l={};return this.rawHeaders.forEach((u,p)=>{l[u]=(s[p]||"").trim()}),this.buildParsedRow(l)}),this.recomputeTotals(),this.step="preview"}splitCsvLines(t){const n=[];let o="",a=!1;for(let s=0;s<t.length;s++){const l=t[s];'"'===l?(a&&'"'===t[s+1]?(o+='""',s++):a=!a,o+=l):"\n"!==l&&"\r"!==l||a?o+=l:("\r"===l&&"\n"===t[s+1]&&s++,n.push(o),o="")}return o.length&&n.push(o),n}parseCsvRow(t){const n=[];let o="",a=!1;for(let s=0;s<t.length;s++){const l=t[s];'"'===l?a&&'"'===t[s+1]?(o+='"',s++):a=!a:","!==l||a?o+=l:(n.push(o),o="")}return n.push(o),n}autoMapHeader(t){const n=t.toLowerCase().trim();for(const[o,a]of Object.entries(le))if(a.some(s=>s===n))return o;return""}onHeaderMapChange(){this.rows=this.rows.map(t=>this.buildParsedRow(t.raw)),this.recomputeTotals()}buildParsedRow(t){const n={},o=[];for(const[a,s]of Object.entries(this.headerMap)){if(!s)continue;const l=t[a];null==l||""===l||(n[s]=l)}return!n.first_name&&!n.last_name&&!n.organization&&!n.email&&o.push("Row must have at least a name, organization, or email"),n.email&&!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(n.email)&&o.push("Invalid email"),n.status&&!S.includes(n.status)&&(o.push(`Status "${n.status}" not recognized - will fall back to default`),n.status=void 0),{raw:t,lead:n,errors:o}}recomputeTotals(){this.totalValid=this.rows.filter(t=>!t.errors.length||t.errors.every(n=>n.includes("fall back"))).length,this.totalInvalid=this.rows.length-this.totalValid}runImport(){var t=this;return(0,f.Z)(function*(){t.step="importing",t.importedCount=0,t.importErrors=[];const o=t.authService.getCurrentlyLoggedInUser()?._id,s=t.rows.filter(l=>!l.errors.some(u=>!u.includes("fall back"))).map(l=>({...l.lead,status:l.lead.status||t.defaultStatus,source:l.lead.source||t.defaultSource||void 0,assignedTo:o}));try{for(let u=0;u<s.length;u+=25){const p=s.slice(u,u+25);yield Promise.all(p.map(function(){var x=(0,f.Z)(function*(h){try{yield(0,d.lastValueFrom)(t.leadsService.create(h)),t.importedCount++}catch(P){t.importErrors.push(`${h.first_name||""} ${h.last_name||""}: ${P?.message||"failed"}`)}});return function(h){return x.apply(this,arguments)}}()))}t.step="done"}catch{t.step="done",t.importErrors.push("Unexpected error during import.")}})()}downloadSampleCsv(){const n=[["first_name","last_name","organization","email","phone","state","source","website","notes"].join(","),"Bobby,Watson,Florida BASS Nation,[email protected],5551234567,FL,LinkedIn,bassnation.com,Switching from Fishing Chaos","Mario,Venti,Bass Rattlers Association,[email protected],,WA,Marketing,bassrattlers.com,"],o=new Blob([n.join("\n")],{type:"text/csv;charset=utf-8;"}),a=URL.createObjectURL(o),s=document.createElement("a");s.href=a,s.download="lead-import-sample.csv",s.click(),URL.revokeObjectURL(a)}close(){this.dialogRef.close({imported:this.importedCount})}cancel(){this.dialogRef.close()}trackByRow(t,n){return t}static{this.\u0275fac=function(n){return new(n||i)(e.Y36(w.so),e.Y36(O.C),e.Y36(b.e8))}}static{this.\u0275cmp=e.Xpm({type:i,selectors:[["lead-import-dialog"]],decls:11,vars:5,consts:[[1,"import-dialog"],[1,"dialog-header"],[1,"material-symbols-outlined","header-icon"],["class","close-btn",3,"click",4,"ngIf"],["class","dialog-body",4,"ngIf"],["class","dialog-body preview-body",4,"ngIf"],["class","dialog-body importing-body",4,"ngIf"],["class","dialog-body done-body",4,"ngIf"],[1,"close-btn",3,"click"],[1,"material-symbols-outlined"],[1,"dialog-body"],[1,"lead-text"],[1,"file-drop"],["type","file","accept",".csv,text/csv","hidden","",3,"change"],[1,"material-symbols-outlined","drop-icon"],[1,"drop-title"],[1,"drop-sub"],[1,"default-options"],[1,"default-field"],[1,"default-label"],[3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["type","text","placeholder","e.g. CSV import - April 2026",3,"ngModel","ngModelChange"],[1,"dialog-footer-actions"],[1,"btn","btn-ghost",3,"click"],[3,"value"],[1,"dialog-body","preview-body"],[1,"preview-summary"],[1,"summary-pill","valid"],["class","summary-pill invalid",4,"ngIf"],[1,"file-name"],[1,"map-section"],[1,"map-grid"],["class","map-row",4,"ngFor","ngForOf"],[1,"preview-section"],[1,"muted"],[1,"preview-rows"],["class","preview-row",3,"has-errors",4,"ngFor","ngForOf","ngForTrackBy"],[1,"btn","btn-primary",3,"disabled","click"],[1,"summary-pill","invali
1d"],[1,"map-row"],[1,"map-source"],[1,"material-symbols-outlined","arrow"],[3,"ngModel","ngModelChange","change"],["value",""],[1,"preview-row"],[1,"preview-row-main"],["class","muted",4,"ngIf"],["class","preview-errors",4,"ngIf"],[1,"preview-errors"],[4,"ngFor","ngForOf"],[1,"dialog-body","importing-body"],["diameter","44"],[1,"dialog-body","done-body"],[1,"done-icon"],[1,"done-message"],["class","error-list",4,"ngIf"],[1,"btn","btn-primary",3,"click"],[1,"error-list"]],template:function(n,o){1&n&&(e.TgZ(0,"div",0)(1,"header",1)(2,"span",2),e._uU(3,"upload_file"),e.qZA(),e.TgZ(4,"h2"),e._uU(5,"Import Leads"),e.qZA(),e.YNc(6,j,3,0,"button",3),e.qZA(),e.YNc(7,$,28,3,"div",4),e.YNc(8,oe,28,9,"div",5),e.YNc(9,ie,4,2,"div",6),e.YNc(10,se,14,3,"div",7),e.qZA()),2&n&&(e.xp6(6),e.Q6J("ngIf","importing"!==o.step),e.xp6(1),e.Q6J("ngIf","upload"===o.step),e.xp6(1),e.Q6J("ngIf","preview"===o.step),e.xp6(1),e.Q6J("ngIf","importing"===o.step),e.xp6(1),e.Q6J("ngIf","done"===o.step))},dependencies:[_.sg,_.O5,c.YN,c.Kr,c.Fj,c.EJ,c.JJ,c.On,H.Ou],styles:[".import-dialog[_ngcontent-%COMP%]{display:flex;flex-direction:column;max-height:85vh}.dialog-header[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px;padding:18px 22px;border-bottom:1px solid #f0f1f6}.dialog-header[_ngcontent-%COMP%]   .header-icon[_ngcontent-%COMP%]{font-size:26px;color:#16181d;background:#f1f3f6;padding:7px;border-radius:9px}.dialog-header[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{margin:0;flex:1;font-size:1.15rem;font-weight:700;color:#1a1a2e}.dialog-header[_ngcontent-%COMP%]   .close-btn[_ngcontent-%COMP%]{background:none;border:none;cursor:pointer;padding:6px;border-radius:6px;color:#6b7280;display:flex}.dialog-header[_ngcontent-%COMP%]   .close-btn[_ngcontent-%COMP%]:hover{background:#f3f4f6;color:#1f2937}.dialog-header[_ngcontent-%COMP%]   .close-btn[_ngcontent-%COMP%]   .material-symbols-outlined[_ngcontent-%COMP%]{font-size:22px}.dialog-body[_ngcontent-%COMP%]{padding:22px;overflow-y:auto;flex:1}.lead-text[_ngcontent-%COMP%]{font-size:.9rem;color:#4b5563;margin:0 0 18px;line-height:1.55}.file-drop[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:8px;padding:36px 24px;border:2px dashed #16181d;border-radius:14px;background:#f1f3f6;cursor:pointer;text-align:center;margin-bottom:18px;transition:all .15s ease}.file-drop[_ngcontent-%COMP%]:hover{background:#e9ecf1;border-color:#db2777}.file-drop[_ngcontent-%COMP%]   .drop-icon[_ngcontent-%COMP%]{font-size:40px;color:#16181d}.file-drop[_ngcontent-%COMP%]   .drop-title[_ngcontent-%COMP%]{font-size:1rem;font-weight:700;color:#111827}.file-drop[_ngcontent-%COMP%]   .drop-sub[_ngcontent-%COMP%]{font-size:.82rem;color:#9d174d}.default-options[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:20px}.default-field[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:4px}.default-field[_ngcontent-%COMP%]   .default-label[_ngcontent-%COMP%]{font-size:.74rem;font-weight:600;color:#6b7280;text-transform:uppercase;letter-spacing:.04em}.default-field[_ngcontent-%COMP%]   select[_ngcontent-%COMP%], .default-field[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{padding:8px 10px;border:1px solid #e5e7eb;border-radius:8px;font-size:.88rem;font-family:inherit;background:#fff;outline:none;box-sizing:border-box}.default-field[_ngcontent-%COMP%]   select[_ngcontent-%COMP%]:focus, .default-field[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]:focus{border-color:#16181d}.preview-body[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:18px}.preview-summary[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px;margin-bottom:4px}.summary-pill[_ngcontent-%COMP%]{font-size:.82rem;font-weight:600;padding:6px 12px;border-radius:999px;background:#f3f4f6;color:#4b5563}.summary-pill[_ngcontent-%COMP%]   strong[_ngcontent-%COMP%]{font-size:1rem;margin-right:4px;color:#1f2937}.summary-pill.valid[_ngcontent-%COMP%]{background:#d1fae5;color:#065f46}.summary-pill.valid[_ngcontent-%COMP%]   strong[_ngcontent-%COMP%]{color:#065f46}.summary-pill.invalid[_ngcontent-%COMP%]{background:#fee2e2;color:#991b1b}
1.summary-pill.invalid[_ngcontent-%COMP%]   strong[_ngcontent-%COMP%]{color:#991b1b}.file-name[_ngcontent-%COMP%]{font-size:.85rem;color:#6b7280;margin-left:auto}.map-section[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%], .preview-section[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin:0 0 10px;font-size:.95rem;font-weight:700;color:#1a1a2e}.map-section[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]   .muted[_ngcontent-%COMP%], .preview-section[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]   .muted[_ngcontent-%COMP%]{font-weight:500;color:#9ca3af;font-size:.82rem}.map-grid[_ngcontent-%COMP%]{display:grid;gap:8px}.map-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr auto 1fr;gap:10px;align-items:center}.map-row[_ngcontent-%COMP%]   .map-source[_ngcontent-%COMP%]{background:#f9fafb;border:1px solid #e5e7eb;padding:8px 10px;border-radius:8px;font-size:.85rem;color:#374151;font-weight:500}.map-row[_ngcontent-%COMP%]   .arrow[_ngcontent-%COMP%]{color:#9ca3af;font-size:18px}.map-row[_ngcontent-%COMP%]   select[_ngcontent-%COMP%]{padding:8px 10px;border:1px solid #e5e7eb;border-radius:8px;font-size:.88rem;background:#fff;outline:none;font-family:inherit;cursor:pointer}.map-row[_ngcontent-%COMP%]   select[_ngcontent-%COMP%]:focus{border-color:#16181d}.preview-rows[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:6px}.preview-row[_ngcontent-%COMP%]{padding:10px 12px;background:#f9fafb;border-radius:8px;font-size:.85rem}.preview-row.has-errors[_ngcontent-%COMP%]{background:#fffaf0;border-left:3px solid #f59e0b}.preview-row[_ngcontent-%COMP%]   .preview-row-main[_ngcontent-%COMP%]{display:flex;align-items:center;gap:6px;flex-wrap:wrap;color:#374151}.preview-row[_ngcontent-%COMP%]   .preview-row-main[_ngcontent-%COMP%]   strong[_ngcontent-%COMP%]{color:#1a1a2e}.preview-row[_ngcontent-%COMP%]   .preview-row-main[_ngcontent-%COMP%]   .muted[_ngcontent-%COMP%]{color:#6b7280}.preview-row[_ngcontent-%COMP%]   .preview-errors[_ngcontent-%COMP%]{display:flex;align-items:center;gap:4px;margin-top:6px;font-size:.78rem;color:#d97706}.preview-row[_ngcontent-%COMP%]   .preview-errors[_ngcontent-%COMP%]   .material-symbols-outlined[_ngcontent-%COMP%]{font-size:16px}.dialog-footer-actions[_ngcontent-%COMP%]{display:flex;gap:10px;justify-content:flex-end;margin-top:20px;padding-top:18px;border-top:1px solid #f0f1f6}.btn[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:6px;padding:9px 18px;border-radius:9px;font-size:.86rem;font-weight:600;cursor:pointer;border:none;font-family:inherit;transition:all .15s ease}.btn[_ngcontent-%COMP%]   .material-symbols-outlined[_ngcontent-%COMP%]{font-size:18px}.btn.btn-primary[_ngcontent-%COMP%]{background:linear-gradient(135deg,#16181d 0%,#2b2f3a 100%);color:#fff}.btn.btn-primary[_ngcontent-%COMP%]:hover{transform:translateY(-1px)}.btn.btn-primary[_ngcontent-%COMP%]:disabled{opacity:.5;cursor:default;transform:none}.btn.btn-ghost[_ngcontent-%COMP%]{background:#fff;color:#4b5563;border:1px solid #e5e7eb}.btn.btn-ghost[_ngcontent-%COMP%]:hover{background:#f9fafb}.importing-body[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:16px;padding:50px 22px}.importing-body[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{margin:0;font-size:.95rem;color:#4b5563}.done-body[_ngcontent-%COMP%]{text-align:center}.done-body[_ngcontent-%COMP%]   .done-icon[_ngcontent-%COMP%]   .material-symbols-outlined[_ngcontent-%COMP%]{font-size:56px;color:#10b981}.done-body[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin:12px 0 6px;font-size:1.25rem;font-weight:700;color:#1a1a2e}.done-body[_ngcontent-%COMP%]   .done-message[_ngcontent-%COMP%]{margin:0 0 18px;color:#4b5563;font-size:.95rem}.done-body[_ngcontent-%COMP%]   .done-message[_ngcontent-%COMP%]   strong[_ngcontent-%COMP%]{font-size:1.4rem;color:#10b981}.done-body[_ngcontent-%COMP%]   .error-list[_ngcontent-%COMP%]{text-align:left;background:#fffaf0;border:1px solid #fed7aa;border-radius:10px;padding:14px 16px;margin:18px 0}.done-body[_ngcontent-%COMP%]   .error-list[_ngcontent-%COMP%]   h4[_ngcontent-%COMP%]{margin:0 0 8px;font-size:.88rem;color:#c2410c}.done-body[_ngcontent-%COMP%]   .error-list[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]{margin:0;padding-left:18px;font-size:.82rem;color:#9a3412}.done-body[_ngcontent-%COMP%]   .error-list[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{margin-bottom:4px}@media (max-width: 540px){.default-options[_ngcontent-%COMP%]{grid-template-columns:1fr}.map-row[_ngcontent-%COMP%]{grid-template-columns:1fr;gap:4px}.map-row[_ngcontent-%COMP%]   .arrow[_ngcontent-%COMP%]{display:none}}"]})}}return i})();var q=g(74197),U=g(64528),N=g(92557);function de(i,r){if(1&i){const t=e.EpF();e.TgZ(0,"button",31),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.resetToDefault())}),e.TgZ(1,"span",6),e._uU(2,"restart_alt"),e.qZA(),e._uU(3," Reset to default "),e.qZA()}}function pe(i,r){if(1&i){const t=e.EpF();e.TgZ(0,"button",35),e.NdJ("click",function(){const a=e.CHM(t).$implicit,s=e.oxw(3);return e.KtG(s.applyTemplate(a))}),e.TgZ(1,"span",6),e._uU(2,"mail"),e.qZA(),e._uU(3),e.qZA()}if(2&i){const t=r.$implicit,n=e.oxw(3);e.ekj("active",(null==n.selectedTemplate?null:n.selectedTemplate._id)===t._id),e.xp6(3),e.hij(" ",t.name," ")}}function ge(i,r){if(1&i){const t=e.EpF();e.TgZ(0,"div",32)(1,"button",33),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.resetToDefault())}),e.TgZ(2,"span",6),e._uU(3,"auto_awesome"),e.qZA(),e._uU(4," Default Outreach "),e.qZA(),e.YNc(5,pe,4,3,"button",34),e.qZA()}if(2&i){const t=e.oxw(2);e.xp6(1),e.ekj("active",!t.selectedTemplate),e.xp6(4),e.Q6J("ngForOf",t.templates)}}function _e(i,r){if(1&i&&(e.TgZ(0,"p",36)(1,"span",6),e._uU(2,"info"),e.qZA(),e._uU(3),e.qZA()),2&i){const t=e.oxw(2);e.xp6(3),e.hij(' Loaded "',t.selectedTemplate.name,'" - feel free to edit before sending. ')}}function ue(i,r){if(1&i&&(e.TgZ(0,"section",25)(1,"div",26)(2,"label",9),e._uU(3,"Start from a template "),e.TgZ(4,"span",27),e._uU(5,"(optional)"),e.qZA()(),e.YNc(6,de,4,0,"button",28),e.qZA(),e.YNc(7,ge,6,3,"div",29),e.YNc(8,_e,4,1,"p",30),e.qZA()),2&i){const t=e.oxw();e.xp6(6),e.Q6J("ngIf",t.selectedTemplate),e.xp6(1),e.Q6J("ngIf",t.templates.length),e.xp6(1),e.Q6J("ngIf",t.selectedTemplate)}}function fe(i,r){if(1&i&&(e.TgZ(0,"option",12),e._uU(1),e.qZA()),2&i){const t=r.$implicit;e.Q6J("ngValue",t._id),e.xp6(1),e.lnq(" ",t.first_name," ",t.last_name," <",t.email,"> ")}}function xe(i,r){if(1&i){const t=e.EpF();e.TgZ(0,"button",37),e.NdJ("click",function(){const a=e.CHM(t).$implicit,s=e.oxw();return e.KtG(s.insertTokenInSubject(a.token))}),e.TgZ(1,"span",6),e._uU(2,"add"),e.qZA(),e._uU(3),e.qZA()}if(2&i){const t=r.$implicit;e.xp6(3),e.hij(" ",t.label," ")}}function me(i,r){if(1&i&&(e.TgZ(0,"p",38)(1,"span",6),e._uU(2,"visibility"),e.qZA(),e._uU(3," Preview: "),e.TgZ(4,"strong"),e._uU(5),e.qZA()()),2&i){const t=e.oxw();e.xp6(5),e.Oqu(t.previewSubject)}}function be(i,r){if(1&i){const t=e.EpF();e.TgZ(0,"button",37),e.NdJ("click",function(){const a=e.CHM(t).$implicit,s=e.oxw();return e.KtG(s.insertToken(a.token))}),e.TgZ(1,"span",6),e._uU(2,"add"),e.qZA(),e._uU(3),e.qZA()}if(2&i){const t=r.$implicit;e.xp6(3),e.hij(" ",t.label," ")}}function he(i,r){1&i&&(e.TgZ(0,"span",6),e._uU(1,"send"),e.qZA())}function we(i,r){1&i&&e._UZ(0,"span",39)}
1const J="Run Your Tournaments Like a Pro with WeighBook",I='\n<p>Hi {{first_name}},</p>\n<p>My name is Daniel Weber and I developed a tournament management platform called <strong>WeighBook</strong>. It\'s built specifically for bass tournament directors who want to run professional events without the headache.</p>\n<p>WeighBook handles <strong>everything</strong> - from season management and signups to running a live digital weigh-in with real-time leaderboards. It talks directly to the scales and generates results instantly.</p>\n<p><strong>Key Features:</strong></p>\n<ul>\n  <li>Create and manage Tours, Divisions, Seasons & Tournaments</li>\n  <li>Online registration with Stripe payment collection</li>\n  <li>Digital scale integration - weights recorded automatically</li>\n  <li>Works offline at the boat ramp (syncs when back online)</li>\n  <li>Real-time live leaderboard for anglers and spectators</li>\n  <li>Send results via SMS instantly after the tournament</li>\n  <li>Automated payout calculations</li>\n  <li>Kiosk mode for on-site registration</li>\n</ul>\n<p>I\'d love to give you a quick 15-minute demo so you can see it in action. No commitment - just want to show you what it can do for your tournaments.</p>\n<p>\n  Tight lines,<br>\n  <strong>Daniel Weber</strong><br>\n  Founder, WeighBook<br>\n  <a href="https://www.weighbook.com" target="_blank">weighbook.com</a>\n</p>\n'.trim();let F=(()=>{class i{get lead(){return this.data.lead}constructor(t,n,o,a,s,l,u){this.dialogRef=t,this.data=n,this.leadsService=o,this.templateService=a,this.sharedUtils=s,this.userService=l,this.authService=u,this.subject=J,this.body=I,this.templates=[],this.selectedTemplate=null,this.sending=!1,this.systemAdmins=[],this.sentFromUser=null,this.tokens=[{token:"{{first_name}}",label:"First Name"},{token:"{{last_name}}",label:"Last Name"}]}ngOnInit(){this.templateService.list("email").subscribe({next:n=>{this.templates=n||[]},error:()=>{this.templates=[]}});const t=this.authService.getCurrentlyLoggedInUser();t?._id&&(this.sentFromUser=t._id),this.userService.listUsersByType("System Admin").subscribe({next:n=>{this.systemAdmins=n||[],this.sentFromUser&&!this.systemAdmins.some(o=>o._id===this.sentFromUser)&&(this.sentFromUser=null)},error:()=>{this.systemAdmins=[]}})}applyTemplate(t){this.selectedTemplate=t,this.subject=t.subject||this.subject,this.body=t.body||""}resetToDefault(){this.selectedTemplate=null,this.subject=J,this.body=I}onBodyChange(t){this.body=t}insertToken(t){this.body=(this.body||"")+t}insertTokenInSubject(t){this.subject=(this.subject||"")+t}get previewSubject(){return this.personalize(this.subject)}personalize(t){return t&&t.replace(/\{\{first_name\}\}/g,this.lead.first_name||"there").replace(/\{\{last_name\}\}/g,this.lead.last_name||"")}get canSend(){return!(!this.lead.email||!this.subject?.trim()||!this.body?.trim()||this.sending)}send(){var t=this;return(0,f.Z)(function*(){if(t.canSend){t.sending=!0;try{const n=yield(0,d.lastValueFrom)(t.leadsService.sendOutreachEmail(t.lead._id,t.subject,t.body,void 0,t.sentFromUser));t.selectedTemplate?._id&&t.templateService.recordUsage(t.selectedTemplate._id).subscribe({error:()=>{}}),t.sharedUtils.showNotificationWithOptions("Outreach email sent to "+t.lead.email,"Email Sent",5e3,"success"),t.dialogRef.close(n)}catch{t.sharedUtils.showNotificationWithOptions("Failed to send email","Error",5e3,"error"),t.sending=!1}}})()}cancel(){this.dialogRef.close(null)}static{this.\u0275fac=function(n){return new(n||i)(e.Y36(w.so),e.Y36(w.WI),e.Y36(O.C),e.Y36(q.Q),e.Y36(b.n3),e.Y36(U.K),e.Y36(b.e8))}}static{this.\u0275cmp=e.Xpm({type:i,selectors:[["lead-outreach-dialog"]],decls:46,vars:17,consts:[[1,"outreach-dialog"],[1,"dialog-header"],[1,"material-symbols-outlined","header-icon"],[1,"header-text"],[1,"header-sub"],["type","button","aria-label","Close",1,"icon-btn",3,"click"],[1,"material-symbols-outlined"],["class","template-section",4,"ngIf"],[1,"dialog-section"],[1,"section-label"],[1,"text-input",3,"ngModel","ngModelChange"],[3,"ngValue",4,"ngFor","ngForOf"],[3,"ngValue"],[1,"section-label-row"],[1,"token-row"],["type","button","class","token-btn",3,"click",4,"ngFor","ngForOf"],["type","text","placeholder","Subject",1,"text-input",3,"ngModel","ngModelChange"],["class","preview-line",4,"ngIf"],[1,"editor-wrap"],[3,"currentBody","htmlEditorContentsChanged"],[1,"dialog-actions"],["type","button",1,"btn","btn-ghost",3,"disabled","click"],["type","button",1,"btn","btn-primary",3,"disabled","click"],["class","material-symbols-outlined",4,"ngIf"],["class","spinner-sm",4,"ngIf"],[1,"template-section"],[1,"template-header-row"],[1,"optional"],["type","button","class","reset-btn",3,"click",4,"ngIf"],["class","template-chips",4,"ngIf"],["class","tpl-hint",4,"ngIf"],["type","button",1,"reset-btn",3,"click"],[1,"template-chips"],["type","button",1,"tpl-chip","default-chip",3,"click"],["type","button","class","tpl-chip",3,"active","click",4,"ngFor","ngForOf"],["type","button",1,"tpl-chip",3,"click"],[1,"tpl-hint"],["type","button",1,"token-btn",3,"click"],[1,"preview-line"],[1,"spinner-sm"]],template:function(n,o){1&n&&(e.TgZ(0,"div",0)(1,"header",1)(2,"span",2),e._uU(3,"send"),e.qZA(),e.TgZ(4,"div",3)(5,"h2"),e._uU(6,"Send Outreach Email"),e.qZA(),e.TgZ(7,"p",4),e._uU(8,"To "),e.TgZ(9,"strong"),e._uU(10),e.qZA(),e._uU(11),e.qZA()(),e.TgZ(12,"button",5),e.NdJ("click",function(){return o.cancel()}),e.TgZ(13,"span",6),e._uU(14,"close"),e.qZA()()(),e.YNc(15,ue,9,3,"section",7),e.TgZ(16,"section",8)(17,"label",9),e._uU(18,"Sent from"),e.qZA(),e.TgZ(19,"select",10),e.NdJ("ngModelChange",function(s){return o.sentFromUser=s}),e.YNc(20,fe,2,4,"option",11),e.TgZ(21,"option",12),e._uU(22,"WeighBook Support <[email protected]>"),e.qZA()()(),e.TgZ(23,"section",8)(24,"div",13)(25,"label",9),e._uU(26,"Subject"),e.qZA(),e.TgZ(27,"div",14),e.YNc(28,xe,4,1,"button",15),e.qZA()(),e.TgZ(29,"input",16),e.NdJ("ngModelChange",function(s){return o.subject=s}),e.qZA(),e.YNc(30,me,6,1,"p",17),e.qZA(),e.TgZ(31,"section",8)(32,"div",13)(33,"label",9),e._uU(34,"Message"),e.qZA(),e.TgZ(35,"div",14),e.YNc(36,be,4,1,"button",15),e.qZA()(),e.TgZ(37,"div",18)(38,"html-editor",19),e.NdJ("htmlEditorContentsChanged",function(s){return o.onBodyChange(s)}),e.qZA()()(),e.TgZ(39,"div",20)(40,"button",21),e.NdJ("click",function(){return o.cancel()}),e._uU(41,"Cancel"),e.qZA(),e.TgZ(42,"button",22),e.NdJ("click",function(){return o.send()}),e.YNc(43,he,2,0,"span",23),e.YNc(44,we,1,0,"span",24),e._uU(45),e.qZA()()()),2&n&&(e.xp6(10),e.AsE("",o.lead.first_name," ",o.lead.last_name,""),e.xp6(1),e.hij(" <",o.lead.email,">"),e.xp6(4),e.Q6J("ngIf",o.templates.length||o.selectedTemplate),e.xp6(4),e.Q6J("ngModel",o.sentFromUser),e.xp6(1),e.Q6J("ngForOf",o.systemAdmins),e.xp6(1),e.Q6J("ngValue",null),e.xp6(7),e.Q6J("ngForOf",o.tokens),e.xp6(1),e.Q6J("ngModel",o.subject),e.xp6(1),e.Q6J("ngIf",o.subject!==o.previewSubject),e.xp6(6),e.Q6J("ngForOf",o.tokens),e.xp6(2),e.Q6J("currentBody",o.body),e.xp6(2),e.Q6J("disabled",o.sending),e.xp6(2),e.Q6J("disabled",!o.canSend),e.xp6(1),e.Q6J("ngIf",!o.sending),e.xp6(1),e.Q6J("ngIf",o.sending),e.xp6(1),e.hij(" ",o.sending?"Sending\u2026":"Send Email"," "))},dependencies:[_.sg,_.O5,c.YN,c.Kr,c.Fj,c.EJ,c.JJ,c.On,N.c],styles:[".outreach-dialog[_ngcontent-%COMP%]{display:flex;flex-direction:column;max-height:90vh;width:100%}.dialog-header[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px;padding:18px 22px;border-bottom:1px solid #f0f1f6}.dialog-header[_ngcontent-%COMP%]   .header-icon[_ngcontent-%COMP%]{font-size:24px;color:#16181d;background:#f1f3f6;padding:9px;border-radius:10px}.dialog-header[_ngcontent-%COMP%]   .header-text[_ngcontent-%COMP%]{flex:1;min-width:0}.dialog-header[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{margin:0;font-size:1.1rem;font-weight:700;
1color:#1a1a2e}.dialog-header[_ngcontent-%COMP%]   .header-sub[_ngcontent-%COMP%]{margin:2px 0 0;font-size:.82rem;color:#6b7280;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.dialog-header[_ngcontent-%COMP%]   .header-sub[_ngcontent-%COMP%]   strong[_ngcontent-%COMP%]{color:#1f2937;font-weight:600}.icon-btn[_ngcontent-%COMP%]{background:none;border:none;cursor:pointer;padding:6px;border-radius:7px;color:#6b7280;display:flex;font-family:inherit}.icon-btn[_ngcontent-%COMP%]:hover{background:#f3f4f6;color:#1f2937}.icon-btn[_ngcontent-%COMP%]   .material-symbols-outlined[_ngcontent-%COMP%]{font-size:20px}.dialog-section[_ngcontent-%COMP%]{padding:16px 22px}.template-section[_ngcontent-%COMP%]{padding:16px 22px 8px;background:#f1f3f6;border-bottom:1px solid #e5e7eb}.template-header-row[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}.section-label[_ngcontent-%COMP%]{display:block;font-size:.74rem;font-weight:700;color:#4b5563;text-transform:uppercase;letter-spacing:.04em}.section-label[_ngcontent-%COMP%]   .optional[_ngcontent-%COMP%]{color:#9ca3af;font-weight:500;text-transform:none;letter-spacing:normal;margin-left:4px}.section-label-row[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}.reset-btn[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:4px;background:none;border:none;color:#16181d;font-size:.78rem;font-weight:600;cursor:pointer;font-family:inherit}.reset-btn[_ngcontent-%COMP%]   .material-symbols-outlined[_ngcontent-%COMP%]{font-size:14px}.reset-btn[_ngcontent-%COMP%]:hover{color:#9d174d}.template-chips[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:6px}.tpl-chip[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:5px;padding:6px 12px;background:#fff;border:1.5px solid #e5e7eb;border-radius:999px;font-size:.82rem;font-weight:600;color:#16181d;cursor:pointer;font-family:inherit;transition:all .15s ease}.tpl-chip[_ngcontent-%COMP%]   .material-symbols-outlined[_ngcontent-%COMP%]{font-size:14px}.tpl-chip[_ngcontent-%COMP%]:hover{background:#f1f3f6;border-color:#d1d5db}.tpl-chip.active[_ngcontent-%COMP%]{background:#16181d;border-color:#16181d;color:#fff}.tpl-chip.default-chip[_ngcontent-%COMP%]{border-color:#d1d5db;color:#4b5563}.tpl-chip.default-chip[_ngcontent-%COMP%]:hover{background:#f9fafb;border-color:#9ca3af}.tpl-chip.default-chip.active[_ngcontent-%COMP%]{background:#4b5563;border-color:#4b5563;color:#fff}.tpl-hint[_ngcontent-%COMP%]{display:flex;align-items:center;gap:5px;margin:10px 0 0;padding:7px 11px;background:rgba(0,0,0,.08);border-radius:7px;font-size:.8rem;color:#9d174d}.tpl-hint[_ngcontent-%COMP%]   .material-symbols-outlined[_ngcontent-%COMP%]{font-size:14px}.token-row[_ngcontent-%COMP%]{display:flex;gap:5px;flex-wrap:wrap}.token-btn[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:3px;padding:3px 9px;background:#ecfeff;color:#0e7490;border:1px solid #a5f3fc;border-radius:999px;font-size:.7rem;font-weight:600;cursor:pointer;font-family:inherit}.token-btn[_ngcontent-%COMP%]   .material-symbols-outlined[_ngcontent-%COMP%]{font-size:12px}.token-btn[_ngcontent-%COMP%]:hover{background:#cffafe}.text-input[_ngcontent-%COMP%]{width:100%;padding:10px 14px;font-size:.92rem;font-family:inherit;border:1px solid #e5e7eb;border-radius:9px;background:#fff;color:#1f2937;outline:none;box-sizing:border-box;transition:border-color .15s ease,box-shadow .15s ease}.text-input[_ngcontent-%COMP%]:focus{border-color:#16181d;box-shadow:0 0 0 3px #0000001a}.preview-line[_ngcontent-%COMP%]{margin:6px 0 0;font-size:.78rem;color:#6b7280;display:flex;align-items:center;gap:4px}.preview-line[_ngcontent-%COMP%]   .material-symbols-outlined[_ngcontent-%COMP%]{font-size:14px;color:#9ca3af}.preview-line[_ngcontent-%COMP%]   strong[_ngcontent-%COMP%]{color:#1f2937;font-weight:600}.editor-wrap[_ngcontent-%COMP%]{border:1px solid #e5e7eb;border-radius:9px;overflow:hidden}.editor-wrap[_ngcontent-%COMP%]     .ck.ck-editor__main>.ck-editor__editable{min-height:280px;padding:14px 16px;font-size:14px;line-height:1.6}.dialog-actions[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;
1gap:10px;padding:14px 22px;border-top:1px solid #f0f1f6;background:#fafbfc}.btn[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:6px;padding:10px 20px;border-radius:10px;font-size:.9rem;font-weight:600;cursor:pointer;border:none;font-family:inherit;transition:all .15s ease}.btn[_ngcontent-%COMP%]   .material-symbols-outlined[_ngcontent-%COMP%]{font-size:18px}.btn[_ngcontent-%COMP%]:disabled{opacity:.5;cursor:default}.btn.btn-primary[_ngcontent-%COMP%]{background:linear-gradient(135deg,#16181d 0%,#2b2f3a 100%);color:#fff;box-shadow:0 4px 14px #00000047}.btn.btn-primary[_ngcontent-%COMP%]:hover:not(:disabled){transform:translateY(-1px)}.btn.btn-ghost[_ngcontent-%COMP%]{background:#fff;color:#4b5563;border:1px solid #e5e7eb}.btn.btn-ghost[_ngcontent-%COMP%]:hover:not(:disabled){background:#f9fafb}.spinner-sm[_ngcontent-%COMP%]{width:14px;height:14px;border:2px solid rgba(255,255,255,.3);border-top-color:#fff;border-radius:50%;animation:_ngcontent-%COMP%_spin .7s linear infinite}@keyframes _ngcontent-%COMP%_spin{to{transform:rotate(360deg)}}"]})}}return i})();var G=g(69862);let T=(()=>{class i{constructor(t){this.http=t,this._route="/api/lead-activities/",this.headers={headers:new G.WM({"Content-Type":"application/json"})}}list(t,n){const o=[n?`type=${n}`:"",`_t=${Date.now()}`].filter(Boolean).join("&");return this.http.get(`${this._route}${t}?${o}`)}create(t,n){return this.http.post(this._route+t,JSON.stringify(n),this.headers)}logCall(t,n){return this.create(t,{type:"call",direction:n.direction||"outbound",...n})}addNote(t,n){return this.create(t,{type:"note",body:n})}sendSms(t,n){return this.http.post(this._route+t+"/send-sms",JSON.stringify({body:n}),this.headers)}delete(t){return this.http.delete(this._route+t)}static{this.\u0275fac=function(n){return new(n||i)(e.LFG(G.eN))}}static{this.\u0275prov=e.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();var Z=g(22601);function ve(i,r){if(1&i){const t=e.EpF();e.TgZ(0,"button",6),e.NdJ("click",function(){const a=e.CHM(t).$implicit,s=e.oxw();return e.KtG(s.activeFilter=a.key)}),e.TgZ(1,"span",7),e._uU(2),e.qZA(),e.TgZ(3,"span",8),e._uU(4),e.qZA(),e.TgZ(5,"span",9),e._uU(6),e.qZA()()}if(2&i){const t=r.$implicit,n=e.oxw();e.ekj("active",n.activeFilter===t.key),e.xp6(2),e.Oqu(t.icon),e.xp6(2),e.Oqu(t.label),e.xp6(2),e.Oqu(n.tabCount(t.key))}}function Ce(i,r){1&i&&(e.TgZ(0,"div",10),e._UZ(1,"div",11),e.qZA())}function Me(i,r){1&i&&(e.TgZ(0,"p",14),e._uU(1,"Send an email, log a call, or add a note to get started."),e.qZA())}function Oe(i,r){if(1&i&&(e.TgZ(0,"div",12)(1,"span",7),e._uU(2,"history"),e.qZA(),e.TgZ(3,"p"),e._uU(4),e.qZA(),e.YNc(5,Me,2,0,"p",13),e.qZA()),2&i){const t=e.oxw();e.xp6(4),e.hij("No activity","all"!==t.activeFilter?" in this filter":" yet","."),e.xp6(1),e.Q6J("ngIf","all"===t.activeFilter)}}function Te(i,r){1&i&&(e.TgZ(0,"span",31),e._uU(1,"Failed"),e.qZA())}function Pe(i,r){if(1&i&&(e.TgZ(0,"span",32),e._uU(1),e.qZA()),2&i){const t=e.oxw().$implicit,n=e.oxw(2);e.xp6(1),e.Oqu(n.formatDuration(t.callDurationSec))}}function ye(i,r){if(1&i){const t=e.EpF();e.TgZ(0,"button",33),e.NdJ("click",function(o){e.CHM(t);const a=e.oxw().$implicit,s=e.oxw(2);return e.KtG(s.deleteActivity(a,o))}),e.TgZ(1,"span",7),e._uU(2,"close"),e.qZA()()}}function Ze(i,r){if(1&i&&(e.TgZ(0,"div",34),e._uU(1),e.qZA()),2&i){const t=e.oxw().$implicit;e.xp6(1),e.Oqu(t.subject)}}function ke(i,r){if(1&i){const t=e.EpF();e.TgZ(0,"div",34)(1,"a",35),e.NdJ("click",function(o){e.CHM(t);const a=e.oxw().$implicit,s=e.oxw(2);return e.KtG(s.openCampaign(a,o))}),e.TgZ(2,"span",7),e._uU(3,"rocket_launch"),e.qZA(),e._uU(4," View campaign "),e.qZA()()}}function Le(i,r){1&i&&(e.TgZ(0,"div",36)(1,"span",7),e._uU(2,"expand_more"),e.qZA(),e.TgZ(3,"span"),e._uU(4,"Details"),e.qZA()())}function Ae(i,r){if(1&i&&(e.TgZ(0,"div",41)(1,"strong"),e._uU(2,"Subject:"),e.qZA(),e._uU(3),e.qZA()),2&i){const t=e.oxw(2).$implicit;e.xp6(3),e.hij(" ",t.subject,"")}}function Se(i,r){if(1&i&&e._UZ(0,"div",42),2&i){const t=e.oxw(2).$implicit;e.Q6J("innerHTML",t.body,e.oJD)}}function qe(i,r){if(1&i){const t=e.EpF();e.TgZ(0,"a",35),e.NdJ("click",function(o){e.CHM(t);const a=e.oxw(2).$implicit,s=e.oxw(2);return e.KtG(s.openCampaign(a,o))}),e.TgZ(1,"span",7),e._uU(2,"rocket_launch"),e.qZA(),e._uU(3," Open source campaign "),e.qZA()}}function Ue(i,r){if(1&i&&(e.TgZ(0,"div",37),e.YNc(1,Ae,4,1,"div",38),e.YNc(2,Se,1,1,"div",39),e.YNc(3,qe,4,0,"a",40),e.qZA()),2&i){const t=e.oxw().$implicit;e.xp6(1),e.Q6J("ngIf",t.subject),e.xp6(1),e.Q6J("ngIf",t.body),e.xp6(1),e.Q6J("ngIf",t.campaign)}}function Ne(i,r){if(1&i){const t=e.EpF();e.TgZ(0,"div",17),e.NdJ("click",function(){const a=e.CHM(t).$implicit,s=e.oxw(2);return e.KtG(s.toggleExpand(a))}),e.TgZ(1,"div",18)(2,"div",19)(3,"span",7),e._uU(4),e.qZA()()(),e.TgZ(5,"div",20)(6,"div",21)(7,"div",22),e._uU(8),e.qZA(),e.TgZ(9,"div",23),e.YNc(10,Te,2,0,"span",24),e.YNc(11,Pe,2,1,"span",25),e.TgZ(12,"span",26),e.ALo(13,"date"),e._uU(14),e.qZA(),e.YNc(15,ye,3,0,"button",27),e.qZA()(),e.YNc(16,Ze,2,1,"div",28),e.YNc(17,ke,5,0,"div",28),e.YNc(18,Le,5,0,"div",29),e.YNc(19,Ue,4,3,"div",30),e.qZA()()}if(2&i){const t=r.$implicit,n=e.oxw(2);e.ekj("expandable",n.canExpand(t))("expanded",n.isExpanded(t)),e.Q6J("ngClass",n.cssClassFor(t.type)),e.xp6(4),e.Oqu(n.iconFor(t.type)),e.xp6(4),e.Oqu(n.titleFor(t)),e.xp6(2),e.Q6J("ngIf","failed"===t.deliveryStatus),e.xp6(1),e.Q6J("ngIf","call"===t.type&&t.callDurationSec),e.xp6(1),e.Q6J("title",t.createdAt?e.xi3(13,16,t.createdAt,"MMM d, y, h:mm a"):""),e.xp6(2),e.Oqu(n.formatTime(t.createdAt)),e.xp6(1),e.Q6J("ngIf",!t.systemGenerated),e.xp6(1),e.Q6J("ngIf",t.subject&&!n.isExpanded(t)),e.xp6(1),e.Q6J("ngIf",t.campaign&&!n.isExpanded(t)),e.xp6(1),e.Q6J("ngIf",n.canExpand(t)&&!n.isExpanded(t)),e.xp6(1),e.Q6J("ngIf",n.isExpanded(t))}}function Je(i,r){if(1&i&&(e.TgZ(0,"div",15),e.YNc(1,Ne,20,19,"div",16),e.qZA()),2&i){const t=e.oxw();e.xp6(1),e.Q6J("ngForOf",t.filteredActivities)}}let k=(()=>{class i{constructor(t,n,o,a){this.activityService=t,this.sharedUtils=n,this.router=o,this._userRolesService=a,this.activities=[],this.loading=!1,this.activeFilter="all",this.expandedIds=new Set,this.tabs=[{key:"all",label:"All",icon:"history"},{key:"outreach_email",label:"Emails",icon:"mail"},{key:"sms",label:"SMS",icon:"sms"},{key:"call",label:"Calls",icon:"call"},{key:"status_change",label:"Status",icon:"swap_horiz"},{key:"note",label:"Notes",icon:"edit_note"}],this.outcomeLabels={connected:"Connected",voicemail:"Voicemail",no_answer:"No answer",callback_requested:"Callback requested",wrong_number:"Wrong number",other:"Other"}}ngOnChanges(t){t.leadId?.currentValue&&this.load()}load(){this.leadId&&(this.loading=!0,this.activityService.list(this.leadId).subscribe({next:t=>{this.activities=t,this.loading=!1},error:()=>{this.loading=!1}}))}refresh(){this.load()}get filteredActivities(){return"all"===this.activeFilter?this.activities:this.activities.filter("outreach_email"===this.activeFilter?t=>"outreach_email"===t.type||"campaign_email"===t.type:"sms"===this.activeFilter?t=>"sms"===t.type||"campaign_sms"===t.type:t=>t.type===this.activeFilter)}tabCount(t){return"all"===t?this.activities.length:"outreach_email"===t?this.activities.filter(n=>"outreach_email"===n.type||"campaign_email"===n.type).length:"sms"===t?this.activities.filter(n=>"sms"===n.type||"campaign_sms"===n.type).length:this.activities.filter(n=>n.type===t).length}isExpanded(t){return this.expandedIds.has(t._id)}toggleExpand(t){this.canExpand(t)&&(this.expandedIds.has(t._id)?this.expandedIds.delete(t._id):this.expandedIds.add(t._id))}canExpand(t){return!(!t.body&&!t.subject)}iconFor(t){switch(t){case"outreach_email":return"send";case"campaign_email":return"mail";case"campaign_sms":case"sms":return"sms";case"call":return"call";case"status_change":return"swap_horiz";case"demo_scheduled":return"videocam";case"note":return"edit_note";default:return"history"}}cssClassFor(t){switch(t){case"outreach_email":case"campaign_email":return"tone-email";case"sms":case"campaign_sms":return"tone-sms";case"call":return"tone-call";case"status_change":return"tone-status";case"demo_scheduled":return"tone-demo";case"note":return"tone-note";default:return""}}titleFor(t){const n=t.user?.first_name?`${t.user.first_name} ${t.user.last_name||""}`.trim():null;switch(t.type){case"outreach_email":return n&&!t.systemGenerated?`${n} sent outreach email`:"Outreach email sent";case"campaign_email":return`Sent campaign email: ${t.campaignName||"Untitled campaign"}`;case"campaign_sms":return`Sent campaign SMS: ${t.campaignName||"Untitled campaign"}`;case"sms":return n?`${n} sent SMS`:"SMS sent";case"call":const o=t.outcome?this.outcomeLabels[t.outcome]:"Call";return n?`${n} logged call - ${o}`:`Call logged - ${o}`;case"status_change":return`Status: ${t.fromStatus||"-"} \u2192 ${t.toStatus||"-"}`;case"demo_scheduled":return`Demo scheduled for ${t.scheduledFor?new Date(t.scheduledFor).toLocaleStr
1ing():"TBD"}`;case"note":return n?`${n} added note`:"Note added";default:return"Activity"}}formatTime(t){if(!t)return"";const n=new Date(t),o=Date.now()-n.getTime(),a=Math.floor(o/6e4);if(a<1)return"just now";if(a<60)return`${a}m ago`;const s=Math.floor(a/60);if(s<24)return`${s}h ago`;const l=Math.floor(s/24);return l<7?`${l}d ago`:n.toLocaleDateString(void 0,{month:"short",day:"numeric",year:"numeric"})}formatDuration(t){if(!t)return"";const n=Math.floor(t/60),o=t%60;return 0===n?`${o}s`:0===o?`${n}m`:`${n}m ${o}s`}deleteActivity(t,n){var o=this;return(0,f.Z)(function*(){if(n.stopPropagation(),!t.systemGenerated&&(yield o.sharedUtils.confirmationDialogPromise({title:"Delete activity",textToDisplay:"Remove this activity from the lead feed?",buttonsInfo:{confirmText:"Delete",confirmBtnColor:"warn",denyText:"Cancel",denyBtnColor:""}})))try{yield(0,d.lastValueFrom)(o.activityService.delete(t._id)),o.activities=o.activities.filter(s=>s._id!==t._id)}catch{o.sharedUtils.showNotificationWithOptions("Failed to delete activity","Error",4e3,"error")}})()}openCampaign(t,n){n.stopPropagation();const o="string"==typeof t.campaign?t.campaign:t.campaign?._id;o&&this.router.navigate([this._userRolesService.crmPortalBase()+"/campaigns",o])}static{this.\u0275fac=function(n){return new(n||i)(e.Y36(T),e.Y36(b.n3),e.Y36(m.F0),e.Y36(Z._))}}static{this.\u0275cmp=e.Xpm({type:i,selectors:[["lead-activity-feed"]],inputs:{leadId:"leadId",leadCreatedAt:"leadCreatedAt"},features:[e.TTD],decls:6,vars:4,consts:[[1,"activity-feed"],[1,"filter-tabs"],["type","button","class","filter-tab",3,"active","click",4,"ngFor","ngForOf"],["class","loading-wrap",4,"ngIf"],["class","feed-empty",4,"ngIf"],["class","feed-list",4,"ngIf"],["type","button",1,"filter-tab",3,"click"],[1,"material-symbols-outlined"],[1,"filter-label"],[1,"tab-count"],[1,"loading-wrap"],[1,"spinner-sm"],[1,"feed-empty"],["class","empty-hint",4,"ngIf"],[1,"empty-hint"],[1,"feed-list"],["class","feed-item",3,"ngClass","expandable","expanded","click",4,"ngFor","ngForOf"],[1,"feed-item",3,"ngClass","click"],[1,"feed-rail"],[1,"feed-icon"],[1,"feed-body"],[1,"feed-row-top"],[1,"feed-title"],[1,"feed-meta"],["class","status-tag tag-failed",4,"ngIf"],["class","duration-tag",4,"ngIf"],[1,"time",3,"title"],["type","button","class","feed-action-btn","title","Delete",3,"click",4,"ngIf"],["class","feed-sub",4,"ngIf"],["class","feed-expand-hint",4,"ngIf"],["class","feed-detail",4,"ngIf"],[1,"status-tag","tag-failed"],[1,"duration-tag"],["type","button","title","Delete",1,"feed-action-btn",3,"click"],[1,"feed-sub"],[1,"campaign-link",3,"click"],[1,"feed-expand-hint"],[1,"feed-detail"],["class","detail-subject",4,"ngIf"],["class","detail-body",3,"innerHTML",4,"ngIf"],["class","campaign-link",3,"click",4,"ngIf"],[1,"detail-subject"],[1,"detail-body",3,"innerHTML"]],template:function(n,o){1&n&&(e.TgZ(0,"div",0)(1,"div",1),e.YNc(2,ve,7,5,"button",2),e.qZA(),e.YNc(3,Ce,2,0,"div",3),e.YNc(4,Oe,6,2,"div",4),e.YNc(5,Je,2,1,"div",5),e.qZA()),2&n&&(e.xp6(2),e.Q6J("ngForOf",o.tabs),e.xp6(1),e.Q6J("ngIf",o.loading),e.xp6(1),e.Q6J("ngIf",!o.loading&&!o.filteredActivities.length),e.xp6(1),e.Q6J("ngIf",!o.loading&&o.filteredActivities.length))},dependencies:[_.mk,_.sg,_.O5,_.uU],styles:['.activity-feed[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:16px}.filter-tabs[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:6px;padding-bottom:14px;border-bottom:1px solid #eef0f5}.filter-tab[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:5px;padding:6px 10px;background:#f6f7f9;border:1px solid transparent;border-radius:999px;font-size:.8rem;font-weight:600;color:#5b6472;cursor:pointer;font-family:inherit;transition:background .15s ease,color .15s ease,border-color .15s ease}.filter-tab[_ngcontent-%COMP%]   .material-symbols-outlined[_ngcontent-%COMP%]{font-size:15px}.filter-tab[_ngcontent-%COMP%]   .filter-label[_ngcontent-%COMP%]{line-height:1}.filter-tab[_ngcontent-%COMP%]   .tab-count[_ngcontent-%COMP%]{background:#e5e7eb;color:#4b5563;font-size:.7rem;font-weight:700;padding:1px 6px;border-radius:999px;min-width:18px;text-align:center;line-height:1.4}.filter-tab[_ngcontent-%COMP%]:hover{color:#16181d;background:#eceef1}.filter-tab.active[_ngcontent-%COMP%]{background:#16181d;color:#fff;border-color:#16181d;box-shadow:0 2px 8px #0000002e}.filter-tab.active[_ngcontent-%COMP%]   .tab-count[_ngcontent-%COMP%]{background:rgba(255,255,255,.2);color:#fff}.loading-wrap[_ngcontent-%COMP%]{display:flex;justify-content:center;padding:24px 0}.spinner-sm[_ngcontent-%COMP%]{width:22px;height:22px;border:2.5px solid #f3f4f6;border-top-color:#16181d;border-radius:50%;animation:_ngcontent-%COMP%_spin .7s linear infinite}@keyframes _ngcontent-%COMP%_spin{to{transform:rotate(360deg)}}.feed-empty[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:4px;padding:34px 16px;text-align:center}.feed-empty[_ngcontent-%COMP%]   .material-symbols-outlined[_ngcontent-%COMP%]{font-size:40px;color:#d1d5db;margin-bottom:4px}.feed-empty[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{margin:0;color:#6b7280;font-size:.88rem}.feed-empty[_ngcontent-%COMP%]   .empty-hint[_ngcontent-%COMP%]{color:#9ca3af;font-size:.8rem}.feed-list[_ngcontent-%COMP%]{display:flex;flex-direction:column}.feed-item[_ngcontent-%COMP%]{display:flex;align-items:stretch;gap:14px;position:relative;padding:4px 8px 4px 0;border-radius:10px;transition:background .12s ease}.feed-item[_ngcontent-%COMP%]   .feed-rail[_ngcontent-%COMP%]{position:relative;flex-shrink:0;width:34px;display:flex;justify-content:center}.feed-item[_ngcontent-%COMP%]   .feed-rail[_ngcontent-%COMP%]:before{content:"";position:absolute;top:0;bottom:0;left:50%;width:2px;transform:translate(-50%);background:#eceef2}.feed-item[_ngcontent-%COMP%]:first-child   .feed-rail[_ngcontent-%COMP%]:before{top:16px}.feed-item[_ngcontent-%COMP%]:last-child   .feed-rail[_ngcontent-%COMP%]:before{bottom:calc(100% - 16px)}.feed-item[_ngcontent-%COMP%]:only-child   .feed-rail[_ngcontent-%COMP%]:before{display:none}.feed-item.expandable[_ngcontent-%COMP%]{cursor:pointer}.feed-item.expandable[_ngcontent-%COMP%]:hover{background:#f8f9fb}.feed-icon[_ngcontent-%COMP%]{position:relative;z-index:1;width:34px;height:34px;margin:6px 0;border-radius:10px;background:#eef0f4;color:#6b7280;display:flex;align-items:center;justify-content:center;flex-shrink:0;box-shadow:0 0 0 3px #fff}.feed-icon[_ngcontent-%COMP%]   .material-symbols-outlined[_ngcontent-%COMP%]{font-size:18px}.tone-email[_ngcontent-%COMP%]   .feed-icon[_ngcontent-%COMP%]{background:#dbeafe;color:#1d4ed8}.tone-sms[_ngcontent-%COMP%]   .feed-icon[_ngcontent-%COMP%]{background:#ede9fe;color:#6d28d9}.tone-call[_ngcontent-%COMP%]   .feed-icon[_ngcontent-%COMP%]{background:#d1fae5;color:#047857}.tone-status[_ngcontent-%COMP%]   .feed-icon[_ngcontent-%COMP%]{background:#fef3c7;color:#b45309}.tone-demo[_ngcontent-%COMP%]   .feed-icon[_ngcontent-%COMP%]{background:#ffe4e6;color:#be123c}.tone-note[_ngcontent-%COMP%]   .feed-icon[_ngcontent-%COMP%]{background:#f1f5f9;color:#475569}.feed-body[_ngcontent-%COMP%]{flex:1;min-width:0;padding:10px 0}.feed-row-top[_ngcontent-%COMP%]{display:flex;align-items:flex-start;gap:10px;justify-content:space-between}.feed-title[_ngcontent-%COMP%]{font-size:.9rem;font-weight:600;color:#16181d;flex:1;min-width:0;line-height:1.35}.feed-meta[_ngcontent-%COMP%]{display:flex;align-items:center;gap:6px;flex-shrink:0;padding-top:1px}.status-tag[_ngcontent-%COMP%]{font-size:.68rem;font-weight:700;padding:2px 7px;border-radius:5px;text-transform:uppercase;letter-spacing:.02em}.status-tag.tag-failed[_ngcontent-%COMP%]{background:#fee2e2;color:#dc2626}.duration-tag[_ngcontent-%COMP%]{font-size:.74rem;font-weight:600;color:#047857;background:#d1fae5;padding:2px 7px;border-radius:5px}.time[_ngcontent-%COMP%]{font-size:.75rem;color:#9ca3af;font-weight:500;white-space:nowrap;cursor:default}.feed-action-btn[_ngcontent-%COMP%]{background:none;border:none;cursor:pointer;padding:3px;border-radius:6px;color:#c4c7d4;display:flex;opacity:0;transition:opacity .12s ease,background .12s ease,color .12s ease}.feed-action-btn[_ngcontent-%COMP%]   .material-symbols-outlined[_ngcontent-%COMP%]{font-size:15px}.feed-action-btn[_ngcontent-%COMP%]:hover{background:#fee2e2;color:#dc2626}.feed-item[_ngcontent-%COMP%]:hover   .feed-action-btn[_ngcontent-%COMP%]{opacity:1}.feed-sub[_ngcontent-%COMP%]{margin-top:4px;font-size:.82rem;color:#6b7280;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.feed-expand-hint[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:2px;margin-top:6px;font-size:.74rem;font-weight:600;color:#9aa2af}.feed-expand-hint[_ngcontent-%COMP%]   .material-symbols-outlined[_ngcontent-%COMP%]{font-size:15px}.feed-item.expandable[_ngcontent-%COMP%]:hover   .feed-expand-hint[_ngcontent-%COMP%]{color:#6b7280}.campaign-link[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:3px;color:#6366f1;font-weight:600;font-size:.78rem;cursor:pointer}.campaign-link[_ngcontent-%COMP%]   .material-symbols-outlined[_ngcontent-%COMP%]{font-size:13px}.campaign-link[_ngcontent-%COMP%]:hover{color:#4f46e5;text-decoration:underline}.feed-detail[_ngcontent-%COMP%]{margin-top:10px;padding:13px 15px;background:#f8f9fb;border:1px solid #eef0f5;border-radius:10px;font-size:.85rem;color:#374151;line-height:1.55;white-space:normal}.feed-detail[_ngcontent-%COMP%]   .detail-subject[_ngcontent-%COMP%]{margin-bottom:8px;padding-bottom:8px;border-bottom:1px solid #eceef2;color:#1f2937}.feed-detail[_ngcontent-%COMP%]   .detail-subject[_ngcontent-%COMP%]   strong[_ngcontent-%COMP%]{color:#16181d;font-weight:700}.feed-detail[_ngcontent-%COMP%]   .detail-body[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{margin:0 0 8px}.feed-detail[_ngcontent-%COMP%]   .detail-body[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]:last-child{margin-bottom:0}.feed-detail[_ngcontent-%COMP%]   .detail-body[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%], .feed-detail[_ngcontent-%COMP%]   .detail-body[_ngcontent-%COMP%]   ol[_ngcontent-%COMP%]{margin:4px 0 8px;padding-left:20px}.feed-detail[_ngcontent-%COMP%]   .detail-body[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{margin-bottom:2px}.feed-detail[_ngcontent-%COMP%]   .detail-body[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:#2563eb}']})}}return i})();var z=g(92596);const Ie=["searchInput"],Fe=["shell"],Ge=["board"],ze=["laneEnd"];function De(i,r){if(1&i&&(e.TgZ(0,"span",26),e._uU(1),e.ALo(2,"number"),e.qZA()),2&i){const t=e.oxw();
1e.xp6(1),e.Oqu(e.lcZ(2,1,t.counts.total||t.total))}}function Qe(i,r){if(1&i&&(e.TgZ(0,"strong",31),e._uU(1),e.ALo(2,"number"),e.qZA()),2&i){const t=e.oxw(2);e.xp6(1),e.hij("",e.lcZ(2,1,t.counts.overdue)," overdue")}}function Ee(i,r){1&i&&(e.TgZ(0,"span",32),e._uU(1,"none overdue"),e.qZA())}function Ye(i,r){if(1&i&&(e.TgZ(0,"div",27)(1,"strong"),e._uU(2),e.ALo(3,"number"),e.qZA(),e.TgZ(4,"span",28),e._uU(5,"\xb7"),e.qZA(),e.YNc(6,Qe,3,3,"strong",29),e.YNc(7,Ee,2,0,"span",30),e.TgZ(8,"span",28),e._uU(9,"\xb7"),e.qZA(),e.TgZ(10,"span"),e._uU(11),e.ALo(12,"number"),e.qZA()()),2&i){const t=e.oxw();e.xp6(2),e.hij("",e.lcZ(3,4,t.counts.followUp)," need follow-up"),e.xp6(4),e.Q6J("ngIf",t.counts.overdue),e.xp6(1),e.Q6J("ngIf",!t.counts.overdue),e.xp6(4),e.hij("",e.lcZ(12,6,t.counts.unassigned)," unassigned")}}function He(i,r){if(1&i){const t=e.EpF();e.TgZ(0,"button",33),e.NdJ("click",function(){const a=e.CHM(t).$implicit,s=e.oxw();return e.KtG(s.setView(a.key))}),e._uU(1),e.qZA()}if(2&i){const t=r.$implicit,n=e.oxw();e.ekj("is-on",n.view===t.key),e.uIk("aria-selected",n.view===t.key),e.xp6(1),e.Oqu(t.label)}}function je(i,r){if(1&i){const t=e.EpF();e.TgZ(0,"button",34),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return o.filters.query="",e.KtG(o.applyFilters())}),e.TgZ(1,"span",19),e._uU(2,"close"),e.qZA()()}}function Ke(i,r){1&i&&(e.TgZ(0,"span",35),e._uU(1,"/"),e.qZA())}function $e(i,r){if(1&i&&(e.TgZ(0,"option",37),e._uU(1),e.qZA()),2&i){const t=r.$implicit;e.Q6J("ngValue",t._id),e.xp6(1),e.AsE("",t.first_name," ",t.last_name,"")}}function Be(i,r){if(1&i){const t=e.EpF();e.TgZ(0,"select",36),e.NdJ("ngModelChange",function(o){e.CHM(t);const a=e.oxw();return e.KtG(a.filters.assignedTo=o)})("change",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.onAssignedToFilterChange())}),e.TgZ(1,"option",37),e._uU(2,"Owner: Anyone"),e.qZA(),e.YNc(3,$e,2,3,"option",38),e.qZA()}if(2&i){const t=e.oxw();e.Q6J("ngModel",t.filters.assignedTo),e.xp6(1),e.Q6J("ngValue",void 0),e.xp6(2),e.Q6J("ngForOf",t.systemAdmins)}}function Re(i,r){if(1&i){const t=e.EpF();e.ynx(0),e.TgZ(1,"button",39),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.openImportDialog())}),e.TgZ(2,"span",19),e._uU(3,"upload_file"),e.qZA()(),e.TgZ(4,"button",40),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.exportCsv())}),e.TgZ(5,"span",19),e._uU(6,"download"),e.qZA()(),e.BQk()}}function Ve(i,r){1&i&&e.GkF(0)}function We(i,r){if(1&i&&(e.TgZ(0,"span",19),e._uU(1),e.qZA()),2&i){const t=e.oxw(2);e.xp6(1),e.Oqu(t.tableSortIcon("organization"))}}function Xe(i,r){1&i&&(e.TgZ(0,"span",19),e._uU(1,"arrow_upward"),e.qZA())}function et(i,r){if(1&i&&(e.TgZ(0,"span",19),e._uU(1),e.qZA()),2&i){const t=e.oxw(2);e.xp6(1),e.Oqu(t.tableSortIcon("lastContactedAt"))}}function tt(i,r){if(1&i&&(e.TgZ(0,"span",19),e._uU(1),e.qZA()),2&i){const t=e.oxw(2);e.xp6(1),e.Oqu(t.tableSortIcon("createdAt"))}}function nt(i,r){if(1&i&&(e.TgZ(0,"span",72),e._uU(1),e.qZA()),2&i){const t=e.oxw().$implicit,n=e.oxw(2);e.xp6(1),e.Oqu(n.leadPerson(t))}}function ot(i,r){if(1&i){const t=e.EpF();e.TgZ(0,"div",58),e.NdJ("click",function(){const a=e.CHM(t).$implicit,s=e.oxw(2);return e.KtG(s.openFromTable(a))}),e.TgZ(1,"label",59),e.NdJ("click",function(o){return o.stopPropagation()}),e.TgZ(2,"input",60),e.NdJ("change",function(){const a=e.CHM(t).$implicit,s=e.oxw(2);return e.KtG(s.toggleSelect(a))}),e.qZA(),e.TgZ(3,"span",49)(4,"span",19),e._uU(5,"check"),e.qZA()()(),e.TgZ(6,"span",61)(7,"span",62),e._uU(8),e.qZA(),e.YNc(9,nt,2,1,"span",63),e.qZA(),e.TgZ(10,"span",64),e._UZ(11,"span",65),e.TgZ(12,"span",66),e._uU(13),e.qZA()(),e.TgZ(14,"span",67)(15,"span",68),e._uU(16),e.qZA()(),e.TgZ(17,"span",69),e._uU(18),e.ALo(19,"date"),e.qZA(),e.TgZ(20,"span",67)(21,"span",70),e._uU(22),e.qZA()(),e.TgZ(23,"span",69),e._uU(24),e.qZA(),e.TgZ(25,"span",69),e._uU(26),e.qZA(),e.TgZ(27,"span",71),e._uU(28),e.ALo(29,"date"),e.qZA()()}if(2&i){const t=r.$implicit,n=e.oxw(2);e.ekj("is-checked",n.isSelected(t)),e.xp6(2),e.Q6J("checked",n.isSelected(t)),e.uIk("aria-label","Select "+n.leadTitle(t)),e.xp6(6),e.Oqu(n.leadTitle(t)),e.xp6(1),e.Q6J("ngIf",t.organization&&n.leadPerson(t)),e.xp6(2),e.Udp("background",n._leadsService.getStatusColor(t.status)),e.xp6(2),e.Oqu(t.status||"No status"),e.xp6(2),e.uIk("data-tone",n.dueTone(t)),e.xp6(1),e.Oqu(n.dueLabel(t)),e.xp6(1),e.ekj("is-never",!t.lastContactedAt),e.xp6(1),e.hij(" ",t.last
1ContactedAt?e.xi3(19,21,t.lastContactedAt,"MMM d, y"):"Never"," "),e.xp6(3),e.ekj("is-none",!t.assignedTo),e.Q6J("matTooltip",n.assigneeName(t)),e.xp6(1),e.Oqu(t.assignedTo?n.userInitials(t.assignedTo):"\u2014"),e.xp6(2),e.Oqu(t.source||"\u2014"),e.xp6(2),e.Oqu(t.state||"\u2014"),e.xp6(2),e.Oqu(e.xi3(29,24,t.createdAt,"MMM d, y"))}}function it(i,r){1&i&&(e.TgZ(0,"div",73),e._UZ(1,"span",74),e._uU(2,"Loading leads\u2026 "),e.qZA())}function at(i,r){if(1&i){const t=e.EpF();e.TgZ(0,"button",77),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(3);return e.KtG(o.resetFilters())}),e._uU(1,"Clear filters"),e.qZA()}}function rt(i,r){if(1&i&&(e.TgZ(0,"div",75)(1,"span",19),e._uU(2,"person_search"),e.qZA(),e.TgZ(3,"p"),e._uU(4,"No leads match these filters."),e.qZA(),e.YNc(5,at,2,0,"button",76),e.qZA()),2&i){const t=e.oxw(2);e.xp6(5),e.Q6J("ngIf",t.hasActiveFilters)}}function st(i,r){if(1&i){const t=e.EpF();e.TgZ(0,"div",78)(1,"span",79),e._uU(2),e.qZA(),e.TgZ(3,"div",80)(4,"button",81),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.tablePrevPage())}),e.TgZ(5,"span",19),e._uU(6,"chevron_left"),e.qZA()(),e.TgZ(7,"button",82),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.tableNextPage())}),e.TgZ(8,"span",19),e._uU(9,"chevron_right"),e.qZA()()()()}if(2&i){const t=e.oxw(2);e.xp6(2),e.Oqu(t.tableRangeLabel),e.xp6(2),e.Q6J("disabled",t.tablePage<=1),e.xp6(3),e.Q6J("disabled",t.tablePage>=t.tableTotalPages)}}function lt(i,r){if(1&i){const t=e.EpF();e.TgZ(0,"div",41),e.YNc(1,Ve,1,0,"ng-container",42),e.TgZ(2,"div",43)(3,"div",44)(4,"div",45)(5,"div",46)(6,"label",47),e.NdJ("click",function(o){return o.stopPropagation()}),e.TgZ(7,"input",48),e.NdJ("change",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.toggleSelectAllOnPage())}),e.qZA(),e.TgZ(8,"span",49)(9,"span",19),e._uU(10,"check"),e.qZA()()(),e.TgZ(11,"span",50),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.setTableSort("organization"))}),e._uU(12," Lead"),e.YNc(13,We,2,1,"span",51),e.qZA(),e.TgZ(14,"span",52),e._uU(15,"Status"),e.qZA(),e.TgZ(16,"span",53),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.setTableSort("worklist"))}),e._uU(17," Next step"),e.YNc(18,Xe,2,0,"span",51),e.qZA(),e.TgZ(19,"span",50),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.setTableSort("lastContactedAt"))}),e._uU(20," Last contact"),e.YNc(21,et,2,1,"span",51),e.qZA(),e.TgZ(22,"span",52),e._uU(23,"Owner"),e.qZA(),e.TgZ(24,"span",52),e._uU(25,"Source"),e.qZA(),e.TgZ(26,"span",52),e._uU(27,"State"),e.qZA(),e.TgZ(28,"span",50),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.setTableSort("createdAt"))}),e._uU(29," Created"),e.YNc(30,tt,2,1,"span",51),e.qZA()(),e.YNc(31,ot,30,27,"div",54),e.qZA()(),e.YNc(32,it,3,0,"div",55),e.YNc(33,rt,6,1,"div",56),e.YNc(34,st,10,3,"div",57),e.qZA()()}if(2&i){const t=e.oxw(),n=e.MAs(33);e.xp6(1),e.Q6J("ngTemplateOutlet",n),e.xp6(6),e.Q6J("checked",t.allOnPageSelected),e.xp6(4),e.ekj("is-on","organization"===t.tableSort),e.xp6(2),e.Q6J("ngIf",t.tableSortIcon("organization")),e.xp6(3),e.ekj("is-on","worklist"===t.tableSort),e.xp6(2),e.Q6J("ngIf","worklist"===t.tableSort),e.xp6(1),e.ekj("is-on","lastContactedAt"===t.tableSort),e.xp6(2),e.Q6J("ngIf",t.tableSortIcon("lastContactedAt")),e.xp6(7),e.ekj("is-on","createdAt"===t.tableSort),e.xp6(2),e.Q6J("ngIf",t.tableSortIcon("createdAt")),e.xp6(1),e.Q6J("ngForOf",t.tableLeads),e.xp6(1),e.Q6J("ngIf",t.tableLoading&&!t.tableLeads.length),e.xp6(1),e.Q6J("ngIf",t.tableInitialized&&!t.tableLoading&&!t.tableLeads.length),e.xp6(1),e.Q6J("ngIf",t.tableInitialized&&t.tableLeads.length)}}function ct(i,r){if(1&i){const t=e.EpF();e.TgZ(0,"button",94),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.resetFilters())}),e.TgZ(1,"span",19),e._uU(2,"close"),e.qZA(),e._uU(3,"Clear "),e.qZA()}}function dt(i,r){if(1&i&&e._UZ(0,"span",65),2&i){const t=r.$implicit,n=e.oxw(4);e.Udp("background",n._leadsService.getStatusColor(t))}}function pt(i,r){if(1&i&&(e.TgZ(0,"span",117),e.YNc(1,dt,1,2,"span",118),e.ALo(2,"slice"),e.qZA()),2&i){const t=e.oxw(3);e.xp6(1),e.Q6J("ngForOf",e.Dn7(2,1,t.filters.statuses,0,4))}}function gt(i,r){if(1&i){const t=e.EpF();e.TgZ(0,"button",124),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(4);return e.KtG(o.clearStatuses())}),e._uU(1,"Clear"),e.qZA()}}function _t(i,r){if(1&i){const t=e.EpF();e.TgZ(0,"button",125),e.NdJ("click",function(){const a=e.CHM(t).$implicit,s=e.oxw(4);
1return e.KtG(s.toggleStatus(a))}),e.TgZ(1,"span",126)(2,"span",19),e._uU(3,"check"),e.qZA()(),e._UZ(4,"span",65),e.TgZ(5,"span"),e._uU(6),e.qZA()()}if(2&i){const t=r.$implicit,n=e.oxw(4);e.ekj("checked",n.isStatusActive(t)),e.uIk("aria-selected",n.isStatusActive(t)),e.xp6(4),e.Udp("background",n._leadsService.getStatusColor(t)),e.xp6(2),e.Oqu(t)}}function ut(i,r){if(1&i){const t=e.EpF();e.ynx(0),e.TgZ(1,"div",119),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(3);return e.KtG(o.statusMenuOpen=!1)}),e.qZA(),e.TgZ(2,"div",120)(3,"div",121)(4,"span"),e._uU(5,"Filter by status"),e.qZA(),e.YNc(6,gt,2,0,"button",122),e.qZA(),e.YNc(7,_t,7,6,"button",123),e.qZA(),e.BQk()}if(2&i){const t=e.oxw(3);e.xp6(6),e.Q6J("ngIf",null==t.filters.statuses?null:t.filters.statuses.length),e.xp6(1),e.Q6J("ngForOf",t.leadStatuses)}}function ft(i,r){if(1&i&&(e.TgZ(0,"option",37),e._uU(1),e.qZA()),2&i){const t=r.$implicit;e.Q6J("ngValue",t._id),e.xp6(1),e.AsE("",t.first_name," ",t.last_name,"")}}function xt(i,r){if(1&i){const t=e.EpF();e.TgZ(0,"div",101)(1,"div",102)(2,"label"),e._uU(3,"Status"),e.qZA(),e.TgZ(4,"div",103)(5,"button",104),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.statusMenuOpen=!o.statusMenuOpen)}),e.YNc(6,pt,3,5,"span",105),e.TgZ(7,"span",106),e._uU(8),e.qZA(),e.TgZ(9,"span",107),e._uU(10,"expand_more"),e.qZA()(),e.YNc(11,ut,8,2,"ng-container",17),e.qZA()(),e.TgZ(12,"div",108)(13,"div",102)(14,"label"),e._uU(15,"Assigned to"),e.qZA(),e.TgZ(16,"select",109),e.NdJ("ngModelChange",function(o){e.CHM(t);const a=e.oxw(2);return e.KtG(a.filters.assignedTo=o)})("change",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.onAssignedToFilterChange())}),e.TgZ(17,"option",37),e._uU(18,"Anyone"),e.qZA(),e.YNc(19,ft,2,3,"option",38),e.qZA()(),e.TgZ(20,"div",110)(21,"label"),e._uU(22,"State"),e.qZA(),e.TgZ(23,"input",111),e.NdJ("ngModelChange",function(o){e.CHM(t);const a=e.oxw(2);return e.KtG(a.filters.state=o)})("change",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.applyFilters())}),e.qZA()()(),e.TgZ(24,"div",102)(25,"label"),e._uU(26,"Source"),e.qZA(),e.TgZ(27,"input",112),e.NdJ("ngModelChange",function(o){e.CHM(t);const a=e.oxw(2);return e.KtG(a.filters.source=o)})("change",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.applyFilters())}),e.qZA()(),e.TgZ(28,"div",113)(29,"label",114)(30,"input",115),e.NdJ("ngModelChange",function(o){e.CHM(t);const a=e.oxw(2);return e.KtG(a.filters.hasEmail=o)})("change",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.applyFilters())}),e.qZA(),e.TgZ(31,"span",19),e._uU(32,"mail"),e.qZA(),e._uU(33,"Has email "),e.qZA(),e.TgZ(34,"label",114)(35,"input",115),e.NdJ("ngModelChange",function(o){e.CHM(t);const a=e.oxw(2);return e.KtG(a.filters.hasPhone=o)})("change",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.applyFilters())}),e.qZA(),e.TgZ(36,"span",19),e._uU(37,"call"),e.qZA(),e._uU(38,"Has phone "),e.qZA(),e.TgZ(39,"label",114)(40,"input",115),e.NdJ("ngModelChange",function(o){e.CHM(t);const a=e.oxw(2);return e.KtG(a.filters.hasDemo=o)})("change",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.applyFilters())}),e.qZA(),e.TgZ(41,"span",19),e._uU(42,"videocam"),e.qZA(),e._uU(43,"Demo set "),e.qZA()(),e.TgZ(44,"div",108)(45,"div",102)(46,"label"),e._uU(47,"Added after"),e.qZA(),e.TgZ(48,"input",116),e.NdJ("ngModelChange",function(o){e.CHM(t);const a=e.oxw(2);return e.KtG(a.filters.createdAt_after=o)})("change",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.applyFilters())}),e.qZA()(),e.TgZ(49,"div",102)(50,"label"),e._uU(51,"Added before"),e.qZA(),e.TgZ(52,"input",116),e.NdJ("ngModelChange",function(o){e.CHM(t);const a=e.oxw(2);return e.KtG(a.filters.createdAt_before=o)})("change",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.applyFilters())}),e.qZA()()(),e.TgZ(53,"div",108)(54,"div",102)(55,"label"),e._uU(56,"Contacted after"),e.qZA(),e.TgZ(57,"input",116),e.NdJ("ngModelChange",function(o){e.CHM(t);const a=e.oxw(2);return e.KtG(a.filters.lastContactedAt_after=o)})("change",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.applyFilters())}),e.qZA()(),e.TgZ(58,"div",102)(59,"label"),e._uU(60,"Contacted before"),e.qZA(),e.TgZ(61,"input",116),e.NdJ("ngModelChange",function(o){e.CHM(t);const a=e.oxw(2);return e.KtG(a.filters.lastContactedAt_before=o)})("change",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.applyFilters())}),e.qZA()()()()}if(2&i){const t=e.oxw(2);e.xp6(4),e.ekj("open",t.statusMenuOpen),e.xp6(1),e.ekj("has-value",((null==t.filters.statuses?null:t.filters.statuses.length)||0)>0),e.xp6(1),e.Q6J("ngIf",null==t.filters.statuses?null:t.filters.statuses.length),e.xp6(2),e.Oqu(null!=t.filters.statuses&&t.filters.statuses.length?t.filters.statuses.length+" selected":"Any status"),e.xp6(3),e.Q6J("ngIf",t.statusMenuOpen),e.xp6(
15),e.Q6J("ngModel",t.filters.assignedTo),e.xp6(1),e.Q6J("ngValue",void 0),e.xp6(2),e.Q6J("ngForOf",t.systemAdmins),e.xp6(4),e.Q6J("ngModel",t.filters.state),e.xp6(4),e.Q6J("ngModel",t.filters.source),e.xp6(2),e.ekj("on",t.filters.hasEmail),e.xp6(1),e.Q6J("ngModel",t.filters.hasEmail),e.xp6(4),e.ekj("on",t.filters.hasPhone),e.xp6(1),e.Q6J("ngModel",t.filters.hasPhone),e.xp6(4),e.ekj("on",t.filters.hasDemo),e.xp6(1),e.Q6J("ngModel",t.filters.hasDemo),e.xp6(8),e.Q6J("ngModel",t.filters.createdAt_after),e.xp6(4),e.Q6J("ngModel",t.filters.createdAt_before),e.xp6(5),e.Q6J("ngModel",t.filters.lastContactedAt_after),e.xp6(4),e.Q6J("ngModel",t.filters.lastContactedAt_before)}}function mt(i,r){1&i&&e.GkF(0)}function bt(i,r){1&i&&(e.TgZ(0,"div",127),e._UZ(1,"span",74),e._uU(2,"Loading leads\u2026 "),e.qZA())}function ht(i,r){1&i&&(e.TgZ(0,"p"),e._uU(1,"Nothing due this week."),e.qZA())}function wt(i,r){1&i&&(e.TgZ(0,"p"),e._uU(1,"No leads match these filters."),e.qZA())}function vt(i,r){if(1&i){const t=e.EpF();e.TgZ(0,"button",77),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(3);return e.KtG(o.setScope("all"))}),e._uU(1,"See all leads"),e.qZA()}}function Ct(i,r){if(1&i){const t=e.EpF();e.TgZ(0,"button",77),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(3);return e.KtG(o.resetFilters())}),e._uU(1,"Clear filters"),e.qZA()}}function Mt(i,r){if(1&i&&(e.TgZ(0,"div",75)(1,"span",19),e._uU(2,"person_search"),e.qZA(),e.YNc(3,ht,2,0,"p",17),e.YNc(4,wt,2,0,"p",17),e.YNc(5,vt,2,0,"button",76),e.YNc(6,Ct,2,0,"button",76),e.qZA()),2&i){const t=e.oxw(2);e.xp6(3),e.Q6J("ngIf","followUp"===t.scope),e.xp6(1),e.Q6J("ngIf","followUp"!==t.scope),e.xp6(1),e.Q6J("ngIf","followUp"===t.scope),e.xp6(1),e.Q6J("ngIf","followUp"!==t.scope&&t.hasActiveFilters)}}function Ot(i,r){1&i&&(e.TgZ(0,"span",143),e._uU(1,"\xb7"),e.qZA())}function Tt(i,r){if(1&i&&(e.TgZ(0,"span",144),e._uU(1),e.qZA()),2&i){const t=e.oxw().$implicit,n=e.oxw(3);e.xp6(1),e.Oqu(n.leadPerson(t))}}function Pt(i,r){if(1&i){const t=e.EpF();e.TgZ(0,"div",133),e.NdJ("click",function(){const a=e.CHM(t).$implicit,s=e.oxw(3);return e.KtG(s.selectLead(a))}),e.TgZ(1,"label",134),e.NdJ("click",function(o){return o.stopPropagation()}),e.TgZ(2,"input",60),e.NdJ("change",function(){const a=e.CHM(t).$implicit,s=e.oxw(3);return e.KtG(s.toggleSelect(a))}),e.qZA(),e.TgZ(3,"span",49)(4,"span",19),e._uU(5,"check"),e.qZA()()(),e.TgZ(6,"div",135)(7,"div",136)(8,"span",137),e._uU(9),e.qZA(),e.TgZ(10,"span",68),e._uU(11),e.qZA()(),e.TgZ(12,"div",138),e._UZ(13,"span",65),e.TgZ(14,"span",139),e._uU(15),e.qZA(),e.YNc(16,Ot,2,0,"span",140),e.YNc(17,Tt,2,1,"span",141),e._UZ(18,"span",142),e.TgZ(19,"span",70),e._uU(20),e.qZA()()()()}if(2&i){const t=r.$implicit,n=e.oxw(3);e.ekj("is-active",n.isActive(t))("is-checked",n.isSelected(t)),e.xp6(2),e.Q6J("checked",n.isSelected(t)),e.xp6(7),e.Oqu(n.leadTitle(t)),e.xp6(1),e.uIk("data-tone",n.dueTone(t)),e.xp6(1),e.Oqu(n.dueLabel(t)),e.xp6(2),e.Udp("background",n._leadsService.getStatusColor(t.status)),e.xp6(2),e.Oqu(t.status||"No status"),e.xp6(1),e.Q6J("ngIf",n.leadPerson(t)&&t.organization),e.xp6(1),e.Q6J("ngIf",t.organization),e.xp6(2),e.ekj("is-none",!t.assignedTo),e.Q6J("matTooltip",n.assigneeName(t)),e.xp6(1),e.Oqu(t.assignedTo?n.userInitials(t.assignedTo):"\u2014")}}function yt(i,r){if(1&i&&(e.ynx(0),e.TgZ(1,"div",128),e._UZ(2,"span",129),e.TgZ(3,"span",130),e._uU(4),e.qZA(),e.TgZ(5,"span",131),e._uU(6),e.qZA()(),e.YNc(7,Pt,21,17,"div",132),e.BQk()),2&i){const t=r.$implicit;e.xp6(1),e.uIk("data-bucket",t.key),e.xp6(1),e.Udp("background",t.color),e.xp6(2),e.Oqu(t.label),e.xp6(2),e.Oqu(t.items.length),e.xp6(1),e.Q6J("ngForOf",t.items)}}function Zt(i,r){if(1&i){const t=e.EpF();e.TgZ(0,"div",78)(1,"span",79),e._uU(2),e.qZA(),e.TgZ(3,"div",80)(4,"button",81),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.prevPage())}),e.TgZ(5,"span",19),e._uU(6,"chevron_left"),e.qZA()(),e.TgZ(7,"button",82),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.nextPage())}),e.TgZ(8,"span",19),e._uU(9,"chevron_right"),e.qZA()()()()}if(2&i){const t=e.oxw(2);e.xp6(2),e.Oqu(t.rangeLabel),e.xp6(2),e.Q6J("disabled",t.page<=1),e.xp6(3),e.Q6J("disabled",t.page>=t.totalPages)}}function kt(i,r){if(1&i&&(e.TgZ(0,"span",205),e._UZ(1,"span",65),e._uU(2),e.qZA()),2&i){const t=e.oxw(3);e.Udp("--chip",t._leadsService.getStatusColor(t.activeLead.status)),e.xp6(2),e.hij("",t.activeLead.status," ")}}function Lt(i,r){if(1&i&&(e.TgZ(0,"span",206)(1,"span",19),e._uU(2,"schedule"),e.qZA(),e._uU(3),e.qZA()),2&i){const t=e.oxw(3);e.xp6(3),e.AsE(" ",t.overdueDays(t.activeLead)," day",1===t.overdueDays(t.activeLead)?"":"s"," overdue ")}}function At(i,r){1&i&&(e.TgZ(0,"span",207),e._uU(1,"No next step"),e.qZA())}function St(i,r){if(1&i&&(e.TgZ(0,"span",208),e._uU(1),e.qZA()),2&i){const t=e.oxw(3);e.xp6(1),e.Oqu(t.leadPerson(t.activeLead))}}function qt(i,r){if(1&i&&(e.TgZ(0,"a",209),e._uU(1),e.qZA()),2&i){const t=e.oxw(3);e.Q6J("href","mailto:"+t.activeLead.email,e.LSH),e.xp6(1),e.Oqu(t.activeLead.email)}}function Ut(i,r){if(1&i&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&i){const t=e.oxw(3);e.xp6(1),e.Oqu(t.activeLead.phone)}}function Nt(i,r){if(1&i&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&i){const t=e.oxw(3);e.xp6(1),e.Oqu(t.activeLead.state)}}function Jt(i,r){if(1&i&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&i){const t=e.oxw(3);e.xp6(1),e.hij("Source: ",t.activeLead.source,"")}}function It(i,r){if(1&i&&(e.TgZ(0,"a",210),e._uU(1,"Website"),e.qZA()),2&i){const t=e.oxw(3);e.Q6J("href",t.activeLead.website,e.LSH)}}function Ft(i,r){if(1&i){const t=e.EpF();e.TgZ(0,"button",215),e.NdJ("click",function(){const a=e.CHM(t).$implicit,s=e.oxw(4);return e.KtG(s.assignLead(a._id))}),e.TgZ(1,"span",162),e._uU(2),e.qZA(),e._uU(3),e.qZA()}if(2&i){const t=r.$implicit,n=e.oxw(4);e.ekj("is-on",(null==n.activeLead.assignedTo?null:n.activeLead.assignedTo._id)===t._id),e.xp6(2),e.Oqu(n.userInitials(t)),e.xp6(1),e.AsE("",t.first_name," ",t.last_name," ")}}function Gt(i,r){if(1&i){const t=e.EpF();e.ynx(0),e.TgZ(1,"div",119),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(3);return e.KtG(o.assigneeMenuOpen=!1)}),e.qZA(),e.TgZ(2,"div",211),e.YNc(3,Ft,4,5,"button",212),e.TgZ(4,"button",213),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(3);return e.KtG(o.assignLead(null))}),e.TgZ(5,"span",214),e._uU(6,"\u2014"),e.qZA(),e._uU(7,"Unassigned "),e.qZA()(),e.BQk()}if(2&i){const t=e.oxw(3);e.xp6(3),e.Q6J("ngForOf",t.systemAdmins)}}function zt(i,r){if(1&i){const t=e.EpF();e.TgZ(0,"button",216),e.NdJ("click",function(){const a=e.CHM(t).$implicit,s=e.oxw(3);
1return e.KtG(s.jumpToStatus(a))}),e._UZ(1,"span",217),e.TgZ(2,"span",218),e._uU(3),e.qZA()()}if(2&i){const t=r.$implicit,n=r.index,o=e.oxw(3);e.Q6J("disabled",o.statusSaving)("matTooltip","Set status to "+t),e.uIk("data-state",o.segmentState(n)),e.xp6(3),e.Oqu(o.stepLabel(t))}}function Dt(i,r){if(1&i){const t=e.EpF();e.TgZ(0,"button",219),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(3);return e.KtG(o.advanceStatus())}),e._uU(1),e.qZA()}if(2&i){const t=e.oxw(3);e.Q6J("disabled",t.statusSaving),e.xp6(1),e.hij(" Advance \u2192 ",t.stepLabel(t.nextPipelineStatus)," ")}}function Qt(i,r){if(1&i){const t=e.EpF();e.TgZ(0,"button",215),e.NdJ("click",function(){const a=e.CHM(t).$implicit,s=e.oxw(4);return e.KtG(s.jumpToStatus(a))}),e._UZ(1,"span",65),e._uU(2),e.qZA()}if(2&i){const t=r.$implicit,n=e.oxw(4);e.ekj("is-on",n.activeLead.status===t),e.xp6(1),e.Udp("background",n._leadsService.getStatusColor(t)),e.xp6(1),e.hij("",t," ")}}function Et(i,r){if(1&i){const t=e.EpF();e.ynx(0),e.TgZ(1,"div",119),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(3);return e.KtG(o.stageMenuOpen=!1)}),e.qZA(),e.TgZ(2,"div",211),e.YNc(3,Qt,3,5,"button",212),e.qZA(),e.BQk()}if(2&i){const t=e.oxw(3);e.xp6(3),e.Q6J("ngForOf",t.negativeStatuses)}}function Yt(i,r){if(1&i&&(e.ynx(0),e._uU(1),e.ALo(2,"date"),e.TgZ(3,"span",220),e._uU(4),e.qZA(),e.BQk()),2&i){const t=e.oxw(3);e.xp6(1),e.hij(" Next step ",e.xi3(2,2,t.activeLead.nextStepTargetDate,"MMM d")," "),e.xp6(3),e.hij("\xb7 ",t.dueLabel(t.activeLead),"")}}function Ht(i,r){1&i&&(e.ynx(0),e._uU(1,"Set a next step"),e.BQk())}function jt(i,r){if(1&i){const t=e.EpF();e.TgZ(0,"button",228),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(4);return e.KtG(o.saveNextStep(!0))}),e._uU(1,"Clear next step"),e.qZA()}if(2&i){const t=e.oxw(4);e.Q6J("disabled",t.nextStepSaving)}}function Kt(i,r){if(1&i){const t=e.EpF();e.ynx(0),e.TgZ(1,"div",119),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(3);return e.KtG(o.nextStepEditorOpen=!1)}),e.qZA(),e.TgZ(2,"div",221)(3,"div",222),e._uU(4,"Next step"),e.qZA(),e.TgZ(5,"div",223)(6,"button",124),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(3);return e.KtG(o.nextStepPreset(1))}),e._uU(7,"Tomorrow"),e.qZA(),e.TgZ(8,"button",124),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(3);return e.KtG(o.nextStepPreset(3))}),e._uU(9,"In 3 days"),e.qZA(),e.TgZ(10,"button",124),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(3);return e.KtG(o.nextStepPreset(7))}),e._uU(11,"Next week"),e.qZA()(),e.TgZ(12,"div",224)(13,"input",225),e.NdJ("ngModelChange",function(o){e.CHM(t);const a=e.oxw(3);return e.KtG(a.nextStepValue=o)}),e.qZA(),e.TgZ(14,"button",226),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(3);return e.KtG(o.saveNextStep())}),e._uU(15,"Save"),e.qZA()(),e.YNc(16,jt,2,1,"button",227),e.qZA(),e.BQk()}if(2&i){const t=e.oxw(3);e.xp6(13),e.Q6J("ngModel",t.nextStepValue),e.xp6(1),e.Q6J("disabled",t.nextStepSaving),e.xp6(2),e.Q6J("ngIf",t.activeLead.nextStepTargetDate)}}function $t(i,r){if(1&i){const t=e.EpF();e.TgZ(0,"button",229),e.NdJ("click",function(){const a=e.CHM(t).$implicit,s=e.oxw(3);return e.KtG(s.setComposerTab(a.key))}),e.TgZ(1,"span",19),e._uU(2),e.qZA(),e._uU(3),e.qZA()}if(2&i){const t=r.$implicit,n=e.oxw(3);e.ekj("is-on",n.composerTab===t.key&&"email"!==t.key),e.xp6(2),e.Oqu(t.icon),e.xp6(1),e.hij("",t.label," ")}}function Bt(i,r){if(1&i){const t=e.EpF();e.TgZ(0,"button",232),e.NdJ("click",function(){const a=e.CHM(t).$implicit,s=e.oxw(4);return e.KtG(s.callOutcome=a.key)}),e._uU(1),e.qZA()}if(2&i){const t=r.$implicit,n=e.oxw(4);e.ekj("is-on",n.callOutcome===t.key),e.xp6(1),e.Oqu(t.label)}}function Rt(i,r){if(1&i&&(e.TgZ(0,"div",230),e.YNc(1,Bt,2,3,"button",231),e.qZA()),2&i){const t=e.oxw(3);e.xp6(1),e.Q6J("ngForOf",t.callOutcomes)}}function Vt(i,r){1&i&&(e.TgZ(0,"div",233)(1,"span",19),e._uU(2,"info"),e.qZA(),e._uU(3,"This lead has no phone number. "),e.qZA())}function Wt(i,r){if(1&i){const t=e.EpF();e.TgZ(0,"div",234)(1,"label"),e._uU(2,"Demo date & time"),e.qZA(),e.TgZ(3,"input",235),e.NdJ("ngModelChange",function(o){e.CHM(t);const a=e.oxw(3);
1return e.KtG(a.demoDateValue=o)}),e.qZA()()}if(2&i){const t=e.oxw(3);e.xp6(3),e.Q6J("ngModel",t.demoDateValue)}}function Xt(i,r){if(1&i){const t=e.EpF();e.TgZ(0,"label",236)(1,"input",237),e.NdJ("ngModelChange",function(o){e.CHM(t);const a=e.oxw(3);return e.KtG(a.alsoSetNextStep=o)}),e.qZA(),e.TgZ(2,"span",49)(3,"span",19),e._uU(4,"check"),e.qZA()(),e._uU(5," Set next step +3 days "),e.qZA()}if(2&i){const t=e.oxw(3);e.Q6J("matTooltip",t.alsoSetNextStepTooltip),e.xp6(1),e.Q6J("ngModel",t.alsoSetNextStep)}}function en(i,r){if(1&i){const t=e.EpF();e.TgZ(0,"label",238)(1,"input",237),e.NdJ("ngModelChange",function(o){e.CHM(t);const a=e.oxw(3);return e.KtG(a.alsoAdvanceStatus=o)}),e.qZA(),e.TgZ(2,"span",49)(3,"span",19),e._uU(4,"check"),e.qZA()(),e._uU(5),e.qZA()}if(2&i){const t=e.oxw(3);e.xp6(1),e.Q6J("ngModel",t.alsoAdvanceStatus),e.xp6(4),e.hij(" Move to ",t.nextPipelineStatus," ")}}function tn(i,r){if(1&i&&(e.TgZ(0,"div",195)(1,"span",196),e._uU(2,"Demo"),e.qZA(),e.TgZ(3,"span",197),e._uU(4),e.ALo(5,"date"),e.qZA()()),2&i){const t=e.oxw(3);e.xp6(4),e.Oqu(e.xi3(5,1,t.activeLead.demoScheduledAt,"MMM d, h:mm a"))}}function nn(i,r){if(1&i&&(e.TgZ(0,"p",239),e._uU(1),e.qZA()),2&i){const t=e.oxw(3);e.xp6(1),e.Oqu(t.activeLead.notes)}}function on(i,r){1&i&&(e.TgZ(0,"p",240),e._uU(1,"No notes on this lead yet."),e.qZA())}function an(i,r){if(1&i){const t=e.EpF();e.TgZ(0,"section",145)(1,"div",146)(2,"div",147)(3,"span",148),e._uU(4),e.qZA(),e.TgZ(5,"div",149)(6,"div",150)(7,"span",151),e._uU(8),e.qZA(),e.YNc(9,kt,3,3,"span",152),e.YNc(10,Lt,4,2,"span",153),e.YNc(11,At,2,0,"span",154),e.qZA(),e.TgZ(12,"div",155),e.YNc(13,St,2,1,"span",156),e.YNc(14,qt,2,2,"a",157),e.YNc(15,Ut,2,1,"span",17),e.YNc(16,Nt,2,1,"span",17),e.YNc(17,Jt,2,1,"span",17),e.YNc(18,It,2,1,"a",158),e.qZA()()(),e.TgZ(19,"div",159)(20,"div",160)(21,"button",161),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.assigneeMenuOpen=!o.assigneeMenuOpen)}),e.TgZ(22,"span",162),e._uU(23),e.qZA(),e._uU(24),e.TgZ(25,"span",107),e._uU(26,"expand_more"),e.qZA()(),e.YNc(27,Gt,8,1,"ng-container",17),e.qZA(),e.TgZ(28,"button",163),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.editActiveLead())}),e._uU(29,"Edit"),e.qZA(),e.TgZ(30,"button",164),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.openFullRecord())}),e.TgZ(31,"span",19),e._uU(32,"open_in_full"),e.qZA()(),e.TgZ(33,"button",165),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.convertToDirector())}),e.TgZ(34,"span",19),e._uU(35,"how_to_reg"),e.qZA(),e._uU(36),e.qZA()()(),e.TgZ(37,"div",166)(38,"div",167),e.YNc(39,zt,4,4,"button",168),e.qZA(),e.YNc(40,Dt,2,2,"button",169),e.TgZ(41,"div",170)(42,"button",171),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.stageMenuOpen=!o.stageMenuOpen)}),e._uU(43),e.TgZ(44,"span",107),e._uU(45,"expand_more"),e.qZA()(),e.YNc(46,Et,4,1,"ng-container",17),e.qZA(),e._UZ(47,"span",172),e.TgZ(48,"div",173)(49,"button",174),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.nextStepEditorOpen?o.nextStepEditorOpen=!1:o.openNextStepEditor())}),e.TgZ(50,"span",19),e._uU(51,"event"),e.qZA(),e.YNc(52,Yt,5,5,"ng-container",17),e.YNc(53,Ht,2,0,"ng-container",17),e.qZA(),e.YNc(54,Kt,17,3,"ng-container",17),e.qZA()(),e.TgZ(55,"div",175)(56,"div",176)(57,"div",177)(58,"div",178),e.YNc(59,$t,4,4,"button",179),e.TgZ(60,"span",180),e._uU(61,"Saves straight to the feed"),e.qZA()(),e.TgZ(62,"div",181),e.YNc(63,Rt,2,1,"div",182),e.YNc(64,Vt,4,0,"div",183),e.YNc(65,Wt,4,1,"div",184),e.TgZ(66,"textarea",185),e.NdJ("ngModelChange",function(o){e.CHM(t);const a=e.oxw(2);return e.KtG(a.composerBody=o)}),e.qZA(),e.TgZ(67,"div",186)(68,"div",187),e.YNc(69,Xt,6,2,"label",188),e.YNc(70,en,6,2,"label",189),e.qZA(),e.TgZ(71,"button",190),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.submitComposer())}),e.TgZ(72,"span",19),e._uU(73),e.qZA(),e._uU(74),e.qZA()()()(),e.TgZ(75,"div",191)(76,"span",91),e._uU(77,"Activity"),e.qZA(),e._UZ(78,"lead-activity-feed",192),e.qZA()(),e.TgZ(79,"aside",193)(80,"div",194)(81,"span",91),e._uU(82,"Record"),e.qZA(),e.TgZ(83,"div",195)(84,"span",196),e._uU(85,"Next step"),e.qZA(),e.TgZ(86,"span",197),e._uU(87),e.ALo(88,"date"),e.qZA()(),e.TgZ(89,"div",195)(90,"span",196),e._uU(91,"Last contact"),e.qZA(),e.TgZ(92,"span",197),e._uU(93),e.ALo(94,"date"),e.qZA()(),e.YNc(95,tn,6,4,"div",198),e.TgZ(96,"div",195)(97,"span",196),e._uU(98,"Source"),e.qZA(),e.TgZ(99,"span",197),e._uU(100),e.qZA()(),e.TgZ(101,"div",195)(102,"span",196),e._uU(103,"Location"),e.qZA(),e.TgZ(104,"span",197),e._uU(105),e.qZA()(),e.TgZ(106,"div",195)(107,"span",196),e._uU(108,"Created"),e.qZA(),e.TgZ(109,"span",197),e._uU(110),e.ALo(111,"date"),e.qZA()()(),e.TgZ(112,"div",194)(113,"div",199)(114,"span",91),e._uU(115,"Notes"),e.qZA(),e.TgZ(116,"button",200),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.editActiveLead())}),e.TgZ(117,"span",19),e._uU(118,"edit"),e.qZA()()(),e.YNc(119,nn,2,1,"p",201),e.YNc(120,on,2,0,"p",202),e.qZA(),e.TgZ(121,"div",203)(122,"button",124),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.setComposerTab("demo"))}),e.TgZ(123,"span",19),e._uU(124,"videocam"),e.qZA(),e._uU(125,"Schedule demo "),e.qZA(),e.TgZ(126,"button",124),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.sendOutreachEmail())}),e.TgZ(127,"span",19),e._uU(128,"mail"),e.qZA(),e._uU(129,"Send outreach email "),e.qZA(),e.TgZ(130,"button",124),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.sendActiveToCampaign())}),e.TgZ(131,"span",19),e._uU(132,"rocket_launch"),e.qZA(),e._uU(133,"Send to campaign "),e.qZA(),e.TgZ(134,"button",204),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.markDnc())}),e.TgZ(135,"span",19),e._uU(136,"block"),e.qZA(),e._uU(137,"Mark DNC "),e.qZA()()()()()}if(2&i){const t=e.oxw(2);e.xp6(4),e.Oqu(t.leadInitials(t.activeLead)),e.xp6(4),e.Oqu(t.leadTitle(t.activeLead)),e.xp6(1),e.Q6J("ngIf",t.activeLead.status),e.xp6(1),e.Q6J("ngIf",t.overdueDays(t.activeLead)),e.xp6(1),e.Q6J("ngIf",!t.activeLead.nextStepTargetDate),e.xp6(2),e.Q6J("ngIf",t.activeLead.organization&&t.leadPerson(t.activeLead)),e.xp6(1),e.Q6J("ngIf",t.activeLead.email),e.xp6(1),e.Q6J("ngIf",t.activeLead.phone),e.xp6(1),e.Q6J("ngIf",t.activeLead.state),e.xp6(1),e.Q6J("ngIf",t.activeLead.source),e.xp6(1),e.Q6J("ngIf",t.activeLead.website),e.xp6(3),e.Q6J("disabled",t.assigning),e.xp6(1),e.ekj("is-none",!t.activeLead.assignedTo),e.xp6(1),e.Oqu(t.activeLead.assignedTo?t.userInitials(t.activeLead.assignedTo):"\u2014"),e.xp6(1),e.hij(" ",t.assigneeName(t.activeLead)," "),e.xp6(3),e.Q6J("ngIf",t.assigneeMenuOpen),e.xp6(6),e.Q6J("disabled",t.convert
1ing||"Converted"===t.activeLead.status&&!!t.activeLead.user),e.xp6(3),e.hij(" ","Converted"===t.activeLead.status&&t.activeLead.user?"Converted":t.converting?"Converting\u2026":"Convert to Director"," "),e.xp6(3),e.Q6J("ngForOf",t.positiveStatuses),e.xp6(1),e.Q6J("ngIf",t.nextPipelineStatus),e.xp6(2),e.ekj("is-on",t.onOffRamp),e.Q6J("disabled",t.statusSaving),e.xp6(1),e.hij(" ",t.onOffRamp?t.activeLead.status:"Not interested / DNC"," "),e.xp6(3),e.Q6J("ngIf",t.stageMenuOpen),e.xp6(3),e.uIk("data-tone",t.activeLead.nextStepTargetDate?t.dueTone(t.activeLead):"none"),e.xp6(3),e.Q6J("ngIf",t.activeLead.nextStepTargetDate),e.xp6(1),e.Q6J("ngIf",!t.activeLead.nextStepTargetDate),e.xp6(1),e.Q6J("ngIf",t.nextStepEditorOpen),e.xp6(5),e.Q6J("ngForOf",t.composerTabs),e.xp6(4),e.Q6J("ngIf","call"===t.composerTab),e.xp6(1),e.Q6J("ngIf","sms"===t.composerTab&&!t.activeLead.phone),e.xp6(1),e.Q6J("ngIf","demo"===t.composerTab),e.xp6(1),e.Q6J("placeholder",t.composerPlaceholder)("ngModel",t.composerBody)("disabled","sms"===t.composerTab&&!t.activeLead.phone),e.xp6(3),e.Q6J("ngIf","demo"!==t.composerTab),e.xp6(1),e.Q6J("ngIf",t.nextPipelineStatus),e.xp6(1),e.Q6J("disabled",!t.canSubmitComposer),e.xp6(2),e.Oqu(t.composerSaving?"hourglass_top":"send"),e.xp6(1),e.hij(" ",t.composerSaving?"Saving\u2026":t.composerSubmitLabel," "),e.xp6(4),e.Q6J("leadId",t.activeLead._id)("leadCreatedAt",t.activeLead.createdAt),e.xp6(8),e.ekj("is-danger","danger"===t.dueTone(t.activeLead)&&t.activeLead.nextStepTargetDate),e.xp6(1),e.hij(" ",t.activeLead.nextStepTargetDate?e.xi3(88,55,t.activeLead.nextStepTargetDate,"MMM d")+" \xb7 "+t.dueLabel(t.activeLead):"Not set"," "),e.xp6(6),e.Oqu(t.activeLead.lastContactedAt?e.xi3(94,58,t.activeLead.lastContactedAt,"MMM d, y"):"Never"),e.xp6(2),e.Q6J("ngIf",t.activeLead.demoScheduledAt),e.xp6(5),e.Oqu(t.activeLead.source||"\u2014"),e.xp6(5),e.Oqu((t.activeLead.city?t.activeLead.city+", ":"")+(t.activeLead.state||"")||"\u2014"),e.xp6(5),e.Oqu(e.xi3(111,61,t.activeLead.createdAt,"MMM d, y")),e.xp6(9),e.Q6J("ngIf",t.activeLead.notes),e.xp6(1),e.Q6J("ngIf",!t.activeLead.notes),e.xp6(14),e.Q6J("disabled","DNC"===t.activeLead.status)}}function rn(i,r){1&i&&(e.TgZ(0,"section",241)(1,"span",19),e._uU(2,"contacts"),e.qZA(),e.TgZ(3,"h3"),e._uU(4,"Pick a lead"),e.qZA(),e.TgZ(5,"p"),e._uU(6,"Choose a lead from the worklist to log a call, move it through the pipeline, or convert it."),e.qZA()())}function sn(i,r){if(1&i){const t=e.EpF();e.TgZ(0,"div",83,84)(2,"aside",85)(3,"div",86)(4,"div",87)(5,"button",88),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.setScope("followUp"))}),e._uU(6," Follow-up "),e.TgZ(7,"span",89),e._uU(8),e.ALo(9,"number"),e.qZA()(),e.TgZ(10,"button",88),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.setScope("mine"))}),e._uU(11," Mine "),e.TgZ(12,"span",89),e._uU(13),e.ALo(14,"number"),e.qZA()(),e.TgZ(15,"button",88),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.setScope("all"))}),e._uU(16," All "),e.TgZ(17,"span",89),e._uU(18),e.ALo(19,"number"),e.qZA()()(),e.TgZ(20,"div",90)(21,"span",91),e._uU(22,"Sorted by next step"),e.qZA(),e.TgZ(23,"div",92),e.YNc(24,ct,4,0,"button",93),e.TgZ(25,"button",94),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.toggleAdvanced())}),e.TgZ(26,"span",19),e._uU(27,"tune"),e.qZA(),e._uU(28,"Filters "),e.qZA()()()(),e.YNc(29,xt,62,25,"div",95),e.YNc(30,mt,1,0,"ng-container",42),e.TgZ(31,"div",96),e.YNc(32,bt,3,0,"div",97),e.YNc(33,Mt,7,4,"div",56),e.YNc(34,yt,8,6,"ng-container",98),e.qZA(),e.YNc(35,Zt,10,3,"div",57),e.qZA(),e.YNc(36,an,138,64,"section",99),e.YNc(37,rn,7,0,"ng-template",null,100,e.W1O),e.qZA()}if(2&i){const t=e.MAs(38),n=e.oxw(),o=e.MAs(33);e.ekj("has-active",!!n.activeLead),e.xp6(5),e.ekj("is-on","followUp"===n.scope),e.xp6(3),e.Oqu(e.lcZ(9,22,n.counts.followUp)),e.xp6(2),e.ekj("is-on","mine"===n.scope),e.xp6(3),e.Oqu(e.lcZ(14,24,n.counts.mine)),e.xp6(2),e.ekj("is-on","all"===n.scope),e.xp6(3),e.Oqu(e.lcZ(19,26,n.counts.total)),e.xp6(6),e.Q6J("ngIf",n.hasActiveFilters),e.xp6(1),e.ekj("is-on",n.filtersExpanded||n.hasActiveFilters),e.xp6(4),e.Q6J("ngIf",n.filtersExpanded),e.xp6(1),e.Q6J("ngTemplateOutlet",o),e.xp6(2),e.Q6J("ngIf",!n.initialized),e.xp6(1),e.Q6J("ngIf",n.initialized&&!n.leads.length),e.xp6(1),e.Q6J("ngForOf",n.groups),e.xp6(1),e.Q6J("ngIf",n.initialized&&n.leads.length),e.xp6(1),e.Q6J("ngIf",n.activeLead)("ngIfElse",t)}}function ln(i,r){1&i&&(e.TgZ(0,"p"),e._uU(1,"Nothing left in this queue."),e.qZA())}function cn(i,r){1&i&&(e.TgZ(0,"p"),e._uU(1,"Loading the queue\u2026"),e.qZA())}function dn(i,r){if(1&i){const t=e.EpF();e.TgZ(0,"button",77),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(3);return e.KtG(o.setScope("all"))}),e._uU(1,"See all leads"),e.qZA()}}function pn(i,r){if(1&i&&(e.TgZ(0,"div",254)(1,"span",19),e._uU(2,"task_alt"),e.qZA(),e.YNc(3,ln,2,0,"p",17),e.YNc(4,cn,2,0,"p",17),e.YNc(5,dn,2,0,"button",76),e.qZA()),2&i){const t=e.oxw(2);e.xp6(3),e.Q6J("ngIf",t.initialized&&!t.leads.length),e.xp6(1),e.Q6J("ngIf",!t.initialized),e.xp6(1),e.Q6J("ngIf",t.initialized&&!t.leads.length&&"followUp"===t.scope)}}function gn(i,r){if(1&i&&(e.TgZ(0,"span",205),e._UZ(1,"span",65),e._uU(2),e.qZA()),2&i){const t=e.oxw(3);e.Udp("--chip",t._leadsService.getStatusColor(t.activeLead.status)),e.xp6(2),e.hij("",t.activeLead.status," ")}}function _n(i,r){if(1&i&&(e.TgZ(0,"span",206)(1,"span",19),e._uU(2,"schedule"),e.qZA(),e._uU(3),e.qZA()),2&i){const t=e.oxw(3);e.xp6(3),e.AsE(" ",t.overdueDays(t.activeLead)," day",1===t.overdueDays(t.activeLead)?"":"s"," overdue ")}}function un(i,r){1&i&&(e.TgZ(0,"span",207),e._uU(1,"No next step"),e.qZA())}function fn(i,r){if(1&i&&(e.TgZ(0,"span",290),e._uU(1),e.qZA()),2&i){const t=e.oxw(3);e.xp6(1),e.Oqu(t.leadPerson(t.activeLead))}}function xn(i,r){if(1&i&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&i){const t=e.oxw(3);e.xp6(1),e.Oqu(t.activeLead.phone)}}function mn(i,r){if(1&i&&(e.TgZ(0,"a",209),e._uU(1),e.qZA()),2&i){const t=e.oxw(3);e.Q6J("href","mailto:"+t.activeLead.email,e.LSH),e.xp6(1),e.Oqu(t.activeLead.email)}}function bn(i,r){1&i&&(e.TgZ(0,"span",291),e._UZ(1,"span",74),e._uU(2,"Saving\u2026 "),e.qZA())}function hn(i,r){if(1&i){const t=e.EpF();e.TgZ(0,"button",216),e.NdJ("click",function(){const a=e.CHM(t).$implicit,s=e.oxw(3);
1return e.KtG(s.jumpToStatus(a))}),e._UZ(1,"span",217),e.TgZ(2,"span",218),e._uU(3),e.qZA()()}if(2&i){const t=r.$implicit,n=r.index,o=e.oxw(3);e.Q6J("disabled",o.statusSaving)("matTooltip","Set status to "+t),e.uIk("data-state",o.segmentState(n)),e.xp6(3),e.Oqu(o.stepLabel(t))}}function wn(i,r){if(1&i){const t=e.EpF();e.TgZ(0,"button",219),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(3);return e.KtG(o.advanceStatus())}),e._uU(1),e.qZA()}if(2&i){const t=e.oxw(3);e.Q6J("disabled",t.statusSaving),e.xp6(1),e.hij(" Advance \u2192 ",t.stepLabel(t.nextPipelineStatus)," ")}}function vn(i,r){if(1&i){const t=e.EpF();e.TgZ(0,"button",215),e.NdJ("click",function(){const a=e.CHM(t).$implicit,s=e.oxw(4);return e.KtG(s.jumpToStatus(a))}),e._UZ(1,"span",65),e._uU(2),e.qZA()}if(2&i){const t=r.$implicit,n=e.oxw(4);e.ekj("is-on",n.activeLead.status===t),e.xp6(1),e.Udp("background",n._leadsService.getStatusColor(t)),e.xp6(1),e.hij("",t," ")}}function Cn(i,r){if(1&i){const t=e.EpF();e.ynx(0),e.TgZ(1,"div",119),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(3);return e.KtG(o.stageMenuOpen=!1)}),e.qZA(),e.TgZ(2,"div",211),e.YNc(3,vn,3,5,"button",212),e.qZA(),e.BQk()}if(2&i){const t=e.oxw(3);e.xp6(3),e.Q6J("ngForOf",t.negativeStatuses)}}function Mn(i,r){if(1&i){const t=e.EpF();e.TgZ(0,"button",229),e.NdJ("click",function(){const a=e.CHM(t).$implicit,s=e.oxw(3);return e.KtG(s.setComposerTab(a.key))}),e.TgZ(1,"span",19),e._uU(2),e.qZA(),e._uU(3),e.qZA()}if(2&i){const t=r.$implicit,n=e.oxw(3);e.ekj("is-on",n.composerTab===t.key&&"email"!==t.key),e.xp6(2),e.Oqu(t.icon),e.xp6(1),e.hij("",t.label," ")}}function On(i,r){if(1&i){const t=e.EpF();e.TgZ(0,"button",232),e.NdJ("click",function(){const a=e.CHM(t).$implicit,s=e.oxw(4);return e.KtG(s.callOutcome=a.key)}),e._uU(1),e.qZA()}if(2&i){const t=r.$implicit,n=e.oxw(4);e.ekj("is-on",n.callOutcome===t.key),e.xp6(1),e.Oqu(t.label)}}function Tn(i,r){if(1&i&&(e.TgZ(0,"div",230),e.YNc(1,On,2,3,"button",231),e.qZA()),2&i){const t=e.oxw(3);e.xp6(1),e.Q6J("ngForOf",t.callOutcomes)}}function Pn(i,r){1&i&&(e.TgZ(0,"div",233)(1,"span",19),e._uU(2,"info"),e.qZA(),e._uU(3,"This lead has no phone number. "),e.qZA())}function yn(i,r){if(1&i){const t=e.EpF();e.TgZ(0,"div",234)(1,"label"),e._uU(2,"Demo date & time"),e.qZA(),e.TgZ(3,"input",235),e.NdJ("ngModelChange",function(o){e.CHM(t);const a=e.oxw(3);return e.KtG(a.demoDateValue=o)}),e.qZA()()}if(2&i){const t=e.oxw(3);e.xp6(3),e.Q6J("ngModel",t.demoDateValue)}}function Zn(i,r){if(1&i){const t=e.EpF();e.TgZ(0,"label",236)(1,"input",237),e.NdJ("ngModelChange",function(o){e.CHM(t);const a=e.oxw(3);return e.KtG(a.alsoSetNextStep=o)}),e.qZA(),e.TgZ(2,"span",49)(3,"span",19),e._uU(4,"check"),e.qZA()(),e._uU(5," Set next step +3 days "),e.qZA()}if(2&i){const t=e.oxw(3);e.Q6J("matTooltip",t.alsoSetNextStepTooltip),e.xp6(1),e.Q6J("ngModel",t.alsoSetNextStep)}}function kn(i,r){if(1&i){const t=e.EpF();e.TgZ(0,"label",238)(1,"input",237),e.NdJ("ngModelChange",function(o){e.CHM(t);const a=e.oxw(3);return e.KtG(a.alsoAdvanceStatus=o)}),e.qZA(),e.TgZ(2,"span",49)(3,"span",19),e._uU(4,"check"),e.qZA()(),e._uU(5),e.qZA()}if(2&i){const t=e.oxw(3);e.xp6(1),e.Q6J("ngModel",t.alsoAdvanceStatus),e.xp6(4),e.hij(" Move to ",t.nextPipelineStatus," ")}}function Ln(i,r){if(1&i&&(e.TgZ(0,"option",37),e._uU(1),e.qZA()),2&i){const t=r.$implicit;e.Q6J("ngValue",t),e.xp6(1),e.Oqu(t)}}function An(i,r){if(1&i&&(e.TgZ(0,"option",37),e._uU(1),e.qZA()),2&i){const t=r.$implicit;e.Q6J("ngValue",t._id),e.xp6(1),e.AsE("",t.first_name," ",t.last_name,"")}}function Sn(i,r){if(1&i&&(e.TgZ(0,"div",195)(1,"span",196),e._uU(2,"Demo"),e.qZA(),e.TgZ(3,"span",197),e._uU(4),e.ALo(5,"date"),e.qZA()()),2&i){const t=e.oxw(3);e.xp6(4),e.Oqu(e.xi3(5,1,t.activeLead.demoScheduledAt,"MMM d, h:mm a"))}}function qn(i,r){if(1&i){const t=e.EpF();e.TgZ(0,"button",124),e.NdJ("click",function(){const a=e.CHM(t).$implicit,s=e.oxw(4);return e.KtG(s.goToFocusLead(a))}),e.TgZ(1,"span",294),e._uU(2),e.qZA(),e.TgZ(3,"span",68),e._uU(4),e.qZA()()}if(2&i){const t=r.$implicit,n=e.oxw(4);e.xp6(2),e.Oqu(n.leadTitle(t)),e.xp6(1),e.uIk("data-tone",n.dueTone(t)),e.xp6(1),e.Oqu(n.dueLabel(t))}}function Un(i,r){if(1&i&&(e.TgZ(0,"div",292)(1,"span",91),e._uU(2,"Up next"),e.qZA(),e.YNc(3,qn,5,3,"button",293),e.qZA()),2&i){const t=e.oxw(3);e.xp6(3),e.Q6J("ngForOf",t.upNext)("ngForTrackBy",t.trackByLeadId)}}function Nn(i,r){if(1&i){const t=e.EpF();e.TgZ(0,"div",255)(1,"div",256)(2,"div",257)(3,"span",258),e._uU(4),e.qZA(),e.TgZ(5,"div",259)(6,"div",260)(7,"span",261),e._uU(8),e.qZA(),e.YNc(9,gn,3,3,"span",152),e.YNc(10,_n,4,2,"span",153),e.YNc(11,un,2,0,"span",154),e.qZA(),e.TgZ(12,"div",262),e.YNc(13,fn,2,1,"span",263),e.YNc(14,xn,2,1,"span",17),e.YNc(15,mn,2,2,"a",157),e.TgZ(16,"span",70),e._uU(17),e.qZA(),e.YNc(18,bn,3,0,"span",264),e.qZA()()(),e.TgZ(19,"button",165),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.convertToDirector())}),e.TgZ(20,"span",19),e._uU(21,"how_to_reg"),e.qZA(),e._uU(22),e.qZA()(),e.TgZ(23,"div",265)(24,"div",167),e.YNc(25,hn,4,4,"button",168),e.qZA(),e.YNc(26,wn,2,2,"button",169),e.TgZ(27,"div",170)(28,"button",171),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.stageMenuOpen=!o.stageMenuOpen)}),e._uU(29),e.TgZ(30,"span",107),e._uU(31,"expand_more"),e.qZA()(),e.YNc(32,Cn,4,1,"ng-container",17),e.qZA()(),e.TgZ(33,"div",266)(34,"div",177)(35,"div",178),e.YNc(36,Mn,4,4,"button",179),e.TgZ(37,"span",180),e._uU(38,"Saves straight to the feed"),e.qZA()(),e.TgZ(39,"div",181),e.YNc(40,Tn,2,1,"div",182),e.YNc(41,Pn,4,0,"div",183),e.YNc(42,yn,4,1,"div",184),e.TgZ(43,"textarea",185),e.NdJ("ngModelChange",function(o){e.CHM(t);const a=e.oxw(2);return e.KtG(a.composerBody=o)}),e.qZA(),e.TgZ(44,"div",186)(45,"div",187),e.YNc(46,Zn,6,2,"label",188),e.YNc(47,kn,6,2,"label",189),e.qZA(),e.TgZ(48,"button",190),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.logAndNext())}),e.TgZ(49,"span",19),e._uU(50),e.qZA(),e._uU(51),e.qZA()()(),e.TgZ(52,"div",267)(53,"button",124),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.setComposerTab("demo"))}),e.TgZ(54,"span",19),e._uU(55,"videocam"),e.qZA(),e._uU(56,"Schedule demo "),e.qZA(),e.TgZ(57,"button",124),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.sendOutreachEmail())}),e.TgZ(58,"span",19),e._uU(59,"mail"),e.qZA(),e._uU(60,"Outreach email "),e.qZA(),e._UZ(61,"span",268),e.TgZ(62,"button",269),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.markDnc())}),e.TgZ(63,"span",19),e._uU(64,"block"),e.qZA(),e._uU(65,"Mark DNC "),e.qZA(),e.TgZ(66,"button",270),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.skipFocusLead())}),e._uU(67," Skip"),e.TgZ(68,"span",19),e._uU(69,"skip_next"),e.qZA()()()(),e.TgZ(70,"div",271)(71,"div",272)(72,"span",91),e._uU(73,"Quick edits \xb7 saved on next"),e.qZA(),e.TgZ(74,"div",273)(75,"div",102)(76,"label",274),e._uU(77,"Status"),e.qZA(),e.TgZ(78,"select",275),e.NdJ("ngModelChange",function(o){e.CHM(t);const a=e.oxw(2);return e.KtG(a.quickEdit.status=o)}),e.YNc(79,Ln,2,2,"option",38),e.qZA()(),e.TgZ(80,"div",102)(81,"label",276),e._uU(82,"Assigned to"),e.qZA(),e.TgZ(83,"select",277),e.NdJ("ngModelChange",function(o){e.CHM(t);const a=e.oxw(2);return e.KtG(a.quickEdit.assignedTo=o)}),e.YNc(84,An,2,3,"option",38),e.TgZ(85,"option",37),e._uU(86,"Unassigned"),e.qZA()()()(),e.TgZ(87,"div",102)(88,"label",278),e._uU(89,"Next step"),e.qZA(),e.TgZ(90,"div",279)(91,"input",280),e.NdJ("ngModelChange",function(o){e.CHM(t);const a=e.oxw(2);return e.KtG(a.quickEdit.nextStep=o)}),e.qZA(),e.TgZ(92,"button",124),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.quickEditPreset(1))}),e._uU(93,"Tomorrow"),e.qZA(),e.TgZ(94,"button",124),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.quickEditPreset(3))}),e._uU(95,"+3d"),e.qZA(),e.TgZ(96,"button",124),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.quickEditPreset(7))}),e._uU(97,"+1w"),e.qZA()()(),e.TgZ(98,"div",273)(99,"div",102)(100,"label",281),e._uU(101,"Phone"),e.qZA(),e.TgZ(102,"input",282),e.NdJ("ngModelChange",function(o){e.CHM(t);const a=e.oxw(2);return e.KtG(a.quickEdit.phone=o)}),e.qZA()(),e.TgZ(103,"div",102)(104,"label",283),e._uU(105,"Email"),e.qZA(),e.TgZ(106,"input",284),e.NdJ("ngModelChange",function(o){e.CHM(t);const a=e.oxw(2);return e.KtG(a.quickEdit.email=o)}),e.qZA()()(),e.TgZ(107,"div",102)(108,"label",285),e._uU(109,"Source"),e.qZA(),e.TgZ(110,"input",286),e.NdJ("ngModelChange",function(o){e.CHM(t);const a=e.oxw(2);return e.KtG(a.quickEdit.source=o)}),e.qZA()(),e.TgZ(111,"div",102)(112,"label",287),e._uU(113,"Notes"),e.qZA(),e.TgZ(114,"textarea",288),e.NdJ("ngModelChange",function(o){e.CHM(t);const a=e.oxw(2);return e.KtG(a.quickEdit.notes=o)}),e.qZA()()(),e.TgZ(115,"div",194)(116,"span",91),e._uU(117,"Record"),e.qZA(),e.TgZ(118,"div",195)(119,"span",196),e._uU(120,"Last contact"),e.qZA(),e.TgZ(121,"span",197),e._uU(122),e.ALo(123,"date"),e.qZA()(),e.YNc(124,Sn,6,4,"div",198),e.TgZ(125,"div",195)(126,"span",196),e._uU(127,"Location"),e.qZA(),e.TgZ(128,"span",197),e._uU(129),e.qZA()(),e.TgZ(130,"div",195)(131,"span",196),e._uU(132,"Created"),e.qZA(),e.TgZ(133,"span",197),e._uU(134),e.ALo(135,"date"),e.qZA()()()()(),e.YNc(136,Un,4,2,"div",289),e.qZA()}if(2&i){const t=e.oxw(2);e.xp6(4),e.Oqu(t.leadInitials(t.activeLead)),e.xp6(4),e.Oqu(t.leadTitle(t.activeLead)),e.xp6(1),e.Q6J("ngIf",t.activeLead.status),e.xp6(1),e.Q6J("ngIf",t.overdueDays(t.activeLead)),e.xp6(1),e.Q6J("ngIf",!t.activeLead.nextStepTargetDate),e.xp6(2),e.Q6J("ngIf",t.leadPerson(t.activeLead)),e.xp6(1),e.Q6J("ngIf",t.activeLead.phone),e.xp6(1),e.Q6J("ngIf",t.activeLead.email),e.xp6(1),e.ekj("is-none",!t.activeLead.assignedTo),e.Q6J("matTooltip",t.assigneeName(t.activeLead)),e.xp6(1),e.Oqu(t.activeLead.assignedTo?t.userInitials(t.activeLead.assignedTo):"\u2014"),e.xp6(1),e.Q6J("ngIf",t.quickEditSaving),e.xp6(1),e.Q6J("disabled",t.convert
1ing||"Converted"===t.activeLead.status&&!!t.activeLead.user),e.xp6(3),e.hij(" ","Converted"===t.activeLead.status&&t.activeLead.user?"Converted":t.converting?"Converting\u2026":"Convert to Director"," "),e.xp6(3),e.Q6J("ngForOf",t.positiveStatuses),e.xp6(1),e.Q6J("ngIf",t.nextPipelineStatus),e.xp6(2),e.ekj("is-on",t.onOffRamp),e.Q6J("disabled",t.statusSaving),e.xp6(1),e.hij(" ",t.onOffRamp?t.activeLead.status:"Not interested / DNC"," "),e.xp6(3),e.Q6J("ngIf",t.stageMenuOpen),e.xp6(4),e.Q6J("ngForOf",t.composerTabs),e.xp6(4),e.Q6J("ngIf","call"===t.composerTab),e.xp6(1),e.Q6J("ngIf","sms"===t.composerTab&&!t.activeLead.phone),e.xp6(1),e.Q6J("ngIf","demo"===t.composerTab),e.xp6(1),e.Q6J("placeholder",t.composerPlaceholder)("ngModel",t.composerBody)("disabled","sms"===t.composerTab&&!t.activeLead.phone),e.xp6(3),e.Q6J("ngIf","demo"!==t.composerTab),e.xp6(1),e.Q6J("ngIf",t.nextPipelineStatus),e.xp6(1),e.Q6J("disabled",t.composerSaving||t.focusNavigating),e.xp6(2),e.Oqu(t.composerSaving?"hourglass_top":"send"),e.xp6(1),e.hij(" ",t.composerSaving?"Saving\u2026":"Log & next"," "),e.xp6(15),e.Q6J("disabled",!t.canFocusNext),e.xp6(12),e.Q6J("ngModel",t.quickEdit.status),e.xp6(1),e.Q6J("ngForOf",t.leadStatuses),e.xp6(4),e.Q6J("ngModel",t.quickEdit.assignedTo),e.xp6(1),e.Q6J("ngForOf",t.systemAdmins),e.xp6(1),e.Q6J("ngValue",null),e.xp6(6),e.ekj("is-overdue",t.quickEditNextStepOverdue),e.Q6J("ngModel",t.quickEdit.nextStep),e.xp6(11),e.Q6J("ngModel",t.quickEdit.phone),e.xp6(4),e.Q6J("ngModel",t.quickEdit.email),e.xp6(4),e.Q6J("ngModel",t.quickEdit.source),e.xp6(4),e.Q6J("ngModel",t.quickEdit.notes),e.xp6(8),e.Oqu(t.activeLead.lastContactedAt?e.xi3(123,52,t.activeLead.lastContactedAt,"MMM d, y"):"Never"),e.xp6(2),e.Q6J("ngIf",t.activeLead.demoScheduledAt),e.xp6(5),e.Oqu((t.activeLead.city?t.activeLead.city+", ":"")+(t.activeLead.state||"")||"\u2014"),e.xp6(5),e.Oqu(e.xi3(135,55,t.activeLead.createdAt,"MMM d, y")),e.xp6(2),e.Q6J("ngIf",t.upNext.length)}}function Jn(i,r){if(1&i){const t=e.EpF();e.TgZ(0,"div",242)(1,"div",243)(2,"div",244)(3,"span",91),e._uU(4),e.qZA(),e.TgZ(5,"span",245),e._uU(6),e.ALo(7,"number"),e.ALo(8,"number"),e.qZA()(),e.TgZ(9,"div",246),e._UZ(10,"span"),e.qZA(),e.TgZ(11,"span",247),e._uU(12,"\u2190 \u2192 to move \xb7 \u23ce logs & advances"),e.qZA(),e.TgZ(13,"div",248)(14,"button",249),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.focusPrev())}),e.TgZ(15,"span",19),e._uU(16,"chevron_left"),e.qZA(),e._uU(17,"Previous "),e.qZA(),e.TgZ(18,"button",250),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.focusNext())}),e._uU(19," Next"),e.TgZ(20,"span",19),e._uU(21,"chevron_right"),e.qZA()()()(),e.TgZ(22,"div",251),e.YNc(23,pn,6,3,"div",252),e.YNc(24,Nn,137,58,"div",253),e.qZA()()}if(2&i){const t=e.oxw();e.xp6(4),e.hij(" ","followUp"===t.scope?"Follow-up queue":"mine"===t.scope?"My leads":"All leads"," \xb7 sorted by next step "),e.xp6(2),e.AsE("Lead ",e.lcZ(7,9,t.focusPosition)," of ",e.lcZ(8,11,t.total),""),e.xp6(4),e.Udp("width",t.focusPercent),e.xp6(4),e.Q6J("disabled",!t.canFocusPrev),e.xp6(4),e.Q6J("disabled",!t.canFocusNext),e.xp6(5),e.Q6J("ngIf",!t.activeLead),e.xp6(1),e.Q6J("ngIf",t.activeLead)}}function In(i,r){1&i&&(e.TgZ(0,"div",297),e._UZ(1,"span",74),e._uU(2,"Counting the pipeline\u2026 "),e.qZA())}function Fn(i,r){if(1&i){const t=e.EpF();e.TgZ(0,"button",306),e.NdJ("click",function(){const a=e.CHM(t).$implicit,s=e.oxw(3);return e.KtG(s.openFunnelStage(a.status))}),e.TgZ(1,"span",307),e._UZ(2,"span",308),e._uU(3),e.qZA(),e.TgZ(4,"span",309),e._UZ(5,"span",310),e.qZA(),e.TgZ(6,"span",311)(7,"span",312),e._uU(8),e.ALo(9,"number"),e.qZA(),e.TgZ(10,"span",313),e._uU(11),e.qZA()()()}if(2&i){const t=r.$implicit;e.Q6J("matTooltip","Show the "+t.count+" "+t.label+" leads in the table"),e.xp6(2),e.Udp("background",t.color),e.xp6(1),e.hij("",t.label," "),e.xp6(2),e.Udp("background",t.color)("width",t.width),e.xp6(3),e.Oqu(e.lcZ(9,10,t.count)),e.xp6(3),e.Oqu(t.share)}}function Gn(i,r){if(1&i){const t=e.EpF();e.TgZ(0,"button",306),e.NdJ("click",function(){const a=e.CHM(t).$implicit,s=e.oxw(3);return e.KtG(s.openFunnelStage(a.status))}
1),e.TgZ(1,"span",307),e._UZ(2,"span",308),e._uU(3),e.qZA(),e.TgZ(4,"span",309),e._UZ(5,"span",310),e.qZA(),e.TgZ(6,"span",311)(7,"span",312),e._uU(8),e.ALo(9,"number"),e.qZA(),e.TgZ(10,"span",313),e._uU(11),e.qZA()()()}if(2&i){const t=r.$implicit;e.Q6J("matTooltip","Show the "+t.count+" "+t.label+" leads in the table"),e.xp6(2),e.Udp("background",t.color),e.xp6(1),e.hij("",t.label," "),e.xp6(2),e.Udp("background",t.color)("width",t.width),e.xp6(3),e.Oqu(e.lcZ(9,10,t.count)),e.xp6(3),e.Oqu(t.share)}}function zn(i,r){if(1&i&&(e.ynx(0),e.TgZ(1,"div",298)(2,"div",299)(3,"span",91),e._uU(4,"Total leads"),e.qZA(),e.TgZ(5,"span",300),e._uU(6),e.ALo(7,"number"),e.qZA(),e.TgZ(8,"span",301),e._uU(9),e.ALo(10,"number"),e.qZA()(),e.TgZ(11,"div",299)(12,"span",91),e._uU(13,"Reached"),e.qZA(),e.TgZ(14,"span",300),e._uU(15),e.ALo(16,"number"),e.qZA(),e.TgZ(17,"span",301),e._uU(18),e.qZA()(),e.TgZ(19,"div",299)(20,"span",91),e._uU(21,"Demos"),e.qZA(),e.TgZ(22,"span",300),e._uU(23),e.ALo(24,"number"),e.qZA(),e.TgZ(25,"span",301),e._uU(26),e.qZA()(),e.TgZ(27,"div",299)(28,"span",91),e._uU(29,"Converted"),e.qZA(),e.TgZ(30,"span",302),e._uU(31),e.ALo(32,"number"),e.qZA(),e.TgZ(33,"span",301),e._uU(34),e.qZA()()(),e.TgZ(35,"div",303)(36,"span",91),e._uU(37,"Pipeline by status"),e.qZA(),e.YNc(38,Fn,12,12,"button",304),e.qZA(),e.TgZ(39,"div",305)(40,"span",91),e._uU(41,"Off-ramps"),e.qZA(),e.YNc(42,Gn,12,12,"button",304),e.qZA(),e.BQk()),2&i){const t=e.oxw(2);e.xp6(6),e.Oqu(e.lcZ(7,12,t.funnelTotal)),e.xp6(3),e.hij("+",e.lcZ(10,14,t.funnelData.createdThisWeek)," this week"),e.xp6(6),e.Oqu(e.lcZ(16,16,t.funnelReached)),e.xp6(3),e.hij("",t.funnelShare(t.funnelReached)," contacted or beyond"),e.xp6(5),e.Oqu(e.l
1cZ(24,18,t.funnelDemos)),e.xp6(3),e.hij("",t.funnelShare(t.funnelDemos)," of all leads"),e.xp6(5),e.Oqu(e.lcZ(32,20,t.funnelConverted)),e.xp6(3),e.hij("",t.funnelShare(t.funnelConverted)," of all leads"),e.xp6(4),e.Q6J("ngForOf",t.funnelStages)("ngForTrackBy",t.trackByFunnelRow),e.xp6(4),e.Q6J("ngForOf",t.funnelOffRamps)("ngForTrackBy",t.trackByFunnelRow)}}function Dn(i,r){if(1&i&&(e.TgZ(0,"div",295),e.YNc(1,In,3,0,"div",296),e.YNc(2,zn,43,22,"ng-container",17),e.qZA()),2&i){const t=e.oxw();e.xp6(1),e.Q6J("ngIf",t.funnelLoading&&!t.funnelData),e.xp6(1),e.Q6J("ngIf",t.funnelData)}}function Qn(i,r){1&i&&(e.TgZ(0,"div",317),e._UZ(1,"span",74),e._uU(2,"Building the board\u2026 "),e.qZA())}function En(i,r){if(1&i&&(e.TgZ(0,"span",335),e._uU(1),e.qZA()),2&i){const t=e.oxw().$implicit,n=e.oxw(4);e.xp6(1),e.Oqu(n.leadPerson(t))}}function Yn(i,r){if(1&i){const t=e.EpF();e.TgZ(0,"button",330),e.NdJ("click",function(){const a=e.CHM(t).$implicit,s=e.oxw(4);return e.KtG(s.openFromBoard(a))}),e.TgZ(1,"span",331),e._uU(2),e.qZA(),e.YNc(3,En,2,1,"span",332),e.TgZ(4,"span",333)(5,"span",68),e._uU(6),e.qZA(),e._UZ(7,"span",334),e.TgZ(8,"span",70),e._uU(9),e.qZA()()()}if(2&i){const t=r.$implicit,n=e.oxw(4);e.ekj("is-overdue","danger"===n.dueTone(t)),e.xp6(2),e.Oqu(n.leadTitle(t)),e.xp6(1),e.Q6J("ngIf",t.organization&&n.leadPerson(t)),e.xp6(2),e.uIk("data-tone",n.dueTone(t)),e.xp6(1),e.Oqu(n.dueLabel(t)),e.xp6(2),e.ekj("is-none",!t.assignedTo),e.Q6J("matTooltip",n.assigneeName(t)),e.xp6(1),e.Oqu(t.assignedTo?n.userInitials(t.assignedTo):"\u2014")}}function Hn(i,r){1&i&&e._UZ(0,"span",74)}function jn(i,r){if(1&i&&(e.TgZ(0,"span",336,337),e.YNc(2,Hn,1,0,"span",338),e._uU(3),e.ALo(4,"number"),e.qZA()),2&i){const t=e.oxw().$implicit,n=e.oxw(3);e.uIk("data-status",t.status),e.xp6(2),e.Q6J("ngIf",n.laneLoading[n.laneKey(t)]),e.xp6(1),e.hij(" ",n.laneLoading[n.laneKey(t)]?"Loading\u2026":e.lcZ(4,3,n.laneRemaining(t))+" more"," ")}}function Kn(i,r){1&i&&(e.TgZ(0,"span",339),e._uU(1,"Nothing here"),e.qZA())}function $n(i,r){if(1&i&&(e.TgZ(0,"div",321)(1,"div",322),e._UZ(2,"span",323),e.TgZ(3,"span",324),e._uU(4),e.qZA(),e.TgZ(5,"span",325),e._uU(6),e.ALo(7,"number"),e.qZA()(),e.TgZ(8,"div",326),e.YNc(9,Yn,10,10,"button",327),e.YNc(10,jn,5,5,"span",328),e.YNc(11,Kn,2,0,"span",329),e.qZA()()),2&i){const t=r.$implicit,n=e.oxw(3);e.xp6(2),e.Udp("background",n._leadsService.getStatusColor(t.status)),e.xp6(2),e.Oqu(n.laneLabel(t)),e.xp6(2),e.Oqu(e.lcZ(7,7,t.count)),e.xp6(3),e.Q6J("ngForOf",t.leads),e.xp6(1),e.Q6J("ngIf",n.laneHasMore(t)),e.xp6(1),e.Q6J("ngIf",!t.leads.length&&!n.boardLoading)}}function Bn(i,r){if(1&i&&(e.TgZ(0,"span",335),e._uU(1),e.qZA()),2&i){const t=e.oxw().$implicit,n=e.oxw(5);e.xp6(1),e.Oqu(n.leadPerson(t))}}function Rn(i,r){if(1&i){const t=e.EpF();e.TgZ(0,"button",330),e.NdJ("click",function(){const a=e.CHM(t).$implicit,s=e.oxw(5);return e.KtG(s.openFromBoard(a))}),e.TgZ(1,"span",331),e._uU(2),e.qZA(),e.YNc(3,Bn,2,1,"span",332),e.qZA()}if(2&i){const t=r.$implicit,n=e.oxw(5);e.xp6(2),e.Oqu(n.leadTitle(t)),e.xp6(1),e.Q6J("ngIf",t.organization&&n.leadPerson(t))}}function Vn(i,r){1&i&&e._UZ(0,"span",74)}function Wn(i,r){if(1&i&&(e.TgZ(0,"span",336,337),e.YNc(2,Vn,1,0,"span",338),e._uU(3),e.ALo(4,"number"),e.qZA()),2&i){const t=e.oxw(2).$implicit,n=e.oxw(3);e.uIk("data-status",t.status),e.xp6(2),e.Q6J("ngIf",n.laneLoading[n.laneKey(t)]),e.xp6(1),e.hij(" ",n.laneLoading[n.laneKey(t)]?"Loading\u2026":e.lcZ(4,3,n.laneRemaining(t))+" more"," ")}}function Xn(i,r){if(1&i){const t=e.EpF();e.TgZ(0,"div",342)(1,"button",343),e.NdJ("click",function(){e.CHM(t);const o=e.oxw().$implicit,a=e.oxw(3);return e.KtG(a.toggleTerminalLane(o))}),e._UZ(2,"span",323),e.TgZ(3,"span",324),e._uU(4),e.qZA(),e.TgZ(5,"span",325),e._uU(6),e.ALo(7,"number"),e.qZA(),e.TgZ(8,"span",344),e._uU(9,"expand_less"),e.qZA()(),e.TgZ(10,"div",326),e.YNc(11,Rn,4,2,"button",345),e.YNc(12,Wn,5,5,"span",328),e.qZA()()}if(2&i){const t=e.oxw().$implicit,n=e.oxw(3);e.xp6(2),e.Udp("background",n._leadsService.getStatusColor(t.status)),e.xp6(2),e.Oqu(n.laneLabel(t)),e.xp6(2),e.Oqu(e.lcZ(7,6,t.count)),e.xp6(
15),e.Q6J("ngForOf",t.leads),e.xp6(1),e.Q6J("ngIf",n.laneHasMore(t))}}function eo(i,r){if(1&i){const t=e.EpF();e.TgZ(0,"button",346),e.NdJ("click",function(){e.CHM(t);const o=e.oxw().$implicit,a=e.oxw(3);return e.KtG(a.toggleTerminalLane(o))}),e.TgZ(1,"span",347),e._uU(2),e.qZA(),e.TgZ(3,"span",348),e._uU(4),e.ALo(5,"number"),e.qZA()()}if(2&i){const t=e.oxw().$implicit,n=e.oxw(3);e.xp6(2),e.Oqu(n.laneLabel(t)),e.xp6(2),e.Oqu(e.lcZ(5,2,t.count))}}function to(i,r){if(1&i&&(e.ynx(0),e.YNc(1,Xn,13,8,"div",340),e.YNc(2,eo,6,4,"button",341),e.BQk()),2&i){const t=r.$implicit,n=e.oxw(3);e.xp6(1),e.Q6J("ngIf",n.isTerminalExpanded(t)),e.xp6(1),e.Q6J("ngIf",!n.isTerminalExpanded(t))}}function no(i,r){if(1&i&&(e.ynx(0),e.YNc(1,$n,12,9,"div",318),e.TgZ(2,"div",319),e.YNc(3,to,3,2,"ng-container",98),e.TgZ(4,"p",320),e._uU(5,"Terminal statuses collapsed \u2014 click to expand"),e.qZA()(),e.BQk()),2&i){const t=e.oxw(2);e.xp6(1),e.Q6J("ngForOf",t.boardLiveLanes),e.xp6(2),e.Q6J("ngForOf",t.boardTerminalLanes)}}function oo(i,r){if(1&i&&(e.TgZ(0,"div",314,315),e.YNc(2,Qn,3,0,"div",316),e.YNc(3,no,6,2,"ng-container",17),e.qZA()),2&i){const t=e.oxw();e.xp6(2),e.Q6J("ngIf",t.boardLoading&&!t.boardLanes.length),e.xp6(1),e.Q6J("ngIf",t.boardLanes.length)}}function io(i,r){if(1&i){const t=e.EpF();e.TgZ(0,"button",362),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(3);return e.KtG(o.selectAllMatching())}),e._uU(1),e.ALo(2,"number"),e.qZA()}if(2&i){const t=e.oxw(3);e.Q6J("disabled",t.selectingAll),e.xp6(1),e.hij(" ",t.selectingAll?"\u2026":"All "+e.lcZ(2,2,t.currentTotal)," ")}}function ao(i,r){if(1&i&&(e.TgZ(0,"option",37),e._uU(1),e.qZA()),2&i){const t=r.$implicit;e.Q6J("ngValue",t._id),e.xp6(1),e.AsE("",t.first_name," ",t.last_name,"")}}function ro(i,r){if(1&i&&(e.TgZ(0,"option",37),e._uU(1),e.qZA()),2&i){const t=r.$implicit;e.Q6J("ngValue",t),e.xp6(1),e.Oqu(t)}}function so(i,r){if(1&i){const t=e.EpF();e.TgZ(0,"div",350)(1,"div",351)(2,"strong"),e._uU(3),e.ALo(4,"number"),e.qZA(),e._uU(5," selected "),e.TgZ(6,"button",352),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.toggleSelectAllOnPage())}),e._uU(7),e.qZA(),e.YNc(8,io,3,4,"button",353),e.TgZ(9,"button",352),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.clearSelection())}),e._uU(10,"Clear"),e.qZA()(),e.TgZ(11,"div",354)(12,"select",355),e.NdJ("ngModelChange",function(o){e.CHM(t);const a=e.oxw(2);return e.KtG(a.bulkAssignToUserId=o)}),e.TgZ(13,"option",356),e._uU(14,"Assign to\u2026"),e.qZA(),e.YNc(15,ao,2,3,"option",38),e.TgZ(16,"option",37),e._uU(17,"Unassigned"),e.qZA()(),e.TgZ(18,"button",357),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.applyBulkAssign())}),e._uU(19),e.qZA()(),e.TgZ(20,"div",354)(21,"select",355),e.NdJ("ngModelChange",function(o){e.CHM(t);const a=e.oxw(2);return e.KtG(a.bulkStatus=o)}),e.TgZ(22,"option",356),e._uU(23,"Set status\u2026"),e.qZA(),e.YNc(24,ro,2,2,"option",38),e.qZA(),e.TgZ(25,"button",357),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.applyBulkStatus())}),e._uU(26),e.qZA()(),e.TgZ(27,"span",358),e._uU(28,"Next step"),e.qZA(),e.TgZ(29,"div",354)(30,"input",359),e.NdJ("ngModelChange",function(o){e.CHM(t);const a=e.oxw(2);return e.KtG(a.bulkNextStepValue=o)}),e.qZA(),e.TgZ(31,"button",357),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.applyBulkNextStep())}),e._uU(32),e.qZA()(),e.TgZ(33,"div",360)(34,"button",249),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.applyBulkNextStepPreset(1))}),e._uU(35,"Tomorrow"),e.qZA(),e.TgZ(36,"button",249),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.applyBulkNextStepPreset(3))}),e._uU(37,"+3 days"),e.qZA(),e.TgZ(38,"button",249),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.applyBulkNextStepPreset(7))}),e._uU(39,"Next week"),e.qZA(),e.TgZ(40,"button",204),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.applyBulkNextStep(!0))}),e._uU(41,"Clear"),e.qZA()(),e.TgZ(42,"button",361),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.sendSelectedToCampaign())}),e.TgZ(43,"span",19),e._uU(44,"rocket_launch"),e.qZA(),e._uU(45,"Send to campaign "),e.qZA()()}if(2&i){const t=e.oxw(2);
1e.xp6(3),e.Oqu(e.lcZ(4,24,t.selectedLeadIds.size)),e.xp6(4),e.hij(" ",t.allOnPageSelected?"None":"Page"," "),e.xp6(1),e.Q6J("ngIf",!t.allMatchingSelected),e.xp6(4),e.Q6J("ngModel",t.bulkAssignToUserId)("disabled",t.bulkAssigning),e.xp6(1),e.Q6J("ngValue","__UNSET__"),e.xp6(2),e.Q6J("ngForOf",t.systemAdmins),e.xp6(1),e.Q6J("ngValue",null),e.xp6(2),e.Q6J("disabled",!t.canApplyBulkAssign),e.xp6(1),e.hij(" ",t.bulkAssigning?"\u2026":"Apply"," "),e.xp6(2),e.Q6J("ngModel",t.bulkStatus)("disabled",t.bulkStatusSaving),e.xp6(1),e.Q6J("ngValue","__UNSET__"),e.xp6(2),e.Q6J("ngForOf",t.leadStatuses),e.xp6(1),e.Q6J("disabled",!t.canApplyBulkStatus),e.xp6(1),e.hij(" ",t.bulkStatusSaving?"\u2026":"Apply"," "),e.xp6(4),e.Q6J("ngModel",t.bulkNextStepValue)("disabled",t.bulkNextStepSaving),e.xp6(1),e.Q6J("disabled",!t.canApplyBulkNextStep),e.xp6(1),e.hij(" ",t.bulkNextStepSaving?"\u2026":"Apply"," "),e.xp6(2),e.Q6J("disabled",t.bulkNextStepSaving),e.xp6(2),e.Q6J("disabled",t.bulkNextStepSaving),e.xp6(2),e.Q6J("disabled",t.bulkNextStepSaving),e.xp6(2),e.Q6J("disabled",t.bulkNextStepSaving)}}function lo(i,r){if(1&i&&e.YNc(0,so,46,26,"div",349),2&i){const t=e.oxw();e.Q6J("ngIf",t.selectedLeadIds.size)}}let co=(()=>{class i{constructor(t,n,o,a,s,l,u,p,x,h,P){this._authService=t,this._userService=n,this._tableService=o,this._leadsService=a,this._activityService=s,this._sharedUtilsService=l,this.route=u,this.router=p,this.dialog=x,this._zone=h,this._userRolesService=P,this.ngUnsubscribe=new M.x,this.view="worklist",this.viewKey="admin-leads-view",this.views=[{key:"table",label:"Table"},{key:"worklist",label:"Worklist"},{key:"board",label:"Board"},{key:"focus",label:"Focus"},{key:"funnel",label:"Funnel"}],this.scope="followUp",this.page=1,this.pageSize=25,this.total=0,this.pageSizeOptions=[25,50,100],this.leads=[],this.groups=[],this.counts={total:0,overdue:0,dueToday:0,followUp:0,unassigned:0,noNextStep:0,mine:0},this.baseRoute="/",this.currentUser=null,this.filters={},this.filtersExpanded=!1,this.statusMenuOpen=!1,this.initialized=!1,this.isLoadingResults=!1,this.gridOptionsKey="admin-leads-grid-options",this.leadStatuses=[],this.negativeStatuses=["Not Interested","DNC"],this.terminalStatuses=["Converted","Not Interested","DNC"],this.tableLeads=[],this.tableTotal=0,this.tablePage=1,this.tableLoading=!1,this.tableInitialized=!1,this.tableStale=!1,this.tableSort="worklist",this.tableSortDir="asc",this.focusNavigating=!1,this.quickEdit=this.emptyQuickEdit(),this.quickEditLeadId=null,this.quickEditSaving=!1,this.funnelData=null,this.funnelLoading=!1,this.funnelInitialized=!1,this.funnelStale=!1,this.funnelStages=[],this.funnelOffRamps=[],this.boardLanes=[],this.boardLoading=!1,this.boardInitialized=!1,this.boardStale=!1,this.expandedTerminals=new Set,this.boardInitialCards=12,this.lanePageSize=20,this.laneLoading={},this.laneExhausted={},this.laneScrollThreshold=300,this.laneScrollCleanups=[],this.selectedLeadIds=new Set,this.systemAdmins=[],this.bulkAssignToUserId="__UNSET__",this.bulkAssigning=!1,this.bulkStatus="__UNSET__",this.bulkStatusSaving=!1,this.bulkNextStepValue="",this.bulkNextStepSaving=!1,this.selectingAll=!1,this.activeLead=null,this.activeLoadToken=0,this.assigneeMenuOpen=!1,this.assigning=!1,this.statusSaving=!1,this.converting=!1,this.nextStepEditorOpen=!1,this.nextStepValue="",this.nextStepSaving=!1,this.stageMenuOpen=!1,this.composerTab="call",this.composerBody="",this.composerSaving=!1,this.callOutcome="connected",this.demoDateValue="",this.alsoSetNextStep=!0,this.alsoAdvanceStatus=!1,this.callOutcomes=[{key:"connected",label:"Connected"},{key:"voicemail",label:"Left voicemail"},{key:"no_answer",label:"No answer"},{key:"callback_requested",label:"Callback"},{key:"wrong_number",label:"Bad number"}],this.composerTabs=[{key:"call",label:"Log call",icon:"call"},{key:"sms",label:"SMS",icon:"sms"},{key:"note",label:"Note",icon:"edit_note"},{key:"demo",label:"Demo",icon:"videocam"}],this.shellBottomGap=24,this.boardPadding=16,this.laneHeadFallback=40,this.shortStatusLabels={"Future Opp":"Future opp","Demo Scheduled":"Demo sched.","Demo Completed":"Demo done"},this.leadStatuses=this._leadsService.statuses}ngOnInit(){this.init()}ngAfterViewInit(){this.sizeShell(),this.sizeBoard(),this.laneEnds?.changes.pipe((0,v.R)(this.ngUnsubscribe)).subscribe(()=>this.observeLaneEnds()),this.observeLaneEnds()}ngOnDestroy(){this.flushQuickEdits(),this.teardownLaneScroll(),this.ngUnsubscribe.next(null),this.ngUnsubscribe.complete()}init(){var t=this;return(0,f.Z)(function*(){t.currentUser=t._authService.getCurrentlyLoggedInUser(),t.baseRoute=t._userRolesService.crmPortalBase(),t._userService.listUsersByType("System Admin").subscribe({next:s=>{t.systemAdmins=s||[]},error:()=>{t.systemAdmins=[]}});const n=t._tableService.getSearchTermsFromLocal(t.gridOptionsKey);n&&"object"==typeof n&&(t.filters=n,delete t.filters.mine,delete t.filters.unassigned);const o=t.route.snapshot.queryParamMap;o.get("status")&&(t.filters.statuses=[o.get("status")],t.scope="all"),"true"===o.get("stale")&&(t.filters.statuses=["Contacted","Replied"],t.scope="all"),("mine"===o.get("scope")||"all"===o.get("scope"))&&(t.scope=o.get("scope")),"true"===o.get("import")&&setTimeout(()=>t.openImportDialog(),200);const a=o.get("lead");try{const s=localStorage.getItem(t.viewKey);!a&&t.views.some(l=>l.key===s)&&(t.view=s)}catch{}if(o.get("view")){const s=o.get("view");t.views.some(l=>l.key===s)&&(t.view=s)}t.getPageData(a?{openLeadId:a}:{}),t.refreshCounts(),"board"===t.view&&t.loadBoard(),"table"===t.view&&t.loadTable(),"funnel"===t.view&&t.loadFunnel()})()}baseSearchParams(){const t={...this.filters};return t.query&&(t.query=String(t.query).trim()),delete t.mine,delete t.unassigned,t}scopedSearchParams(){const t=this.baseSearchParams();if("mine"===this.scope&&this.currentUser?._id)t.assignedTo=this.currentUser._id;else if("followUp"===this.scope){const n=new Date;n.setHours(23,59,59,999),n.setDate(n.getDate()+7),t.hasNextStep=!0,t.nextStepTargetDate_before=n.toISOString()}return t}getPageData(t={}){this.isLoadingResults=!0,this._leadsService.getCustomDataSource(this.scopedSearchParams(),"worklist","asc",this.page-1,this.pageSize).pipe((0,v.R)(this.ngUnsubscribe)).subscribe({next:n=>{if(this.isLoadingResults=!1,this.leads=n.message||[],this.total=n.totalItemCount||0,this._tableService.dataLength=this.total,this.initialized=!0,this.buildGroups(),setTimeout(()=>this.sizeShell()),this.checkForPaginationIssues(),this._tableService.saveSearchTermsInLocal(this.gridOptionsKey,this.filters),t.openLeadId)this.openDeepLinkedLead(t.openLeadId);else if("number"==typeof t.openIndex){const o=Math.max(0,Math.min(t.openIndex,this.leads.length-1));this.selectLead(this.leads[o]||null)}else if(this.activeLead){const o=this.leads.find(a=>a._id===this.activeLead._id);o?this.activeLead=o:t.keepSelection||this.selectLead(this.leads[0]||null)}else this.selectLead(this.leads[0]||null);t.onDone&&t.onDone()},error:()=>{this.isLoadingResults=!1,this.initialized=!0,this.leads=[],this.groups=[],t.onDone&&t.onDone()}})}refreshCounts(){this._leadsService.worklistCounts(this.baseSearchParams(),this.currentUser?._id).pipe((0,v.R)(this.ngUnsubscribe)).subscribe({next:t=>{this.counts=t},error:()=>{}})}openDeepLinkedLead(t){const n=this.leads.find(a=>a._id===t);if(n)return void this.selectLead(n);const o=++this.activeLoadToken;this._leadsService.get(t).subscribe({next:a=>{o===this.activeLoadToken&&a&&(this.activeLead=a)},error:()=>{o===this.activeLoadToken&&this.selectLead(this.leads[0]||null)}})}startOfToday(){const t=new Date;return t.setHours(0,0,0,0),t}bucketFor(t){if(!t?.nextStepTargetDate)return"none";const n=new Date(t.nextStepTargetDate);if(isNaN(n.getTime()))return"none";const o=this.startOfToday(),a=new Date(o);a.setDate(a.getDate()+1);const s=new Date(o);return s.setDate(s.getDate()+7),n<o?"overdue":n<a?"today":n<s?"week":"later"}buildGroups(){this.groups=[{key:"overdue",label:"Overdue",color:"var(--wb-danger)"},{key:"today",label:"Today",color:"var(--wb-warning-mark)"},{key:"week",label:"This week",color:"var(--wb-accent)"},{key:"later",label:"Later",color:"var(--wb-text-4)"},{key:"none",label:"No next step",color:"var(--wb-border-strong)"}].map(n=>({...n,items:this.leads.filter(o=>this.bucketFor(o)===n.key)}
1)).filter(n=>n.items.length>0)}dueLabel(t){if(!t?.nextStepTargetDate)return"No date";const n=new Date(t.nextStepTargetDate);if(isNaN(n.getTime()))return"No date";const o=this.startOfToday(),a=new Date(n);a.setHours(0,0,0,0);const s=Math.round((a.getTime()-o.getTime())/864e5);return 0===s?"Today":1===s?"Tomorrow":s<0?`${Math.abs(s)}d over`:s<7?`${s}d`:n.toLocaleDateString(void 0,{month:"short",day:"numeric"})}dueTone(t){const n=this.bucketFor(t);return"overdue"===n?"danger":"today"===n?"warn":"plain"}overdueDays(t){if(!t?.nextStepTargetDate)return 0;const n=new Date(t.nextStepTargetDate);if(isNaN(n.getTime()))return 0;const o=new Date(n);o.setHours(0,0,0,0);const a=Math.round((this.startOfToday().getTime()-o.getTime())/864e5);return a>0?a:0}sizeShell(){if(typeof window>"u")return;const t=this.shellRef?.nativeElement;if(!t)return;const n=t.getBoundingClientRect().top+(window.scrollY||0),o=window.innerHeight-n-this.shellBottomGap;t.style.height=Math.max(560,Math.round(o))+"px"}sizeBoard(){if(typeof window>"u")return;const t=this.boardRef?.nativeElement;if(!t)return;const n=t.getBoundingClientRect().top+(window.scrollY||0),o=window.innerHeight-n-this.shellBottomGap,a=getComputedStyle(t),s=(parseFloat(a.borderTopWidth)||0)+(parseFloat(a.borderBottomWidth)||0),l=Math.max(0,t.offsetHeight-t.clientHeight-s),p=t.querySelector(".lw-lane-head")?.offsetHeight||this.laneHeadFallback;t.style.setProperty("--lw-lane-max",Math.max(240,Math.round(o-(2*this.boardPadding+p+2+s+l)))+"px")}onWindowResize(){this.sizeShell(),this.sizeBoard()}setView(t){if(this.view!==t){"focus"===this.view&&this.flushQuickEdits(),this.view=t;try{localStorage.setItem(this.viewKey,t)}catch{}"board"===t&&(!this.boardInitialized||this.boardStale)&&this.loadBoard(),"board"===t&&setTimeout(()=>this.sizeBoard()),"table"===t&&(!this.tableInitialized||this.tableStale)&&this.loadTable(),"funnel"===t&&(!this.funnelInitialized||this.funnelStale)&&this.loadFunnel(),"focus"===t&&!this.activeLead&&this.selectLead(this.leads[0]||null),"worklist"===t&&setTimeout(()=>this.sizeShell())}}get showImportExport(){return"table"===this.view||"worklist"===this.view}loadBoard(){this.boardLoading=!0,this.boardStale=!1,this._leadsService.leadBoard(this.baseSearchParams(),this.boardInitialCards).pipe((0,v.R)(this.ngUnsubscribe)).subscribe({next:t=>{this.boardLanes=t||[],this.laneLoading={},this.laneExhausted={},this.boardLoading=!1,this.boardInitialized=!0,setTimeout(()=>this.sizeBoard())},error:()=>{this.boardLanes=[],this.boardLoading=!1,this.boardInitialized=!0,this._sharedUtilsService.showNotificationWithOptions("Failed to load the board","Error",4e3,"error")}})}invalidateDerivedViews(){this.boardInitialized&&("board"===this.view?this.loadBoard():this.boardStale=!0),this.tableInitialized&&("table"===this.view?this.loadTable():this.tableStale=!0),this.funnelInitialized&&("funnel"===this.view?this.loadFunnel():this.funnelStale=!0)}get boardLiveLanes(){return this.boardLanes.filter(t=>!!t.status&&!this.terminalStatuses.includes(t.status))}get boardTerminalLanes(){return this.boardLanes.filter(t=>this.terminalStatuses.includes(t.status)||!t.status&&t.count>0)}laneLabel(t){return t.status||"No status"}isTerminalExpanded(t){return this.expandedTerminals.has(t.status||"__none__")}toggleTerminalLane(t){const n=t.status||"__none__";this.expandedTerminals.has(n)?this.expandedTerminals.delete(n):this.expandedTerminals.add(n)}openFromBoard(t){this.view="worklist";try{localStorage.setItem(this.viewKey,"worklist")}catch{}const n=this.leads.find(o=>o._id===t._id);this.selectLead(n||t)}loadTable(){this.tableLoading=!0,this.tableStale=!1,this._leadsService.getCustomDataSource(this.baseSearchParams(),this.tableSort,this.tableSortDir,this.tablePage-1,this.pageSize).pipe((0,v.R)(this.ngUnsubscribe)).subscribe({next:t=>{this.tableLeads=t.message||[],this.tableTotal=t.totalItemCount||0,this.tableLoading=!1,this.tableInitialized=!0;const n=Math.max(1,Math.ceil((this.tableTotal||0)/this.pageSize));this.tablePage>n&&(this.tablePage=n,this.loadTable())},error:()=>{this.tableLeads=[],this.tableTotal=0,this.tableLoading=!1,this.tableInitialized=!0,this._sharedUtilsService.showNotificationWithOptions("Failed to load leads","Error",4e3,"error")}})}get tableTotalPages(){return Math.max(1,Math.ceil((this.tableTotal||0)/this.pageSize))}get tableRangeLabel(){if(!this.tableTotal)return"0 of 0";
1const t=(this.tablePage-1)*this.pageSize+1;return`${t}-${Math.min(this.tableTotal,t+this.tableLeads.length-1)} of ${this.tableTotal}`}tablePrevPage(){this.tablePage<=1||(this.tablePage--,this.loadTable())}tableNextPage(){this.tablePage>=this.tableTotalPages||(this.tablePage++,this.loadTable())}setTableSort(t){"worklist"===t?(this.tableSort="worklist",this.tableSortDir="asc"):this.tableSort===t?this.tableSortDir="asc"===this.tableSortDir?"desc":"asc":(this.tableSort=t,this.tableSortDir="organization"===t?"asc":"desc"),this.tablePage=1,this.loadTable()}tableSortIcon(t){return this.tableSort!==t?"":"asc"===this.tableSortDir?"arrow_upward":"arrow_downward"}openFromTable(t){this.view="worklist";try{localStorage.setItem(this.viewKey,"worklist")}catch{}const n=this.leads.find(o=>o._id===t._id);this.selectLead(n||t),setTimeout(()=>this.sizeShell())}leadLocation(t){return t&&t.state||""}get currentRows(){return"table"===this.view?this.tableLeads:this.leads}get currentTotal(){return"table"===this.view?this.tableTotal:this.total}currentSearchParams(){return"table"===this.view?this.baseSearchParams():this.scopedSearchParams()}reloadCurrentList(){"table"===this.view?this.loadTable():this.getPageData({keepSelection:!0})}get focusIndex(){return this.activeLead?this.leads.findIndex(t=>t._id===this.activeLead._id):-1}get focusPosition(){const t=this.focusIndex;return t<0?0:(this.page-1)*this.pageSize+t+1}get focusPercent(){return this.total&&this.focusPosition?Math.round(this.focusPosition/this.total*100)+"%":"0%"}get canFocusPrev(){return this.focusPosition>1&&!this.focusNavigating}get canFocusNext(){return this.focusPosition>0&&this.focusPosition<this.total&&!this.focusNavigating}get upNext(){const t=this.focusIndex;return t<0?[]:this.leads.slice(t+1,t+4)}trackByLeadId(t,n){return n?._id}trackByFunnelRow(t,n){return n?.status}focusNext(){var t=this;return(0,f.Z)(function*(){if(t.focusNavigating)return;if(t.focusIndex<0)return void t.selectLead(t.leads[0]||null);yield t.flushQuickEdits();const n=t.focusIndex;if(n<0)t.selectLead(t.leads[0]||null);else{if(!(n+1<t.leads.length))return t.page<t.totalPages?(t.focusNavigating=!0,t.page++,void t.getPageData({openIndex:0,onDone:()=>t.focusNavigating=!1})):void t._sharedUtilsService.showNotification("That was the last lead in the queue.");t.selectLead(t.leads[n+1])}})()}focusPrev(){var t=this;return(0,f.Z)(function*(){if(t.focusNavigating)return;if(t.focusIndex<0)return void t.selectLead(t.leads[0]||null);yield t.flushQuickEdits();const n=t.focusIndex;n<0?t.selectLead(t.leads[0]||null):n>0?t.selectLead(t.leads[n-1]):t.page>1&&(t.focusNavigating=!0,t.page--,t.getPageData({openIndex:t.pageSize-1,onDone:()=>t.focusNavigating=!1}))})()}goToFocusLead(t){var n=this;return(0,f.Z)(function*(){!t||n.focusNavigating||(yield n.flushQuickEdits(),n.selectLead(t))})()}logAndNext(){var t=this;return(0,f.Z)(function*(){t.canSubmitComposer&&(yield t.submitComposer()),yield t.focusNext()})()}skipFocusLead(){var t=this;return(0,f.Z)(function*(){yield t.focusNext()})()}emptyQuickEdit(){return{status:"",assignedTo:null,nextStep:"",phone:"",email:"",source:"",notes:""}}seedQuickEdit(t){this.quickEditLeadId=t?._id||null,this.quickEdit=t?{status:t.status||"",assignedTo:t.assignedTo?._id||null,nextStep:this.dateInputValue(t.nextStepTargetDate),phone:t.phone||"",email:t.email||"",source:t.source||"",notes:t.notes||""}:this.emptyQuickEdit()}dateInputValue(t){if(!t)return"";const n=new Date(t);return isNaN(n.getTime())?"":this.toDateInput(n)}quickEditPreset(t){const n=new Date;n.setHours(9,0,0,0),n.setDate(n.getDate()+t),this.quickEdit.nextStep=this.toDateInput(n)}get quickEditNextStepOverdue(){if(!this.quickEdit.nextStep)return!1;const t=new Date(`${this.quickEdit.nextStep}T09:00:00`);return!isNaN(t.getTime())&&t<this.startOfToday()}flushQuickEdits(){var t=this;return(0,f.Z)(function*(){const n=t.quickEditLeadId;if(!n||t.quickEditSaving)return;const o=t.leads.find(x=>x._id===n)||(t.activeLead?._id===n?t.activeLead:null);if(!o)return;const a=t.quickEdit,s={};(o.phone||"")!==a.phone&&(s.phone=a.phone),(o.email||"")!==a.email&&(s.email=a.email),(o.source||"")!==a.source&&(s.source=a.source),(o.notes||"")!==a.notes&&(s.notes=a.notes);const l=t.dateInputValue(o.nextStepTargetDate)!==a.nextStep,u=!!a.status&&(o.status||"")!==a.status,p=(o.assignedTo?._id||null)!==(a.assignedTo||null);if(Object.keys(s).length||l||u||p){t.quickEditSaving=!0;try{if(Object.keys(s).length&&t.replaceLead(yield(0,d.lastValueFrom)(t._leadsService.patchFields(n,s))),l){const x=a.nextStep?
1new Date(`${a.nextStep}T09:00:00`):null;t.replaceLead(yield(0,d.lastValueFrom)(t._leadsService.setNextStep(n,x)))}if(p){yield(0,d.lastValueFrom)(t._leadsService.bulkUpdateAssignedTo([n],a.assignedTo));const x=t.leads.find(h=>h._id===n)||t.activeLead;x&&(x.assignedTo=a.assignedTo&&t.systemAdmins.find(h=>h._id===a.assignedTo)||null)}if(u){const x=yield(0,d.lastValueFrom)(t._leadsService.updateStatus(n,a.status)),h=t.leads.find(P=>P._id===n)||t.activeLead;h&&(h.status=x.status,h.dateConverted=x.dateConverted)}t._sharedUtilsService.showNotification(`Saved ${t.leadTitle(o)}`),t.refreshCounts(),t.invalidateDerivedViews()}catch{t._sharedUtilsService.showNotificationWithOptions("Some quick edits did not save","Error",4e3,"error")}t.quickEditSaving=!1}})()}loadFunnel(){this.funnelLoading=!0,this.funnelStale=!1,this._leadsService.funnel(this.baseSearchParams()).pipe((0,v.R)(this.ngUnsubscribe)).subscribe({next:t=>{this.funnelData=t,this.buildFunnelRows(),this.funnelLoading=!1,this.funnelInitialized=!0},error:()=>{this.funnelData=null,this.funnelStages=[],this.funnelOffRamps=[],this.funnelLoading=!1,this.funnelInitialized=!0,this._sharedUtilsService.showNotificationWithOptions("Failed to load the funnel","Error",4e3,"error")}})}funnelCount(t){return this.funnelData?.byStatus.find(n=>n.status===t)?.count||0}get funnelTotal(){return this.funnelData?.total||0}get funnelReached(){return Math.max(0,this.funnelTotal-this.funnelCount("Future Opp")-this.funnelCount(""))}get funnelDemos(){return this.funnelCount("Demo Scheduled")+this.funnelCount("Demo Completed")}get funnelConverted(){return this.funnelCount("Converted")}funnelShare(t){return this.funnelTotal?(Math.round(t/this.funnelTotal*1e3)/10).toFixed(1)+"%":"0%"}buildFunnelRows(){if(!this.funnelData)return this.funnelStages=[],void(this.funnelOffRamps=[]);const t=(s,l,u)=>({status:s,label:l,count:this.funnelCount(s),color:u||this._leadsService.getStatusColor(s),width:"0%",share:""}),n=this.positiveStatuses.map(s=>t(s,s));this.funnelCount("")>0&&n.push(t("","No status","var(--wb-border-strong)"));const o=this.negativeStatuses.map(s=>t(s,s)),a=Math.max(1,...[...n,...o].map(s=>s.count));[...n,...o].forEach(s=>{s.width=Math.max(.5,s.count/a*100)+"%",s.share=this.funnelShare(s.count)}),this.funnelStages=n,this.funnelOffRamps=o}openFunnelStage(t){this.filters.statuses=t?[t]:void 0,this.tablePage=1,this.applyFilters(),this.setView("table")}laneKey(t){return t?.status||"__none__"}laneHasMore(t){return!(!t||this.laneExhausted[this.laneKey(t)])&&(t.leads?.length||0)<(t.count||0)}laneRemaining(t){return Math.max(0,(t.count||0)-(t.leads?.length||0))}loadMoreLane(t){const n=this.boardLanes.find(a=>(a.status||"")===(t||""));if(!n||!this.laneHasMore(n))return;const o=this.laneKey(n);this.laneLoading[o]||(this.laneLoading[o]=!0,this._leadsService.boardLane(this.baseSearchParams(),n.status,n.leads.length,this.lanePageSize).pipe((0,v.R)(this.ngUnsubscribe)).subscribe({next:a=>{const s=a.leads||[],l=new Set((n.leads||[]).map(u=>u._id));n.leads=(n.leads||[]).concat(s.filter(u=>!l.has(u._id))),n.count=a.count,s.length<this.lanePageSize&&(this.laneExhausted[o]=!0),this.laneLoading[o]=!1,setTimeout(()=>this.recheckLanes())},error:()=>{this.laneLoading[o]=!1,this._sharedUtilsService.showNotificationWithOptions("Failed to load more leads","Error",4e3,"error")}}))}observeLaneEnds(){this.teardownLaneScroll();const t=this.laneEnds?.toArray()||[];t.length&&this._zone.runOutsideAngular(()=>{t.forEach(n=>{const o=n.nativeElement,a=o.parentElement;if(!a)return;const s=o.dataset.status||"",l=()=>this.maybeLoadLane(a,s);a.addEventListener("scroll",l,{passive:!0}),this.laneScrollCleanups.push(()=>a.removeEventListener("scroll",l)),this.maybeLoadLane(a,s)})})}maybeLoadLane(t,n){const o=this.boardLanes.find(s=>(s.status||"")===(n||""));!o||!this.laneHasMore(o)||this.laneLoading[this.laneKey(o)]||t.scrollHeight-t.scrollTop-t.clientHeight>this.laneScrollThreshold||this._zone.run(()=>this.loadMoreLane(n))}recheckLanes(){this._zone.runOutsideAngular(()=>{(this.laneEnds?.toArray()||[]).forEach(t=>{const n=t.nativeElement;n.parentElement&&this.maybeLoadLane(n.parentElement,n.dataset.status||"")})})}teardownLaneScroll(){this.laneScrollCleanups.forEach(t=>t()),this.laneScrollCleanups=[]}setScope(t){this.scope!==t&&(this.scope=t,this.page=1,this.clearSelection(),this.getPageData())}applyFilters(){this.page=1,this.tablePage=1,this.getPageData(),this.refreshCounts(),this.invalidateDerivedViews()}resetFilters(){this.filters={},this.applyFilters()}toggleStatus(t){const n=[...this.filters.statuses||[]],o=n.indexOf(t);o>
1=0?n.splice(o,1):n.push(t),this.filters.statuses=n.length?n:void 0,this.applyFilters()}isStatusActive(t){return(this.filters.statuses||[]).includes(t)}clearStatuses(){this.filters.statuses=void 0,this.applyFilters()}onAssignedToFilterChange(){this.filters.assignedTo&&"mine"===this.scope&&(this.scope="all"),this.applyFilters()}toggleAdvanced(){this.filtersExpanded=!this.filtersExpanded}get hasActiveFilters(){return!!(this.filters.query||this.filters.statuses&&this.filters.statuses.length||this.filters.state||this.filters.source||this.filters.hasEmail||this.filters.hasPhone||this.filters.hasDemo||this.filters.assignedTo||this.filters.createdAt_after||this.filters.createdAt_before||this.filters.lastContactedAt_after||this.filters.lastContactedAt_before||this.filters.nextStepTargetDate_after||this.filters.nextStepTargetDate_before)}checkForPaginationIssues(){const t=Math.max(1,Math.ceil((this.total||0)/this.pageSize));this.page>t&&(this.page=t,this.getPageData())}get totalPages(){return Math.max(1,Math.ceil((this.total||0)/this.pageSize))}get rangeLabel(){if(!this.total)return"0 of 0";const t=(this.page-1)*this.pageSize+1;return`${t}-${Math.min(this.total,t+this.leads.length-1)} of ${this.total}`}prevPage(){this.page<=1||(this.page--,this.getPageData())}nextPage(){this.page>=this.totalPages||(this.page++,this.getPageData())}leadInitials(t){const n=(t?.organization||"").trim();if(n){const s=n.split(/\s+/).filter(Boolean);return(s.length>1?s[0][0]+s[1][0]:n.slice(0,2)).toUpperCase()}return((t?.first_name||"").charAt(0)+(t?.last_name||"").charAt(0)||"?").toUpperCase()}userInitials(t){return((t?.first_name||"").charAt(0)+(t?.last_name||"").charAt(0)||"?").toUpperCase()}leadTitle(t){if(!t)return"";const n=`${t.first_name||""} ${t.last_name||""}`.trim();return t.organization||n||"Untitled lead"}leadPerson(t){return t?`${t.first_name||""} ${t.last_name||""}`.trim():""}assigneeName(t){return t?.assignedTo&&`${t.assignedTo.first_name||""} ${t.assignedTo.last_name||""}`.trim()||"Unassigned"}selectLead(t){this.activeLoadToken++,this.activeLead=t,this.assigneeMenuOpen=!1,this.nextStepEditorOpen=!1,this.stageMenuOpen=!1,this.resetComposer(),this.seedQuickEdit(t),this.router.navigate([],{relativeTo:this.route,queryParams:{lead:t?._id||null},queryParamsHandling:"merge",replaceUrl:!0})}isActive(t){return this.activeLead?._id===t._id}get positiveStatuses(){return this.leadStatuses.filter(t=>!this.negativeStatuses.includes(t))}get nextPipelineStatus(){const t=this.positiveStatuses,n=t.indexOf(this.activeLead?.status);return-1===n||n>=t.length-1?null:t[n+1]}get pipelineIndex(){return this.positiveStatuses.indexOf(this.activeLead?.status)}stepLabel(t){return this.shortStatusLabels[t]||t}get onOffRamp(){return this.negativeStatuses.includes(this.activeLead?.status)}segmentState(t){const n=this.pipelineIndex;return-1===n||t>n?"todo":t===n?"current":"done"}advanceStatus(){const t=this.nextPipelineStatus;t&&this.changeStatus(t)}jumpToStatus(t){this.stageMenuOpen=!1,this.changeStatus(t)}changeStatus(t){var n=this;return(0,f.Z)(function*(){if(n.activeLead&&!n.statusSaving&&n.activeLead.status!==t){n.statusSaving=!0;try{const o=yield(0,d.lastValueFrom)(n._leadsService.updateStatus(n.activeLead._id,t));n.activeLead.status=o.status,n.activeLead.dateConverted=o.dateConverted,n._sharedUtilsService.showNotification("Status updated to "+t),n.activityFeed?.refresh(),n.refreshCounts(),n.invalidateDerivedViews()}catch{n._sharedUtilsService.showNotificationWithOptions("Failed to update status","Error",4e3,"error")}n.statusSaving=!1}})()}assignLead(t){var n=this;return(0,f.Z)(function*(){if(n.activeLead&&!n.assigning){n.assigneeMenuOpen=!1,n.assigning=!0;try{yield(0,d.lastValueFrom)(n._leadsService.bulkUpdateAssignedTo([n.activeLead._id],t)),n.activeLead.assignedTo=t&&n.systemAdmins.find(o=>o._id===t)||null,n._sharedUtilsService.showNotification(t?`Assigned to ${n.assigneeName(n.activeLead)}`:"Lead unassigned"),n.refreshCounts(),n.invalidateDerivedViews()}catch{n._sharedUtilsService.showNotificationWithOptions("Failed to assign lead","Error",4e3,"error")}n.assigning=!1}})()}openNextStepEditor(){if(!this.activeLead)return;const t=this.activeLead.nextStepTargetDate?new Date(this.activeLead.nextStepTargetDate):null;this.nextStepValue=t&&!isNaN(t.getTime())?this.toDateInput(t):"",this.nextStepEditorOpen=!0}toDateInput(t){const n=o=>String(o).padStart(2,"0");return`${t.getFullYear()}-${n(t.getMonth()+1)}-${n(t.getDate())}`}nextStepPreset(t){const n=new Date;n.setHours(9,0,0,0),n.setDate(n.getDate()+t),this.nextStepValue=this.toDateInput(n),this.saveNextStep()}saveNextStep(t=!1){var n=this;return(0,f.Z)(function*(){if(!n.activeLead||n.nextStepSaving)return;const o=t||!n.nextStepValue?null:new Date(`${n.nextStepValue}T09:00:00`);n.nextStepSaving=!0;try{const a=yield(0,d.lastValueFrom)(n._leadsService.setNextStep(n.activeLead._id,o));n.replaceLead(a),n.nextStepEditorOpen=!1,n.refreshCounts()}catch{n._sharedUtilsService.showNotificationWithOptions("Failed to set next step","Error",4e3,"error")}n.nextStepSaving=!1})()}replaceLead(t){if(!t?._id)return;const n=this.leads.findIndex(o=>o._id===t._id);n>=0&&(this.leads[n]=t),this.activeLead?._id===t._id&&(this.activeLead=t),this.buildGroups(),this.invalidateDerivedViews()}setComposerTab(t){"email"!==t?(this.composerTab=t,this.composerBody=""):this.sendOutreachEmail()}resetComposer(){this.composerTab="call",this.composerBody="",this.callOutcome="connected",this.demoDateV
1alue="",this.alsoSetNextStep=!0,this.alsoAdvanceStatus=!1}get composerPlaceholder(){switch(this.composerTab){case"call":return"What happened on the call?";case"sms":return"Text message to send\u2026";case"note":return"Add a note to the record\u2026";case"demo":return"Anything to note about the demo?";default:return""}}get alsoSetNextStepTooltip(){const t=new Date;t.setHours(9,0,0,0),t.setDate(t.getDate()+3);const n=t.toLocaleDateString(void 0,{weekday:"short",month:"short",day:"numeric"}),o=this.activeLead?.nextStepTargetDate?new Date(this.activeLead.nextStepTargetDate):null,a=o&&!isNaN(o.getTime());return`${a?`Reschedules this lead's next step to ${n} at 9:00 AM, replacing ${o.toLocaleDateString(void 0,{month:"short",day:"numeric"})}.`:`Books this lead's first next step for ${n} at 9:00 AM.`} Saved right after the log entry, ${a&&"overdue"===this.bucketFor(this.activeLead)?"so the row leaves the Overdue group and re-sorts under its new date":"so the row re-sorts in the rail under its new date"}. Uncheck to log this without touching the follow-up date.`}get composerSubmitLabel(){switch(this.composerTab){case"call":return"Log call";case"sms":return"Send SMS";case"note":return"Add note";case"demo":return"Schedule demo";default:return"Save"}}get canSubmitComposer(){return!(!this.activeLead||this.composerSaving||("sms"===this.composerTab?!this.activeLead.phone||!this.composerBody.trim():"note"===this.composerTab?!this.composerBody.trim():"demo"===this.composerTab&&!this.demoDateValue))}submitComposer(){var t=this;return(0,f.Z)(function*(){if(!t.canSubmitComposer)return;const n=t.activeLead,o=t.composerBody.trim();t.composerSaving=!0;try{if("call"===t.composerTab)yield(0,d.lastValueFrom)(t._activityService.logCall(n._id,{outcome:t.callOutcome,body:o||void 0})),t._sharedUtilsService.showNotification("Call logged");else if("sms"===t.composerTab)yield(0,d.lastValueFrom)(t._activityService.sendSms(n._id,o)),t._sharedUtilsService.showNotification("SMS sent");else if("note"===t.composerTab)yield(0,d.lastValueFrom)(t._activityService.addNote(n._id,o)),t._sharedUtilsService.showNotification("Note added");else if("demo"===t.composerTab){const a=yield(0,d.lastValueFrom)(t._leadsService.scheduleDemo(n._id,t.demoDateValue));n.demoScheduledAt=a.demoScheduledAt,n.status=a.status,t._sharedUtilsService.showNotification("Demo scheduled")}if(t.alsoSetNextStep&&"demo"!==t.composerTab){const a=new Date;a.setHours(9,0,0,0),a.setDate(a.getDate()+3);try{const s=yield(0,d.lastValueFrom)(t._leadsService.setNextStep(n._id,a));t.replaceLead(s)}catch{t._sharedUtilsService.showNotificationWithOptions("Logged, but the next step did not save","Warning",4e3,"error")}}t.alsoAdvanceStatus&&t.nextPipelineStatus&&(yield t.changeStatus(t.nextPipelineStatus)),t.composerBody="",t.alsoAdvanceStatus=!1,t.activityFeed?.refresh(),t.refreshCounts()}catch{t._sharedUtilsService.showNotificationWithOptions("sms"===t.composerTab?"Failed to send SMS":"Failed to save","Error",4e3,"error")}t.composerSaving=!1})()}sendOutreachEmail(){this.activeLead?.email?this.dialog.open(F,{width:"720px",maxWidth:"95vw",autoFocus:!1,data:{lead:this.activeLead}}).afterClosed().subscribe(n=>{n&&(this.activeLead.status=n.status,this.activeLead.lastContactedAt=n.lastContactedAt,this.activityFeed?.refresh(),this.refreshCounts())}):this._sharedUtilsService.showNotification("This lead has no email address.")}convertToDirector(){var t=this;return(0,f.Z)(function*(){if(t.activeLead&&!t.converting)if("Converted"===t.activeLead.status&&t.activeLead.user)t._sharedUtilsService.showNotification("This lead has already been converted.");else if(t.activeLead.email){if(yield t._sharedUtilsService.confirmationDialogPromise({title:"Convert to Director Account",textToDisplay:`This creates a new Director user and account (Stripe, credit bank, settings) for ${t.leadPerson(t.activeLead)||t.leadTitle(t.activeLead)} and marks the lead as Converted. Continue?`,buttonsInfo:{confirmText:"Convert",confirmBtnColor:"primary",denyText:"Cancel",denyBtnColor:""}})){t.converting=!0;try{const o=yield(0,d.lastValueFrom)(t._leadsService.convertToDirector(t.activeLead._id));t.activeLead.status=o.lead.status,t.activeLead.user=o.lead.user,t.activeLead.dateConverted=o.lead.dateConverted,t._sharedUtilsService.showNotificationWithOptions("Director account created"+(o.stripeCreated?"":" - Stripe still needs setup"),"Lead Converted",5e3,"success"),t.activityFeed?.refresh(),t.refreshCounts(),t.invalidateDerivedViews()}catch(o){t._sharedUtilsService.showNotificationWithOptions(o&&o.error&&o.error.message?o.error.message:"Failed to convert lead","Conversion Failed",5e3,"error")}
1t.converting=!1}}else t._sharedUtilsService.showNotificationWithOptions("Lead has no email; cannot create a director account.","Cannot Convert",4e3,"error")})()}markDnc(){var t=this;return(0,f.Z)(function*(){!t.activeLead||"DNC"===t.activeLead.status||!(yield t._sharedUtilsService.confirmationDialogPromise({title:"Mark Do Not Contact",textToDisplay:`Stop all outreach to ${t.leadTitle(t.activeLead)}?`,buttonsInfo:{confirmText:"Mark DNC",confirmBtnColor:"warn",denyText:"Cancel",denyBtnColor:""}}))||(yield t.changeStatus("DNC"))})()}sendActiveToCampaign(){this.activeLead&&this.router.navigate([this.baseRoute+"/campaigns/create"],{queryParams:{leadIds:this.activeLead._id}})}editActiveLead(){this.activeLead&&this.router.navigateByUrl(this.baseRoute+"/leads/edit/"+this.activeLead._id)}openFullRecord(){this.activeLead&&(this._leadsService.setCurrentBeingViewed(this.activeLead),this.router.navigate([this.baseRoute+"/leads/"+this.activeLead._id]))}toggleSelect(t,n){n&&n.stopPropagation(),this.selectedLeadIds.has(t._id)?this.selectedLeadIds.delete(t._id):this.selectedLeadIds.add(t._id)}isSelected(t){return this.selectedLeadIds.has(t._id)}toggleSelectAllOnPage(){const t=this.currentRows||[];t.every(n=>this.selectedLeadIds.has(n._id))?t.forEach(n=>this.selectedLeadIds.delete(n._id)):t.forEach(n=>this.selectedLeadIds.add(n._id))}get allOnPageSelected(){const t=this.currentRows||[];return t.length>0&&t.every(n=>this.selectedLeadIds.has(n._id))}selectAllMatching(){var t=this;return(0,f.Z)(function*(){if(!t.selectingAll){t.selectingAll=!0;try{const n=yield(0,d.lastValueFrom)(t._leadsService.matchingIds(t.currentSearchParams()));n.capped?t._sharedUtilsService.showNotificationWithOptions(`${n.total.toLocaleString()} leads match, and a selection is capped at ${n.cap.toLocaleString()}. Narrow the filters first.`,"Too many to select",6e3,"error"):(n.ids.forEach(o=>t.selectedLeadIds.add(o)),t._sharedUtilsService.showNotification(`Selected all ${n.ids.length.toLocaleString()} lead${1===n.ids.length?"":"s"} matching these filters.`))}catch{t._sharedUtilsService.showNotificationWithOptions("Failed to select all matching leads","Error",4e3,"error")}t.selectingAll=!1}})()}get allMatchingSelected(){return this.currentTotal>0&&this.selectedLeadIds.size>=this.currentTotal}clearSelection(){this.selectedLeadIds.clear(),this.bulkAssignToUserId="__UNSET__",this.bulkStatus="__UNSET__",this.bulkNextStepValue=""}sendSelectedToCampaign(){if(!this.selectedLeadIds.size)return;const t=Array.from(this.selectedLeadIds).join(",");this.router.navigate([this.baseRoute+"/campaigns/create"],{queryParams:{leadIds:t}})}get canApplyBulkAssign(){return this.selectedLeadIds.size>0&&"__UNSET__"!==this.bulkAssignToUserId&&!this.bulkAssigning}applyBulkAssign(){var t=this;return(0,f.Z)(function*(){if(!t.canApplyBulkAssign)return;const n=Array.from(t.selectedLeadIds),o="__UNSET__"===t.bulkAssignToUserId?null:t.bulkAssignToUserId;t.bulkAssigning=!0;try{const a=yield(0,d.lastValueFrom)(t._leadsService.bulkUpdateAssignedTo(n,o)),s=o?t.systemAdmins.find(u=>u._id===o):null;t._sharedUtilsService.showNotification(`Assigned ${a.modified} lead${1===a.modified?"":"s"} to ${o?s?`${s.first_name} ${s.last_name}`:"selected admin":"Unassigned"}.`),t.clearSelection(),t.reloadCurrentList(),t.refreshCounts(),t.invalidateDerivedViews()}catch{t._sharedUtilsService.showNotificationWithOptions("Failed to assign leads","Error",4e3,"error")}t.bulkAssigning=!1})()}get canApplyBulkNextStep(){return this.selectedLeadIds.size>0&&!!this.bulkNextStepValue&&!this.bulkNextStepSaving}applyBulkNextStepPreset(t){const n=new Date;n.setHours(9,0,0,0),n.setDate(n.getDate()+t),this.bulkNextStepValue=this.toDateInput(n),this.applyBulkNextStep()}applyBulkNextStep(t=!1){var n=this;return(0,f.Z)(function*(){if(!n.selectedLeadIds.size||n.bulkNextStepSaving||!t&&!n.bulkNextStepValue)return;const o=Array.from(n.selectedLeadIds),a=o.length;if(t&&!(yield n._sharedUtilsService.confirmationDialogPromise({title:"Clear next step",textToDisplay:`Remove the next-step date from ${a} lead${1===a?"":"s"}? They drop out of the follow-up queue into "No next step", and the dates cannot be recovered.`,buttonsInfo:{confirmText:"Clear dates",confirmBtnColor:"warn",denyText:"Cancel",denyBtnColor:""}})))return;const s=t?null:new Date(`${n.bulkNextStepValue}T09:00:00`);n.bulkNextStepSaving=!0;try{const l=yield(0,d.lastValueFrom)(n._leadsService.bulkSetNextStep(o,s)),u=t?`Cleared the next step on ${l.modified} lead${1===l.modified?"":"s"}.`:`Scheduled ${l.modified} lead${1===l.modified?"":"s"} for ${s.toLocaleDateString(void 0,{month:"short",day:"numeric"})}.`;n._sharedUtilsService.showNotification(u),n.clearSelection(),n.reloadCurrentList(),n.refreshCounts(),n.invalidateDerivedViews()}catch{n._sharedUtilsService.showNotificationWithOptions("Failed to set the next step","Error",4e3,"error")}n.bulkNextStepSaving=!1})()}get canApplyBulkStatus(){return this.selectedLeadIds.size>0&&"__UNSET__"!==this.bulkStatus&&!this.bulkStatusSaving}applyBulkStatus(){var t=this;return(0,f.Z)(function*(){if(!t.canApplyBulkStatus)return;const n=Array.from(t.selectedLeadIds),o=t.bulkStatus;t.bulkStatusSaving=!0;try{const a=yield(0,d.lastValueFrom)(t._leadsService.bulkUpdateStatus(n,o));t._sharedUtilsService.showNotification(`Set ${a.modified} lead${1===a.modified?"":"s"} to ${o}.`),t.clearSelection(),t.reloadCurrentList(),t.refreshCounts(),t.invalidateDerivedViews()}catch{t._sharedUtilsService.showNotificationWithOptions("Failed to update status","Error",4e3,"error")}t.bulkStatusSaving=!1})()}addNew(){this.router.navigateByUrl(this.baseRoute+"/leads/create")}openImportDialog(){this.dialog.open(ce,{width:"720px",maxWidth:"95vw",autoF
1ocus:!1}).afterClosed().subscribe(n=>{n?.imported&&(this._sharedUtilsService.showNotification(`Imported ${n.imported} leads.`),this.getPageData(),this.refreshCounts(),this.invalidateDerivedViews())})}exportCsv(){var t=this;return(0,f.Z)(function*(){try{const n=yield(0,d.lastValueFrom)(t._leadsService.search(t.currentSearchParams())),o=[["First Name","Last Name","Organization","Email","Phone","Status","Source","Website","Street","City","State","Zip","Assigned To","Last Contacted","Next Step Target Date","Demo Scheduled","Created At"]];n.forEach(p=>{o.push([p.first_name||"",p.last_name||"",p.organization||"",p.email||"",p.phone||"",p.status||"",p.source||"",p.website||"",p.street||"",p.city||"",p.state||"",p.zip||"",p.assignedTo?`${p.assignedTo.first_name||""} ${p.assignedTo.last_name||""}`.trim():"",p.lastContactedAt?new Date(p.lastContactedAt).toISOString().slice(0,10):"",p.nextStepTargetDate?new Date(p.nextStepTargetDate).toISOString().slice(0,10):"",p.demoScheduledAt?new Date(p.demoScheduledAt).toISOString().slice(0,10):"",p.createdAt?new Date(p.createdAt).toISOString().slice(0,10):""])});const a=o.map(p=>p.map(x=>`"${(x||"").replace(/"/g,'""')}"`).join(",")).join("\n"),s=new Blob([a],{type:"text/csv;charset=utf-8;"}),l=URL.createObjectURL(s),u=document.createElement("a");u.href=l,u.download=`leads-${(new Date).toISOString().slice(0,10)}.csv`,u.click(),URL.revokeObjectURL(l),t._sharedUtilsService.showNotification(`Exported ${n.length} leads.`)}catch{t._sharedUtilsService.showNotificationWithOptions("Export failed","Error",4e3,"error")}})()}onKeydown(t){const n=t.target,o=n&&("INPUT"===n.tagName||"TEXTAREA"===n.tagName||n.isContentEditable);if("/"===t.key&&!o)return t.preventDefault(),void this.searchInput?.nativeElement.focus();if("focus"===this.view&&this.activeLead){if("ArrowRight"===t.key&&!o)return t.preventDefault(),void this.focusNext();if("ArrowLeft"===t.key&&!o)return t.preventDefault(),void this.focusPrev();if("Enter"===t.key&&(!o||t.metaKey||t.ctrlKey))return t.preventDefault(),void this.logAndNext()}if("Escape"===t.key){if(this.statusMenuOpen)return void(this.statusMenuOpen=!1);if(this.assigneeMenuOpen)return void(this.assigneeMenuOpen=!1);if(this.stageMenuOpen)return void(this.stageMenuOpen=!1);if(this.nextStepEditorOpen)return void(this.nextStepEditorOpen=!1);this.selectedLeadIds.size&&this.clearSelection()}}static{this.\u0275fac=function(n){return new(n||i)(e.Y36(b.e8),e.Y36(b.KD),e.Y36(b.wm),e.Y36(O.C),e.Y36(T),e.Y36(b.n3),e.Y36(m.gz),e.Y36(m.F0),e.Y36(w.uw),e.Y36(e.R0b),e.Y36(Z._))}}static{this.\u0275cmp=e.Xpm({type:i,selectors:[["leads-grid"]],viewQuery:function(n,o){if(1&n&&(e.Gf(Ie,5),e.Gf(Fe,5),e.Gf(Ge,5),e.Gf(k,5),e.Gf(ze,5)),2&n){let a;e.iGM(a=e.CRH())&&(o.searchInput=a.first),e.iGM(a=e.CRH())&&(o.shellRef=a.first),e.iGM(a=e.CRH())&&(o.boardRef=a.first),e.iGM(a=e.CRH())&&(o.activityFeed=a.first),e.iGM(a=e.CRH())&&(o.laneEnds=a)}},hostBindings:function(n,o){1&n&&e.NdJ("resize",function(){return o.onWindowResize()},!1,e.Jf7)("keydown",function(s){return o.onKeydown(s)},!1,e.evT)},decls:34,vars:13,consts:[[1,"lw-page"],[1,"lw-hero"],[1,"lw-hero-left"],[1,"material-symbols-outlined","lw-hero-icon"],[1,"lw-hero-titles"],["class","lw-hero-total",4,"ngIf"],["class","lw-hero-sub",4,"ngIf"],["role","tablist","aria-label","Leads view",1,"lw-views"],["type","button","class","lw-view","role","tab",3,"is-on","click",4,"ngFor","ngForOf"],[1,"lw-hero-actions"],[1,"lw-search"],[1,"material-symbols-outlined","lw-search-icon"],["type","text","placeholder","Search leads...",3,"ngModel","ngModelChange","keyup.enter"],["searchInput",""],["type","button","class","lw-search-clear","aria-label","Clear search",3,"click",4,"ngIf"],["class","lw-kbd",4,"ngIf"],["class","lw-hero-owner","aria-label","Filter by owner",3,"ngModel","ngModelChange","change",4,"ngIf"],[4,"ngIf"],["type","button",1,"lw-hero-cta",3,"click"],[1,"material-symbols-outlined"],["class","lw-table-wrap",4,"ngIf"],["class","lw-shell",3,"has-active",4,"ngIf"],["class","lw-focus",4,"ngIf"],["class","lw-funnel",4,"ngIf"],["class","lw-board",4,"ngIf"],["bulkBar",""],[1,"lw-hero-total"],[1,"lw-hero-sub"],[1,"lw-dot-sep"],["class","is-overdue",4,"ngIf"],["class","lw-muted",4,"ngIf"],[1,"is-overdue"],[1,"lw-muted"],["type","button","role","tab",1,"lw-view",3,"click"],["type","button","aria-label","Clear search",1,"lw-search-clear",3,"click"],[1,"lw-kbd"],["aria-label","Filter by owner",1,"lw-hero-owner",3,"ngModel","ngModelChange","change"],[3,"ngValue"],[3,"ngValue",4,"ngFor","ngForOf"],["type","button","matTooltip","Import leads from CSV",1,"lw-hero-icon-btn",3,"click"],["type","button","matTooltip","Export everything matching these filters",1,"lw-hero-icon-btn",3,"click"],[1,"lw-table-wrap"],[4,"ngTemplateOutlet"],[1,"lw-table-card"],[1,"lw-table-scroll"],["role","table",1,"lw-table"],["role","row",1,"lw-thead"],[1,"lw-th","lw-th-check",3,"click"],["type","checkbox","aria-label","Select every lead on this page",3,"checked","change"],[1,"lw-box"],["role","columnheader",1,"lw-th","is-sortable",3,"click"],["class","material-symbols-outlined",4,"ngIf"],["role","columnheader",1,"lw-th"],["role","columnheader","matTooltip","Follow-up order: dated soonest first, then everything with no date",1,"lw-th","is-sortable",3,"click"],["class","lw-tr","role","row",3,"is-checked","click",4,"ngFor","ngForOf"],["class","lw-table-loading",4,"ngIf"],["class","lw-rail-empty",4,"ngIf"],["class","lw-rail-foot",4,"ngIf"],["role","row",1,"lw-tr",3,"click"],[1,"lw-td","lw-td-check",3,"click"],["type","checkbox",3,"checked","change"],["role","cell",1,"lw-td","lw-td-lead"],[1,"lw-td-org"],["class","lw-td-person",4,"ngIf"],["role","cell",1,"lw-td","lw-td-status"],[1,"lw-status-dot"],[1,"lw-td-status-text"],["role","cell",1,"lw-td"],[1,"lw-due"],["role","cell",1,"lw-td","lw-td-muted"],[1,"lw-owner",3,"matTooltip"],["role","cell",1,"lw-td","lw-td-muted","is-num"],[1,"lw-td-person"],[1,"lw-table-loading"],[1,"lw-spinner"],[1,"lw-rail-empty"],["type","button","class","lw-rail-empty-btn",3,"click",4,"ngIf"],["type","button",1,"lw-rail-empty-btn",3,"click"],[1,"lw-rail-foot"],[1,"lw-range"],[1,"lw-pager"],["type","button","aria-label","Previous page",3,"disabled","click"],["type","button","aria-label","Next page",3,"disabled","click"],[1,"lw-shell"],["shell",""],[1,"lw-rail"],[1,"lw-rail-head"],[1,"lw-scopes"],["type","button",1,"lw-scope",3,"click"],[1,"lw-scope-n"],[1,"lw-rail-meta"],[1,"lw-eyebrow"],[1,"lw-rail-meta-actions"],["type","button","class","lw-mini-btn",3,"click",4,"ngIf"],["type","button",1,"lw-mini-btn",3,"click"],["class","lw-filters",4,"ngIf"],[1,"lw-rail-list"],["class","lw-rail-loading",4,"ngIf"],[4,"ngFor","ngForOf"],["class","lw-detail",4,"ngIf","ngIfElse"],["noSelection",""],[1,"lw-filters"],[1,"lw-field"],[1,"lw-status-select"],["type","button",1,"lw-status-trigger",3,"click"],["class","lw-status-dots",4,"ngIf"],[1,"lw-status-label"],[1,"material-symbols-outlined","lw-chev"],[1,"lw-field-row"],[3,"ngModel","ngModelChange","change"],[1,"lw-field","lw-field--narrow"],["type","text","placeholder","FL","maxlength","3",3,"ngModel","ngModelChange","change"],["type","text","placeholder","e.g. referral",3,"ngModel","ngModelChange","change"],[1,"lw-toggles"],[1,"lw-toggle"],["type","checkbox",3,"ngModel","ngModelChange","change"],["type","date",3,"ngModel","ngModelChange","change"],[1,"lw-status-dots"],["class","lw-status-dot",3,"background",4,"ngFor","ngForOf"],[1,"lw-backdrop",3,"click"],["role","listbox","aria-multiselectable","true",1,"lw-status-panel"],[1,"lw-status-panel-head"],["type","button",3,"click",4,"ngIf"],["type","button","class","lw-status-option","role","option",3,"checked","click",4,"ngFor","ngForOf"],["type","button",3,"click"],["type","button","role","option",1,"lw-status-option",3,"click"],[1,"lw-status-check"],[1,"lw-rail-loading"],[1,"lw-group-head"],[1,"lw-group-dot"],[1,"lw-group-label"],[1,"lw-group-count"],["class","lw-row",3,"is-active","is-checked","click",4,"ngFor","ngForOf"],[1,"lw-row",3,"click"],[1,"lw-row-check",3,"click"],[1,"lw-row-main"],[1,"lw-row-top"],[1,"lw-row-org"],[1,"lw-row-bottom"],[1,"lw-row-status"],["class","lw-row-sep",4,"ngIf"],["class","lw-row-name",4,"ngIf"],[1,"lw-row-spacer"],[1,"lw-row-sep"],[1,"lw-row-name"],[1,"lw-detail"],[1,"lw-detail-head"],[1,"lw-detail-identity"],[1,"lw-detail-avatar"],[1,"lw-detail-titles"],[1,"lw-detail-title-row"],[1,"lw-detail-name"],["class","lw-chip lw-chip--status",3,"--chip",4,"ngIf"],["class","lw-chip lw-chip--danger",4,"ngIf"],["class","lw-chip lw-chip--muted",4,"ngIf"],[1,"lw-detail-meta"],["class","lw-detail-person",4,"ngIf"],[3,"href",4,"ngIf"],["target","_blank","rel","noopener",3,"href",4,"ngIf"],[1,"lw-detail-actions"],[1,"lw-assignee"],["type","button",1,"lw-assignee-trigger",3,"disabled","click"],[1,"lw-owner"],["type","button",1,"lw-text-btn",3,"click"],["type","button","matTooltip","Open full record",1,"lw-icon-btn",3,"click"],["type","button",1,"lw-convert",3,"disabled","click"],[1,"lw-pipeline"],[1,"lw-stepper"],["type","button","class","lw-seg",3,"disabled","matTooltip","click",4,"ngFor","ngForOf"],["type","button","class","lw-advance",3,"disabled","click",4,"ngIf"],[1,"lw-stage-menu"],["type","button",1,"lw-offramp",3,"disabled","click"],[1,"lw-pipeline-spacer"],[1,"lw-nextstep"],["type","button",1,"lw-nextstep-trigger",3,"click"],[1,"lw-detail-body"],[1,"lw-work"],[1,"lw-composer"],[1,"lw-composer-tabs"],["type","button","class","lw-composer-tab",3,"is-on","click",4,"ngFor","ngForOf"],[1,"lw-composer-hint"],[1,"lw-composer-body"],["class","lw-outcomes",4,"ngIf"],["class","lw-composer-warn",4,"ngIf"],["class","lw-demo-date",4,"ngIf"],[3,"placeholder","ngModel","disabled","ngModelChange"],[1,"lw-composer-foot"],[1,"lw-composer-opts"],["class","lw-check","matTooltipPosition","above","matTooltipClass","wide-tooltip",3,"matTooltip",4,"ngIf"],["class","lw-check",4,"ngIf"],["type","button",1,"lw-composer-submit",3,"disabled","click"],[1,"lw-activity"],[3,"leadId","leadCreatedAt"],[1,"lw-record"],[1,"lw-record-card"],[1,"lw-record-row"],[1,"lw-record-label"],[1,"lw-record-value"],["class","lw-record-row",4,"ngIf"],[1,"lw-record-card-head"],["type","button","matTooltip","Edit notes",1,"lw-record-edit",3,"click"],["class","lw-record-notes",4,"ngIf"],["class","lw-record-notes is-empty",4,"ngIf"],[1,"lw-record-actions"],["type","button",1,"is-danger",3,"disabled","click"],[1,"lw-chip","lw-chip--status"],[1,"lw-chip","lw-chip--danger"],[1,"lw-chip","lw-chip--muted"],[1,"lw-detail-person"],[3,"href"],["target","_blank","rel","noopener",3,"href"],[1,"lw-menu"],["type","button","class","lw-menu-item",3,"is-on","click",4,"ngFor","ngForOf"],["type","button",1,"lw-menu-item","lw-menu-item--muted",3,"click"],[1,"lw-owner","is-none"],["type","button",1,"lw-menu-item",3,"click"],["type","button",1,"lw-seg",3,"disabled","matTooltip","click"],[1,"lw-seg-bar"],[1,"lw-seg-label"],["type","button",1,"lw-advance",3,"disabled","click"],[1,"lw-nextstep-rel"],[1,"lw-menu","lw-menu--nextstep"],[1,"lw-menu-head"],[1,"lw-nextstep-presets"],[1,"lw-nextstep-custom"],["type","date",3,"ngModel","ngModelChange"],["type","button",1,"lw-nextstep-save",3,"disabled","click"],["type","button","class","lw-nextstep-clear",3,"disabled","click",4,"ngIf"],["type","button",1,"lw-nextstep-clear",3,"disabled","click"],["type","button",1,"lw-composer-tab",3,"click"],[1,"lw-outcomes"],["type","button","class","lw-outcome",3,"is-on","click",4,"ngFor","ngForOf"],["type","button",1,"lw-outcome",3,"click"],[1,"lw-composer-warn"],[1,"lw-demo-date"],["type","datetime-local",3,"ngModel","ngModelChange"],["matTooltipPosition","above","matTooltipClass","wide-tooltip",1,"lw-check",3,"matTooltip"],["type","checkbox",3,"ngModel","ngModelChange"],[1,"lw-check"],[1,"lw-record-notes"],[1,"lw-record-notes","is-empty"],[1,"lw-detail","lw-detail--empty"],[1,"lw-focus"],[1,"lw-focus-queue"],[1,"lw-focus-queue-label"],[1,"lw-focus-pos"],[1,"lw-focus-bar"],[1,"lw-focus-keys"],[1,"lw-focus-nav"],["type","button",3,"disabled","click"],["type","button",1,"is-next",3,"disabled","click"],[1,"lw-focus-body"],["class","lw-focus-empty",4,"ngIf"],["class","lw-focus-lead",4,"ngIf"],[1,"lw-focus-empty"],[1,"lw-focus-lead"],[1,"lw-focus-head"],[1,"lw-focus-identity"],[1,"lw-focus-avatar"],[1,"lw-focus-titles"],[1,"lw-focus-name-row"],[1,"lw-focus-org"],[1,"lw-focus-meta"],["class","lw-focus-pers
1on",4,"ngIf"],["class","lw-focus-saving",4,"ngIf"],[1,"lw-pipeline","lw-pipeline--focus"],[1,"lw-focus-cols"],[1,"lw-focus-actions"],[1,"lw-focus-actions-spacer"],["type","button",1,"is-danger",3,"click"],["type","button",1,"is-skip",3,"disabled","click"],[1,"lw-focus-side"],[1,"lw-quick"],[1,"lw-quick-pair"],["for","qe-status"],["id","qe-status",3,"ngModel","ngModelChange"],["for","qe-owner"],["id","qe-owner",3,"ngModel","ngModelChange"],["for","qe-next"],[1,"lw-quick-date"],["id","qe-next","type","date",3,"ngModel","ngModelChange"],["for","qe-phone"],["id","qe-phone","type","text","placeholder","Add phone",3,"ngModel","ngModelChange"],["for","qe-email"],["id","qe-email","type","text","placeholder","Add email",3,"ngModel","ngModelChange"],["for","qe-source"],["id","qe-source","type","text","placeholder","e.g. referral",3,"ngModel","ngModelChange"],["for","qe-notes"],["id","qe-notes","placeholder","No notes on this lead yet.",3,"ngModel","ngModelChange"],["class","lw-upnext",4,"ngIf"],[1,"lw-focus-person"],[1,"lw-focus-saving"],[1,"lw-upnext"],["type","button",3,"click",4,"ngFor","ngForOf","ngForTrackBy"],[1,"lw-upnext-org"],[1,"lw-funnel"],["class","lw-funnel-loading",4,"ngIf"],[1,"lw-funnel-loading"],[1,"lw-tiles"],[1,"lw-tile"],[1,"lw-tile-n"],[1,"lw-tile-sub"],[1,"lw-tile-n","is-accent"],[1,"lw-funnel-block"],["type","button","class","lw-funnel-row",3,"matTooltip","click",4,"ngFor","ngForOf","ngForTrackBy"],[1,"lw-funnel-block","is-offramps"],["type","button",1,"lw-funnel-row",3,"matTooltip","click"],[1,"lw-funnel-name"],[1,"lw-funnel-dot"],[1,"lw-funnel-track"],[1,"lw-funnel-fill"],[1,"lw-funnel-nums"],[1,"lw-funnel-count"],[1,"lw-funnel-share"],[1,"lw-board"],["board",""],["class","lw-board-loading",4,"ngIf"],[1,"lw-board-loading"],["class","lw-lane",4,"ngFor","ngForOf"],[1,"lw-terminal-col"],[1,"lw-terminal-hint"],[1,"lw-lane"],[1,"lw-lane-head"],[1,"lw-lane-dot"],[1,"lw-lane-name"],[1,"lw-lane-count"],[1,"lw-lane-body"],["type","button","class","lw-card",3,"is-overdue","click",4,"ngFor","ngForOf"],["class","lw-lane-more",4,"ngIf"],["class","lw-lane-empty",4,"ngIf"],["type","button",1,"lw-card",3,"click"],[1,"lw-card-org"],["class","lw-card-person",4,"ngIf"],[1,"lw-card-foot"],[1,"lw-card-spacer"],[1,"lw-card-person"],[1,"lw-lane-more"],["laneEnd",""],["class","lw-spinner",4,"ngIf"],[1,"lw-lane-empty"],["class","lw-lane lw-lane--terminal",4,"ngIf"],["type","button","class","lw-terminal-tile",3,"click",4,"ngIf"],[1,"lw-lane","lw-lane--terminal"],["type","button",1,"lw-lane-head",3,"click"],[1,"material-symbols-outlined","lw-lane-chev"],["type","button","class","lw-card",3,"click",4,"ngFor","ngForOf"],["type","button",1,"lw-terminal-tile",3,"click"],[1,"lw-terminal-name"],[1,"lw-terminal-count"],["class","lw-bulk",4,"ngIf"],[1,"lw-bulk"],[1,"lw-bulk-top"],["type","button",1,"lw-bulk-link",3,"click"],["type","button","class","lw-bulk-link",3,"disabled","click",4,"ngIf"],[1,"lw-bulk-row"],[3,"ngModel","disabled","ngModelChange"],["disabled","",3,"ngValue"],["type","button",1,"lw-bulk-apply",3,"disabled","click"],[1,"lw-bulk-label"],["type","date","aria-label","Next step date for the selected leads",3,"ngModel","disabled","ngModelChange"],[1,"lw-bulk-presets"],["type","button",1,"lw-bulk-campaign",3,"click"],["type","button",1,"lw-bulk-link",3,"disabled","click"]],template:function(n,o){1&n&&(e.TgZ(0,"div",0)(1,"header",1)(2,"div",2)(3,"span",3),e._uU(4,"target"),e.qZA(),e.TgZ(5,"div")(6,"div",4)(7,"h1"),e._uU(8,"Leads"),e.qZA(),e.YNc(9,De,3,3,"span",5),e.qZA(),e.YNc(10,Ye,13,8,"div",6),e.qZA(),e.TgZ(11,"div",7),e.YNc(12,He,2,4,"button",8),e.qZA()(),e.TgZ(13,"div",9)(14,"div",10)(15,"span",11),e._uU(16,"search"),e.qZA(),e.TgZ(17,"input",12,13),e.NdJ("ngModelChange",function(s){return o.filters.query=s})("keyup.enter",function(){return o.applyFilters()}),e.qZA(),e.YNc(19,je,3,0,"button",14),e.YNc(20,Ke,2,0,"span",15),e.qZA(),e.YNc(21,Be,4,3,"select",16),e.YNc(22,Re,7,0,"ng-container",17),e.TgZ(23,"button",18),e.NdJ("click",function(){return o.addNew()}),e.TgZ(24,"span",19),e._uU(25,"add"),e.qZA(),e._uU(26,"New lead "),e.qZA()()(),e.YNc(27,lt,35,18,"div",20),e.YNc(28,sn,39,28,"div",21),e.YNc(29,Jn,25,13,"div",22),e.YNc(30,Dn,3,2,"div",23),e.YNc(31,oo,4,2,"div",24),e.qZA(),e.YNc(32,lo,1,1,"ng-template",null,25,e.W1O)),2&n&&(e.xp6(9),e.Q6J("ngIf",o.initialized),e.xp6(1),e.Q6J("ngIf",o.initialized),e.xp6(2),e.Q6J("ngForOf",o.views),e.xp6(
15),e.Q6J("ngModel",o.filters.query),e.xp6(2),e.Q6J("ngIf",o.filters.query),e.xp6(1),e.Q6J("ngIf",!o.filters.query),e.xp6(1),e.Q6J("ngIf","board"===o.view),e.xp6(1),e.Q6J("ngIf",o.showImportExport),e.xp6(5),e.Q6J("ngIf","table"===o.view),e.xp6(1),e.Q6J("ngIf","worklist"===o.view),e.xp6(1),e.Q6J("ngIf","focus"===o.view),e.xp6(1),e.Q6J("ngIf","funnel"===o.view),e.xp6(1),e.Q6J("ngIf","board"===o.view))},dependencies:[_.sg,_.O5,_.tP,c.YN,c.Kr,c.Fj,c.Wl,c.EJ,c.JJ,c.nD,c.On,z.gM,k,_.OU,_.JJ,_.uU],styles:["[_nghost-%COMP%]{display:block;min-width:0}.lw-page[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:14px;padding:16px 16px 24px;min-width:0}.lw-hero[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap;padding:18px 22px;border-radius:16px;border:1px solid rgba(255,255,255,.06);background:var(--wb-flagship-band);box-shadow:inset 0 1px #ffffff0d;color:#fff}.lw-hero-left[_ngcontent-%COMP%]{display:flex;align-items:center;gap:14px;min-width:0}.lw-hero-icon[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;flex-shrink:0;border-radius:12px;font-size:23px;color:#fff;background:linear-gradient(135deg,#2f80c8,var(--wb-accent));box-shadow:0 2px 12px #185fa580,0 0 0 5px #2f80c81f}.lw-hero-titles[_ngcontent-%COMP%]{display:flex;align-items:baseline;gap:10px}.lw-hero-titles[_ngcontent-%COMP%]   h1[_ngcontent-%COMP%]{margin:0;font-size:24px;font-weight:800;line-height:1.1;letter-spacing:-.02em;color:#fff}.lw-hero-total[_ngcontent-%COMP%]{font-size:15px;font-weight:600;color:#ffffff6b}.lw-hero-sub[_ngcontent-%COMP%]{margin-top:4px;display:flex;align-items:center;gap:6px;flex-wrap:wrap;font-size:13px;color:#ffffff8c}.lw-hero-sub[_ngcontent-%COMP%]   strong[_ngcontent-%COMP%]{font-weight:700;color:#ffffffd9}.lw-hero-sub[_ngcontent-%COMP%]   .is-overdue[_ngcontent-%COMP%]{color:#fb923c}.lw-hero-sub[_ngcontent-%COMP%]   .lw-muted[_ngcontent-%COMP%]{color:#fff6}.lw-hero-sub[_ngcontent-%COMP%]   .lw-dot-sep[_ngcontent-%COMP%]{color:#ffffff4d}.lw-views[_ngcontent-%COMP%]{display:flex;gap:2px;padding:2px;margin-left:6px;border-radius:9px;background:rgba(255,255,255,.12);flex-shrink:0}.lw-view[_ngcontent-%COMP%]{height:28px;padding:0 13px;border:none;border-radius:7px;background:none;font-size:12.5px;font-weight:600;color:#ffffffb3;cursor:pointer}.lw-view[_ngcontent-%COMP%]:hover:not(.is-on){color:#fff}.lw-view.is-on[_ngcontent-%COMP%]{background:#fff;color:var(--wb-ink);font-weight:700}.lw-hero-actions[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.lw-hero-owner[_ngcontent-%COMP%]{height:38px;padding:0 10px;border:1px solid rgba(255,255,255,.14);border-radius:10px;background:rgba(255,255,255,.06);font-size:13px;font-weight:600;color:#fff;cursor:pointer}.lw-hero-owner[_ngcontent-%COMP%]   option[_ngcontent-%COMP%]{color:var(--wb-text);background:var(--wb-surface)}.lw-hero-owner[_ngcontent-%COMP%]:hover{background:rgba(255,255,255,.12)}.lw-search[_ngcontent-%COMP%]{position:relative;display:flex;align-items:center}.lw-search[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{width:270px;max-width:100%;height:38px;padding:0 40px 0 36px;border:1px solid rgba(255,255,255,.14);border-radius:10px;background:rgba(255,255,255,.06);font-size:13.5px;color:#fff;outline:none;box-sizing:border-box}.lw-search[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]::placeholder{color:#ffffff6b}.lw-search[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]:focus{border-color:#ffffff5c;background:rgba(255,255,255,.1)}.lw-search-icon[_ngcontent-%COMP%]{position:absolute;left:10px;font-size:19px;color:#fff6;pointer-events:none}.lw-kbd[_ngcontent-%COMP%]{position:absolute;right:9px;display:grid;place-items:center;width:20px;height:20px;border:1px solid rgba(255,255,255,.18);border-radius:5px;font-size:11px;font-weight:600;font-family:ui-monospace,Menlo,monospace;color:#ffffff73;pointer-events:none}.lw-search-clear[_ngcontent-%COMP%]{position:absolute;right:8px;display:grid;place-items:center;width:22px;height:22px;border:none;border-radius:6px;background:transparent;color:#ffffff80;cursor:pointer}.lw-search-clear[_ngcontent-%COMP%]   .material-symbols-outlined[_ngcontent-%COMP%]{font-size:16px}.lw-search-clear[_ngcontent-%COMP%]:hover{background:rgba(255,255,255,.12);color:#fff}.lw-hero-icon-btn[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:10px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.14);color:#fff;cursor:pointer}.lw-hero-icon-btn[_ngcontent-%COMP%]   .material-symbols-outlined[_ngcontent-%COMP%]{font-size:19px}.lw-hero-icon-btn[_ngcontent-%COMP%]:hover{background:rgba(255,255,255,.16)}.lw-hero-cta[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:7px;height:38px;padding:0 16px;border-radius:10px;background:#fff;border:1px solid #fff;font-size:13.5px;font-weight:700;color:var(--wb-ink);cursor:pointer}.lw-hero-cta[_ngcontent-%COMP%]   .material-symbols-outlined[_ngcontent-%COMP%]{font-size:19px}.lw-hero-cta[_ngcontent-%COMP%]:hover{background:#ECEAE4}.lw-shell[_ngcontent-%COMP%]{display:grid;grid-template-columns:330px minmax(0,1fr);height:max(560px,100vh - 200px);background:var(--wb-surface);border:1px solid var(--wb-border);border-radius:12px;overflow:hidden;min-width:0}.lw-rail[_ngcontent-%COMP%]{display:flex;flex-direction:column;min-width:0;min-height:0;border-right:1px solid var(--wb-border);background:var(--wb-canvas)}.lw-rail-head[_ngcontent-%COMP%]{padding:11px 14px;border-bottom:1px solid var(--wb-border);flex-shrink:0}.lw-scopes[_ngcontent-%COMP%]{display:flex;gap:5px;margin-bottom:9px}.lw-scope[_ngcontent-%COMP%]{flex:1;min-width:0;height:30px;padding:0 4px;background:var(--wb-surface);border:1px solid var(--wb-border);border-radius:999px;font-size:11.5px;font-weight:600;color:var(--wb-text-2);cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.lw-scope[_ngcontent-%COMP%]:hover{background:var(--wb-canvas-sunk)}.lw-scope.is-on[_ngcontent-%COMP%]{background:var(--wb-ink);border-color:var(--wb-ink);color:#fff}.lw-scope.is-on[_ngcontent-%COMP%]   .lw-scope-n[_ngcontent-%COMP%]{color:#ffffff9e}.lw-scope-n[_ngcontent-%COMP%]{margin-left:3px;font-weight:700;color:var(--wb-text-3);font-variant-numeric:tabular-nums}.lw-rail-meta[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:8px}.lw-rail-meta-actions[_ngcontent-%COMP%]{display:inline-flex;gap:4px}.lw-eyebrow[_ngcontent-%COMP%]{display:block;font-size:10px;font-weight:700;letter-spacing:.09em;text-transform:uppercase;color:var(--wb-text-3)}.lw-mini-btn[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:4px;
1height:24px;padding:0 7px;background:var(--wb-surface);border:1px solid var(--wb-border);border-radius:6px;font-size:11px;font-weight:600;color:var(--wb-text-2);cursor:pointer}.lw-mini-btn[_ngcontent-%COMP%]   .material-symbols-outlined[_ngcontent-%COMP%]{font-size:14px}.lw-mini-btn[_ngcontent-%COMP%]:hover{background:var(--wb-canvas-sunk)}.lw-mini-btn.is-on[_ngcontent-%COMP%]{background:var(--wb-accent-soft);border-color:#185fa54d;color:var(--wb-accent)}.lw-filters[_ngcontent-%COMP%]{flex-shrink:0;max-height:44vh;overflow-y:auto;padding:12px 14px;border-bottom:1px solid var(--wb-border);background:var(--wb-surface);display:flex;flex-direction:column;gap:10px}.lw-field[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:4px;min-width:0;flex:1}.lw-field[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{font-size:10px;font-weight:700;letter-spacing:.07em;text-transform:uppercase;color:var(--wb-text-3)}.lw-field[_ngcontent-%COMP%]   input[_ngcontent-%COMP%], .lw-field[_ngcontent-%COMP%]   select[_ngcontent-%COMP%]{width:100%;height:30px;padding:0 8px;border:1px solid var(--wb-border);border-radius:6px;background:var(--wb-surface);font-size:12.5px;color:var(--wb-text);box-sizing:border-box}.lw-field[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]:focus, .lw-field[_ngcontent-%COMP%]   select[_ngcontent-%COMP%]:focus{outline:none;border-color:var(--wb-accent);box-shadow:var(--wb-focus)}.lw-field--narrow[_ngcontent-%COMP%]{flex:0 0 76px}.lw-field-row[_ngcontent-%COMP%]{display:flex;gap:8px}.lw-toggles[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:5px}.lw-toggle[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:4px;height:26px;padding:0 9px;border:1px solid var(--wb-border);border-radius:999px;background:var(--wb-surface);font-size:11.5px;font-weight:600;color:var(--wb-text-2);cursor:pointer}.lw-toggle[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{display:none}.lw-toggle[_ngcontent-%COMP%]   .material-symbols-outlined[_ngcontent-%COMP%]{font-size:14px}.lw-toggle.on[_ngcontent-%COMP%]{background:var(--wb-accent-soft);border-color:#185fa559;color:var(--wb-accent)}.lw-status-select[_ngcontent-%COMP%]{position:relative}.lw-status-trigger[_ngcontent-%COMP%]{display:flex;align-items:center;gap:6px;width:100%;height:30px;padding:0 8px;border:1px solid var(--wb-border);border-radius:6px;background:var(--wb-surface);font-size:12.5px;color:var(--wb-text);cursor:pointer}.lw-status-trigger.has-value[_ngcontent-%COMP%]{border-color:var(--wb-border-strong)}.lw-status-trigger[_ngcontent-%COMP%]   .lw-status-label[_ngcontent-%COMP%]{flex:1;text-align:left}
1.lw-status-trigger[_ngcontent-%COMP%]   .lw-chev[_ngcontent-%COMP%]{font-size:16px;color:var(--wb-text-4)}.lw-status-dots[_ngcontent-%COMP%]{display:inline-flex;gap:2px}.lw-status-dot[_ngcontent-%COMP%]{display:inline-block;width:7px;height:7px;border-radius:50%;flex-shrink:0;background:currentColor}.lw-backdrop[_ngcontent-%COMP%]{position:fixed;inset:0;z-index:40}.lw-status-panel[_ngcontent-%COMP%]{position:absolute;z-index:41;top:calc(100% + 4px);left:0;right:0;max-height:280px;overflow-y:auto;padding:6px;background:var(--wb-surface);border:1px solid var(--wb-border);border-radius:8px;box-shadow:0 10px 30px #14110f24}.lw-status-panel-head[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:2px 6px 6px;font-size:10px;font-weight:700;letter-spacing:.07em;text-transform:uppercase;color:var(--wb-text-3)}.lw-status-panel-head[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{border:none;background:none;padding:0;font-size:11px;font-weight:600;letter-spacing:0;text-transform:none;color:var(--wb-accent);cursor:pointer}.lw-status-option[_ngcontent-%COMP%]{display:flex;align-items:center;gap:7px;width:100%;padding:6px 7px;border:none;border-radius:6px;background:transparent;font-size:12.5px;color:var(--wb-text);cursor:pointer;text-align:left}.lw-status-option[_ngcontent-%COMP%]:hover{background:var(--wb-canvas-sunk)}.lw-status-option.checked[_ngcontent-%COMP%]   .lw-status-check[_ngcontent-%COMP%]{background:var(--wb-accent);border-color:var(--wb-accent);color:#fff}.lw-status-check[_ngcontent-%COMP%]{display:grid;place-items:center;width:15px;height:15px;flex-shrink:0;border:1.5px solid var(--wb-border-strong);border-radius:4px;background:var(--wb-surface);color:transparent}.lw-status-check[_ngcontent-%COMP%]   .material-symbols-outlined[_ngcontent-%COMP%]{font-size:11px}.lw-bulk[_ngcontent-%COMP%]{flex-shrink:0;padding:10px 14px;border-bottom:1px solid var(--wb-border);background:var(--wb-accent-soft);display:flex;flex-direction:column;gap:6px}.lw-bulk-top[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;font-size:11.5px;color:var(--wb-text-2)}.lw-bulk-top[_ngcontent-%COMP%]   strong[_ngcontent-%COMP%]{color:var(--wb-accent)}.lw-bulk-link[_ngcontent-%COMP%]{border:none;background:none;padding:0;font-size:11px;font-weight:600;color:var(--wb-accent);cursor:pointer}.lw-bulk-link[_ngcontent-%COMP%]:hover{text-decoration:underline}.lw-bulk-link[_ngcontent-%COMP%]:disabled{opacity:.5;cursor:progress;text-decoration:none}.lw-bulk-link[_ngcontent-%COMP%]:last-child{margin-left:auto}.lw-bulk-row[_ngcontent-%COMP%]{display:flex;gap:5px}.lw-bulk-row[_ngcontent-%COMP%]   select[_ngcontent-%COMP%], .lw-bulk-row[_ngcontent-%COMP%]   input[type=date][_ngcontent-%COMP%]{flex:1;min-width:0;height:28px;padding:0 6px;border:1px solid var(--wb-border);border-radius:6px;background:var(--wb-surface);font-size:12px;color:var(--wb-text)}.lw-bulk-label[_ngcontent-%COMP%]{margin-top:2px;font-size:10px;font-weight:700;letter-spacing:.07em;text-transform:uppercase;color:var(--wb-text-3)}.lw-bulk-presets[_ngcontent-%COMP%]{display:flex;gap:4px}.lw-bulk-presets[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{flex:1;min-width:0;height:26px;padding:0 4px;border:1px solid var(--wb-border);border-radius:6px;background:var(--wb-surface);font-size:11px;font-weight:600;color:var(--wb-text-2);cursor:pointer;white-space:nowrap}.lw-bulk-presets[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]:hover:not(:disabled){background:var(--wb-canvas-sunk)}.lw-bulk-presets[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]:disabled{opacity:.45;cursor:not-allowed}.lw-bulk-presets[_ngcontent-%COMP%]   button.is-danger[_ngcontent-%COMP%]{color:var(--wb-danger)}.lw-bulk-presets[_ngcontent-%COMP%]   button.is-danger[_ngcontent-%COMP%]:hover:not(:disabled){background:var(--wb-danger-soft)}.lw-bulk-apply[_ngcontent-%COMP%]{height:28px;padding:0 10px;border:1px solid var(--wb-accent);border-radius:6px;background:var(--wb-accent);font-size:11.5px;font-weight:700;color:#fff;cursor:pointer}.lw-bulk-apply[_ngcontent-%COMP%]:disabled{opacity:.45;cursor:not-allowed}.lw-bulk-campaign[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;gap:6px;height:28px;border:1px solid var(--wb-border);border-radius:6px;background:var(--wb-surface);font-size:11.5px;font-weight:600;color:var(--wb-text);cursor:pointer}.lw-bulk-campaign[_ngcontent-%COMP%]   .material-symbols-outlined[_ngcontent-%COMP%]{font-size:15px}.lw-bulk-campaign[_ngcontent-%COMP%]:hover{background:var(--wb-canvas-sunk)}.lw-rail-list[_ngcontent-%COMP%]{flex:1;min-height:0;overflow-y:auto;scrollbar-width:thin}.lw-rail-list[_ngcontent-%COMP%]::-webkit-scrollbar{width:8px}.lw-rail-list[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background:rgba(0,0,0,.16);border-radius:8px}.lw-group-head[_ngcontent-%COMP%]{position:sticky;top:0;z-index:2;display:flex;align-items:center;gap:7px;padding:8px 14px;background:var(--wb-canvas-sunk);border-top:1px solid var(--wb-border);border-bottom:1px solid var(--wb-border)}.lw-group-head[data-bucket=overdue][_ngcontent-%COMP%]{background:var(--wb-danger-soft);border-color:var(--wb-danger-soft)}.lw-group-head[data-bucket=overdue][_ngcontent-%COMP%]   .lw-group-label[_ngcontent-%COMP%], .lw-group-head[data-bucket=overdue][_ngcontent-%COMP%]   .lw-group-count[_ngcontent-%COMP%]{color:var(--wb-danger)}.lw-group-dot[_ngcontent-%COMP%]{display:inline-block;width:6px;height:6px;border-radius:50%;flex-shrink:0}.lw-group-label[_ngcontent-%COMP%]{font-size:10px;font-weight:700;letter-spacing:.07em;text-transform:uppercase;color:var(--wb-text)}.lw-group-count[_ngcontent-%COMP%]{font-size:10.5px;font-weight:600;color:var(--wb-text-3);font-variant-numeric:tabular-nums}.lw-row[_ngcontent-%COMP%]{display:flex;align-items:flex-start;gap:6px;padding:10px 14px 10px 8px;border-bottom:1px solid var(--wb-border);border-left:2px solid transparent;cursor:pointer}.lw-row[_ngcontent-%COMP%]:hover{background:var(--wb-canvas-sunk)}.lw-row.is-active[_ngcontent-%COMP%]{background:var(--wb-blue-50);border-left-color:var(--wb-blue-500)}.lw-row.is-checked[_ngcontent-%COMP%]{background:var(--wb-accent-soft)}.lw-row-check[_ngcontent-%COMP%]{display:grid;place-items:center;width:16px;padding-top:2px;flex-shrink:0;
1opacity:0;cursor:pointer}.lw-row-check[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{display:none}.lw-row[_ngcontent-%COMP%]:hover   .lw-row-check[_ngcontent-%COMP%], .lw-row.is-active[_ngcontent-%COMP%]   .lw-row-check[_ngcontent-%COMP%], .lw-row.is-checked[_ngcontent-%COMP%]   .lw-row-check[_ngcontent-%COMP%]{opacity:1}.lw-row-check[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]:checked + .lw-box[_ngcontent-%COMP%]{background:var(--wb-accent);border-color:var(--wb-accent);color:#fff}.lw-box[_ngcontent-%COMP%]{display:grid;place-items:center;width:14px;height:14px;border:1.5px solid var(--wb-border-strong);border-radius:4px;background:var(--wb-surface);color:transparent}.lw-box[_ngcontent-%COMP%]   .material-symbols-outlined[_ngcontent-%COMP%]{font-size:10px}.lw-row-main[_ngcontent-%COMP%]{flex:1;min-width:0}.lw-row-top[_ngcontent-%COMP%]{display:flex;align-items:baseline;justify-content:space-between;gap:8px}.lw-row-org[_ngcontent-%COMP%]{font-size:12.5px;font-weight:600;line-height:1.3;color:var(--wb-text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.lw-due[_ngcontent-%COMP%]{flex-shrink:0;padding:2px 7px;border-radius:5px;font-size:10.5px;font-weight:600;white-space:nowrap;background:var(--wb-canvas-sunk);color:var(--wb-text-3)}.lw-due[data-tone=danger][_ngcontent-%COMP%]{background:var(--wb-danger-soft);color:var(--wb-danger)}.lw-due[data-tone=warn][_ngcontent-%COMP%]{background:var(--wb-warning-soft);color:var(--wb-warning)}.lw-row-bottom[_ngcontent-%COMP%]{display:flex;align-items:center;gap:6px;margin-top:4px;min-width:0}.lw-row-status[_ngcontent-%COMP%]{font-size:11px;font-weight:500;color:var(--wb-text-2);white-space:nowrap}.lw-row-sep[_ngcontent-%COMP%]{font-size:11px;color:var(--wb-border-strong)}.lw-row-name[_ngcontent-%COMP%]{font-size:11px;color:var(--wb-text-3);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.lw-row-spacer[_ngcontent-%COMP%]{flex:1}.lw-owner[_ngcontent-%COMP%]{display:grid;place-items:center;width:20px;height:20px;flex-shrink:0;border-radius:50%;background:var(--wb-canvas-sunk);border:1px solid var(--wb-border);font-size:8.5px;font-weight:700;color:var(--wb-text-3)}.lw-owner.is-none[_ngcontent-%COMP%]{background:var(--wb-surface)}.lw-rail-loading[_ngcontent-%COMP%], .lw-rail-empty[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:44px 20px;text-align:center;font-size:12.5px;color:var(--wb-text-3)}.lw-rail-loading[_ngcontent-%COMP%]   .material-symbols-outlined[_ngcontent-%COMP%], .lw-rail-empty[_ngcontent-%COMP%]   .material-symbols-outlined[_ngcontent-%COMP%]{font-size:30px;color:var(--wb-border-strong)}.lw-rail-loading[_ngcontent-%COMP%]   p[_ngcontent-%COMP%], .lw-rail-empty[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{margin:0}.lw-rail-loading[_ngcontent-%COMP%]{flex-direction:row}.lw-rail-empty-btn[_ngcontent-%COMP%]{height:28px;padding:0 12px;border:1px solid var(--wb-border);border-radius:7px;background:var(--wb-surface);font-size:12px;font-weight:600;color:var(--wb-accent);cursor:pointer}.lw-rail-empty-btn[_ngcontent-%COMP%]:hover{background:var(--wb-canvas-sunk)}.lw-spinner[_ngcontent-%COMP%]{width:14px;height:14px;border:2px solid var(--wb-border);border-top-color:var(--wb-accent);border-radius:50%;animation:_ngcontent-%COMP%_lw-spin .7s linear infinite}@keyframes _ngcontent-%COMP%_lw-spin{to{transform:rotate(360deg)}}.lw-rail-foot[_ngcontent-%COMP%]{flex-shrink:0;display:flex;align-items:center;justify-content:space-between;padding:9px 14px;border-top:1px solid var(--wb-border)}.lw-range[_ngcontent-%COMP%]{font-size:11px;font-weight:500;color:var(--wb-text-3);font-variant-numeric:tabular-nums}.lw-pager[_ngcontent-%COMP%]{display:inline-flex;border:1px solid var(--wb-border);border-radius:6px;overflow:hidden;background:var(--wb-surface)}.lw-pager[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{display:grid;place-items:center;width:26px;height:24px;border:none;background:transparent;color:var(--wb-text-2);cursor:pointer}.lw-pager[_ngcontent-%COMP%]   button[_ngcontent-%COMP%] + button[_ngcontent-%COMP%]{border-left:1px solid var(--wb-border)}.lw-pager[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]   .material-symbols-outlined[_ngcontent-%COMP%]{font-size:16px}.lw-pager[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]:hover:not(:disabled){background:var(--wb-canvas-sunk)}.lw-pager[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]:disabled{color:var(--wb-border-strong);cursor:not-allowed}.lw-detail[_ngcontent-%COMP%]{display:flex;flex-direction:column;min-width:0;min-height:0}.lw-detail--empty[_ngcontent-%COMP%]{align-items:center;justify-content:center;gap:6px;padding:40px;text-align:center;color:var(--wb-text-3)}.lw-detail--empty[_ngcontent-%COMP%]   .material-symbols-outlined[_ngcontent-%COMP%]{font-size:44px;color:var(--wb-border-strong)}.lw-detail--empty[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin:4px 0 0;font-size:15px;font-weight:700;color:var(--wb-text)}.lw-detail--empty[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{margin:0;max-width:320px;font-size:12.5px}.lw-detail-head[_ngcontent-%COMP%]{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;flex-wrap:wrap;padding:16px 20px 14px;border-bottom:1px solid var(--wb-border);flex-shrink:0}.lw-detail-identity[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px;min-width:0}
1.lw-detail-avatar[_ngcontent-%COMP%]{display:grid;place-items:center;width:40px;height:40px;flex-shrink:0;border-radius:10px;background:var(--wb-canvas-sunk);border:1px solid var(--wb-border);font-size:12.5px;font-weight:700;color:var(--wb-text-2)}.lw-detail-titles[_ngcontent-%COMP%]{min-width:0}.lw-detail-title-row[_ngcontent-%COMP%]{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.lw-detail-name[_ngcontent-%COMP%]{font-size:17px;font-weight:700;line-height:1.25;color:var(--wb-text)}.lw-chip[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:5px;padding:3px 9px;border-radius:999px;font-size:10px;font-weight:700;letter-spacing:.06em;text-transform:uppercase}.lw-chip[_ngcontent-%COMP%]   .material-symbols-outlined[_ngcontent-%COMP%]{font-size:13px}.lw-chip--status[_ngcontent-%COMP%]{color:var(--chip, var(--wb-text-2));background:color-mix(in srgb,var(--chip, var(--wb-text-2)) 13%,transparent)}.lw-chip--status[_ngcontent-%COMP%]   .lw-status-dot[_ngcontent-%COMP%]{background:var(--chip, var(--wb-text-2))}.lw-chip--danger[_ngcontent-%COMP%]{background:var(--wb-danger-soft);color:var(--wb-danger)}.lw-chip--muted[_ngcontent-%COMP%]{background:var(--wb-canvas-sunk);color:var(--wb-text-3)}.lw-detail-meta[_ngcontent-%COMP%]{margin-top:3px;display:flex;align-items:center;gap:9px;flex-wrap:wrap;font-size:12.5px;color:var(--wb-text-3)}.lw-detail-meta[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:var(--wb-accent);font-weight:500}.lw-detail-meta[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:hover{text-decoration:underline}.lw-detail-person[_ngcontent-%COMP%]{font-weight:600;color:var(--wb-text-2)}.lw-detail-actions[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;flex-shrink:0;flex-wrap:wrap}.lw-assignee[_ngcontent-%COMP%]{position:relative}.lw-assignee-trigger[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:6px;height:32px;padding:0 10px;background:var(--wb-surface);border:1px solid var(--wb-border);border-radius:7px;font-size:12.5px;font-weight:600;color:var(--wb-text);cursor:pointer}
1.lw-assignee-trigger[_ngcontent-%COMP%]   .lw-chev[_ngcontent-%COMP%]{font-size:16px;color:var(--wb-text-4)}.lw-assignee-trigger[_ngcontent-%COMP%]:hover{background:var(--wb-canvas-sunk);border-color:var(--wb-border-strong)}.lw-assignee-trigger[_ngcontent-%COMP%]:disabled{opacity:.6;cursor:not-allowed}.lw-menu[_ngcontent-%COMP%]{position:absolute;z-index:41;top:calc(100% + 4px);right:0;min-width:220px;max-height:320px;overflow-y:auto;padding:5px;background:var(--wb-surface);border:1px solid var(--wb-border);border-radius:9px;box-shadow:0 12px 34px #14110f29}.lw-menu--nextstep[_ngcontent-%COMP%]{left:0;right:auto;min-width:236px;padding:9px 10px 10px}.lw-menu-head[_ngcontent-%COMP%]{font-size:10px;font-weight:700;letter-spacing:.09em;text-transform:uppercase;color:var(--wb-text-3);margin-bottom:7px}.lw-menu-item[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;width:100%;padding:6px 8px;border:none;border-radius:6px;background:transparent;font-size:12.5px;font-weight:500;color:var(--wb-text);cursor:pointer;text-align:left}.lw-menu-item[_ngcontent-%COMP%]:hover{background:var(--wb-canvas-sunk)}.lw-menu-item.is-on[_ngcontent-%COMP%]{background:var(--wb-accent-soft);color:var(--wb-accent);font-weight:600}.lw-menu-item--muted[_ngcontent-%COMP%]{color:var(--wb-text-3)}.lw-icon-btn[_ngcontent-%COMP%]{display:grid;place-items:center;width:32px;height:32px;background:var(--wb-surface);border:1px solid var(--wb-border);border-radius:7px;color:var(--wb-text-2);cursor:pointer}.lw-icon-btn[_ngcontent-%COMP%]   .material-symbols-outlined[_ngcontent-%COMP%]{font-size:18px}.lw-icon-btn[_ngcontent-%COMP%]:hover{background:var(--wb-canvas-sunk)}.lw-text-btn[_ngcontent-%COMP%]{height:32px;padding:0 12px;border:1px solid var(--wb-border);border-radius:7px;background:var(--wb-surface);font-size:12.5px;font-weight:600;color:var(--wb-text-2);cursor:pointer}.lw-text-btn[_ngcontent-%COMP%]:hover{background:var(--wb-canvas-sunk)}.lw-convert[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:6px;height:32px;padding:0 13px;background:var(--wb-blue-500);border:1px solid var(--wb-blue-500);border-radius:7px;font-size:12.5px;font-weight:700;color:#fff;cursor:pointer}.lw-convert[_ngcontent-%COMP%]   .material-symbols-outlined[_ngcontent-%COMP%]{font-size:17px}.lw-convert[_ngcontent-%COMP%]:hover:not(:disabled){filter:brightness(1.12)}.lw-convert[_ngcontent-%COMP%]:disabled{opacity:.5;cursor:not-allowed}.lw-pipeline[_ngcontent-%COMP%]{display:flex;align-items:center;flex-wrap:wrap;gap:12px;padding:11px 20px;border-bottom:1px solid var(--wb-border);background:var(--wb-surface);flex-shrink:0}.lw-pipeline-spacer[_ngcontent-%COMP%]{flex:1}.lw-stepper[_ngcontent-%COMP%]{display:flex;gap:3px;flex:1;min-width:420px;max-width:620px}.lw-seg[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:5px;flex:1;min-width:0;padding:0;border:none;background:none;cursor:pointer;text-align:left}.lw-seg[_ngcontent-%COMP%]:disabled{cursor:progress}.lw-seg[_ngcontent-%COMP%]:hover:not(:disabled)   .lw-seg-bar[_ngcontent-%COMP%]{filter:brightness(.92)}.lw-seg[_ngcontent-%COMP%]:hover:not(:disabled)   .lw-seg-label[_ngcontent-%COMP%]{color:var(--wb-text-2)}.lw-seg-bar[_ngcontent-%COMP%]{height:6px;border-radius:3px;background:var(--wb-grid-inner)}.lw-seg-label[_ngcontent-%COMP%]{font-size:10px;font-weight:600;color:var(--wb-text-4);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.lw-seg[data-state=done][_ngcontent-%COMP%]   .lw-seg-bar[_ngcontent-%COMP%]{background:var(--wb-blue-200)}.lw-seg[data-state=done][_ngcontent-%COMP%]   .lw-seg-label[_ngcontent-%COMP%]{color:var(--wb-text-3)}.lw-seg[data-state=current][_ngcontent-%COMP%]   .lw-seg-bar[_ngcontent-%COMP%]{background:var(--wb-blue-500)}.lw-seg[data-state=current][_ngcontent-%COMP%]   .lw-seg-label[_ngcontent-%COMP%]{color:var(--wb-blue-700);font-weight:800}.lw-advance[_ngcontent-%COMP%]{height:28px;padding:0 12px;border:1px solid var(--wb-ink);border-radius:7px;background:var(--wb-ink);font-size:12px;font-weight:700;color:#fff;cursor:pointer;white-space:nowrap}.lw-advance[_ngcontent-%COMP%]:hover:not(:disabled){filter:brightness(1.3)}.lw-advance[_ngcontent-%COMP%]:disabled{opacity:.55;cursor:progress}.lw-stage-menu[_ngcontent-%COMP%]{position:relative}.lw-offramp[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:2px;height:28px;padding:0 8px;border:1px solid transparent;border-radius:7px;background:none;font-size:12px;font-weight:600;color:var(--wb-text-3);cursor:pointer;white-space:nowrap}
1.lw-offramp[_ngcontent-%COMP%]   .lw-chev[_ngcontent-%COMP%]{font-size:16px}.lw-offramp[_ngcontent-%COMP%]:hover:not(:disabled){background:var(--wb-canvas-sunk);color:var(--wb-text-2)}.lw-offramp[_ngcontent-%COMP%]:disabled{opacity:.55;cursor:progress}.lw-offramp.is-on[_ngcontent-%COMP%]{background:var(--wb-danger-soft);border-color:var(--wb-danger);color:var(--wb-danger);font-weight:700}.lw-nextstep[_ngcontent-%COMP%]{position:relative}.lw-nextstep-trigger[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:5px;height:26px;padding:0 9px;background:var(--wb-surface);border:1px solid var(--wb-border);border-radius:6px;font-size:11.5px;font-weight:700;color:var(--wb-text-2);cursor:pointer}.lw-nextstep-trigger[_ngcontent-%COMP%]   .material-symbols-outlined[_ngcontent-%COMP%]{font-size:15px}.lw-nextstep-trigger[_ngcontent-%COMP%]   .lw-nextstep-rel[_ngcontent-%COMP%]{font-weight:600}.lw-nextstep-trigger[_ngcontent-%COMP%]:hover{background:var(--wb-canvas-sunk)}.lw-nextstep-trigger[data-tone=danger][_ngcontent-%COMP%]{background:var(--wb-danger-soft);border-color:var(--wb-danger-soft);color:var(--wb-danger)}.lw-nextstep-trigger[data-tone=danger][_ngcontent-%COMP%]:hover{background:var(--wb-danger-soft);filter:brightness(.97)}.lw-nextstep-trigger[data-tone=warn][_ngcontent-%COMP%]{border-color:var(--wb-warning-border);color:var(--wb-warning)}.lw-nextstep-trigger[data-tone=none][_ngcontent-%COMP%]{color:var(--wb-text-3);border-style:dashed}.lw-nextstep-presets[_ngcontent-%COMP%]{display:flex;gap:4px;margin-bottom:8px}.lw-nextstep-presets[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{flex:1;height:26px;padding:0 6px;border:1px solid var(--wb-border);border-radius:6px;background:var(--wb-surface);font-size:11px;font-weight:600;color:var(--wb-text-2);cursor:pointer;white-space:nowrap}.lw-nextstep-presets[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]:hover{background:var(--wb-canvas-sunk)}.lw-nextstep-custom[_ngcontent-%COMP%]{display:flex;gap:5px}.lw-nextstep-custom[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{flex:1;min-width:0;height:28px;padding:0 7px;border:1px solid var(--wb-border);border-radius:6px;font-size:12px;color:var(--wb-text)}.lw-nextstep-save[_ngcontent-%COMP%]{height:28px;padding:0 11px;border:1px solid var(--wb-ink);border-radius:6px;background:var(--wb-ink);font-size:11.5px;font-weight:700;color:#fff;cursor:pointer}.lw-nextstep-save[_ngcontent-%COMP%]:disabled{opacity:.5;cursor:not-allowed}.lw-nextstep-clear[_ngcontent-%COMP%]{width:100%;margin-top:7px;height:26px;border:none;border-radius:6px;background:transparent;font-size:11.5px;font-weight:600;color:var(--wb-danger);cursor:pointer}.lw-nextstep-clear[_ngcontent-%COMP%]:hover{background:var(--wb-danger-soft)}.lw-detail-body[_ngcontent-%COMP%]{display:grid;grid-template-columns:minmax(0,1fr) 292px;flex:1;min-height:0}.lw-work[_ngcontent-%COMP%]{padding:16px 20px;border-right:1px solid var(--wb-border);min-width:0;overflow-y:auto;scrollbar-width:thin}.lw-work[_ngcontent-%COMP%]::-webkit-scrollbar{width:8px}.lw-work[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background:rgba(0,0,0,.16);border-radius:8px}.lw-composer[_ngcontent-%COMP%]{border:1px solid var(--wb-border);border-radius:10px;overflow:hidden}.lw-composer-tabs[_ngcontent-%COMP%]{display:flex;align-items:center;gap:2px;flex-wrap:wrap;padding:6px 8px;background:var(--wb-canvas);border-bottom:1px solid var(--wb-border)}.lw-composer-tab[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:5px;height:27px;padding:0 10px;border:1px solid transparent;border-radius:6px;background:transparent;font-size:12px;font-weight:600;color:var(--wb-text-3);cursor:pointer;white-space:nowrap}.lw-composer-tab[_ngcontent-%COMP%]   .material-symbols-outlined[_ngcontent-%COMP%]{font-size:16px}.lw-composer-tab[_ngcontent-%COMP%]:hover{color:var(--wb-text)}.lw-composer-tab.is-on[_ngcontent-%COMP%]{background:var(--wb-surface);border-color:var(--wb-border);color:var(--wb-text)}.lw-composer-hint[_ngcontent-%COMP%]{margin-left:auto;padding-right:4px;font-size:11px;font-weight:500;color:var(--wb-text-3)}.lw-composer-body[_ngcontent-%COMP%]{padding:11px}.lw-composer-body[_ngcontent-%COMP%]   textarea[_ngcontent-%COMP%]{width:100%;height:64px;padding:9px 10px;border:1px solid var(--wb-border);border-radius:8px;background:var(--wb-surface);font:inherit;font-size:12.5px;line-height:1.55;color:var(--wb-text);resize:vertical;outline:none;box-sizing:border-box}.lw-composer-body[_ngcontent-%COMP%]   textarea[_ngcontent-%COMP%]:focus{border-color:var(--wb-accent);box-shadow:var(--wb-focus)}.lw-composer-body[_ngcontent-%COMP%]   textarea[_ngcontent-%COMP%]:disabled{background:var(--wb-canvas);color:var(--wb-text-3)}.lw-outcomes[_ngcontent-%COMP%]{display:flex;gap:5px;margin-bottom:9px;flex-wrap:wrap}.lw-outcome[_ngcontent-%COMP%]{height:25px;padding:0 10px;border-radius:999px;background:var(--wb-surface);border:1px solid var(--wb-border);font-size:11.5px;font-weight:600;color:var(--wb-text-2);cursor:pointer;white-space:nowrap}.lw-outcome[_ngcontent-%COMP%]:hover{background:var(--wb-canvas-sunk)}.lw-outcome.is-on[_ngcontent-%COMP%]{background:var(--wb-accent-soft);border-color:var(--wb-accent);color:var(--wb-accent)}.lw-composer-warn[_ngcontent-%COMP%]{display:flex;align-items:center;gap:6px;margin-bottom:9px;padding:7px 9px;border-radius:7px;background:var(--wb-warning-soft);font-size:11.5px;font-weight:600;color:var(--wb-warning)}.lw-composer-warn[_ngcontent-%COMP%]   .material-symbols-outlined[_ngcontent-%COMP%]{font-size:15px}.lw-demo-date[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:4px;margin-bottom:9px}.lw-demo-date[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{font-size:10px;font-weight:700;letter-spacing:.07em;text-transform:uppercase;color:var(--wb-text-3)}.lw-demo-date[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{height:30px;padding:0 8px;border:1px solid var(--wb-border);border-radius:6px;font-size:12.5px;color:var(--wb-text)}.lw-composer-foot[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:9px;flex-wrap:wrap}.lw-composer-opts[_ngcontent-%COMP%]{display:flex;align-items:center;gap:14px;flex-wrap:wrap}.lw-check[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:6px;font-size:11.5px;font-weight:500;color:var(--wb-text-2);cursor:pointer}.lw-check[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{display:none}.lw-check[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]:checked + .lw-box[_ngcontent-%COMP%]{background:var(--wb-accent);border-color:var(--wb-accent);color:#fff}.lw-check[_ngcontent-%COMP%]   .lw-box[_ngcontent-%COMP%]{width:15px;height:15px}.lw-composer-submit[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:6px;height:30px;padding:0 14px;background:var(--wb-ink);border:none;border-radius:7px;font-size:12.5px;font-weight:700;color:#fff;cursor:pointer}.lw-composer-submit[_ngcontent-%COMP%]   .material-symbols-outlined[_ngcontent-%COMP%]{font-size:16px}.lw-composer-submit[_ngcontent-%COMP%]:hover:not(:disabled){background:#26211B}.lw-composer-submit[_ngcontent-%COMP%]:disabled{opacity:.45;cursor:not-allowed}.lw-activity[_ngcontent-%COMP%]{margin-top:20px}.lw-activity[_ngcontent-%COMP%] > .lw-eyebrow[_ngcontent-%COMP%]{margin-bottom:10px}.lw-activity[_ngcontent-%COMP%]     .activity-feed{background:transparent;border:none;padding:0}.lw-activity[_ngcontent-%COMP%]     .filter-tabs{gap:4px;padding:0 0 12px;border-bottom:none;flex-wrap:wrap}.lw-activity[_ngcontent-%COMP%]     .filter-tab{height:24px;padding:0 9px;border-radius:999px;border:1px solid var(--wb-border);background:var(--wb-surface);font-size:11px;font-weight:600;color:var(--wb-text-2)}.lw-activity[_ngcontent-%COMP%]     .filter-tab .material-symbols-outlined{font-size:14px}.lw-activity[_ngcontent-%COMP%]     .filter-tab.active{background:var(--wb-ink);border-color:var(--wb-ink);color:#fff}.lw-activity[_ngcontent-%COMP%]     .filter-tab.active .tab-count{color:#ffffffbf}.lw-activity[_ngcontent-%COMP%]     .tab-count{font-size:10.5px;font-weight:700;color:var(--wb-text-3)}.lw-record[_ngcontent-%COMP%]{padding:16px 18px;background:var(--wb-canvas);min-width:0;overflow-y:auto;scrollbar-width:thin}.lw-record[_ngcontent-%COMP%]::-webkit-scrollbar{width:8px}.lw-record[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background:rgba(0,0,0,.16);border-radius:8px}.lw-record[_ngcontent-%COMP%] > .lw-eyebrow[_ngcontent-%COMP%]{margin-bottom:2px}.lw-record-row[_ngcontent-%COMP%]{display:flex;align-items:baseline;justify-content:space-between;gap:10px;padding:8px 0;border-bottom:1px solid var(--wb-grid-inner)}.lw-record-row[_ngcontent-%COMP%]:last-child{border-bottom:none;padding-bottom:2px}.lw-record-label[_ngcontent-%COMP%]{flex-shrink:0;font-size:11.5px;font-weight:500;color:var(--wb-text-3)}.lw-record-value[_ngcontent-%COMP%]{font-size:12px;font-weight:600;color:var(--wb-text);text-align:right;word-break:break-word}.lw-record-value.is-danger[_ngcontent-%COMP%]{color:var(--wb-danger)}.lw-record-card[_ngcontent-%COMP%]{margin-top:12px;padding:11px 12px;background:var(--wb-surface);border:1px solid var(--wb-border);border-radius:10px}.lw-record-card[_ngcontent-%COMP%]:first-child{margin-top:0}.lw-record-card[_ngcontent-%COMP%] > .lw-eyebrow[_ngcontent-%COMP%]{display:block;margin-bottom:4px}.lw-record-card-head[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between}.lw-record-edit[_ngcontent-%COMP%]{display:grid;place-items:center;width:22px;height:22px;border:none;border-radius:5px;background:transparent;color:var(--wb-text-4);cursor:pointer}.lw-record-edit[_ngcontent-%COMP%]   .material-symbols-outlined[_ngcontent-%COMP%]{font-size:15px}.lw-record-edit[_ngcontent-%COMP%]:hover{background:var(--wb-canvas-sunk);color:var(--wb-text)}.lw-record-notes[_ngcontent-%COMP%]{margin:6px 0 0;font-size:12px;line-height:1.65;color:var(--wb-text-2);white-space:pre-wrap}.lw-record-notes.is-empty[_ngcontent-%COMP%]{color:var(--wb-text-4);font-style:italic}.lw-record-actions[_ngcontent-%COMP%]{margin-top:14px;display:flex;flex-direction:column;gap:6px}.lw-record-actions[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:7px;height:32px;padding:0 11px;background:var(--wb-surface);border:1px solid var(--wb-border);border-radius:7px;font-size:12px;font-weight:600;color:var(--wb-text);cursor:pointer}.lw-record-actions[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]   .material-symbols-outlined[_ngcontent-%COMP%]{font-size:17px;color:var(--wb-text-3)}.lw-record-actions[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]:hover:not(:disabled){background:var(--wb-canvas-sunk)}.lw-record-actions[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]:disabled{opacity:.5;cursor:not-allowed}.lw-record-actions[_ngcontent-%COMP%]   button.is-danger[_ngcontent-%COMP%], .lw-record-actions[_ngcontent-%COMP%]   button.is-danger[_ngcontent-%COMP%]   .material-symbols-outlined[_ngcontent-%COMP%]{color:var(--wb-danger)}.lw-record-actions[_ngcontent-%COMP%]   button.is-danger[_ngcontent-%COMP%]:hover:not(:disabled){background:var(--wb-danger-soft)}.lw-board[_ngcontent-%COMP%]{display:flex;align-items:flex-start;gap:12px;min-height:640px;padding:16px;background:var(--wb-canvas);border:1px solid var(--wb-border);border-radius:12px;overflow-x:auto;scrollbar-width:thin}.lw-board[_ngcontent-%COMP%]::-webkit-scrollbar{height:9px}.lw-board[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background:rgba(0,0,0,.16);border-radius:8px}.lw-board-loading[_ngcontent-%COMP%]{display:flex;align-items:center;gap:9px;padding:40px 4px;font-size:13px;color:var(--wb-text-3)}.lw-lane[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:245px;flex:none;background:var(--wb-canvas-sunk);border:1px solid var(--wb-grid-inner);border-radius:10px;overflow:hidden}.lw-lane-head[_ngcontent-%COMP%]{display:flex;align-items:center;gap:7px;width:100%;padding:10px 12px;border:none;border-bottom:1px solid var(--wb-grid-inner);background:none;text-align:left;box-sizing:border-box}.lw-lane--terminal[_ngcontent-%COMP%]   .lw-lane-head[_ngcontent-%COMP%]{cursor:pointer}
1.lw-lane-dot[_ngcontent-%COMP%]{width:8px;height:8px;border-radius:50%;flex-shrink:0}.lw-lane-name[_ngcontent-%COMP%]{font-size:10.5px;font-weight:800;letter-spacing:.07em;text-transform:uppercase;color:var(--wb-text-2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.lw-lane-count[_ngcontent-%COMP%]{margin-left:auto;font-size:11px;font-weight:700;color:var(--wb-text-3);font-variant-numeric:tabular-nums}.lw-lane-chev[_ngcontent-%COMP%]{font-size:16px;color:var(--wb-text-4)}.lw-lane-body[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:8px;padding:10px;min-height:0;max-height:var(--lw-lane-max, calc(100vh - 320px));overflow-y:auto;scrollbar-width:thin}.lw-lane-body[_ngcontent-%COMP%]::-webkit-scrollbar{width:8px}.lw-lane-body[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background:rgba(0,0,0,.16);border-radius:8px}.lw-card[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:5px;padding:10px 12px;background:var(--wb-surface);border:1px solid var(--wb-border);border-radius:8px;box-shadow:var(--wb-shadow-sm);text-align:left;cursor:pointer}.lw-card[_ngcontent-%COMP%]:hover{border-color:var(--wb-blue-500)}.lw-card.is-overdue[_ngcontent-%COMP%]{border-color:var(--wb-danger)}.lw-card-org[_ngcontent-%COMP%]{font-size:12.5px;font-weight:700;color:var(--wb-text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.lw-card-person[_ngcontent-%COMP%]{font-size:11.5px;color:var(--wb-text-3);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.lw-card-foot[_ngcontent-%COMP%]{display:flex;align-items:center;gap:6px;margin-top:1px}.lw-card-spacer[_ngcontent-%COMP%]{flex:1}.lw-lane-more[_ngcontent-%COMP%], .lw-lane-empty[_ngcontent-%COMP%]{padding:2px;font-size:11px;color:var(--wb-text-4);text-align:center;font-variant-numeric:tabular-nums}.lw-lane-more[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;gap:6px;min-height:28px;flex:none}.lw-lane-more[_ngcontent-%COMP%]   .lw-spinner[_ngcontent-%COMP%]{width:11px;height:11px;border-width:1.5px}.lw-terminal-col[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:8px;width:96px;flex:none}.lw-terminal-col[_ngcontent-%COMP%]   .lw-lane[_ngcontent-%COMP%]{width:100%}.lw-terminal-tile[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:3px;padding:10px 8px;background:var(--wb-canvas-sunk);border:1px solid var(--wb-grid-inner);border-radius:10px;cursor:pointer}.lw-terminal-tile[_ngcontent-%COMP%]:hover{border-color:var(--wb-border-strong)}.lw-terminal-name[_ngcontent-%COMP%]{font-size:9.5px;font-weight:800;letter-spacing:.05em;text-transform:uppercase;color:var(--wb-text-3);text-align:center}.lw-terminal-count[_ngcontent-%COMP%]{font-size:14px;font-weight:800;color:var(--wb-text-2);font-variant-numeric:tabular-nums}.lw-terminal-hint[_ngcontent-%COMP%]{margin:0;font-size:10px;line-height:1.4;color:var(--wb-text-4);text-align:center}.lw-table-wrap[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:12px;min-width:0}.lw-table-card[_ngcontent-%COMP%]{background:var(--wb-surface);border:1px solid var(--wb-border);border-radius:12px;overflow:hidden}.lw-table-scroll[_ngcontent-%COMP%]{overflow-x:auto;scrollbar-width:thin}.lw-table[_ngcontent-%COMP%]{--lw-cols: 40px minmax(250px, 1.7fr) 150px 165px 115px 76px 110px 64px 105px;min-width:1120px}.lw-thead[_ngcontent-%COMP%]{display:grid;grid-template-columns:var(--lw-cols);align-items:center;height:38px;background:var(--wb-flagship-band)}.lw-th[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:3px;padding:0 12px;font-size:10px;font-weight:700;letter-spacing:.07em;text-transform:uppercase;color:#ffffffbf;white-space:nowrap}.lw-th[_ngcontent-%COMP%]   .material-symbols-outlined[_ngcontent-%COMP%]{font-size:13px}.lw-th.is-sortable[_ngcontent-%COMP%]{cursor:pointer}.lw-th.is-sortable[_ngcontent-%COMP%]:hover, .lw-th.is-on[_ngcontent-%COMP%]{color:#fff}.lw-th-check[_ngcontent-%COMP%], .lw-td-check[_ngcontent-%COMP%]{display:grid;place-items:center;padding:0;cursor:pointer}.lw-th-check[_ngcontent-%COMP%]   input[_ngcontent-%COMP%], .lw-td-check[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{position:absolute;opacity:0;pointer-events:none}.lw-th-check[_ngcontent-%COMP%]   .lw-box[_ngcontent-%COMP%]{border-color:#ffffff59;background:transparent}.lw-tr[_ngcontent-%COMP%]{display:grid;grid-template-columns:var(--lw-cols);align-items:center;min-height:46px;border-bottom:1px solid var(--wb-grid-inner);cursor:pointer}.lw-tr[_ngcontent-%COMP%]:hover{background:var(--wb-canvas)}.lw-tr.is-checked[_ngcontent-%COMP%]{background:var(--wb-accent-soft)}.lw-tr[_ngcontent-%COMP%]:last-child{border-bottom:none}.lw-td[_ngcontent-%COMP%]{padding:0 12px;min-width:0;font-size:11.5px;color:var(--wb-text-2)}
1.lw-td.is-num[_ngcontent-%COMP%]{font-variant-numeric:tabular-nums}.lw-td-lead[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1px;padding:6px 12px}.lw-td-org[_ngcontent-%COMP%]{font-size:12.5px;font-weight:600;color:var(--wb-text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.lw-td-person[_ngcontent-%COMP%]{font-size:11px;color:var(--wb-text-3);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.lw-td-status[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:6px}.lw-td-status-text[_ngcontent-%COMP%]{font-size:11.5px;font-weight:600;color:var(--wb-text-2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.lw-td-muted[_ngcontent-%COMP%]{color:var(--wb-text-2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.lw-td-muted.is-never[_ngcontent-%COMP%]{color:var(--wb-text-4)}.lw-table-loading[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;gap:8px;padding:40px 20px;font-size:12.5px;color:var(--wb-text-3)}.lw-focus[_ngcontent-%COMP%]{display:flex;flex-direction:column;min-height:640px;background:var(--wb-surface);border:1px solid var(--wb-border);border-radius:12px;overflow:hidden}.lw-focus-queue[_ngcontent-%COMP%]{display:flex;align-items:center;gap:16px;flex-wrap:wrap;padding:12px 20px;border-bottom:1px solid var(--wb-border);background:var(--wb-canvas);flex-shrink:0}.lw-focus-queue-label[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:3px;min-width:0}.lw-focus-pos[_ngcontent-%COMP%]{font-size:12.5px;font-weight:600;color:var(--wb-text);font-variant-numeric:tabular-nums}.lw-focus-bar[_ngcontent-%COMP%]{flex:1;min-width:120px;height:5px;border-radius:3px;background:var(--wb-canvas-sunk);overflow:hidden}.lw-focus-bar[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{display:block;height:100%;border-radius:3px;background:var(--wb-accent);transition:width var(--wb-ease, .15s) ease}.lw-focus-keys[_ngcontent-%COMP%]{font-size:11px;color:var(--wb-text-4);white-space:nowrap}.lw-focus-nav[_ngcontent-%COMP%]{display:inline-flex;border:1px solid var(--wb-border);border-radius:8px;overflow:hidden;background:var(--wb-surface)}.lw-focus-nav[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:4px;height:32px;padding:0 12px;border:none;background:transparent;font-size:12.5px;font-weight:600;color:var(--wb-text-2);cursor:pointer}.lw-focus-nav[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]   .material-symbols-outlined[_ngcontent-%COMP%]{font-size:17px}.lw-focus-nav[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]:hover:not(:disabled){background:var(--wb-canvas-sunk)}.lw-focus-nav[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]:disabled{color:var(--wb-border-strong);cursor:not-allowed}.lw-focus-nav[_ngcontent-%COMP%]   button.is-next[_ngcontent-%COMP%]{border-left:1px solid var(--wb-border);color:var(--wb-text)}.lw-focus-body[_ngcontent-%COMP%]{flex:1;overflow-y:auto;scrollbar-width:thin;padding:24px 20px 28px;display:flex;justify-content:center}.lw-focus-empty[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:60px 20px;text-align:center;font-size:13px;color:var(--wb-text-3)}.lw-focus-empty[_ngcontent-%COMP%]   .material-symbols-outlined[_ngcontent-%COMP%]{font-size:34px;color:var(--wb-border-strong)}.lw-focus-empty[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{margin:0}.lw-focus-lead[_ngcontent-%COMP%]{width:100%;max-width:920px;display:flex;flex-direction:column;gap:16px}.lw-focus-head[_ngcontent-%COMP%]{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;flex-wrap:wrap}.lw-focus-identity[_ngcontent-%COMP%]{display:flex;align-items:center;gap:14px;min-width:0}.lw-focus-avatar[_ngcontent-%COMP%]{display:grid;place-items:center;width:52px;height:52px;flex-shrink:0;border-radius:12px;background:var(--wb-canvas-sunk);border:1px solid var(--wb-border);font-size:15px;font-weight:700;color:var(--wb-text-2)}.lw-focus-titles[_ngcontent-%COMP%]{min-width:0}.lw-focus-name-row[_ngcontent-%COMP%]{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.lw-focus-org[_ngcontent-%COMP%]{font-size:21px;font-weight:800;line-height:1.2;letter-spacing:-.01em;color:var(--wb-text)}.lw-focus-meta[_ngcontent-%COMP%]{margin-top:4px;display:flex;align-items:center;gap:9px;flex-wrap:wrap;font-size:13px;color:var(--wb-text-3)}.lw-focus-meta[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:var(--wb-accent)}
1.lw-focus-person[_ngcontent-%COMP%]{font-weight:600;color:var(--wb-text-2)}.lw-focus-saving[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:6px;font-size:11.5px;color:var(--wb-text-4)}.lw-pipeline--focus[_ngcontent-%COMP%]{padding:0;border-bottom:none;background:transparent}.lw-focus-cols[_ngcontent-%COMP%]{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:16px;align-items:start}.lw-focus-side[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:12px;min-width:0}.lw-focus-actions[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:9px 11px;border-top:1px solid var(--wb-border);background:var(--wb-canvas)}.lw-focus-actions[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:6px;height:28px;padding:0 10px;background:var(--wb-surface);border:1px solid var(--wb-border);border-radius:7px;font-size:11.5px;font-weight:600;color:var(--wb-text);cursor:pointer}.lw-focus-actions[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]   .material-symbols-outlined[_ngcontent-%COMP%]{font-size:15px;color:var(--wb-text-3)}.lw-focus-actions[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]:hover:not(:disabled){background:var(--wb-canvas-sunk)}.lw-focus-actions[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]:disabled{opacity:.5;cursor:not-allowed}.lw-focus-actions[_ngcontent-%COMP%]   button.is-danger[_ngcontent-%COMP%]{background:transparent;border-color:transparent;color:var(--wb-danger)}.lw-focus-actions[_ngcontent-%COMP%]   button.is-danger[_ngcontent-%COMP%]   .material-symbols-outlined[_ngcontent-%COMP%]{color:var(--wb-danger)}.lw-focus-actions[_ngcontent-%COMP%]   button.is-danger[_ngcontent-%COMP%]:hover{background:var(--wb-danger-soft)}.lw-focus-actions[_ngcontent-%COMP%]   button.is-skip[_ngcontent-%COMP%]{color:var(--wb-text-2)}.lw-focus-actions-spacer[_ngcontent-%COMP%]{flex:1}.lw-quick[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:10px;padding:12px;background:var(--wb-canvas);border:1px solid var(--wb-border);border-radius:10px}.lw-quick-pair[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;gap:8px}.lw-quick-date[_ngcontent-%COMP%]{display:flex;gap:4px}.lw-quick-date[_ngcontent-%COMP%]   input[type=date][_ngcontent-%COMP%]{flex:1;min-width:0}.lw-quick-date[_ngcontent-%COMP%]   input[type=date].is-overdue[_ngcontent-%COMP%]{border-color:var(--wb-danger);background:var(--wb-danger-soft);color:var(--wb-danger);font-weight:600}.lw-quick-date[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{height:30px;padding:0 8px;border:1px solid var(--wb-border);border-radius:6px;background:var(--wb-surface);font-size:11px;font-weight:600;color:var(--wb-text-2);cursor:pointer;white-space:nowrap}.lw-quick-date[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]:hover{background:var(--wb-canvas-sunk)}.lw-upnext[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding-top:2px}.lw-upnext[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:7px;height:30px;padding:0 11px;max-width:220px;overflow:hidden;background:var(--wb-surface);border:1px solid var(--wb-border);border-radius:999px;font-size:11.5px;font-weight:600;color:var(--wb-text-2);cursor:pointer;white-space:nowrap}.lw-upnext[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]:hover{background:var(--wb-canvas-sunk)}.lw-upnext-org[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}.lw-funnel[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:18px;padding:20px 22px;background:var(--wb-surface);border:1px solid var(--wb-border);border-radius:12px}.lw-funnel-loading[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;gap:8px;padding:40px 20px;font-size:12.5px;color:var(--wb-text-3)}.lw-tiles[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.lw-tile[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:4px;padding:14px 16px;border:1px solid var(--wb-border);border-radius:10px}.lw-tile-n[_ngcontent-%COMP%]{font-size:24px;font-weight:800;color:var(--wb-text);font-variant-numeric:tabular-nums;letter-spacing:-.01em}
1.lw-tile-n.is-accent[_ngcontent-%COMP%]{color:var(--wb-accent)}.lw-tile-sub[_ngcontent-%COMP%]{font-size:11.5px;color:var(--wb-text-3)}.lw-funnel-block[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:2px}.lw-funnel-block[_ngcontent-%COMP%] > .lw-eyebrow[_ngcontent-%COMP%]{margin-bottom:8px}.lw-funnel-block.is-offramps[_ngcontent-%COMP%]{border-top:1px solid var(--wb-grid-inner);padding-top:14px}.lw-funnel-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:150px minmax(0,1fr) 130px;gap:14px;align-items:center;padding:6px 0;border:none;background:transparent;text-align:left;cursor:pointer;border-radius:6px}.lw-funnel-row[_ngcontent-%COMP%]:hover   .lw-funnel-track[_ngcontent-%COMP%]{border-color:var(--wb-border-strong)}.lw-funnel-row[_ngcontent-%COMP%]:hover   .lw-funnel-name[_ngcontent-%COMP%]{color:var(--wb-accent)}.lw-funnel-name[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:7px;min-width:0;font-size:12px;font-weight:600;color:var(--wb-text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.lw-funnel-dot[_ngcontent-%COMP%]{display:inline-block;width:8px;height:8px;border-radius:50%;flex-shrink:0}.lw-funnel-track[_ngcontent-%COMP%]{display:block;height:26px;border-radius:6px;background:var(--wb-canvas);border:1px solid var(--wb-grid-inner);overflow:hidden}.lw-funnel-fill[_ngcontent-%COMP%]{display:block;height:100%;border-radius:5px;min-width:3px}.lw-funnel-nums[_ngcontent-%COMP%]{display:inline-flex;align-items:baseline;gap:8px;justify-content:flex-end}.lw-funnel-count[_ngcontent-%COMP%]{font-size:13px;font-weight:700;color:var(--wb-text);font-variant-numeric:tabular-nums}.lw-funnel-share[_ngcontent-%COMP%]{font-size:11px;color:var(--wb-text-3);font-variant-numeric:tabular-nums;width:44px;text-align:right}@media (max-width: 1240px){.lw-detail-body[_ngcontent-%COMP%]{grid-template-columns:minmax(0,1fr);overflow-y:auto}.lw-work[_ngcontent-%COMP%]{border-right:none;overflow:visible}.lw-record[_ngcontent-%COMP%]{border-top:1px solid var(--wb-border);overflow:visible}}@media (max-width: 900px){.lw-page[_ngcontent-%COMP%]{padding:10px 10px 20px}.lw-shell[_ngcontent-%COMP%]{grid-template-columns:minmax(0,1fr);height:auto}.lw-rail[_ngcontent-%COMP%]{border-right:none;border-bottom:1px solid var(--wb-border)}.lw-rail-list[_ngcontent-%COMP%]{max-height:46vh}.lw-hero[_ngcontent-%COMP%]{padding:14px 16px}.lw-hero-actions[_ngcontent-%COMP%]{width:100%}.lw-search[_ngcontent-%COMP%]{flex:1}.lw-search[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{width:100%}.lw-detail-head[_ngcontent-%COMP%], .lw-pipeline[_ngcontent-%COMP%]{padding-left:14px;padding-right:14px}.lw-work[_ngcontent-%COMP%]{padding:14px}}@media (max-width: 1100px){.lw-focus-cols[_ngcontent-%COMP%]{grid-template-columns:minmax(0,1fr)}.lw-tiles[_ngcontent-%COMP%]{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (max-width: 700px){.lw-tiles[_ngcontent-%COMP%]{grid-template-columns:minmax(0,1fr)}.lw-funnel[_ngcontent-%COMP%]{padding:16px 14px}.lw-funnel-row[_ngcontent-%COMP%]{grid-template-columns:minmax(0,1fr) 96px}.lw-funnel-row[_ngcontent-%COMP%]   .lw-funnel-name[_ngcontent-%COMP%]{grid-column:1/-1}.lw-focus-queue[_ngcontent-%COMP%]{gap:10px}.lw-focus-keys[_ngcontent-%COMP%]{display:none}.lw-quick-pair[_ngcontent-%COMP%]{grid-template-columns:minmax(0,1fr)}}"]})}}return i})();function po(i,r){if(1&i){const t=e.EpF();e.TgZ(0,"button",10),e.NdJ("click",function(){const a=e.CHM(t).$implicit,s=e.oxw();return e.KtG(s.outcome=a.key)}),e.TgZ(1,"span",5),e._uU(2),e.qZA(),e._uU(3),e.qZA()}if(2&i){const t=r.$implicit,n=e.oxw();e.ekj("active",n.outcome===t.key),e.xp6(2),e.Oqu(t.icon),e.xp6(1),e.hij(" ",t.label," ")}}function go(i,r){if(1&i){const t=e.EpF();e.TgZ(0,"section",7)(1,"label",8),e._uU(2,"Duration "),e.TgZ(3,"span",14),e._uU(4,"(optional)"),e.qZA()(),e.TgZ(5,"div",19)(6,"input",20),e.NdJ("ngModelChange",function(o){e.CHM(t);const a=e.oxw();return e.KtG(a.durationMin=o)}),e.qZA(),e.TgZ(7,"span",21),e._uU(8,"min"),e.qZA(),e.TgZ(9,"input",22),e.NdJ("ngModelChange",function(o){e.CHM(t);const a=e.oxw();return e.KtG(a.durationSec=o)}),e.qZA(),e.TgZ(10,"span",21),e._uU(11,"sec"),e.qZA()()()}if(2&i){const t=e.oxw();e.xp6(6),e.Q6J("ngModel",t.durationMin),e.xp6(3),e.Q6J("ngModel",t.durationSec)}}let _o=(()=>{class i{constructor(t,n,o,a){this.dialogRef=t,this.data=n,this.activityService=o,this.sharedUtils=a,this.outcome="connected",this.direction="outbound",this.durationMin=null,this.durationSec=null,this.body="",this.saving=!1,this.outcomeOptions=[{key:"connected",label:"Connected",icon:"check_circle"},{key:"voicemail",label:"Voicemail",icon:"voicemail"},{key:"no_answer",label:"No answer",icon:"phone_missed"},{key:"callback_requested",label:"Callback",icon:"phone_callback"},{key:"wrong_number",label:"Wrong #",icon:"block"},{key:"other",label:"Other",icon:"more_horiz"}]}get totalSeconds(){const o=60*(this.durationMin||0)+(this.durationSec||0);return o>0?o:void 0}save(){var t=this;return(0,f.Z)(function*(){if(!t.saving){t.saving=!0;try{const n=yield(0,d.lastValueFrom)(t.activityService.logCall(t.data.lead._id,{outcome:t.outcome,direction:t.direction,body:t.body?.trim()||void 0,callDurationSec:t.totalSeconds}));t.sharedUtils.showNotification("Call logged."),t.dialogRef.close(n)}catch{t.sharedUtils.showNotificationWithOptions("Failed to log call","Error",4e3,"error"),t.saving=!1}}})()}cancel(){this.dialogRef.close(null)}static{this.\u0275fac=function(n){return new(n||i)(e.Y36(w.so),e.Y36(w.WI),e.Y36(T),e.Y36(b.n3))}}static{this.\u0275cmp=e.Xpm({type:i,selectors:[["log-call-dialog"]],decls:46,vars:12,consts:[[1,"act-dialog"],[1,"act-header","tone-call"],[1,"material-symbols-outlined","header-icon"],[1,"header-text"],["type","button","aria-label","Close",1,"icon-btn",3,"click"],[1,"material-symbols-outlined"],[1,"act-body"],[1,"act-section"],[1,"act-label"],[1,"seg-row"],["type","button",1,"seg-btn",3,"click"],[1,"seg-row","outcomes"],["type","button","class","seg-btn",3,"active","click",4,"ngFor","ngForOf"],["class","act-section",4,"ngIf"],[1,"optional"],["rows","4","placeholder","What did you discuss? Any next steps?",1,"act-input","notes-textarea",3,"ngModel","ngModelChange"],[1,"act-actions"],["type","button",1,"btn","btn-ghost",3,"disabled","click"],["type","button",1,"btn","btn-primary",3,"disabled","click"],[1,"duration-row"],["type","number","min","0","placeholder","0",1,"act-input","duration-input",3,"ngModel","ngModelChange"],[1,"dur-label"],["type","number","min","0","max","59","placeholder","0",1,"act-input","duration-input",3,"ngModel","ngModelChange"]],template:function(n,o){1&n&&(e.TgZ(0,"div",0)(1,"header",1)(2,"span",2),e._uU(3,"call"),e.qZA(),e.TgZ(4,"div",3)(5,"h2"),e._uU(6,"Log Call"),e.qZA(),e.TgZ(7,"p"),e._uU(8,"With "),e.TgZ(9,"strong"),e._uU(10),e.qZA()()(),e.TgZ(11,"button",4),e.NdJ("click",function(){return o.cancel()}),e.TgZ(12,"span",5),e._uU(13,"close"),e.qZA()()(),e.TgZ(14,"div",6)(15,"section",7)(16,"label",8),e._uU(17,"Direction"),e.qZA(),e.TgZ(18,"div",9)(19,"button",10),e.NdJ("click",function(){return o.direction="outbound"}),e.TgZ(20,"span",5),e._uU(21,"call_made"),e.qZA(),e._uU(22," Outbound "),e.qZA(),e.TgZ(23,"button",10),e.NdJ("click",function(){return o.direction="inbound"}),e.TgZ(24,"span",5),e._uU(25,"call_received"),e.qZA(),e._uU(26," Inbound "),e.qZA()()(),e.TgZ(27,"section",7)(28,"label",8),e._uU(29,"Outcome"),e.qZA(),e.TgZ(30,"div",11),e.YNc(31,po,4,4,"button",12),e.qZA()(),e.YNc(32,go,12,2,"section",13),e.TgZ(33,"section",7)(34,"label",8),e._uU(35,"Notes "),e.TgZ(36,"span",14),e._uU(37,"(optional)"),e.qZA()(),e.TgZ(38,"textarea",15),e.NdJ("ngModelChange",function(s){return o.body=s}),e.qZA()()(),e.TgZ(39,"div",16)(40,"button",17),e.NdJ("click",function(){return o.cancel()}),e._uU(41,"Cancel"),e.qZA(),e.TgZ(42,"button",18),e.NdJ("click",function(){return o.save()}),e.TgZ(43,"span",5),e._uU(44,"save"),e.qZA(),e._uU(45),e.qZA()()()),2&n&&(e.xp6(10),e.AsE("",o.data.lead.first_name," ",o.data.lead.last_name,""),e.xp6(9),e.ekj("active","outbound"===o.direction),e.xp6(4),e.ekj("active","inbound"===o.direction),e.xp6(8),e.Q6J("ngForOf",o.outcomeOptions),e.xp6(1),e.Q6J("ngIf","connected"===o.outcome||"voicemail"===o.outcome),e.xp6(6),e.Q6J("ngModel",o.body),e.xp6(2),e.Q6J("disabled",o.saving),e.xp6(2),e.Q6J("disabled",o.saving),e.xp6(3),e.hij(" ",o.saving?"Saving\u2026":"Log Call"," "))},dependencies:[_.sg,_.O5,c.Fj,c.wV,c.JJ,c.qQ,c.Fd,c.On],styles:[".act-dialog[_ngcontent-%COMP%]{display:flex;flex-direction:column;max-height:90vh;width:100%}.act-header[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px;padding:18px 22px;border-bottom:1px solid #f0f1f6}.act-header[_ngcontent-%COMP%]   .header-icon[_ngcontent-%COMP%]{font-size:24px;padding:9px;border-radius:10px}.act-header[_ngcontent-%COMP%]   .header-text[_ngcontent-%COMP%]{flex:1;min-width:0}.act-header[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{margin:0;font-size:1.1rem;font-weight:700;
1color:#1a1a2e}.act-header[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{margin:2px 0 0;font-size:.82rem;color:#6b7280;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.act-header[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]   strong[_ngcontent-%COMP%]{color:#1f2937;font-weight:600}.act-header.tone-call[_ngcontent-%COMP%]   .header-icon[_ngcontent-%COMP%]{background:#d1fae5;color:#047857}.act-header.tone-sms[_ngcontent-%COMP%]   .header-icon[_ngcontent-%COMP%]{background:#ede9fe;color:#6d28d9}.act-header.tone-note[_ngcontent-%COMP%]   .header-icon[_ngcontent-%COMP%]{background:#f1f5f9;color:#475569}.icon-btn[_ngcontent-%COMP%]{background:none;border:none;cursor:pointer;padding:6px;border-radius:7px;color:#6b7280;display:flex;font-family:inherit}.icon-btn[_ngcontent-%COMP%]:hover{background:#f3f4f6;color:#1f2937}.icon-btn[_ngcontent-%COMP%]   .material-symbols-outlined[_ngcontent-%COMP%]{font-size:20px}.act-body[_ngcontent-%COMP%]{padding:16px 22px;overflow-y:auto}.act-section[_ngcontent-%COMP%]{margin-bottom:18px}.act-section[_ngcontent-%COMP%]:last-child{margin-bottom:0}.act-label[_ngcontent-%COMP%]{display:block;font-size:.74rem;font-weight:700;color:#4b5563;text-transform:uppercase;letter-spacing:.04em;margin-bottom:8px}.act-label[_ngcontent-%COMP%]   .optional[_ngcontent-%COMP%]{color:#9ca3af;font-weight:500;text-transform:none;letter-spacing:normal;margin-left:4px}.act-label-row[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}.act-label-row[_ngcontent-%COMP%]   .act-label[_ngcontent-%COMP%]{margin-bottom:0}.link-btn[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:3px;background:none;border:none;color:#6b7280;font-size:.78rem;font-weight:600;cursor:pointer;font-family:inherit}.link-btn[_ngcontent-%COMP%]   .material-symbols-outlined[_ngcontent-%COMP%]{font-size:13px}.link-btn[_ngcontent-%COMP%]:hover{color:#1f2937}.act-input[_ngcontent-%COMP%]{width:100%;padding:10px 14px;font-size:.92rem;font-family:inherit;border:1px solid #e5e7eb;border-radius:9px;background:#fff;color:#1f2937;outline:none;box-sizing:border-box;transition:border-color .15s ease,box-shadow .15s ease}.act-input[_ngcontent-%COMP%]:focus{border-color:#16181d;box-shadow:0 0 0 3px #0000001a}.notes-textarea[_ngcontent-%COMP%]{resize:vertical;line-height:1.5;min-height:80px}.seg-row[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:6px}.seg-row.outcomes[_ngcontent-%COMP%]   .seg-btn[_ngcontent-%COMP%]{flex:0 0 auto}.seg-btn[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:5px;padding:7px 12px;background:#fff;border:1.5px solid #e5e7eb;border-radius:999px;font-size:.84rem;font-weight:600;color:#4b5563;cursor:pointer;font-family:inherit;transition:all .15s ease}.seg-btn[_ngcontent-%COMP%]   .material-symbols-outlined[_ngcontent-%COMP%]{font-size:15px}.seg-btn[_ngcontent-%COMP%]:hover{border-color:#c4c7d4;background:#f9fafb}.seg-btn.active[_ngcontent-%COMP%]{background:#16181d;border-color:#16181d;color:#fff}.duration-row[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px}.duration-input[_ngcontent-%COMP%]{width:70px;text-align:center}.dur-label[_ngcontent-%COMP%]{font-size:.84rem;font-weight:600;color:#6b7280}.tpl-chips[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:6px}.tpl-chip[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:5px;padding:6px 12px;background:#fff;border:1.5px solid #e5e7eb;border-radius:999px;font-size:.82rem;font-weight:600;color:#4b5563;cursor:pointer;font-family:inherit;transition:all .15s ease}.tpl-chip[_ngcontent-%COMP%]   .material-symbols-outlined[_ngcontent-%COMP%]{font-size:14px}.tpl-chip[_ngcontent-%COMP%]:hover{border-color:#d1d5db;background:#f9fafb}.tpl-chip.active[_ngcontent-%COMP%]{background:#7c3aed;border-color:#7c3aed;color:#fff}.token-row[_ngcontent-%COMP%]{display:flex;gap:5px;flex-wrap:wrap}.token-btn[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:3px;padding:3px 9px;background:#ecfeff;color:#0e7490;border:1px solid #a5f3fc;border-radius:999px;font-size:.7rem;font-weight:600;cursor:pointer;font-family:inherit}.token-btn[_ngcontent-%COMP%]   .material-symbols-outlined[_ngcontent-%COMP%]{font-size:12px}.token-btn[_ngcontent-%COMP%]:hover{background:#cffafe}.char-counter[_ngcontent-%COMP%]{margin-top:6px;text-align:right;font-size:.78rem;font-weight:600;color:#6b7280}.char-counter.over[_ngcontent-%COMP%]{color:#dc2626}.sms-preview[_ngcontent-%COMP%]{margin-top:8px;padding:8px 12px;background:#f9fafb;border-radius:7px;font-size:.82rem;color:#6b7280;display:flex;align-items:center;gap:5px;line-height:1.4}.sms-preview[_ngcontent-%COMP%]   .material-symbols-outlined[_ngcontent-%COMP%]{font-size:14px;color:#9ca3af;flex-shrink:0}.sms-preview[_ngcontent-%COMP%]   em[_ngcontent-%COMP%]{color:#1f2937;font-style:normal}.auto-wrap-note[_ngcontent-%COMP%]{display:flex;align-items:flex-start;gap:6px;margin-top:10px;padding:8px 12px;background:#f0f9ff;border:1px solid #bae6fd;border-radius:7px;font-size:.78rem;color:#0369a1;line-height:1.45}.auto-wrap-note[_ngcontent-%COMP%]   .material-symbols-outlined[_ngcontent-%COMP%]{font-size:14px;color:#0284c7;flex-shrink:0;margin-top:1px}.auto-wrap-note[_ngcontent-%COMP%]   strong[_ngcontent-%COMP%]{color:#075985;font-weight:700}.act-actions[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;
1gap:10px;padding:14px 22px;border-top:1px solid #f0f1f6;background:#fafbfc}.btn[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:6px;padding:10px 20px;border-radius:10px;font-size:.9rem;font-weight:600;cursor:pointer;border:none;font-family:inherit;transition:all .15s ease}.btn[_ngcontent-%COMP%]   .material-symbols-outlined[_ngcontent-%COMP%]{font-size:18px}.btn[_ngcontent-%COMP%]:disabled{opacity:.5;cursor:default}.btn.btn-primary[_ngcontent-%COMP%]{background:linear-gradient(135deg,#16181d 0%,#2b2f3a 100%);color:#fff;box-shadow:0 4px 14px #00000047}.btn.btn-primary[_ngcontent-%COMP%]:hover:not(:disabled){transform:translateY(-1px)}.btn.btn-ghost[_ngcontent-%COMP%]{background:#fff;color:#4b5563;border:1px solid #e5e7eb}.btn.btn-ghost[_ngcontent-%COMP%]:hover:not(:disabled){background:#f9fafb}"]})}}return i})();function uo(i,r){if(1&i){const t=e.EpF();e.TgZ(0,"button",25),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.clearTemplate())}),e.TgZ(1,"span",5),e._uU(2,"close"),e.qZA(),e._uU(3," Clear "),e.qZA()}}function fo(i,r){if(1&i){const t=e.EpF();e.TgZ(0,"button",26),e.NdJ("click",function(){const a=e.CHM(t).$implicit,s=e.oxw(2);return e.KtG(s.applyTemplate(a))}),e.TgZ(1,"span",5),e._uU(2,"description"),e.qZA(),e._uU(3),e.qZA()}if(2&i){const t=r.$implicit,n=e.oxw(2);e.ekj("active",(null==n.selectedTemplate?null:n.selectedTemplate._id)===t._id),e.xp6(3),e.hij(" ",t.name," ")}}function xo(i,r){if(1&i&&(e.TgZ(0,"section",8)(1,"div",9)(2,"label",10),e._uU(3,"Template "),e.TgZ(4,"span",21),e._uU(5,"(optional)"),e.qZA()(),e.YNc(6,uo,4,0,"button",22),e.qZA(),e.TgZ(7,"div",23),e.YNc(8,fo,4,3,"button",24),e.qZA()()),2&i){const t=e.oxw();e.xp6(6),e.Q6J("ngIf",t.selectedTemplate),e.xp6(2),e.Q6J("ngForOf",t.templates)}}function mo(i,r){1&i&&(e.TgZ(0,"span"),e._uU(1," - too long"),e.qZA())}function bo(i,r){if(1&i&&(e.TgZ(0,"div",27)(1,"span",5),e._uU(2,"visibility"),e.qZA(),e._uU(3," Preview: "),e.TgZ(4,"em"),e._uU(5),e.qZA()()),2&i){const t=e.oxw();e.xp6(5),e.Oqu(t.preview)}}let ho=(()=>{class i{constructor(t,n,o,a,s){this.dialogRef=t,this.data=n,this.activityService=o,this.templateService=a,this.sharedUtils=s,this.body="",this.sending=!1,this.templates=[],this.selectedTemplate=null,this.limit=320}ngOnInit(){this.templateService.list("sms").subscribe({next:t=>{this.templates=t||[]},error:()=>{this.templates=[]}})}applyTemplate(t){this.selectedTemplate=t,this.body=t.body||""}clearTemplate(){this.selectedTemplate=null}get charCount(){return this.body.length}get overLimit(){return this.charCount>320}get preview(){return this.body.replace(/\{\{first_name\}\}/g,this.data.lead.first_name||"there").replace(/\{\{last_name\}\}/g,this.data.lead.last_name||"")}get canSend(){return!(!this.body?.trim()||this.overLimit||this.sending||!this.data.lead.phone)}insertToken(t){this.body=(this.body||"")+t}send(){var t=this;return(0,f.Z)(function*(){if(t.canSend){t.sending=!0;try{const n=yield(0,d.lastValueFrom)(t.activityService.sendSms(t.data.lead._id,t.body));t.selectedTemplate?._id&&t.templateService.recordUsage(t.selectedTemplate._id).subscribe({error:()=>{}}),t.sharedUtils.showNotification("SMS sent."),t.dialogRef.close(n.activity)}catch(n){t.sharedUtils.showNotificationWithOptions(n?.error?.error||"Failed to send SMS","Error",4e3,"error"),t.sending=!1}}})()}cancel(){this.dialogRef.close(null)}static{this.\u0275fac=function(n){return new(n||i)(e.Y36(w.so),e.Y36(w.WI),e.Y36(T),e.Y36(q.Q),e.Y36(b.n3))}}static{this.\u0275cmp=e.Xpm({type:i,selectors:[["send-sms-dialog"]],decls:52,vars:15,consts:[[1,"act-dialog"],[1,"act-header","tone-sms"],[1,"material-symbols-outlined","header-icon"],[1,"header-text"],["type","button","aria-label","Close",1,"icon-btn",3,"click"],[1,"material-symbols-outlined"],[1,"act-body"],["class","act-section",4,"ngIf"],[1,"act-section"],[1,"act-label-row"],[1,"act-label"],[1,"token-row"],["type","button",1,"token-btn",3,"click"],["rows","5",1,"act-input","notes-textarea",3,"placeholder","ngModel","ngModelChange"],[1,"char-counter"],[4,"ngIf"],[1,"auto-wrap-note"],["class","sms-preview",4,"ngIf"],[1,"act-actions"],["type","button",1,"btn","btn-ghost",3,"disabled","click"],["type","button",1,"btn","btn-primary",3,"disabled","click"],[1,"optional"],["type","button","class","link-btn",3,"click",4,"ngIf"],[1,"tpl-chips"],["type","button","class","tpl-chip",3,"active","click",4,"ngFor","ngForOf"],["type","button",1,"link-btn",3,"click"],["type","button",1,"tpl-chip",3,"click"],[1,"sms-preview"]],template:function(n,o){1&n&&(e.TgZ(0,"div",0)(1,"header",1)(2,"span",2),e._uU(3,"sms"),e.qZA(),e.TgZ(4,"div",3)(5,"h2"),e._uU(6,"Send SMS"),e.qZA(),e.TgZ(7,"p"),e._uU(8,"To "),e.TgZ(9,"strong"),e._uU(10),e.qZA(),e._uU(11),e.qZA()(),e.TgZ(12,"button",4),e.NdJ("click",function(){return o.cancel()}),e.TgZ(13,"span",5),e._uU(14,"close"),e.qZA()()(),e.TgZ(15,"div",6),e.YNc(16,xo,9,2,"section",7),e.TgZ(17,"section",8)(18,"div",9)(19,"label",10),e._uU(20,"Me
1ssage"),e.qZA(),e.TgZ(21,"div",11)(22,"button",12),e.NdJ("click",function(){return o.insertToken("{{first_name}}")}),e.TgZ(23,"span",5),e._uU(24,"add"),e.qZA(),e._uU(25," First Name "),e.qZA(),e.TgZ(26,"button",12),e.NdJ("click",function(){return o.insertToken("{{last_name}}")}),e.TgZ(27,"span",5),e._uU(28,"add"),e.qZA(),e._uU(29," Last Name "),e.qZA()()(),e.TgZ(30,"textarea",13),e.NdJ("ngModelChange",function(s){return o.body=s}),e.qZA(),e.TgZ(31,"div",14),e._uU(32),e.YNc(33,mo,2,0,"span",15),e.qZA(),e.TgZ(34,"div",16)(35,"span",5),e._uU(36,"info"),e.qZA(),e.TgZ(37,"span")(38,"strong"),e._uU(39,"WeighBook:"),e.qZA(),e._uU(40," prefix and "),e.TgZ(41,"strong"),e._uU(42,'"Reply STOP to opt out."'),e.qZA(),e._uU(43," are added automatically for carrier compliance."),e.qZA()(),e.YNc(44,bo,6,1,"div",17),e.qZA()(),e.TgZ(45,"div",18)(46,"button",19),e.NdJ("click",function(){return o.cancel()}),e._uU(47,"Cancel"),e.qZA(),e.TgZ(48,"button",20),e.NdJ("click",function(){return o.send()}),e.TgZ(49,"span",5),e._uU(50,"send"),e.qZA(),e._uU(51),e.qZA()()()),2&n&&(e.xp6(10),e.AsE("",o.data.lead.first_name," ",o.data.lead.last_name,""),e.xp6(1),e.hij(" \xb7 ",o.data.lead.phone,""),e.xp6(5),e.Q6J("ngIf",o.templates.length),e.xp6(14),e.MGl("placeholder","Hey ","{{first_name}}",", just wanted to follow up..."),e.Q6J("ngModel",o.body),e.xp6(1),e.ekj("over",o.overLimit),e.xp6(1),e.AsE(" ",o.charCount," / ",o.limit," "),e.xp6(1),e.Q6J("ngIf",o.overLimit),e.xp6(11),e.Q6J("ngIf",o.body&&o.body!==o.preview),e.xp6(2),e.Q6J("disabled",o.sending),e.xp6(2),e.Q6J("disabled",!o.canSend),e.xp6(3),e.hij(" ",o.sending?"Sending\u2026":"Send SMS"," "))},dependencies:[_.sg,_.O5,c.Fj,c.JJ,c.On],styles:[".act-dialog[_ngcontent-%COMP%]{display:flex;flex-direction:column;max-height:90vh;width:100%}.act-header[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px;padding:18px 22px;border-bottom:1px solid #f0f1f6}.act-header[_ngcontent-%COMP%]   .header-icon[_ngcontent-%COMP%]{font-size:24px;padding:9px;border-radius:10px}.act-header[_ngcontent-%COMP%]   .header-text[_ngcontent-%COMP%]{flex:1;min-width:0}.act-header[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{margin:0;font-size:1.1rem;font-weight:700;color:#1a1a2e}.act-header[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{margin:2px 0 0;font-size:.82rem;color:#6b7280;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.act-header[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]   strong[_ngcontent-%COMP%]{color:#1f2937;font-weight:600}.act-header.tone-call[_ngcontent-%COMP%]   .header-icon[_ngcontent-%COMP%]{background:#d1fae5;color:#047857}.act-header.tone-sms[_ngcontent-%COMP%]   .header-icon[_ngcontent-%COMP%]{background:#ede9fe;color:#6d28d9}.act-header.tone-note[_ngcontent-%COMP%]   .header-icon[_ngcontent-%COMP%]{background:#f1f5f9;color:#475569}.icon-btn[_ngcontent-%COMP%]{background:none;border:none;cursor:pointer;padding:6px;border-radius:7px;color:#6b7280;display:flex;font-family:inherit}.icon-btn[_ngcontent-%COMP%]:hover{background:#f3f4f6;color:#1f2937}.icon-btn[_ngcontent-%COMP%]   .material-symbols-outlined[_ngcontent-%COMP%]{font-size:20px}.act-body[_ngcontent-%COMP%]{padding:16px 22px;overflow-y:auto}.act-section[_ngcontent-%COMP%]{margin-bottom:18px}.act-section[_ngcontent-%COMP%]:last-child{margin-bottom:0}.act-label[_ngcontent-%COMP%]{display:block;font-size:.74rem;font-weight:700;color:#4b5563;text-transform:uppercase;letter-spacing:.04em;margin-bottom:8px}.act-label[_ngcontent-%COMP%]   .optional[_ngcontent-%COMP%]{color:#9ca3af;font-weight:500;text-transform:none;letter-spacing:normal;margin-left:4px}.act-label-row[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}.act-label-row[_ngcontent-%COMP%]   .act-label[_ngcontent-%COMP%]{margin-bottom:0}.link-btn[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:3px;background:none;border:none;color:#6b7280;font-size:.78rem;font-weight:600;cursor:pointer;font-family:inherit}.link-btn[_ngcontent-%COMP%]   .material-symbols-outlined[_ngcontent-%COMP%]{font-size:13px}.link-btn[_ngcontent-%COMP%]:hover{color:#1f2937}.act-input[_ngcontent-%COMP%]{width:100%;padding:10px 14px;font-size:.92rem;font-family:inherit;border:1px solid #e5e7eb;border-radius:9px;background:#fff;color:#1f2937;outline:none;box-sizing:border-box;transition:border-color .15s ease,box-shadow .15s ease}.act-input[_ngcontent-%COMP%]:focus{border-color:#16181d;box-shadow:0 0 0 3px #0000001a}.notes-textarea[_ngcontent-%COMP%]{resize:vertical;line-height:1.5;min-height:80px}.seg-row[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:6px}.seg-row.outcomes[_ngcontent-%COMP%]   .seg-btn[_ngcontent-%COMP%]{flex:0 0 auto}.seg-btn[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:5px;padding:7px 12px;background:#fff;border:1.5px solid #e5e7eb;border-radius:999px;font-size:.84rem;font-weight:600;color:#4b5563;cursor:pointer;font-family:inherit;transition:all .15s ease}.seg-btn[_ngcontent-%COMP%]   .material-symbols-outlined[_ngcontent-%COMP%]{font-size:15px}.seg-btn[_ngcontent-%COMP%]:hover{border-color:#c4c7d4;background:#f9fafb}.seg-btn.active[_ngcontent-%COMP%]{background:#16181d;border-color:#16181d;color:#fff}.duration-row[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px}.duration-input[_ngcontent-%COMP%]{width:70px;text-align:center}.dur-label[_ngcontent-%COMP%]{font-size:.84rem;font-weight:600;color:#6b7280}.tpl-chips[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:6px}.tpl-chip[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:5px;padding:6px 12px;background:#fff;border:1.5px solid #e5e7eb;border-radius:999px;font-size:.82rem;font-weight:600;color:#4b5563;cursor:pointer;font-family:inherit;transition:all .15s ease}.tpl-chip[_ngcontent-%COMP%]   .material-symbols-outlined[_ngcontent-%COMP%]{font-size:14px}.tpl-chip[_ngcontent-%COMP%]:hover{border-color:#d1d5db;background:#f9fafb}.tpl-chip.active[_ngcontent-%COMP%]{background:#7c3aed;border-color:#7c3aed;color:#fff}.token-row[_ngcontent-%COMP%]{display:flex;gap:5px;flex-wrap:wrap}.token-btn[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:3px;padding:3px 9px;background:#ecfeff;color:#0e7490;border:1px solid #a5f3fc;border-radius:999px;font-size:.7rem;font-weight:600;cursor:pointer;font-family:inherit}.token-btn[_ngcontent-%COMP%]   .material-symbols-outlined[_ngcontent-%COMP%]{font-size:12px}.token-btn[_ngcontent-%COMP%]:hover{background:#cffafe}.char-counter[_ngcontent-%COMP%]{margin-top:6px;text-align:right;font-size:.78rem;font-weight:600;color:#6b7280}.char-counter.over[_ngcontent-%COMP%]{color:#dc2626}.sms-preview[_ngcontent-%COMP%]{margin-top:8px;padding:8px 12px;background:#f9fafb;border-radius:7px;font-size:.82rem;color:#6b7280;display:flex;align-items:center;gap:5px;line-height:1.4}.sms-preview[_ngcontent-%COMP%]   .material-symbols-outlined[_ngcontent-%COMP%]{font-size:14px;color:#9ca3af;flex-shrink:0}.sms-preview[_ngcontent-%COMP%]   em[_ngcontent-%COMP%]{color:#1f2937;font-style:normal}.auto-wrap-note[_ngcontent-%COMP%]{display:flex;align-items:flex-start;gap:6px;margin-top:10px;padding:8px 12px;background:#f0f9ff;border:1px solid #bae6fd;border-radius:7px;font-size:.78rem;color:#0369a1;line-height:1.45}.auto-wrap-note[_ngcontent-%COMP%]   .material-symbols-outlined[_ngcontent-%COMP%]{font-size:14px;color:#0284c7;flex-shrink:0;margin-top:1px}.auto-wrap-note[_ngcontent-%COMP%]   strong[_ngcontent-%COMP%]{color:#075985;font-weight:700}.act-actions[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;
1gap:10px;padding:14px 22px;border-top:1px solid #f0f1f6;background:#fafbfc}.btn[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:6px;padding:10px 20px;border-radius:10px;font-size:.9rem;font-weight:600;cursor:pointer;border:none;font-family:inherit;transition:all .15s ease}.btn[_ngcontent-%COMP%]   .material-symbols-outlined[_ngcontent-%COMP%]{font-size:18px}.btn[_ngcontent-%COMP%]:disabled{opacity:.5;cursor:default}.btn.btn-primary[_ngcontent-%COMP%]{background:linear-gradient(135deg,#16181d 0%,#2b2f3a 100%);color:#fff;box-shadow:0 4px 14px #00000047}.btn.btn-primary[_ngcontent-%COMP%]:hover:not(:disabled){transform:translateY(-1px)}.btn.btn-ghost[_ngcontent-%COMP%]{background:#fff;color:#4b5563;border:1px solid #e5e7eb}.btn.btn-ghost[_ngcontent-%COMP%]:hover:not(:disabled){background:#f9fafb}"]})}}return i})(),wo=(()=>{class i{constructor(t,n,o,a){this.dialogRef=t,this.data=n,this.activityService=o,this.sharedUtils=a,this.body="",this.saving=!1}get canSave(){return!!this.body?.trim()&&!this.saving}save(){var t=this;return(0,f.Z)(function*(){if(t.canSave){t.saving=!0;try{const n=yield(0,d.lastValueFrom)(t.activityService.addNote(t.data.lead._id,t.body.trim()));t.sharedUtils.showNotification("Note added."),t.dialogRef.close(n)}catch{t.sharedUtils.showNotificationWithOptions("Failed to add note","Error",4e3,"error"),t.saving=!1}}})()}cancel(){this.dialogRef.close(null)}static{this.\u0275fac=function(n){return new(n||i)(e.Y36(w.so),e.Y36(w.WI),e.Y36(T),e.Y36(b.n3))}}static{this.\u0275cmp=e.Xpm({type:i,selectors:[["add-note-dialog"]],decls:26,vars:6,consts:[[1,"act-dialog"],[1,"act-header","tone-note"],[1,"material-symbols-outlined","header-icon"],[1,"header-text"],["type","button","aria-label","Close",1,"icon-btn",3,"click"],[1,"material-symbols-outlined"],[1,"act-body"],[1,"act-section"],[1,"act-label"],["rows","6","placeholder","Observation, context, reminder\u2026",1,"act-input","notes-textarea",3,"ngModel","ngModelChange"],[1,"act-actions"],["type","button",1,"btn","btn-ghost",3,"disabled","click"],["type","button",1,"btn","btn-primary",3,"disabled","click"]],template:function(n,o){1&n&&(e.TgZ(0,"div",0)(1,"header",1)(2,"span",2),e._uU(3,"edit_note"),e.qZA(),e.TgZ(4,"div",3)(5,"h2"),e._uU(6,"Add Note"),e.qZA(),e.TgZ(7,"p"),e._uU(8,"For "),e.TgZ(9,"strong"),e._uU(10),e.qZA()()(),e.TgZ(11,"button",4),e.NdJ("click",function(){return o.cancel()}),e.TgZ(12,"span",5),e._uU(13,"close"),e.qZA()()(),e.TgZ(14,"div",6)(15,"section",7)(16,"label",8),e._uU(17,"Note"),e.qZA(),e.TgZ(18,"textarea",9),e.NdJ("ngModelChange",function(s){return o.body=s}),e.qZA()()(),e.TgZ(19,"div",10)(20,"button",11),e.NdJ("click",function(){return o.cancel()}),e._uU(21,"Cancel"),e.qZA(),e.TgZ(22,"button",12),e.NdJ("click",function(){return o.save()}),e.TgZ(23,"span",5),e._uU(24,"save"),e.qZA(),e._uU(25),e.qZA()()()),2&n&&(e.xp6(10),e.AsE("",o.data.lead.first_name," ",o.data.lead.last_name,""),e.xp6(8),e.Q6J("ngModel",o.body),e.xp6(2),e.Q6J("disabled",o.saving),e.xp6(2),e.Q6J("disabled",!o.canSave),e.xp6(3),e.hij(" ",o.saving?"Saving\u2026":"Save Note"," "))},dependencies:[c.Fj,c.JJ,c.On],styles:[".act-dialog[_ngcontent-%COMP%]{display:flex;flex-direction:column;max-height:90vh;width:100%}.act-header[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px;padding:18px 22px;border-bottom:1px solid #f0f1f6}.act-header[_ngcontent-%COMP%]   .header-icon[_ngcontent-%COMP%]{font-size:24px;padding:9px;border-radius:10px}.act-header[_ngcontent-%COMP%]   .header-text[_ngcontent-%COMP%]{flex:1;min-width:0}.act-header[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{margin:0;font-size:1.1rem;font-weight:700;color:#1a1a2e}.act-header[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{margin:2px 0 0;font-size:.82rem;color:#6b7280;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.act-header[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]   strong[_ngcontent-%COMP%]{color:#1f2937;font-weight:600}.act-header.tone-call[_ngcontent-%COMP%]   .header-icon[_ngcontent-%COMP%]{background:#d1fae5;color:#047857}.act-header.tone-sms[_ngcontent-%COMP%]   .header-icon[_ngcontent-%COMP%]{background:#ede9fe;color:#6d28d9}.act-header.tone-note[_ngcontent-%COMP%]   .header-icon[_ngcontent-%COMP%]{background:#f1f5f9;color:#475569}.icon-btn[_ngcontent-%COMP%]{background:none;border:none;cursor:pointer;padding:6px;border-radius:7px;color:#6b7280;display:flex;font-family:inherit}.icon-btn[_ngcontent-%COMP%]:hover{background:#f3f4f6;color:#1f2937}.icon-btn[_ngcontent-%COMP%]   .material-symbols-outlined[_ngcontent-%COMP%]{font-size:20px}.act-body[_ngcontent-%COMP%]{padding:16px 22px;overflow-y:auto}.act-section[_ngcontent-%COMP%]{margin-bottom:18px}.act-section[_ngcontent-%COMP%]:last-child{margin-bottom:0}.act-label[_ngcontent-%COMP%]{display:block;font-size:.74rem;font-weight:700;color:#4b5563;text-transform:uppercase;letter-spacing:.04em;margin-bottom:8px}.act-label[_ngcontent-%COMP%]   .optional[_ngcontent-%COMP%]{color:#9ca3af;font-weight:500;text-transform:none;letter-spacing:normal;margin-left:4px}.act-label-row[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}.act-label-row[_ngcontent-%COMP%]   .act-label[_ngcontent-%COMP%]{margin-bottom:0}.link-btn[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:3px;background:none;border:none;color:#6b7280;font-size:.78rem;font-weight:600;cursor:pointer;font-family:inherit}.link-btn[_ngcontent-%COMP%]   .material-symbols-outlined[_ngcontent-%COMP%]{font-size:13px}.link-btn[_ngcontent-%COMP%]:hover{color:#1f2937}.act-input[_ngcontent-%COMP%]{width:100%;padding:10px 14px;font-size:.92rem;font-family:inherit;border:1px solid #e5e7eb;border-radius:9px;background:#fff;color:#1f2937;outline:none;box-sizing:border-box;transition:border-color .15s ease,box-shadow .15s ease}.act-input[_ngcontent-%COMP%]:focus{border-color:#16181d;box-shadow:0 0 0 3px #0000001a}.notes-textarea[_ngcontent-%COMP%]{resize:vertical;line-height:1.5;min-height:80px}.seg-row[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:6px}.seg-row.outcomes[_ngcontent-%COMP%]   .seg-btn[_ngcontent-%COMP%]{flex:0 0 auto}.seg-btn[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:5px;padding:7px 12px;background:#fff;border:1.5px solid #e5e7eb;border-radius:999px;font-size:.84rem;font-weight:600;color:#4b5563;cursor:pointer;font-family:inherit;transition:all .15s ease}.seg-btn[_ngcontent-%COMP%]   .material-symbols-outlined[_ngcontent-%COMP%]{font-size:15px}.seg-btn[_ngcontent-%COMP%]:hover{border-color:#c4c7d4;background:#f9fafb}.seg-btn.active[_ngcontent-%COMP%]{background:#16181d;border-color:#16181d;color:#fff}.duration-row[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px}.duration-input[_ngcontent-%COMP%]{width:70px;text-align:center}.dur-label[_ngcontent-%COMP%]{font-size:.84rem;font-weight:600;color:#6b7280}.tpl-chips[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:6px}.tpl-chip[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:5px;padding:6px 12px;background:#fff;border:1.5px solid #e5e7eb;border-radius:999px;font-size:.82rem;font-weight:600;color:#4b5563;cursor:pointer;font-family:inherit;transition:all .15s ease}.tpl-chip[_ngcontent-%COMP%]   .material-symbols-outlined[_ngcontent-%COMP%]{font-size:14px}.tpl-chip[_ngcontent-%COMP%]:hover{border-color:#d1d5db;background:#f9fafb}.tpl-chip.active[_ngcontent-%COMP%]{background:#7c3aed;border-color:#7c3aed;color:#fff}.token-row[_ngcontent-%COMP%]{display:flex;gap:5px;flex-wrap:wrap}.token-btn[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:3px;padding:3px 9px;background:#ecfeff;color:#0e7490;border:1px solid #a5f3fc;border-radius:999px;font-size:.7rem;font-weight:600;cursor:pointer;font-family:inherit}.token-btn[_ngcontent-%COMP%]   .material-symbols-outlined[_ngcontent-%COMP%]{font-size:12px}.token-btn[_ngcontent-%COMP%]:hover{background:#cffafe}.char-counter[_ngcontent-%COMP%]{margin-top:6px;text-align:right;font-size:.78rem;font-weight:600;color:#6b7280}.char-counter.over[_ngcontent-%COMP%]{color:#dc2626}.sms-preview[_ngcontent-%COMP%]{margin-top:8px;padding:8px 12px;background:#f9fafb;border-radius:7px;font-size:.82rem;color:#6b7280;display:flex;align-items:center;gap:5px;line-height:1.4}.sms-preview[_ngcontent-%COMP%]   .material-symbols-outlined[_ngcontent-%COMP%]{font-size:14px;color:#9ca3af;flex-shrink:0}.sms-preview[_ngcontent-%COMP%]   em[_ngcontent-%COMP%]{color:#1f2937;font-style:normal}.auto-wrap-note[_ngcontent-%COMP%]{display:flex;align-items:flex-start;gap:6px;margin-top:10px;padding:8px 12px;background:#f0f9ff;border:1px solid #bae6fd;border-radius:7px;font-size:.78rem;color:#0369a1;line-height:1.45}.auto-wrap-note[_ngcontent-%COMP%]   .material-symbols-outlined[_ngcontent-%COMP%]{font-size:14px;color:#0284c7;flex-shrink:0;margin-top:1px}.auto-wrap-note[_ngcontent-%COMP%]   strong[_ngcontent-%COMP%]{color:#075985;font-weight:700}.act-actions[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;
1gap:10px;padding:14px 22px;border-top:1px solid #f0f1f6;background:#fafbfc}.btn[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:6px;padding:10px 20px;border-radius:10px;font-size:.9rem;font-weight:600;cursor:pointer;border:none;font-family:inherit;transition:all .15s ease}.btn[_ngcontent-%COMP%]   .material-symbols-outlined[_ngcontent-%COMP%]{font-size:18px}.btn[_ngcontent-%COMP%]:disabled{opacity:.5;cursor:default}.btn.btn-primary[_ngcontent-%COMP%]{background:linear-gradient(135deg,#16181d 0%,#2b2f3a 100%);color:#fff;box-shadow:0 4px 14px #00000047}.btn.btn-primary[_ngcontent-%COMP%]:hover:not(:disabled){transform:translateY(-1px)}.btn.btn-ghost[_ngcontent-%COMP%]{background:#fff;color:#4b5563;border:1px solid #e5e7eb}.btn.btn-ghost[_ngcontent-%COMP%]:hover:not(:disabled){background:#f9fafb}"]})}}return i})();var vo=g(49169),Co=g(14604),Mo=g(98773);function Oo(i,r){1&i&&(e.TgZ(0,"div",2),e._UZ(1,"div",3),e.qZA())}function To(i,r){if(1&i&&(e.TgZ(0,"span",49),e._uU(1),e.qZA()),2&i){const t=e.oxw(2);e.Udp("background",t._leadService.getStatusColor(t.currentLead.status)),e.xp6(1),e.hij(" ",t.currentLead.status," ")}}function Po(i,r){if(1&i&&(e.TgZ(0,"span",50)(1,"span",7),e._uU(2,"business"),e.qZA(),e._uU(3),e.qZA()),2&i){const t=e.oxw(2);e.xp6(3),e.hij(" ",t.currentLead.organization," ")}}function yo(i,r){1&i&&(e.ynx(0),e._uU(1,", "),e.BQk())}function Zo(i,r){if(1&i&&(e.TgZ(0,"span",51)(1,"span",7),e._uU(2,"location_on"),e.qZA(),e._uU(3),e.YNc(4,yo,2,0,"ng-container",42),e._uU(5),e.qZA()),2&i){const t=e.oxw(2);e.xp6(3),e.hij(" ",t.currentLead.city,""),e.xp6(1),e.Q6J("ngIf",t.currentLead.city&&t.currentLead.state),e.xp6(1),e.hij("",t.currentLead.state," ")}}function ko(i,r){if(1&i){const t=e.EpF();e.TgZ(0,"li",52),e.NdJ("click",function(){const a=e.CHM(t).$implicit,s=e.oxw(2);return e.KtG(s.changeStatus(a.label))}),e.TgZ(1,"span",53),e._uU(2),e.qZA()()}if(2&i){const t=r.$implicit;e.Udp("background","active"===t.status?t.color:null),e.Q6J("ngClass",t.status),e.xp6(2),e.Oqu(t.label)}}function Lo(i,r){if(1&i){const t=e.EpF();e.TgZ(0,"button",54),e.NdJ("click",function(){const a=e.CHM(t).$implicit,s=e.oxw(2);return e.KtG(s.changeStatus(a))}),e._uU(1),e.qZA()}if(2&i){const t=r.$implicit,n=e.oxw(2);e.Udp("background",n.currentLead.status===t?n._leadService.getStatusColor(t):null),e.ekj("active",n.currentLead.status===t),e.xp6(1),e.hij(" ",t," ")}}function Ao(i,r){if(1&i){const t=e.EpF();e.TgZ(0,"button",55),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.sendOutreachEmail())}),e.TgZ(1,"span",7),e._uU(2,"send"),e.qZA(),e._uU(3," Send Outreach Email "),e.qZA()}}function So(i,r){if(1&i){const t=e.EpF();e.TgZ(0,"button",27),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.openSendSms())}),e.TgZ(1,"span",7),e._uU(2,"sms"),e.qZA(),e._uU(3," Send SMS "),e.qZA()}}function qo(i,r){if(1&i&&(e.TgZ(0,"a",56)(1,"span",7),e._uU(2,"open_in_new"),e.qZA(),e._uU(3," Mail "),e.qZA()),2&i){const t=e.oxw(2);e.Q6J("href","mailto:"+t.currentLead.email,e.LSH)}}function Uo(i,r){if(1&i&&(e.TgZ(0,"a",57)(1,"span",7),e._uU(2,"call"),e.qZA(),e._uU(3," Dial "),e.qZA()),2&i){const t=e.oxw(2);e.Q6J("href","tel:"+t.currentLead.phone,e.LSH)}}function No(i,r){if(1&i){const t=e.EpF();e.TgZ(0,"button",58),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.convertToDirector())}),e.TgZ(1,"span",7),e._uU(2,"how_to_reg"),e.qZA(),e._uU(3),e.qZA()}if(2&i){const t=e.oxw(2);
1e.Q6J("disabled",t.converting),e.xp6(3),e.hij(" ",t.converting?"Converting\u2026":"Convert to Director Account"," ")}}function Jo(i,r){if(1&i&&(e.TgZ(0,"span",59),e._uU(1),e.ALo(2,"date"),e.qZA()),2&i){const t=e.oxw(2);e.xp6(1),e.hij("Created ",e.xi3(2,1,t.currentLead.createdAt,"MMM d, y"),"")}}function Io(i,r){if(1&i&&(e.TgZ(0,"a",60),e._uU(1),e.qZA()),2&i){const t=e.oxw(2);e.Q6J("href","mailto:"+t.currentLead.email,e.LSH),e.xp6(1),e.Oqu(t.currentLead.email)}}function Fo(i,r){1&i&&(e.TgZ(0,"span",61),e._uU(1,"Not provided"),e.qZA())}function Go(i,r){if(1&i&&(e.TgZ(0,"span"),e._uU(1),e.ALo(2,"phone"),e.qZA()),2&i){const t=e.oxw(2);e.xp6(1),e.Oqu(e.lcZ(2,1,t.currentLead.phone))}}function zo(i,r){1&i&&(e.TgZ(0,"span",61),e._uU(1,"Not provided"),e.qZA())}function Do(i,r){if(1&i&&(e.TgZ(0,"div",39)(1,"dt"),e._uU(2,"Organization"),e.qZA(),e.TgZ(3,"dd"),e._uU(4),e.qZA()()),2&i){const t=e.oxw(2);e.xp6(4),e.Oqu(t.currentLead.organization)}}function Qo(i,r){if(1&i&&(e.TgZ(0,"div",39)(1,"dt"),e._uU(2,"Website"),e.qZA(),e.TgZ(3,"dd")(4,"a",62),e._uU(5),e.qZA()()()),2&i){const t=e.oxw(2);e.xp6(4),e.Q6J("href",t.currentLead.website,e.LSH),e.xp6(1),e.Oqu(t.currentLead.website)}}function Eo(i,r){if(1&i&&(e.TgZ(0,"div",39)(1,"dt"),e._uU(2,"Source"),e.qZA(),e.TgZ(3,"dd"),e._uU(4),e.qZA()()),2&i){const t=e.oxw(2);e.xp6(4),e.Oqu(t.currentLead.source)}}function Yo(i,r){if(1&i&&(e.TgZ(0,"span"),e._uU(1),e._UZ(2,"br"),e.qZA()),2&i){const t=e.oxw(3);e.xp6(1),e.Oqu(t.currentLead.street)}}function Ho(i,r){1&i&&(e.ynx(0),e._uU(1,", "),e.BQk())}function jo(i,r){if(1&i&&(e.TgZ(0,"div",39)(1,"dt"),e._uU(2,"Address"),e.qZA(),e.TgZ(3,"dd"),e.YNc(4,Yo,3,1,"span",42),e._uU(5),e.YNc(6,Ho,2,0,"ng-container",42),e._uU(7),e.qZA()()),2&i){const t=e.oxw(2);e.xp6(4),e.Q6J("ngIf",t.currentLead.street),e.xp6(1),e.hij(" ",t.currentLead.city,""),e.xp6(1),e.Q6J("ngIf",t.currentLead.city&&t.currentLead.state),e.xp6(1),e.AsE("",t.currentLead.state," ",t.currentLead.zip," ")}}function Ko(i,r){if(1&i&&(e.TgZ(0,"div",39)(1,"dt"),e._uU(2,"Next Step"),e.qZA(),e.TgZ(3,"dd")(4,"span",63)(5,"span",7),e._uU(6,"event_upcoming"),e.qZA(),e._uU(7),e.ALo(8,"date"),e.qZA()()()),2&i){const t=e.oxw(2);e.xp6(7),e.hij(" ",e.xi3(8,1,t.currentLead.nextStepTargetDate,"MMMM d, y")," ")}}function $o(i,r){if(1&i&&(e.TgZ(0,"section",33)(1,"header",34)(2,"span",7),e._uU(3,"edit_note"),e.qZA(),e.TgZ(4,"h2"),e._uU(5,"Notes"),e.qZA()(),e._UZ(6,"div",64),e.ALo(7,"safe"),e.qZA()),2&i){const t=e.oxw(2);e.xp6(6),e.Q6J("innerHTML",e.xi3(7,1,t.currentLead.notes,"html"),e.oJD)}}function Bo(i,r){if(1&i){const t=e.EpF();e.TgZ(0,"div",65),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.closeDemoScheduler())}),e.TgZ(1,"div",66),e.NdJ("click",function(o){return o.stopPropagation()}),e.TgZ(2,"header",67)(3,"span",7),e._uU(4,"videocam"),e.qZA(),e.TgZ(5,"h3"),e._uU(6,"Schedule Demo"),e.qZA(),e.TgZ(7,"button",68),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.closeDemoScheduler())}),e.TgZ(8,"span",7),e._uU(9,"close"),e.qZA()()(),e.TgZ(10,"p",69),e._uU(11,"Pick a date and time for the demo with "),e.TgZ(12,"strong"),e._uU(13),e.qZA(),e._uU(14,"."),e.qZA(),e.TgZ(15,"div",70)(16,"label"),e._uU(17,"Demo Date & Time"),e.qZA(),e.TgZ(18,"input",71),e.NdJ("ngModelChange",function(o){e.CHM(t);const a=e.oxw(2);return e.KtG(a.demoDateValue=o)}),e.qZA()(),e.TgZ(19,"div",72)(20,"button",73),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.closeDemoScheduler())}),e._uU(21,"Cancel"),e.qZA(),e.TgZ(22,"button",74),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.confirmScheduleDemo())}),e.TgZ(23,"span",7),e._uU(24,"event_available"),e.qZA(),e._uU(25," Schedule "),e.qZA()()()()}if(2&i){const t=e.oxw(2);e.xp6(13),e.Oqu(t.currentLead.first_name),e.xp6(5),e.Q6J("ngModel",t.demoDateValue),e.xp6(4),e.Q6J("disabled",!t.demoDateValue)}}function Ro(i,r){if(1&i){const t=e.EpF();e.TgZ(0,"div",4)(1,"header",5)(2,"button",6),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.goBack())}),e.TgZ(3,"span",7),e._uU(4,"arrow_back"),e.qZA()(),e.TgZ(5,"div",8),e._uU(6),e.qZA(),e.TgZ(7,"div",9)(8,"span",10)(9,"span",7),e._uU(10,"contact_phone"),e.qZA(),e._uU(11,"Lead"),e.qZA(),e.TgZ(12,"h1",11),e._uU(13),e.qZA(),e.TgZ(14,"div",12),e.YNc(15,To,2,3,"span",13),e.YNc(16,Po,4,1,"span",14),e.YNc(17,Zo,6,3,"span",15),e.qZA()(),e.TgZ(18,"div",16)(19,"button",17),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.editLead())}),e.TgZ(20,"span",7),e._uU(21,"edit"),e.qZA()(),e.TgZ(22,"button",18),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.deleteLead())}),e.TgZ(23,"span",7),e._uU(24,"delete"),e.qZA()()()(),e.TgZ(25,"div",19)(26,"ul",20),e.YNc(27,ko,3,4,"li",21),e.qZA(),e.TgZ(28,"div",22),e.YNc(29,Lo,2,5,"button",23),e.qZA()(),e.TgZ(30,"div",24),e.YNc(31,Ao,4,0,"button",25),e.YNc(32,So,4,0,"button",26),e.TgZ(33,"button",27),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.openLogCall())}),e.TgZ(34,"span",7),e._uU(35,"call"),e.qZA(),e._uU(36," Log Call "),e.qZA(),e.TgZ(37,"button",27),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.openAddNote())}),e.TgZ(38,"span",7),e._uU(39,"edit_note"),e.qZA(),e._uU(40," Add Note "),e.qZA(),e.TgZ(41,"button",27),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.openScheduleDemo())}),e.TgZ(42,"span",7),e._uU(43,"videocam"),e.qZA(),e._uU(44," Schedule Demo "),e.qZA(),e.YNc(45,qo,4,1,"a",28),e.YNc(46,Uo,4,1,"a",29),e.YNc(47,No,4,2,"button",30),e.qZA(),e.TgZ(48,"div",31)(49,"aside",32)(50,"section",33)(51,"header",34)(52,"span",7),e._uU(53,"history"),e.qZA(),e.TgZ(54,"h2"),e._uU(55,"Activity Feed"),e.qZA(),e.YNc(56,Jo,3,4,"span",35),e.qZA(),e._UZ(57,"lead-activity-feed",36),e.qZA()(),e.TgZ(58,"div",37)(59,"section",33)(60,"header",34)(61,"span",7),e._uU(62,"person"),e.qZA(),e.TgZ(63,"h2"),e._uU(64,"Contact Details"),e.qZA()(),e.TgZ(65,"dl",38)(66,"div",39)(67,"dt"),e._uU(68,"Email"),e.qZA(),e.TgZ(69,"dd"),e.YNc(70,Io,2,2,"a",40),e.YNc(71,Fo,2,0,"span",41),e.qZA()(),e.TgZ(72,"div",39)(73,"dt"),e._uU(74,"Phone"),e.qZA(),e.TgZ(75,"dd"),e.YNc(76,Go,3,3,"span",42),e.YNc(77,zo,2,0,"span",41),e.qZA()(),e.YNc(78,Do,5,1,"div",43),e.YNc(79,Qo,6,2,"div",43),e.YNc(80,Eo,5,1,"div",43),e.YNc(81,jo,8,5,"div",43),e.YNc(82,Ko,9,4,"div",43),e.qZA()(),e.YNc(83,$o,8,4,"section",44),e.TgZ(84,"section",33)(85,"header",34)(86,"span",7),e._uU(87,"mail"),e.qZA(),e.TgZ(88,"h2"),e._uU(89,"Outreach Email Preview"),e.qZA(),e.TgZ(90,"button",45),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.copyOutreachToClipboard())}),e.TgZ(91,"span",7),e._uU(92,"content_copy"),e.qZA()()(),e.TgZ(93,"div",46)(94,"p"),e._uU(95),e.qZA(),e.TgZ(96,"p"),e._uU(97,"My name is Daniel Weber and I developed a tournament management platform called "),e.TgZ(98,"strong"),e._uU(99,"WeighBook"),e.qZA(),e._uU(100,". It's built specifically for bass tournament directors who want to run professional events without the headache."),e.qZA(),e.TgZ(101,"p"),e._uU(102,"WeighBook handles "),e.TgZ(103,"strong"),e._uU(104,"everything"),e.qZA(),e._uU(105," - from season management and signups to running a live digital weigh-in with real-time leaderboards. It talks directly to the scales and generates results instantly."),e.qZA(),e.TgZ(106,"p")(107,"strong"),e._uU(108,"Key Features:"),e.qZA()(),e.TgZ(109,"ul")(110,"li"),e._uU(111,"Create and manage Tours, Divisions, Seasons & Tourn
1aments"),e.qZA(),e.TgZ(112,"li"),e._uU(113,"Online registration with Stripe payment collection"),e.qZA(),e.TgZ(114,"li"),e._uU(115,"Digital scale integration - weights recorded automatically"),e.qZA(),e.TgZ(116,"li"),e._uU(117,"Works offline at the boat ramp (syncs when back online)"),e.qZA(),e.TgZ(118,"li"),e._uU(119,"Real-time live leaderboard for anglers and spectators"),e.qZA(),e.TgZ(120,"li"),e._uU(121,"Send results via SMS instantly after the tournament"),e.qZA(),e.TgZ(122,"li"),e._uU(123,"Automated payout calculations"),e.qZA(),e.TgZ(124,"li"),e._uU(125,"Kiosk mode for on-site registration"),e.qZA()(),e.TgZ(126,"p"),e._uU(127,"I'd love to give you a quick 15-minute demo so you can see it in action. No commitment - just want to show you what it can do for your tournaments."),e.qZA(),e.TgZ(128,"p"),e._uU(129," Tight lines,"),e._UZ(130,"br"),e.TgZ(131,"strong"),e._uU(132,"Daniel Weber"),e.qZA(),e._UZ(133,"br"),e._uU(134," Founder, WeighBook"),e._UZ(135,"br"),e.TgZ(136,"a",47),e._uU(137,"weighbook.com"),e.qZA()()()()()(),e.YNc(138,Bo,26,3,"div",48),e.qZA()}if(2&i){const t=e.oxw();e.xp6(5),e.Udp("background",t._leadService.getStatusColor(t.currentLead.status)),e.xp6(1),e.hij(" ",t.getInitials()||"?"," "),e.xp6(7),e.AsE("",t.currentLead.first_name," ",t.currentLead.last_name,""),e.xp6(2),e.Q6J("ngIf",t.currentLead.status),e.xp6(1),e.Q6J("ngIf",t.currentLead.organization),e.xp6(1),e.Q6J("ngIf",t.currentLead.city||t.currentLead.state),e.xp6(10),e.Q6J("ngForOf",t.steps),e.xp6(2),e.Q6J("ngForOf",t.negativeStatuses),e.xp6(2),e.Q6J("ngIf",t.currentLead.email),e.xp6(1),e.Q6J("ngIf",t.currentLead.phone),e.xp6(13),e.Q6J("ngIf",t.currentLead.email),e.xp6(1),e.Q6J("ngIf",t.currentLead.phone),e.xp6(1),e.Q6J("ngIf","Converted"!==t.currentLead.status),e.xp6(9),e.Q6J("ngIf",t.currentLead.createdAt),e.xp6(1),e.Q6J("leadId",t.currentLead._id)("leadCreatedAt",t.currentLead.createdAt),e.xp6(13),e.Q6J("ngIf",t.currentLead.email),e.xp6(1),e.Q6J("ngIf",!t.currentLead.email),e.xp6(5),e.Q6J("ngIf",t.currentLead.phone),e.xp6(1),e.Q6J("ngIf",!t.currentLead.phone),e.xp6(1),e.Q6J("ngIf",t.currentLead.organization),e.xp6(1),e.Q6J("ngIf",t.currentLead.website),e.xp6(1),e.Q6J("ngIf",t.currentLead.source),e.xp6(1),e.Q6J("ngIf",t.currentLead.street||t.currentLead.city),e.xp6(1),e.Q6J("ngIf",t.currentLead.nextStepTargetDate),e.xp6(1),e.Q6J("ngIf",t.currentLead.notes),e.xp6(12),e.hij("Hi ",t.currentLead.first_name||"there",","),e.xp6(43),e.Q6J("ngIf",t.showDemoScheduler)}}let Vo=(()=>{class i{constructor(t,n,o,a,s,l,u,p){this._router=t,this._location=n,this.route=o,this._userService=a,this._leadService=s,this._sharedUtilsService=l,this._matDialog=u,this._userRolesService=p,this.ngUnsubscribe=new M.x,this.currentLeadId="",this.baseRoute="/",this.showDemoScheduler=!1,this.demoDateValue="",this.statusMenuOpen=!1,this.converting=!1,this.negativeStatuses=["Not Interested","DNC"],this.route.params.pipe((0,v.R)(this.ngUnsubscribe)).subscribe(x=>this.currentLeadId=x.id)}ngOnInit(){this.currentUser=this._userService.getCurrentlyLoggedInUser(),this.baseRoute=this._userRolesService.crmPortalBase(),this.init()}ngOnDestroy(){this.ngUnsubscribe.next(null),this.ngUnsubscribe.complete()}init(){var t=this;return(0,f.Z)(function*(){yield t.initLead()})()}get positiveStatuses(){return this._leadService.statuses.filter(t=>!this.negativeStatuses.includes(t))}get steps(){const t=this.positiveStatuses,n=t.indexOf(this.currentLead?.status);return t.map((o,a)=>({label:o,color:this._leadService.getStatusColor(o),status:-1===n?"disabled":a<n?"complete":a===n?"active":"disabled"}))}getInitials(){return((this.currentLead?.first_name?.charAt(0)||"")+(this.currentLead?.last_name?.charAt(0)||"")).toUpperCase()}editLead(){this._router.navigateByUrl(this.baseRoute+"/leads/edit/"+this.currentLead._id)}deleteLead(){var t=this;return(0,f.Z)(function*(){const n={title:"Confirm Deletion",textToDisplay:`Are you sure you want to delete ${t.currentLead.first_name} ${t.currentLead.last_name}?`,buttonsInfo:{confirmText:"Delete",confirmBtnColor:"warn",denyText:"Cancel",denyBtnColor:""}};(yield t._sharedUtilsService.confirmationDialogPromise(n))&&(yield(0,d.lastValueFrom)(t._leadService.delete(t.currentLead._id)),t._sharedUtilsService.showNotification("Lead successfully deleted"),t._router.navigate([t.baseRoute+"/leads"]))})()}changeStatus(t){var n=this;return(0,f.Z)(function*(){if(t&&n.currentLead?.status!==t)try{n.currentLead=yield(0,d.lastValueFrom)(n._leadService.updateStatus(n.currentLead._id,t)),n._sharedUtilsService.showNotificationWithOptions("Status updated to "+t,"Status Changed",4e3,"success"),n.activityFeed?.refresh()}catch{n._sharedUtilsService.showNotificationWithOptions("Failed to update status","Error",4e3,"error")}})()}convertToDirector(){var t=this;
1return(0,f.Z)(function*(){if(!t.converting)if("Converted"===t.currentLead.status&&t.currentLead.user)t._sharedUtilsService.showNotification("This lead has already been converted.");else if(t.currentLead.email){if(yield t._sharedUtilsService.confirmationDialogPromise({title:"Convert to Director Account",textToDisplay:`This creates a new Director user and account (Stripe, credit bank, settings) for ${t.currentLead.first_name} ${t.currentLead.last_name} and marks the lead as Converted. Continue?`,buttonsInfo:{confirmText:"Convert",confirmBtnColor:"primary",denyText:"Cancel",denyBtnColor:""}})){t.converting=!0;try{const o=yield(0,d.lastValueFrom)(t._leadService.convertToDirector(t.currentLead._id));t.currentLead=o.lead,t._sharedUtilsService.showNotificationWithOptions("Director account created"+(o.stripeCreated?"":" - Stripe still needs setup"),"Lead Converted",5e3,"success"),t.activityFeed?.refresh()}catch(o){t._sharedUtilsService.showNotificationWithOptions(o&&o.error&&o.error.message?o.error.message:"Failed to convert lead","Conversion Failed",5e3,"error")}t.converting=!1}}else t._sharedUtilsService.showNotificationWithOptions("Lead has no email; cannot create a director account.","Cannot Convert",4e3,"error")})()}sendOutreachEmail(){this.currentLead.email&&this._matDialog.open(F,{width:"720px",maxWidth:"95vw",autoFocus:!1,data:{lead:this.currentLead}}).afterClosed().subscribe(n=>{n&&(this.currentLead=n,this.activityFeed?.refresh())})}openLogCall(){this._matDialog.open(_o,{width:"520px",maxWidth:"95vw",autoFocus:!1,data:{lead:this.currentLead}}).afterClosed().subscribe(n=>{n&&this.activityFeed?.refresh()})}openSendSms(){this.currentLead.phone&&this._matDialog.open(ho,{width:"560px",maxWidth:"95vw",autoFocus:!1,data:{lead:this.currentLead}}).afterClosed().subscribe(n=>{n&&this.activityFeed?.refresh()})}openAddNote(){this._matDialog.open(wo,{width:"520px",maxWidth:"95vw",autoFocus:!1,data:{lead:this.currentLead}}).afterClosed().subscribe(n=>{n&&this.activityFeed?.refresh()})}openScheduleDemo(){this.demoDateValue="",this.showDemoScheduler=!0}closeDemoScheduler(){this.showDemoScheduler=!1}confirmScheduleDemo(){var t=this;return(0,f.Z)(function*(){if(t.demoDateValue)try{t.currentLead=yield(0,d.lastValueFrom)(t._leadService.scheduleDemo(t.currentLead._id,t.demoDateValue)),t._sharedUtilsService.showNotificationWithOptions("Demo scheduled successfully","Demo Scheduled",5e3,"success"),t.closeDemoScheduler(),t.activityFeed?.refresh()}catch{t._sharedUtilsService.showNotificationWithOptions("Failed to schedule demo","Error",5e3,"error")}})()}copyOutreachToClipboard(){navigator.clipboard.writeText(`Hi ${this.currentLead.first_name||"there"},\n\nMy name is Daniel Weber and I developed a tournament management platform called WeighBook. It's built specifically for bass tournament directors who want to run professional events without the headache.\n\nWeighBook handles everything - from season management and signups to running a live digital weigh-in with real-time leaderboards. It talks directly to the scales and generates results instantly.\n\nKey Features:\n- Create and manage Tours, Divisions, Seasons & Tournaments\n- Online registration with Stripe payment collection\n- Digital scale integration - weights recorded automatically\n- Works offline at the boat ramp (syncs when back online)\n- Real-time live leaderboard for anglers and spectators\n- Send results via SMS instantly after the tournament\n- Automated payout calculations\n- Kiosk mode for on-site registration\n\nI'd love to give you a quick 15-minute demo so you can see it in action. No commitment - just want to show you what it can do for your tournaments.\n\nTight lines,\nDaniel Weber\nFounder, WeighBook\nhttps://www.weighbook.com`).then(()=>{this._sharedUtilsService.showNotification("Outreach message copied to clipboard")})}initLead(){var t=this;return new Promise(function(){var n=(0,f.Z)(function*(o){t.currentLead=t._leadService.getCurrentBeingViewed(),!t.currentLead&&t.currentLeadId&&(t.currentLead=yield(0,d.lastValueFrom)(t._leadService.get(t.currentLeadId))),o(null)});return function(o){return n.apply(this,arguments)}}())}goBack(){this._location.back()}
1onDocumentClick(t){this.statusMenuOpen&&(t.target.closest(".status-changer")||(this.statusMenuOpen=!1))}static{this.\u0275fac=function(n){return new(n||i)(e.Y36(m.F0),e.Y36(_.Ye),e.Y36(m.gz),e.Y36(b.KD),e.Y36(O.C),e.Y36(b.n3),e.Y36(w.uw),e.Y36(Z._))}}static{this.\u0275cmp=e.Xpm({type:i,selectors:[["lead-profile"]],viewQuery:function(n,o){if(1&n&&e.Gf(k,5),2&n){let a;e.iGM(a=e.CRH())&&(o.activityFeed=a.first)}},hostBindings:function(n,o){1&n&&e.NdJ("click",function(s){return o.onDocumentClick(s)},!1,e.evT)},inputs:{hideHeader:"hideHeader"},decls:2,vars:2,consts:[["class","lp-loading",4,"ngIf"],["class","lead-profile-page",4,"ngIf"],[1,"lp-loading"],[1,"spinner"],[1,"lead-profile-page"],[1,"lp-header-card"],["type","button","aria-label","Back",1,"lp-icon-btn","back-btn",3,"click"],[1,"material-symbols-outlined"],[1,"lp-avatar"],[1,"lp-identity"],[1,"lp-eyebrow"],[1,"lp-name"],[1,"lp-meta-row"],["class","lp-status-pill",3,"background",4,"ngIf"],["class","lp-org",4,"ngIf"],["class","lp-location",4,"ngIf"],[1,"lp-header-actions"],["type","button","matTooltip","Edit lead",1,"lp-icon-btn",3,"click"],["type","button","matTooltip","Delete lead",1,"lp-icon-btn","danger",3,"click"],[1,"lp-stepper"],[1,"step-bar"],["class","step",3,"ngClass","background","click",4,"ngFor","ngForOf"],[1,"lp-offramps"],["type","button","class","offramp-btn",3,"active","background","click",4,"ngFor","ngForOf"],[1,"lp-action-bar"],["class","lp-btn lp-btn-primary","type","button",3,"click",4,"ngIf"],["class","lp-btn lp-btn-secondary","type","button",3,"click",4,"ngIf"],["type","button",1,"lp-btn","lp-btn-secondary",3,"click"],["class","lp-btn lp-btn-ghost","matTooltip","Open in default mail app",3,"href",4,"ngIf"],["class","lp-btn lp-btn-ghost","matTooltip","Call now",3,"href",4,"ngIf"],["class","lp-btn lp-btn-convert","type","button","matTooltip","Create a Director user + account from this lead",3,"disabled","click",4,"ngIf"],[1,"lp-columns"],[1,"lp-col","lp-activity-col"],[1,"lp-card"],[1,"lp-card-header"],["class","card-sub",4,"ngIf"],[3,"leadId","leadCreatedAt"],[1,"lp-col","lp-main-col"],[1,"detail-list"],[1,"detail-row"],["class","lp-link",3,"href",4,"ngIf"],["class","no-data",4,"ngIf"],[4,"ngIf"],["class","detail-row",4,"ngIf"],["class","lp-card",4,"ngIf"],["type","button","matTooltip","Copy to clipboard",1,"lp-icon-btn","small",3,"click"],[1,"outreach-preview"],["href","https://www.weighbook.com","target","_blank",1,"lp-link"],["class","lp-modal-overlay",3,"click",4,"ngIf"],[1,"lp-status-pill"],[1,"lp-org"],[1,"lp-location"],[1,"step",3,"ngClass","click"],[1,"step-label"],["type","button",1,"offramp-btn",3,"click"],["type","button",1,"lp-btn","lp-btn-primary",3,"click"],["matTooltip","Open in default mail app",1,"lp-btn","lp-btn-ghost",3,"href"],["matTooltip","Call now",1,"lp-btn","lp-btn-ghost",3,"href"],["type","button","matTooltip","Create a Director user + account from this lead",1,"lp-btn","lp-btn-convert",3,"disabled","click"],[1,"card-sub"],[1,"lp-link",3,"href"],[1,"no-data"],["target","_blank","appExternalLink","","rel","noopener",1,"lp-link",3,"href"],[1,"next-step-pill"],[1,"notes-content",3,"innerHTML"],[1,"lp-modal-overlay",3,"click"],[1,"lp-modal",3,"click"],[1,"lp-modal-header"],["type","button","aria-label","Close",1,"lp-icon-btn","small",3,"click"],[1,"lp-modal-text"],[1,"lp-field"],["type","datetime-local",3,"ngModel","ngModelChange"],[1,"lp-modal-actions"],["type","button",1,"lp-btn","lp-btn-ghost",3,"click"],["type","button",1,"lp-btn","lp-btn-primary",3,"disabled","click"]],template:function(n,o){1&n&&(e.YNc(0,Oo,2,0,"div",0),e.YNc(1,Ro,139,30,"div",1)),2&n&&(e.Q6J("ngIf",!o.currentLead),e.xp6(1),e.Q6J("ngIf",o.currentLead))},dependencies:[_.mk,_.sg,_.O5,c.Fj,c.JJ,c.On,vo.V,z.gM,k,_.uU,Co.y,Mo.E],styles:['[_nghost-%COMP%]{width:100%;display:block}.lead-profile-page[_ngcontent-%COMP%]{padding:24px 24px 80px;max-width:1240px;margin:0 auto}.lp-loading[_ngcontent-%COMP%]{display:flex;justify-content:center;padding:80px 0}.spinner[_ngcontent-%COMP%]{width:36px;height:36px;border:3px solid #f3f4f6;border-top-color:#16181d;border-radius:50%;animation:_ngcontent-%COMP%_spin .8s linear infinite}@keyframes _ngcontent-%COMP%_spin{to{transform:rotate(360deg)}}.lp-header-card[_ngcontent-%COMP%]{position:relative;overflow:hidden;display:flex;align-items:center;gap:16px;border-radius:16px;border:1px solid rgba(255,255,255,.06);background:var(--wb-flagship-band);padding:16px 22px;margin:10px auto 18px}
1.lp-avatar[_ngcontent-%COMP%]{width:50px;height:50px;border-radius:12px;display:flex;align-items:center;justify-content:center;color:#fff;font-size:1.2rem;font-weight:800;letter-spacing:.02em;flex-shrink:0;box-shadow:0 0 0 1px #ffffff1f,0 3px 10px #00000052;text-transform:uppercase}.lp-identity[_ngcontent-%COMP%]{flex:1;min-width:0}.lp-eyebrow[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:5px;font-size:11px;font-weight:700;letter-spacing:1.2px;text-transform:uppercase;color:#ffffff8c;margin-bottom:4px}.lp-eyebrow[_ngcontent-%COMP%]   .material-symbols-outlined[_ngcontent-%COMP%]{font-size:14px}.lp-name[_ngcontent-%COMP%]{margin:0;font-size:24px;font-weight:800;color:#fff;line-height:1.1;letter-spacing:-.02em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.lp-meta-row[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px;margin-top:6px;flex-wrap:wrap;color:#fff9}.lp-status-pill[_ngcontent-%COMP%]{font-size:.74rem;font-weight:700;color:#fff;padding:4px 11px;border-radius:999px;letter-spacing:.02em;white-space:nowrap;box-shadow:0 2px 6px #00000014}.lp-org[_ngcontent-%COMP%], .lp-location[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:4px;font-size:.84rem;color:#fffc}.lp-org[_ngcontent-%COMP%]   .material-symbols-outlined[_ngcontent-%COMP%], .lp-location[_ngcontent-%COMP%]   .material-symbols-outlined[_ngcontent-%COMP%]{font-size:16px;color:#fffc}.lp-header-actions[_ngcontent-%COMP%]{display:flex;gap:4px;flex-shrink:0}.lp-icon-btn[_ngcontent-%COMP%]{background:#fff;border:1px solid #e5e7eb;border-radius:9px;padding:8px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;color:#4b5563;transition:all .15s ease;font-family:inherit}.lp-icon-btn[_ngcontent-%COMP%]   .material-symbols-outlined[_ngcontent-%COMP%]{font-size:20px}.lp-icon-btn[_ngcontent-%COMP%]:hover{background:#f9fafb;color:#1f2937}.lp-icon-btn.danger[_ngcontent-%COMP%]:hover{background:#fee2e2;border-color:#fecaca;color:#dc2626}.lp-icon-btn.back-btn[_ngcontent-%COMP%]{padding:9px}.lp-icon-btn.small[_ngcontent-%COMP%]{padding:5px}.lp-icon-btn.small[_ngcontent-%COMP%]   .material-symbols-outlined[_ngcontent-%COMP%]{font-size:16px}.lp-header-card[_ngcontent-%COMP%]   .lp-icon-btn[_ngcontent-%COMP%]{background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.16);color:#ffffffb3}.lp-header-card[_ngcontent-%COMP%]   .lp-icon-btn[_ngcontent-%COMP%]:hover{background:rgba(255,255,255,.14);color:#fff}.lp-header-card[_ngcontent-%COMP%]   .lp-icon-btn.danger[_ngcontent-%COMP%]{color:#f8736b}.lp-header-card[_ngcontent-%COMP%]   .lp-icon-btn.danger[_ngcontent-%COMP%]:hover{background:rgba(196,48,43,.18);border-color:#c4302b66;color:#f8736b}.lp-stepper[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px;margin-bottom:14px;flex-wrap:wrap}.step-bar[_ngcontent-%COMP%]{display:flex;list-style:none;margin:0;padding:0;flex:1;min-width:280px;border-radius:10px;overflow:hidden}.step-bar[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]{position:relative;flex:1;height:40px;margin-right:8px;background:#eef1f5;color:#8a97a5;font-size:11.5px;font-weight:700;letter-spacing:.01em;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:background .15s,color .15s}.step-bar[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]:last-child{margin-right:0}.step-bar[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]   .step-label[_ngcontent-%COMP%]{position:relative;z-index:2;padding:0 6px;text-align:center;white-space:nowrap}.step-bar[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]:before, .step-bar[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]:after{content:"";position:absolute;right:-9px;width:18px;height:50%;background-color:inherit;border-right:4px solid #fff;z-index:1}.step-bar[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]:before{top:0;transform:skew(30deg)}.step-bar[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]:after{bottom:0;transform:skew(-30deg)}.step-bar[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]:last-child:before, .step-bar[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]:last-child:after{display:none}.step-bar[_ngcontent-%COMP%] > li.complete[_ngcontent-%COMP%]{background:#2b2f3a;color:#fff}
1.step-bar[_ngcontent-%COMP%] > li.active[_ngcontent-%COMP%]{color:#fff}.step-bar[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]:not(.active):not(.complete):hover{background:#e2e7ee;color:#5b6573}.lp-offramps[_ngcontent-%COMP%]{display:flex;gap:6px;flex-shrink:0}.offramp-btn[_ngcontent-%COMP%]{border:1.5px solid #e5e7eb;background:#fff;border-radius:999px;padding:8px 15px;font-size:11.5px;font-weight:700;color:#6b7280;cursor:pointer;font-family:inherit;white-space:nowrap;transition:all .15s ease}.offramp-btn[_ngcontent-%COMP%]:hover{border-color:#9ca3af;color:#374151}.offramp-btn.active[_ngcontent-%COMP%]{color:#fff;border-color:transparent;box-shadow:0 2px 8px #00000024}.lp-action-bar[_ngcontent-%COMP%]{display:flex;gap:8px;flex-wrap:wrap;padding:14px 18px;background:linear-gradient(90deg,#f8f9fb 0%,#f1f3f6 100%);border:1px solid #e8eaef;border-radius:14px;margin-bottom:20px}.lp-btn[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:6px;padding:10px 18px;border-radius:10px;font-size:.88rem;font-weight:600;cursor:pointer;border:none;font-family:inherit;text-decoration:none;transition:all .15s ease;white-space:nowrap}.lp-btn[_ngcontent-%COMP%]   .material-symbols-outlined[_ngcontent-%COMP%]{font-size:18px}.lp-btn[_ngcontent-%COMP%]:disabled{opacity:.5;cursor:default}.lp-btn.lp-btn-primary[_ngcontent-%COMP%]{background:linear-gradient(135deg,#2b2f3a 0%,#16181d 100%);color:#fff;box-shadow:0 4px 14px #00000038}.lp-btn.lp-btn-primary[_ngcontent-%COMP%]:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 6px 18px #0000004d}.lp-btn.lp-btn-secondary[_ngcontent-%COMP%]{background:#fff;color:#1f2937;border:1.5px solid #d1d5db}.lp-btn.lp-btn-secondary[_ngcontent-%COMP%]:hover:not(:disabled){background:#f9fafb;border-color:#16181d}.lp-btn.lp-btn-ghost[_ngcontent-%COMP%]{background:transparent;color:#6b7280;border:1px solid transparent}.lp-btn.lp-btn-ghost[_ngcontent-%COMP%]:hover:not(:disabled){background:rgba(255,255,255,.7);color:#1f2937}.lp-btn.lp-btn-convert[_ngcontent-%COMP%]{margin-left:auto;background:linear-gradient(135deg,#16a34a 0%,#15803d 100%);color:#fff;box-shadow:0 4px 14px #15803d47}.lp-btn.lp-btn-convert[_ngcontent-%COMP%]:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 6px 18px #15803d61}.lp-columns[_ngcontent-%COMP%]{display:flex;align-items:flex-start;gap:16px}@media (max-width: 960px){.lp-columns[_ngcontent-%COMP%]{flex-direction:column}}.lp-col[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:16px;min-width:0}.lp-activity-col[_ngcontent-%COMP%]{flex:0 0 440px;width:440px;position:sticky;top:16px}.lp-activity-col[_ngcontent-%COMP%]   .lp-card[_ngcontent-%COMP%]{display:flex;flex-direction:column}.lp-main-col[_ngcontent-%COMP%]{flex:1;min-width:0}@media (min-width: 961px){.lp-activity-col[_ngcontent-%COMP%]   .lp-card[_ngcontent-%COMP%]{max-height:calc(100vh - 32px);overflow-y:auto}}@media (max-width: 960px){.lp-activity-col[_ngcontent-%COMP%]{position:static;width:100%;flex:none;order:2}.lp-main-col[_ngcontent-%COMP%]{order:1;width:100%}}.lp-card[_ngcontent-%COMP%]{background:#fff;border:1px solid #eef0f5;border-radius:14px;padding:20px 22px}.lp-card-header[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;margin-bottom:16px;padding-bottom:12px;border-bottom:1px solid #f3f4f6}.lp-card-header[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{margin:0;font-size:1rem;font-weight:700;color:#1a1a2e;flex:1}.lp-card-header[_ngcontent-%COMP%] > .material-symbols-outlined[_ngcontent-%COMP%]{font-size:20px;color:#16181d}.lp-card-header[_ngcontent-%COMP%]   .card-sub[_ngcontent-%COMP%]{font-size:.78rem;color:#9ca3af;font-weight:500}.detail-list[_ngcontent-%COMP%]{margin:0;display:flex;flex-direction:column;gap:14px}.detail-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:110px 1fr;gap:16px;align-items:start}.detail-row[_ngcontent-%COMP%]   dt[_ngcontent-%COMP%]{font-size:.74rem;font-weight:700;color:#6b7280;text-transform:uppercase;letter-spacing:.04em;margin:0;padding-top:2px}.detail-row[_ngcontent-%COMP%]   dd[_ngcontent-%COMP%]{margin:0;font-size:.92rem;color:#1f2937;word-break:break-word}.lp-link[_ngcontent-%COMP%]{color:#16181d;text-decoration:none;font-weight:600}.lp-link[_ngcontent-%COMP%]:hover{color:#000;text-decoration:underline}.no-data[_ngcontent-%COMP%]{color:#c4c7d4;font-style:italic;font-size:.88rem}.next-step-pill[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:4px;background:#fef3c7;color:#d97706;font-size:.84rem;font-weight:700;padding:4px 11px;border-radius:8px}.next-step-pill[_ngcontent-%COMP%]   .material-symbols-outlined[_ngcontent-%COMP%]{font-size:15px}.notes-content[_ngcontent-%COMP%]{font-size:.92rem;color:#374151;line-height:1.6}.notes-content[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{margin:0 0 10px}.notes-content[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]:last-child{margin-bottom:0}.timeline[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:14px;position:relative}.timeline-item[_ngcontent-%COMP%]{display:flex;align-items:flex-start;gap:12px}.timeline-icon[_ngcontent-%COMP%]{width:38px;height:38px;border-radius:10px;display:flex;align-items:center;justify-content:center;flex-shrink:0}.timeline-icon[_ngcontent-%COMP%]   .material-symbols-outlined[_ngcontent-%COMP%]{font-size:18px;color:#fff}.timeline-icon.demo[_ngcontent-%COMP%]{background:linear-gradient(135deg,#8b5cf6 0%,#7c3aed 100%)}.timeline-icon.contacted[_ngcontent-%COMP%]{background:linear-gradient(135deg,#2196F3 0%,#1976d2 100%)}.timeline-icon.converted[_ngcontent-%COMP%]{background:linear-gradient(135deg,#14b8a6 0%,#0d9488 100%)}.timeline-icon.created[_ngcontent-%COMP%]{background:linear-gradient(135deg,#6b7280 0%,#4b5563 100%)}.timeline-body[_ngcontent-%COMP%]{flex:1;min-width:0}.timeline-title[_ngcontent-%COMP%]{font-size:.9rem;font-weight:700;
1color:#1a1a2e}.timeline-date[_ngcontent-%COMP%]{margin-top:1px;font-size:.82rem;color:#6b7280}.no-activity[_ngcontent-%COMP%]{text-align:center;padding:24px 16px;color:#9ca3af;font-style:italic;font-size:.88rem}.no-activity[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{margin:0}.outreach-preview[_ngcontent-%COMP%]{background:#fafbfc;border-radius:10px;padding:18px 20px;font-size:.9rem;color:#374151;line-height:1.6}.outreach-preview[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{margin:0 0 12px}.outreach-preview[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]:last-child{margin-bottom:0}.outreach-preview[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]{margin:8px 0;padding-left:22px}.outreach-preview[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{margin-bottom:4px}.lp-modal-overlay[_ngcontent-%COMP%]{position:fixed;inset:0;background:rgba(15,23,42,.5);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);display:flex;align-items:center;justify-content:center;z-index:1000;padding:20px}.lp-modal[_ngcontent-%COMP%]{background:#fff;border-radius:16px;padding:22px 24px;width:100%;max-width:440px;box-shadow:0 20px 60px #00000040}.lp-modal-header[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px;margin-bottom:12px}.lp-modal-header[_ngcontent-%COMP%] > .material-symbols-outlined[_ngcontent-%COMP%]{font-size:24px;color:#16181d;background:#f1f3f6;padding:7px;border-radius:9px}.lp-modal-header[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin:0;flex:1;font-size:1.1rem;font-weight:700;color:#1a1a2e}.lp-modal-text[_ngcontent-%COMP%]{margin:0 0 16px;font-size:.9rem;color:#4b5563;line-height:1.5}.lp-field[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:5px;margin-bottom:18px}.lp-field[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{font-size:.74rem;font-weight:700;color:#4b5563;text-transform:uppercase;letter-spacing:.04em}.lp-field[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{width:100%;padding:10px 14px;font-size:.92rem;font-family:inherit;border:1px solid #e5e7eb;border-radius:9px;background:#fff;color:#1f2937;outline:none;box-sizing:border-box;transition:border-color .15s ease,box-shadow .15s ease}.lp-field[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]:focus{border-color:#16181d;box-shadow:0 0 0 3px #0000001a}.lp-modal-actions[_ngcontent-%COMP%]{display:flex;gap:10px;justify-content:flex-end}@media (max-width: 640px){.lead-profile-page[_ngcontent-%COMP%]{padding:16px 12px 60px}.lp-header-card[_ngcontent-%COMP%]{flex-wrap:wrap}.lp-header-card[_ngcontent-%COMP%]   .back-btn[_ngcontent-%COMP%]{order:-1}.lp-header-card[_ngcontent-%COMP%]   .lp-header-actions[_ngcontent-%COMP%]{margin-left:auto}.lp-action-bar[_ngcontent-%COMP%]   .status-changer[_ngcontent-%COMP%]{margin-left:0;width:100%}.lp-action-bar[_ngcontent-%COMP%]   .status-changer[_ngcontent-%COMP%]   .lp-btn[_ngcontent-%COMP%]{width:100%;justify-content:center}.detail-row[_ngcontent-%COMP%]{grid-template-columns:1fr;gap:4px}}']})}}return i})();var Wo=g(76086),Q=g(269);function Xo(i,r){1&i&&(e.TgZ(0,"span",4),e._uU(1,"person_add"),e.qZA())}function ei(i,r){if(1&i&&(e.TgZ(0,"span",52),e._uU(1),e.qZA()),2&i){const t=e.oxw(2);e.xp6(1),e.AsE(" ",(t.currentLead.first_name||"?")[0],"",(t.currentLead.last_name||"")[0]," ")}}function ti(i,r){if(1&i&&(e.ynx(0),e._uU(1),e.BQk()),2&i){const t=e.oxw(2);e.xp6(1),e.AsE("",t.currentLead.first_name," ",t.currentLead.last_name,"")}}function ni(i,r){1&i&&(e.ynx(0),e._uU(1,"New Lead"),e.BQk())}function oi(i,r){if(1&i&&(e.TgZ(0,"p",53),e._uU(1),e.qZA()),2&i){const t=e.oxw(2);e.xp6(1),e.Oqu(t.currentLead.organization)}}function ii(i,r){1&i&&(e.TgZ(0,"p",53),e._uU(1,"Fill in the fields below to start tracking this prospect"),e.qZA())}function ai(i,r){if(1&i&&(e.TgZ(0,"div",54),e._uU(1),e.qZA()),2&i){const t=e.oxw(2);e.Udp("background",t._leadsService.getStatusColor(t.currentLead.status)),e.xp6(1),e.hij(" ",t.currentLead.status," ")}}function ri(i,r){if(1&i){const t=e.EpF();e.TgZ(0,"button",55),e.NdJ("click",function(){const a=e.CHM(t).$implicit,s=e.oxw(2);return e.KtG(s.currentLead.status=a)}),e._uU(1),e.qZA()}if(2&i){const t=r.$implicit,n=e.oxw(2);e.Udp("--accent",n._leadsService.getStatusColor(t)),e.ekj("active",n.currentLead.status===t),e.xp6(1),e.hij(" ",t," ")}}function si(i,r){if(1&i){const t=e.EpF();e.TgZ(0,"button",56),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.currentLead.nextStepTargetDate=null)}),e.TgZ(1,"span",4),e._uU(2,"close"),e.qZA()()}}function li(i,r){if(1&i&&(e.TgZ(0,"option",36),e._uU(1),e.qZA()),2&i){const t=r.$implicit;e.Q6J("ngValue",t._id),e.xp6(1),e.AsE(" ",t.first_name," ",t.last_name," ")}}const C=function(){return{standalone:!0}};function ci(i,r){if(1&i){const t=e.EpF();e.TgZ(0,"div",1)(1,"header",2)(2,"button",3),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.cancel())}),e.TgZ(3,"span",4),e._uU(4,"arrow_back"),e.qZA()(),e.TgZ(5,"div",5),e.YNc(6,Xo,2,0,"span",6),e.YNc(7,ei,2,2,"span",7),e.qZA(),e.TgZ(8,"div",8)(9,"h1",9),e.YNc(10,ti,2,2,"ng-container",10),e.YNc(11,ni,2,0,"ng-container",10),e.qZA(),e.YNc(12,oi,2,1,"p",11),e.YNc(13,ii,2,0,"p",11),e.qZA(),e.YNc(14,ai,2,3,"div",12),e.qZA(),e.TgZ(15,"form",13),e.NdJ("ngSubmit",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.save())}),e.TgZ(16,"section",14)(17,"header",15)(18,"span",4),e._uU(19,"person"),e.qZA(),e.TgZ(20,"h2"),e._uU(21,"Contact"),e.qZA()(),e.TgZ(22,"div",16)(23,"div",17)(24,"label"),e._uU(25,"First Name"),e.qZA(),e.TgZ(26,"input",18),e.NdJ("ngModelChange",function(o){e.CHM(t);const a=e.oxw();return e.KtG(a.currentLead.first_name=o)}),e.qZA()(),e.TgZ(27,"div",17)(28,"label"),e._uU(29,"Last Name"),e.qZA(),e.TgZ(30,"input",19),e.NdJ("ngModelChange",function(o){e.CHM(t);const a=e.oxw();return e.KtG(a.currentLead.last_name=o)}),e.qZA()(),e.TgZ(31,"div",20)(32,"label"),e._uU(33,"Organization"),e.qZA(),e.TgZ(34,"input",21),e.NdJ("ngModelChange",function(o){e.CHM(t);const a=e.oxw();return e.KtG(a.currentLead.organization=o)}),e.qZA()(),e.TgZ(35,"div",17)(36,"label"),e._uU(37,"Email"),e.qZA(),e.TgZ(38,"div",22)(39,"span",23),e._uU(40,"mail"),e.qZA(),e.TgZ(41,"input",24),e.NdJ("ngModelChange",function(o){e.CHM(t);const a=e.oxw();return e.KtG(a.currentLead.email=o)}),e.qZA()()(),e.TgZ(42,"div",17)(43,"label"),e._uU(44,"Phone"),e.qZA(),e.TgZ(45,"div",22)(46,"span",23),e._uU(47,"call"),e.qZA(),e.TgZ(48,"input",25),e.NdJ("ngModelChange",function(o){e.CHM(t);const a=e.oxw();return e.KtG(a.currentLead.phone=o)}),e.qZA()()(),e.TgZ(49,"div",20)(50,"label"),e._uU(51,"Website"),e.qZA(),e.TgZ(52,"div",22)(53,"span",23),e._uU(54,"language"),e.qZA(),e.TgZ(55,"input",26),e.NdJ("ngModelChange",function(o){e.CHM(t);const a=e.oxw();return e.KtG(a.currentLead.website=o)}),e.qZA()()()()(),e.TgZ(56,"section",14)(57,"header",15)(58,"span",4),e._uU(59,"flag"),e.qZA(),e.TgZ(60,"h2"),e._uU(61,"Pipeline"),e.qZA()(),e.TgZ(62,"div",17)(63,"label"),e._uU(64,"Status"),e.qZA(),e.TgZ(65,"div",27),e.YNc(66,ri,2,5,"button",28),e.qZA()(),e.TgZ(67,"div",16)(68,"div",17)(69,"label",29)(70,"span",4),e._uU(71,"event_upcoming"),e.qZA(),e._uU(72," Next Step Target Date "),e.qZA(),e.TgZ(73,"div",30)(74,"input",31),e.NdJ("ngModelChange",function(o){e.CHM(t);const a=e.oxw();return e.KtG(a.currentLead.nextStepTargetDate=o)}),e.ALo(75,"date"),e.qZA(),e.YNc(76,si,3,0,"button",32),e.qZA()(),e.TgZ(77,"div",17)(78,"label"),e._uU(79,"Source"),e.qZA(),e.TgZ(80,"input",33),e.NdJ("ngModelChange",function(o){e.CHM(t);const a=e.oxw();return e.KtG(a.currentLead.source=o)}),e.qZA()(),e.TgZ(81,"div",20)(82,"label")(83,"span",34),e._uU(84,"assignment_ind"),e.qZA(),e._uU(85," Assigned To "),e.qZA(),e.TgZ(86,"select",35),e.NdJ("ngModelChange",function(o){e.CHM(t);const a=e.oxw();return e.KtG(a.currentLead.assignedTo=o)}),e.TgZ(87,"option",36),e._uU(88,"Unassigned"),e.qZA(),e.YNc(89,li,2,3,"option",37),e.qZA()()()(),e.TgZ(90,"section",14)(91,"header",15)(92,"span",4),e._uU(93,"location_on"),e.qZA(),e.TgZ(94,"h2"),e._uU(95,"Address"),e.qZA()(),e.TgZ(96,"div",38)(97,"div",39)(98,"label"),e._uU(99,"Street"),e.qZA(),e.TgZ(100,"input",40),e.NdJ("ngModelChange",function(o){e.CHM(t);const a=e.oxw();return e.KtG(a.currentLead.street=o)}),e.qZA()(),e.TgZ(101,"div",41)(102,"label"),e._uU(103,"City"),e.qZA(),e.TgZ(104,"input",42),e.NdJ("ngModelChange",function(o){e.CHM(t);const a=e.oxw();return e.KtG(a.currentLead.city=o)}),e.qZA()(),e.TgZ(105,"div",43)(106,"label"),e._uU(107,"State"),e.qZA(),e.TgZ(108,"input",44),e.NdJ("ngModelChange",function(o){e.CHM(t);const a=e.oxw();return e.KtG(a.currentLead.state=o)}),e.qZA()(),e.TgZ(109,"div",45)(110,"label"),e._uU(111,"Postal Code"),e.qZA(),e.TgZ(112,"input",46),e.NdJ("ngModelChange",function(o){e.CHM(t);const a=e.oxw();return e.KtG(a.currentLead.zip=o)}),e.qZA()()()(),e.TgZ(113,"section",14)(114,"header",15)(115,"span",4),e._uU(116,"edit_note"),e.qZA(),e.TgZ(117,"h2"),e._uU(118,"Notes"),e.qZA()(),e.TgZ(119,"div",47)(120,"html-editor",48),e.NdJ("htmlEditorContentsChanged",function(o){e.CHM(t);const a=e.oxw();return e.KtG(a.editorContentsChanged(o))}),e.qZA()()(),e.TgZ(121,"div",49)(122,"button",50),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.cancel())}),e._uU(123,"Cancel"),e.qZA(),e.TgZ(124,"button",51)(125,"span",4),e._uU(126,"save"),e.qZA(),e._uU(127),e.qZA()()()()}if(2&i){const t=e.oxw();e.xp6(6),e.Q6J("ngIf",!t.currentLead.first_name&&!t.currentLead.last_name),e.xp6(1),e.Q6J("ngIf",t.currentLead.first_name||t.currentLead.last_name),e.xp6(3),e.Q6J("ngIf",t.currentLead.first_name||t.currentLead.last_name),e.xp6(1),e.Q6J("ngIf",!t.currentLead.first_name&&!t.currentLead.last_name),e.xp6(1),e.Q6J("ngIf",t.currentLead.organization),e.xp6(1),e.Q6J("ngIf",!t.currentLead.organization&&!t.currentLead._id),e.xp6(1),e.Q6J("ngIf",t.currentLead.status),e.xp6(12),e.Q6J("ngModel",t.currentLead.first_name),e.xp6(4),e.Q6J("ngModel",t.currentLead.last_name),e.xp6(4),e.Q6J("ngModel",t.currentLead.organization)("ngModelOptions",e.DdM(40,C)),e.xp6(7),e.Q6J("ngModel",t.currentLead.email)("ngModelOptions",e.DdM(41,C)),e.xp6(7),e.Q6J("ngModel",t.currentLead.phone)("ngModelOptions",e.DdM(42,C)),e.xp6(7),e.Q6J("ngModel",t.currentLead.website)("ngModelOptions",e.DdM(43,C)),e.xp6(11),e.Q6J("ngForOf",t._leadsService.statuses),e.xp6(8),e.Q6J("ngModel",e.xi3(75,37,t.currentLead.nextStepTargetDate,"yyyy-MM-dd"))("ngModelOptions",e.DdM(44,C)),e.xp6(2),e.Q6J("ngIf",t.currentLead.nextStepTargetDate),e.xp6(4),e.Q6J("ngModel",t.currentLead.source)("ngModelOptions",e.DdM(45,C)),e.xp6(6),e.Q6J("ngModel",t.currentLead.assignedTo)("ngModelOptions",e.DdM(46,C)),e.xp6(1),e.Q6J("ngValue",null),e.xp6(2),e.Q6J("ngForOf",t.systemAdmins),e.xp6(11),e.Q6J("ngModel",t.currentLead.street)("ngModelOptions",e.DdM(47,C)),e.xp6(4),e.Q6J("ngModel",t.currentLead.city)("ngModelOptions",e.DdM(48,C)),e.xp6(4),e.Q6J("ngModel",t.currentLead.state)("ngModelOptions",e.DdM(49,C)),e.xp6(4),e.Q6J("ngModel",t.currentLead.zip),e.xp6(8),e.Q6J("currentBody",t.currentLead.notes)("leanToolbar",!0),e.xp6(7),e.hij(" ",t.currentLead._id?"Save Changes":"Create Lead"," ")}}let E=(()=>{class i{constructor(t,n,o,a,s,l){this._leadsService=t,this._sharedUtilsService=n,this._userService=o,this.route=a,this.router=s,this._userRolesService=l,this.ngUnsubscribe=new M.x,this.currentLead=null,this.userToLeadPassedIn=null,this.leadUpdated=new e.vpe,this.editCancelled=new e.vpe,this.states=[],this.currentUser=null,this.userSearch=null,this.currentLead
1Id="",this.directors=[],this.systemAdmins=[],this.initialized=!1,this.maskitoPhoneFormControl=new c.NI,this.phoneMask=Wo.ZP,this.zipMask=[],this.states=this._sharedUtilsService.stateAbbrList,this.zipMask=this._sharedUtilsService.zipMask,this.route.params.pipe((0,v.R)(this.ngUnsubscribe)).subscribe(u=>this.currentLeadId=u.id)}ngOnInit(){this.init()}init(){var t=this;return(0,f.Z)(function*(){t.currentUser=t._userService.getCurrentlyLoggedInUser(),!t.currentLead&&t.currentLeadId&&(t.currentLead=yield(0,d.lastValueFrom)(t._leadsService.get(t.currentLeadId))),t.currentLead||(t.currentLead=new Q.rR,t.currentLead.status="Future Opp",t.currentLead.notes="",t.currentUser?._id&&(t.currentLead.assignedTo=t.currentUser._id)),t.currentLead.assignedTo&&"object"==typeof t.currentLead.assignedTo&&(t.currentLead.assignedTo=t.currentLead.assignedTo._id),t._userService.listUsersByType("System Admin").pipe((0,v.R)(t.ngUnsubscribe)).subscribe(n=>t.systemAdmins=n||[]),t.initialized=!0})()}resetSearch(){const t=new Q.n5;t.userType="Director",this.userSearch=t}editorContentsChanged(t){this.currentLead.notes=t}save(){var t=this;return(0,f.Z)(function*(){let n=null;n=t.currentLead._id?yield(0,d.lastValueFrom)(t._leadsService.update(t.currentLead)):yield(0,d.lastValueFrom)(t._leadsService.create(t.currentLead)),t._sharedUtilsService.showNotification("Lead updated."),t.leadUpdated.next(null),t.router.navigate([t._userRolesService.crmPortalBase()+"/leads"])})()}cancel(){this.editCancelled.next(null),this.router.navigate([this._userRolesService.crmPortalBase()+"/leads"])}static{this.\u0275fac=function(n){return new(n||i)(e.Y36(O.C),e.Y36(b.n3),e.Y36(U.K),e.Y36(m.gz),e.Y36(m.F0),e.Y36(Z._))}}static{this.\u0275cmp=e.Xpm({type:i,selectors:[["lead-form"]],inputs:{currentLead:"currentLead",userToLeadPassedIn:"userToLeadPassedIn"},outputs:{leadUpdated:"leadUpdated",editCancelled:"editCancelled"},decls:1,vars:1,consts:[["class","lead-form-page",4,"ngIf"],[1,"lead-form-page"],[1,"lf-header"],["type","button","aria-label","Back",1,"back-btn",3,"click"],[1,"material-symbols-outlined"],[1,"lf-avatar"],["class","material-symbols-outlined",4,"ngIf"],["class","initials",4,"ngIf"],[1,"lf-header-main"],[1,"lf-title"],[4,"ngIf"],["class","lf-subtitle",4,"ngIf"],["class","lf-status-pill",3,"background",4,"ngIf"],["novalidate","",1,"lf-form",3,"ngSubmit"],[1,"lf-card"],[1,"lf-card-header"],[1,"lf-grid","two-col"],[1,"lf-field"],["type","text","placeholder","e.g. Bobby","name","first_name",3,"ngModel","ngModelChange"],["type","text","placeholder","e.g. Watson","name","last_name",3,"ngModel","ngModelChange"],[1,"lf-field","span-2"],["type","text","placeholder","e.g. Florida BASS Nation",3,"ngModel","ngModelOptions","ngModelChange"],[1,"lf-input-wrap"],[1,"material-symbols-outlined","input-icon"],["type","email","placeholder","[email protected]",3,"ngModel","ngModelOptions","ngModelChange"],["type","tel","placeholder","(555) 555-5555",3,"ngModel","ngModelOptions","ngModelChange"],["type","url","placeholder","https://",3,"ngModel","ngModelOptions","ngModelChange"],[1,"status-segmented"],["type","button","class","status-seg-btn",3,"active","--accent","click",4,"ngFor","ngForOf"],[1,"next-step-label"],[1,"lf-input-wrap","with-clear"],["type","date",3,"ngModel","ngModelOptions","ngModelChange"],["type","button","class","input-clear-btn","aria-label","Clear date",3,"click",4,"ngIf"],["type","text","placeholder","How did you find this lead?",3,"ngModel","ngModelOptions","ngModelChange"],[1,"material-symbols-outlined",2,"font-size","14px","vertical-align","middle","margin-right","4px"],[3,"ngModel","ngModelOptions","ngModelChange"],[3,"ngValue"],[3,"ngValue",4,"ngFor","ngForOf"],[1,"lf
1-grid","address-grid"],[1,"lf-field","street"],["type","text","placeholder","123 Main St",3,"ngModel","ngModelOptions","ngModelChange"],[1,"lf-field","city"],["type","text","placeholder","City",3,"ngModel","ngModelOptions","ngModelChange"],[1,"lf-field","state"],["type","text","placeholder","FL","maxlength","3",3,"ngModel","ngModelOptions","ngModelChange"],[1,"lf-field","zip"],["type","text","placeholder","33101","name","zip",3,"ngModel","ngModelChange"],[1,"notes-editor-wrap"],[3,"currentBody","leanToolbar","htmlEditorContentsChanged"],[1,"lf-actions"],["type","button",1,"btn","btn-ghost",3,"click"],["type","submit",1,"btn","btn-primary"],[1,"initials"],[1,"lf-subtitle"],[1,"lf-status-pill"],["type","button",1,"status-seg-btn",3,"click"],["type","button","aria-label","Clear date",1,"input-clear-btn",3,"click"]],template:function(n,o){1&n&&e.YNc(0,ci,128,50,"div",0),2&n&&e.Q6J("ngIf",o.initialized)},dependencies:[_.sg,_.O5,c._Y,c.YN,c.Kr,c.Fj,c.EJ,c.JJ,c.JL,c.nD,c.On,c.F,N.c,_.uU],styles:[".lead-form-page[_ngcontent-%COMP%]{padding:24px 24px 120px;max-width:920px;margin:0 auto}.lf-header[_ngcontent-%COMP%]{display:flex;align-items:center;gap:14px;margin-bottom:22px}.back-btn[_ngcontent-%COMP%]{background:#fff;border:1px solid #e5e7eb;border-radius:9px;padding:7px;cursor:pointer;display:flex;color:#4b5563;transition:all .15s ease}.back-btn[_ngcontent-%COMP%]:hover{background:#f9fafb}.back-btn[_ngcontent-%COMP%]   .material-symbols-outlined[_ngcontent-%COMP%]{font-size:22px}.lf-avatar[_ngcontent-%COMP%]{width:56px;height:56px;border-radius:14px;background:linear-gradient(135deg,#16181d 0%,#2b2f3a 100%);color:#fff;display:flex;align-items:center;justify-content:center;flex-shrink:0;box-shadow:0 4px 12px #00000040}.lf-avatar[_ngcontent-%COMP%]   .initials[_ngcontent-%COMP%]{font-size:1.15rem;font-weight:800;text-transform:uppercase;letter-spacing:.02em}.lf-avatar[_ngcontent-%COMP%]   .material-symbols-outlined[_ngcontent-%COMP%]{font-size:28px}.lf-header-main[_ngcontent-%COMP%]{flex:1;min-width:0}.lf-title[_ngcontent-%COMP%]{margin:0;font-size:1.45rem;font-weight:800;color:#1a1a2e;letter-spacing:-.02em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.lf-subtitle[_ngcontent-%COMP%]{margin:2px 0 0;font-size:.9rem;color:#6b7280;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.lf-status-pill[_ngcontent-%COMP%]{font-size:.78rem;font-weight:700;color:#fff;padding:6px 14px;border-radius:999px;letter-spacing:.02em;white-space:nowrap;flex-shrink:0;box-shadow:0 2px 8px #0000001a}.lf-form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:16px}.lf-card[_ngcontent-%COMP%]{background:#fff;border:1px solid #eef0f5;border-radius:14px;padding:22px 24px}.lf-card-header[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;margin-bottom:18px;padding-bottom:12px;border-bottom:1px solid #f3f4f6}.lf-card-header[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{margin:0;font-size:1rem;font-weight:700;color:#1a1a2e}.lf-card-header[_ngcontent-%COMP%]   .material-symbols-outlined[_ngcontent-%COMP%]{font-size:20px;color:#16181d}.lf-grid[_ngcontent-%COMP%]{display:grid;gap:14px}.lf-grid.two-col[_ngcontent-%COMP%]{grid-template-columns:1fr 1fr}.lf-grid.address-grid[_ngcontent-%COMP%]{grid-template-columns:2fr 1.4fr .6fr 1fr}.lf-grid[_ngcontent-%COMP%]   .span-2[_ngcontent-%COMP%]{grid-column:span 2}@media (max-width: 640px){.lf-grid.two-col[_ngcontent-%COMP%]{grid-template-columns:1fr}.lf-grid.two-col[_ngcontent-%COMP%]   .span-2[_ngcontent-%COMP%]{grid-column:span 1}.lf-grid.address-grid[_ngcontent-%COMP%]{grid-template-columns:1fr 1fr}}.lf-field[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:5px}.lf-field[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{font-size:.74rem;font-weight:700;color:#4b5563;text-transform:uppercase;letter-spacing:.04em}.lf-field[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{width:100%;padding:10px 14px;font-size:.92rem;font-family:inherit;border:1px solid #e5e7eb;border-radius:9px;background:#fff;color:#1f2937;outline:none;box-sizing:border-box;transition:border-color .15s ease,box-shadow .15s ease}.lf-field[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]::placeholder{color:#b0b8c4}.lf-field[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]:focus{border-color:#16181d;box-shadow:0 0 0 3px #0000001a}.lf-field[_ngcontent-%COMP%]   select[_ngcontent-%COMP%]{width:100%;padding:10px 38px 10px 14px;font-size:.92rem;font-family:inherit;border:1px solid #e5e7eb;border-radius:9px;background:#fff;color:#1f2937;outline:none;box-sizing:border-box;
1cursor:pointer;-webkit-appearance:none;appearance:none;background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b7280' d='M6 8L0 0h12z'/%3E%3C/svg%3E\");background-repeat:no-repeat;background-position:right 14px center;background-size:10px 7px;transition:border-color .15s ease,box-shadow .15s ease}.lf-field[_ngcontent-%COMP%]   select[_ngcontent-%COMP%]:focus{border-color:#16181d;box-shadow:0 0 0 3px #0000001a}.lf-input-wrap[_ngcontent-%COMP%]{position:relative}.lf-input-wrap[_ngcontent-%COMP%]   .input-icon[_ngcontent-%COMP%]{position:absolute;left:12px;top:50%;transform:translateY(-50%);font-size:18px;color:#9ca3af;pointer-events:none}.lf-input-wrap[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{padding-left:38px}.lf-input-wrap.with-clear[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{padding-right:36px}.input-clear-btn[_ngcontent-%COMP%]{position:absolute;right:6px;top:50%;transform:translateY(-50%);background:none;border:none;cursor:pointer;padding:5px;border-radius:6px;color:#9ca3af;display:flex;align-items:center;justify-content:center}.input-clear-btn[_ngcontent-%COMP%]:hover{background:#f3f4f6;color:#1f2937}.input-clear-btn[_ngcontent-%COMP%]   .material-symbols-outlined[_ngcontent-%COMP%]{font-size:16px}.status-segmented[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:18px}.status-seg-btn[_ngcontent-%COMP%]{--accent: #6b7280;padding:8px 16px;background:#fff;border:1.5px solid var(--accent);border-radius:999px;font-size:.84rem;font-weight:700;color:var(--accent);cursor:pointer;font-family:inherit;transition:all .15s ease;white-space:nowrap}.status-seg-btn[_ngcontent-%COMP%]:hover{background:rgba(0,0,0,.03);transform:translateY(-1px)}.status-seg-btn.active[_ngcontent-%COMP%]{background:var(--accent);color:#fff;box-shadow:0 2px 8px #0000001f}.next-step-label[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:5px;color:#d97706!important}.next-step-label[_ngcontent-%COMP%]   .material-symbols-outlined[_ngcontent-%COMP%]{font-size:14px}.notes-editor-wrap[_ngcontent-%COMP%]{border:1px solid #e5e7eb;border-radius:9px;overflow:hidden}.notes-editor-wrap[_ngcontent-%COMP%]     .ck.ck-editor__main>.ck-editor__editable{min-height:200px;padding:14px 16px;font-size:14px;line-height:1.6}.lf-actions[_ngcontent-%COMP%]{position:sticky;bottom:12px;display:flex;justify-content:flex-end;gap:10px;background:rgba(255,255,255,.92);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);padding:12px 14px;border:1px solid #eef0f5;border-radius:14px;box-shadow:0 6px 20px #0000000f;z-index:10}.btn[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:6px;padding:11px 20px;border-radius:10px;font-size:.9rem;font-weight:600;cursor:pointer;border:none;font-family:inherit;transition:all .15s ease}.btn[_ngcontent-%COMP%]   .material-symbols-outlined[_ngcontent-%COMP%]{font-size:18px}.btn.btn-primary[_ngcontent-%COMP%]{background:linear-gradient(135deg,#16181d 0%,#2b2f3a 100%);color:#fff;box-shadow:0 4px 14px #00000047}.btn.btn-primary[_ngcontent-%COMP%]:hover{transform:translateY(-1px);box-shadow:0 6px 18px #0000005c}.btn.btn-ghost[_ngcontent-%COMP%]{background:#fff;color:#4b5563;border:1px solid #e5e7eb}.btn.btn-ghost[_ngcontent-%COMP%]:hover{background:#f9fafb;border-color:#d1d5db}@media (max-width: 640px){.lead-form-page[_ngcontent-%COMP%]{padding:16px 12px 100px}.lf-header[_ngcontent-%COMP%]{flex-wrap:wrap}.lf-title[_ngcontent-%COMP%]{font-size:1.2rem}.lf-status-pill[_ngcontent-%COMP%]{order:3;margin-left:0}.lf-card[_ngcontent-%COMP%]{padding:18px 16px}}"]})}}return i})();const di=[{path:"",children:[{path:"",component:co},{path:"create",component:E},{path:"edit/:id",component:E},{path:":id",component:Vo}]}];let pi=(()=>{class i{static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275mod=e.oAB({type:i})}static{this.\u0275inj=e.cJS({imports:[m.Bz.forChild(di),m.Bz]})}}return i})();var gi=g(62924),_i=g(15656),ui=g(83192);let fi=(()=>{class i{static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275mod=e.oAB({type:i})}static{this.\u0275inj=e.cJS({imports:[_.ez,c.u5,_i.D,c.UX,gi.x,A.d,L.h,ui.X,pi]})}}return 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.