1import{a as Vt}from"./chunk-47VN6SM7.js";import{c as B}from"./chunk-K5JCG2HN.js";import{a as qt}from"./chunk-2ZXKEFL6.js";import{a as q}from"./chunk-QROAKJZT.js";import{a as Ht}from"./chunk-FESPKH7A.js";import"./chunk-LGAHAXE6.js";import{D as Rt,J as rt,K as jt,Q as Lt}from"./chunk-ZGTDWVWP.js";import{a as zt}from"./chunk-GIGYDHE3.js";import{a as At}from"./chunk-NE3PN4AS.js";import{b as nt}from"./chunk-PLD37K76.js";import{a as H,b as V}from"./chunk-6Z3JPFEM.js";import{a as Ft}from"./chunk-VDHMNIPW.js";import"./chunk-7NJJ2OR6.js";import{a as It,b as kt}from"./chunk-COB7JTXP.js";import{a as St,b as Tt}from"./chunk-B7MEV2DH.js";import"./chunk-HHQ3DLDR.js";import{a as Nt}from"./chunk-KMBGIYKO.js";import"./chunk-DTHTIZ5C.js";import"./chunk-6NHZTPCS.js";import"./chunk-GWP52JAF.js";import"./chunk-SBK5GHAF.js";import"./chunk-C22WGXC3.js";import"./chunk-PYESVWFJ.js";import"./chunk-ZCP5KTTM.js";import"./chunk-WAF2UKPS.js";import"./chunk-R3QRL77R.js";import"./chunk-G2NZI5V3.js";import"./chunk-62DYWMYT.js";import"./chunk-TEBKKOGH.js";import"./chunk-UMK6AGIS.js";import"./chunk-4QX5TW7Y.js";import"./chunk-7UZYWCAJ.js";import"./chunk-RIQOBMUM.js";import"./chunk-WX25E2HZ.js";import"./chunk-I5K7UUBW.js";import"./chunk-6BAE5M2B.js";import{a as Q,b as Z}from"./chunk-GPTXSPLI.js";import"./chunk-WSF7ZPQZ.js";import"./chunk-JYXQ74JV.js";import"./chunk-7A7LFYDL.js";import"./chunk-IQBBAARC.js";import"./chunk-CWWNL6ZE.js";import"./chunk-FSAIB72R.js";import{L as Dt,i as wt,o as Et}from"./chunk-X474JN3X.js";import"./chunk-OLSNRRTA.js";import"./chunk-GJNXMHJK.js";import"./chunk-CLUIJ6WE.js";import{c as Pt}from"./chunk-XWMJJGBF.js";import"./chunk-5G7452JJ.js";import"./chunk-O6NNHBDA.js";import{m as z}from"./chunk-VK3ZU6WP.js";import{G as Mt,u as L}from"./chunk-BRHCVEVW.js";import{Ed as yt,Fd as bt,Gc as U,Gd as vt,Ic as g,Jc as h,Ka as w,Kc as G,Mc as P,Me as k,Nc as S,Ob as s,Oc as u,Pc as o,Qa as x,Qc as a,Ra as C,Rc as _,Sd as M,T as gt,Xc as D,Zc as A,_ as ht,_a as f,ed as O,f as _t,ge as N,hc as E,hd as l,le as K,mc as j,me as c,ne as W,pd as Ct,qd as ft,rd as I,sd as Y,td as J,ua as xt,ue as m,ve as Ot,wd as d,xa as te,xd as T,y as mt,yd as b}from"./chunk-7DV7UWC6.js";import"./chunk-XS7UEPGF.js";import{a as dt,b as ut}from"./chunk-IP4IO47A.js";k();te();k();k();k();var ee=["canvasRef"],ne=(e,r)=>r.label;function ie(e,r){if(e&1&&D(0,5),e&2){l();let t=I(8);u("ngTemplateOutlet",t)}}function oe(e,r){if(e&1&&(o(0,"un-no-data",6)(1,"span"),d(2),a()()),e&2){let t=l();u("type","")("cardTitle",t.emptyHeading())("dataType","pie-chart")("img","https://d8it4huxumps7.cloudfront.net/uploads/images/6aa11895f3722_stats_analytics_empty_stage.png")("enableImage",!0)("fillImage",!1),s(2),b(" ",t.emptyHint()," ")}}function ae(e,r){if(e&1&&(o(0,"div",10)(1,"div",11),_(2,"span",12),d(3),a(),o(4,"div",13)(5,"span",14),d(6),a(),o(7,"span",15),d(8),a()()()),e&2){let t=r.$implicit;J("muted",t.muted),s(2),Y("background",t.color),s(),b(" ",t.label," "),s(3),T(t.count.toLocaleString()),s(2),b("",t.percentage,"%")}}function re(e,r){if(e&1&&(o(0,"div",7),_(1,"canvas",null,1),a(),o(3,"div",8),P(4,ae,9,7,"div",9,ne),a()),e&2){let t=l();s(4),S(t.items())}}function se(e,r){e&1&&(o(0,"div",19),_(1,"span",20)(2,"span",21)(3,"span",22),a())}function le(e,r){if(e&1&&(o(0,"div",16),_(1,"div",17),o(2,"div",18),P(3,se,4,0,"div",19,G),a()()),e&2){let t=l();s(3),S(t.loaderRows)}}rt.register(Rt,jt,Lt);var ce=4,it=(()=>{class e{constructor(){this.title=m.required(),this.items=m([]),this.loading=m(!1),this.error=m(!1),this.emptyTitle=m(""),this.emptyHint=m("All created opportunity/Jobs/Internships will be shown here"),this.hasData=c(()=>(this.items()??[]).some(t=>t.count>0)),this.emptyHeading=c(()=>this.emptyTitle()||this.title()),this.loaderRows=Array.from({length:4}),this.canvasRef=Ot("canvasRef"),W(()=>{let t=this.canvasRef(),n=this.items();this._renderChart(t?.nativeElement,n)})}ngOnDestroy(){this.chart?.destroy()}_toDisplayValues(t){let n=t.reduce((F,X)=>F+X.count,0);if(n===0)return t.map(()=>0);let i=ce/360,p=t.map(F=>F.count/n<i&&F.count>0),et=1-p.filter(Boolean).length*i,R=t.reduce((F,X,Kt)=>p[Kt]?F:F+X.count,0);return t.map((F,X)=>F.count===0?0:p[X]?i*n:R>0?F.count/R*et*n:F.count)}
1_renderChart(t,n){if(!t||!n.length){t===void 0&&this.chart&&(this.chart.destroy(),this.chart=void 0,this.chartCanvasEl=void 0);return}let i=this._toDisplayValues(n),p={type:"doughnut",data:{labels:n.map(v=>v.label),datasets:[{data:i,backgroundColor:n.map(v=>v.color),borderWidth:2,borderColor:"#ffffff",hoverOffset:4}]},options:{cutout:"68%",responsive:!0,maintainAspectRatio:!0,plugins:{legend:{display:!1},tooltip:{callbacks:{label:v=>{let y=n[v.dataIndex];return` ${y.label}: ${y.count.toLocaleString()} (${y.percentage}%)`}}}}}};this.chart&&this.chartCanvasEl===t?(this.chart.data=p.data,this.chart.update()):(this.chart?.destroy(),this.chart=new rt(t,p),this.chartCanvasEl=t)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=E({type:e,selectors:[["app-stat-donut-card"]],viewQuery:function(n,i){n&1&&Ct(i.canvasRef,ee,5),n&2&&ft()},inputs:{title:[1,"title"],items:[1,"items"],loading:[1,"loading"],error:[1,"error"],emptyTitle:[1,"emptyTitle"],emptyHint:[1,"emptyHint"]},decls:9,vars:2,consts:[["CHART_LOADER",""],["canvasRef",""],[1,"stat-card"],[1,"title","align-center"],[1,"chart-box"],[3,"ngTemplateOutlet"],[3,"type","cardTitle","dataType","img","enableImage","fillImage"],[1,"chart"],[1,"stats-wrapper"],[1,"stats",3,"muted"],[1,"stats"],[1,"stat-label","align-center","gap-6"],[1,"stat-dot"],[1,"stat-count","align-center","gap-10"],[1,"count"],[1,"pct"],["aria-hidden","true",1,"chart-loader"],[1,"chart-loader__donut","skeleton"],[1,"chart-loader__legend"],[1,"chart-loader__row"],[1,"chart-loader__dot","skeleton"],[1,"chart-loader__label","skeleton"],[1,"chart-loader__value","skeleton"]],template:function(n,i){n&1&&(o(0,"div",2)(1,"div",3),d(2),a(),o(3,"div",4),g(4,ie,1,1,"ng-container",5)(5,oe,3,7,"un-no-data",6)(6,re,6,0),a()(),j(7,le,5,0,"ng-template",null,0,N)),n&2&&(s(2),T(i.title()),s(2),h(i.loading()?4:i.error()||!i.hasData()?5:6))},dependencies:[Mt,L,V,H],styles:[".stat-card[_ngcontent-%COMP%]{background:var(--grey-50);border-radius:16px;padding:3px}@supports (corner-shape: squircle){.stat-card[_ngcontent-%COMP%]{border-radius:32px;corner-shape:squircle}}.stat-card[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{font-size:12px;line-height:100%;letter-spacing:0%;padding:0 12px;height:48px;text-transform:uppercase;color:var(--text-primary)}.stat-card[_ngcontent-%COMP%] .chart-box[_ngcontent-%COMP%]{background:var(--grey-00);border-radius:16px;padding:16px;display:flex;align-items:center;gap:30px}@supports (corner-shape: squircle){.stat-card[_ngcontent-%COMP%] .chart-box[_ngcontent-%COMP%]{border-radius:32px;corner-shape:squircle}}.stat-card[_ngcontent-%COMP%] .chart-box[_ngcontent-%COMP%] un-no-data[_ngcontent-%COMP%]{width:100%}.stat-card[_ngcontent-%COMP%] .chart-box[_ngcontent-%COMP%] un-no-data[_ngcontent-%COMP%] .un_no_data img{width:160px;height:160px}.stat-card[_ngcontent-%COMP%] .chart[_ngcontent-%COMP%]{width:164px;height:164px}@media (max-width: 767px){.stat-card[_ngcontent-%COMP%] .chart[_ngcontent-%COMP%]{width:128px;height:128px}}@media (max-height: 767px) and (orientation: landscape) and (hover: none) and (pointer: coarse){.stat-card[_ngcontent-%COMP%] .chart[_ngcontent-%COMP%]{width:128px;height:128px}}@media (max-width: 767px){.stat-card[_ngcontent-%COMP%] .chart-box[_ngcontent-%COMP%]{gap:16px}.stat-card[_ngcontent-%COMP%] .chart[_ngcontent-%COMP%]{width:128px;height:128px}}@media (max-height: 767px) and (orientation: landscape) and (hover: none) and (pointer: coarse){.stat-card[_ngcontent-%COMP%] .chart-box[_ngcontent-%COMP%]{gap:16px}.stat-card[_ngcontent-%COMP%] .chart[_ngcontent-%COMP%]{width:128px;height:128px}}.stats-wrapper[_ngcontent-%COMP%]{width:100%;display:flex;flex-direction:column;gap:4px}.stats[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:4px 6px;border-radius:6px}@supports (corner-shape: squircle){.stats[_ngcontent-%COMP%]{border-radius:12px;corner-shape:squircle}}.stats.muted[_ngcontent-%COMP%]{background:var(--grey-50)}.stats[_ngcontent-%COMP%] .stat-dot[_ngcontent-%COMP%]{display:inline-block;flex-shrink:0;width:12px;height:12px;border-radius:2px}@supports (corner-shape: squircle){.stats[_ngcontent-%COMP%] .stat-dot[_ng
1content-%COMP%]{border-radius:4px;corner-shape:squircle}}@media (max-width: 767px){.stats[_ngcontent-%COMP%] .stat-dot[_ngcontent-%COMP%]{width:8px;height:8px}}@media (max-height: 767px) and (orientation: landscape) and (hover: none) and (pointer: coarse){.stats[_ngcontent-%COMP%] .stat-dot[_ngcontent-%COMP%]{width:8px;height:8px}}.stat-label[_ngcontent-%COMP%]{font-size:12px;line-height:100%;color:var(--text-secondary)}@media (max-width: 767px){.stat-label[_ngcontent-%COMP%]{font-size:10px}}@media (max-height: 767px) and (orientation: landscape) and (hover: none) and (pointer: coarse){.stat-label[_ngcontent-%COMP%]{font-size:10px}}.stat-count[_ngcontent-%COMP%]{font-weight:500;font-size:12px;line-height:100%;color:var(--text-primary)}.stat-count[_ngcontent-%COMP%] .pct[_ngcontent-%COMP%]{color:var(--text-secondary);width:fit-content;min-width:43px}@media (max-width: 767px){.stat-count[_ngcontent-%COMP%]{font-size:10px}}@media (max-height: 767px) and (orientation: landscape) and (hover: none) and (pointer: coarse){.stat-count[_ngcontent-%COMP%]{font-size:10px}}.skeleton[_ngcontent-%COMP%]{background:linear-gradient(90deg,var(--grey-100) 25%,var(--grey-200) 50%,var(--grey-100) 75%);background-size:200% 100%;animation:_ngcontent-%COMP%_shimmer 1.5s infinite}.chart-loader[_ngcontent-%COMP%]{display:flex;align-items:center;gap:30px;width:100%}.chart-loader__donut[_ngcontent-%COMP%]{flex-shrink:0;width:164px;height:164px;border-radius:50%;-webkit-mask:radial-gradient(circle,transparent 0 33%,#000 34% 100%);mask:radial-gradient(circle,transparent 0 33%,#000 34% 100%)}@media (max-width: 767px){.chart-loader__donut[_ngcontent-%COMP%]{width:128px;height:128px}}@media (max-height: 767px) and (orientation: landscape) and (hover: none) and (pointer: coarse){.chart-loader__donut[_ngcontent-%COMP%]{width:128px;height:128px}}.chart-loader__legend[_ngcontent-%COMP%]{flex:1;display:flex;flex-direction:column;gap:12px;min-width:0}.chart-loader__row[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px}.chart-loader__dot[_ngcontent-%COMP%]{flex-shrink:0;width:12px;height:12px;border-radius:2px}@supports (corner-shape: squircle){.chart-loader__dot[_ngcontent-%COMP%]{border-radius:4px;corner-shape:squircle}}@media (max-width: 767px){.chart-loader__dot[_ngcontent-%COMP%]{width:8px;height:8px}}@media (max-height: 767px) and (orientation: landscape) and (hover: none) and (pointer: coarse){.chart-loader__dot[_ngcontent-%COMP%]{width:8px;height:8px}}.chart-loader__label[_ngcontent-%COMP%]{height:10px;flex:1;max-width:120px;border-radius:4px}@supports (corner-shape: squircle){.chart-loader__label[_ngcontent-%COMP%]{border-radius:8px;corner-shape:squircle}}.chart-loader__value[_ngcontent-%COMP%]{flex-shrink:0;height:10px;width:56px;border-radius:4px}@supports (corner-shape: squircle){.chart-loader__value[_ngcontent-%COMP%]{border-radius:8px;corner-shape:squircle}}@media (max-width: 767px){.chart-loader[_ngcontent-%COMP%]{gap:16px}}@media (max-height: 767px) and (orientation: landscape) and (hover: none) and (pointer: coarse){.chart-loader[_ngcontent-%COMP%]{gap:16px}}@keyframes _ngcontent-%COMP%_shimmer{to{background-position:-200% 0}}"],changeDetection:0})}}return e})();var ot=[{value:"All J&I",label:"All Jobs & Internships",entity_type:"jobs",status:null,subtype:null},{value:"All live J&I",label:"All live Jobs & Internships",entity_type:"jobs",status:"live",subtype:null},{value:"All closed J&I",label:"All closed Jobs & Internships",entity_type:"jobs",status:"closed",subtype:null},{value:"Live jobs",label:"Only live Jobs",entity_type:"jobs",status:"live",subtype:null},{value:"live Internships",label:"Only live Internships",entity_type:"jobs",status:"live",subtype:"internship"},{value:"closed Jobs",label:"Only closed Jobs",entity_type:"jobs",status:"closed",subtype:null},{value:"closed Internships",label:"Only closed Internships",entity_type:"jobs",status:"closed",subtype:"internship"},{value:"custom",label:"Custom",entity_type:"jobs",status:"live",subtype:null,isCustom:!0}],lt=[{value:"All",label:"All",entity_type:"assessment",status:"null"},{value:"Paused",label:"Paused",entity_type:"assessment",status:"PAUSED"},{value:"Live",label:"Live",entity_type:"assessment",status:"LIVE"},{value:"Upcoming",label:"Upcoming",entity_type:"assessment",status:"NOT_STARTED"},{value:"Finished",label:"Finished",entity_type:"assessment",status:"FINISHED"}],On=[...ot,...lt];function $(e){if(e?.length)return e.join(",")}var Bt=10,$t=500;function Jt(e){return{id:e.id,name:e.title,active:e.listing_status?.toLowerCase()==="live"}}
1k();var pe={strong:"#0073E6",reasonable:"#4D9DEE",partial:"#BFDCF9",no_score:"#B9B9B9"},Ut=(()=>{class e{constructor(){this._accountContextService=w(q),this._contextService=w(B),this.selectedAccountId=this._accountContextService.selectedAccountId,this.timeFrame=this._contextService.timeframe,this.entityType=m(void 0),this.status=m(null),this.subtype=m(null),this.entityIds=m(void 0),this.compatibility=z(()=>{let t=this.selectedAccountId(),n=this.timeFrame();if(n.value==="custom"&&(!n.startDate||!n.endDate))return;let i={filter:n.value};n.value==="custom"&&(i.start_date=n.startDate,i.end_date=n.endDate),this.entityType()&&(i.entity_type=this.entityType()),this.subtype()&&(i.subtype=this.subtype());let p=$(this.entityIds());return p?i.entity_ids=p:this.status()&&(i.status=this.status()),{url:"/api/recruiter-dashboard/sourcing-compatibility-stats",method:"GET",params:i,headers:{"selected-account":t??""}}}),this.stats=c(()=>this.compatibility.status()==="error"?[]:this.compatibility.value()?.compatibility_stats??[]),this.isLoading=c(()=>this.compatibility.isLoading()),this.hasError=c(()=>!!this.compatibility.error()),this.donutItems=c(()=>this.stats().map(t=>({label:t.label,count:t.count,percentage:t.percentage,color:pe[t.code]??"#c9ccd1",muted:t.code==="no_score"})))}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=E({type:e,selectors:[["app-sourcing-compatibility-chart"]],inputs:{entityType:[1,"entityType"],status:[1,"status"],subtype:[1,"subtype"],entityIds:[1,"entityIds"]},decls:1,vars:3,consts:[["title","Sourcing Compatibility","emptyTitle","Sourcing compatibility",3,"items","loading","error"]],template:function(n,i){n&1&&_(0,"app-stat-donut-card",0),n&2&&u("items",i.donutItems())("loading",i.isLoading())("error",i.hasError())},dependencies:[nt,it],encapsulation:2,changeDetection:0})}}return e})();k();k();var de={M:"#150F5A",F:"#3930A8",T:"#3762D0",I:"#78CFFF",NB:"#78CFFF",OT:"#DFDFDF"},Gt=(()=>{class e{constructor(){this.accountContextService=w(q),this._contextService=w(B),this.selectedAccountId=this.accountContextService.selectedAccountId,this.timeFrame=this._contextService.timeframe,this.entityType=m(void 0),this.status=m(null),this.subtype=m(null),this.entityIds=m(void 0),this.genderStats=z(()=>{let t=this.selectedAccountId(),n=this.timeFrame();if(n.value==="custom"&&(!n.startDate||!n.endDate))return;let i={filter:n.value};n.value==="custom"&&(i.start_date=n.startDate,i.end_date=n.endDate),this.entityType()&&(i.entity_type=this.entityType()),this.subtype()&&(i.subtype=this.subtype());let p=$(this.entityIds());return p?i.entity_ids=p:this.status()&&(i.status=this.status()),{url:"/api/recruiter-dashboard/gender-wise-stats",method:"GET",params:i,headers:{"selected-account":t??""}}}),this._hasError=c(()=>this.genderStats.status()==="error"),this.total=c(()=>this._hasError()?0:this.genderStats.value()?.total??0),this.stats=c(()=>this._hasError()?[]:this.genderStats.value()?.gender_stats??[]),this.isLoading=c(()=>this.genderStats.isLoading()),this.hasError=c(()=>!!this.genderStats.error()),this.nonZeroStats=c(()=>this.stats().filter(t=>t.count>0)),this.donutItems=c(()=>this.nonZeroStats().map(t=>({label:t.label,count:t.count,percentage:t.percentage,color:de[t.code]??"#DFDFDF"})))}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=E({type:e,selectors:[["app-gender-bifurcation-chart"]],inputs:{entityType:[1,"entityType"],status:[1,"status"],subtype:[1,"subtype"],entityIds:[1,"entityIds"]},decls:1,vars:3,consts:[["title","Gender Bifurcation","emptyTitle","Gender bifurcation",3,"items","loading","error"]],template:function(n,i){n&1&&_(0,"app-stat-donut-card",0),n&2&&u("items",i.donutItems())("loading",i.isLoading())("error",i.hasError())},dependencies:[nt,it],encapsulation:2,changeDetection:0})}}return e})();k();k();var ue=()=>({title:"Failed to load hiring funnel data."}),_e=()=>({title:"Lorem all created opportunity/Jobs/Internships will be shown here"}),me=()=>["blue-700"],ge=()=>["grey-500"],he=(e,r)=>r.key,xe=(e,r)=>r.key??r.label;function Ce(e,r){e&1&&_(0,"app-un-table-loader",6),e&2&&u("type","tableLoader")("rows",5)}function fe(e,r){if(e&1&&(o(0,"div",7),D(1,10),a()),e&2){l();let t=I(12);s(),u("ngTemplateOutlet",t)("ngTemplateOutletContext",M(2,ue))}}function ye(e,r){if(e&1&&(o(0,"div",7),D(1,10),a()),e&2){l();let t=I(12);s(),u("ngTemplateOutlet",t)("ngTemplateOutletContext",M(2,_e))}}function be(e,r){if(e&1){let t=A();o(0,"th",13),O("click",function(){let i=x(t).$implicit,p=l(2);return C(p.onSort(i.key))}),o(1,"span",14),d(2),_(3,"un-icon",15),a()()}if(e&2){let t=r.$implicit,n=l(2);J("sorted",n.sortColumn()===t.key),U("data-test","recruiter_dashboard_sort_button_"+t.key),s(2),b(" ",t.label," "),s(),u("icon",n.sortIconFor(t))("size",n.viewport()=="mobile"?13:15)("color",n.sortColumn()===t.key?M(7,me):M(8,ge))}}function ve(e,r){if(e&1&&d(0),e&2){let t=l().$implicit;
1b(" ",t.applied==null?null:t.applied.toLocaleString()," ")}}function Oe(e,r){e&1&&(o(0,"span",16),d(1,"\u2014"),a())}function Me(e,r){if(e&1&&(o(0,"div",17),d(1),o(2,"span"),d(3),a()()),e&2){let t=l().$implicit,n=l(2);s(),b(" ",t.screened==null?null:t.screened.toLocaleString()," "),s(2),b("",n.percentOf(t.screened,t.applied),"%")}}function Pe(e,r){e&1&&(o(0,"span",16),d(1,"\u2014"),a())}function Se(e,r){if(e&1&&(o(0,"div",17),d(1),o(2,"span"),d(3),a()()),e&2){let t=l().$implicit,n=l(2);s(),b(" ",t.offered==null?null:t.offered.toLocaleString()," "),s(2),b("",n.percentOf(t.offered,t.applied),"%")}}function Te(e,r){e&1&&(o(0,"span",16),d(1,"\u2014"),a())}function we(e,r){if(e&1&&(o(0,"div",17),d(1),o(2,"span"),d(3),a()()),e&2){let t=l().$implicit,n=l(2);s(),b(" ",t.hired==null?null:t.hired.toLocaleString()," "),s(2),b("",n.percentOf(t.hired,t.applied),"%")}}function Ee(e,r){e&1&&(o(0,"span",16),d(1,"\u2014"),a())}function De(e,r){if(e&1&&(o(0,"tr")(1,"td"),d(2),a(),o(3,"td"),g(4,ve,1,1)(5,Oe,2,0,"span",16),a(),o(6,"td"),g(7,Me,4,2,"div",17)(8,Pe,2,0,"span",16),a(),o(9,"td"),g(10,Se,4,2,"div",17)(11,Te,2,0,"span",16),a(),o(12,"td"),g(13,we,4,2,"div",17)(14,Ee,2,0,"span",16),a()()),e&2){let t=r.$implicit;s(2),T(t.label||"\u2014"),s(2),h(t.applied?4:5),s(3),h(t.screened?7:8),s(3),h(t.offered?10:11),s(3),h(t.hired?13:14)}}function Ie(e,r){if(e&1&&(o(0,"div",8)(1,"table")(2,"thead",11)(3,"tr"),P(4,be,4,9,"th",12,he),a()(),o(6,"tbody"),P(7,De,15,5,"tr",null,xe),a()()()),e&2){let t=l();s(4),S(t.columns()),s(3),S(t.rows)}}function ke(e,r){if(e&1&&(o(0,"un-no-data",18)(1,"span"),d(2),a()()),e&2){let t=r.title;u("type","")("cardTitle","Hiring funnel by job, domain, location, organization, user type")("dataType","pie-chart")("img","https://d8it4huxumps7.cloudfront.net/uploads/images/6aa11d0e33029_hiring_funnel_empty_state.png")("enableImage",!0)("fillImage",!1),s(2),b(" ",t," ")}}var Wt=(()=>{class e{constructor(){this.viewportService=w(Ft),this.accountContextService=w(q),this._contextService=w(B),this.selectedAccountId=this.accountContextService.selectedAccountId,this.timeFrame=this._contextService.timeframe,this.viewport=c(()=>this.viewportService.viewport()),this.tabs=[{label:"Domain",value:"domain"},{label:"Location",value:"location"},{label:"Organization",value:"organization"},{label:"User type",value:"user_type"}],this._activeTab=f("domain",{debugName:"activeTab"}),this.activeTab=c(()=>this._activeTab(),{debugName:"activeTab"}),this._sortColumn=f("label",{debugName:"sortColumn"}),this.sortColumn=c(()=>this._sortColumn(),{debugName:"sortColumn"}),this._sortOrder=f("asc",{debugName:"sortOrder"}),this.sortOrder=c(()=>this._sortOrder(),{debugName:"sortOrder"}),this.entityType=m(void 0),this.status=m(null),this.subtype=m(null),this.entityIds=m(void 0),this.columns=c(()=>[{label:this.tabs.find(n=>n.value===this.activeTab())?.label??"Group",key:"label",numeric:!1},{label:"Applied",key:"applied",numeric:!0},{label:"Screened",key:"screened",numeric:!0},{label:"Offered",key:"offered",numeric:!0},{label:"Hired",key:"hired",numeric:!0}]),this._sortByParam=c(()=>this._sortColumn()==="label"?this.activeTab():this._sortColumn()),this.url="/api/recruiter-dashboard/hiring-funnel-breakdown",this.requestHeaders=c(()=>{let t=this.selectedAccountId();return t?{"selected-account":t}:null}),this.queryString=c(()=>{let t=this.timeFrame(),n={group_by:this.activeTab(),sort_by:this._sortByParam(),order:this._sortOrder(),filter:t.value};t.value==="custom"&&(n.start_date=t.startDate,n.end_date=t.endDate),this.entityType()&&(n.entity_type=this.entityType()),this.subtype()&&(n.subtype=this.subtype());let i=$(this.entityIds());return i?n.entity_ids=i:this.status()&&(n.status=this.status()),Object.entries(n).filter(([,p])=>p!=null&&p!=="").map(([p,v])=>`${p}=${encodeURIComponent(v)}`).join("&")}),this._incompleteCustom=c(()=>{let t=this.timeFrame();return t.value==="custom"&&(!t.startDate||!t.endDate)}),this.reinitCount=f(1,{debugName:"reinitCount"}),this.rows=[],this.totalData=f(0),this.isLoading=f(!0),this.hasError=f(!1),this._setupRefetchEffect()}_setupRefetchEffect(){let t=W(()=>{this.selectedAccountId(),this.timeFrame(),this.activeTab(),this._sortByParam(),this._sortOrder(),this.entityType(),this.status(),this.subtype(),this.entity
1Ids(),K(()=>this.reinitCount.update(n=>n+1))})}setActiveTab(t){t!==this._activeTab()&&(this._activeTab.set(t),this._sortColumn.set("label"),this._sortOrder.set("asc"))}onSort(t){this._sortColumn()===t?this._sortOrder.update(n=>n==="asc"?"desc":"asc"):(this._sortColumn.set(t),this._sortOrder.set("asc"))}sortIconFor(t){return this._sortColumn()!==t.key?"sorting_arrows.svg":t.numeric?this._sortOrder()==="asc"?"sort_with_asc_num.svg":"sort_with_desc_num.svg":this._sortOrder()==="asc"?"sort_with_asc_alpha.svg":"sort_with_desc_alpha.svg"}percentOf(t,n){return t===null||!n?null:Math.round(t/n*100)}statsChange(t){this.totalData.set(t?.total??0)}onLoadingChange(t){this.isLoading.set(t)}onDataFetchError(){this.hasError.set(!0)}responseAllData(t){this.hasError.set(!t?.status)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=E({type:e,selectors:[["hiring-funnel-table"]],inputs:{entityType:[1,"entityType"],status:[1,"status"],subtype:[1,"subtype"],entityIds:[1,"entityIds"]},decls:13,vars:20,consts:[["NO_DATA",""],[1,"funnel-table"],[1,"title","align-center"],[1,"box"],[1,"filter-wrapper"],[3,"tabSelected","filterTabs","defaultActiveValue"],[3,"type","rows"],[1,"no-data-state"],[1,"table-scroll"],[1,"d-block","mt-16",3,"valueChange","loading","statsChange","dataFetchError","responseAllData","reinitCount","displayStats","displayJumpTo","perPageResult","paginationSize","pagingStrategy","returnFieldName","resultUrl","queryString","requestHeaders","value","scrollTo","blackColor","secondaryFilter","shadowNone"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"grey-00"],[1,"sortable",3,"sorted"],[1,"sortable",3,"click"],[1,"align-center","gap-4"],[3,"icon","size","color"],[1,"grey-500-text"],[1,"count"],[1,"full-width",3,"type","cardTitle","dataType","img","enableImage","fillImage"]],template:function(n,i){if(n&1){let p=A();o(0,"div",1)(1,"div",2),d(2,"Hiring Funnel by"),a(),o(3,"div",3)(4,"div",4)(5,"recruiter-tabs",5),O("tabSelected",function(y){return x(p),C(i.setActiveTab(y.value))}),a()(),g(6,Ce,1,2,"app-un-table-loader",6)(7,fe,2,3,"div",7)(8,ye,2,3,"div",7)(9,Ie,9,0,"div",8),a()(),o(10,"app-pagination",9),vt("valueChange",function(y){return x(p),bt(i.rows,y)||(i.rows=y),C(y)}),O("loading",function(y){return x(p),C(i.onLoadingChange(y))})("statsChange",function(y){return x(p),C(i.statsChange(y))})("dataFetchError",function(){return x(p),C(i.onDataFetchError())})("responseAllData",function(y){return x(p),C(i.responseAllData(y))}),a(),j(11,ke,3,7,"ng-template",null,0,N)}n&2&&(s(5),u("filterTabs",i.tabs)("defaultActiveValue",i.activeTab()),s(),h(i.isLoading()?6:i.hasError()?7:i.rows.length?9:8),s(4),J("d-none",i.totalData()<5),u("reinitCount",i.reinitCount())("displayStats",!0)("displayJumpTo",!0)("perPageResult","5")("paginationSize",5)("pagingStrategy","on")("returnFieldName","data")("resultUrl",i.url)("queryString",i.queryString())("requestHeaders",i.requestHeaders()),yt("value",i.rows),u("scrollTo","pdng")("blackColor",!0)("secondaryFilter",null)("shadowNone",!0))},dependencies:[Z,Q,V,H,Ht,L,zt,At,qt],styles:[".funnel-table[_ngcontent-%COMP%]{background:var(--grey-50);border-radius:16px;padding:3px;margin-top:16px}@supports (corner-shape: squircle){.funnel-table[_ngcontent-%COMP%]{border-radius:32px;corner-shape:squircle}}.funnel-table[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{font-size:12px;line-height:100%;letter-spacing:0%;padding:0 12px;height:48px;text-transform:uppercase;color:var(--text-primary)}.funnel-table[_ngcontent-%COMP%] .box[_ngcontent-%COMP%]{background:var(--grey-00);border-radius:16px}@supports (corner-shape: squircle){.funnel-table[_ngcontent-%COMP%] .box[_ngcontent-%COMP%]{border-radius:32px;corner-shape:squircle}}.filter-wrapper[_ngcontent-%COMP%]{padding:10px}.table-scroll[_ngcontent-%COMP%]{overflow:scroll}.table-scroll[_ngcontent-%COMP%] table[_ngcontent-%COMP%] thead[_ngcontent-%COMP%]{font-size:12px;line-height:100%;border-color:var(--grey-200)!important}.table-scroll[_ngcontent-%COMP%] table[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-weight:400;min-width:max-content;color:var(--text-secondary)}.table-scroll[_ngcontent-%COMP%] table[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] th[_ngcontent-%COMP%]:first-child{padding:14px 16px 14px 26px}.table-scroll[_ngcontent-%COMP%] table[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] th[_ngcontent-%COMP%]:not(:first-child){padding:12px}.table-scroll[_ngcontent-%COMP%] table[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] th.sortable[_ngcontent-%COMP%]{cursor:pointer;-webkit-user-select:none;user-select:none}.table-scroll[_ngcontent-%COMP%] table[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] th.sorted[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:var(--text-blue);border-radius:4px;padding:2px 6px}@supports (corner-shape: squircle){.table-scroll[_ngcontent-%COMP%] table[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] th.sorted[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{border-radius:8px;corner-shape:squircle}}.table-scroll[_ngcontent-%COMP%] table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]{font-weight:500}.table-scroll[_ngcontent-%COMP%] table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:not(:last-child){border-bottom:.5px solid var(--grey-200)}.table-scroll[_ngcontent-%COMP%] table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:first-child{padding:14px 16px 14px 26px}.table-scroll[_ngcontent-%COMP%] table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:not(:first-child){padding:12px}@media (min-width: 768px){.table-scroll[_ngcontent-%COMP%] table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%]{font-size:12px}}@media (max-width: 767px){.table-scroll[_ngcontent-%COMP%] table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%]{font-size:10px}.table-scroll[_ngcontent-%COMP%] table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:first-child{padding:14px 16px 14px 24px}}@media (max-height: 767px) and (orientation: landscape) and (hover: none) and (pointer: coarse){.table-scroll[_ngcontent-%COMP%] table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%]{font-size:10px}.table-scroll[_ngcontent-%COMP%] table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:first-child{padding:14px 16px 14px 24px}}.table-scroll[_ngcontent-%COMP%] table[_ngcontent-%COMP%] .count[_ngcontent-%COMP%]{font-weight:500;font-size:12px;line-height:100%;color:var(--text-primary);display:flex;align-items:center;gap:10px}.table-scroll[_ngcontent-%COMP%] table[_ngcontent-%COMP%] .count[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-weight:400;font-size:10px;line-height:100%;color:var(--grey-500)}.no-data-state[_ngcontent-%COMP%]{min-height:360px;width:100%;display:flex;align-items:center;justify-content:center}.no-data-state[_ngcontent-%COMP%] un-no-data[_ngcontent-%COMP%] .un_no_data img{width:274px;height:169px}@media (max-width: 767px){.no-data-state[_ngcontent-%COMP%]{width:min-content}}@media (max-height: 767px) and (orientation: landscape) and (hover: none) and (pointer: coarse){.no-data-state[_ngcontent-%COMP%]{width:min-content}}"],changeDetection:0})}}return e})();k();var ct=["#6C63FF","#8B5CF6","#A78BFA","#C4B5FD","#DDD6FE"],Fe="hiring_automation";function Qt(e){return e.map((r,t)=>({label:r.label,count:r.count,percentage:r.percentage,color:ct[t]??ct[ct.length-1],isAutomation:r.code===Fe}))}k();var Ne=()=>["purple-700"],Ae=(e,r)=>r.label;function Re(e,r){if(e&1&&(o(0,"p",5),d(1),a()),e&2){let t,n=l();s(),b("Showing top ",(t=n.reasons())==null?null:t.length," reasons - click on card to see all reasons")}}function je(e,r){if(e&1&&D(0,6),e&2){l();let t=I(11);
1u("ngTemplateOutlet",t)}}function Le(e,r){if(e&1&&(o(0,"div",7),D(1,6),a()),e&2){l();let t=I(9);s(),u("ngTemplateOutlet",t)}}function ze(e,r){e&1&&_(0,"un-icon",11),e&2&&u("size",16)("color",M(2,Ne))}function He(e,r){if(e&1&&_(0,"span",19),e&2){let t=l().$implicit;Y("background",t.color)}}function Ve(e,r){if(e&1&&(o(0,"span",16),d(1),a()),e&2){let t=l().$implicit;s(),T(t.count.toLocaleString())}}function qe(e,r){if(e&1&&(o(0,"span",17),d(1),a()),e&2){let t=l().$implicit;s(),T(t.count.toLocaleString())}}function Be(e,r){if(e&1&&(o(0,"div",9)(1,"div",10),g(2,ze,1,3,"un-icon",11)(3,He,1,2,"span",12),o(4,"span",13),d(5),a()(),o(6,"div",14)(7,"div",15),g(8,Ve,2,1,"span",16),a(),g(9,qe,2,1,"span",17),a(),o(10,"div",18),d(11),a()()),e&2){let t=r.$implicit,n=l(2);s(2),h(t.isAutomation?2:3),s(3),T(t.label),s(2),Y("width",n.barWidth(t.count),"%")("background",t.color),s(),h(n.countInside(t.count)?8:-1),s(),h(n.countInside(t.count)?-1:9),s(2),b("",t.percentage,"%")}}function $e(e,r){if(e&1&&(o(0,"div",8),P(1,Be,12,9,"div",9,Ae),a()),e&2){let t=l();s(),S(t.reasons())}}function Je(e,r){e&1&&(o(0,"un-no-data",20)(1,"span"),d(2,"Lorem all created opportunity/Jobs/Internships will be shown here"),a()()),e&2&&u("type","")("cardTitle","Rejection split funnel")("dataType","pie-chart")("img","https://d8it4huxumps7.cloudfront.net/uploads/images/6aa2377d1c585_rejection_split_empty_state.png")("enableImage",!0)("fillImage",!1)}function Ue(e,r){if(e&1&&(o(0,"div",9)(1,"div",10),_(2,"span",21)(3,"span",22),a(),o(4,"div",14),_(5,"span",23),a(),_(6,"span",24),a()),e&2){let t=r.$implicit;s(5),Y("width",t,"%")}}function Ge(e,r){if(e&1&&(o(0,"div",8),P(1,Ue,7,2,"div",9,G),a()),e&2){let t=l();s(),S(t.skeletonRows)}}var Zt=(()=>{class e{constructor(){this._accountContextService=w(q),this._contextService=w(B),this.selectedAccountId=this._accountContextService.selectedAccountId,this.timeFrame=this._contextService.timeframe,this.skeletonRows=[90,70,55,35,25],this.entityType=m(void 0),this.status=m(null),this.subtype=m(null),this.entityIds=m(void 0),this._rejectionSplit=z(()=>{let t=this.selectedAccountId(),n=this.timeFrame();if(n.value==="custom"&&(!n.startDate||!n.endDate))return;let i={filter:n.value};n.value==="custom"&&(i.start_date=n.startDate,i.end_date=n.endDate),this.entityType()&&(i.entity_type=this.entityType()),this.subtype()&&(i.subtype=this.subtype());let p=$(this.entityIds());return p?i.entity_ids=p:this.status()&&(i.status=this.status()),{url:"/api/recruiter-dashboard/rejection-split",method:"GET",params:i,headers:{"selected-account":t??""}}}),this._hasError=c(()=>this._rejectionSplit.status()==="error"),this.reasons=c(()=>this._hasError()?[]:Qt(this._rejectionSplit.value()?.rejection_split??[])),this.isLoading=c(()=>this._rejectionSplit.isLoading()),this.hasError=c(()=>!!this._rejectionSplit.error()),this.isEmpty=c(()=>{let t=this.reasons();return t.length?t.every(n=>!n.count&&!n.percentage):!0}),this._maxCount=c(()=>this.reasons().reduce((t,n)=>Math.max(t,n.count),0)),this.LABEL_INSIDE_THRESHOLD=22}barWidth(t){let n=this._maxCount();return n?Math.round(t/n*100):0}countInside(t){return this.barWidth(t)>=this.LABEL_INSIDE_THRESHOLD}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=E({type:e,selectors:[["rejection-split"]],inputs:{entityType:[1,"entityType"],status:[1,"status"],subtype:[1,"subtype"],entityIds:[1,"entityIds"]},decls:12,vars:2,consts:[["NO_DATA",""],["LOADER",""],[1,"rejection-split"],[1,"title","align-center"],[1,"box"],[1,"subtitle"],[3,"ngTemplateOutlet"],[1,"no-data-state"],[1,"reasons"],[1,"reason"],[1,"label"],["icon","bolt.svg",3,"size","color"],[1,"dot",3,"background"],[1,"text"],[1,"bar-track"],[1,"bar"],[1,"count","inside"],[1,"count","outside"],[1,"percent"],[1,"dot"],[1,"full-width",3,"type","cardTitle","dataType","img","enableImage","fillImage"],[1,"skeleton","skeleton_dot"],[1,"skeleton","skeleton_text"],[1,"skeleton","skeleton_bar"],[1,"skeleton","skeleton_percent"]],template:function(n,i){n&1&&(o(0,"div",2)(1,"div",3),d(2,"Rejection Split"),a(),o(3,"div",4),g(4,Re,2,1,"p",5),g(5,je,1,1,"ng-container",6)(6,Le,2,1,"div",7)(7,$e,3,0,"div",8),a()(),j(8,Je,3,6,"ng-template",null,0,N)(10,Ge,3,0,"ng-template",null,1,N)),n&2&&(s(4),h(i.isEmpty()?-1:4),s(),h(i.isLoading()?5:i.hasError()||i.isEmpty()?6:7))},dependencies:[Z,Q,V,H,L],styles:[".rejection-split[_ngcontent-%COMP%]{background:var(--grey-50);border-radius:16px;padding:3px;margin-top:16px}@supports (corner-shape: squircle){.rejection-split[_ngcontent-%COMP%]{border-radius:32px;corner-shape:squircle}}.rejection-split[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{font-size:12px;line-height:100%;padding:0 12px;
1height:48px;text-transform:uppercase;color:var(--text-primary)}.rejection-split[_ngcontent-%COMP%] .box[_ngcontent-%COMP%]{background:var(--grey-00);border-radius:16px;padding:16px 20px}@supports (corner-shape: squircle){.rejection-split[_ngcontent-%COMP%] .box[_ngcontent-%COMP%]{border-radius:32px;corner-shape:squircle}}.subtitle[_ngcontent-%COMP%]{margin:0 0 20px;font-size:12px;color:var(--text-tertiary)}.reasons[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:16px}.reason[_ngcontent-%COMP%]{display:grid;grid-template-columns:220px 1fr 44px;align-items:center;gap:16px}@media (max-width: 767px){.reason[_ngcontent-%COMP%]{grid-template-columns:140px 1fr 40px;gap:10px}}@media (max-height: 767px) and (orientation: landscape) and (hover: none) and (pointer: coarse){.reason[_ngcontent-%COMP%]{grid-template-columns:140px 1fr 40px;gap:10px}}.reason[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px;min-width:0}.reason[_ngcontent-%COMP%] .dot[_ngcontent-%COMP%]{flex:0 0 auto;width:8px;height:8px;border-radius:100%}.reason[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{font-size:12px;color:var(--text-primary);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}@media (max-width: 767px){.reason[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{font-size:12px}}@media (max-height: 767px) and (orientation: landscape) and (hover: none) and (pointer: coarse){.reason[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{font-size:12px}}.reason[_ngcontent-%COMP%] .bar-track[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;min-width:0}.reason[_ngcontent-%COMP%] .bar[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:flex-end;min-width:44px;height:32px;padding:0 12px;box-sizing:border-box;border-radius:10px}@supports (corner-shape: squircle){.reason[_ngcontent-%COMP%] .bar[_ngcontent-%COMP%]{border-radius:20px;corner-shape:squircle}}.reason[_ngcontent-%COMP%] .count[_ngcontent-%COMP%]{font-size:12px;font-weight:600;white-space:nowrap}.reason[_ngcontent-%COMP%] .count.inside[_ngcontent-%COMP%]{color:var(--text-white)}.reason[_ngcontent-%COMP%] .count.outside[_ngcontent-%COMP%]{color:var(--text-primary)}.reason[_ngcontent-%COMP%] .percent[_ngcontent-%COMP%]{font-size:12px;color:var(--text-tertiary);text-align:right}.state_msg[_ngcontent-%COMP%]{margin:0;padding:16px 0;font-size:13px;color:var(--text-tertiary)}.skeleton[_ngcontent-%COMP%]{display:inline-block;background:linear-gradient(90deg,var(--grey-100) 25%,var(--grey-50) 37%,var(--grey-100) 63%);background-size:400% 100%;animation:_ngcontent-%COMP%_rejection-skeleton 1.4s ease infinite;border-radius:6px}@supports (corner-shape: squircle){.skeleton[_ngcontent-%COMP%]{border-radius:12px;corner-shape:squircle}}.skeleton_dot[_ngcontent-%COMP%]{flex:0 0 auto;width:8px;height:8px;border-radius:100%}.skeleton_text[_ngcontent-%COMP%]{width:70%;height:12px}.skeleton_bar[_ngcontent-%COMP%]{height:32px;border-radius:10px}@supports (corner-shape: squircle){.skeleton_bar[_ngcontent-%COMP%]{border-radius:20px;corner-shape:squircle}}.skeleton_percent[_ngcontent-%COMP%]{width:32px;height:12px}@keyframes _ngcontent-%COMP%_rejection-skeleton{0%{background-position:100% 50%}to{background-position:0 50%}}.no-data-state[_ngcontent-%COMP%]{min-height:200px;width:100%;display:flex;align-items:center;justify-content:center}.no-data-state[_ngcontent-%COMP%] un-no-data[_ngcontent-%COMP%] .un_no_data img{width:274px;height:169px}@media (max-width: 767px){.no-data-state[_ngcontent-%COMP%]{width:min-content}}@media (max-height: 767px) and (orientation: landscape) and (hover: none) and (pointer: coarse){.no-data-state[_ngcontent-%COMP%]{width:min-content}}"],changeDetection:0})}}return e})();k();var at=()=>["grey-500"],pt=()=>["grey-1100"],Xt=(e,r)=>r.value,Ye=(e,r)=>r.id;function We(e,r){e&1&&_(0,"un-icon",26),e&2&&u("size",18)("color",M(2,at))}function Qe(e,r){e&1&&_(0,"un-icon",27),e&2&&u("size",18)("color",M(2,pt))}function Ze(e,r){if(e&1){let t=A();o(0,"div",23)(1,"div",24),O("click",function(){let i=x(t).$implicit,p=l(4);return C(p.onSelect(i))}),o(2,"span",25),d(3),a(),g(4,We,1,3,"un-icon",26)(5,Qe,1,3,"un-icon",27),a()()}if(e&2){let t=r.$implicit,n=l(4);s(),U("data-test","recruiter_dashboard_job_option_button_"+t.value),s(2),T(t.label),s(),h(t.isCustom?4:n.isSelected(t)?5:-1)}}function Xe(e,r){if(e&1&&(o(0,"div",21),P(1,Ze,6,3,"div",23,Xt),a()),e&2){let t=l(3);s(),S(t.jobInternshipOptions)}}function Ke(e,r){e&1&&_(0,"un-icon",27),e&2&&u("size",18)("color",M(2,pt))}function tn(e,r){if(e&1){let t=A();o(0,"div",24),O("click",function(){let i=x(t).$implicit,p=l(4);return C(p.onSelect(i))}),o(1,"span",25),d(2),a(),g(3,Ke,1,3,"un-icon",27),a()}if(e&2){let t=r.$implicit,n=l(4);U("data-test","recruiter_dashboard_assessment_option_button_"+t.value),s(2),T(t.label),s(),h(n.isSelected(t)?3:-1)}}function en(e,r){if(e&1&&(o(0,"div",21),P(1,tn,4,3,"div",28,Xt),a()),e&2){let t=l(3);
1s(),S(t.assessmentOptions)}}function nn(e,r){if(e&1&&D(0,6),e&2){l(3);let t=I(15);u("ngTemplateOutlet",t)}}function on(e,r){if(e&1){let t=A();o(0,"div",15)(1,"p",16),d(2,"Select type"),a(),o(3,"div",17)(4,"div",18)(5,"button",19),O("click",function(){x(t);let i=l(2);return C(i.toggleJobsSection())}),o(6,"span",20),d(7,"Jobs & Internships"),a(),_(8,"un-icon",14),a(),g(9,Xe,3,0,"div",21),a(),o(10,"div",18)(11,"button",22),O("click",function(){x(t);let i=l(2);return C(i.toggleAssessmentsSection())}),o(12,"span",20),d(13,"Assessments"),a(),_(14,"un-icon",14),a(),g(15,en,3,0,"div",21),a()(),g(16,nn,1,1,"ng-container",6),a()}if(e&2){let t=l(2);s(8),u("icon",t.jobsExpanded()?"chevron_up.svg":"chevron_down.svg")("size",18)("color",M(9,at)),s(),h(t.jobsExpanded()?9:-1),s(5),u("icon",t.assessmentsExpanded()?"chevron_up.svg":"chevron_down.svg")("size",18)("color",M(10,at)),s(),h(t.assessmentsExpanded()?15:-1),s(),h(t.customPanelOpen()?16:-1)}}function an(e,r){if(e&1){let t=A();o(0,"div",9),O("clickOutside",function(){x(t);let i=l();return C(i.closeTypePanel())}),o(1,"button",10),O("click",function(){x(t);let i=l();return C(i.toggleTypePanel())}),o(2,"div",11),_(3,"un-icon",12),o(4,"span",13),d(5),a()(),_(6,"un-icon",14),a(),g(7,on,17,11,"div",15),a()}if(e&2){let t=l();u("delayClickOutsideInit",!0),s(3),u("icon","filter_alt.svg")("size",16),s(2),T(t.selectedTriggerLabel()),s(),u("icon",t.typePanelOpen()?"chevron_up.svg":"chevron_down.svg")("size",18)("color",M(8,at)),s(),h(t.typePanelOpen()?7:-1)}}function rn(e,r){if(e&1&&D(0,6),e&2){l(2);let t=I(17);u("ngTemplateOutlet",t)}}function sn(e,r){e&1&&_(0,"un-icon",27),e&2&&u("size",18)("color",M(2,pt))}function ln(e,r){if(e&1){let t=A();o(0,"div",38),O("click",function(){let i=x(t).$implicit,p=l(3);return C(p.toggleCustomOption(i.id))}),_(1,"span",39),o(2,"span",40),d(3),a(),g(4,sn,1,3,"un-icon",27),a()}if(e&2){let t=r.$implicit,n=l(3);U("data-test","recruiter_dashboard_custom_option_button_"+t.id),s(),J("flyout_dot_active",t.active),s(2),T(t.name),s(),h(n.isCustomSelected(t.id)?4:-1)}}function cn(e,r){e&1&&_(0,"un-no-data",36),e&2&&u("type","")("cardTitle","No data available")("enableImage",!0)}function pn(e,r){e&1&&(o(0,"p",37),d(1,"Loading more..."),a())}function dn(e,r){if(e&1&&(P(0,ln,5,5,"div",35,Ye,!1,cn,1,3,"un-no-data",36),g(3,pn,2,0,"p",37)),e&2){let t=l(2);S(t.customOptions()),s(3),h(t.loadingMore()?3:-1)}}function un(e,r){if(e&1){let t=A();o(0,"div",29)(1,"div",30)(2,"un-input",31),O("ngModelChange",function(i){x(t);let p=l();return C(p.onCustomSearch(i))}),a()(),o(3,"div",32),O("scroll",function(i){x(t);let p=l();return C(p.onCustomListScroll(i))}),g(4,rn,1,1,"ng-container",6)(5,dn,4,2),a(),o(6,"div",33)(7,"button",34),O("click",function(){x(t);let i=l();return C(i.applyCustomFilter())}),d(8," Apply Filter "),a()()()}if(e&2){let t=l();s(2),u("type","text")("fontSize","default")("size","medium")("ngModel",t.customSearchTerm()),s(2),h(t.customLoading()?4:5)}}function _n(e,r){e&1&&(o(0,"div",41),_(1,"span",42)(2,"span",43),a())}function mn(e,r){if(e&1&&P(0,_n,3,0,"div",41,G),e&2){let t=l();S(t.skeletonRows)}}var Vi=(()=>{class e{constructor(){this._listingsUrl="/api/recruiter-dashboard/get-account-entities",this.jobInternshipOptions=ot,this.assessmentOptions=lt,this.skeletonRows=Array.from({length:6}),this._selectedOption=f(ot[0]),this.selectedOption=c(()=>this._selectedOption()),this.selectedTriggerLabel=c(()=>this._selectedOption().value),this.statsEntityType=c(()=>this._selectedOption().entity_type),this.statsStatus=c(()=>this._selectedOption().status),this.statsSubType=c(()=>this._selectedOption().subtype),this._isJobScope=c(()=>this._selectedOption().entity_type==="jobs"),this.statsEntityIds=c(()=>Array.from(this._appliedCustomIds(),t=>String(t))),this.jobStatsStatus=c(()=>this.statsStatus()),this.jobStatsEntityIds=c(()=>this._isJobScope()?this.statsEntityIds():void 0),this._typePanelOpen=f(!1),this.typePanelOpen=c(()=>this._typePanelOpen()),this._jobsExpanded=f(!0),this.jobsExpanded=c(()=>this._jobsExpanded()),this._assessmentsExpanded=f(!1),this.assessmentsExpanded=c(()=>this._assessmentsExpanded()),this._customPanelOpen=f(!1),this.customPanelOpen=c(()=>this._customPanelOpen()),this._searchInput$=new _t,this.customSearchTerm=Pt(this._searchInput$.pipe(gt($t),mt(t=>(t??"").trim()),ht(),xt(()=>this._resetPaging())),{initialValue:""}),this._page=f(1),this._accumulated=f([]),this.customOptions=c(()=>this._accumulated()),this._hasMore=f(!0),this._listingsResource=z(()=>{if(this._customPanelOpen())return{url:this._listingsUrl,method:"GET",params:{entity_type:"jobs",searchTerm:this.customSearchTerm(),page:this._page(),per_page:Bt}}}),this.customLoading=c(()=>
1{if(!this._customPanelOpen()||this._page()!==1)return!1;let t=this._listingsResource.status();return t==="idle"||t==="loading"||t==="reloading"}),this.loadingMore=c(()=>this._listingsResource.status()==="loading"&&this._page()>1),this._customSelectedIds=f(new Set),this._appliedCustomIds=f(new Set),this.SCROLL_THRESHOLD_PX=48,this._setupAppendPageEffect()}_resetPaging(){this._page.set(1),this._accumulated.set([]),this._hasMore.set(!0)}_setupAppendPageEffect(){let t=W(()=>{let n=this._listingsResource.status(),i=n==="error"?void 0:this._listingsResource.value();if(n==="loading"||n==="reloading"||n==="idle")return;let p=K(()=>this._page());K(()=>this._appendPage(i,p))})}_appendPage(t,n){let i=(t?.data??[]).map(Jt),p=t?.pagination,v=p?p.current_page<p.last_page:!1;if(n===1)this._accumulated.set(i);else{let y=new Set(this._accumulated().map(R=>R.id)),et=i.filter(R=>!y.has(R.id));et.length&&this._accumulated.update(R=>[...R,...et])}this._hasMore.set(v)}onCustomListScroll(t){let n=t.target;n.scrollTop+n.clientHeight>=n.scrollHeight-this.SCROLL_THRESHOLD_PX&&(this._listingsResource.status()==="loading"||!this._hasMore()||this._page.update(p=>p+1))}toggleTypePanel(){this._typePanelOpen.update(t=>!t)}closeTypePanel(){this._typePanelOpen.set(!1),this._customPanelOpen.set(!1)}toggleJobsSection(){let t=!this._jobsExpanded();this._jobsExpanded.set(t),t?this._assessmentsExpanded.set(!1):this._customPanelOpen.set(!1)}toggleAssessmentsSection(){let t=!this._assessmentsExpanded();this._assessmentsExpanded.set(t),t&&(this._jobsExpanded.set(!1),this._customPanelOpen.set(!1))}isSelected(t){return this._selectedOption().value===t.value}onSelect(t){if(t.isCustom){if(this._customPanelOpen()){this._customPanelOpen.set(!1);return}this._resetPaging(),this._customPanelOpen.set(!0);return}this._selectedOption.set(t),this._appliedCustomIds.set(new Set),this._customSelectedIds.set(new Set),this._customPanelOpen.set(!1),this._typePanelOpen.set(!1)}closeCustomPanel(){this._customPanelOpen.set(!1)}onCustomSearch(t){this._searchInput$.next(t??"")}isCustomSelected(t){return this._customSelectedIds().has(t)}toggleCustomOption(t){this._customSelectedIds.update(n=>{let i=new Set(n);return i.has(t)?i.delete(t):i.add(t),i})}applyCustomFilter(){this._appliedCustomIds.set(new Set(this._customSelectedIds()));let t=this._appliedCustomIds().size;t>0&&this._selectedOption.update(n=>ut(dt({},n),{value:`Custom (${t})`,entity_type:"jobs"})),this._customPanelOpen.set(!1),this._typePanelOpen.set(!1)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=E({type:e,selectors:[["app-stats-analytics"]],decls:18,vars:17,consts:[["FILTERS",""],["CUSTOM_FLYOUT",""],["LOADER",""],[1,"stats-analytics"],[1,"title-box"],[1,"title-cta"],[3,"ngTemplateOutlet"],[1,"charts-wrapprt"],[3,"entityType","status","subtype","entityIds"],["clickOutside","",1,"type_dropdown",3,"clickOutside","delayClickOutsideInit"],["type","button","data-test","recruiter_dashboard_type_panel_button",1,"type_trigger","grey-200-border",3,"click"],[1,"align-center","gap-4"],[3,"icon","size"],[1,"type_trigger_text"],[3,"icon","size","color"],[1,"type_panel"],[1,"panel_heading"],[1,"panel_body"],[1,"type_section"],["type","button","data-test","recruiter_dashboard_jobs_section_button",1,"section_head",3,"click"],[1,"section_title"],[1,"type_options"],["type","button","data-test","recruiter_dashboard_assessments_section_button",1,"section_head",3,"click"],[1,"type_option_wrap"],[1,"type_option",3,"click"],[1,"option_label"],["icon","chevron_right.svg",3,"size","color"],["icon","check.svg",3,"size","color"],[1,"type_option"],[1,"custom_flyout"],[1,"flyout_search"],["iconLeft","search.svg","placeholder","Search jobs & internships",3,"ngModelChange","type","fontSize","size","ngModel"],[1,"flyout_list",3,"scroll"],[1,"pannel_ftt"],["unButton","","unButtonCircle","","unButtonSmall","","data-test","recruiter_dashboard_custom_filter_apply_button",3,"click"],[1,"flyout_row"],[3,"type","cardTitle","enableImage"],[1,"state_msg"],[1,"flyout_row",3,"click"],[1,"flyout_dot"],[1,"flyout_name"],[1,"flyout_row","flyout_row_skeleton"],[1,"flyout_dot","skeleton_shimmer"],[1,"flyout_name_skeleton","skeleton_shimmer"]],template:function(n,i){if
1(n&1&&(o(0,"section",3)(1,"div",4)(2,"h2"),d(3,"Stats & Analytics"),a(),o(4,"div",5),D(5,6),_(6,"app-timeframe-filter"),a()(),o(7,"div",7),_(8,"app-sourcing-compatibility-chart",8)(9,"app-gender-bifurcation-chart",8),a(),_(10,"hiring-funnel-table",8)(11,"rejection-split",8),a(),j(12,an,8,9,"ng-template",null,0,N)(14,un,9,5,"ng-template",null,1,N)(16,mn,2,0,"ng-template",null,2,N)),n&2){let p=I(13);s(5),u("ngTemplateOutlet",p),s(3),u("entityType",i.statsEntityType())("status",i.jobStatsStatus())("subtype",i.statsSubType())("entityIds",i.jobStatsEntityIds()),s(),u("entityType",i.statsEntityType())("status",i.statsStatus())("subtype",i.statsSubType())("entityIds",i.statsEntityIds()),s(),u("entityType",i.statsEntityType())("status",i.jobStatsStatus())("subtype",i.statsSubType())("entityIds",i.jobStatsEntityIds()),s(),u("entityType",i.statsEntityType())("status",i.jobStatsStatus())("subtype",i.statsSubType())("entityIds",i.jobStatsEntityIds())}},dependencies:[L,Dt,wt,Et,Tt,St,Z,Q,kt,It,Nt,Ut,Gt,Vt,Wt,Zt,V,H],styles:['.title[_ngcontent-%COMP%]{margin:0;font-weight:500;color:var(--text-primary)}.mb-28[_ngcontent-%COMP%]{margin-bottom:28px}.title-box[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;margin-bottom:28px;width:100%}.title-box[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{font-weight:600;font-size:24px;line-height:130%;color:var(--text-primary)}.title-box[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]:not(.mb-28){margin:0}.title-box[_ngcontent-%COMP%] h2[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:12px;line-height:130%;color:var(--text-secondary)}.title-box[_ngcontent-%COMP%] .title-cta[_ngcontent-%COMP%]{display:flex;align-items:center;gap:6px}.page-title[_ngcontent-%COMP%]{font-weight:600;font-size:24px;line-height:130%;color:var(--text-primary)}.page-title[_ngcontent-%COMP%]:not(.mb-28){margin:0}@media (max-width: 768px){.title-box[_ngcontent-%COMP%]{flex-direction:column;align-items:flex-start;gap:10px}}.charts-wrapprt[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(2,1fr);gap:20px;margin-top:30px}@media (max-width: 767px){.charts-wrapprt[_ngcontent-%COMP%]{grid-template-columns:1fr}}@media (max-height: 767px) and (orientation: landscape) and (hover: none) and (pointer: coarse){.charts-wrapprt[_ngcontent-%COMP%]{grid-template-columns:1fr}}.search_row[_ngcontent-%COMP%]{position:sticky;top:48px;z-index:2;background:var(--grey-00)}.search_row[_ngcontent-%COMP%] un-input{width:100%}.search_row[_ngcontent-%COMP%] un-input input{border:unset!important;border-bottom:1px solid var(--grey-500)!important;border-radius:unset!important}.search_row[_ngcontent-%COMP%] un-input input:focus{outline:unset!important}.state_msg[_ngcontent-%COMP%]{margin:0;padding:12px 16px;font-size:13px;color:var(--text-tertiary)}.opp_row[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px;width:100%}.opp_row[_ngcontent-%COMP%] .opp_dot[_ngcontent-%COMP%]{flex:0 0 auto;width:8px;height:8px;background:var(--grey-500);border-radius:50px}.opp_row[_ngcontent-%COMP%] .opp_dot_active[_ngcontent-%COMP%]{background:var(--green-600)}.opp_row[_ngcontent-%COMP%] .opp_name[_ngcontent-%COMP%]{flex:1 1 auto;font-size:12px;color:var(--text-primary)}.option_box[_ngcontent-%COMP%] .option[_ngcontent-%COMP%]{padding:10px 16px;margin:2px 4px;border-radius:4px}.option_box[_ngcontent-%COMP%] .option[_ngcontent-%COMP%]:hover{background:var(--grey-50)}.type_dropdown[_ngcontent-%COMP%]{position:relative;display:inline-block}.type_trigger[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:6px;padding:6px 8px;background:var(--grey-00);border:1px solid var(--grey-500);border-radius:50px;cursor:pointer}.type_trigger[_ngcontent-%COMP%]:hover{background:var(--grey-50)}.type_trigger_text[_ngcontent-%COMP%]{font-size:12px;color:var(--text-primary);text-transform:capitalize}.type_panel[_ngcontent-%COMP%]{position:absolute;top:calc(100% + 6px);right:0;z-index:20;display:flex;flex-direction:column;width:310px;max-height:425px;overflow:visible;background:var(--grey-00);border:.5px solid var(--stroke-primary);border-radius:12px;box-shadow:0 8px 24px #0000001f}@supports (corner-shape: squircle){.type_panel[_ngcontent-%COMP%]{border-radius:24px;corner-shape:squircle}}.panel_body[_ngcontent-%COMP%]{flex:1 1 auto;min-height:0;padding:6px;overflow-y:auto}.panel_heading[_ngcontent-%COMP%]{flex:0 0 auto;margin:0;padding:10px 8px 6px 14px;font-size:12px;font-weight:500;color:var(--text-primary)}.type_section[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}.section_head[_ngcontent-%COMP%]{width:100%;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 6px 10px 10px;background:transparent;border:none;cursor:pointer}.section_title[_ngcontent-%COMP%]{font-size:12px;font-weight:600;color:var(--text-primary)}.type_options[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%;padding-bottom:6px}.type_option[_ngcontent-%COMP%]{width:100%;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 6px 10px 26px;background:transparent;border:none;text-align:left;cursor:pointer}.type_option[_ngcontent-%COMP%]:hover{background:var(--grey-50)}.option_label[_ngcontent-%COMP%]{font-size:12px;color:var(--text-primary);text-transform:capitalize}.type_option_wrap[_ngcontent-%COMP%]{position:relative}.custom_flyout[_ngcontent-%COMP%]{position:absolute;right:calc(100% + 12px);top:90px;z-index:50;display:flex;flex-direction:column;width:310px;max-height:320px;background:var(--grey-00);border:.5px solid var(--stroke-primary);border-radius:12px;box-shadow:0 12px 28px #00000029;overflow:hidden}@supports (corner-shape: squircle){.custom_flyout[_ngcontent-%COMP%]{border-radius:24px;corner-shape:squircle}}.flyout_search[_ngcontent-%COMP%]{flex:0 0 auto;border-bottom:.5px solid var(--stroke-primary)}.flyout_search[_ngcontent-%COMP%] un-input{width:100%}.flyout_search[_ngcontent-%COMP%] un-input input{border:unset!important;border-bottom:1px solid var(--grey-200);border-radius:unset!important}.flyout_search[_ngcontent-%COMP%] un-input input:focus{outline:unset!important}.flyout_list[_ngcontent-%COMP%]{flex:1 1 auto;min-height:0;overflow-y:auto;padding:4px 0}.flyout_row[_ngcontent-%COMP%]{width:100%;display:flex;align-items:center;gap:12px;padding:10px 16px;background:transparent;border:none;text-align:left;cursor:pointer}.flyout_row[_ngcontent-%COMP%]:hover{background:var(--grey-50)}.flyout_dot[_ngcontent-%COMP%]{flex:0 0 auto;width:8px;height:8px;background:var(--grey-500);border-radius:50px}.flyout_dot_active[_ngcontent-%COMP%]{background:var(--green-600)}.flyout_name[_ngcontent-%COMP%]{flex:1 1 auto;font-size:12px;color:var(--text-primary)}.flyout_row_skeleton[_ngcontent-%COMP%]{cursor:default}.flyout_row_skeleton[_ngcontent-%COMP%]:hover{background:transparent}.flyout_name_skeleton[_ngcontent-%COMP%]{flex:1 1 auto;height:12px;border-radius:6px}@supports (corner-shape: squircle){.flyout_name_skeleton[_ngcontent-%COMP%]{border-radius:12px;corner-shape:squircle}}.skeleton_shimmer[_ngcontent-%COMP%]{position:relative;overflow:hidden;background:var(--grey-100)}.skeleton_shimmer[_ngcontent-%COMP%]:after{content:"";position:absolute;inset:0;transform:translate(-100%);background:linear-gradient(90deg,transparent,var(--grey-50),transparent);animation:_ngcontent-%COMP%_flyout-skeleton-shimmer 1.2s ease-in-out infinite}@keyframes _ngcontent-%COMP%_flyout-skeleton-shimmer{to{transform:translate(100%)}}.pannel_ftt[_ngcontent-%COMP%]{flex:0 0 auto;display:flex;justify-content:flex-end;padding:10px 12px;border-top:.5px solid var(--stroke-primary)}@media (max-width: 767px){.type_panel[_ngcontent-%COMP%]{left:0;right:auto;width:min(300px,100vw - 32px);max-height:70vh}.custom_flyout[_ngcontent-%COMP%]{position:fixed;inset:50% auto auto 50%;transform:translate(-50%,-50%);width:calc(100vw - 80px);max-width:280px;max-height:50vh}}@media (max-height: 767px) and (orientation: landscape) and (hover: none) and (pointer: coarse){.type_panel[_ngcontent-%COMP%]{left:0;right:auto;width:min(300px,100vw - 32px);max-height:70vh}.custom_flyout[_ngcontent-%COMP%]{position:fixed;inset:50% auto auto 50%;transform:translate(-50%,-50%);width:calc(100vw - 80px);max-width:280px;max-height:50vh}}'],changeDetection:0})}}return e})();export{Vi as StatsAnalyticsComponent};
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.