1"use strict";(self.webpackChunkiApartmentApp=self.webpackChunkiApartmentApp||[]).push([[9026],{82446:(D,c,e)=>{e.r(c),e.d(c,{UnitDevicesNetworkSwitchDetailComponent:()=>w});var s=e(23154),p=e(46272),g=e(81471),o=e(88573),u=e(98382),r=e(72259),l=e(25229),S=e(7468),t=e(54438),f=e(24422),C=e(47610);let w=(()=>{class h{constructor(n,a,i,m){this.appSettingsService=n,this.adminUserService=a,this.notifyService=i,this.route=m,this.pageSizeList=[],this.pageSize=this.adminUserService.getPageSizeNumber(p.P2.DeploymentDevices),this.overlayNoRowsTemplate='<span style="padding: 10px; border: 0px solid #444;">No devices to show</span>'}ngOnInit(){this.operationId=+this.route.snapshot.params.operationId,this.getDeviceNetworkSwitchDetailById(),this.setGrid(),this.pageSizeList=[{label:"10",value:10},{label:"25",value:25},{label:"50",value:50},{label:"100",value:100}]}getDeviceNetworkSwitchDetailById(){this.subscription=this.appSettingsService.getDeviceNetworkSwitchDetailById({OperationId:this.operationId}).subscribe(a=>{1==a.body.Success&&a.body.DataList.length>0?this.rowData=a.body.DataList:this.gridApi.showNoRowsOverlay()},a=>{this.notifyService.showError("Unable to show device(s) network switch detail list."),this.gridApi.showNoRowsOverlay()})}setGrid(){this.context={componentParent:this},this.defaultColDef={resizable:!0},this.cellRenderers={actionComponent:g.o,titleCaseComponent:r.s,dateCreationComponent:o.p,dateTimeComponent:l.F},this.columnDefs=[{headerName:"Device Id",field:"DeviceId"},{headerName:"Operation Status",field:"OperationStatus"},{headerName:"Error",field:"Error"},{headerName:"Creation Date",field:"CreatedDatetime",cellRenderer:"dateTimeComponent"},{headerName:"Start Time",field:"StartedDatetime",cellRenderer:"dateTimeComponent"},{headerName:"Finish Time",field:"FinsihedDatetime",cellRenderer:"dateTimeComponent"},{headerName:"Operation Status",field:"OperationStatus"}]}onGridReady(n){this.gridApi=n.api,this.gridApi.paginationSetPageSize(this.pageSize)}onPageSizeChanged(){const n=Number(this.pageSize);this.gridApi?.paginationSetPageSize(n),this.adminUserService.setPageSizeNumber(n,p.P2.DeploymentDevices)}static{this.\u0275fac=function(a){return new(a||h)(t.rXU(s.u),t.rXU(u.u),t.rXU(f.J),t.rXU(C.nX))}}static{this.\u0275cmp=t.VBU({type:h,selectors:[["app-unit-devices-network-switch-detail"]],standalone:!0,features:[t.aNF],decls:1,vars:8,consts:[["pageTitle","List of Device(s) Network Switch Detail",3,"pageSizeChange","gridReady","pageSizeSelected","pageSizeList","pageSize","columnDefs","rowData","gridComponents","overlayNoRowsTemplate","defaultColDef","context"]],template:function(a,i){1&a&&(t.j41(0,"app-balham-ag-grid",0),t.mxI("pageSizeChange",function(d){return t.DH7(i.pageSize,d)||(i.pageSize=d),d}),t.bIt("gridReady",function(d){return i.onGridReady(d)})("pageSizeSelected",function(){return i.onPageSizeChanged()}),t.k0s()),2&a&&(t.Y8G("pageSizeList",i.pageSizeList),t.R50("pageSize",i.pageSize),t.Y8G("columnDefs",i.columnDefs)("rowData",i.rowData)("gridComponents",i.cellRenderers)("overlayNoRowsTemplate",i.overlayNoRowsTemplate)("defaultColDef",i.defaultColDef)("context",i.context))},dependencies:[S.H]})}}return h})()},56875:(D,c,e)=>{e.d(c,{w:()=>g});var s=e(54438),p=e(60177);let g=(()=>{class o{constructor(r){this.location=r}onClick(){this.location.back()}static{this.\u0275fac=function(l){return new(l||o)(s.rXU(p.aZ))}}static{this.\u0275dir=s.FsC({type:o,selectors:[["","appBackNavigate",""]],hostBindings:function(l,v){1&l&&s.bIt("click",function(){return v.onClick()})},standalone:!0})}}return o})()}}]);
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.