PageSourceSearch

https://files.starscolab.com/assets/index-BP6ABxv4.js

js starscolab.com collected 2026-09-28 06:15:12 UTC 5,882 bytes, 2 lines download raw bytes

1import{R as $,T as y,$ as b,a0 as c,Y as h,a1 as e,y as u,L as d,aw as P,a7 as o,a8 as j,Z as A,a2 as I,a6 as x,V as C,X as N,_ as k,F as S,ax as L,am as V}from"./index-dDcKrYWB.js";import{c as B}from"./call_api-cT3JnmvV.js";import{u as E,m as R,_ as T,f as F}from"./app-BKVMsjX8.js";import{B as U}from"./back_to_menu-Dv9eg5MX.js";import{T as q}from"./title_header-C4yRSIpl.js";import{g as D}from"./get_profile_url-Bh-JRmO8.js";import"./toast-Bnadb2vL.js";import"./analytics-C0QEz1or.js";import"./back_to.vue_vue_type_script_setup_true_lang-B15t7vB5.js";import"./index.es-BcY7PE-w.js";import"./index-Bym2pk0R.js";import"./get_profile_route_name-BbgaZzpM.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};a.SENTRY_RELEASE={id:"581dac06abcfb429889fede1eeb7342c3e2d2c84"}}catch{}})();try{(function(){var a=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},l=new a.Error().stack;l&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[l]="bc384a8f-f8d5-4b61-b0b5-4f2e40421859",a._sentryDebugIdIdentifier="sentry-dbid-bc384a8f-f8d5-4b61-b0b5-4f2e40421859")})()}catch{}const Y={class:"participant-row"},z={class:"row-main"},J={class:"user-info"},M={class:"name"},W={class:"is-flex is-align-items-center"},X={class:"username"},Z={key:0,class:"tag is-info is-small is-rounded has-text-white ml-1"},G={class:"mt-3 is-flex is-align-items-center flex-gap-4 is-flex-wrap is-justify-content-space-between"},H={class:"row-actions"},K=["href"],O={key:0,class:"hint-box"},Q=$({__name:"participant_row",props:{user:{}},setup(a){const l=a,p=E(),r=l.user.jobRequest.status,i=l.user.status,g=y(()=>{switch(r){case"colab_completed":return{status:"completed",label:"Completed"};case"colab_count_finished":return{status:"rejected",label:"Exhausted"};case"rejected":return{status:"rejected",label:"Rejected"};case"accepted":return{status:"inprogress",label:"In progress"};case"new":return{status:"new",label:"New"}}return{status:r,label:r}}),w=y(()=>{switch(r){case"new":return i==="awaiting_accept"?"You accepted, Waiting for other user to accept the request.":"Accept or reject this request in the chat.";case"colab_count_finished":return"The job completed the maximum number of collaborations allowed.";case"accepted":return i==="report_submitted"?"Influencer has submitted the report, please review in chat.":i==="content_posted"?"Influencer has posted content.":"Both party accepted, Collaboration in progress.";default:return""}}),v=y(()=>{switch(r){case"rejected":case"accepted":return null}switch(i){case"applied":case"accepted":return R(i)}return null});return(s,t)=>{const f=b("ImgLoader"),m=b("route-to"),_=b("FontAwesomeIcon");return c(),h("div",Y,[e("div",z,[e("div",J,[u(f,{class:"image is-48x48",imgClass:"avatar is-rounded",src:s.getUploadedAssetPath(d(P)(s.user.fromUser,"48"))},null,8,["src"]),e("div",null,[e("p",M,o(s.user.fromUser.name),1),e("div",W,[e("p",X,o(s.user.fromUser.userName),1),v.value?(c(),h("div",Z,o(v.value),1)):j("",!0)])])]),e("span",{class:A(["status-pill",`status-${g.value.status}`])},o(d(R)(g.value.label)),3)]),e("div",G,[e("div",H,[u(m,{name:"chat-by-job",params:{id:s.user.jobRequest.id},class:"button is-small is-primary is-rounded is-link"},{default:I(()=>t[0]||(t[0]=[x(" View Chat ")])),_:1},8,["params"]),e("a",{href:d(D)(s.user.fromUser.userName,"profile",d(p)),class:"button is-link is-outlined is-small is-rounded"}," View Profile ",8,K),j("",!0)]),w.value?(c(),h("div",O,[u(_,{icon:"fa-solid fa-circle-info"}),x(" "+o(w.value),1)])):j("",!0)])])}}}),ee=T(Q,[["__scopeId","data-v-4f8c1f45"]]),te={key:1,class:"job-participants"},se={class:"summary-pill"},ae={class:"summary-pill is-new"},ne={class:"summary-pill is-progress"},oe={class:"summary-pill is-finished"},re={class:"summary-pill is-finished"},ie={class:"participants-table"},le={key:0,class:"notification has-text-centered"},ce={class:""},ue={class:"icon-wrapper"},de=$({__name:"index",setup(a){const l=F();let p=[];const r=y(()=>{var t,f,m,_;const s=w.value;return{new:((t=s.find(n=>n.status==="new"))==null?void 0:t.count)||0,inprogress:((f=s.find(n=>n.status==="accepted"))==null?void 0:f.count)||0,finished:((m=s.find(n=>n.status==="colab_completed"))==null?void 0:m.count)||0,rejected:((_=s.find(n=>n.status==="rejected"||n.status==="colab_count_finished"))==null?void 0:_.count)||0}}),i=C(null),g=C(!0),w=C([]);async function v(){const s=await B(()=>V.job.fetchJobParticipants(l.params.id));i.value=s.job,p=s.participants,w.value=s.allStatus,g.value=!1}return N(v),(s,t)=>{const f=b("RouteLoader"),m=b("ContentCenter"),_=b("FontAwesomeIcon");return g.value?(c(),k(f,{key:0})):(c(),h("section",te,[u(U,{job:i.value},null,8,["job"]),u(q,null,{subtitle:I(()=>
1[x(o(i.value.title),1)]),default:I(()=>[t[0]||(t[0]=x(" Job participants "))]),_:1}),u(m,{class:"summary-bar mt-4"},{default:I(()=>[e("div",se,[e("strong",null,o(d(p).length),1),t[1]||(t[1]=e("span",null,"Total",-1))]),e("div",ae,[e("strong",null,o(r.value.new),1),t[2]||(t[2]=e("span",null,"New",-1))]),e("div",ne,[e("strong",null,o(r.value.inprogress),1),t[3]||(t[3]=e("span",null,"In Progress",-1))]),e("div",oe,[e("strong",null,o(r.value.finished),1),t[4]||(t[4]=e("span",null,"Completed",-1))]),e("div",re,[e("strong",null,o(r.value.rejected),1),t[5]||(t[5]=e("span",null,"Rejected",-1))])]),_:1}),e("div",ie,[(c(!0),h(S,null,L(d(p),n=>(c(),k(ee,{key:n.id,user:n},null,8,["user"]))),128))]),d(p).length===0?(c(),h("div",le,[e("div",ce,[e("div",ue,[u(_,{icon:"fa-solid fa-handshake"}),t[6]||(t[6]=e("span",{class:"slash"},null,-1))])]),t[7]||(t[7]=e("h2",{class:"text-gray-700 text-lg font-medium is-size-3"}," All participants will appear here. ",-1))])):j("",!0)]))}}}),xe=T(de,[["__scopeId","data-v-a57cfe7e"]]);export{xe as default};
2//# sourceMappingURL=index-BP6ABxv4.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.