var e=Object.defineProperty,t=Object.defineProperties,s=Object.getOwnPropertyDescriptors,o=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,l=Object.prototype.propertyIsEnumerable,a=(t,s,o)=>s in t?e(t,s,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[s]=o;import{a as i,H as n,_ as c}from"./index-Cc7iUtpa.js";import{d as _,r as u,c as d,o as m,H as p,ap as v,a0 as w,a3 as f,aa as h,B as g,f as j,ae as C,a1 as U}from"./vendor-C4fU48ba.js";import x from"./Works-CDaerWCd.js";import"./antd-31u6eFi9.js";import"./utils-uTUGmQQn.js";import"./fullScreenImg-B91X_J11.js";import"./generalMenu-Da2cJlLP.js";import"./Falls-DKknh-Eu.js";import"./index-BV-v-R7R.js";import"./ScrollTrigger-B-XKz97K.js";import"./null_img-B4i6ctGq.js";const F=_({components:{Works:x},setup(){v();const e=i();let c=u({userId:d(()=>e.state.UserHabit.userDetail.userId),userContent:{}});return m(()=>{setTimeout(()=>{(e=>{let t={id:e};n.axiosGet(n.httpUrls.personalHomepage,{params:t}).then(e=>{e&&(c.userContent=e)})})(c.userId)},2e3)}),_=((e,t)=>{for(var s in t||(t={}))r.call(t,s)&&a(e,s,t[s]);if(o)for(var s of o(t))l.call(t,s)&&a(e,s,t[s]);return e})({},p(c)),t(_,s({setFollow:e=>{let t=n.httpUrls.porfolioFollow;1==e.isFollow&&(t=n.httpUrls.porfolioCancelFollow),n.axiosGet(t,{params:{followeeId:c.userId}}).then(t=>{1==e.isFollow?e.isFollow=0:e.isFollow=1})}}));var _},data:()=>({})}),D={class:"otherUsers"},b={class:"otherUsers_userDetail"},k={class:"otherUsers_userDetail_img"},I=["src"],y={class:"otherUsers_userDetail_center"},O={class:"otherUsers_userDetail_center_name modal_title_text"},$={class:"otherUsers_userDetail_center_data"},S={class:"userDetail_center_data_item modal_title_text"},P={class:"modal_title_text_intro"},H={class:"userDetail_center_data_item modal_title_text"},W={class:"modal_title_text_intro"},G={class:"userDetail_center_data_item modal_title_text"},T={class:"modal_title_text_intro"},B={class:"otherUser_works"},E={class:"otherUser_works_title modal_title_text"};const M=c(F,[["render",function(e,t,s,o,r,l){var a;const i=C("Works");return U(),w("div",D,[t[3]||(t[3]=f("div",{class:"otherUsers_page_titleImg"},null,-1)),f("div",b,[f("div",k,[f("img",{src:e.userContent.avatar,alt:""},null,8,I)]),f("div",y,[f("div",O,[f("div",null,h(e.userContent.userName),1),0==(null==(a=e.userContent)?void 0:a.isFollow)?(U(),w("div",{key:0,onClick:t[0]||(t[0]=g(t=>e.setFollow(e.userContent),["stop"])),class:"userDetail_center_name_left"},h(e.$t("newScaleImage.Follow")),1)):(U(),w("div",{key:1,onClick:t[1]||(t[1]=g(t=>e.setFollow(e.userContent),["stop"])),class:"userDetail_center_name_left"},h(e.$t("newScaleImage.Unfollow")),1))]),f("div",$,[f("div",S,[f("div",null,h(e.userContent.portfolioCount),1),f("span",P,h(e.$t("account.works")),1)]),f("div",H,[f("div",null,h(e.userContent.followerCount),1),f("span",W,h(e.$t("account.Fans")),1)]),f("div",G,[f("div",null,h(e.userContent.followeeCount),1),f("span",T,h(e.$t("account.Follow")),1)])]),t[2]||(t[2]=f("div",{class:"otherUsers_userDetail_center_signature"},[f("div",{class:"modal_title_text"})],-1))])]),f("div",B,[f("div",E,[f("div",null,h(e.$t("account.hisWorks")),1)]),j(i,{isScroll:!1,otherUsers:!0})])])}],["__scopeId","data-v-097ca76f"]]);export{M as default};
