import{h as x}from"./useCopyText.pVj3jbkF.js";import{V as y}from"./index.DhA83F-e.js";import{w as b,t as k}from"./elementPlus.CqHltQSO.js";import{d as v,ai as l,o as w,M as C,O as o,a as t,U as s,u as e,T as c}from"./vue.1RczIYhx.js";const j={class:"flex"},S={class:"flex justify-center items-center h-full w-full text-2xl",style:{background:"var(--el-fill-color-light)"}},V={class:"flex flex-col justify-between"},z={class:"line-clamp-2 text-ellipsis whitespace-normal"},B={class:"flex items-center"},D={class:"font-semibold italic"},U=v({__name:"TitleCard",props:{img:String,url:String,title:String,asin:String},setup(r){const d=r,{img:_,url:p,title:i,asin:n}=d;return(N,a)=>{const m=l("el-icon"),f=l("el-image"),u=l("el-link"),g=l("el-button"),h=l("el-card");return w(),C(h,{"body-class":"flex justify-between items-center gap-5",class:"border-none sticky top-5 z-10"},{default:o(()=>[t("div",j,[s(f,{src:`https://d1ge0kk1l5kms0.cloudfront.net/images/I/${e(_)}.jpg`,class:"mr-5",fit:"fill",lazy:"",style:{"min-width":"78px",height:"78px"}},{error:o(()=>[t("div",S,[s(m,null,{default:o(()=>[s(e(b))]),_:1})])]),_:1},8,["src"]),t("div",V,[s(u,{href:e(p),underline:!1,target:"_blank",style:{"font-size":"18px","justify-content":"left !important"},disabled:!e(i),type:"primary"},{default:o(()=>[t("span",z,c(e(i)||"--"),1)]),_:1},8,["href","disabled"]),t("div",B,[t("div",D,c(e(n)),1),s(y),s(g,{icon:e(k),link:"",class:"ml-1 cursor-pointer",disabled:!e(n),onClick:a[0]||(a[0]=T=>e(x)(e(n)||""))},null,8,["icon","disabled"])])])])]),_:1})}}});export{U as _};
