1import{a as H}from"./chunk-DUBKU2HS.js";import{a as Y}from"./chunk-KASXFZ6P.js";import{a as Z}from"./chunk-DJYPL7W2.js";import{a as q}from"./chunk-EGCSG2G2.js";import{a as B}from"./chunk-ZA2VGKQE.js";import{a as T,d as V}from"./chunk-VD3DNBDN.js";import{c as ee,e as G}from"./chunk-VISZOBOM.js";import{$b as x,Da as y,Dc as z,Ea as n,Ib as c,Ic as O,Jb as E,Ka as S,Kb as C,Qa as I,Wb as M,Zb as j,ba as w,cb as u,db as f,e as X,eb as b,ec as P,fa as A,fb as L,ga as N,gb as D,ha as U,hb as p,ib as l,jb as r,kb as v,la as F,ra as k,rb as $,tb as R,vb as d}from"./chunk-NPSW5S2Y.js";var o=X(ee());var J=a=>({"hide-btn":a}),te=a=>({active:a});function ie(a,t){a&1&&(l(0,"div",8),U(),l(1,"svg",10)(2,"style"),c(3,".spn_obj{transform-origin:center;animation:spn_il .75s infinite linear} @keyframes spn_il{100%{transform:rotate(360deg)}}"),r(),v(4,"path",11),r()())}function ae(a,t){if(a&1&&(l(0,"li")(1,"a",12),c(2),r()()),a&2){let e=t.$implicit,i=d(3);n(),p("href",x("",i.mainLinkPrefix,"",i.itemLinkPostfix,"",i.stateLink,"/",i.companyLink,"/",e.pageLink),y)("title",M(e.title)),n(),C(" ",e.title," ")}}function ne(a,t){if(a&1&&(l(0,"div",9)(1,"ul"),L(2,ae,3,9,"li",null,b),r()()),a&2){let e=d(2);n(2),D(e.groupedPages1)}}function oe(a,t){if(a&1&&(l(0,"li",16)(1,"a",5),c(2),r()()),a&2){let e=t.$implicit,i=d(4);p("ngClass",P(8,te,i.paginator.currentPage===e)),n(),p("href",x("",i.mainLinkPrefix,"",i.pageLinkPostfix,"",i.stateLink,"/",i.companyLink,"/",e),y),n(),E(e)}}function re(a,t){if(a&1&&(l(0,"ul",14)(1,"li",15)(2,"a",5),c(3,"<"),r()(),L(4,oe,3,10,"li",16,b),l(6,"li",17)(7,"a",5),c(8," >"),r()()()),a&2){let e=d(3);n(),p("ngClass",P(14,J,e.paginator.currentPage===1)),n(),p("href",x("",e.mainLinkPrefix,"",e.pageLinkPostfix,"",e.stateLink,"/",e.companyLink,"/",e.paginator.currentPage-1),y),n(2),D(e.paginator.pages),n(2),p("ngClass",P(16,J,e.paginator.currentPage===e.paginator.totalPages)),n(),p("href",x("",e.mainLinkPrefix,"",e.pageLinkPostfix,"",e.stateLink,"/",e.companyLink,"/",e.paginator.currentPage+1),y)}}function se(a,t){if(a&1&&(l(0,"div")(1,"div",13),u(2,re,9,18,"ul",14),r()()),a&2){let e=d(2);n(2),f(e.paginator.pages&&e.paginator.pages.length?2:-1)}}function le(a,t){if(a&1){let e=$();l(0,"div",4)(1,"p"),c(2," Use the links below to see the salary details of the following "),l(3,"em"),c(4),r(),c(5),r(),l(6,"p"),c(7," You can see similar information for "),l(8,"a",5),c(9),r()(),l(10,"div",6)(11,"input",7),R("keyup",function(s){A(e);let m=d();return N(m.applyListFilter(s))}),r(),u(12,ie,5,0,"div",8),u(13,ne,4,0,"div",9),u(14,se,3,1,"div"),r()()}if(a&2){let e=d();n(4),E(e.company),n(),C(" employees in ",e.state,". "),n(3),p("href",j("",e.mainLinkPrefix,"",e.otherCompanies,"",e.stateLink,"/1"),y),n(),C("other ",e.state," companies."),n(3),f(e.loadingSearch()?12:-1),n(),f(e.loadingSearch()?-1:13),n(),f(e.showPagination()?14:-1)}}var K=class a{constructor(t,e,i,s){this.activatedRoute=t;this.api=e;this.pageService=i;this.paginatorService=s}
1pageName="us_salaries_salary_all_empls";dateCreated="September 29, 2026";dateUpdated="";pageTitle="";keywords=[];state="";stateLink="";groupedPages1=[{title:"",url:""}];groupedPagesCopy=[];loadingSearch=k(!1);populationYear=2010;popYears=[2021];chartData=[];loadingData=k(!0);paramsSubscription;companyLink="";company="";mainLinkPrefix="/us-salaries/";itemLinkPostfix="detail-per-employee/";pageLinkPostfix="detail-per-employee-list-of-employees/";otherCompanies="detail-per-employee-list-of-employees-list-of-companies/";showPagination=k(!0);paginator;smallPaginator;pageSize=25;totalList=1e3;pageNum=1;pType="ai";destroyRef=w(F);async ngOnInit(){try{this.loadingData.set(!0),this.paramsSubscription=this.activatedRoute.paramMap.subscribe(t=>{let e=t.get("pageNum"),i=t.get("state"),s=t.get("company");this.updatePageData(i,e,s)})}catch{}}async updatePageData(t,e,i){try{this.loadingData.set(!0),e||(e=1);let s=(0,o.snakeCase)((0,o.toLower)(t)),m=(0,o.snakeCase)(i),_="ai",h=`${s}_us_salaries_list_of_employees_per_company_${m}_page_${e}`;this.api.get("/resource-data",{resourceName:h,rType:this.pType}).pipe(T(this.destroyRef)).subscribe({next:g=>{this.dataReceived(g,t,i,e)},error:g=>{}})}catch(s){console.log("error getting pop page.",s)}}async dataReceived(t,e,i,s){let m=[],_=0,h=(0,o.startCase)((0,o.toLower)(e)),g=(0,o.startCase)((0,o.toLower)(i));t.list&&t.list.length>0&&(m=t.list,_=t.total),this.state=h,this.stateLink=(0,o.kebabCase)((0,o.toLower)(h)),this.company=g,this.companyLink=(0,o.kebabCase)((0,o.toLower)(g)),this.groupedPages1=m,this.groupedPagesCopy=m,this.totalList=_,this.pageTitle=`Salary Details for Employees of ${g} in ${h} - Page ${s}`;let Q=(0,o.snakeCase)((0,o.toLower)(e)),W=(0,o.snakeCase)(i);this.pageName=`${Q}_us_salaries_list_of_employees_per_company_${W}_page_${s}`,this.pageService.performPrePageLoadTasks(this.pageName,this.pageTitle),this.pageService.addNoIndexTag(),this.setPage(Number(s)),this.loadingData.set(!1)}setPage(t){let e=this.paginatorService.getPaginator(this.totalList,t,this.pageSize);this.paginator=e,this.pageNum=t}async applyListFilter(t){let e=(0,o.get)(t,"target.value","")||(0,o.get)(t,"srcElement.value","");e=e.trim(),(t.keyCode===13||t.keyCode===9)&&e!==""&&(this.showPagination.set(!1),this.loadingSearch.set(!0),this.api.get("/sns-search/some",{searchTerm:e,pageName:this.pageName,state:this.state,type:`comp-employee-${this.companyLink}`,rType:`sns_${this.pType}`}).pipe(T(this.destroyRef)).subscribe({next:i=>{let s=[];for(let m=0;m<i.length;m++){let _=i[m].resourceData;s.push(_)}this.groupedPages1=s,this.loadingSearch.set(!1)},error:i=>{console.log("there was an error filtering data",i)}})),e==""&&(this.showPagination.set(!0),this.groupedPages1=this.groupedPagesCopy)}async ngOnDestroy(){this.paramsSubscription&&this.paramsSubscription.unsubscribe()}static \u0275fac=function(e){return new(e||a)(S(B),S(G),S(V),S(H))};static \u0275cmp=I({type:a,selectors:[["us-salaries-salary-detail-all-empls"]],decls:8,vars:5,consts:[[3,"pageName"],[1,"page-us","rowFlex"],[1,"central-container","colFlex"],[1,"vis-page-title"],[1,"sub-section"],[3,"href"],[1,"colFlex","grouped-pages-container"],["placeholder","Type Part of Name and press Enter to filter list",1,"filter-input",3,"keyup"],[1,"loading-spinner"],[1,"colFlex","grouped-pages-col-1"],["width","24","height","24","viewBox","0 0 24 24","xmlns","http://www.w3.org/2000/svg"],["d","M10.72,19.9a8,8,0,0,1-6.5-9.79A7.77,7.77,0,0,1,10.4,4.16a8,8,0,0,1,9.49,6.52A1.54,1.54,0,0,0,21.38,12h.13a1.37,1.37,0,0,0,1.38-1.54,11,11,0,1,0-12.7,12.39A1.54,1.54,0,0,0,12,21.34h0A1.47,1.47,0,0,0,10.72,19.9Z",1,"spn_obj"],[1,"level-0",3,"href","title"],[1,"rowFlex","paginator-row"],[1,"pagination"],[1,"prev-btn",3,"ngClass"],[3,"ngClass"],[1,"next-btn",3,"ngClass"]],template:function(e,i){e&1&&(v(0,"top-ad-group",0),l(1,"div",1)(2,"div",2)(3,"div",3),c(4),r(),u(5,le,15,10,"div",4),r(),v(6,"sidebar-ad-group",0),r(),v(7,"bottom-ad-group",0)),e&2&&(p("pageName",i.pageName),n(4),C(" ",i.pageTitle," "),n(),f(i.loadingData()?-1:5),n(),p("pageName",i.pageName),n(),p("pageName",i.pageName))},dependencies:[O,z,Y,Z,q],encapsulation:2})};export{K as USSalariesSalaryDetailAllEmplsComponent};
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.