PageSourceSearch

https://cableos.harmonicinc.com/chunk-Z4OMIEC3.js

js harmonicinc.com collected 2026-10-09 23:27:21 UTC 20,751 bytes, 3 lines download raw bytes

1import{A as x,M as a,R as re,T as Ee,W as U,aa as s,ha as A,ua as ke}from"./chunk-QO4SBOBY.js";import"./chunk-5YFGQTE3.js";import"./chunk-Z5O2S6OW.js";import"./chunk-27KATIB3.js";import"./chunk-N6G3SNJJ.js";import"./chunk-ATAP2O5K.js";import{d as Ge}from"./chunk-5W5A6PMF.js";import"./chunk-Z3266SI6.js";import"./chunk-F2AKRT4L.js";import"./chunk-WN44YNIU.js";import{b as L,cd as oe,mc as we,sc as Me,uc as Re}from"./chunk-MVPILIAV.js";import{D as De,S as Ve,g as _e,lb as Oe,mb as Te,n as Ie,wb as xe}from"./chunk-6HIFO3CI.js";import"./chunk-2L44V47G.js";import{a as Ne}from"./chunk-C5EAGBWG.js";import"./chunk-TNLQUHIS.js";import{c as Pe}from"./chunk-R2THZOHE.js";import"./chunk-NLCE56ZR.js";import{J,Qa as C,m as T,n as F,o as be,vb as t,xb as V}from"./chunk-JGNKJIGE.js";import"./chunk-572FBYAF.js";import{d as ve,i as Se}from"./chunk-5NT6OMWF.js";import"./chunk-MLMGL4QO.js";import{$b as O,$c as m,Bb as k,Dc as te,Eb as ce,Fc as ue,Gb as $,Gc as _,H as le,Ic as G,Jc as ie,Lc as he,Ma as pe,Mc as ye,Nc as ge,Ub as w,Uc as Ce,Vb as me,Wb as M,Wc as ne,ac as v,ad as u,bc as g,bd as fe,ca as de,cc as Z,dc as Q,ec as X,l as R,la as P,lb as p,lc as j,ld as q,m as f,md as H,pc as b,qa as h,qc as ee,rc as S,xa as N,ya as E}from"./chunk-A2TZGXPJ.js";import"./chunk-Q7NM3P5R.js";import"./chunk-XFAUIF5P.js";import{a as c,b as y,d as se}from"./chunk-WWX6BADO.js";var Fe=(i,l,e)=>i.accountId===l.accountId?c(c({},l),e):i,Ue=(i,l)=>i.accountId===l.accountId,Ae=(i,l)=>l?i.filter(e=>e.accountId.includes(l?.value)):i,Y=(i,l)=>{i.headerComponentParams.headerParams.disabled=l};var W=class i{constructor(){this.translateService=h(T);let l=[{field:"accountId",headerName:this.translateService.instant(C.CUSTOMER),tooltipComponent:x,cellRenderer:x,minWidth:150},{field:t.CmsMax,headerComponent:s,valueGetter:e=>e.data[t.CmsMax],tooltipValueGetter:e=>e.data[t.CmsMax],cellRenderer:a,minWidth:80},{field:t.CmsMin,headerComponent:s,valueGetter:e=>e.data[t.CmsMin],tooltipValueGetter:e=>e.data[t.CmsMin],cellRenderer:a,minWidth:80},{field:t.CmsDelta,headerComponent:s,valueGetter:e=>e.data[t.CmsDelta],tooltipValueGetter:e=>e.data[t.CmsDelta],cellRenderer:a,minWidth:85},{field:t.ScmCpeIpV4Total,headerComponent:s,valueGetter:e=>e.data[t.ScmCpeIpV4Total],tooltipValueGetter:e=>e.data[t.ScmCpeIpV4Total],cellRenderer:a,minWidth:80},{field:t.ScmCpeIpV6Total,headerComponent:s,valueGetter:e=>e.data[t.ScmCpeIpV6Total],tooltipValueGetter:e=>e.data[t.ScmCpeIpV6Total],cellRenderer:a,minWidth:80},{field:t.Rpds,headerComponent:s,valueGetter:e=>e.data[t.Rpds],tooltipValueGetter:e=>e.data[t.Rpds],cellRenderer:a,minWidth:60},{field:t.ScmMdCount,headerComponent:s,valueGetter:e=>e.data[t.ScmMdCount],tooltipValueGetter:e=>e.data[t.ScmMdCount],cellRenderer:a,minWidth:70},{field:t.ScmCpeMta,headerComponent:s,valueGetter:e=>e.data[t.ScmCpeMta],tooltipValueGetter:e=>e.data[t.ScmCpeMta],cellRenderer:a,minWidth:80},{field:t.UsMaxUtilGbps,headerComponent:s,valueGetter:e=>e.data[t.UsMaxUtilGbps],tooltipValueGetter:e=>e.data[t.UsMaxUtilGbps],cellRenderer:a,minWidth:100},{field:t.DsMaxUtilGbps,headerComponent:s,valueGetter:e=>e.data[t.DsMaxUtilGbps],tooltipValueGetter:e=>e.data[t.DsMaxUtilGbps],cellRenderer:a,minWidth:100},{field:t.PlatformVersion,headerComponent:s,valueGetter:e=>e.data[t.PlatformVersion],tooltipValueGetter:e=>e.data[t.PlatformVersion],cellRenderer:a,minWidth:100},{field:t.ReleaseVersion,headerComponent:s,valueGetter:e=>e.data[t.ReleaseVersion],tooltipValueGetter:e=>e.data[t.ReleaseVersion],cellRenderer:a,minWidth:100}];this.gridOptions=new U(l.map(e=>y(c({},e),{headerComponentParams:{headerParams:{getIsChecked:o=>!o.some(n=>!n[e.field]),columnName:this.translateService.instant(e.field),flexDirection:"column",disabled:!0}}}))).build()}getGridOptions(){return y(c({},this.gridOptions),{headerHeight:70})}static{this.\u0275fac=function(e){return new(e||i)}}static{this.\u0275prov=P({token:i,factory:i.\u0275fac})}};R([A({fileName:"apollo_indicators",ignoreFields:["actions"]}),f("design:type",Function),f("design:paramtypes",[]),f("design:returntype",Object)],W.prototype,"getGridOptions",null);var z=class i{constructor(){this.translateService=h(T);let l=[{field:"accountId",headerName:this.translateService.instant(C.CUSTOMER),tooltipComponent:x,cellRenderer:x,minWidth:150},{field:t.CmsMax,headerComponent:s,valueGetter:e=>e.data[t.CmsMax],tooltipValueGetter:e=>e.data[t.CmsMax],cellRenderer:a,minWidth:80},{field:t.CmsMin,headerComponent:s,valueGetter:e=>e.data[t.CmsMin],tooltipValueGetter:e=>e.data[t.CmsMin],cellRenderer:a,minWidth:80},{field:t.CmsDelta,headerComponent:s,valueGetter:e=>e.data[t.CmsDelta],tooltipValueGetter:e=>e.data[t.CmsDelta],cellRenderer:a,minWidth:85},{field:t.ScmCpeIpV4Total,headerComponent:s,valueGetter:e=>e.data[t.ScmCpeIpV4Total],tooltipValueGetter:e=>e.data[t.ScmCpeIpV4Total],cellRenderer:a,minWidth:80},{field:t.ScmCpeIpV6Total,headerComponent:s,valueGetter:e=>e.data[t.ScmCpeIpV6Total],tooltipValueGetter:e=>e.data[t.ScmCpeIpV6Total],cellRenderer:a,minWidth:80},{field:t.Rpds,headerComponent:s,valueGetter:e=>
1e.data[t.Rpds],tooltipValueGetter:e=>e.data[t.Rpds],cellRenderer:a,minWidth:60},{field:t.ScmMdCount,headerComponent:s,valueGetter:e=>e.data[t.ScmMdCount],tooltipValueGetter:e=>e.data[t.ScmMdCount],cellRenderer:a,minWidth:60},{field:t.ScmCpeMta,headerComponent:s,valueGetter:e=>e.data[t.ScmCpeMta],tooltipValueGetter:e=>e.data[t.ScmCpeMta],cellRenderer:a,minWidth:80},{field:t.UsMaxUtilGbps,headerComponent:s,valueGetter:e=>e.data[t.UsMaxUtilGbps],tooltipValueGetter:e=>e.data[t.UsMaxUtilGbps],cellRenderer:a,minWidth:100},{field:t.DsMaxUtilGbps,headerComponent:s,valueGetter:e=>e.data[t.DsMaxUtilGbps],tooltipValueGetter:e=>e.data[t.DsMaxUtilGbps],cellRenderer:a,minWidth:100},{field:t.ScmUgsTotal,headerComponent:s,valueGetter:e=>e.data[t.ScmUgsTotal],tooltipValueGetter:e=>e.data[t.ScmUgsTotal],cellRenderer:a,minWidth:80},{field:t.CoreUptime,headerComponent:s,valueGetter:e=>e.data[t.CoreUptime],tooltipValueGetter:e=>e.data[t.CoreUptime],cellRenderer:a,minWidth:70},{field:t.CoreVersion,headerComponent:s,valueGetter:e=>e.data[t.CoreVersion],tooltipValueGetter:e=>e.data[t.CoreVersion],cellRenderer:a,minWidth:70}];this.perSystemGridOptions=new U(l.map(e=>y(c({},e),{headerComponentParams:{headerParams:{getIsChecked:o=>!o.some(n=>!n[e.field]),columnName:this.translateService.instant(e.field),flexDirection:"column",disabled:!0}}}))).build()}getGridOptions(){return y(c({},this.perSystemGridOptions),{headerHeight:70})}static{this.\u0275fac=function(e){return new(e||i)}}static{this.\u0275prov=P({token:i,factory:i.\u0275fac})}};R([A({fileName:"cableos_indicators",ignoreFields:["actions"]}),f("design:type",Function),f("design:paramtypes",[]),f("design:returntype",Object)],z.prototype,"getGridOptions",null);var K=class i{constructor(){this.translateService=h(T);let l=[{field:"accountId",headerName:this.translateService.instant("CUSTOMER"),tooltipField:"accountId",cellRenderer:x,minWidth:150},{field:"dsThreshold",headerName:this.translateService.instant("dsThreshold"),valueGetter:e=>e.data.dsThreshold,tooltipValueGetter:e=>e.data.dsThreshold,cellRenderer:re,minWidth:110},{field:"usThreshold",headerName:this.translateService.instant("usThreshold"),valueGetter:e=>e.data.usThreshold,tooltipValueGetter:e=>e.data.usThreshold,cellRenderer:re,minWidth:110}];this.gridOptions=new U(l.map(e=>y(c({},e),{headerComponentParams:{headerParams:{columnName:this.translateService.instant(e.field),flexDirection:"column",disabled:!0}}}))).build()}getGridOptions(){return y(c({},this.gridOptions),{headerHeight:70})}static{this.\u0275fac=function(e){return new(e||i)}}static{this.\u0275prov=P({token:i,factory:i.\u0275fac})}};R([A({fileName:"utilization_threshold_indicators",ignoreFields:["actions"]}),f("design:type",Function),f("design:paramtypes",[]),f("design:returntype",Object)],K.prototype,"getGridOptions",null);var We=(()=>{class i{constructor(){this.translateService=h(T)}transform(e,o){let n=e||[];return!o||!Te.includes(o)?n:n.map(r=>{let d="field"in r?r.field:"",I="";return d==="dsThreshold"&&(I=C.DS_AVERAGE_THRESHOLD),d==="usThreshold"&&(I=C.US_AVERAGE_THRESHOLD),I?y(c({},r),{headerName:this.translateService.instant(I)}):r})}static{this.\u0275fac=function(o){return new(o||i)}}static{this.\u0275pipe=ce({name:"utilizationThresholdColumns",type:i,pure:!0})}}return i})();var Be=i=>({active:i});function Le(i,l){if(i&1){let e=j();v(0,"cosp-button",6),b("onClick",function(){N(e);let n=S();return E(n.toggleTableEditing())}),_(1),m(2,"translate"),g()}if(i&2){let e=S();p(),G(" ",u(2,1,e.translationKey.EDIT_CONFIGURATION)," ")}}function Ye(i,l){if(i&1){let e=j();v(0,"div")(1,"cosp-button",7),b("onClick",function(){N(e);let n=S();return E(n.saveDailyInventorySettings())}),_(2),m(3,"translate"),g(),v(4,"cosp-button",8),b("onClick",function(){N(e);let n=S();return E(n.cancel())}),_(5),m(6,"translate"),g()()}if(i&2){let e=S();p(2),G(" ",u(3,2,e.translationKey.SAVE)," "),p(3),G(" ",u(6,4,e.translationKey.CANCEL)," ")}}var D=(function(i){return i[i.total=0]="total",i[i.perSystem=1]="perSystem",i[i.utilizationThreshold=2]="utilizationThreshold",i})(D||{}),ae=(function(i){return i.checked="checked",i.value="value",i})(ae||{}),ze=(()=>{class i extends J{constructor(){super(),this.utilizationThresholdIndicatorsProperties=h(K),this.cableosIndicatorsGridProperties=h(z),this.apolloPerSystemIndicatorsGridProperties=h(W),this.gridData=[],this.system=H(V.cableOsV1),this.currentView=H(D.perSystem),this.onSave=q(),this.accounts$=L(Re.getAccounts),this.cableOsIndicatorsGridOptions={},this.apolloPerSystemIndicatorsGridOptions={},this.utilizationThresholdColumns=[],this.initialSettings=[],this.updatedSettings=[],this.accountOptions=[],this.accountFilter=null,this.checkboxesDisabled=!0,this.inputNumbersDisabled=!0,this.dailyInventorySettingsView=D,this.translationKey=C,this.createGridOptions(),this.prepareAccountOptions()}getGridOptions(){return this.system()===V.cableOsV1?this.cableOsIndicatorsGridOptions:this.apolloPerSystemIndicatorsGridOptions}ngOnChanges({system:e,gridData:o}){this.initialSettings=this.gridData,e&&(this.gridOptions=this.getGridOptions()),e?.currentValue&&e?.previousValue&&this.gridOptions&&(this.accountFilter=null,this.gridApi.updateGridOptions({columnDefs:this.gridOptions.columnDefs}),this.gridApi.sizeColumnsToFit()),o?.currentValue&&this.accountFilter&&this.onCurrentAccountFilterChange({value:this.accountFilter})}onCurrentAccountFilterChange(e){let{initialSettings:o}=this;this.gridData=Ae(o,e)}toggleTableEditing(){this.toggleInventoryCheckboxesDisabled(),this.gridData=[...this.gridData]}saveDailyInventorySettings(){this.onSave.emit(this.updatedSettings),this.updatedSettings=[],this.toggleTableEditing()}cancel(){if(this.toggleInventoryCheckboxesDisabled(),this.accountFilter)return this.onCurrentAccountFilterChange({value:this.accountFilter});this.gridData=[...this.initialSettings],this.updatedSettings=[...this.initialSettings]}gridInputStateChanged(e,o,n,r){let d=this.updatedSettings.find(He=>Ue(He,e)),I={[n]:o.target[r]};d?this.registerNewUpdate(d,I):this.addToUpdatedSettings(e,I)}allColumnSelected(e,o){let n=this.updatedSettings.reduce((r,d)=>{d.id in r||(r[d.id]={});let I=r[d.id];return I&&(I[d.accountId]=d),r},{});this.gridData=this.gridData.map(r=>{let d=n[r.id]?.[r.accountId];return y(c({},d||r),{[e]:o})}),this.updatedSettings=this.gridData}gridInputNumberStateChanged(e,o,n){this.gridInputStateChanged(e,o,n,ae.value)}gridCheckboxStateChanged(e,o,n){this.gridInputStateChanged(e,o,n,ae.checked)}onGridReady(e){this.gridApi=e.api}createGridOptions(){this.cableOsIndicatorsGridOptions=this.cableosIndicatorsGridProperties.getGridOptions(),this.cableOsIndicatorsGridOptions.context={parentComponent:this},this.apolloPerSystemIndicatorsGridOptions=this.apolloPerSystemIndicatorsGridProperties.getGridOptions(),this.apolloPerSystemIndicatorsGridOptions.context={parentComponent:this};let n=this.utilizationThresholdIndicatorsProperties.getGridOptions(),{columnDefs:e}=n,o=se(n,["columnDefs"]);this.utilizationThresholdIndicatorsGridOptions=o,this.utilizationThresholdColumns=e,this.utilizationThresholdIndicatorsGridOptions.context={parentComponent:this}}prepareAccountOptions(){this.accounts$.pipe(de(this.destroy$)).subscribe(e=>{this.accountOptions=e.map(o=>({label:o.displayName||o.name,value:o.name}))})}toggleInventoryCheckboxesDisabled(){this.checkboxesDisabled=!this.checkboxesDisabled,this.inputNumbersDisabled=!this.inputNumbersDisabled,this.totalIndicatorsGridOptions?.columnDefs?.forEach(e
1=>Y(e,this.checkboxesDisabled)),this.utilizationThresholdIndicatorsGridOptions?.columnDefs?.forEach(e=>Y(e,this.inputNumbersDisabled)),this.system()===V.cableOsV1?this.cableOsIndicatorsGridOptions?.columnDefs?.forEach(e=>Y(e,this.checkboxesDisabled)):this.apolloPerSystemIndicatorsGridOptions?.columnDefs?.forEach(e=>Y(e,this.checkboxesDisabled))}registerNewUpdate(e,o){this.updatedSettings=this.updatedSettings.map(n=>Fe(n,e,o))}addToUpdatedSettings(e,o){this.updatedSettings.push(c(c({},e),o))}static{this.\u0275fac=function(o){return new(o||i)}}static{this.\u0275cmp=k({type:i,selectors:[["cosp-daily-inventory-system"]],inputs:{gridData:"gridData",system:[1,"system"],currentView:[1,"currentView"]},outputs:{onSave:"onSave"},features:[Ce([z,W,K]),$,pe],decls:9,vars:24,consts:[[1,"daily-inventory-controls","mb-2"],[1,"daily-inventory-account-filter"],["id","daily-inventory-account-filter","bindLabel","label","bindValue","value",1,"ng-select",3,"ngModelChange","change","clear","items","placeholder","clearable","searchable","hideSelected","ngModel"],["color","blue","id","enable-daily-inventory-form"],["id","per-system-indicators","cospGridFullWidth","",1,"ag-theme-balham","daily-inventory-system__grid",3,"gridReady","ngClass","gridOptions","rowData"],["id","utilization-threshold","cospGridFullWidth","",1,"ag-theme-balham","daily-inventory-system__grid",3,"ngClass","gridOptions","columnDefs","rowData"],["color","blue","id","enable-daily-inventory-form",3,"onClick"],["color","green","id","save-daily-inventory-settings",3,"onClick"],["color","blue","id","cancel-daily-inventory-changes",1,"ms-2",3,"onClick"]],template:function(o,n){o&1&&(v(0,"div",0)(1,"div",1)(2,"ng-select",2),m(3,"translate"),ge("ngModelChange",function(d){return ye(n.accountFilter,d)||(n.accountFilter=d),d}),b("change",function(d){return n.onCurrentAccountFilterChange(d)})("clear",function(){return n.onCurrentAccountFilterChange()}),g()(),w(4,Le,3,3,"cosp-button",3),w(5,Ye,7,6,"div"),g(),v(6,"ag-grid-angular",4),b("gridReady",function(d){return n.onGridReady(d)}),g(),Z(7,"ag-grid-angular",5),m(8,"utilizationThresholdColumns")),o&2&&(p(2),O("items",n.accountOptions)("placeholder",u(3,15,n.translationKey.SEARCH_ACCOUNTS))("clearable",!0)("searchable",!0)("hideSelected",!0),he("ngModel",n.accountFilter),p(2),M(n.checkboxesDisabled?4:-1),p(),M(n.checkboxesDisabled?-1:5),p(),O("ngClass",ne(20,Be,n.currentView()===n.dailyInventorySettingsView.perSystem))("gridOptions",n.gridOptions)("rowData",n.gridData),p(),O("ngClass",ne(22,Be,n.currentView()===n.dailyInventorySettingsView.utilizationThreshold))("gridOptions",n.utilizationThresholdIndicatorsGridOptions)("columnDefs",fe(8,17,n.utilizationThresholdColumns,n.system()))("rowData",n.gridData))},dependencies:[Ge,De,_e,Ie,xe,Pe,Ne,Ee,ve,F,We],styles:["[_nghost-%COMP%]   .daily-inventory-system__grid[_ngcontent-%COMP%]{display:none}[_nghost-%COMP%]   .daily-inventory-system__grid.active[_ngcontent-%COMP%]{display:block}[_nghost-%COMP%]   .daily-inventory-controls[_ngcontent-%COMP%]{display:flex;justify-content:space-between}[_nghost-%COMP%]   .daily-inventory-account-filter[_ngcontent-%COMP%]{width:45%;max-width:300px}[_nghost-%COMP%]     .form-check label:before{margin-left:.2rem}[_nghost-%COMP%]     .form-check input:focus+label:after, [_nghost-%COMP%]     .form-check input:checked+label:after{margin:0 0 0 .1rem}@media(max-width:576px){[_nghost-%COMP%]   .daily-inventory-controls[_ngcontent-%COMP%]{flex-direction:column;align-items:flex-end}[_nghost-%COMP%]   .daily-inventory-account-filter[_ngcontent-%COMP%]{width:100%;max-width:unset;margin-bottom:10px}}"],changeDetection:0})}}return i})();var Ke=(()=>{class i{constructor(){this.currentView=H(D.perSystem),this.currentViewChange=q(),this.elementCssClass="d-flex blue justify-content-center mb-4",this.translationKey=C,this.dailyInventorySettingsView=D}static{this.\u0275fac=function(o){return new(o||i)}}static{this.\u0275cmp=k({type:i,selectors:[["cosp-daily-inventory-navigation"]],hostVars:2,hostBindings:function(o,n){o&2&&ue(n.elementCssClass)},inputs:{currentView:[1,"currentView"]},outputs:{currentViewChange:"currentViewChange"},decls:6,vars:10,consts:[[1,"daily-inventory-navigation-item",3,"click"]],template:function(o,n){o&1&&(Q(0,"div",0),ee("click",function(){return n.currentViewChange.emit(n.dailyInventorySettingsView.perSystem)}),_(1),m(2,"translate"),X(),Q(3,"div",0),ee("click",function(){return n.currentViewChange.emit(n.dailyInventorySettingsView.utilizationThreshold)}),_(4),m(5,"translate"),X()),o&2&&(te("active",n.currentView()===n.dailyInventorySettingsView.perSystem),p(),G(" ",u(2,6,n.translationKey.INDICATORS_PER_SYSTEM),`
2`),p(2),te("active",n.currentView()===n.dailyInventorySettingsView.utilizationThreshold),p(),G(" ",u(5,8,n.translationKey.UTILIZATION_REPORT_THRESHOLD),`
3`))},dependencies:[be,F],styles:['.daily-inventory-navigation-item[_ngcontent-%COMP%]{opacity:.5;padding-left:7px;display:flex;justify-content:space-between;align-items:center;cursor:pointer}.daily-inventory-navigation-item[_ngcontent-%COMP%]:after{content:"";display:block;width:0;height:100%;border-left:1px solid #00355f;min-height:1.5rem;margin-left:7px}.daily-inventory-navigation-item[_ngcontent-%COMP%]:last-child:after{content:none}.daily-inventory-navigation-item.active[_ngcontent-%COMP%]{opacity:1}'],changeDetection:0})}}return i})();function $e(i,l){if(i&1&&(v(0,"h4",1),_(1),m(2,"translate"),m(3,"translate"),g()),i&2){let e=S();p(),ie(" ",u(2,2,e.translationKey.DAILY_INVENTORY)," - ",u(3,4,e.translationKey.INDICATORS_PER_SYSTEM)," ")}}function Ze(i,l){if(i&1&&(v(0,"h4",1),_(1),m(2,"translate"),m(3,"translate"),g()),i&2){let e=S();p(),ie(" ",u(2,2,e.translationKey.DAILY_INVENTORY)," - ",u(3,4,e.translationKey.UTILIZATION_REPORT_THRESHOLD)," ")}}function qe(i,l){if(i&1){let e=j();v(0,"cosp-daily-inventory-system",5),m(1,"async"),b("onSave",function(n){N(e);let r=S();return E(r.onSave(n))}),g()}if(i&2){let e=S();O("system",u(1,3,e.currentSystem$))("gridData",l)("currentView",e.currentView)}}function Je(i,l){if(i&1&&(v(0,"div",4),_(1),m(2,"translate"),g()),i&2){let e=S();p(),G(" ",u(2,1,e.translationKey.LOADING_PLACEHOLDER)," ")}}var je=(()=>{class i extends J{constructor(){super(),this.store=h(Ve),this.inventorySettings$=L(oe.getInventorySettings),this.currentSystem$=L(oe.getDeploymentSystem).pipe(le(Boolean)),this.allDeployments=Object.values(V).filter(e=>e!==V.none),this.filteredDeployments=this.allDeployments.filter(e=>!Oe.includes(e)),this.deployments=this.filteredDeployments,this.deploymentToSet=null,this.currentView=D.perSystem,this.isFilteredDeployments=!0,this.translationKey=C,this.system=V,this.dailyInventorySettingsView=D,this.get
3SystemInventorySettings()}onSave(e){this.store.dispatch(new we(e))}onViewChange(e){this.currentView=e,this.isFilteredDeployments=e===D.perSystem;let[o]=this.filteredDeployments;this.isFilteredDeployments&&o?(this.deploymentToSet=o,this.deployments=this.filteredDeployments):(this.deploymentToSet=null,this.deployments=this.allDeployments)}getSystemInventorySettings(){this.store.dispatch(new Me(V.cableOsV1))}static{this.\u0275fac=function(o){return new(o||i)}}static{this.\u0275cmp=k({type:i,selectors:[["cosp-daily-inventory-settings"]],features:[$],decls:7,vars:8,consts:[[3,"currentViewChange","currentView"],[1,"blue"],[3,"deployment","deployments"],[3,"system","gridData","currentView"],[1,"mt-4","d-flex","justify-content-center","blue"],[3,"onSave","system","gridData","currentView"]],template:function(o,n){if(o&1&&(v(0,"cosp-daily-inventory-navigation",0),b("currentViewChange",function(d){return n.onViewChange(d)}),g(),w(1,$e,4,6,"h4",1),w(2,Ze,4,6,"h4",1),Z(3,"cosp-deployment-switcher",2),w(4,qe,2,5,"cosp-daily-inventory-system",3),m(5,"async"),me(6,Je,3,3,"div",4)),o&2){let r;O("currentView",n.currentView),p(),M(n.currentView===n.dailyInventorySettingsView.perSystem?1:-1),p(),M(n.currentView===n.dailyInventorySettingsView.utilizationThreshold?2:-1),p(),O("deployment",n.deploymentToSet)("deployments",n.deployments),p(),M((r=u(5,6,n.inventorySettings$))?4:6,r)}},dependencies:[Ke,ke,ze,Se,F],encapsulation:2})}}return i})();var Oi=[{path:"",component:je}];export{Oi as dailyInventorySettingsRoutes};

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.