PageSourceSearch

https://m.wingu.se/packs/accounts-5t7gWyVC.js

js wingu.se collected 2026-09-29 15:09:59 UTC 8,002 bytes, 2 lines download raw bytes

1import{o as e}from"./rolldown-runtime-C0FnF6B9.js";import{y as t}from"./initial_state-DnZ5UeDQ.js";import{n}from"./router-DyLRbCnX.js";import{t as r}from"./debounce-CXuT-gkt.js";import{l as i,t as a}from"./api-CGawW2vu.js";import{C as o,S as s,_ as c,a as l,c as u,g as ee,h as d,i as f,l as p,m,n as h,o as g,p as _,r as v,s as y,t as b,u as x,v as te}from"./accounts_typed-AgBHJ2f3.js";var ne=e(r()),re=(e,{delay:t=100})=>{let n=[],r,i=(0,ne.default)(()=>{let t=n;n=[],e(r,...t)},t);return(e,...t)=>{r=e,n.push(...t),i()}},ie=`ACCOUNT_FETCH_REQUEST`,ae=`ACCOUNT_FETCH_SUCCESS`,oe=`ACCOUNT_FETCH_FAIL`,se=`ACCOUNT_LOOKUP_REQUEST`,ce=`ACCOUNT_LOOKUP_SUCCESS`,S=`ACCOUNT_LOOKUP_FAIL`,le=`ACCOUNT_BLOCK_REQUEST`,C=`ACCOUNT_BLOCK_FAIL`,w=`ACCOUNT_UNBLOCK_REQUEST`,T=`ACCOUNT_UNBLOCK_FAIL`,E=`ACCOUNT_MUTE_REQUEST`,D=`ACCOUNT_MUTE_FAIL`,O=`ACCOUNT_UNMUTE_REQUEST`,k=`ACCOUNT_UNMUTE_FAIL`,A=`ACCOUNT_PIN_REQUEST`,j=`ACCOUNT_PIN_FAIL`,M=`ACCOUNT_UNPIN_REQUEST`,N=`ACCOUNT_UNPIN_FAIL`,P=`FOLLOWERS_FETCH_REQUEST`,F=`FOLLOWERS_FETCH_SUCCESS`,I=`FOLLOWERS_FETCH_FAIL`,L=`FOLLOWERS_EXPAND_REQUEST`,R=`FOLLOWERS_EXPAND_SUCCESS`,z=`FOLLOWERS_EXPAND_FAIL`,B=`FOLLOWING_FETCH_REQUEST`,V=`FOLLOWING_FETCH_SUCCESS`,H=`FOLLOWING_FETCH_FAIL`,U=`FOLLOWING_EXPAND_REQUEST`,W=`FOLLOWING_EXPAND_SUCCESS`,G=`FOLLOWING_EXPAND_FAIL`,ue=`RELATIONSHIPS_FETCH_REQUEST`,de=`RELATIONSHIPS_FETCH_FAIL`,K=`FOLLOW_REQUESTS_FETCH_REQUEST`,q=`FOLLOW_REQUESTS_FETCH_SUCCESS`,J=`FOLLOW_REQUESTS_FETCH_FAIL`,Y=`FOLLOW_REQUESTS_EXPAND_REQUEST`,X=`FOLLOW_REQUESTS_EXPAND_SUCCESS`,Z=`FOLLOW_REQUESTS_EXPAND_FAIL`,fe=`FOLLOW_REQUEST_AUTHORIZE_REQUEST`,pe=`FOLLOW_REQUEST_AUTHORIZE_FAIL`,me=`FOLLOW_REQUEST_REJECT_REQUEST`,he=`FOLLOW_REQUEST_REJECT_FAIL`;function ge(e){return t=>{t(Q([e])),t(xe(e)),a().get(`/api/v1/accounts/${e}`).then(e=>{t(s(e.data)),t(Se())}).catch(n=>{t(Ce(e,n))})}}var _e=e=>t=>{t(ve(e)),a().get(`/api/v1/accounts/lookup`,{params:{acct:e}}).then(e=>{t(Q([e.data.id])),t(s(e.data)),t(ye())}).catch(n=>{t(be(e,n))})},ve=e=>({type:se,acct:e}),ye=()=>({type:ce}),be=(e,t)=>({type:S,acct:e,error:t,skipAlert:!0});function xe(e){return{type:ie,id:e}}function Se(){return{type:ae}}function Ce(e,t){return{type:oe,id:e,error:t,skipAlert:!0}}function we(e,t={reblogs:!0}){return(n,r)=>{let i=r().getIn([`relationships`,e]),o=i?.following||i?.requested,s=r().getIn([`accounts`,e,`locked`],!1);n(g({id:e,locked:s})),a().post(`/api/v1/accounts/${e}/follow`,t).then(e=>{n(y({relationship:e.data,alreadyFollowing:o}))}).catch(t=>{n(l({id:e,error:t,locked:s}))})}}function Te(e){return(t,n)=>{t(d(e)),a().post(`/api/v1/accounts/${e}/unfollow`).then(e=>{t(ee({relationship:e.data,statuses:n().get(`statuses`)}))}).catch(n=>{t(m({id:e,error:n}))})}}function Ee(e){return(t,n)=>{t(Oe(e)),a().post(`/api/v1/accounts/${e}/block`).then(e=>{t(h({relationship:e.data,statuses:n().get(`statuses`)}))}).catch(n=>{t(ke({id:e,error:n}))})}}function De(e){return t=>{t(Ae(e)),a().post(`/api/v1/accounts/${e}/unblock`).then(e=>{t(_({relationship:e.data}))}).catch(n=>{t(je({id:e,error:n}))})}}function Oe(e){return{type:le,id:e}}function ke(e){return{type:C,error:e}}function Ae(e){return{type:w,id:e}}function je(e){return{type:T,error:e}}function Me(e,t,n=0){return(r,i)=>{r(Pe(e)),a().post(`/api/v1/accounts/${e}/mute`,{notifications:t,duration:n}).then(e=>{r(u({relationship:e.data,statuses:i().get(`statuses`)}))}).catch(t=>{r(Fe({id:e,error:t}))})}}function Ne(e){return t=>{t(Ie(e)),a().post(`/api/v1/accounts/${e}/unmute`).then(e=>{t(c({relationship:e.data}))}).catch(n=>{t(Le({id:e,error:n}))})}}function Pe(e){return{type:E,id:e}}function Fe(e){return{type:D,error:e}}function Ie(e){return{type:O,id:e}}function Le(e){return{type:k,error:e}}function Re(e){return t=>{t(ze(e)),a().get(`/api/v1/accounts/${e}/followers`).then(n=>{let r=i(n).refs.find(e=>e.rel===`next`);t(o(n.data)),t(Be(e,n.data,r?r.uri:null)),t(Q(n.data.map(e=>e.id)))}).catch(n=>{t(Ve(e,n))})}}function ze(e){return{type:P,id:e}}function Be(e,t,n){return{type:F,id:e,accounts:t,next:n}}function Ve(e,t){return{type:I,id:e,error:t,skipNotFound:!0}}function He(e){return(t,n)=>{let r=n().getIn([`user_lists`,`followers`,e,`next`]);r!==null&&(t(Ue(e)),a().get(r).then(n=>{let r=i(n).refs.find(e=>e.rel===`next`);t(o(n.data)),t(We(e,n.data,r?r.uri:null)),t(Q(n.data.map(e=>e.id)))}).catch(n=>{t(Ge(e,n))}))}}function Ue(e){return{type:L,id:e}}function We(e,t,n){return{type:R,id:e,accounts:t,next:n}}function Ge(e,t){return{type:z,id:e,error:t}}function Ke(e){return t=>{t(qe(e)),a().get(`/api/v1/accounts/${e}/following`).then(n=>{let r=i(n).refs.find(e=>e.rel===`next`);t(o(n.data)),t(Je(e,n.data,r?r.uri:null)),t(Q(n.data.map(e=>e.id)))}).catch(n=>{t(Ye(e,n))})}}function qe(e){return{type:B,id:e}}function Je(e,t,n){return{type:V,id:e,accounts:t,next:n}}function Ye(e,t){return{type:H,id:e,error:t,skipNotFound:!0}}function Xe(e){return(t,n)=>{let r=n().getIn([`user_lists`,`following`,e,`next`]);r!==null&&(t(Ze(e)),a().get(r).then(n=>{let r=i(n).refs.find(e=>e.rel===`next`);t(o(n.data)),t(Qe(e,n.data,r?r.uri:null)),t(Q(n.data.map(e=>e.id)))}).catch(n=>{t($e(e,n))}))}}function Ze(e){return{type:U,id:e}}function Qe(e,t,n){return{type:W,id:e,accounts:t,next:n}}function $e(e,t){return{type:G,id:e,error:t}}var et=re((e,...t)=>{t.length!==0&&(e(tt(t)),a().get(`/api/v1/accounts/relationships?with_
1suspended=true&${t.map(e=>`id[]=${e}`).join(`&`)}`).then(t=>{e(f({relationships:t.data}))}).catch(t=>{e(nt(t))}))},{delay:500});function Q(e){return(t,n)=>{let r=n(),i=r.get(`relationships`),a=e.filter(e=>i.get(e,null)===null);!r.getIn([`meta`,`me`])||a.length===0||et(t,...a)}}function tt(e){return{type:ue,ids:e,skipLoading:!0}}function nt(e){return{type:de,error:e,skipLoading:!0,skipNotFound:!0}}function rt(){return e=>{e(it()),a().get(`/api/v1/follow_requests`).then(t=>{let n=i(t).refs.find(e=>e.rel===`next`);e(o(t.data)),e(at(t.data,n?n.uri:null))}).catch(t=>e(ot(t)))}}function it(){return{type:K}}function at(e,t){return{type:q,accounts:e,next:t}}function ot(e){return{type:J,error:e}}function st(){return(e,t)=>{let n=t().getIn([`user_lists`,`follow_requests`,`next`]);n!==null&&(e(ct()),a().get(n).then(t=>{let n=i(t).refs.find(e=>e.rel===`next`);e(o(t.data)),e(lt(t.data,n?n.uri:null))}).catch(t=>e(ut(t))))}}function ct(){return{type:Y}}function lt(e,t){return{type:X,accounts:e,next:t}}function ut(e){return{type:Z,error:e}}function dt(e){return t=>{t(ft(e)),a().post(`/api/v1/follow_requests/${e}/authorize`).then(()=>t(b({id:e}))).catch(n=>t($(e,n)))}}function ft(e){return{type:fe,id:e}}function $(e,t){return{type:pe,id:e,error:t}}function pt(e){return t=>{t(mt(e)),a().post(`/api/v1/follow_requests/${e}/reject`).then(()=>t(x({id:e}))).catch(n=>t(ht(e,n)))}}function mt(e){return{type:me,id:e}}function ht(e,t){return{type:he,id:e,error:t}}function gt(e){return n=>{n(vt(e)),a().post(`/api/v1/accounts/${e}/pin`).then(e=>{n(p({relationship:e.data})),n(v({accountId:t}))}).catch(e=>{n(yt(e))})}}function _t(e){return n=>{n(bt(e)),a().post(`/api/v1/accounts/${e}/unpin`).then(e=>{n(te({relationship:e.data})),n(v({accountId:t}))}).catch(e=>{n(xt(e))})}}function vt(e){return{type:A,id:e}}function yt(e){return{type:j,error:e}}function bt(e){return{type:M,id:e}}function xt(e){return{type:N,error:e}}var St=({displayName:e,note:t,avatar:n,header:r,discoverable:i,indexable:o})=>c=>{let l=new FormData;return l.append(`display_name`,e),l.append(`note`,t),n&&l.append(`avatar`,n),r&&l.append(`header`,r),l.append(`discoverable`,i),l.append(`indexable`,o),a().patch(`/api/v1/accounts/update_credentials`,l).then(e=>{c(s(e.data))})},Ct=e=>(t,r)=>{let i=r().accounts.getIn([e,`acct`]);i&&n.push(`/@${i}`)};export{we as A,St as B,He as C,Re as D,rt as E,pt as F,De as I,Te as L,Me as M,Ct as N,Ke as O,gt as P,Ne as R,st as S,ge as T,J as _,I as a,dt as b,G as c,H as d,B as f,X as g,Y as h,R as i,_e as j,Q as k,U as l,Z as m,z as n,P as o,V as p,L as r,F as s,S as t,W as u,K as v,Xe as w,Ee as x,q as y,_t as z};
2//# sourceMappingURL=accounts-5t7gWyVC.js.map

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.