1import{_ as w,d as r,o as l,c as u,e as t,f as o,h as c,p as i,A as e,m as y,n as d,x as C,ak as D,ax as I,ay as M,s as V,t as E}from"./index-uGWb9Yh4.js";const n=s=>(V("data-v-c04074a4"),s=s(),E(),s),j={class:"customer-detail"},z={class:"customer-header"},L={class:"customer-info"},O={class:"customer-name"},U={class:"customer-company"},q={class:"customer-email"},F={class:"customer-tags"},G={class:"customer-stats"},H={class:"stat-item"},J={class:"stat-value"},K=n(()=>t("div",{class:"stat-label"},"é®ä»¶æ»æ°",-1)),P={class:"stat-item"},Q={class:"stat-value"},R=n(()=>t("div",{class:"stat-label"},"æªè¯»é®ä»¶",-1)),W={class:"stat-item"},X={class:"stat-value"},Y=n(()=>t("div",{class:"stat-label"},"è系次æ°",-1)),Z={class:"customer-details"},$={class:"detail-section"},tt=n(()=>t("h3",null,"åºæ¬ä¿¡æ¯",-1)),st={class:"detail-item"},et=n(()=>t("span",{class:"detail-label"},"æè¿èç³»ï¼",-1)),at={class:"detail-value"},ot={key:0,class:"detail-item"},ct=n(()=>t("span",{class:"detail-label"},"馿¬¡èç³»ï¼",-1)),nt={class:"detail-value"},lt={key:1,class:"detail-item"},it=n(()=>t("span",{class:"detail-label"},"çµè¯ï¼",-1)),dt={class:"detail-value"},ut={key:2,class:"detail-item"},rt=n(()=>t("span",{class:"detail-label"},"å°åï¼",-1)),mt={class:"detail-value"},_t={key:0,class:"detail-section"},ht=n(()=>t("h3",null,"夿³¨",-1)),vt={class:"customer-notes"},ft={class:"customer-actions"},yt={__name:"CustomerDetail",props:{customer:{type:Object,default:()=>({})},mailCount:{type:Number,default:0}},emits:["compose","edit","add-note"],setup(s,{emit:k}){const m=s,_=k,p=a=>a?a.charAt(0).toUpperCase():"",x=a=>({S级:"danger",A级:"warning",B级:"primary",C级:"info",D级:"success",E级:"",æ½å¨å®¢æ·:"info",æå客æ·:"primary"})[a]||"",N=a=>({æ´»è·:"success",ä¸è¬:"info",æ²é»:"warning",æµå¤±:"danger"})[a]||"info",b=a=>a?(typeof a=="string"&&a.includes("-"),a):"仿ªèç³»",S=()=>{_("compose",m.customer)},A=()=>{_("edit",m.customer)},B=()=>{_("add-note",m.customer)};return(a,g)=>{const T=r("el-avatar"),h=r("el-tag"),v=r("el-icon"),f=r("el-button");return l(),u("div",j,[t("div",z,[o(T,{size:60,src:s.customer.avatar,class:"customer-avatar"},{default:c(()=>[i(e(p(s.customer.name)),1)]),_:1},8,["src"]),t("div",L,[t("h2",O,e(s.customer.name),1),t("div",U,e(s.customer.company||"æ å
¬å¸ä¿¡æ¯"),1),t("div",q,e(s.customer.email),1)])]),t("div",F,[s.customer.level?(l(),y(h,{key:0,type:x(s.customer.level)},{default:c(()=>[i(e(s.customer.level),1)]),_:1},8,["type"])):d("",!0),s.customer.group?(l(),y(h,{key:1,type:"info"},{default:c(()=>[i(e(s.customer.group),1)]),_:1})):d("",!0),s.customer.status?(l(),y(h,{key:2,type:N(s.customer.status)},{default:c(()=>[i(e(s.customer.status),1)]),_:1},8,["type"])):d("",!0)]),t("div",G,[t("div",H,[t("div",J,e(s.customer.mailCount||0),1),K]),t("div",P,[t("div",Q,e(s.customer.unreadCount||0),1),R]),t("div",W,[t("div",X,e(s.customer.contactCount||0),1),Y])]),t("div",Z,[t("div",$,[tt,t("div",st,[et,t("span",at,e(b(s.customer.lastContact)),1)]),s.customer.firstContact?(l(),u("div",ot,[ct,t("span",nt,e(b(s.customer.firstContact)),1)])):d("",!0),s.customer.phone?(l(),u("div",lt,[it,t("span",dt,e(s.customer.phone),1)])):d("",!0),s.customer.address?(l(),u("div",ut,[rt,t("span",mt,e(s.customer.address),1)])):d("",!0)]),s.customer.notes?(l(),u("div",_t,[ht,t("div",vt,e(s.customer.notes),1)])):d("",!0)]),t("div",ft,[o(f,{type:"primary",onClick:S,class:"action-button"},{default:c(()=>[o(v,null,{default:c(()=>[o(C(D))]),_:1}),i(" åä¿¡ ")]),_:1}),o(f,{onClick:A,class:"action-button"},{default:c(()=>[o(v,null,{default:c(()=>[o(C(I))]),_:1}),i(" ç¼è¾ ")]),_:1}),o(f,{onClick:B,class:"action-button"},{default:c(()=>[o(v,null,{default:c(()=>[o(C(M))]),_:1}),i(" æ·»å 夿³¨ ")]),_:1})])])}}},bt=w(yt,[["__scopeId","data-v-c04074a4"]]);export{bt as default};
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.