1import{f as j}from"./faUser.6b6d68d8.js";import _ from"./TmlObjectSummary.d3a99e53.js";import{_ as O,T as C,aZ as k}from"./index.474d7b13.js";import{N as n,D as s,W as c,U as o,a4 as l,a0 as d,Q as f,E as y,a2 as T,F as x}from"./vue.00f7c436.js";import"./TmlIcon.794a5e97.js";import"./sentry.09480738.js";const q={name:"TmlCustomerCard",components:{TmlObjectSummary:_,TmlAnchor:C},props:{customer:{type:Object,required:!1},id:{type:Number,required:!1}},data(){return{faUser:j.faUser,requestedCustomer:null}},computed:{description(){let t=[];this.customerObject.jobTitle&&t.push(this.customerObject.jobTitle);const m=this.customerObject.services.map(r=>r.name).join(" "),a=this.customerObject.industries.map(r=>r.name).join(" ");return t=t.concat(m).concat(a),t.join(" ")},customerObject(){return this.customer?this.customer:this.requestedCustomer}},mounted(){this.id&&k.fetch(this.id,["tags"]).then(t=>{this.requestedCustomer=t})}};function U(t,m,a,r,h,e){const u=n("tml-anchor"),b=n("tml-object-summary");return e.customerObject&&e.customerObject.id?(s(),c(b,{key:0,href:`/sales/leads/${e.customerObject.id}`,target:"_blank",title:e.customerObject.name,icon:h.faUser,description:e.description},{extra:o(()=>[e.customerObject.email?(s(),c(u,{key:0,class:"block",href:`mailto:${e.customerObject.email}`},{default:o(()=>[l(d(e.customerObject.email.toLowerCase()),1)]),_:1},8,["href"])):f("",!0),(s(!0),y(x,null,T(e.customerObject.phoneNumbers,(i,p)=>(s(),c(u,{key:p,class:"block",href:`tel:${i}`},{default:o(()=>[l(d(i),1)]),_:2},1032,["href"]))),128))]),_:1},8,["href","title","icon","description"])):f("",!0)}const D=O(q,[["render",U]]);export{D as default}; 2//# sourceMappingURL=TmlCustomerCard.a4c80afa.js.map
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.