PageSourceSearch

https://app.www.sbir.gov/chunk-7MEYGFIX.js

js sbir.gov collected 2026-09-24 15:15:50 UTC 30,547 bytes, 1 lines download raw bytes

1import{a as ee}from"./chunk-Y2VMQTO7.js";import{Ba as se,d as B,ga as F,la as te,ma as V,na as j,oa as W,ya as U}from"./chunk-GCOADJ3H.js";import{Aa as b,Ba as f,Ca as I,Da as k,Dc as re,Ea as L,Fa as p,Ga as n,Gc as le,Ha as i,Ia as x,K as J,Oa as y,Q as u,Qa as m,Qb as D,R as _,Sa as g,Vc as z,Xb as N,Yb as Z,fb as o,gb as h,hb as A,ia as s,ib as E,kb as w,kc as R,lb as v,mb as O,mc as Y,na as C,nc as $,pc as ie,qa as T,qc as ne,ra as K,rc as q,s as P,vb as Q,vc as ae,wb as S,xb as M,yb as X,yc as oe}from"./chunk-IK7DW4NA.js";var ue=(r,c,e)=>({itemsPerPage:r,currentPage:c,totalItems:e});function _e(r,c){if(r&1){let e=y();n(0,"div",51)(1,"input",52),m("change",function(){let t=u(e).$implicit,l=g(2);return _(l.setAwardYearOptions(t.label))}),i(),n(2,"label",53),o(3),i()()}if(r&2){let e=c.$implicit,a=g(2);s(),p("checked",a.isChecked(e.label))("id",e.id)("value",e.id),s(),p("for",e.id),s(),h(e.label)}}function be(r,c){if(r&1&&(n(0,"div",27)(1,"fieldset",30)(2,"legend",31),o(3,"Select an Award Year "),i(),k(4,_e,4,5,"div",51,I),i()()),r&2){let e=g();s(4),L(e.awardYearList)}}function fe(r,c){if(r&1){let e=y();n(0,"div",28)(1,"a",54),m("click",function(){u(e);let t=g();return _(t.searchAwards())}),o(2,"Apply \u{1F5D8}"),i()()}}function Ce(r,c){if(r&1){let e=y();n(0,"div",37)(1,"a",54),m("click",function(){u(e);let t=g();return _(t.searchAwards())}),o(2,"Apply \u{1F5D8}"),i()()}}function ye(r,c){if(r&1){let e=y();n(0,"div",42)(1,"a",54),m("click",function(){u(e);let t=g();return _(t.searchAwards())}),o(2,"Apply \u{1F5D8}"),i()()}}function xe(r,c){if(r&1&&(n(0,"p"),o(1,"Showing "),n(2,"span",55),o(3),i(),o(4," of "),n(5,"span",55),o(6),i(),o(7," results "),i()),r&2){let e=g();s(3),E("",e.offSetMin," - ",e.offSetMax),s(3),h(e.totalRecords)}}function we(r,c){if(r&1){let e=y();n(0,"tbody")(1,"tr",62)(2,"td"),o(3),i(),n(4,"td"),o(5),i(),n(6,"td"),o(7),S(8,"currency"),i(),n(9,"td"),o(10),i(),n(11,"td"),o(12),i(),n(13,"td")(14,"button",63),m("click",function(){let t=u(e),l=t.$implicit,d=t.$index,ge=g(3);return _(ge.btnAction("MANAGE_OBLIGATIONS",l,d))}),o(15,"Manage Obligations "),i()()()()}if(r&2){let e=c.$implicit,a=c.$index;s(),p("ngClass",a%2===0?"bg-lightest-gray":""),s(2),h(e.proposalTitle),s(2),h(e.phase),s(2),h(M(8,6,e.totalObligationAmount)),s(3),h(e.contractNumber),s(2),h(e.firmName)}}function ve(r,c){if(r&1&&(n(0,"table",57)(1,"thead")(2,"tr",59)(3,"th",60),o(4,"Award Title"),i(),n(5,"th",61),o(6,"Phase"),i(),n(7,"th",61),o(8,"Current Obligation Totals"),i(),n(9,"th",61),o(10,"Contract"),i(),n(11,"th",61),o(12,"Firm"),i(),n(13,"th",61),o(14,"Actions"),i()()(),k(15,we,16,8,"tbody",null,I),S(17,"paginate"),i()),r&2){let e=g(2);s(15),L(X(17,0,e.awardsList,Q(3,ue,e.numberOfRecordsPerPage,e.page,e.totalRecords)))}}function Oe(r,c){r&1&&(n(0,"h3"),o(1,"There are no results pertaining to your selected search criteria. Please change your selections and try again."),i())}function Se(r,c){if(r&1){let e=y();n(0,"pagination-controls",64),m("pageChange",function(t){u(e);let l=g(2);return _(l.onTableDataChange(t))}),i()}}function Me(r,c){if(r&1&&(n(0,"div")(1,"div",56),b(2,ve,18,7,"table",57)(3,Oe,2,0,"h3"),i(),b(4,Se,1,0,"pagination-controls",58),i()),r&2){let e=g();s(2),f(e.totalRecords!==0?2:3),s(2),f(e.totalRecords!==0?4:-1)}}function Ie(r,c){r&1&&x(0,"app-loading-placeholder",50),r&2&&p("count",5)("appearance","line")("isNewLoadingPlaceholder",!0)}var G=(()=>{class r{constructor(e,a,t,l){this.agencyDashboardService=e,this.activatedRoute=a,this.router=t,this.dialog=l,this.filterList={awardYear:[],program:"",phase:"",title:"",contractNumber:"",firmName:"",trackingNumber:""},this.navigationList=[{label:"Return to Upload Portal",id:"RETURN_UPLOAD_PORTAL"}],this.awardsList=[],this.awardYearList=[],this.phaseList=[],this.programList=[],this.selectedAwardYearList=[],this.targetPage="",this.page=1,this.totalRecords=2,this.numberOfRecordsPerPage=10,this.pageNumber=0,this.isProgramSelected=!1,this.isPhaseSelected=!1,this.isAwardYearSelected=!1,this.loadData=!1,this.helpdesk_param="",this.requestFrom=!1,this.agencyId=parseInt(this.activatedRoute.snapshot.params.agencyId,0),sessionStorage.getItem("_userProfileInfo")&&(this.agencyName=JSON.parse(sessionStorage.getItem("_userProfileInfo")).Organization_Name,this.govAcronym=JSON.parse(sessionStorage.getItem("_userProfileInfo")).Org_Code),this.agencyName=this.agencyName??sessionStorage.getItem("agencyName"),this.govAcronym=this.govAcronym??sessionStorage.getItem("govAcronym"),this.targetPage=a.snapshot.data.targetPage,this.requestFrom=a.snapshot.queryParams.RequestFrom=="HelpDesk"}ngOnInit(){this.loadInitialData()}loadInitialData(){let e=this.agencyDashboardService.getLoopkup("year"),a=this.agencyDashboardService.getLoopkup("phase"),t=this.agencyDashboardService.getLoopkup("program");P([e,a,t]).subscribe(l=>{l[0].status===200&&l[0].body&&l[0].body.length&&l[0].body.map(d=>{d.Program_Year<=ee.getCurrentFiscalYear()&&this.awardYearList.push({id:d.Year_ID,label:d.Program_Year})}),l[1].status===200&&l[1].body&&l[1].body.length&&l[1].body.map(d=>{this.phaseList.push({value:d.Phase_ID,label:d.Phase_Title})}),l[2].status===200&&(l[2].body&&l[2].body.length&&l[2].body.map(d=>{this.programList.push({value:d.Program_ID,label:d.Program_Name})}),this.getAwards(!0))},l=>{console.log(l)}
1)}getAwards(e=!0){this.loadData=!1;let a={};for(let t in this.filterList)`${this.filterList[t]}`&&(t!=="awardYear"?a[t]=`${this.filterList[t]}`:a[t]=this.filterList[t]);this.agencyDashboardService.getAllAwardsForObligations(this.agencyId,this.pageNumber,a,e).subscribe(t=>{t.status===200&&(this.totalRecords=t.body.totalRecords,this.awardsList=t.body.records,this.pageNumber===0?(this.offSetMin=1,this.offSetMax=10):(this.offSetMin=this.pageNumber*10+1,this.offSetMax=(this.pageNumber+1)*10),this.offSetMax>this.totalRecords&&(this.offSetMax=this.totalRecords),this.loadData=!0)},t=>{console.log(t)})}btnAction(e,a,t){switch(this.requestFrom&&(this.helpdesk_param="?RequestFrom=HelpDesk"),e){case"MANAGE_OBLIGATIONS":sessionStorage.setItem("awardId",a.awardId),this.requestFrom?this.router.navigate(["agency-dashboard/"+this.agencyId+"/manage-obligations/proposal/"+a.proposalId+"/list-obligations"],{queryParams:{RequestFrom:"HelpDesk"}}):this.router.navigate(["agency-dashboard/"+this.agencyId+"/manage-obligations/proposal/"+a.proposalId+"/list-obligations"+this.helpdesk_param]);break;case"RETURN_UPLOAD_PORTAL":let l=this.dialog.open(W,{width:"450px"});l.componentInstance.displayText="Are you sure you want to Return to Upload Portal?",l.componentInstance.displayText="Unsaved edits will be lost.",l.componentInstance.confirmationButtonText="OK",l.afterClosed().subscribe(d=>{l&&d.closeType&&d.closeType==="confirmed"&&(this.agencyDashboardService.setSuccessMessageMap(!1),this.router.navigateByUrl("/agency-dashboard/"+this.agencyId+"/upload-portal"+this.helpdesk_param))});break;default:break}}setAwardYearOptions(e){let a=this.selectedAwardYearList.find(this.findIndexToUpdate,e),t=this.selectedAwardYearList.indexOf(a);t===-1?this.selectedAwardYearList.push(e):this.selectedAwardYearList.splice(t,1),this.filterList.awardYear=this.selectedAwardYearList,this.isAwardYearSelected=this.selectedAwardYearList.length>0}isChecked(e){let a=this.selectedAwardYearList.find(this.findIndexToUpdate,e);return this.selectedAwardYearList.indexOf(a)!==-1}findIndexToUpdate(e){return e===this}changeProgram(e){this.filterList.program=e,this.isProgramSelected=!0}changePhase(e){this.filterList.phase=e,this.isPhaseSelected=!0}onTableDataChange(e){this.page=e,this.pageNumber=e-1,this.getAwards(!1)}searchAwards(){this.pageNumber=0,this.page=1,this.getAwards(!1)}clearFilterList(){this.selectedAwardYearList=[],this.filterList={awardYear:[],program:"",phase:"",title:"",contractNumber:"",firmName:"",trackingNumber:""},this.pageNumber=0,this.isAwardYearSelected=!1,this.isPhaseSelected=!1,this.isProgramSelected=!1,this.getAwards(!1)}static{this.\u0275fac=function(a){return new(a||r)(C(U),C(R),C(Y),C(F))}}static{this.\u0275cmp=T({type:r,selectors:[["app-manage-obligations"]],decls:99,vars:18,consts:[["id","main-content"],[3,"pageTitle"],[1,"grid-container"],[3,"onNavClickEvent","agencyTitle","govAcronym","navigationList"],["aria-labelledby","award-data-tab","id","award-data","role","tabpanel","tabindex","0"],[1,"padding-y-2","margin-bottom-4","padding-bottom-4"],[1,"display-flex","flex-align-center"],["alt","","src","/assets/pencil-icon-orange.svg",1,"width-4","margin-right-1"],[1,"grid-row"],[1,"grid-col-12","tablet:grid-col-3"],[1,"margin-bottom-6"],[1,"usa-label","margin-top-0"],["placeholder","","type","text",1,"usa-input","width-card-lg",3,"ngModelChange","ngModel"],[1,"usa-label","margin-top-2"],[1,"usa-button-group","margin-top-2"],[1,"usa-button-group__item","margin-right-2"],["type","button",1,"usa-button",3,"click"],[1,"usa-button-group__item"],["type","button",1,"usa-button","usa-button--outline",3,"click"],[1,"font-sans-lg","margin-bottom-1"],[1,"margin-top-0"],["href","javascript:void(0);",3,"click"],[1,"usa-card-group","margin-top-2","commercialized-reporting-container"],[1,"usa-card","portfolio__filter-box--award","tablet:width-card"],[1,"border-radius-1","border-primary-dark","border","radius-md"],[1,"padding-x-3","padding-y-05","bg-primary"],[1,"font-sans-sm","margin-y-1","text-white"],[1,"usa-card__body","grid-row"],["id","applyBtn-award-year",1,"applyBtn","display-flex","flex-justify-center","width-full","margin-bottom-2"],[1,"usa-card","portfolio__filter-box","tablet:width-card"],[1,"usa-fieldset"],[1,"usa-legend","usa-sr-only"],[1,"usa-radio"],["id","program-sbir","name","program","type","radio","value","SBIR",1,"usa-radio__input",3,"change","ngModelChange","ngModel"],["for","program-sbir",1,"usa-radio__label"],["id","program-sttr","name","program","type","radio","value","STTR",1,"usa-radio__input",3,"change","ngModelChange","ngModel"],["for","program-sttr",1,"usa-radio__label"],["id","applyBtn-program",1,"applyBtn","display-flex","flex-justify-center","width-full","margin-bottom-2"],["id","phaseI","name","ph
1ase","type","radio","value","1",1,"usa-radio__input",3,"change","ngModelChange","ngModel"],["for","phaseI",1,"usa-radio__label"],["id","phaseII","name","phase","type","radio","value","2",1,"usa-radio__input",3,"change","ngModelChange","ngModel"],["for","phaseII",1,"usa-radio__label"],["id","applyBtn-phase",1,"applyBtn","display-flex","flex-justify-center","width-full","margin-bottom-2"],[1,"grid-col-12","tablet:grid-col-9","padding-left-3"],[1,"grid-col-12"],[1,"grid-row","flex-align-center","flex-justify"],[1,"usa-alert","usa-alert--info","usa-alert--slim"],[1,"usa-alert__body"],[1,"usa-alert__text"],[1,"font-sans-lg","margin-top-2","border-bottom-05","border-base-lighter","width-full","margin-bottom-2"],[3,"count","appearance","isNewLoadingPlaceholder"],[1,"usa-checkbox"],["name","year_checkbox","type","checkbox",1,"usa-checkbox__input",3,"change","checked","id","value"],[1,"usa-checkbox__label","margin-bottom-2",3,"for"],["href","javascript:void(0);",1,"display-flex","flex-justify-end","usa-button","usa-button--secondary",3,"click"],[1,"text-bold"],["tabindex","0",1,"usa-table"],["id","search-results-hits",1,"usa-table","usa-table--borderless","font-sans-3xs"],["nextLabel","Next","previousLabel","Prev",1,"usa-pagination"],[1,"bg-primary-lighter"],["scope","col",2,"width","50%"],["scope","col"],[3,"ngClass"],["type","button",1,"usa-button","usa-button--outline-warm",3,"click"],["nextLabel","Next","previousLabel","Prev",1,"usa-pagination",3,"pageChange"]],template:function(a,t){a&1&&(n(0,"div")(1,"main",0),x(2,"app-shared-page-header",1),n(3,"div",2)(4,"app-shared-agency-title",3),m("onNavClickEvent",function(d){return t.btnAction(d)}),i(),n(5,"div",4)(6,"section",5)(7,"section",6),x(8,"img",7),n(9,"h2"),o(10,"Manage Obligations on Awards"),i()(),n(11,"div",8)(12,"div",9)(13,"section",10)(14,"label",11),o(15,"Award Title"),i(),n(16,"input",12),O("ngModelChange",function(d){return v(t.filterList.title,d)||(t.filterList.title=d),d}),i(),n(17,"label",13),o(18,"Agency Tracking Number"),i(),n(19,"input",12),O("ngModelChange",function(d){return v(t.filterList.trackingNumber,d)||(t.filterList.trackingNumber=d),d}),i(),n(20,"label",13),o(21,"Contract Number"),i(),n(22,"input",12),O("ngModelChange",function(d){return v(t.filterList.contractNumber,d)||(t.filterList.contractNumber=d),d}),i(),n(23,"label",13),o(24,"Firm Name"),i(),n(25,"input",12),O("ngModelChange",function(d){return v(t.filterList.firmName,d)||(t.filterList.firmName=d),d}),i(),n(26,"ul",14)(27,"li",15)(28,"button",16),m("click",function(){return t.searchAwards()}),o(29,"Search "),i()(),n(30,"li",17)(31,"button",18),m("click",function(){return t.clearFilterList()}),o(32,"Reset "),i()()()(),n(33,"section")(34,"h2",19),o(35,"Filter Results"),i(),n(36,"p",20)(37,"small")(38,"a",21),m("click",function(){return t.clearFilterList()}),o(39,"Clear all filters"),i()()(),n(40,"ul",22)(41,"li",23)(42,"div",24)(43,"header",25)(44,"h3",26),o(45,"Award Year"),i()(),b(46,be,6,0,"div",27),i()(),b(47,fe,3,0,"div",28),n(48,"li",29)(49,"div",24)(50,"header",25)(51,"h3",26),o(52,"Program"),i()(),n(53,"div",27)(54,"fieldset",30)(55,"legend",31),o(56,"Select a Program"),i(),n(57,"div",32)(58,"input",33),m("change",function(){return t.changeProgram("SBIR")}),O("ngModelChange",function(d){return v(t.filterList.program,d)||(t.filterList.program=d),d}),i(),n(59,"label",34),o(60,"SBIR"),i()(),n(61,"div",32)(62,"input",35),m("change",function(){return t.changeProgram("STTR")}),O("ngModelChange",function(d){return v(t.filterList.program,d)||(t.filterList.program=d),d}),i(),n(63,"label",36),o(64,"STTR"),i()()()()()(),b(65,Ce,3,0,"div",37),n(66,"li",29)(67,"div",24)(68,"header",25)(69,"h3",26),o(70,"Phase"),i()(),n(71,"div",27)(72,"fieldset",30)(73,"legend",31),o(74,"Select a Phase"),i(),n(75,"div",32)(76,"input",38),m("change",function(){return t.changePhase("1")}),O("ngModelChange",function(d){return v(t.filterList.phase,d)||(t.filterList.phase=d),d}),i(),n(77,"label",39),o(78,"Phase I"),i()(),n(79,"div",32)(80,"input",40),m("change",function(){return t.changePhase("2")}),O("ngModelChange",function(d){return v(t.filterList.phase,d)||(t.filterList.phase=d),d}),i(),n(81,"label",41),o(82,"Phase II"),i()()()()()(),b(83,ye,3,0,"div",42),i()()(),n(84,"div",43)(85,"div",44)(86,"div",45)(87,"div",46)(88,"div",47)(89,"p",48),o(90,"All awards listed in search are currently "),n(91,"strong"),o(92,"published"),i(),o(93," awards."),i()()()(),n(94,"div",49),b(95,xe,8,3,"p"),i(),n(96,"div"),b(97,Me,5,2,"div")(98,Ie,1,3,"app-loading-placeholder",50),i()()()()()()()()()),a&2&&(s(2),p("pageTitle","Awards Search"),s(2),p("agencyTitle",t.agencyName)("govAcronym",t.govAcronym)("navigationList",t.navigationList),s(12),w("ngModel",t.filterList.title),s(3),w("ngModel",t.filterList.trackingNumber),s(3),w("ngModel",t.filterList.contractNumber),s(3),w("ngModel",t.filterList.firmName),s(21),f(t.awardYearList&&t.awardYearList.length?46:-1),s(),f(t.isAwardYearSelected?47:-1),s(11),w("ngModel",t.filterList.program),s(4),w("ngModel",t.filterList.program),s(3),f(t.isProgramSelected?65:-1),s(11),w("ngModel",t.filterList.phase),s(4),w("ngModel",t.filterList.phase),s(3),f(t.isPhaseSelected?83:-1),s(12),f(t.loadData&&t.totalRecords!==0?95:-1),s(2),f(t.loadData?97:98))},dependencies:[z,ae,le,oe,re,B,V,j,q,ne,D,ie,N],styles:['@charset "UTF-8";.commercialized-reporting-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}.commercialized-reporting-container[_ngcontent-%COMP%]   .usa-card__body[_ngcontent-%COMP%]{overflow-y:scroll}.commercialized-reporting-container[_ngcontent-%COMP%]   .usa-checkbox__label[_ngcontent-%COMP%]{font-size:1rem}
1.commercialized-reporting-container[_ngcontent-%COMP%]   .usa-radio__input[_ngcontent-%COMP%]{position:fixed!important;left:-999em;right:auto}.usa-form[_ngcontent-%COMP%]{position:relative}.usa-radio__label[_ngcontent-%COMP%]{padding-left:1.75rem;margin-right:1rem}.chkBox[_ngcontent-%COMP%]   mat-checkbox[_ngcontent-%COMP%]   .mat-checkbox-layout[_ngcontent-%COMP%]{white-space:normal!important}.chkBox[_ngcontent-%COMP%]   mat-checkbox[_ngcontent-%COMP%]   .mat-checkbox-layout[_ngcontent-%COMP%]   .mat-checkbox-label[_ngcontent-%COMP%]{color:#333}.chkBox[_ngcontent-%COMP%]   mat-checkbox.mat-checkbox-checked[_ngcontent-%COMP%]   .mat-checkbox-layout[_ngcontent-%COMP%]   .mat-checkbox-inner-container[_ngcontent-%COMP%]   .mat-checkbox-background[_ngcontent-%COMP%]{background-color:#2d70ae;color:#fff;border:0px}.chkBox[_ngcontent-%COMP%]   mat-checkbox.mat-checkbox-checked[_ngcontent-%COMP%]   .mat-checkbox-layout[_ngcontent-%COMP%]   .mat-checkbox-inner-container[_ngcontent-%COMP%]   .mat-checkbox-ripple[_ngcontent-%COMP%]   .mat-ripple[_ngcontent-%COMP%]{background-color:#2d70ae33}.chkBox[_ngcontent-%COMP%]   mat-checkbox.mat-checkbox-disabled[_ngcontent-%COMP%]   .mat-checkbox-layout[_ngcontent-%COMP%]   .mat-checkbox-inner-container[_ngcontent-%COMP%]   .mat-checkbox-background[_ngcontent-%COMP%]{background-color:#b0b0b0!important;color:#fff}.applyBtn[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:#fff!important;text-decoration:none;margin-top:0!important;font-size:.89rem;line-height:.65em;margin-right:1em}.portfolio__filter-box--award[_ngcontent-%COMP%]   .usa-card__body[_ngcontent-%COMP%]{height:20rem;overflow-y:scroll}.usa-pagination[_ngcontent-%COMP%]     ul{margin-bottom:0;margin-top:0;list-style-type:none;padding-left:0;align-items:center;display:flex;flex-flow:row nowrap;justify-content:center;width:auto}.usa-pagination[_ngcontent-%COMP%]     ul li{margin-right:0;border-radius:0;height:2.25rem;border-left:1px solid lightgray;border-top:1px solid lightgray;border-bottom:1px solid lightgray}.usa-pagination[_ngcontent-%COMP%]     ul li.pagination-previous{border-top-left-radius:5px;border-bottom-left-radius:5px}.usa-pagination[_ngcontent-%COMP%]     ul li.pagination-previous a:before{display:none}@media screen and (min-width:482px){.usa-pagination[_ngcontent-%COMP%]     ul li.pagination-previous a:before{content:"\\ab";display:inline-block;margin-right:.5rem}}.usa-pagination[_ngcontent-%COMP%]     ul li.pagination-previous.disabled:before{display:none}@media screen and (min-width:482px){.usa-pagination[_ngcontent-%COMP%]     ul li.pagination-previous.disabled:before{content:"\\ab";display:inline-block;margin-right:.5rem}}.usa-pagination[_ngcontent-%COMP%]     ul li.pagination-next{border-right:1px solid lightgray;border-top-right-radius:5px;border-bottom-right-radius:5px}.usa-pagination[_ngcontent-%COMP%]     ul li.pagination-next a:after{display:none}@media screen and (min-width:482px){.usa-pagination[_ngcontent-%COMP%]     ul li.pagination-next a:after{content:"\\bb";display:inline-block;margin-left:.5rem}}.usa-pagination[_ngcontent-%COMP%]     ul li.pagination-next.disabled:after{display:none}@media screen and (min-width:482px){.usa-pagination[_ngcontent-%COMP%]     ul li.pagination-next.disabled:after{content:"\\bb";display:inline-block;margin-left:.5rem}}.usa-pagination[_ngcontent-%COMP%]     ul li.current{background:#005ea2;padding:.25rem .75rem;border-radius:0}.usa-pagination[_ngcontent-%COMP%]     ul li a{padding:.25rem .75rem;border-radius:0}#award-data[tabindex][_ngcontent-%COMP%]:focus{outline:none!important}.bg-lightest-gray[_ngcontent-%COMP%]{background-color:#f7f7f7}']})}}return r})();function ke(r,c){if(r&1&&(n(0,"p"),o(1,"Currently established Award Amount for the year is: "),n(2,"strong",19),o(3),S(4,"currency"),i()()),r&2){let e=g(2);s(3),h(M(4,1,e.awardAmount))}}function Le(r,c){if(r&1&&(n(0,"div",14),o(1," Total: "),n(2,"span",20),o(3),S(4,"currency"),i()()),r&2){let e=g(2);s(3),h(M(4,1,e.totalAmount))}}function Pe(r,c){if(r&1){let e=y();n(0,"tbody")(1,"tr")(2,"td",23),o(3),i(),n(4,"td",23),o(5),i(),n(6,"td",23),o(7),i(),n(8,"td",23),o(9),S(10,"currency"),i(),n(11,"td",23)(12,"small")(13,"a",13),m("click",function(){let t=u(e).$implicit,l=g(4);return _(l.btnAction("EDIT_OBLIGATIONS",t))}),o(14,"Edit"),i(),o(15," | "),n(16,"a",13),m("click",function(){let t=u(e).$implicit,l=g(4);return _(l.btnAction("DELETE_OBLIGATIONS",t))}),o(17,"Delete"),i()()()()()}if(r&2){let e=c.$implicit,a=c.$index;s(2),p("ngClass",a%2===0?"bg-light-blue":""),s(),h(e.Obligated_Year),s(),p("ngClass",a%2===0?"bg-light-blue":""),s(),h(e.Reported_Year),s(),p("ngClass",a%2===0?"bg-light-blue":""),s(),h(e.Funding_Year),s(),p("ngClass",a%2===0?"bg-light-blue":""),s(),h(M(10,9,e.Obligated_Amount)),s(2),p("ngClass",a%2===0?"bg-light-blue":"")}}function Te(r,c){if(r&1&&(n(0,"table",21)(1,"thead")(2,"tr")(3,"th",22),o(4,"Obligated Year"),i(),n(5,"th",22),o(6,"Reported Year"),i(),n(7,"th",22),o(8,"Funding Year"),i(),n(9,"th",22),o(10,"Obligated Amount"),i(),n(11,"th",22),o(12,"Actions"),i()()(),k(13,Pe,18,11,"tbody",null,I),i()),r&2){let e=g(3);s(13),L(e.obligationsList)}}function Ae(r,c){r&1&&(n(0,"i"),o(1,"No Obligations have been added for this award."),i())}function Ee(r,c){if(r&1&&b(0,Te,15,0,"table",21)(1,Ae,2,0,"i"),r&2){let e=g(2);f(e.obligationsList.length!==0?0:1)}}function De(r,c){r&1&&x(0,"app-loading-placeholder",3),r&2&&p("count",5)("appearance","line")("isNewLoadingPlaceholder",!0)}function Ne(r,c){if(r&1){let e=y();n(0,"div",2)(1,"app-shared-agency-title",4),m("onNavClickEvent",function(t){u(e);let l=g();return _(l.btnAction(t))}),i(),n(2,"a",5),m("click",function(){u(e);let t=g();return _(t.btnAction("NAVTOAWARD"))}),n(3,"h2",6),o(4),i()(),n(5,"section",7)(6,"div",8)(7,"ul",9)(8,"li")(9,"strong"),o(10,"Program/Phase:"),i(),o(11),i(),n(12,"li")(13,"strong"),o(14,"Contract:"),i(),o(15),i()()(),n(16,"div",8)(17,"ul",9)(18,"li")(19,"strong"),o(20,"Agency Tracking:"),i(),o(21
1),i(),n(22,"li")(23,"strong"),o(24,"Year Awarded:"),i(),o(25),i()()()(),x(26,"app-shared-message",10),n(27,"div")(28,"button",11),m("click",function(){u(e);let t=g();return _(t.btnAction("ADD_OBLIGATIONS"))}),o(29,"+ Add Obligations"),i(),n(30,"div",12)(31,"p")(32,"strong"),o(33,"Note: Obligation dollars to be reported for the Fiscal Year of the Award or later. The obligations records will be available in read-only mode after Annual Report is submitted for the Fiscal Year."),i()(),n(34,"p")(35,"strong"),o(36,'The Obligation total must not exceed the "Currently established award amount for the year". If the totals do not match or the obligations total is exceeding the award amount, '),n(37,"a",13),m("click",function(){u(e);let t=g();return _(t.btnAction("NAVTOAWARD"))}),o(38,"click here"),i(),o(39," to view the associated award."),i()(),b(40,ke,5,3,"p"),n(41,"div"),b(42,Le,5,3,"div",14),i()()(),n(43,"div",15),b(44,Ee,2,1)(45,De,1,3,"app-loading-placeholder",3),n(46,"ul",16)(47,"li",17)(48,"button",18),m("click",function(){u(e);let t=g();return _(t.btnAction("BACK"))}),o(49,"Back "),i()()()()()}if(r&2){let e=g();s(),p("agencyTitle",e.agencyName)("govAcronym",e.govAcronym)("navigationList",e.navigationList),s(3),h(e.awardDetailsObject.awardTitle),s(7),E(" ",e.awardDetailsObject.program," / ",e.awardDetailsObject.phase),s(4),A(" ",e.awardDetailsObject.contractNumber),s(6),A(" ",e.awardDetailsObject.agencyTracking),s(4),A(" ",e.awardDetailsObject.awardYear),s(),p("isNavigationLink",e.message.extraNavigationLink)("linkText",e.message.linkText)("linkUrl",e.message.linkUrl)("messageType",e.message.messageType)("message",e.message.message),s(14),f(e.loadObligationData?40:-1),s(2),f(e.loadObligationData?42:-1),s(2),f(e.loadObligationData?44:45)}}function Re(r,c){r&1&&x(0,"app-loading-placeholder",3),r&2&&p("count",5)("appearance","line")("isNewLoadingPlaceholder",!0)}var H=(()=>{class r{constructor(e,a,t,l){this.router=e,this.agencyDashboardService=a,this.activatedRoute=t,this.dialog=l,this.loadData=!0,this.loadObligationData=!1,this.navigationList=[{label:"Return to Manage Obligations",id:"MANAGE_OBLIGATIONS"}],this.showValidationPanel=!1,this.obligationsList=[],this.yearList=[],this.awardDetailsObject={},this.firmDetailObject={},this.message={messageType:"",message:"",extraNavigationLink:!1,linkUrl:"",linkText:""},this.helpdesk_param="",this.requestFrom=!1,sessionStorage.getItem("_userProfileInfo")&&(this.agencyId=JSON.parse(sessionStorage.getItem("_userProfileInfo")).Organization_ID,this.agencyName=JSON.parse(sessionStorage.getItem("_userProfileInfo")).Organization_Name,this.govAcronym=JSON.parse(sessionStorage.getItem("_userProfileInfo")).Org_Code),this.agencyName=this.agencyName??sessionStorage.getItem("agencyName"),this.govAcronym=this.govAcronym??sessionStorage.getItem("govAcronym"),this.proposalId=this.activatedRoute.snapshot.params.proposalId,sessionStorage.getItem("awardId")&&(this.awardId=parseInt(sessionStorage.getItem("awardId"),0)),this.requestFrom=t.snapshot.queryParams.RequestFrom=="HelpDesk"}ngOnInit(){this.loadInitialData()}loadInitialData(){let e=this.agencyDashboardService.getLoopkup("year"),a=this.agencyDashboardService.getAwardInformation(this.awardId),t=this.agencyDashboardService.getfirmTitleProposalId(this.awardId);P([e,a,t]).subscribe(l=>{l[0].status===200&&l[0].body&&l[0].body.length&&l[0].body.map(d=>{this.yearList.push({id:d.Year_ID,label:d.Program_Year})}),l[1].status===200&&l[1].body&&l[1].body.length&&(this.awardDetailsObject=l[1].body[0],this.loadData=!0,this.getAwardObligations()),l[2].status===200&&l[2].body&&(this.firmDetailObject=l[2].body,this.firmName=this.firmDetailObject.Firm_Name)},l=>{console.log(l)})}getAwardObligations(){this.loadObligationData=!1,this.agencyDashboardService.getListOfObligations(this.proposalId).subscribe(e=>{e.status===200&&e.body&&(this.obligationsList=e.body.obligations,this.awardAmount=e.body.award_amount,this.totalAmount=e.body.total,this.obligationsList.length&&this.obligationsList.map(a=>{a=this.getYearLabel(a)}),this.loadObligationData=!0)},e=>{console.log(e)})}getYearLabel(e){return this.yearList.map(a=>{a.id===e.Obligated_Year_ID&&(e.Obligated_Year=a.label),a.id===e.Reported_Year_ID&&(e.Reported_Year=a.label),a.id===e.Funding_Year_ID&&(e.Funding_Year=a.label)}),e}btnAction(e,a,t){switch(this.requestFrom&&(this.helpdesk_param="?RequestFrom=HelpDesk",this.agencyId==null&&(this.agencyId=this.activatedRoute.snapshot.params.agencyId)),e){case"BACK":case"MANAGE_OBLIGATIONS":sessionStorage.removeItem("awardId"),this.router.navigateByUrl("/agency-dashboard/"+this.agencyId+"/manage-obligations"+this.helpdesk_param);break;case"ADD_OBLIGATIONS":this.requestFrom?this.router.navigate(["/agency-dashboard/"+this.agencyId+"/award-wizard/add-obligations/proposal/"+this.proposalId],{queryParams:{isManageObligations:!0,RequestFrom:"HelpDesk"}}):this.router.navigate(["/agency-dashboard/"+this.agencyId+"/award-wizard/add-obligations/proposal/"+this.proposalId],{queryParams:{isManageObligations:!0}});break;case"EDIT_OBLIGATIONS":this.requestFrom?this.router.navigate(["/agency-dashboard/"+this.agencyId+"/award-wizard/edit-obligations/obligation/"+a.ob_id],{queryParams:{isManageObligations:!0,proposalId:this.proposalId,RequestFrom:"HelpDesk"}}):this.router.navigate(["/agency-dashboard/"+this.agencyId+"/award-wizard/edit-obligations/obligation/"+a.ob_id],{queryParams:{isManageObligations:!0,proposalId:this.proposalId}});break;case"DELETE_OBLIGATIONS":this.deleteObligations(a);break;case"NAVTOAWARD":this.requestFrom?this.router.navigateByUrl("/agency-dashboard/"+this.agencyId+"/award-wizard?firmId=true&proposalId="+this.proposalId+"&firmName="+this.firmName+"&targetPage=awardOverview&RequestFrom=HelpDesk"):this.router.navigateByUrl("/agency-dashboard/"+this.agencyId+"/award-wizard?firmId=true&proposalId="+this.proposalId+"&firmName="+this.firmName+"&targetPage=awardOverview"+this.helpdesk_param);default:break}}deleteObligations(e){let a=this.dialog.open(W,{width:"450px"});a.componentInstance.displayTitle="Are you sure you want to remove this obligation?",a.componentInstance.displayText="You will lose all data and reporting associated with this obligation.",a.componentInstance.confirmationButtonText="Confirm",a.afterClosed().subscribe(t=>{a&&t.closeType&&t.closeType==="confirmed"&&e.ob_id!==null&&this.agencyDashboardService.deleteSpecificObligation(e.ob_id).subscribe(l=>{l.status===200&&(this.filterPOCList(e.ob_id),this.getAwardObligations(),this.setSuccessCode())},l=>{console.log("error in delete poc"),console.log(l)}
1)})}filterPOCList(e){let a=this.obligationsList.findIndex(t=>t.ob_id===e);a!==-1&&this.obligationsList.splice(a,1)}setSuccessCode(){this.showValidationPanel=!0,this.message.messageType="success",this.message.message="Your changes have been saved.",this.message.extraNavigationLink=!1,this.message.linkUrl="",this.message.linkText="",window.scrollTo({top:0,behavior:"smooth"})}static{this.\u0275fac=function(a){return new(a||r)(C(Y),C(U),C(R),C(F))}}static{this.\u0275cmp=T({type:r,selectors:[["app-obligations-listing"]],decls:5,vars:2,consts:[["id","main-content"],[3,"pageTitle"],[1,"grid-container"],[3,"count","appearance","isNewLoadingPlaceholder"],[3,"onNavClickEvent","agencyTitle","govAcronym","navigationList"],["href","javascript:void(0)",2,"text-decoration","none",3,"click"],[1,"text-primary"],[1,"display-flex","flex-align-center","border-top-05","border-bottom-05","padding-y-2","padding-x-4","border-gray-10","margin-top-4"],[1,"grid-col-12","tablet:grid-col-5"],[1,"usa-list","usa-list--unstyled"],[1,"margin-bottom-2",3,"isNavigationLink","linkText","linkUrl","messageType","message"],[1,"usa-button","margin-top-2",3,"click"],[1,"margin-y-4","width-full","border-base-lighter"],["href","javascript:void(0)",3,"click"],[1,"font-sans-lg","text-bold"],[1,"grid-col-12"],[1,"usa-button-group","margin-top-4"],[1,"usa-button-group__item"],["type","button",1,"usa-button","usa-button--accent-warm","text-white",3,"click"],[2,"font-size","x-large"],[1,"text-normal",2,"color","#00a91c"],[1,"usa-table"],["role","columnheader","scope","colgroup"],[3,"ngClass"]],template:function(a,t){a&1&&(n(0,"div")(1,"main",0),x(2,"app-shared-page-header",1),b(3,Ne,50,17,"div",2)(4,Re,1,3,"app-loading-placeholder",3),i()()),a&2&&(s(2),p("pageTitle","List of Obligations"),s(),f(t.loadData?3:4))},dependencies:[B,V,te,j,D,N],encapsulation:2})}}return r})();var Ye=[{path:"",component:G,children:[],data:{targetPage:"awardSearch",title:""}},{path:"proposal/:proposalId/list-obligations",component:H,children:[],data:{targetPage:"listObligations",title:""}}],ce=$.forChild(Ye);var ut=(()=>{class r{static{this.\u0275fac=function(a){return new(a||r)}}static{this.\u0275mod=K({type:r})}static{this.\u0275inj=J({imports:[Z,z,ce,se,q,G,H]})}}return r})();export{ut as ObligationsModule};

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.