1import{a as S,b as T}from"./chunk-XFT76LM3.js";import{f as J}from"./chunk-XWGGXTBH.js";import"./chunk-GWP52JAF.js";import"./chunk-SBK5GHAF.js";import"./chunk-FPPRR53P.js";import"./chunk-3UVVCPIT.js";import"./chunk-HNY54GY7.js";import"./chunk-WAF2UKPS.js";import"./chunk-R3QRL77R.js";import"./chunk-G2NZI5V3.js";import"./chunk-62DYWMYT.js";import"./chunk-NTCDGAR3.js";import"./chunk-UMK6AGIS.js";import"./chunk-PBAOXUCO.js";import"./chunk-7UZYWCAJ.js";import"./chunk-RIQOBMUM.js";import{l as L,o as g}from"./chunk-WX25E2HZ.js";import"./chunk-I5K7UUBW.js";import"./chunk-6BAE5M2B.js";import"./chunk-OLSNRRTA.js";import"./chunk-GJNXMHJK.js";import"./chunk-ROYL3S4H.js";import"./chunk-XWMJJGBF.js";import"./chunk-5G7452JJ.js";import"./chunk-O6NNHBDA.js";import{h as j}from"./chunk-VK3ZU6WP.js";import{G as I,o as O,p as P}from"./chunk-BRHCVEVW.js";import{Ga as u,Ic as x,Jc as C,Me as M,Ob as a,Oc as s,Pc as r,Qa as h,Qc as o,Ra as v,Zc as b,ac as c,ed as w,hc as _,hd as m,ic as f,mc as d,wd as p,xd as y,yd as E}from"./chunk-7DV7UWC6.js";import"./chunk-XS7UEPGF.js";import"./chunk-IP4IO47A.js";M();function k(t,l){t&1&&(r(0,"un-alerts",4),p(1," No active opportunities found. Please contact the organizer/manager. "),o()),t&2&&s("type","danger")}function A(t,l){if(t&1){let e=b();r(0,"li")(1,"span")(2,"em",7),p(3),o(),p(4),o(),r(5,"button",8),w("click",function(){let n=h(e).$implicit,N=m(3);return v(N.redirectToPage(n,!0))}),p(6,"Evaluate"),o()()}if(t&2){let e=l.$implicit,i=l.index;a(3),E("",i+1,"."),a(),y(e.title)}}function R(t,l){if(t&1&&(r(0,"ul"),d(1,A,7,2,"li",6),o()),t&2){let e=m(2);a(),s("ngForOf",e.competitions)}}function z(t,l){if(t&1&&(r(0,"div",1)(1,"div",2)(2,"h2"),p(3,"Select Competition for Evaluation"),o(),r(4,"div",3),x(5,k,2,1,"un-alerts",4),d(6,R,2,1,"ul",5),o()()()),t&2){let e=m();a(5),C((e.competitions==null?null:e.competitions.length)<1?5:-1),a(),s("ngIf",(e.competitions==null?null:e.competitions.length)>0)}}var F=(()=>{class t{constructor(e,i,n){this.router=e,this.httpClient=i,this.auth=n,this.show=!1,this.competitions=[]}ngOnInit(){this.getEvaluatorOpportunities()}getEvaluatorOpportunities(){this.httpClient.get("/api/evaluator/opportunities").subscribe(e=>{this.competitions=e.data,console.log(this.competitions),this.competitions.length==1&&this.redirectToPage(this.competitions[0],!0),this.show=!0})}redirectToPage(e,i=!1){let n=e.type==="jobs"&&this.auth.isAdmin?`/manage-registrations/${e.id}/role-panel-profiles/${e.association_id}`:`/manage/opportunity/${e.id}/role-panel-profiles/${e.association_id}`;i?window.open(n):this.router.navigateByUrl(n)}static{this.\u0275fac=function(i){return new(i||t)(c(L),c(j),c(J))}}static{this.\u0275cmp=_({type:t,selectors:[["app-job-evaluator-landing"]],standalone:!1,decls:1,vars:1,consts:[["class","wrapper",4,"ngIf"],[1,"wrapper"],[1,"wrapper-inner"],[1,"evaluators-list"],[3,"type"],[4,"ngIf"],[4,"ngFor","ngForOf"],[1,"font-normal","f-weight-600","mr-10"],[1,"btn","z-depth-0","waves-effect",3,"click"]],template:function(i,n){i&1&&d(0,z,7,2,"div",0),i&2&&s("ngIf",n.show)},dependencies:[O,P,S],styles:[".d2c-shadow[_ngcontent-%COMP%]{border-radius:4px;box-shadow:0 1px 2px #3c40434d,0 1px 3px 1px #3c404326;padding:12px}.wrapper[_ngcontent-%COMP%]{min-height:calc(100vh - 76px);background:#f3f3f3}.wrapper-inner[_ngcontent-%COMP%]{width:60%;margin:auto;padding:30px 0}@media (max-width: 900px){.wrapper-inner[_ngcontent-%COMP%]{width:100%;padding:15px}}.evaluators-list[_ngcontent-%COMP%]{background-color:var(--grey-00);width:100%;padding:0}h2[_ngcontent-%COMP%]{font-size:20px;color:#333;padding:4px 0 4px 10px;margin-bottom:25px;border-left:3px solid var(--blue-700)}ul[_ngcontent-%COMP%]{margin:0}ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{border-bottom:1px solid #e3e3e3;padding:10px;display:flex;justify-content:space-between;align-items:center}"]})}}return t})();M();var V=[{path:"",component:F,data:{hideFooter:!0}}],D=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=f({type:t})}static{this.\u0275inj=u({imports:[g.forChild(V),g]})}}return t})(),et=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=f({type:t})}static{this.\u0275inj=u({imports:[D,I,T]})}}return t})();export{et as JobEvaluatorLandingModule};
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.