/*!
 *  build: Vue  Admin Plus
 *  copyright: vue-admin-beautiful.com
 *  time: 2024-03-07 17:07:58
 */
"use strict";(self["webpackChunkadmin_plus"]=self["webpackChunkadmin_plus"]||[]).push([[8257,3754],{15904:function(t,a,e){e.d(a,{l:function(){return u},x:function(){return o}});var n=e(20235),i=e(96486),r=e.n(i);function o(t){const a=r().pick(t,["tid","fid","pid","authorid","avatar","author","subject","message","dateline"]);return a.author_route=(0,n.gx)(a.authorid),a}function u(t,a){return t.map((t=>{const e=r().pick(t,["tid","fid","pid","favid","authorid","authoravatar","avatar","author","subject","coverpath","attachmentPic","replies"]);e.link=(0,n.OO)(t.tid),e.image_id=t.attachmentPic.length>0?t.attachmentPic[0].aid:0,e.images=t.attachmentPic.map((t=>t.img)),e.author_route=(0,n.gx)(t.authorid);const i=parseInt(t.authorid)!==a;return e.like={can:i&&0==t.threadHasRecommend,number:parseInt(t.recommend_add),liked:!!t.threadHasRecommend},e}))}},95481:function(t,a,e){e.r(a),e.d(a,{default:function(){return w}});var n=e(4350),i=(e(3241),e(91103),e(76128)),r=(e(74828),e(73632)),o=(e(74965),e(22040)),u=(e(99426),e(49676)),s=(e(73204),e(66252)),c=e(2262),p=e(72181),d=e(53580),l=e(15904),g=e(15790),m=e(22201);const h={class:"share-container"},f={key:1};var y={__name:"posts_list",setup(t){const a=(0,g.L)(),e=(0,m.yj)(),y=(0,c.qj)({topics:[],queryForm:{page:1,uid:e.params.id},pagination:{pageSize:1,total:1},loading:!1}),{topics:v,queryForm:_,pagination:w,loading:k}=(0,c.BK)(y);async function S(){try{y.loading=!0;const{body:{list:t,page_perpage:e,page_allcount:n}}=await(0,d.wR)(y.queryForm),i=(0,l.l)(t,a.getUserId);y.topics=i,y.pagination.pageSize=parseInt(e),y.pagination.total=parseInt(n)}catch(t){console.log(t)}finally{y.loading=!1}}function U(t){y.queryForm.page=t,S()}return(0,s.bv)((()=>{S()})),(t,a)=>{const e=(0,s.up)("masonry-wall"),d=u.R,l=o.Dv,g=r.dq,m=i.GT,y=n.t;return(0,s.wy)(((0,s.wg)(),(0,s.iD)("div",h,[(0,c.SU)(v).length>0?((0,s.wg)(),(0,s.j4)(g,{key:0,gutter:20},{default:(0,s.w5)((()=>[(0,s.Wm)(l,{span:24},{default:(0,s.w5)((()=>[(0,s.Wm)(e,{items:(0,c.SU)(v),col:"7",gap:16,"column-width":230,"key-mapper":t=>t.tid},{default:(0,s.w5)((({item:t})=>[(0,s.Wm)((0,c.SU)(p["default"]),{item:t},null,8,["item"])])),_:1},8,["items","key-mapper"]),(0,s.Wm)(d,{"current-page":(0,c.SU)(_).page,"onUpdate:currentPage":a[0]||(a[0]=t=>(0,c.SU)(_).page=t),layout:"prev, pager, next","page-size":(0,c.SU)(w).pageSize,total:(0,c.SU)(w).total,onCurrentChange:U},null,8,["current-page","page-size","total"])])),_:1})])),_:1})):((0,s.wg)(),(0,s.iD)("div",f,[(0,s.Wm)(m,{class:"vab-data-empty",description:"你还没有分享"})]))])),[[y,(0,c.SU)(k)]])}}};function v(t){t.__source="src/views/setting/personalCenter/components/posts_list.vue"}"function"===typeof v&&v(y);const _=y;var w=_}}]);