1import{D as v,G as C,s as I,d as s,e as x,w as y,i as n,f as d,q as _,g as c,m as u,t as o,z as g,C as p,p as a,E as J,F as b,n as f,u as S}from"./index--eHl4n7C.js";import{_ as $}from"./Dropdown-0lWQYOD1.js";import{_ as k}from"./PrimaryButton-BprZSxeg.js";import{_ as B}from"./CaretDown-C-M1rG1e.js";import{_ as M}from"./Info-CLPwiEj3.js";import{_ as R}from"./Refresh-B3zfEN8d.js";import{_ as w}from"./Spinner-DinxvipL.js";import{_ as V}from"./ListDropdown-BxOVcw1F.js";const D={key:0},H={key:1},O={key:0,class:"border-b mb-2"},P=["disabled"],z={class:"w-full text-center mb-4"},F={class:"py-2 text-left"},U=["placeholder"],q={class:"mt-1"},W={class:"ml-2 text-xs md:text-sm text-gray-600"},K={key:0},Q={key:0,class:"text-sm my-2 ml-2"},X={key:1},Y={class:"text-left text-gray-700"},Z=["onClick"],ee={class:"px-1 py-1 md:px-2 text-sm md:text-md leading-5"},te={key:0},se={key:1},oe={key:2,class:"ml-2 align-top border border-green-600 bg-green-200 text-black rounded-sm px-2 py-0 text-xs"},ne={key:3,class:"ml-2 align-top text-red-600 text-xs"},de={key:4,class:"ml-2 align-top bg-green-600 text-white rounded-sm px-2 py-0 text-xs"},re={key:5,class:"ml-2 align-top bg-red-600 text-white rounded-sm px-2 py-0 text-xs"},le=["onClick"],ae={key:0},ie={key:0},ce={class:"w-full text-sm leading-3"},ue={class:"mb-1 ml-4"},ge={class:"px-2 py-1"},_e={key:0},pe={class:"text-xs ml-1 text-gray-700"},me={key:1,class:"text-xs ml-1 text-gray-700"},he={key:0},ye={class:"w-full ml-2 md:ml-4 text-xs md:text-sm p-1 rounded-sm mb-1"},be={class:"border-b"},fe={class:"font-bold w-1/3"},ve={class:"font-bold w-[25%] pl-1"},xe={key:0,class:"font-bold w-[42%] pl-1"},Se={class:"border-b"},ke={class:"w-1/3"},we={class:"pl-1 w-[25%] text-xs font-bold"},Ne={key:0,class:"text-green-700"},je={key:1,class:"text-red-600"},Ge={key:0,class:"pl-1 w-[42%]"},Le={key:0,class:"w-full overflow-hidden"},Ee={class:"text-xxs font-bold"},Ae={class:"text-xxs"},Te={key:1,class:"w-full overflow-hidden"},Ce={class:"text-xxs font-bold"},Ie={key:2,class:"w-full overflow-hidden"},Je={class:"text-xxs font-bold"},$e={key:3,class:"w-full overflow-hidden"},Be={class:"text-xxs font-bold"},Me={key:0,class:"mt-2"},Re={key:0},Ve={class:"flex flex-wrap mb-1 cursor-pointer"},De=["onClick","innerHTML"],Qe={__name:"JudgeDropdown",props:{searchTerm:{type:String,default:""},round_category_values:Object,nextEntrantToJudgeId:{type:Number,default:null},judgingName:{type:String,default:null},judgingSub:{type:String,default:null},hiddenIds:{type:Object,default:[]},judgesScored:{type:Object,default:null},gettingEntrants:{type:Boolean,default:!1},openScores:{type:Object,default:null},viewMyScored:{type:Boolean,default:!1},checkNextInToJ:{type:Boolean,default:!0},judgingNowId:{type:Number,default:0}},setup(N){const e=N,m=t=>{e.gettingEntrants=!0;var i={audition_round_category_id:e.round_category_values.id,search:e.searchTerm,page:t,mine:e.viewMyScored};const h=S().props.preview?route("auditions.preview.judgeEntrants",{audition:e.round_category_values.audition_id,audRndCat:e.round_category_values.id,search:e.searchTerm,page:t,mine:e.viewMyScored}):route("judge.getEntrants",i);j.get(h).then(r=>{e.judgesScored=r,e.gettingEntrants=!1})},j=v({}),G=v({});C(()=>e.searchTerm,()=>{m(1)});const L=t=>{m(t)},E=()=>{e.viewMyScored=!e.viewMyScored,m(1)};setTimeout(function(){e.nextEntrantToJudgeId==null&&(e.checkNextInToJ=!1)},3e3);const A=t=>{e.gettingEntrants=!0;const i=S().props.preview?route("auditions.preview.judgeScores",{audition:e.round_category_values.audition_id,audRndCat:e.round_category_values.id,users_to_audition_rounds_id:t}):route("judge.entScores",{audition_round_category_id:e.round_category_values.id,users_to_audition_rounds_id:t});G.get(i).then(h=>{e.openScores=h,e.gettingEntrants=!1})},T=()=>{e.judgesScored==null&&m(1)};return(t,i)=>{const h=I("ChevronRight");return s(),x($,{align:"left",width:"w-80",onContentClick:"true"},{trigger:y(()=>[d("div",{class:_(["items-center p-1 bg-gray-800 border border-transparent rounded-md font-semibold text-sm lg:text-md hover:opacity-80 text-center w-full cursor-pointer bg-green-600 text-white relative",{"text-white bg-gray-800":e.judgingSub==null,"bg-green-600 text-white":e.judgingSub!=null}])},[e.judgingName!=null?(s(),n("span",D,o(e.judgingName),1)):(s(),n("span",H,o(t.LANG.JudNow),1
1)),c(B,{classes:"w-3 absolute top-1 right-1",fill:"fill-gray-200"})],2)]),content:y(()=>[e.judgingNowId!=e.nextEntrantToJudgeId?(s(),n("div",O,[d("div",{class:_(["mb-2 text-center w-full",{"grayscale opacity-25":e.nextEntrantToJudgeId==null}]),disabled:e.nextEntrantToJudgeId==null},[c(k,{onClick:i[0]||(i[0]=r=>t.goToPage("judge.judgeEntrant",{entrant:e.nextEntrantToJudgeId})),classes:"bg-green-600"},{default:y(()=>[u(o(t.LANG.NxEnt)+" ",1),c(h,{classes:"w-2 inline-block",fill:"fill-white"})]),_:1}),g(c(w,{classes:"inline-block w-3 h-3 ml-1",fill:"fill-black"},null,512),[[p,e.nextEntrantToJudgeId==null&&e.checkNextInToJ]])],10,P)])):a("",!0),g(d("div",z,[g(d("div",null,[c(k,{onClick:T,classes:"bg-green-600"},{default:y(()=>[c(V,{classes:"w-4 inline-block mr-1",fill:"fill-white"}),u(" "+o(t.LANG.VeEnLis),1)]),_:1})],512),[[p,e.gettingEntrants==!1]])],512),[[p,e.judgesScored==null]]),g(d("div",{class:_({"pointer-events-none opacity-50":e.gettingEntrants})},[d("div",F,[g(d("input",{type:"text",placeholder:t.LANG.Search,"onUpdate:modelValue":i[1]||(i[1]=r=>e.searchTerm=r),class:"mt-2 ml-2 bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-green-600 inline-block w-40"},null,8,U),[[J,e.searchTerm]]),c(R,{title:t.LANG.Reload,class:_(["cursor-pointer inline-block ml-2 w-5 h-5",{"pointer-events-none opacity-50":e.gettingEntrants}]),fill:"fill-green-600",onClick:m,disabled:e.gettingEntrants},null,8,["title","disabled","class"]),d("div",q,[d("input",{type:"checkbox",onClick:E,class:"rounded-sm ml-2 border-gray-300 text-green-600 shadow-xs focus:ring-green-600 cursor-pointer"}),d("span",W,o(t.LANG.IveScored),1)])]),g(c(w,{classes:"inline-block w-4 h-4 mx-auto",fill:"fill-black"},null,512),[[p,e.judgesScored==null]]),e.judgesScored!=null?(s(),n("div",K,[e.judgesScored.data.length==0?(s(),n("div",Q,o(t.LANG.NoEn),1)):a("",!0)])):a("",!0),e.judgesScored!=null?(s(),n("div",X,[(s(!0),n(b,null,f(e.judgesScored.data,r=>(s(),n("div",{key:r,class:"border-b border-slate-300"},[g(d("div",Y,[d("div",{class:"cursor-pointer mx-1 hover:bg-gray-800 hover:text-white ease-in-out duration-300 rounded-sm",onClick:l=>t.goToPage("judge.judgeEntrant",{entrant:r.users_to_audition_rounds_id,score:r.score_id})},[d("div",ee,[e.round_category_values.judging_anonymous?(s(),n("span",te,o(t.LANG.Entrant)+" #"+o(r.entrant_audition_id),1)):(s(),n("span",se,o(r.entrant_name),1)),r.individual_result_published!=null?(s(),n("span",oe,o(t.LANG.InPub),1)):r.score_id==null?(s(),n("span",ne,o(t.LANG.NoScore),1)):r.date_score_submitted?(s(),n("span",de,o(t.LANG.ScSub),1)):(s(),n("span",re,o(t.LANG.Saved)+", "+o(t.LANG.NotSub),1))])],8,Z),d("div",{class:"text-green-600 font-bold text-xs cursor-pointer mx-3 bg-slate-200 rounded-sm px-1 leading-3 inline-block align-top hover:opacity-80",onClick:l=>A(r.id)},o(t.LANG.Details),9,le),e.openScores?(s(),n("div",ae,[e.openScores.id==r.id?(s(),n("div",ie,[d("div",ce,[d("div",ue,[d("span",ge,[d("span",{class:_({"text-green-600":e.openScores.scoring_status.scores>=e.openScores.scoring_status.expectedScores,"text-red-600":e.openScores.scoring_status.scores<e.openScores.scoring_status.expectedScores})},[u(o(e.openScores.scoring_status.submittedScores)+" ",1),e.round_category_values.judge_scheme_params_flat.multipleJudges?(s(),n("span",_e,[u(" /"+o(e.openScores.scoring_status.expectedScores)+" ",1),d("span",pe,o(t.LANG.ScoNeeded),1)])):(s(),n("span",me,o(t.LANG.Scores),1))],2),e.openScores.scoring_status.submittedScores>0?(s(),x(M,{key:0,classes:"inline-block w-4 ml-1",fill:"fill-green-600",title:t.LANG.WhosScored},null,8,["title"])):a("",!0)])])]),e.openScores.scoring_status.submittedScores>0?(s(),n("div",he,[d("div",ye,[d("table",null,[d("tr",be,[d("td",fe,o(t.LANG.ScoredBy),1),d("td",ve,o(t.LANG.Status),1),e.round_category_values.judging_other_judges_scores?(s(),n("td",xe,o(t.LANG.EnScore)+"/"+o(t.LANG.Grade),1)):a("",!0)]),(s(!0),n(b,null,f(e.openScores.scoring_status.details,l=>(s(),n("tr",Se,[d("td",ke,o(l.judge_name),1),d("td",we,[l.date_submitted?(s(),n("span",Ne,o(t.LANG.Submitted),1)):(s(),n("span",je,o(t.LANG.IncUnSub),1))]),e.round_category_values.judging_other_judges_scores?(s(),n("td",Ge,[l.numeric_grade||l.custom_grade?(s(),n("div",Le,[d("span",Ee,o(t.LANG.Grade)+": ",1),u(" "+o(l.numeric_grade)+" ",1),d("span",Ae,o(l.custom_grade),1)])):a("",!0),l.group?(s(),n("div",Te,[d("span",Ce,o(t.LANG.Grp)+": ",1),u(" "+o(l.group),1)])):a("",!0),l.score?(s(),n("div",Ie,[d("span",Je,o(t.LANG.EnScore)+": ",1),u(" "+o(l.score),1)])):l.rank?(s(),n("div",$e,[d("span",Be,o(t.LANG.Rank)+": ",1),u(" "+o(l.rank),1)])):a("",!0)])):a("",!0)]))),256))])])])):a("",!0)])):a("",!0)])):a("",!0)],512),[[p,!e.hiddenIds.includes(r.entrant_audition_id)]])]))),128)),e.judgesScored.data.length>0?(s(),n("div",Me,[e.judgesScored.links.length>3?(s(),n("div",Re,[d("div",Ve,[(s(!0),n(b,null,f(e.judgesScored.links,(r,l)=>(s(),n(b,null,[l!=0&&l!=e.judgesScored.links.length-1?(s(),n("span",{key:0,onClick:He=>L(r.label),class:_(["mb-1 mr-1 px-4 py-2 text-sm leading-4 border hover:bg-green-600 hover:text-white rounded-sm",{"bg-green-600 text-white":r.active}]),innerHTML:r.label},null,10,De)):a("",!0)],64))),256))])])):a("",!0)])):a("",!0)])):a("",!0)],2),[[p,e.judgesScored!=null]])]),_:1})}}};export{Qe as default};
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.