1import{_ as y}from"./C-lSUrF7.js";import{_ as C}from"./CXZw4iP0.js";import{P as p,o as i,c as r,b as o,w as a,a as t,t as n,K as k,al as B,V as D,H as N,L as q,q as I,d as c}from"./HrqejFgF.js";import{_ as V}from"./DLnh28i9.js";import{u as j}from"./BzOC34T7.js";import{a as S,_ as $}from"./D17ZKmN7.js";import{_ as A,a as L}from"./Dhc2CnjD.js";import{_ as T}from"./D2cEiUsw.js";const z=p("/images/character/delete.webp"),E=p("/images/setting/unsubscribe.webp"),H={class:"w-full rounded-[8px] overflow-hidden bg-[#1D1928] border-[1px] border-[#696969]"},K={class:"w-full pt-[140%] relative rounded-[8px] overflow-hidden"},M={class:"absolute top-0 left-0 w-full h-full object-cover"},O={class:"absolute top-[10px] right-[10px] flex gap-[8px] px-[8px] py-[2px] h-[21px] rounded-[11px] bg-[#161822e0] items-center z-20"},P={class:"text-[12px] leading-[18px] text-white pr-[5px]"},R={class:"absolute bottom-0 flex flex-col justify-end left-0 w-full h-[171px] rounded-tl-none rounded-br-[8px] rounded-tr-none rounded-bl-[8px] bg-[linear-gradient(0deg,_#260d21_0%,_#0d0c1700_100%)] text-white p-[10px]"},U={class:"flex w-full gap-[12px] flex-nowrap items-center justify-between"},F={class:"max-w-[calc(100%-13px)] font-bold text-[14px] leading-[20px] sm:text-[24px] sm:leading-[35px] truncate"},G={key:0,src:z,class:"h-[3px] w-[13px]",alt:""},J={class:"text-[10px] sm:mt-[13px] mt-[5px] leading-[15px] sm:text-[12px] sm:leading-[18px]"},Q={class:"text-sm"},W={class:"text-sm"},X={class:"mb-[10px] text-[10px] sm:mt-[5px] mt-[2px] leading-[15px] sm:text-[12px] sm:leading-[18px] overflow-hidden text-ellipsis whitespace-normal line-clamp-2"},lt={__name:"CharacterCard",props:{item:{type:Object,default:()=>({})},isShowDelete:{type:Boolean,default:!1}},emits:["update"],setup(s,{emit:m}){const d=j(),x=m;async function _(l){await d.deleteCharacterById({characterId:l.characterId})&&x("update")}return(l,e)=>{const u=y,f=S,h=$,w=A,g=T,b=C,v=L;return i(),r("div",H,[o(b,{to:`/chat/${s.item.characterId}`,reload:""},{default:a(()=>[t("div",K,[t("div",M,[t("div",O,[e[2]||(e[2]=t("img",{src:V,alt:"ai-girl",class:"w-[12px] h-[12px] rounded-[50]"},null,-1)),t("span",P,n(k(B)(s.item.msgCount)),1)]),o(u,{src:s.item.characterThumb},null,8,["src"]),t("div",R,[t("div",U,[t("h3",F,n(s.item.characterName),1),t("div",{class:"py-[5px] w-[13px] min-w-[13px]",onClick:e[1]||(e[1]=D(()=>{},["prevent"]))},[s.isShowDelete?(i(),r("img",G)):N("",!0),o(g,null,{default:a(()=>[o(w,{class:"bg-[#303030] text-white min-w-[100%]"},{default:a(()=>[q((i(),I(h,{clickable:"",onClick:e[0]||(e[0]=Y=>_(s.item)),class:"gap-[8px] min-h-[21px] items-center"},{default:a(()=>[e[4]||(e[4]=t("img",{src:E,class:"h-[13px] w-[13px]",alt:""},null,-1)),o(f,null,{default:a(()=>e[3]||(e[3]=[c("Delete")])),_:1})]),_:1})),[[v]])]),_:1})]),_:1})])]),t("div",J,[t("span",Q,n(s.item.age),1),e[5]||(e[5]=c(" Â Â ")),t("span",W,n(s.item.relationship),1)]),t("div",X,n(s.item.introduction)+".",1)])])])]),_:1},8,["to"])])}}};export{lt as _,E as a};
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.