import{az as S,d as T,r as o,x as k,b as x,o as m,A as d,B as _,k as P,a as t,f as r,E as z,G as C,aA as I,Q as A,X as D,Y as E,Z as j,__tla as q}from"./index-92ad187a.js";import{_ as B,__tla as F}from"./ContentWrap.vue_vue_type_script_setup_true_lang-c7ede7df.js";import{_ as G,__tla as L}from"./index.vue_vue_type_script_setup_true_lang-6fbe4cc3.js";import{_ as O,__tla as Q}from"./DictTag.vue_vue_type_script_lang-96bcb962.js";import{E as R,__tla as X}from"./el-image-ee9e09ec.js";import{__tla as Y}from"./el-image-viewer-d472c5a2.js";import{D as Z,__tla as H}from"./dict-221f3e01.js";import{d as J,__tla as K}from"./formatTime-c7f253d6.js";import{u as M,__tla as V}from"./useMessage-d9788660.js";let f,W=Promise.all([(()=>{try{return q}catch{}})(),(()=>{try{return F}catch{}})(),(()=>{try{return L}catch{}})(),(()=>{try{return Q}catch{}})(),(()=>{try{return X}catch{}})(),(()=>{try{return Y}catch{}})(),(()=>{try{return H}catch{}})(),(()=>{try{return K}catch{}})(),(()=>{try{return V}catch{}})()]).then(async()=>{f=T({__name:"UserFavoriteList",props:{userId:{type:Number,required:!0}},setup(h){M(),A();const n=o(!0),p=o(0),c=o([]),s=k({pageNo:1,pageSize:10,name:null,createTime:[],userId:NaN});o();const u=async()=>{n.value=!0;try{const e=await(i=s,S.get({url:"/product/favorite/page",params:i}));c.value=e.list,p.value=e.total}finally{n.value=!1}var i},{userId:g}=h;return x(()=>{s.userId=g,u()}),(i,e)=>{const l=D,y=R,w=O,v=E,b=G,U=B,N=j;return m(),d(U,null,{default:_(()=>[P((m(),d(v,{data:t(c)},{default:_(()=>[r(l,{key:"id",align:"center",label:"\u5546\u54C1\u7F16\u53F7",width:"180",prop:"id"}),r(l,{label:"\u5546\u54C1\u56FE","min-width":"80"},{default:_(({row:a})=>[r(y,{src:a.picUrl,class:"h-30px w-30px",onClick:$=>i.imagePreview(a.picUrl)},null,8,["src","onClick"])]),_:1}),r(l,{"show-overflow-tooltip":!0,label:"\u5546\u54C1\u540D\u79F0","min-width":"300",prop:"name"}),r(l,{align:"center",label:"\u5546\u54C1\u552E\u4EF7","min-width":"90",prop:"price"},{default:_(({row:a})=>[z(C(t(I)(a.price))+"\u5143",1)]),_:1}),r(l,{align:"center",label:"\u9500\u91CF","min-width":"90",prop:"salesCount"}),r(l,{formatter:t(J),align:"center",label:"\u6536\u85CF\u65F6\u95F4",prop:"createTime",width:"180"},null,8,["formatter"]),r(l,{align:"center",label:"\u72B6\u6001","min-width":"80"},{default:_(a=>[r(w,{type:t(Z).PRODUCT_SPU_STATUS,value:a.row.status},null,8,["type","value"])]),_:1})]),_:1},8,["data"])),[[N,t(n)]]),r(b,{total:t(p),page:t(s).pageNo,"onUpdate:page":e[0]||(e[0]=a=>t(s).pageNo=a),limit:t(s).pageSize,"onUpdate:limit":e[1]||(e[1]=a=>t(s).pageSize=a),onPagination:u},null,8,["total","page","limit"])]),_:1})}}})});export{f as _,W as __tla};
