PageSourceSearch

https://seriesaddict.fr/assets/SAMember-CFjQiQP-.js

js seriesaddict.fr collected 2026-10-02 06:31:56 UTC 3,375 bytes, 1 lines download raw bytes

1import{_ as e}from"./VButton.vue_vue_type_style_index_0_lang-2ixw7Nsq.js";import{q as l,u as s,r as a,c as o,a as i,b as n,M as r,f as t,d,I as u,F as m,x as c,h as p,z as v,y as b,k as _,l as f,H as g,n as y}from"./index-CBidmUkf.js";import{u as h}from"./customResource-DTYch6s3.js";import{_ as k}from"./_plugin-vue_export-helper-BCo6x5W8.js";const w=["src","alt"],x={class:"is-meta"},A={key:0,class:"is-admin_actions"},j=k(l({__name:"SAMember",props:{member:{default:void 0},isAdmin:{type:Boolean,default:!1},isGuest:{type:Boolean,default:!1},small:{type:Boolean,default:!1},showActions:{type:Boolean,default:!0},redirect:{type:Boolean,default:!0}},emits:["delete","done"],setup(l,{emit:k}){const j=g(),B=h(),C=s(),F=l,z=k,$=a(!1),R=o(()=>C.getUser()),G=()=>{var e;const l=null==(e=F.member)?void 0:e.username.toLowerCase().replace(/[^\w\s-]/g,"").replace(/\s+/g,"-");F.redirect&&j.push(`/user/${l}`)},I=async(e,l)=>{var s,a,o,i;try{$.value=!0,l?await B.handleFriend(e,null==(s=R.value)?void 0:s.id,null==(a=F.member)?void 0:a.id,l):await B.handleFriend(e,null==(o=R.value)?void 0:o.id,null==(i=F.member)?void 0:i.id),await y(),z("done")}catch(n){console.log(n)}finally{setTimeout(()=>$.value=!1,100)}};return(l,s)=>{var a,o,g,y,h,k,j,B,C,z;const R=e;return n(),i("div",{class:"is-avatar_container",style:r({width:(F.small?80:100)+"px"})},[t("div",{class:"is-avatar_pro",onKeypress:s[3]||(s[3]=u(e=>G(),["enter"])),onClick:s[4]||(s[4]=e=>G())},[t("img",{src:(null==(o=null==(a=F.member)?void 0:a.profil)?void 0:o.image_path)??"/images/default/avatar.png",alt:null==(g=F.member)?void 0:g.username,style:r({height:(F.small?120:200)+"px",width:(F.small?80:100)+"px",objectFit:"cover",borderRadius:"99rem"})},null,12,w),F.showActions&&!F.isGuest?(n(),i(m,{key:0},[(null==(y=F.member)?void 0:y.isWaiting)?(n(),c(R,{key:0,size:"small",color:"warning",class:"is-friend_btn",icon:"solar:user-block-bold-duotone",rounded:"",loading:v($),onClick:s[0]||(s[0]=p(e=>{var l;return I("cancel",null==(l=F.member)?void 0:l.isWaiting)},["stop"]))},{default:b(()=>[...s[7]||(s[7]=[_(" Annuler ",-1)])]),_:1},8,["loading"])):(n(),i(m,{key:1},[(null==(h=F.member)?void 0:h.isFriend)?(n(),c(R,{key:0,size:"small",color:"danger",class:"is-friend_btn",icon:"solar:user-minus-rounded-bold-duotone",rounded:"",loading:v($),onClick:s[1]||(s[1]=p(e=>{var l;return I("remove",null==(l=F.member)?void 0:l.isFriend)},["stop"]))},{default:b(()=>[...s[8]||(s[8]=[_(" Supprimer ",-1)])]),_:1},8,["loading"])):(n(),c(R,{key:1,size:"small",color:"success",class:"is-friend_btn",icon:"solar:user-plus-rounded-bold-duotone",rounded:"",loading:v($),onClick:s[2]||(s[2]=p(e=>I("add"),["stop"]))},{default:b(()=>[...s[9]||(s[9]=[_(" Ajouter ",-1)])]),_:1},8,["loading"]))],64))],64)):d("",!0),t("div",x,[t("h4",null,f((null==(j=null==(k=F.member)?void 0:k.profil)?void 0:j.prenom)??(null==(C=null==(B=F.member)?void 0:B.profil)?void 0:C.nom)??"No Name"),1),t("h3",null,f(`@${null==(z=F.member)?void 0:z.username}`),1)])],32),F.isAdmin?(n(),i("div",A,[t("span",{class:"is-button is-danger",onKeypress:s[5]||(s[5]=u(p(e=>l.$emit("delete"),["stop"]),["enter"])),onClick:s[6]||(s[6]=p(e=>l.$emit("delete"),["stop"]))},[...s[10]||(s[10]=[t("i",{class:"iconify","aria-hidden":"true","data-icon":"solar:trash-bin-trash-bold-duotone"},null,-1)])],32)])):d("",!0)],4)}}}),[["__scopeId","data-v-1928ca2b"]]);export{j as _};

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.