import{u as S}from"./countryInfo.Df1X6FZ-.js";import{D as V}from"./elementPlus.CqHltQSO.js";import{d as j,k as m,ai as i,o as r,M as _,O as e,U as n,u as l,a as t,T as c,R as B,c as Y}from"./vue.1RczIYhx.js";import{_ as z}from"./_plugin-vue_export-helper.DlAUqK2U.js";const M={class:"flex justify-center items-center h-full w-full text-2xl",style:{background:"var(--el-fill-color-light)"}},T={class:"flex flex-col justify-between"},U={class:"line-clamp-2 text-ellipsis whitespace-normal"},$={class:"mt-3"},A={class:"font-semibold"},O={class:"italic"},X={class:"font-semibold"},E={class:"italic"},K={class:"font-semibold"},R={class:"italic"},q={class:"font-semibold"},G={class:"italic"},H={class:"font-semibold"},J={class:"italic"},L={class:"font-semibold"},P={class:"italic"},Q={class:"font-semibold"},W={class:"italic"},Z={class:"flex"},tt={class:"flex items-center"},ot={key:2},st=j({__name:"TitleCard",props:{rowData:Object},setup(y){const x=y,{rowData:o}=x,p=S().endpoints.find(f=>f.code==o.country_code),v=p?p.endpoint:null,b=m(()=>`https://${v}/dp/${o.asin}`),u=m(()=>{if(o.ncx_count!=null&&o.order_count!=null&&o.order_count>0)return(o.ncx_count/o.order_count*100).toFixed(2)});return(f,s)=>{const k=i("icon-picture"),g=i("el-icon"),h=i("el-image"),a=i("el-col"),w=i("el-link"),d=i("el-row"),C=i("el-divider"),D=i("el-rate"),F=i("el-tooltip"),I=i("el-card");return r(),_(I,{class:"sticky border-none top-2 z-20"},{default:e(()=>[n(d,{gutter:20},{default:e(()=>[n(a,{span:2},{default:e(()=>[n(h,{src:`https://d1ge0kk1l5kms0.cloudfront.net/images/I/${l(o).img}.jpg`,class:"mr-5",fit:"fill",lazy:"",style:{"min-width":"120px",height:"120px"}},{error:e(()=>[t("div",M,[n(g,null,{default:e(()=>[n(k)]),_:1})])]),_:1},8,["src"])]),_:1}),n(a,{span:20},{default:e(()=>[t("div",T,[n(d,null,{default:e(()=>[n(a,{span:24},{default:e(()=>[n(w,{disabled:!l(o).product_name,href:l(b),underline:!1,style:{"font-size":"18px","justify-content":"left !important"},target:"_blank",type:"primary"},{default:e(()=>[t("span",U,c(l(o).product_name||"--"),1)]),_:1},8,["disabled","href"])]),_:1})]),_:1}),t("div",$,[n(d,null,{default:e(()=>[n(a,{span:6},{default:e(()=>[t("div",A,[s[1]||(s[1]=t("span",{style:{color:"#727478"}}," ASIN : ",-1)),t("span",O,c(l(o).asin||"-"),1)])]),_:1}),n(a,{span:6},{default:e(()=>[t("div",X,[s[2]||(s[2]=t("span",{style:{color:"#727478"}}," SKU : ",-1)),t("span",E,c(l(o).sku||"-"),1)])]),_:1})]),_:1}),n(C,{style:{"margin-top":"10px","margin-bottom":"8px"}}),n(d,{class:"d-flex align-items-center"},{default:e(()=>[n(a,{span:3},{default:e(()=>[t("div",K,[s[3]||(s[3]=t("span",{style:{color:"#727478"}}," 总订单数 : ",-1)),t("span",R,c(l(o).order_count||"-"),1)])]),_:1}),n(a,{span:3},{default:e(()=>[t("div",q,[s[4]||(s[4]=t("span",{style:{color:"#727478"}}," NCX订单 : ",-1)),t("span",G,c(l(o).ncx_count||"-"),1)])]),_:1}),n(a,{span:3},{default:e(()=>[t("div",H,[s[5]||(s[5]=t("span",{style:{color:"#727478"}}," NCX率 : ",-1)),t("span",J,c(l(u)?l(u)+"%":"-"),1)])]),_:1}),n(a,{span:3},{default:e(()=>[t("div",L,[s[6]||(s[6]=t("span",{style:{color:"#727478"}}," 退货率 : ",-1)),t("span",P,c((l(o).return_record_rate*100).toFixed(2)+"%"||"-"),1)])]),_:1}),n(a,{span:4},{default:e(()=>[t("div",Q,[s[7]||(s[7]=t("span",{style:{color:"#727478"}}," 最近更新 : ",-1)),t("span",W,c(l(V)(l(o).last_updated_date).format("YYYY-MM-DD")||"-"),1)])]),_:1}),n(a,{span:6},{default:e(()=>[t("div",Z,[l(o).all_score>0?(r(),_(F,{key:0,content:l(o).all_score,effect:"dark",placement:"top","show-after":"350"},{default:e(()=>[t("div",tt,[s[8]||(s[8]=t("div",{class:"font-semibold mr-1",style:{color:"#727478"}},"星级 :",-1)),l(o).all_score>0?(r(),_(D,{key:0,modelValue:l(o).all_score,"onUpdate:modelValue":s[0]||(s[0]=N=>l(o).all_score=N),colors:["#FF0000","#FF9900","#67C23A"],disabled:"","text-color":"#1e293b"},null,8,["modelValue"])):B("",!0)])]),_:1},8,["content"])):(r(),Y("div",ot,s[9]||(s[9]=[t("span",null,"-",-1)])))])]),_:1})]),_:1})])])]),_:1})]),_:1})]),_:1})}}}),ct=z(st,[["__scopeId","data-v-ca074464"]]);export{ct as default};
