You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
paopao-ce/web/dist/assets/User-f262d052.js

2 lines
12 KiB

import{_ as Re,a as He}from"./post-item.vue_vue_type_style_index_0_lang-a10065a5.js";import{_ as Ne}from"./post-skeleton-7039dc67.js";import{_ as Ve}from"./whisper-5fc7c61f.js";import{_ as je}from"./main-nav.vue_vue_type_style_index_0_lang-52b53177.js";import{d as ve,H as l,e as r,q as y,w as n,j as _,k as o,A as b,x as h,R as Ee,c as Ge,b as Ye,E as Je,r as Ke,f as g,Y as k,bf as m,y as ne,F as ue,u as ie,h as ce}from"./@vue-a481fc63.js";import{u as Qe}from"./vuex-44de225f.js";import{b as Xe}from"./vue-router-e5a2430e.js";import{D as Ze,_ as pe,E as ea,e as O,F as aa,G as sa,H as ta,I as la}from"./index-d9eb4c9e.js";import{R as oa,H as na,S as ua,b as ia,e as de,i as ca,T as ra,F as _a,a as va,j as re,o as pa,M as da,O as ma,k as fa,f as ga,g as ha,I as wa,G as ka}from"./naive-ui-d8de3dda.js";import{b as ya}from"./formatTime-4210fcd1.js";import{W as ba}from"./v3-infinite-loading-2c58ec2f.js";import{i as Pa,x as $a,y as _e,z as xa,u as Ta,D as za,G as Ua}from"./@vicons-1a3558c6.js";import"./content-218c067c.js";import"./paopao-video-player-2fe58954.js";import"./copy-to-clipboard-4ef7d3eb.js";import"./@babel-725317a4.js";import"./toggle-selection-93f4ad84.js";import"./vooks-6d99783e.js";import"./evtd-b614532e.js";import"./axios-4a70c6fc.js";/* empty css */import"./seemly-76b7b838.js";import"./vueuc-39372edb.js";import"./@css-render-7124a1a5.js";import"./vdirs-b0483831.js";import"./@juggle-41516555.js";import"./css-render-6a5c5852.js";import"./@emotion-8a8e73f6.js";import"./lodash-es-8412e618.js";import"./treemate-25c27bff.js";import"./async-validator-dee29e8b.js";import"./date-fns-975a2d8f.js";import"./moment-2ab8298d.js";const Fa={class:"whisper-wrap"},Ia={class:"whisper-line"},qa={class:"whisper-line send-wrap"},Ca=ve({__name:"whisper-add-friend",props:{show:{type:Boolean,default:!1},user:{}},emits:["success"],setup(ae,{emit:F}){const f=ae,p=l(""),P=l(!1),u=()=>{F("success")},v=()=>{P.value=!0,Ze({user_id:f.user.id,greetings:p.value}).then(a=>{window.$message.success("发送成功"),P.value=!1,p.value="",u()}).catch(a=>{P.value=!1})};return(a,c)=>{const T=oa,I=na,s=ua,q=ia,C=de,M=ca;return r(),y(M,{show:a.show,"onUpdate:show":u,class:"whisper-card",preset:"card",size:"small",title:"申请添加朋友","mask-closable":!1,bordered:!1,style:{width:"360px"}},{default:n(()=>[_("div",Fa,[o(s,{"show-icon":!1},{default:n(()=>[b(" 发送添加朋友申请给: "),o(I,{style:{"max-width":"100%"}},{default:n(()=>[o(T,{type:"success"},{default:n(()=>[b(h(a.user.nickname)+"@"+h(a.user.username),1)]),_:1})]),_:1})]),_:1}),_("div",Ia,[o(q,{type:"textarea",placeholder:"请输入真挚的问候语",autosize:{minRows:5,maxRows:10},value:p.value,"onUpdate:value":c[0]||(c[0]=S=>p.value=S),maxlength:"120","show-count":""},null,8,["value"])]),_("div",qa,[o(C,{strong:"",secondary:"",type:"primary",loading:P.value,onClick:v},{default:n(()=>[b(" 发送 ")]),_:1},8,["loading"])])])]),_:1},8,["show"])}}});const Ma=pe(Ca,[["__scopeId","data-v-60be56a2"]]),Sa={key:0,class:"profile-baseinfo"},Wa={class:"avatar"},La={class:"base-info"},Oa={class:"username"},Aa={class:"userinfo"},Da={class:"info-item"},Ba={class:"info-item"},Ra={class:"userinfo"},Ha={class:"info-item"},Na={class:"info-item"},Va={key:0,class:"user-opts"},ja={key:0,class:"skeleton-wrap"},Ea={key:1},Ga={key:0,class:"empty-wrap"},Ya={key:1},Ja={key:2},Ka={class:"load-more-wrap"},Qa={class:"load-more-spinner"},Xa=ve({__name:"User",setup(ae){const F=ra(),f=Qe(),p=Xe(),P="true".toLowerCase()==="true",u=l(!1),v=l(!1),a=Ee({id:0,avatar:"",username:"",nickname:"",is_admin:!1,is_friend:!0,is_following:!1,created_on:0,follows:0,followings:0,status:1}),c=l(!1),T=l(!1),I=l(!1),s=l([]),q=l([]),C=l([]),M=l([]),S=l([]),D=l([]),$=l(p.query.s||""),t=l(+p.query.p||1),z=l("post"),B=l(+p.query.p||1),R=l(1),H=l(1),N=l(1),V=l(1),d=l(20),i=l(0),j=l(0),E=l(0),G=l(0),Y=l(0),J=l(0),se=e=>{a.id=e.id,a.username=e.username,a.nickname=e.nickname,a.avatar=e.avatar,T.value=!0},me=()=>{v.value=!1,s.value=[],q.value=[],C.value=[],M.value=[],S.value=[],D.value=[],z.value="post",t.value=1,B.value=1,R.value=1