1"use strict";(self.webpackChunklineguide=self.webpackChunklineguide||[]).push([[925],{7925:(ri,A,m)=>{m.r(A),m.d(A,{KMLModule:()=>Zl});var g=m(6895),p=m(4863),V=m(1148),e=m(4650),I=m(9224),C=m(6755),y=m(7185),S=m(7619),v=m(3007),T=m(5067),U=m(6687),R=m(3627),E=m(1989),w=m(3715),K=m(4420);const B=function(n){return{active:n}};function W(n,a){if(1&n){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"button",9),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(t);const i=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(i.perPage(5e3))}),e.\u0275\u0275elementStart(1,"span"),e.\u0275\u0275text(2,"5000"),e.\u0275\u0275elementEnd()()}if(2&n){const t=e.\u0275\u0275nextContext(2);e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(1,B,5e3==t.count))}}function J(n,a){if(1&n&&(e.\u0275\u0275elementStart(0,"div",7),e.\u0275\u0275template(1,W,3,3,"button",8),e.\u0275\u0275elementEnd()),2&n){const t=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",t.total>5e3)}}function G(n,a){if(1&n){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"li",3),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(t);const i=e.\u0275\u0275nextContext().$implicit,o=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(o.changePage(i))}),e.\u0275\u0275elementStart(1,"a",6),e.\u0275\u0275text(2),e.\u0275\u0275elementEnd()()}if(2&n){const t=e.\u0275\u0275nextContext().$implicit,l=e.\u0275\u0275nextContext();e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(2,B,l.page==t)),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(t)}}function H(n,a){1&n&&(e.\u0275\u0275elementStart(0,"li",12)(1,"a",13),e.\u0275\u0275text(2,"..."),e.\u0275\u0275elementEnd()())}function Z(n,a){if(1&n&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275template(1,G,3,4,"li",10),e.\u0275\u0275template(2,H,3,0,"li",11),e.\u0275\u0275elementContainerEnd()),2&n){const t=a.$implicit;e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",0!=t),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",0==t)}}const $=function(n){return{disabled:n}};let q=(()=>{const a=class{constructor(l){this.router=l,this.UpdataTable=new e.EventEmitter,this.Mathfn=Math.ceil,this.pages=[]}ngOnInit(){this.CheckPages(),this.currentUrl=this.router.url}ngOnChanges(){this.CheckPages()}CheckPages(){let l=Math.ceil(this.total/this.count);if(this.pages=[],l<=10)for(let i=0;i<l;i++)this.pages.push(i+1);else this.pages=this.page<=5?[1,2,3,4,5,6,7,0,l]:this.page>=l-4?[1,0,l-6,l-5,l-4,l-3,l-2,l-1,l]:[1,0,this.page-2,this.page-1,this.page,this.page+1,this.page+2,0,l]}perPage(l){this.count!==l&&(this.count=l,this.page=1,this.UpdataTable.emit({count:l,page:1}))}changePage(l,i){i||(this.page=l,this.UpdataTable.emit({count:this.count,page:l}),this.CheckPages())}};let n=a;return a.\u0275fac=function(i){return new(i||a)(e.\u0275\u0275directiveInject(v.F0))},a.\u0275cmp=e.\u0275\u0275defineComponent({type:a,selectors:[["app-pagination-kml"]],inputs:{count:"count",page:"page",total:"total"},outputs:{UpdataTable:"UpdataTable"},features:[e.\u0275\u0275NgOnChangesFeature],decls:10,vars:8,consts:[[1,"ng-table-pager"],["class","ng-table-counts btn-group pull-right",4,"ngIf"],[1,"pagination","ng-table-pagination"],[3,"ngClass","click"],[1,"disabled","cursor-pointer"],[4,"ngFor","ngForOf"],[1,"cursor-pointer"],[1,"ng-table-counts","btn-group","pull-right"],["type","button","class","btn btn-default",3,"ngClass","click",4,"ngIf"],["type","button",1,"btn","btn-default",3,"ngClass","click"],[3,"ngClass","click",4,"ngIf"],["class","disabled",4,"ngIf"],[1,"disabled"],[1,""]],template:function(i,o){1&i&&(e.\u0275\u0275elementStart(0,"div",0),e.\u0275\u0275template(1,J,2,1,"div",1),e.\u0275\u0275elementStart(2,"ul",2)(3,"li",3),e.\u0275\u0275listener("click",function(){return o.changePage(o.page-1,1==o.page)}),e.\u0275\u0275elementStart(4,"a",4),e.\u0275\u0275text(5,"\xab"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275template(6,Z,3,2,"ng-container",5),e.\u0275\u0275elementStart(7,"li",3),e.\u0275\u0275listener("click",function(){return o.changePage(
1o.page+1,o.page==o.Mathfn(o.total/o.count))}),e.\u0275\u0275elementStart(8,"a",6),e.\u0275\u0275text(9,"\xbb"),e.\u0275\u0275elementEnd()()()()),2&i&&(e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf","/inspectionapp/filters/addFilters"!=o.currentUrl),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(4,$,1==o.page)),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngForOf",o.pages),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(6,$,o.page==o.Mathfn(o.total/o.count))))},dependencies:[g.mk,g.sg,g.O5],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),n})();var s=m(4006),D=m(4721),P=m(2561);const X=["lineAdded"],ee=["lineDeleted"],te=["lineUpdated"],ne=["structureAdded"],le=["structureDeleted"],ie=["structureUpdated"],oe=["glbSearch"];function ae(n,a){if(1&n){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275elementStart(1,"select",58),e.\u0275\u0275listener("ngModelChange",function(i){e.\u0275\u0275restoreView(t);const o=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(o.selectName=i)})("change",function(i){e.\u0275\u0275restoreView(t);const o=e.\u0275\u0275nextContext();return o.selectName="0"==i.target.value?"1":i.target.value,e.\u0275\u0275resetView(o.UpdateTable({archiveFilter:0==+i.target.value?1:+i.target.value,page:1}))}),e.\u0275\u0275elementStart(2,"option",59),e.\u0275\u0275text(3,"Select Deleted / Not Deleted"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(4,"option",60),e.\u0275\u0275text(5,"Not Deleted"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(6,"option",61),e.\u0275\u0275text(7,"Deleted"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(8,"option",62),e.\u0275\u0275text(9,"Archived"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementContainerEnd()}if(2&n){const t=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275property("ngModel",t.selectName)}}function re(n,a){if(1&n&&(e.\u0275\u0275elementStart(0,"option",66),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&n){const t=a.$implicit;e.\u0275\u0275property("value",t._id),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(t.cname)}}function se(n,a){if(1&n){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275elementStart(1,"select",63),e.\u0275\u0275listener("ngModelChange",function(i){e.\u0275\u0275restoreView(t);const o=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(o.selectedCompany=i)})("change",function(i){e.\u0275\u0275restoreView(t);const o=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(o.UpdateTable({companyId:i.target.value,page:1}))}),e.\u0275\u0275elementStart(2,"option",64),e.\u0275\u0275text(3,"Select Company"),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(4,re,2,2,"option",65),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementContainerEnd()}if(2&n){const t=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275property("ngModel",t.selectedCompany),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngForOf",t.Companies)}}function de(n,a){if(1&n){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"button",71),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(t);const i=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(i.UpdateTable({sorting:{}}))}),e.\u0275\u0275text(1,"Clear sorting"),e.\u0275\u0275elementEnd()}if(2&n){const t=e.\u0275\u0275nextContext(2);e.\u0275\u0275property("disabled",0==t.obj.keys(t.TbOptions.sorting).length)}}function ce(n,a){if(1&n&&(e.\u0275\u0275elementStart(0,"strong"),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&n){const t=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate2("Showing records ",t.TbData.length<(null==t.TbOptions?null:t.TbOptions.count)?t.TbData.length:null==t.TbOptions?null:t.TbOptions.count," out of ",t.Totals,"")}}function pe(n,a){if(1&n){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"th",82),e.\u0275\u0275listener("click",function(){const o=e.\u0275\u0275restoreView(t).$implicit,r=e.\u0275\u0275nextContext(3);
1return e.\u0275\u0275resetView(r.sortPage(o.key,o.sort))}),e.\u0275\u0275elementStart(1,"div",77)(2,"span",83),e.\u0275\u0275text(3),e.\u0275\u0275elementEnd()()()}if(2&n){const t=a.$implicit,l=e.\u0275\u0275nextContext(3);e.\u0275\u0275classMapInterpolate1("header ",l.returnClassSort(l.TbOptions.sorting[t.key],t.sort),""),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(t.label)}}function me(n,a){if(1&n&&(e.\u0275\u0275elementStart(0,"td"),e.\u0275\u0275text(1),e.\u0275\u0275pipe(2,"dateFormat"),e.\u0275\u0275elementEnd()),2&n){const t=e.\u0275\u0275nextContext().$implicit;e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(2,1,null==t?null:t.archivedOn))}}function ue(n,a){if(1&n){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275elementStart(1,"a",85),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(t);const i=e.\u0275\u0275nextContext(2).$implicit,o=e.\u0275\u0275nextContext(3);return e.\u0275\u0275resetView(o.selectedRecord=i)}),e.\u0275\u0275element(2,"i",86),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(3,"a",87),e.\u0275\u0275element(4,"i",88),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(5,"a",89),e.\u0275\u0275element(6,"i",90),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(7,"a",91),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(t);const i=e.\u0275\u0275nextContext(2).$implicit,o=e.\u0275\u0275nextContext(3);return e.\u0275\u0275resetView(o.selectedRecord=i)}),e.\u0275\u0275element(8,"i",92),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementContainerEnd()}if(2&n){const t=e.\u0275\u0275nextContext(2).$implicit;e.\u0275\u0275advance(3),e.\u0275\u0275propertyInterpolate3("routerLink","../overlayAllLines/",t._id,"/",t.fileType,"/",null==t?null:t.docName,""),e.\u0275\u0275advance(2),e.\u0275\u0275property("href",null==t?null:t.awsLocation,e.\u0275\u0275sanitizeUrl)}}function _e(n,a){if(1&n){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"a",97),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(t);const i=e.\u0275\u0275nextContext(3).$implicit,o=e.\u0275\u0275nextContext(3);return e.\u0275\u0275resetView(o.selectedRecord=i)}),e.\u0275\u0275element(1,"i",98),e.\u0275\u0275elementEnd()}}function ge(n,a){if(1&n){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275elementStart(1,"a",93),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(t);const i=e.\u0275\u0275nextContext(2).$implicit,o=e.\u0275\u0275nextContext(3);return e.\u0275\u0275resetView(o.selectedRecord=i)}),e.\u0275\u0275element(2,"i",94),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(3,_e,2,0,"a",95),e.\u0275\u0275elementStart(4,"a",96),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(t);const i=e.\u0275\u0275nextContext(2).$implicit,o=e.\u0275\u0275nextContext(3);return e.\u0275\u0275resetView(o.selectedRecord=i)}),e.\u0275\u0275element(5,"i",86),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementContainerEnd()}if(2&n){const t=e.\u0275\u0275nextContext(2).$implicit;e.\u0275\u0275advance(3),e.\u0275\u0275property("ngIf",null==t?null:t.dataArchived)}}function ve(n,a){if(1&n){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"a",97),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(t);const i=e.\u0275\u0275nextContext(4).$implicit,o=e.\u0275\u0275nextContext(3);return e.\u0275\u0275resetView(o.selectedRecord=i)}),e.\u0275\u0275element(1,"i",98),e.\u0275\u0275elementEnd()}}function he(n,a){if(1&n){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275elementStart(1,"a",85),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(t);const i=e.\u0275\u0275nextContext(3).$implicit,o=e.\u0275\u0275nextContext(3);return e.\u0275\u0275resetView(o.selectedRecord=i)}),e.\u0275\u0275element(2,"i",86),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(3,"a",87),e.\u0275\u0275element(4,"i",88),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(5,"a",89),e.\u0275\u0275element(6,"i",90),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(7,ve,2,0,"a",95),e.\u0275\u0275elementContainerEnd()}if(2&n){const t=e.\u0275\u0275nextContext(3).$implicit;e.\u0275\u0275advance(3),e.\u0275\u0275propertyInterpolate3("routerLink","../overlayAllLines/",t._id,"/",t.f
1ileType,"/",null==t?null:t.docName,""),e.\u0275\u0275advance(2),e.\u0275\u0275property("href",null==t?null:t.awsLocation,e.\u0275\u0275sanitizeUrl),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",null==t?null:t.dataArchived)}}function fe(n,a){if(1&n){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"a",97),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(t);const i=e.\u0275\u0275nextContext(4).$implicit,o=e.\u0275\u0275nextContext(3);return e.\u0275\u0275resetView(o.selectedRecord=i)}),e.\u0275\u0275element(1,"i",98),e.\u0275\u0275elementEnd()}}function xe(n,a){if(1&n){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275elementStart(1,"a",93),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(t);const i=e.\u0275\u0275nextContext(3).$implicit,o=e.\u0275\u0275nextContext(3);return e.\u0275\u0275resetView(o.selectedRecord=i)}),e.\u0275\u0275element(2,"i",94),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(3,fe,2,0,"a",95),e.\u0275\u0275elementStart(4,"a",96),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(t);const i=e.\u0275\u0275nextContext(3).$implicit,o=e.\u0275\u0275nextContext(3);return e.\u0275\u0275resetView(o.selectedRecord=i)}),e.\u0275\u0275element(5,"i",86),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementContainerEnd()}if(2&n){const t=e.\u0275\u0275nextContext(3).$implicit;e.\u0275\u0275advance(3),e.\u0275\u0275property("ngIf",null==t?null:t.dataArchived)}}function be(n,a){if(1&n&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275template(1,he,8,5,"ng-container",69),e.\u0275\u0275template(2,xe,6,1,"ng-container",69),e.\u0275\u0275elementContainerEnd()),2&n){const t=e.\u0275\u0275nextContext(2).$implicit;e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!(null!=t&&t.isDeleted)),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",null==t?null:t.isDeleted)}}function Ce(n,a){if(1&n&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275template(1,ue,9,4,"ng-container",69),e.\u0275\u0275template(2,ge,6,1,"ng-container",69),e.\u0275\u0275template(3,be,3,2,"ng-container",69),e.\u0275\u0275elementContainerEnd()),2&n){const t=e.\u0275\u0275nextContext(4);e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf","1"==t.selectName),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf","2"==t.selectName),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf","3"==t.selectName)}}function ye(n,a){if(1&n&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275elementStart(1,"a",87),e.\u0275\u0275element(2,"i",88),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(3,"a",89),e.\u0275\u0275element(4,"i",90),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementContainerEnd()),2&n){const t=e.\u0275\u0275nextContext().$implicit;e.\u0275\u0275advance(1),e.\u0275\u0275propertyInterpolate3("routerLink","../overlayAllLines/",t._id,"/",t.fileType,"/",null==t?null:t.docName,""),e.\u0275\u0275advance(2),e.\u0275\u0275property("href",null==t?null:t.awsLocation,e.\u0275\u0275sanitizeUrl)}}const Se=function(){return["","Lines","Structures","Stations"]},k=function(){return["ADMIN","SUPER ADMIN"]},j=function(){return["Viewer","Inspector","Contractor","Master Inspector","TLC"]};function Te(n,a){if(1&n&&(e.\u0275\u0275elementStart(0,"tr")(1,"td"),e.\u0275\u0275text(2),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(3,"td",84),e.\u0275\u0275text(4),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(5,"td"),e.\u0275\u0275text(6),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(7,"td"),e.\u0275\u0275text(8),e.\u0275\u0275pipe(9,"dateFormat"),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(10,me,3,3,"td",69),e.\u0275\u0275elementStart(11,"td"),e.\u0275\u0275text(12),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(13,"td"),e.\u0275\u0275template(14,Ce,4,3,"ng-container",13),e.\u0275\u0275template(15,ye,5,4,"ng-container",13),e.\u0275\u0275elementEnd()()),2&n){const t=a.$implicit,l=a.index,i=e.\u0275\u0275nextContext(3);e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate1(" ",l+1," "),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(null==t?null:t.docName),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(null==t||null==t.company?null:t.company.cname),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(9,8,null==t?null:t.createdOn)),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf","3"==i.selectName),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(e.\u0275\u0275pureFunction0(10,Se)[t.fileType]),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngxPermissionsOnly",e.\u0275\u0275pureFunction0(11,k)),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngxPermissionsOnly",e.\u0275\u0275pureFunction0(12,j))}}function Ie(n,a){if(1&n){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",72)(1,"table",73)(2,"thead")(3,"tr",74)(4,"th",75)(5,"div"),e.\u0275\u0275text(6," # "),e.\u0275\u0275elementEnd()(),e.\u0275\u0275template(7,pe,4,4,"th",76),e.\u0275\u0275elementStart(8,"th",75)(9,"div",77)(10,"span",78),e.\u0275\u0275text(11,"Actions"),e.\u0275\u0275elementEnd()()()()(),e.\u0275\u0275elementStart(12,"tbody"),e.\u0275\u0275template(13,Te,16,13,"tr",79),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(14,"div",80)(15,"div")(16,"app-pagination",81),e.\u0275\u0275listener("UpdataTable",function(i){e.\u0275\u0275restoreView(t);const o=e.\u0275\u0275nextContext(2);
1return e.\u0275\u0275resetView(o.UpdateTable(i))}),e.\u0275\u0275elementEnd()()()()}if(2&n){const t=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(7),e.\u0275\u0275property("ngForOf",t.ThData),e.\u0275\u0275advance(6),e.\u0275\u0275property("ngForOf",t.TbData),e.\u0275\u0275advance(3),e.\u0275\u0275property("count",null==t.TbOptions?null:t.TbOptions.count)("page",null==t.TbOptions?null:t.TbOptions.page)("Totals",t.Totals)}}function Ee(n,a){if(1&n&&(e.\u0275\u0275elementStart(0,"div",67),e.\u0275\u0275template(1,de,2,1,"button",68),e.\u0275\u0275elementStart(2,"p"),e.\u0275\u0275template(3,ce,2,2,"strong",69),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(4,Ie,17,5,"div",70),e.\u0275\u0275elementEnd()),2&n){const t=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",0!=(null==t.TbData?null:t.TbData.length)),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",0!=(null==t.TbData?null:t.TbData.length)),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",0!=(null==t.TbData?null:t.TbData.length))}}function we(n,a){1&n&&(e.\u0275\u0275elementStart(0,"div",67)(1,"div",99)(2,"strong",100),e.\u0275\u0275text(3,"No record to display."),e.\u0275\u0275elementEnd()()())}function Ke(n,a){1&n&&(e.\u0275\u0275elementStart(0,"div",67)(1,"span",105),e.\u0275\u0275element(2,"i",86),e.\u0275\u0275elementEnd(),e.\u0275\u0275text(3," Delete | "),e.\u0275\u0275elementStart(4,"span",106),e.\u0275\u0275element(5,"i",88),e.\u0275\u0275elementEnd(),e.\u0275\u0275text(6," View Map | "),e.\u0275\u0275elementStart(7,"span",107),e.\u0275\u0275element(8,"i",90),e.\u0275\u0275elementEnd(),e.\u0275\u0275text(9," Download | "),e.\u0275\u0275elementStart(10,"span",108),e.\u0275\u0275element(11,"i",92),e.\u0275\u0275elementEnd(),e.\u0275\u0275text(12," Archive | "),e.\u0275\u0275elementStart(13,"span",109),e.\u0275\u0275element(14,"i",94),e.\u0275\u0275elementEnd(),e.\u0275\u0275text(15," Recover | "),e.\u0275\u0275elementStart(16,"span",108),e.\u0275\u0275element(17,"i",98),e.\u0275\u0275elementEnd(),e.\u0275\u0275text(18," Unarchive "),e.\u0275\u0275elementEnd())}function ke(n,a){1&n&&(e.\u0275\u0275elementStart(0,"div",67)(1,"span",106),e.\u0275\u0275element(2,"i",88),e.\u0275\u0275elementEnd(),e.\u0275\u0275text(3," View Map | "),e.\u0275\u0275elementStart(4,"span",107),e.\u0275\u0275element(5,"i",90),e.\u0275\u0275elementEnd(),e.\u0275\u0275text(6," Download "),e.\u0275\u0275elementEnd())}function Fe(n,a){1&n&&(e.\u0275\u0275elementStart(0,"div",8)(1,"div",9)(2,"section",101)(3,"div",102)(4,"h1",103)(5,"strong"),e.\u0275\u0275text(6,"Legends"),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275template(7,Ke,19,0,"div",104),e.\u0275\u0275template(8,ke,7,0,"div",104),e.\u0275\u0275elementEnd()()()),2&n&&(e.\u0275\u0275advance(7),e.\u0275\u0275property("ngxPermissionsOnly",e.\u0275\u0275pureFunction0(2,k)),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngxPermissionsOnly",e.\u0275\u0275pureFunction0(3,j)))}function Le(n,a){if(1&n&&(e.\u0275\u0275elementStart(0,"tr",119)(1,"td",100),e.\u0275\u0275text(2),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(3,"td",100),e.\u0275\u0275text(4),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(5,"td"),e.\u0275\u0275text(6),e.\u0275\u0275pipe(7,"dateFormat"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(8,"td")(9,"span",119),e.\u0275\u0275text(10),e.\u0275\u0275pipe(11,"dateFormat"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(12,"td")(13,"span",119),e.\u0275\u0275text(14),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(15,"td")(16,"span",119),e.\u0275\u0275text(17),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(18,"td")(19,"span",119),e.\u0275\u0275text(20),e.\u0275\u0275elementEnd()()()),2&n){const t=a.$implicit,l=a.index;e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(l+1),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(t.processName),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(7,7,t.createdOn)),e.\u0275\u0275advance(4),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(11,9,t.completedOn)),e.\u0275\u0275advance(4),e.\u0275\u0275textInterpolate(t.isCompleted?"Finished":""),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(t.status?"success":""),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(t.message?t.message:"N/A")}}function Oe(n,a){if(1&n&&(e.\u0275\u0275elementStart(0,"div",111)(1,"div",9)(2,"section",112)(3,"div",102)(4,"h1",103)(5,"strong"),e.\u0275\u0275text(6,"Process"),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(7,"div",67)(8,"div",72)(9,"table",113)(10,"thead",114)(11,"tr",74)(12,"th",115)(13,"div",116)(14,"span",78),e.\u0275\u0275text(15,"#"),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(16,"th",115)(17,"div",116)(18,"span",78),e.\u0275\u0275text(19,"Process Name"),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(20,"th",115)(21,"div",116)(22,"span",78),e.\u0275\u0275text(23,"Started On"),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(24,"th",115)(25,"div",116)(26,"span",78),e.\u0275\u0275text(27,"Completed On"),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(28,"th",115)(29,"div",116)(30,"span",78),e.\u0275\u0275text(31,"Status"),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(32,"th",115)(33,"div",116)(34,"span",78),e.\u0275\u0275text(35,"Response"),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(36,"th",115)(37,"div",116)(38,"span",78),e.\u0275\u0275text(39,"Message"),e.\u0275\u0275elementEnd()()()()(),e.\u0275\u0275elementStart(40,"tbody"),e.\u0275\u0275template(41,Le,21,11,"tr",117),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(42,"div",118),e.\u0275\u0275element(43,"div",119),e.\u0275\u0275elementEnd()()()()()()),2&n){const t=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(41),e.\u0275\u0275property("ngForOf",t.processList)}}function Ve(n,a){if(1&n&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275template(1,Oe,44,1,"div",110),e.\u0275\u0275elementContainerEnd()),2&n){const t=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",t.processList.length>0&&0!=(null==t.TbData?null:t.TbData.length))}}function De(n,a){1&n&&(e.\u0275\u0275elementStart(0,"h3",120),e.\u0275\u0275text(1,"OG&E has updated power grid information available"),e.\u0275\u0275elementEnd())}function Pe(n,a){1&n&&(e.\u0275\u0275elementStart(0,"h3",120),e.\u0275\u0275text(1,"New Data Validation Summary - Lines"),e.\u0275\u0275elementEnd())}function Me(n,a){1&n&&(e.\u0275\u0275elementStart(0,"h3",120),e.\u0275\u0275text(1,"New Data Validation Summary - Structures"),e.\u0275\u0275elementEnd())}function Ne(n,a){if(1&n&&(e.\u0275\u0275elementStart(0,"tr")(1,"td"),e.\u0275\u0275text(2),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(3,"td"),e.\u0275\u0275text(4),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(5,"td"),e.\u0275\u0275text(6),e.\u0275\u0275pipe(7,"dateFormat"),e.\u0275\u0275elementEnd()()),2&n){const t=a.$implicit,l=a.index;e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(l+1),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(null==t?null:t.docName),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(7,3,null==t?null:t.createdOn))}}function Ae(n,a){if(1&n){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",47)(1,"div",8)(2,"div",9)(3,"table",121)(4,"thead")(5,"tr")(6,"th",122),e.\u0275\u0275text(7,"#"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(8,"th",122),e.\u0275\u0275text(9,"Files"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(10,"th",122),e.\u0275\u0275text(11,"Downloaded"),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(12,"tbody"),e.\u0275\u0275template(13,Ne,8,5,"tr",79),e.\u0275\u0275elementEnd()()()(),e.\u0275\u0275elementStart(14,"div",8)(15,"div",123),e.\u0275\u0275text(16,"\xa0"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(17,"div",8)(18,"div",36)(19,"h4"),e.\u0275\u0275text(20,"Would you like to work on this new information?"),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(21,"div",124),e.\u0275\u0275element(22,"div",125),e.\u0275\u0275elementStart(23,"div",126)(24,"button",127),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(t);const i=e.\u0275\u0275nextContext();
1return e.\u0275\u0275resetView(i.proceedToStep2())}),e.\u0275\u0275element(25,"i",128),e.\u0275\u0275text(26," Proceed"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(27,"div",126)(28,"button",129),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(t);const i=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(i.cancelNewKmlProcess())}),e.\u0275\u0275element(29,"i",130),e.\u0275\u0275text(30," Cancel"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(31,"div",126)(32,"button",129),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(t);const i=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(i.remindMeLater())}),e.\u0275\u0275element(33,"i",131),e.\u0275\u0275text(34," Remind Me Later"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275element(35,"div",125),e.\u0275\u0275elementEnd()()}if(2&n){const t=e.\u0275\u0275nextContext();e.\u0275\u0275advance(13),e.\u0275\u0275property("ngForOf",t.newKmls)}}function Ue(n,a){1&n&&(e.\u0275\u0275elementStart(0,"span",152),e.\u0275\u0275text(1," - Imported"),e.\u0275\u0275elementEnd())}function Re(n,a){1&n&&(e.\u0275\u0275elementStart(0,"button",153),e.\u0275\u0275text(1,"Validate"),e.\u0275\u0275elementEnd()),2&n&&e.\u0275\u0275property("disabled",!0)}function Be(n,a){if(1&n){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"button",127),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(t);const i=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(i.validateLines(null==i.lineKml?null:i.lineKml._id))}),e.\u0275\u0275text(1,"Validate"),e.\u0275\u0275elementEnd()}}function $e(n,a){if(1&n&&e.\u0275\u0275element(0,"div",154),2&n){const t=e.\u0275\u0275nextContext(2);e.\u0275\u0275styleProp("width",t.progressBarLinesValidateValue,"%")}}function je(n,a){if(1&n&&e.\u0275\u0275element(0,"div",155),2&n){const t=e.\u0275\u0275nextContext(2);e.\u0275\u0275styleProp("width",t.defaultProgressBarValue,"%")}}function ze(n,a){1&n&&(e.\u0275\u0275elementStart(0,"button",153),e.\u0275\u0275text(1,"View Validate Results"),e.\u0275\u0275elementEnd()),2&n&&e.\u0275\u0275property("disabled",!0)}function Qe(n,a){if(1&n){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"button",127),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(t);const i=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(i.viewValidateResultLines())}),e.\u0275\u0275text(1,"View Validate Results"),e.\u0275\u0275elementEnd()}}function Ye(n,a){1&n&&(e.\u0275\u0275elementStart(0,"button",153),e.\u0275\u0275text(1,"Import"),e.\u0275\u0275elementEnd()),2&n&&e.\u0275\u0275property("disabled",!0)}function We(n,a){if(1&n){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"button",127),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(t);const i=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(i.importLines())}),e.\u0275\u0275text(1,"Import"),e.\u0275\u0275elementEnd()}}function Je(n,a){if(1&n&&e.\u0275\u0275element(0,"div",156),2&n){const t=e.\u0275\u0275nextContext(2);e.\u0275\u0275styleProp("width",t.progressBarLinesImportValue,"%")}}function Ge(n,a){if(1&n&&e.\u0275\u0275element(0,"div",157),2&n){const t=e.\u0275\u0275nextContext(2);e.\u0275\u0275styleProp("width",t.defaultProgressBarValue,"%")}}function He(n,a){1&n&&(e.\u0275\u0275elementStart(0,"button",153),e.\u0275\u0275text(1,"View Import Results"),e.\u0275\u0275elementEnd()),2&n&&e.\u0275\u0275property("disabled",!0)}function Ze(n,a){if(1&n){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"button",127),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(t);const i=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(i.viewImportResultLines())}),e.\u0275\u0275text(1,"View Import Results"),e.\u0275\u0275elementEnd()}}function qe(n,a){1&n&&(e.\u0275\u0275elementStart(0,"span",152),e.\u0275\u0275text(1," - Imported"),e.\u0275\u0275elementEnd())}function Xe(n,a){1&n&&(e.\u0275\u0275elementStart(0,"button",153),e.\u0275\u0275text(1,"Validate"),e.\u0275\u0275elementEnd()),2&n&&e.\u0275\u0275property("disabled",!0)}function et(n,a){if(1&n){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"button",127),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(t);const i=e.\u0275\u0275nextContext(2);
1return e.\u0275\u0275resetView(i.validateStructures(null==i.structureKml?null:i.structureKml._id))}),e.\u0275\u0275text(1,"Validate"),e.\u0275\u0275elementEnd()}}function tt(n,a){if(1&n&&e.\u0275\u0275element(0,"div",158),2&n){const t=e.\u0275\u0275nextContext(2);e.\u0275\u0275styleProp("width",t.progressBarStructuresValidateValue,"%")}}function nt(n,a){if(1&n&&e.\u0275\u0275element(0,"div",159),2&n){const t=e.\u0275\u0275nextContext(2);e.\u0275\u0275styleProp("width",t.defaultProgressBarValue,"%")}}function lt(n,a){1&n&&(e.\u0275\u0275elementStart(0,"button",153),e.\u0275\u0275text(1,"View Validate Results"),e.\u0275\u0275elementEnd()),2&n&&e.\u0275\u0275property("disabled",!0)}function it(n,a){if(1&n){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"button",127),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(t);const i=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(i.viewValideResultStructures())}),e.\u0275\u0275text(1,"View Validate Results"),e.\u0275\u0275elementEnd()}}function ot(n,a){1&n&&(e.\u0275\u0275elementStart(0,"button",153),e.\u0275\u0275text(1,"Import"),e.\u0275\u0275elementEnd()),2&n&&e.\u0275\u0275property("disabled",!0)}function at(n,a){if(1&n){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"button",127),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(t);const i=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(i.importStructures())}),e.\u0275\u0275text(1,"Import"),e.\u0275\u0275elementEnd()}}function rt(n,a){if(1&n&&e.\u0275\u0275element(0,"div",160),2&n){const t=e.\u0275\u0275nextContext(2);e.\u0275\u0275styleProp("width",t.progressBarStructuresImportValue,"%")}}function st(n,a){if(1&n&&e.\u0275\u0275element(0,"div",161),2&n){const t=e.\u0275\u0275nextContext(2);e.\u0275\u0275styleProp("width",t.defaultProgressBarValue,"%")}}function dt(n,a){1&n&&(e.\u0275\u0275elementStart(0,"button",153),e.\u0275\u0275text(1,"View Import Results"),e.\u0275\u0275elementEnd()),2&n&&e.\u0275\u0275property("disabled",!0)}function ct(n,a){if(1&n){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"button",127),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(t);const i=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(i.viewImportResultStructures())}),e.\u0275\u0275text(1,"View Import Results"),e.\u0275\u0275elementEnd()}}function pt(n,a){1&n&&(e.\u0275\u0275elementStart(0,"button",165),e.\u0275\u0275text(1,"Back"),e.\u0275\u0275elementEnd()),2&n&&e.\u0275\u0275property("disabled",!0)}function mt(n,a){if(1&n){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"button",166),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(t);const i=e.\u0275\u0275nextContext(3);return e.\u0275\u0275resetView(i.goBackToStep1())}),e.\u0275\u0275text(1,"Back"),e.\u0275\u0275elementEnd()}}function ut(n,a){if(1&n&&(e.\u0275\u0275elementStart(0,"div",162),e.\u0275\u0275template(1,pt,2,1,"button",163),e.\u0275\u0275template(2,mt,2,0,"button",164),e.\u0275\u0275elementEnd()),2&n){const t=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",t.isValidateLineProcessing||t.isImportLineProcessing||t.isValidateStructureProcessing||t.isImportStructureProcessing),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!(t.isValidateLineProcessing||t.isImportLineProcessing||t.isValidateStructureProcessing||t.isImportStructureProcessing))}}function _t(n,a){1&n&&(e.\u0275\u0275elementStart(0,"button",165),e.\u0275\u0275text(1,"Close"),e.\u0275\u0275elementEnd()),2&n&&e.\u0275\u0275property("disabled",!0)}function gt(n,a){if(1&n){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"button",166),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(t);const i=e.\u0275\u0275nextContext(3);return e.\u0275\u0275resetView(i.remindMeLater())}),e.\u0275\u0275text(1,"Close"),e.\u0275\u0275elementEnd()}}function vt(n,a){if(1&n&&(e.\u0275\u0275elementStart(0,"div",162),e.\u0275\u0275template(1,_t,2,1,"button",163),e.\u0275\u0275template(2,gt,2,0,"button",164),e.\u0275\u0275elementEnd()),2&n){const t=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",t.isValidateLineProcessing||t.isImportLineProcessing||t.isValidateStructureProcessing||t.isImportStructureProcessing),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!(t.isValidateLineProcessing||t.isImportLineProcessing||t.isValidateStructureProcessing||t.isImportStructureProcessing))}}function ht(n,a){if(1&n&&(e.\u0275\u0275elementStart(0,"div",132)(1,"div",8)(2,"div",9)(3,"table",133)(4,"thead")(5,"tr")(6,"th",122),e.\u0275\u0275text(7,"Lines"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(8,"th",122),e.\u0275\u0275text(9,"("),e.\u0275\u0275elementStart(10,"span",134),e.\u0275\u0275text(11),e.\u0275\u0275elementEnd(),e.\u0275\u0275text(12,") "),e.\u0275\u0275template(13,Ue,2,0,"span",135),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(14,"tbody")(15,"tr")(16,"td"),e.\u0275\u0275template(17,Re,2,1,"button",136),e.\u0275\u0275template(18,Be,2,0,"button",137),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(19,"td",138)(20,"div",139),e.\u0275\u0275template(21,$e,1,2,"div",140),e.\u0275\u0275template(22,je,1,2,"div",141),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(23,"td",142),e.\u0275\u0275template(24,ze,2,1,"button",136),e.\u0275\u0275template(25,Qe,2,0,"button",137),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(26,"tr")(27,"td"),e.\u0275\u0275template(28,Ye,2,1,"button",136),e.\u0275\u0275template(29,We,2,0,"button",137),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(30,"td")(31,"div",139),e.\u0275\u0275template(32,Je,1,2,"div",143),e.\u0275\u0275template(33,Ge,1,2,"div",144),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(34,"td",142),e.\u0275\u0275template(35,He,2,1,"button",136),e.\u0275\u0275template(36,Ze,2,0,"button",137),e.\u0275\u0275elementEnd()()()()()(),e.\u0275\u0275elementStart(37,"div",145)(38,"div",9)(39,"table",146)(40,"thead")(41,"tr")(42,"th",122),e.\u0275\u0275text(43,"Structures"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(44,"th",122),e.\u0275\u0275text(45,"("),e.\u0275\u0275elementStart(46,"span",134),e.\u0275\u0275text(47),e.\u0275\u0275elementEnd(),e.\u0275\u0275text(48,") "),e.\u0275\u0275template(49,qe,2,0,"span",135),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(50,"tbody")(51,"tr")(52,"td"),e.\u0275\u0275template(53,Xe,2,1,"button",136),e.\u0275\u0275template(54,et,2,0,"button",137),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(55,"td",138)(56,"div",139),e.\u0275\u0275template(57,tt,1,2,"div",147),e.\u0275\u0275template(58,nt,1,2,"div",148),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(59,"td",142),e.\u0275\u0275template(60,lt,2,1,"button",136),e.\u0275\u0275template(61,it,2,0,"button",137),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(62,"tr")(63,"td"),e.\u0275\u0275template(64,ot,2,1,"button",136),e.\u0275\u0275template(65,at,2,0,"button",137),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(66,"td")(67,"div",139),e.\u0275\u0275template(68,rt,1,2,"div",149),e.\u0275\u0275template(69,st,1,2,"div",150),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(70,"td",142),e.\u0275\u0275template(71,dt,2,1,"button",136),e.\u0275\u0275template(72,ct,2,0,"button",137),e.\u0275\u0275elementEnd()()()()()(),e.\u0275\u0275elementStart(73,"div",8),e.\u0275\u0275element(74,"div",125),e.\u0275\u0275template(75,ut,3,2,"div",151),e.\u0275\u0275template(76,vt,3,2,"div",151),e.\u0275\u0275element(77,"div",125),e.\u0275\u0275elementEnd()()),2&n){const t=e.\u0275\u0275nextContext();e.\u0275\u0275advance(11),e.\u0275\u0275textInterpolate(null==t.lineKml?null:t.lineKml.docName),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",t.isLine
1sKmlImportCompleted),e.\u0275\u0275advance(4),e.\u0275\u0275property("ngIf",!t.isVlEnabled),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",t.isVlEnabled),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngIf",!t.isValidateLineProcessing),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",t.isValidateLineProcessing),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",!t.isVlREnabled),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",t.isVlREnabled),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngIf",!t.isIlEnabled),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",t.isIlEnabled),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngIf",!t.isImportLineProcessing),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",t.isImportLineProcessing),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",!t.isIlREnabled),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",t.isIlREnabled),e.\u0275\u0275advance(11),e.\u0275\u0275textInterpolate(null==t.structureKml?null:t.structureKml.docName),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",t.isStructuresKmlImportCompleted),e.\u0275\u0275advance(4),e.\u0275\u0275property("ngIf",!t.isVsEnabled),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",t.isVsEnabled),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngIf",!t.isValidateStructureProcessing),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",t.isValidateStructureProcessing),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",!t.isVsREnabled),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",t.isVsREnabled),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngIf",!t.isIsEnabled),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",t.isIsEnabled),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngIf",!t.isImportStructureProcessing),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",t.isImportStructureProcessing),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",!t.isIsREnabled),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",t.isIsREnabled),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngIf",!t.isLinesKmlImportCompleted||!t.isStructuresKmlImportCompleted),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",t.isLinesKmlImportCompleted&&t.isStructuresKmlImportCompleted)}}function ft(n,a){if(1&n&&(e.\u0275\u0275elementStart(0,"tr")(1,"td"),e.\u0275\u0275text(2),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(3,"td"),e.\u0275\u0275text(4),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(5,"td"),e.\u0275\u0275text(6),e.\u0275\u0275elementEnd()()),2&n){const t=a.$implicit,l=a.index,i=e.\u0275\u0275nextContext(4);e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate((i.page1-1)*i.count1+l+1),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(null==t?null:t.name),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(null==t?null:t.circuitId)}}function xt(n,a){if(1&n&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275template(1,ft,7,3,"tr",79),e.\u0275\u0275elementContainerEnd()),2&n){const t=e.\u0275\u0275nextContext(3);e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",null==t.lineKml?null:t.lineKml.entityAddedData)}}function bt(n,a){1&n&&(e.\u0275\u0275elementStart(0,"tr")(1,"td",183),e.\u0275\u0275text(2,"No records found"),e.\u0275\u0275elementEnd()())}function Ct(n,a){if(1&n){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div")(1,"div")(2,"app-pagination-kml",184),e.\u0275\u0275listener("UpdataTable",function(i){e.\u0275\u0275restoreView(t);const o=e.\u0275\u0275nextContext(3);return e.\u0275\u0275resetView(o.UpdateTableKml(i,o.lineKml._id,1,1))}),e.\u0275\u0275elementEnd()()()}if(2&n){const t=e.\u0275\u0275nextContext(3);e.\u0275\u0275advance(2),e.\u0275\u0275property("count",t.count1)("page",t.page1)("total",t.total1)}}function yt(n,a){if(1&n&&(e.\u0275\u0275elementStart(0,"tr")(1,"td"),e.\u0275\u0275text(2),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(3,"td"),e.\u0275\u0275text(4),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(5,"td"),e.\u0275\u0275text(6),e.\u0275\u0275elementEnd()()),2&n){const t=a.$implicit,l=a.index,i=e.\u0275\u0275nextContext(4);e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate((i.page2-1)*i.count2+l+1),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(null==t?null:t.name),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(null==t?null:t.circuitId)}}function St(n,a){if(1&n&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275template(1,yt,7,3,"tr",79),e.\u0275\u0275elementContainerEnd()),2&n){const t=e.\u0275\u0275nextContext(3);e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",null==t.lineKml?null:t.lineKml.entityDeletedData)}}function Tt(n,a){1&n&&(e.\u0275\u0275elementStart(0,"tr")(1,"td",183),e.\u0275\u0275text(2,"No records foun
1d"),e.\u0275\u0275elementEnd()())}function It(n,a){if(1&n){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div")(1,"div")(2,"app-pagination-kml",184),e.\u0275\u0275listener("UpdataTable",function(i){e.\u0275\u0275restoreView(t);const o=e.\u0275\u0275nextContext(3);return e.\u0275\u0275resetView(o.UpdateTableKml(i,o.lineKml._id,1,2))}),e.\u0275\u0275elementEnd()()()}if(2&n){const t=e.\u0275\u0275nextContext(3);e.\u0275\u0275advance(2),e.\u0275\u0275property("count",t.count2)("page",t.page2)("total",t.total2)}}function Et(n,a){if(1&n&&(e.\u0275\u0275elementStart(0,"div",187),e.\u0275\u0275text(1),e.\u0275\u0275elementStart(2,"span",188),e.\u0275\u0275text(3),e.\u0275\u0275elementEnd(),e.\u0275\u0275text(4," \u2192 "),e.\u0275\u0275elementStart(5,"span",189),e.\u0275\u0275text(6),e.\u0275\u0275elementEnd(),e.\u0275\u0275text(7,"; "),e.\u0275\u0275elementEnd()),2&n){const t=a.$implicit,l=e.\u0275\u0275nextContext(2).$implicit;e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",t.toUpperCase(),": "),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate1(" ",""===l.oldData[t]?"":l.oldData[t]," "),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate1(" ",""===l.newData[t]?"":l.newData[t]," ")}}function wt(n,a){if(1&n&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275template(1,Et,8,3,"div",186),e.\u0275\u0275elementContainerEnd()),2&n){const t=e.\u0275\u0275nextContext().$implicit,l=e.\u0275\u0275nextContext(4);e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",l.getKeys(t.oldData))}}function Kt(n,a){1&n&&e.\u0275\u0275text(0,"NA")}function kt(n,a){if(1&n&&(e.\u0275\u0275elementStart(0,"tr")(1,"td"),e.\u0275\u0275text(2),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(3,"td"),e.\u0275\u0275text(4),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(5,"td"),e.\u0275\u0275text(6),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(7,"td"),e.\u0275\u0275template(8,wt,2,1,"ng-container",175),e.\u0275\u0275template(9,Kt,1,0,"ng-template",null,185,e.\u0275\u0275templateRefExtractor),e.\u0275\u0275elementEnd()()),2&n){const t=a.$implicit,l=a.index,i=e.\u0275\u0275reference(10),o=e.\u0275\u0275nextContext(4);e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate((o.page3-1)*o.count3+l+1),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(null==t?null:t.name),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(null==t?null:t.circuitId),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",t.isChanged)("ngIfElse",i)}}function Ft(n,a){if(1&n&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275template(1,kt,11,5,"tr",79),e.\u0275\u0275elementContainerEnd()),2&n){const t=e.\u0275\u0275nextContext(3);e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",null==t.lineKml?null:t.lineKml.entityUpdatedData)}}function Lt(n,a){1&n&&(e.\u0275\u0275elementStart(0,"tr")(1,"td",183),e.\u0275\u0275text(2,"No records found"),e.\u0275\u0275elementEnd()())}function Ot(n,a){if(1&n){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div")(1,"div")(2,"app-pagination-kml",184),e.\u0275\u0275listener("UpdataTable",function(i){e.\u0275\u0275restoreView(t);const o=e.\u0275\u0275nextContext(3);return e.\u0275\u0275resetView(o.UpdateTableKml(i,o.lineKml._id,1,3))}),e.\u0275\u0275elementEnd()()()}if(2&n){const t=e.\u0275\u0275nextContext(3);e.\u0275\u0275advance(2),e.\u0275\u0275property("count",t.count3)("page",t.page3)("total",t.total3)}}function Vt(n,a){if(1&n&&(e.\u0275\u0275elementStart(0,"span"),e.\u0275\u0275text(1),e.\u0275\u0275element(2,"br"),e.\u0275\u0275elementEnd()),2&n){const t=a.$implicit;e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" * ",t," ")}}function Dt(n,a){if(1&n&&(e.\u0275\u0275elementStart(0,"tr")(1,"td"),e.\u0275\u0275text(2),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(3,"td"),e.\u0275\u0275text(4),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(5,"td"),e.\u0275\u0275template(6,Vt,3,1,"span",79),e.\u0275\u0275elementEnd()()),2&n){const t=a.$implicit,l=a.index;e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(l+1),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(null==t?null:t.name),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngForOf",null==t?null:t.lines)}}function Pt(n,a){if(1&n&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275template(1,Dt,7,3,"tr",79),e.\u0275\u0275elementContainerEnd()),2&n){const t=e.\u0275\u0275nextContext(3);e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",null==t.lineKml?null:t.lineKml.filtersDeleted)}}function Mt(n,a){1&n&&(e.\u0275\u0275elementStart(0,"tr")(1,"td",183),e.\u0275\u0275text(2,"No records foun
1d"),e.\u0275\u0275elementEnd()())}function Nt(n,a){if(1&n&&(e.\u0275\u0275elementStart(0,"div",8)(1,"div",168)(2,"h4",169),e.\u0275\u0275text(3),e.\u0275\u0275elementStart(4,"span",170),e.\u0275\u0275text(5,"Added"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(6,"div",171,172)(8,"table",173)(9,"thead")(10,"tr")(11,"th",122),e.\u0275\u0275text(12,"#"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(13,"th",122),e.\u0275\u0275text(14,"Line Name"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(15,"th",174),e.\u0275\u0275text(16,"CIRCUIT ID"),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(17,"tbody"),e.\u0275\u0275template(18,xt,2,1,"ng-container",175),e.\u0275\u0275template(19,bt,3,0,"ng-template",null,176,e.\u0275\u0275templateRefExtractor),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275template(21,Ct,3,3,"div",69),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(22,"div",177)(23,"h4",169),e.\u0275\u0275text(24),e.\u0275\u0275elementStart(25,"span",178),e.\u0275\u0275text(26,"Deleted"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(27,"div",171,179)(29,"table",173)(30,"thead")(31,"tr")(32,"th",122),e.\u0275\u0275text(33,"#"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(34,"th",122),e.\u0275\u0275text(35,"Line Name"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(36,"th",180),e.\u0275\u0275text(37,"CIRCUIT ID"),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(38,"tbody"),e.\u0275\u0275template(39,St,2,1,"ng-container",175),e.\u0275\u0275template(40,Tt,3,0,"ng-template",null,176,e.\u0275\u0275templateRefExtractor),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275template(42,It,3,3,"div",69),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(43,"div",177)(44,"h4",169),e.\u0275\u0275text(45),e.\u0275\u0275elementStart(46,"span",181),e.\u0275\u0275text(47,"Updated"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(48,"div",171,182)(50,"table",173)(51,"thead")(52,"tr")(53,"th",122),e.\u0275\u0275text(54,"#"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(55,"th",122),e.\u0275\u0275text(56,"Line Name"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(57,"th",174),e.\u0275\u0275text(58,"CIRCUIT ID"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(59,"th",122),e.\u0275\u0275text(60,"Object"),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(61,"tbody"),e.\u0275\u0275template(62,Ft,2,1,"ng-container",175),e.\u0275\u0275template(63,Lt,3,0,"ng-template",null,176,e.\u0275\u0275templateRefExtractor),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275template(65,Ot,3,3,"div",69),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(66,"div",177)(67,"h4",169),e.\u0275\u0275text(68),e.\u0275\u0275elementStart(69,"span",178),e.\u0275\u0275text(70,"Deleted"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(71,"div",171)(72,"table",173)(73,"thead")(74,"tr")(75,"th",122),e.\u0275\u0275text(76,"#"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(77,"th",122),e.\u0275\u0275text(78,"Filter Name"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(79,"th",180),e.\u0275\u0275text(80,"CIRCUIT IDs"),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(81,"tbody"),e.\u0275\u0275template(82,Pt,2,1,"ng-container",175),e.\u0275\u0275template(83,Mt,3,0,"ng-template",null,176,e.\u0275\u0275templateRefExtractor),e.\u0275\u0275elementEnd()()()()()),2&n){const t=e.\u0275\u0275reference(20),l=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate1(" ",(null==l.lineKml||null==l.lineKml.entityAddedCount[0]?null:l.lineKml.entityAddedCount[0].count)||0," Lines will be "),e.\u0275\u0275advance(15),e.\u0275\u0275property("ngIf",(null==l.lineKml||null==l.lineKml.entityAddedData?null:l.lineKml.entityAddedData.length)>0)("ngIfElse",t),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngIf",(null==l.lineKml||null==l.lineKml.entityAddedData?null:l.lineKml.entityAddedData.length)>0),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate1(" ",(null==l.lineKml||null==l.lineKml.entityDeletedCount[0]?null:l.lineKml.entityDeletedCount[0].count)||0," Lines will be "),e.\u0275\u0275advance(15),e.\u0275\u0275property("ngIf",(null==l.lineKml||null==l.lineKml.entityDeletedData?null:l.lineKml.entityDeletedData.length)>0)("ngIfElse",t),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngIf",(null==l.lineKml||null==l.lineKml.entityDeletedData?null:l.lineKml.entityDeletedData.length)>0),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate1(" ",(null==l.lineKml||null==l.lineKml.entityUpdatedCount[0]?null:l.lineKml.entityUpdatedCount[0].count)||0," Lines will be "),e.\u0275\u0275advance(17),e.\u0275\u0275property("ngIf",(null==l.lineKml||null==l.lineKml.entityUpdatedData?null:l.lineKml.entityUpdatedData.length)>0)("ngIfElse",t),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngIf",(null==l.lineKml||null==l.lineKml.entityUpdatedData?null:l.lineKml.entityUpdatedData.length)>0),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate1(" ",(null==l.lineKml||null==l.lineKml.filtersDeleted?null:l.lineKml.filtersDeleted.length)||0," Filters will be "),e.\u0275\u0275advance(14),e.\u0275\u0275property("ngIf",(null==l.lineKml||null==l.lineKml.filtersDeleted?null:l.lineKml.filtersDeleted.length)>0)("ngIfElse",t)}}function At(n,a){if(1&n&&(e.\u0275\u0275elementStart(0,"tr")(1,"td"),e.\u0275\u0275text(2),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(3,"td"),e.\u0275\u0275text(4),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(5,"td"),e.\u0275\u0275text(6),e.\u0275\u0275elementEnd()()),2&n){const t=a.$implicit,l=a.index,i=e.\u0275\u0275nextContext(4);e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate((i.page4-1)*i.count4+l+1),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(null==t?null:t.name),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(null==t?null:t.circuitId)}}function Ut(n,a){if(1&n&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275template(1,At,7,3,"tr",79),e.\u0275\u0275elementContainerEnd()),2&n){const t=e.\u0275\u0275nextContext(3);e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",null==t.structureKml?null:t.structureKml.entityAddedData)}}function Rt(n,a){1&n&&(e.\u0275\u0275elementStart(0,"tr")(1,"td",183),e.\u0275\u0275text(2,"No records foun
1d"),e.\u0275\u0275elementEnd()())}function Bt(n,a){if(1&n){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div")(1,"div")(2,"app-pagination-kml",184),e.\u0275\u0275listener("UpdataTable",function(i){e.\u0275\u0275restoreView(t);const o=e.\u0275\u0275nextContext(3);return e.\u0275\u0275resetView(o.UpdateTableKml(i,o.structureKml._id,2,1))}),e.\u0275\u0275elementEnd()()()}if(2&n){const t=e.\u0275\u0275nextContext(3);e.\u0275\u0275advance(2),e.\u0275\u0275property("count",t.count4)("page",t.page4)("total",t.total4)}}function $t(n,a){if(1&n&&(e.\u0275\u0275elementStart(0,"tr")(1,"td"),e.\u0275\u0275text(2),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(3,"td"),e.\u0275\u0275text(4),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(5,"td"),e.\u0275\u0275text(6),e.\u0275\u0275elementEnd()()),2&n){const t=a.$implicit,l=a.index,i=e.\u0275\u0275nextContext(4);e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate((i.page5-1)*i.count5+l+1),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(null==t?null:t.name),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(null==t?null:t.circuitId)}}function jt(n,a){if(1&n&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275template(1,$t,7,3,"tr",79),e.\u0275\u0275elementContainerEnd()),2&n){const t=e.\u0275\u0275nextContext(3);e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",null==t.structureKml?null:t.structureKml.entityDeletedData)}}function zt(n,a){1&n&&(e.\u0275\u0275elementStart(0,"tr")(1,"td",183),e.\u0275\u0275text(2,"No records found"),e.\u0275\u0275elementEnd()())}function Qt(n,a){if(1&n){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div")(1,"div")(2,"app-pagination-kml",184),e.\u0275\u0275listener("UpdataTable",function(i){e.\u0275\u0275restoreView(t);const o=e.\u0275\u0275nextContext(3);return e.\u0275\u0275resetView(o.UpdateTableKml(i,o.structureKml._id,2,2))}),e.\u0275\u0275elementEnd()()()}if(2&n){const t=e.\u0275\u0275nextContext(3);e.\u0275\u0275advance(2),e.\u0275\u0275property("count",t.count5)("page",t.page5)("total",t.total5)}}function Yt(n,a){if(1&n&&(e.\u0275\u0275elementStart(0,"div",187),e.\u0275\u0275text(1),e.\u0275\u0275elementStart(2,"span",188),e.\u0275\u0275text(3),e.\u0275\u0275elementEnd(),e.\u0275\u0275text(4," \u2192 "),e.\u0275\u0275elementStart(5,"span",189),e.\u0275\u0275text(6),e.\u0275\u0275elementEnd(),e.\u0275\u0275text(7,"; "),e.\u0275\u0275elementEnd()),2&n){const t=a.$implicit,l=e.\u0275\u0275nextContext(2).$implicit;e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",t.toUpperCase(),": "),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate1(" ",""===l.oldData[t]?"":l.oldData[t]," "),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate1(" ",""===l.newData[t]?"":l.newData[t]," ")}}function Wt(n,a){if(1&n&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275template(1,Yt,8,3,"div",186),e.\u0275\u0275elementContainerEnd()),2&n){const t=e.\u0275\u0275nextContext().$implicit,l=e.\u0275\u0275nextContext(4);e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",l.getKeys(t.oldData))}}function Jt(n,a){1&n&&e.\u0275\u0275text(0,"NA")}function Gt(n,a){if(1&n&&(e.\u0275\u0275elementStart(0,"tr")(1,"td"),e.\u0275\u0275text(2),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(3,"td"),e.\u0275\u0275text(4),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(5,"td"),e.\u0275\u0275text(6),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(7,"td"),e.\u0275\u0275template(8,Wt,2,1,"ng-container",175),e.\u0275\u0275template(9,Jt,1,0,"ng-template",null,185,e.\u0275\u0275templateRefExtractor),e.\u0275\u0275elementEnd()()),2&n){const t=a.$implicit,l=a.index,i=e.\u0275\u0275reference(10),o=e.\u0275\u0275nextContext(4);e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate((o.page6-1)*o.count6+l+1),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(null==t?null:t.name),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(null==t?null:t.circuitId),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",t.isChanged)("ngIfElse",i)}}function Ht(n,a){if(1&n&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275template(1,Gt,11,5,"tr",79),e.\u0275\u0275elementContainerEnd()),2&n){const t=e.\u0275\u0275nextContext(3);e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",null==t.structureKml?null:t.structureKml.entityUpdatedData)}}function Zt(n,a){1&n&&(e.\u0275\u0275elementStart(0,"tr")(1,"td",183),e.\u0275\u0275text(2,"No records foun
1d"),e.\u0275\u0275elementEnd()())}function qt(n,a){if(1&n){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div")(1,"div")(2,"app-pagination-kml",184),e.\u0275\u0275listener("UpdataTable",function(i){e.\u0275\u0275restoreView(t);const o=e.\u0275\u0275nextContext(3);return e.\u0275\u0275resetView(o.UpdateTableKml(i,o.structureKml._id,2,3))}),e.\u0275\u0275elementEnd()()()}if(2&n){const t=e.\u0275\u0275nextContext(3);e.\u0275\u0275advance(2),e.\u0275\u0275property("count",t.count6)("page",t.page6)("total",t.total6)}}function Xt(n,a){if(1&n&&(e.\u0275\u0275elementStart(0,"div",8)(1,"div",168)(2,"h4",169),e.\u0275\u0275text(3),e.\u0275\u0275elementStart(4,"span",170),e.\u0275\u0275text(5,"Added"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(6,"div",171,190)(8,"table",173)(9,"thead")(10,"tr")(11,"th",122),e.\u0275\u0275text(12,"#"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(13,"th",122),e.\u0275\u0275text(14,"Structure Name"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(15,"th",174),e.\u0275\u0275text(16,"CIRCUIT ID"),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(17,"tbody"),e.\u0275\u0275template(18,Ut,2,1,"ng-container",175),e.\u0275\u0275template(19,Rt,3,0,"ng-template",null,176,e.\u0275\u0275templateRefExtractor),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275template(21,Bt,3,3,"div",69),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(22,"div",177)(23,"h4",169),e.\u0275\u0275text(24),e.\u0275\u0275elementStart(25,"span",178),e.\u0275\u0275text(26,"Deleted"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(27,"div",171,191)(29,"table",173)(30,"thead")(31,"tr")(32,"th",122),e.\u0275\u0275text(33,"#"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(34,"th",122),e.\u0275\u0275text(35,"Structure Name"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(36,"th",180),e.\u0275\u0275text(37,"CIRCUIT ID"),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(38,"tbody"),e.\u0275\u0275template(39,jt,2,1,"ng-container",175),e.\u0275\u0275template(40,zt,3,0,"ng-template",null,176,e.\u0275\u0275templateRefExtractor),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275template(42,Qt,3,3,"div",69),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(43,"div",177)(44,"h4",169),e.\u0275\u0275text(45),e.\u0275\u0275elementStart(46,"span",181),e.\u0275\u0275text(47,"Updated"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(48,"div",171,192)(50,"table",173)(51,"thead")(52,"tr")(53,"th",122),e.\u0275\u0275text(54,"#"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(55,"th",122),e.\u0275\u0275text(56,"Structure Name"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(57,"th",174),e.\u0275\u0275text(58,"CIRCUIT ID"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(59,"th",122),e.\u0275\u0275text(60,"Object"),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(61,"tbody"),e.\u0275\u0275template(62,Ht,2,1,"ng-container",175),e.\u0275\u0275template(63,Zt,3,0,"ng-template",null,176,e.\u0275\u0275templateRefExtractor),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275template(65,qt,3,3,"div",69),e.\u0275\u0275elementEnd()()),2&n){const t=e.\u0275\u0275reference(20),l=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate1(" ",(null==l.structureKml||null==l.structureKml.entityAddedCount[0]?null:l.structureKml.entityAddedCount[0].count)||0," Structures will be "),e.\u0275\u0275advance(15),e.\u0275\u0275property("ngIf",(null==l.structureKml||null==l.structureKml.entityAddedData?null:l.structureKml.entityAddedData.length)>0)("ngIfElse",t),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngIf",(null==l.structureKml||null==l.structureKml.entityAddedData?null:l.structureKml.entityAddedData.length)>0),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate1(" ",(null==l.structureKml||null==l.structureKml.entityDeletedCount[0]?null:l.structureKml.entityDeletedCount[0].count)||0," Structures will be "),e.\u0275\u0275advance(15),e.\u0275\u0275property("ngIf",(null==l.structureKml||null==l.structureKml.entityDeletedData?null:l.structureKml.entityDeletedData.length)>0)("ngIfElse",t),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngIf",(null==l.structureKml||null==l.structureKml.entityDeletedData?null:l.structureKml.entityDeletedData.length)>0),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate1(" ",(null==l.structureKml||null==l.structureKml.entityUpdatedCount[0]?null:l.structureKml.entityUpdatedCount[0].count)||0," Structures will be "),e.\u0275\u0275advance(17),e.\u0275\u0275property("ngIf",(null==l.structureKml||null==l.structureKml.entityUpdatedData?null:l.structureKml.entityUpdatedData.length)>0)("ngIfElse",t),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngIf",(null==l.structureKml||null==l.structureKml.entityUpdatedData?null:l.structureKml.entityUpdatedData.length)>0)}}function en(n,a){if(1&n){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",132)(1,"div",8)(2,"div",167)(3,"button",166),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(t);const i=e.\u0275\u0275nextContext();
1return e.\u0275\u0275resetView(i.goBackToStep2())}),e.\u0275\u0275text(4,"Back"),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275template(5,Nt,85,15,"div",28),e.\u0275\u0275template(6,Xt,66,12,"div",28),e.\u0275\u0275elementEnd()}if(2&n){const t=e.\u0275\u0275nextContext();e.\u0275\u0275advance(5),e.\u0275\u0275property("ngIf",t.showLines),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",t.showStructures)}}const tn=function(){return["Viewer","ADMIN","SUPER ADMIN","Inspector","Contractor","Master Inspector"]};let nn=(()=>{const a=class{constructor(l,i,o,r,d,c){this.zone=l,this.logic=i,this.API=o,this.Toast=r,this.popup=d,this.router=c,this.Totals=0,this.TbData=[],this.TbOptions={id:null,deletedFilter:null,archiveFilter:1,fileType:null,fileNumber:null,companyId:null,globalSearchTerm:null,page:1,count:10,sorting:{createdOn:"desc"}},this.ThData=[{label:"File Name",key:"docName",sort:!0},{label:"Company",key:"cname",sort:!0},{label:"Created On",key:"createdOn",sort:!0},{label:"File Type",key:"fileType",sort:!1}],this.Companies=[],this.selectedRecord={firstName:"",lastName:""},this.Roles=V.G,this.obj=Object,this.selectName="1",this.getCompany=u=>this.Companies.filter(h=>h._id==u),this.selectedCompany="",this.filetype="",this.glbSearchDb="",this.isLinesKmlImportCompleted=!1,this.isStructuresKmlImportCompleted=!1,this.progressBarLinesValidateValue=0,this.progressBarLinesImportValue=0,this.progressBarStructuresValidateValue=0,this.progressBarStructuresImportValue=0,this.newKmls=[],this.step1=!0,this.step2=!1,this.step3=!1,this.showLines=!1,this.showStructures=!1,this.isValidateLineProcessing=!1,this.isImportLineProcessing=!1,this.isValidateStructureProcessing=!1,this.isImportStructureProcessing=!1,this.defaultProgressBarValue=134,this.isVlEnabled=!0,this.isVlREnabled=!1,this.isIlEnabled=!1,this.isIlREnabled=!1,this.isVsEnabled=!1,this.isVsREnabled=!1,this.isIsEnabled=!1,this.isIsREnabled=!1,this.page1=1,this.count1=5e3,this.total1=0,this.page2=1,this.count2=5e3,this.total2=0,this.page3=1,this.count3=5e3,this.total3=0,this.page4=1,this.count4=5e3,this.total4=0,this.page5=1,this.count5=5e3,this.total5=0,this.page6=1,this.count6=5e3,this.total6=0,this.delCnfBtn=!0,this.loading=!0,this.goVal="",this.processList=[]}ngOnInit(){this.LoadNewKmls(),this.LoadCompanies(),"KML"==this.logic.tbdata.page&&this.logic.tbdata.options.page?(this.TbOptions=this.logic.tbdata.options,this.loadKLM(this.logic.tbdata.options),this.selectedCompany=this.logic.tbdata.options.companyId||"",this.filetype=this.logic.tbdata.options.fileNumber||"",this.glbSearchDb=this.logic.tbdata.options.globalSearchTerm||""):this.loadKLM(this.TbOptions),this.kmlprocessList()}getKeys(l){return l?Object.keys(l):[]}LoadNewKmls(){try{this.API.checkKml(({status:l=0,data:i=[]})=>{if(200==l&&i.length){if(this.lineKml=i[0]?.lineKml,1==this.lineKml.isParsed)this.isVlEnabled=!1,this.isVsEnabled=!0,this.isLinesKmlImportCompleted=!0,this.progressBarLinesValidateValue=134,this.progressBarLinesImportValue=134;else if(this.lineKml?.entityAddedCount[0]?.count>0&&(this.total1=this.lineKml?.entityAddedCount[0]?.count),this.lineKml?.entityDeletedCount[0]?.count>0&&(this.total2=this.lineKml?.entityDeletedCount[0]?.count),this.lineKml?.entityUpdatedCount[0]?.count>0&&(this.total3=this.lineKml?.entityUpdatedCount[0]?.count),this.lineKml?.filtersDeleted?.length)for(let o=0;o<this.lineKml?.filtersDeleted?.length;o++){const r=this.lineKml.filtersDeleted[o].lines.sort();this.lineKml.filtersDeleted[o].lines=r}this.structureKml=i[0]?.structureKml,1==this.structureKml.isParsed?(this.isVlEnabled=!1,this.isVsEnabled=!1,this.isStructuresKmlImportCompleted=!0,this.progressBarStructuresValidateValue=134,this.progressBarStructuresImportValue=134):(this.structureKml?.entityAddedCount[0]?.count>0&&(this.total4=this.structureKml?.entityAddedCount[0]?.count),this.structureKml?.entityDeletedCount[0]?.count>0&&(this.total5=this.structureKml?.entityDeletedCount[0]?.count),this.structureKml?.entityUpdatedCount[0]?.count>0&&(this.total6=this.structureKml?.entityUpdatedCount[0]?.count)),this.newKmls=[this.lineKml,this.structureKml],this.newKmls?.length>0&&(0==this.lineKml.isParsed||0==this.structureKml.isParsed)&&this.popup.openPopUp("New_Kml")}},({error:l})=>{let{message:i=p.y0.errors.unknown}=l})}catch{}}proceedToStep2(){this.step1=!1,this.step2=!0}cancelNewKmlProcess(){const l=this.newKmls.map(i=>i._id);this.API.cancelNewKmlProcess({ids:l},({status:i=0,data:o=[]})=>{200==i&&(this.popup.closePopUp("New_Kml"),this.loadKLM(this.TbOptions))},({error:i})=>{let{message:o=p.y0.errors.unknown}=i;this.Toast.error(o),this.popup.closePopUp("New_Kml"),this.loadKLM(this.TbOptions)})}remindMeLater(){this.popup.closePopUp("New_Kml"),this.loadKLM(this.TbOptions)}validateLines(l){this.progressBarLinesValidateValue<100&&0==this.isLinesKmlImportCompleted&&0==this.isValidateLineProcessing&&(this.isValidateLineProcessing=!0,this.API.sendKmlValidationEmail({_id:l},({status:i=0,message:o="",data:r=[]})=>
1{if(200==i){this.isValidateLineProcessing=!1;const d=setInterval(()=>{this.progressBarLinesValidateValue>=100?(clearInterval(d),this.isVlREnabled=!0):(this.progressBarLinesValidateValue+=100/30,document.getElementById("progress-bar-lines-validate").style.width=this.progressBarLinesValidateValue+"%")},100)}else 403==i&&(this.Toast.error(o||p.y0.errors.unknown),this.isValidateLineProcessing=!1)},({error:i})=>{let{message:o=p.y0.errors.unknown}=i;this.Toast.error(o),this.isValidateLineProcessing=!1}))}viewValidateResultLines(){0==this.isLinesKmlImportCompleted&&0==this.isImportLineProcessing&&0==this.isImportStructureProcessing&&(this.step1=!1,this.step2=!1,this.step3=!0,this.isIlEnabled=!0,this.showLines=!0)}importLines(){this.progressBarLinesImportValue<100&&0==this.isLinesKmlImportCompleted&&0==this.isImportLineProcessing&&(this.isImportLineProcessing=!0,this.API.importKml({_id:this.lineKml._id},({status:l=0,message:i="",data:o=[]})=>{if(200==l){this.importLinesKmlApiResponse=o,this.isImportLineProcessing=!1;const r=setInterval(()=>{this.progressBarLinesImportValue>=100?(clearInterval(r),this.isIlREnabled=!0,this.isVsEnabled=!0,this.isLinesKmlImportCompleted=!0):(this.progressBarLinesImportValue+=100/30,document.getElementById("progress-bar-lines-import").style.width=this.progressBarLinesImportValue+"%")},100)}else 403==l&&(this.Toast.error(i||p.y0.errors.unknown),this.isImportLineProcessing=!1)},({error:l})=>{let{message:i=p.y0.errors.unknown}=l;this.Toast.error(i),this.isImportLineProcessing=!1}))}viewImportResultLines(){window.open(`/inspectionapp/kml/overlayAllLines/${this.importLinesKmlApiResponse.kml_doc_id}/1/${this.importLinesKmlApiResponse.kml_doc_name}`,"_blank")}validateStructures(l){this.progressBarStructuresValidateValue<100&&0==this.isStructuresKmlImportCompleted&&0==this.isValidateStructureProcessing&&(this.isValidateStructureProcessing=!0,this.API.sendKmlValidationEmail({_id:l},({status:i=0,message:o="",data:r=[]})=>{if(200==i){this.isValidateStructureProcessing=!1;const d=setInterval(()=>{this.progressBarStructuresValidateValue>=100?(clearInterval(d),this.isVsREnabled=!0):(this.progressBarStructuresValidateValue+=100/30,document.getElementById("progress-bar-structures-validate").style.width=this.progressBarStructuresValidateValue+"%")},100)}else 403==i&&(this.Toast.error(o||p.y0.errors.unknown),this.isValidateLineProcessing=!1)},({error:i})=>{let{message:o=p.y0.errors.unknown}=i;this.Toast.error(o),this.isValidateStructureProcessing=!1}))}viewValideResultStructures(){0==this.isStructuresKmlImportCompleted&&0==this.isImportLineProcessing&&0==this.isImportStructureProcessing&&(this.step1=!1,this.step2=!1,this.step3=!0,this.isIsEnabled=!0,this.showStructures=!0)}importStructures(){this.progressBarStructuresImportValue<100&&0==this.isStructuresKmlImportCompleted&&0==this.isImportStructureProcessing&&(this.isImportStructureProcessing=!0,this.API.importKml({_id:this.structureKml._id},({status:l=0,message:i="",data:o=[]})=>{if(200==l){this.isImportStructureProcessing=!1,this.importStructuresKmlApiResponse=o;const r=setInterval(()=>{this.progressBarStructuresImportValue>=100?(clearInterval(r),this.isIsREnabled=!0,this.isStructuresKmlImportCompleted=!0):(this.progressBarStructuresImportValue+=100/30,document.getElementById("progress-bar-structures-import").style.width=this.progressBarStructuresImportValue+"%")},100)}else 403==l&&(this.Toast.error(i||p.y0.errors.unknown),this.isImportStructureProcessing=!1)},({error:l})=>{let{message:i=p.y0.errors.unknown}=l;this.Toast.error(i),this.isImportStructureProcessing=!1}))}viewImportResultStructures(){window.open(`/inspectionapp/kml/overlayAllLines/${this.importStructuresKmlApiResponse.kml_doc_id}/2/${this.importStructuresKmlApiResponse.kml_doc_name}`,"_blank")}goBackToStep1(){this.step2=!1,this.step3=!1,this.step1=!0,0==this.isLinesKmlImportCompleted?(this.progressBarLinesValidateValue=0,this.progressBarLinesImportValue=0,this.isVlEnabled=!0,this.isVlREnabled=!1,this.isIlEnabled=!1,this.isIlREnabled=!1):(this.isVlEnabled=!1,this.isVlREnabled=!1,this.isIlEnabled=!1,this.isIlREnabled=!1,this.isVsEnabled=!0),this.progressBarStructuresValidateValue=0,this.progressBarStructuresImportValue=0,this.isVsREnabled=!1,this.isIsEnabled=!1,this.isIsREnabled=!1}goBackToStep2(){this.step1=!1,this.step3=!1,this.step2=!0,this.showLines=!1,this.showStructures=!1}ArchiveData(){this.API.archiveKLM({docId:this.selectedRecord._id,fileType:this.selectedRecord.fileType,companyId:this.selectedRecord.companyId},({message:l="Success"})=>{this.popup.openPopUp("bulkSuccess","Archived !",l),this.loadKLM(this.TbOptions)},({error:l})=>{let{message:i=p.y0.errors.unknown}=l;this.Toast.error(i)})}updatedisableBtn(l=""){this.zone.run(()=>{this.delCnfBtn=l.toLowerCase()!=this.selectedRecord.docName.toLowerCase()})}hardDeleteUser(){this.API.permenentDeleteKML({docId:this.selectedRecord._id},({message:l="Success"})=>{this.popup.openPopUp("bulkSuccess","Deleted !",l),this.loadKLM(this.TbOptions),document.getElementById("cnfValue").value=""},({error:l})=>{let{message:i=p.y0.errors.unknown}=l;this.Toast.error(i)})}kmlRecover(){this.API.kmlRecover({companyId:this.selectedRecord.companyId,docId:this.selectedRecord._id},({message:l="Success"})=>{this.popup.openPopUp("bulkSuccess","Recovered !",l),this.loadKLM(this.TbOptions)},({error:l})=>{let{message:i=p.y0.errors.unknown}=l;this.Toast.error(i)})}recoverArchivekml(){this.API.recoverArchivekml({companyId:this.selectedRecord.companyId,docId:this.selectedRecord._id,fileType:this.selectedRecord.fileType},({message:l="Success"})=>{this.popup.openPopUp("bulkSuccess","Recovered !",l),this.loadKLM(this.TbOptions)},({error:l})=>{let{message:i=p.y0.errors.unknown}=l;this.Toast.error(i)})}DeletekmlTemp(){this.API.deleteKLM({companyId:this.selectedRecord.companyId,docId:this.selectedRecord._id},({message:l="Success"})=>{this.popup.openPopUp("bulkSuccess","Deleted !",l),this.loadKLM(this.TbOptions)},({error:l})=>{let{message:i=p.y0.errors.unknown}=l;this.Toast.error(i)})}returnClassSort(l,i){return i?`sortable sort-${l}`:""}sortPage(l,i){if(i){const o=this.TbOptions.sorting[l];Object.keys(this.TbOptions.sorting)[0]==l?this.TbOptions.sorting[l]="asc"==o?"desc":"asc":(this.TbOptions.sorting={},this.TbOptions.sorting[l]="desc"),this.UpdateTable({})}}UpdateTable(l){this.logic.tbdata.options={...this.TbOptions,...l,globalSearchTerm:this.glbSearch.nativeElement.value.trim()},this.TbOptions={...this.TbOptions,...l,globalSearchTerm:this.glbSearch.nativeElement.value.trim()}
1,Object.keys(this.TbOptions).forEach(i=>{""===(this.TbOptions[i]||"")&&delete this.TbOptions[i]}),this.loadKLM(this.TbOptions)}UpdateTableKml(l,i,o,r){try{const d={validateKmlId:i,fileType:o,entityOperationType:r,page:l.page||1,count:l.count||100};this.loading=!0,this.API.getValidateKmlEntitiesList(d,({status:c=0,data:u=[]})=>{if(200==c&&(1==o?1==r?(this.lineKml.entityAddedData=u[0]?.entityAddedData||[],this.total1=u[0]?.entityAddedCount[0]?.count||0,setTimeout(()=>this.scrollToTop(this.lineAdded),0)):2==r?(this.lineKml.entityDeletedData=u[0]?.entityDeletedData||[],this.total2=u[0]?.entityDeletedCount[0]?.count||0,setTimeout(()=>this.scrollToTop(this.lineDeleted),0)):3==r&&(this.lineKml.entityUpdatedData=u[0]?.entityUpdatedData||[],this.total3=u[0]?.entityUpdatedCount[0]?.count||0,setTimeout(()=>this.scrollToTop(this.lineUpdated),0)):2==o&&(1==r?(this.structureKml.entityAddedData=u[0]?.entityAddedData||[],this.total4=u[0]?.entityAddedCount[0]?.count||0,setTimeout(()=>this.scrollToTop(this.structureAdded),0)):2==r?(this.structureKml.entityDeletedData=u[0]?.entityDeletedData||[],this.total5=u[0]?.entityDeletedCount[0]?.count||0,setTimeout(()=>this.scrollToTop(this.structureDeleted),0)):3==r&&(this.structureKml.entityUpdatedData=u[0]?.entityUpdatedData||[],this.total6=u[0]?.entityUpdatedCount[0]?.count||0,setTimeout(()=>this.scrollToTop(this.structureUpdated),0))),o>=1&&o<=2&&r>=1&&r<=3)){const h=3*(o-1)+r;this[`page${h}`]=l.page||1,this[`count${h}`]=l.count||100}this.loading=!1},({error:c})=>{let{message:u=p.y0.errors.unknown}=c;this.Toast.error(u),this.loading=!1})}catch{}}scrollToTop(l){l?.nativeElement&&l.nativeElement.scrollTo({top:0,behavior:"smooth"})}goValupdate(l){this.zone.run(()=>{this.goVal=l})}kmlprocessList(){try{this.API.kmlprocessList(({status:l=0,data:i=[]})=>{200==l&&(this.processList=i)},({error:l})=>{let{message:i=p.y0.errors.unknown}=l;this.Toast.error(i)})}catch{}}loadKLM(l){this.ThData="3"==this.selectName?[{label:"File Name",key:"docName",sort:!0},{label:"Company",key:"cname",sort:!0},{label:"Created On",key:"createdOn",sort:!0},{label:"Archived On",key:"archivedOn",sort:!0},{label:"File Type",key:"fileType",sort:!1}]:[{label:"File Name",key:"docName",sort:!0},{label:"Company",key:"cname",sort:!0},{label:"Created On",key:"createdOn",sort:!0},{label:"File Type",key:"fileType",sort:!1}];try{this.API.loadKmlFiles(l,({status:i=0,data:o=[],total:r=0})=>{200==i&&(this.TbData=o,this.Totals=r),204==i&&(this.TbData=[],this.Totals=0),this.loading=!1},({error:i})=>{let{message:o=p.y0.errors.unknown}=i;this.Toast.error(o),this.TbData=[],this.Totals=0,this.loading=!1})}catch{}}LoadCompanies(){try{this.API.listCompanies(({status:l=0,data:i=[]})=>{200==l&&(this.Companies=i)},({error:l})=>{let{message:i=p.y0.errors.unknown}=l;this.Toast.error(i)})}catch{}}};let n=a;return a.\u0275fac=function(i){return new(i||a)(e.\u0275\u0275directiveInject(e.NgZone),e.\u0275\u0275directiveInject(I.d),e.\u0275\u0275directiveInject(C.s),e.\u0275\u0275directiveInject(y._W),e.\u0275\u0275directiveInject(S.q),e.\u0275\u0275directiveInject(v.F0))},a.\u0275cmp=e.\u0275\u0275defineComponent({type:a,selectors:[["app-find-kml"]],viewQuery:function(i,o){if(1&i&&(e.\u0275\u0275viewQuery(X,5),e.\u0275\u0275viewQuery(ee,5),e.\u0275\u0275viewQuery(te,5),e.\u0275\u0275viewQuery(ne,5),e.\u0275\u0275viewQuery(le,5),e.\u0275\u0275viewQuery(ie,5),e.\u0275\u0275viewQuery(oe,5)),2&i){let r;e.\u0275\u0275queryRefresh(r=e.\u0275\u0275loadQuery())&&(o.lineAdded=r.first),e.\u0275\u0275queryRefresh(r=e.\u0275\u0275loadQuery())&&(o.lineDeleted=r.first),e.\u0275\u0275queryRefresh(r=e.\u0275\u0275loadQuery())&&(o.lineUpdated=r.first),e.\u0275\u0275queryRefresh(r=e.\u0275\u0275loadQuery())&&(o.structureAdded=r.first),e.\u0275\u0275queryRefresh(r=e.\u0275\u0275loadQuery())&&(o.structureDeleted=r.first),e.\u0275\u0275queryRefresh(r=e.\u0275\u0275loadQuery())&&(o.structureUpdated=r.first),e.\u0275\u0275queryRefresh(r=e.\u0275\u0275loadQuery())&&(o.glbSearch=r.first)}},decls:90,vars:23,consts:[[1,"page","page-dashboard"],[1,"pageheader"],[1,"page-bar"],[1,"page-breadcrumb"],["routerLink","/ins
1pectionapp/home"],[1,"fa","fa-home"],["routerLink","/inspectionapp/kml/listKmlFiles"],[1,"pagecontent"],[1,"row"],[1,"col-md-12"],["TitleStrong","KML ","TitleWeek","Documents List"],[1,"tile-widget"],[1,"col-sm-2"],[4,"ngxPermissionsOnly"],[1,"col-sm-3"],["name","role","id","role",1,"form-control",3,"ngModel","ngModelChange","change"],["value","","selected","selected",1,""],["label","Lines","value","1"],["label","Structures","value","2"],["label","Stations","value","3"],[1,"col-sm-4"],["name","searchForm",1,""],[1,"input-group"],["type","text","placeholder","Search by File name","name","searchTerm",1,"input-sm","form-control",3,"ngModel","ngModelChange"],["glbSearch",""],[1,"input-group-btn"],["title","click to search term","type","button",1,"btn","btn-sm","btn-blue",3,"click"],["class","tile-body",4,"ngIf"],["class","row",4,"ngIf"],["id","support"],["id","supportPages"],["PopupName","New_Kml"],[1,"modal","fade","splash","undefined","in",2,"overflow","auto","z-index","1050","display","block"],[1,"modal-dialog","modal-md","custom-model",2,"width","65%"],[1,"modal-content","new-kml-css"],[1,"modal-header"],[1,"col-sm-12","text-center"],["class","modal-title custom-font",4,"ngIf"],["class","modal-body",4,"ngIf"],["class","modal-body modal-body-validate-import",4,"ngIf"],["PopupName","DeletekmlTemp","okCta","Yes, delete it!","noCta","No, cancel it","warning","You won't be able to revert this!",3,"message","actionChange"],["PopupName","archiveData","okCta","Yes, archive it!","noCta","No, cancel it","message","Archive It !",3,"warning","actionChange"],["PopupName","deleteCnf"],[1,"modal","fade","ng-isolate-scope","splash","undefined","in",2,"z-index","1050","display","block"],[1,"modal-dialog","modal
1-md"],[1,"modal-content"],[1,"modal-title","custom-font","customFonth3"],[1,"modal-body"],[1,"text-muted"],["id","cnfValue","placeholder","Enter KML name","type","text","autocomplete","off",1,"form-control",2,"display","block",3,"input"],["reftext1",""],[1,"tile-footer","text-right","bg-tr-black","lter","dvd","dvd-top",2,"margin-top","30px","padding","20px"],[1,"btn","btn-lightred","btn-border","closeEvent",3,"click"],["appPopup","","idVal","deleteCnfprocede",1,"btn","btn-blue","btn-border",3,"disabled","click"],["PopupName","deleteCnfprocede","okCta","Yes, delete it!","noCta","No, cancel it","warning","You won't be able to revert this!",3,"message","actionChange"],["PopupName","recoverIt","okCta","Yes, recover it!","noCta","No, cancel it","message","Recover It !",3,"warning","actionChange"],["PopupName","recoverArchive","okCta","Yes, recover it!","noCta","No, cancel it","message","Recover It !",3,"warning","actionChange"],["PopupName","bulkSuccess"],["name","action",1,"form-control",3,"ngModel","ngModelChange","change"],["label","Select Deleted / Not Deleted","value","0"],["label","Not Deleted","value","1","selected","selected"],["label","Deleted","value","2"],["label","Archived","value","3"],["name","companyId","id","companyId",1,"form-control",3,"ngModel","ngModelChange","change"],["value","","selected",""],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"tile-body"],["class","btn btn-lightred btn-sm mb-10 pull-right",3,"disabled","click",4,"ngIf"],[4,"ngIf"],["class","table-responsive",4,"ngIf"],[1,"btn","btn-lightred","btn-sm","mb-10","pull-right",3,"disabled","click"],[1,"table-responsive"],["ng-table","tableParams",1,"table","table-custom","ng-table"],[1,"ng-table-sort-header"],["role","button",1,"header"],[3,"class","click",4,"ngFor","ngForOf"],[1,"ng-table-header"],[1,"sort-indicator"],[4,"ngFor","ngForOf"],[1,""],[3,"count","page","Totals","UpdataTable"],[3,"click"],[1,"ng-binding","sort-indicator"],[2,"text-transform","uppercase"],["appPopup","","idVal","DeletekmlTemp","title","Click to delete KML document",1,"icon","icon-danger","icon-ef-3","icon-ef-3a","hover-color",3,"click"],[1,"fa","fa-trash-o"],["title","Click to view map",1,"icon","icon-success","icon-ef-3","icon-ef-3a","hover-color","ng-scope",3,"routerLink"],[1,"fa","fa-map-marker"],["download","","title","Click to download file",1,"icon","icon-info","icon-ef-3","icon-ef-3a","hover-color",3,"href"],[1,"fa","fa-download"],["appPopup","","idVal","archiveData","title","Click to archive KML document",1,"icon","icon-darkgray","icon-ef-3","icon-ef-3a","hover-color","ng-scope",3,"click"],[1,"fa","fa-archive"],["appPopup","","idVal","recoverIt","title","Click to recover KML document",1,"icon","icon-green","icon-ef-3","icon-ef-3a","hover-color","ng-scope",3,"click"],[1,"fa","fa-history"],["appPopup","","idVal","recoverArchive","class","icon icon-darkgray icon-ef-3 icon-ef-3a hover-color ng-scope","title","Click to recover archived KML document",3,"click",4,"ngIf"],["appPopup","","idVal","deleteCnf","title","Click to delete KML document",1,"icon","icon-danger","icon-ef-3","icon-ef-3a","hover-color",3,"click"],["appPopup","","idVal","recoverArchive","title","Click to recover archived KML document",1,"icon","icon-darkgray","icon-ef-3","icon-ef-3a","hover-color","ng-scope",3,"click"],[1,"fa","fa-undo"],[1,"alert","alert-warning","alert-dismissible"],[1,"ng-binding"],["fullscreen","isFullscreen13",1,"tile"],[1,"tile-header","dvd","dvd-btm"],[1,"custom-font"],["class","tile-body",4,"ngxPermissionsOnly"],[1,"icon","icon-danger","icon-ef-3","icon-ef-3a","hover-color","legends"],[1,"icon","icon-success","icon-ef-3","icon-ef-3a","hover-color","legends"],[1,"icon","icon-info","icon-ef-3","icon-ef-3a","hover-color","legends"],[1,"icon","icon-darkgray","icon-ef-3","icon-ef-3a","hover-color","legends"],[1,"icon","icon-green","icon-ef-3","icon-ef-3a","hover-color","legends"],["class","row ng-scope",4,"ngIf"],[1,"row","ng-scope"],[1,"tile"],["ng-table","prTableParams",1,"table","table-custom","ng-scope","ng-table"],["ng-include","templates.header",1,"ng-scope"],["role","button","tabindex","0",1,"header"],[1,"ng-table-header","ng-scope"],["class","ng-scope",4,"ngFor","ngForOf"],[1,"ng-scope","ng-isolate-scope"],[1,"ng-scope"],[1,"modal-title","custom-font"],[1,"table","table-sm","new-table"],["scope","col"],[1,"col-sm-12"],[1,"row","cancel-btn-group"],[1,"col-sm-3","text-center"],[1,"col-sm-2","text-center"],[1,"btn","btn-sm","btn-blue",3,"click"],["aria-hidden","true",1,"fa","fa-upload"],[1,"closeEvent","btn","btn-sm","btn-lightred",3,"click"],["aria-hidden","true",1,"fa","fa-times"],["aria-hidden","true",1,"fa","fa-clock-o"],[1,"modal-body","modal-body-validate-import"],[1,"table","table-sm","new-table-proceed"],[1,"entityName"],["class","imported",4,"ngIf"],["class","btn btn-sm btn-blue",3,"disabled",4,"ngIf"],["class","btn btn-sm btn-blue",3,"click",4,"ngIf"],[1,"progress-meter"],[1,"progress-container"],["class","progress-bar","id","progress-bar-lines-validate",3,"width",4,"ngIf"],["class","progress-bar-processing processing","id","progress-bar-lines-validate",3,"width",4,"ngIf"],[1,"text-right"],["class","progress-bar","id","progress-bar-lines-import",3,"width",4,"ngIf"],["class","progress-bar-processing processing","id","progress-bar-lines-import",3,"width",4,"ngIf"],[1,"row","structure-div"],[1,"table","table-validation","table-sm","new-table-proceed"],["class","progress-bar","id","progress-bar-structures-vali
1date",3,"width",4,"ngIf"],["class","progress-bar-processing processing","id","progress-bar-structures-validate",3,"width",4,"ngIf"],["class","progress-bar","id","progress-bar-structures-import",3,"width",4,"ngIf"],["class","progress-bar-processing processing","id","progress-bar-structures-import",3,"width",4,"ngIf"],["class","col-sm-6 text-center",4,"ngIf"],[1,"imported"],[1,"btn","btn-sm","btn-blue",3,"disabled"],["id","progress-bar-lines-validate",1,"progress-bar"],["id","progress-bar-lines-validate",1,"progress-bar-processing","processing"],["id","progress-bar-lines-import",1,"progress-bar"],["id","progress-bar-lines-import",1,"progress-bar-processing","processing"],["id","progress-bar-structures-validate",1,"progress-bar"],["id","progress-bar-structures-validate",1,"progress-bar-processing","processing"],["id","progress-bar-structures-import",1,"progress-bar"],["id","progress-bar-structures-import",1,"progress-bar-processing","processing"],[1,"col-sm-6","text-center"],["class","btn btn-sm btn-lightred",3,"disabled",4,"ngIf"],["class","btn btn-sm btn-lightred",3,"click",4,"ngIf"],[1,"btn","btn-sm","btn-lightred",3,"disabled"],[1,"btn","btn-sm","btn-lightred",3,"click"],[1,"col-sm-12","text-right"],[1,"col-md-12","text-center"],[2,"font-weight","bold"],[2,"color","green"],[2,"max-height","405px","overflow-y","auto","border","1px solid #b1b1b1"],["lineAdded",""],[1,"table","table-validation-summary","table-sm"],["scope","col",1,"circuit-heading"],[4,"ngIf","ngIfElse"],["noRecords",""],[1,"col-md-12","text-center",2,"margin-top","35px"],[2,"color","red"],["lineDeleted",""],["scope","col",1,"deleted-heading"],[2,"color","blue"],["lineUpdated",""],["colspan","3",2,"text-align","center"],[3,"count","page","total","UpdataTable"],["showNA",""],["class","diff-row",4,"ngFor","ngForOf"],[1,"diff-row"],[1,"old-val"],[1,"new-val"],["structureAdded",""],["structureDeleted",""],["structureUpdated",""]],template:function(i,o){if(1&i){const r=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div")(1,"div",0)(2,"div",1)(3,"h2"),e.\u0275\u0275text(4,"KML "),e.\u0275\u0275elementStart(5,"span"),e.\u0275\u0275text(6,"Upload and list KML files"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(7,"div",2)(8,"ul",3)(9,"li")(10,"a",4),e.\u0275\u0275element(11,"i",5),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(12,"li")(13,"a",6),e.\u0275\u0275text(14,"KML "),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(15,"li")(16,"a",6),e.\u0275\u0275text(17,"Transmission KML "),e.\u0275\u0275elementEnd()()()()(),e.\u0275\u0275elementStart(18,"div",7)(19,"div",8)(20,"div",9)(21,"app-smart-div-fncs",10)(22,"div")(23,"div",11)(24,"div",8)(25,"div",12),e.\u0275\u0275template(26,ae,10,1,"ng-container",13),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(27,"div",14),e.\u0275\u0275template(28,se,5,2,"ng-container",13),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(29,"div",14)(30,"select",15),e.\u0275\u0275listener("ngModelChange",function(c){return o.filetype=c})("change",function(c){return o.UpdateTable({fileNumber:+c.target.value,page:1})}),e.\u0275\u0275elementStart(31,"option",16),e.\u0275\u0275text(32,"Select File Type"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(33,"option",17),e.\u0275\u0275text(34,"Lines"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(35,"option",18),e.\u0275\u0275text(36,"Structures"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(37,"option",19),e.\u0275\u0275text(38,"Stations"),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(39,"div",20)(40,"form",21)(41,"div",22)(42,"input",23,24),e.\u0275\u0275listener("ngModelChange",function(c){return o.glbSearchDb=c}),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(44,"span",25)(45,"button",26),e.\u0275\u0275listener("click",function(){return o.UpdateTable({page:1})}),e.\u0275\u0275text(46,"Go!"),e.\u0275\u0275elementEnd()()()()()()(),e.\u0275\u0275template(47,Ee,5,3,"div",27),e.\u0275\u0275template(48,we,4,0,"div",27),e.\u0275\u0275elementEnd()()()()(),e.\u0275\u0275template(49,Fe,9,4,"div",28),e.\u0275\u0275template(50,Ve,2,1,"ng-container",13),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(51,"div",29)(52,"div",30)(53,"app-custom-html",31)(54,"div",32)(55,"div",33)(56,"div",34)(57,"div",35)(58,"div",8)(59,"div",36),e.\u0275\u0275template(60,De,2,0,"h3",37),e.\u0275\u0275template(61,Pe,2,0,"h3",37),e.\u0275\u0275template(62,Me,2,0,"h3",37),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275template(63,Ae,36,1,"div",38),e.\u0275\u0275template(64,ht,78,30,"div",39),e.\u0275\u0275template(65,en,7,2,"div",39),e.\u0275\u0275elementEnd()()()(),e.\u0275\u0275elementStart(66,"app-action-pop-over",40),e.\u0275\u0275listener("actionChange",function(){return o.DeletekmlTemp()}),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(67,"app-action-pop-over",41),e.\u0275\u0275listener("actionChange",function(){return o.ArchiveData()}),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(68,"app-custom-html",42)(69,"div",43)(70,"div",44)(71,"div",45)(72,"div",35)(73,"h3",46),e.\u0275\u0275text(74,"Delete KML "),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(75,"div",47)(76,"p",48),e.\u0275\u0275text(77,"Note:Please enter KML name for permanent delete."),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(78,"input",49,50),e.\u0275\u0275listener("input",function(c){return o.updatedisableBtn(c.target.value)}),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(80,"div",51)(81,"button",52),e.\u0275\u0275listener("click",function(){return e.\u0275\u0275restoreView(r),e.\u0275\u0275reference(79).value="",e.\u0275\u0275resetVie
1w(o.delCnfBtn=!0)}),e.\u0275\u0275text(82,"Cancel"),e.\u0275\u0275elementEnd(),e.\u0275\u0275text(83,"\xa0 "),e.\u0275\u0275elementStart(84,"button",53),e.\u0275\u0275listener("click",function(){return e.\u0275\u0275restoreView(r),e.\u0275\u0275reference(79).value="",e.\u0275\u0275resetView(o.delCnfBtn=!0)}),e.\u0275\u0275text(85,"Submit"),e.\u0275\u0275elementEnd()()()()()()(),e.\u0275\u0275elementStart(86,"app-action-pop-over",54),e.\u0275\u0275listener("actionChange",function(){return o.hardDeleteUser()}),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(87,"app-action-pop-over",55),e.\u0275\u0275listener("actionChange",function(){return o.kmlRecover()}),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(88,"app-action-pop-over",56),e.\u0275\u0275listener("actionChange",function(){return o.recoverArchivekml()}),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(89,"app-infos",57),e.\u0275\u0275elementEnd()()}2&i&&(e.\u0275\u0275advance(26),e.\u0275\u0275property("ngxPermissionsOnly",e.\u0275\u0275pureFunction0(20,k)),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngxPermissionsOnly",e.\u0275\u0275pureFunction0(21,tn)),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngModel",o.filetype),e.\u0275\u0275advance(12),e.\u0275\u0275property("ngModel",o.glbSearchDb),e.\u0275\u0275advance(5),e.\u0275\u0275property("ngIf",0!=(null==o.TbData?null:o.TbData.length)),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",0==(null==o.TbData?null:o.TbData.length)&&!o.loading),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",0!=(null==o.TbData?null:o.TbData.length)),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngxPermissionsOnly",e.\u0275\u0275pureFunction0(22,k)),e.\u0275\u0275advance(10),e.\u0275\u0275property("ngIf",o.step1||o.step2),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",o.step3&&o.showLines),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",o.step3&&o.showStructures),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",o.step1),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",o.step2),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",o.step3),e.\u0275\u0275advance(1),e.\u0275\u0275propertyInterpolate1("message","Are you sure you want to delete ",null==o.selectedRecord?null:o.selectedRecord.docName," ?"),e.\u0275\u0275advance(1),e.\u0275\u0275propertyInterpolate1("warning","Are you sure you want to archive ",null==o.selectedRecord?null:o.selectedRecord.docName," ?"),e.\u0275\u0275advance(17),e.\u0275\u0275property("disabled",o.delCnfBtn),e.\u0275\u0275advance(2),e.\u0275\u0275propertyInterpolate1("message","Are you sure you want to delete ",null==o.selectedRecord?null:o.selectedRecord.docName," ?"),e.\u0275\u0275advance(1),e.\u0275\u0275propertyInterpolate1("warning","Are you sure you want to recover ",null==o.selectedRecord?null:o.selectedRecord.docName," ?"),e.\u0275\u0275advance(1),e.\u0275\u0275propertyInterpolate1("warning","Are you sure you want to recover ",null==o.selectedRecord?null:o.selectedRecord.docName," ?"))},dependencies:[g.sg,g.O5,v.rH,T.f,U.c,R.c,E.n,w.f,K.Q,q,s._Y,s.YN,s.Kr,s.Fj,s.EJ,s.JJ,s.JL,s.On,s.F,D.gE,P.t],styles:[".structure-div[_ngcontent-%COMP%]{margin-top:20px}.new-kml-css[_ngcontent-%COMP%]{border:3px solid #fb5824}.new-kml-css[_ngcontent-%COMP%] .modal-header[_ngcontent-%COMP%]{background-color:#dbdbdb}.new-kml-css[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%]{padding:25px}.modal-body-validate-import[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{min-width:140px}.modal-body-validate-import[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{vertical-align:middle}.table-validation-summary[_ngcontent-%COMP%]{text-align:left}.circuit-heading[_ngcontent-%COMP%]{width:22%}.deleted-heading[_ngcontent-%COMP%]{width:24%}.entityName[_ngcontent-%COMP%]{color:#313ea0}.imported[_ngcontent-%COMP%]{color:green}.progress-meter[_ngcontent-%COMP%]{min-width:350px}.progress-container[_ngcontent-%COMP%]{width:60%;max-width:600px;background-color:#e0e0e0;overflow:hidden;margin:0 auto}.progress-bar[_ngcontent-%COMP%]{height:20px;width:0;background-color:#76c7c0;transition:width .5s ease;border-radius:0}.progress-bar-processing[_ngcontent-%COMP%]{height:20px;width:0;background-color:#4d5fe9;transition:width .5s ease;border-radius:0;background-size:40px 40px;background-image:linear-gradient(45deg,rgba(173,216,230,.5) 25%,rgba(173,216,230,.8) 25%,rgba(173,216,230,.8) 50%,rgba(173,216,230,.5) 50%);animation:_ngcontent-%COMP%_diagonal-stripes 1s linear infinite}@keyframes _ngcontent-%COMP%_diagonal-stripes{0%{background-position:0 0}to{background-position:40px 40px}}@media (max-width: 1200px){.new-table-proceed[_ngcontent-%COMP%]{display:block;overflow-x:auto;max-width:500px}}@media (max-width: 768px){.custom-model[_ngcontent-%COMP%]{margin:30px auto;width:60%!important}.row.cancel-btn-group[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:10px}.new-table[_ngcontent-%COMP%]{display:block;overflow-x:auto;max-width:500px}}.diff-row[_ngcontent-%COMP%]{margin-bottom:4px}.old-val[_ngcontent-%COMP%]{color:#f02d2d;font-weight:500}.new-val[_ngcontent-%COMP%]{color:#2b88f3;font-weight:500}"]}),n})();const ln=["glbSearch"];function on(n,a){if(1&n){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275elementStart(1,"select",46),e.\u0275\u0275listener("ngModelChange",function(i){e.\u0275\u0275restoreView(t);const o=e.\u0275\u0275nextContext();
1return e.\u0275\u0275resetView(o.selectName=i)})("change",function(i){e.\u0275\u0275restoreView(t);const o=e.\u0275\u0275nextContext();return o.selectName="0"==i.target.value?"1":i.target.value,e.\u0275\u0275resetView(o.UpdateTable({archiveFilter:0==+i.target.value?1:+i.target.value}))}),e.\u0275\u0275elementStart(2,"option",47),e.\u0275\u0275text(3,"Select Deleted / Not Deleted"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(4,"option",48),e.\u0275\u0275text(5,"Not Deleted"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(6,"option",49),e.\u0275\u0275text(7,"Deleted"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementContainerEnd()}if(2&n){const t=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275property("ngModel",t.selectName)}}function an(n,a){if(1&n&&(e.\u0275\u0275elementStart(0,"option",53),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&n){const t=a.$implicit;e.\u0275\u0275property("value",t._id),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(t.cname)}}function rn(n,a){if(1&n){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275elementStart(1,"select",50),e.\u0275\u0275listener("ngModelChange",function(i){e.\u0275\u0275restoreView(t);const o=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(o.selectCompany=i)})("change",function(i){e.\u0275\u0275restoreView(t);const o=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(o.UpdateTable({companyId:i.target.value,page:1}))}),e.\u0275\u0275elementStart(2,"option",51),e.\u0275\u0275text(3,"Select Company"),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(4,an,2,2,"option",52),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementContainerEnd()}if(2&n){const t=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275property("ngModel",t.selectCompany),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngForOf",t.Companies)}}function sn(n,a){if(1&n){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"button",58),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(t);const i=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(i.UpdateTable({sorting:{}}))}),e.\u0275\u0275text(1,"Clear sorting"),e.\u0275\u0275elementEnd()}if(2&n){const t=e.\u0275\u0275nextContext(2);e.\u0275\u0275property("disabled",0==t.obj.keys(t.TbOptions.sorting).length)}}function dn(n,a){if(1&n&&(e.\u0275\u0275elementStart(0,"strong"),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&n){const t=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate2("Showing records ",t.TbData.length<(null==t.TbOptions?null:t.TbOptions.count)?t.TbData.length:null==t.TbOptions?null:t.TbOptions.count," out of ",t.Totals,"")}}function cn(n,a){if(1&n){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"th",69),e.\u0275\u0275listener("click",function(){const o=e.\u0275\u0275restoreView(t).$implicit,r=e.\u0275\u0275nextContext(3);return e.\u0275\u0275resetView(r.sortPage(o.key))}),e.\u0275\u0275elementStart(1,"div",64)(2,"span",65),e.\u0275\u0275text(3),e.\u0275\u0275elementEnd()()()}if(2&n){const t=a.$implicit,l=e.\u0275\u0275nextContext(3);e.\u0275\u0275classMapInterpolate1("header sortable sort-",l.TbOptions.sorting[t.key],""),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(t.label)}}function pn(n,a){if(1&n&&(e.\u0275\u0275elementStart(0,"a",76),e.\u0275\u0275element(1,"i",77),e.\u0275\u0275elementEnd()),2&n){const t=e.\u0275\u0275nextContext(3).$implicit;e.\u0275\u0275property("href",null==t?null:t.awsLocation,e.\u0275\u0275sanitizeUrl)}}function mn(n,a){if(1&n){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275elementStart(1,"a",71),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(t);const i=e.\u0275\u0275nextContext(2).$implicit,o=e.\u0275\u0275nextContext(3);return e.\u0275\u0275resetView(o.selectedRecord=i)}),e.\u0275\u0275element(2,"i",72),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(3,"a",73),e.\u0275\u0275element(4,"i",74),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(5,pn,2,1,"a",75),e.\u0275\u0275elementContainerEnd()}if(2&n){const t=e.\u0275\u0275nextContext(2).$implicit;e.\u0275\u0275advance(3),e.\u0275\u0275propertyInterpolate3("routerLink","../overlayAllLines/",t._id,"/",t.f
1ileType,"/",null==t?null:t.docName,""),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",!t.isDeleted&&!t.isExported)}}function un(n,a){if(1&n){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275elementStart(1,"a",78),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(t);const i=e.\u0275\u0275nextContext(2).$implicit,o=e.\u0275\u0275nextContext(3);return e.\u0275\u0275resetView(o.selectedRecord=i)}),e.\u0275\u0275element(2,"i",79),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementContainerEnd()}}function _n(n,a){if(1&n&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275template(1,mn,6,4,"ng-container",56),e.\u0275\u0275template(2,un,3,0,"ng-container",56),e.\u0275\u0275elementContainerEnd()),2&n){const t=e.\u0275\u0275nextContext(4);e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf","1"==t.selectName),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf","2"==t.selectName)}}function gn(n,a){if(1&n&&(e.\u0275\u0275elementStart(0,"a",76),e.\u0275\u0275element(1,"i",77),e.\u0275\u0275elementEnd()),2&n){const t=e.\u0275\u0275nextContext(2).$implicit;e.\u0275\u0275property("href",null==t?null:t.awsLocation,e.\u0275\u0275sanitizeUrl)}}function vn(n,a){if(1&n&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275elementStart(1,"a",73),e.\u0275\u0275element(2,"i",74),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(3,gn,2,1,"a",75),e.\u0275\u0275elementContainerEnd()),2&n){const t=e.\u0275\u0275nextContext().$implicit;e.\u0275\u0275advance(1),e.\u0275\u0275propertyInterpolate3("routerLink","../overlayAllLines/",t._id,"/",t.fileType,"/",null==t?null:t.docName,""),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",!t.isDeleted&&!t.isExported)}}const z=function(n){return[n]},M=function(){return["ADMIN","SUPER ADMIN"]},hn=function(){return["Inspector","Contractor","Master Inspector","TLC"]};function fn(n,a){if(1&n&&(e.\u0275\u0275elementStart(0,"tr")(1,"td"),e.\u0275\u0275text(2),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(3,"td",70),e.\u0275\u0275text(4),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(5,"td"),e.\u0275\u0275text(6),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(7,"td"),e.\u0275\u0275text(8),e.\u0275\u0275pipe(9,"dateFormat"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(10,"td"),e.\u0275\u0275text(11,"Pre-Build Lines"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(12,"td"),e.\u0275\u0275template(13,_n,3,2,"ng-container",14),e.\u0275\u0275template(14,vn,4,4,"ng-container",14),e.\u0275\u0275elementEnd()()),2&n){const t=a.$implicit,l=a.index,i=e.\u0275\u0275nextContext(3);e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate1(" ",l+1," "),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(null==t?null:t.docName),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(null==i.getCompany(e.\u0275\u0275pureFunction1(8,z,null==t?null:t.companyId))[0]?null:i.getCompany(e.\u0275\u0275pureFunction1(10,z,null==t?null:t.companyId))[0].cname),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(9,6,null==t?null:t.createdOn)),e.\u0275\u0275advance(5),e.\u0275\u0275property("ngxPermissionsOnly",e.\u0275\u0275pureFunction0(12,M)),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngxPermissionsOnly",e.\u0275\u0275pureFunction0(13,hn))}}function xn(n,a){if(1&n){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",59)(1,"table",60)(2,"thead")(3,"tr",61)(4,"th",62)(5,"div"),e.\u0275\u0275text(6," # "),e.\u0275\u0275elementEnd()(),e.\u0275\u0275template(7,cn,4,4,"th",63),e.\u0275\u0275elementStart(8,"th",62)(9,"div",64)(10,"span",65),e.\u0275\u0275text(11,"File Type"),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(12,"th",62)(13,"div",64)(14,"span",65),e.\u0275\u0275text(15,"Actions"),e.\u0275\u0275elementEnd()()()()(),e.\u0275\u0275elementStart(16,"tbody"),e.\u0275\u0275template(17,fn,15,14,"tr",66),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(18,"div",67)(19,"div")(20,"app-pagination",68),e.\u0275\u0275listener("UpdataTable",function(i){e.\u0275\u0275restoreView(t);const o=e.\u0275\u0275nextContext(2);
1return e.\u0275\u0275resetView(o.UpdateTable(i))}),e.\u0275\u0275elementEnd()()()()}if(2&n){const t=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(7),e.\u0275\u0275property("ngForOf",t.ThData),e.\u0275\u0275advance(10),e.\u0275\u0275property("ngForOf",t.TbData),e.\u0275\u0275advance(3),e.\u0275\u0275property("count",null==t.TbOptions?null:t.TbOptions.count)("page",null==t.TbOptions?null:t.TbOptions.page)("Totals",t.Totals)}}function bn(n,a){if(1&n&&(e.\u0275\u0275elementStart(0,"div",54),e.\u0275\u0275template(1,sn,2,1,"button",55),e.\u0275\u0275elementStart(2,"p"),e.\u0275\u0275template(3,dn,2,2,"strong",56),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(4,xn,21,5,"div",57),e.\u0275\u0275elementEnd()),2&n){const t=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",0!=(null==t.TbData?null:t.TbData.length)),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",0!=(null==t.TbData?null:t.TbData.length)),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",0!=(null==t.TbData?null:t.TbData.length))}}function Cn(n,a){1&n&&(e.\u0275\u0275elementStart(0,"div",54)(1,"div",80)(2,"strong",81),e.\u0275\u0275text(3,"No record to display."),e.\u0275\u0275elementEnd()()())}function yn(n,a){1&n&&(e.\u0275\u0275elementStart(0,"div",9)(1,"div",10)(2,"section",82)(3,"div",83)(4,"h1",84)(5,"strong"),e.\u0275\u0275text(6,"Legends"),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(7,"div",54)(8,"span",85),e.\u0275\u0275element(9,"i",72),e.\u0275\u0275elementEnd(),e.\u0275\u0275text(10," Delete | "),e.\u0275\u0275elementStart(11,"span",86),e.\u0275\u0275element(12,"i",74),e.\u0275\u0275elementEnd(),e.\u0275\u0275text(13," View Map | "),e.\u0275\u0275elementStart(14,"span",87),e.\u0275\u0275element(15,"i",77),e.\u0275\u0275elementEnd(),e.\u0275\u0275text(16," Download "),e.\u0275\u0275elementEnd()()()())}function Sn(n,a){if(1&n&&(e.\u0275\u0275elementStart(0,"tr",96)(1,"td",81),e.\u0275\u0275text(2),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(3,"td",81),e.\u0275\u0275text(4),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(5,"td"),e.\u0275\u0275text(6),e.\u0275\u0275pipe(7,"dateFormat"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(8,"td")(9,"span",96),e.\u0275\u0275text(10),e.\u0275\u0275pipe(11,"dateFormat"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(12,"td")(13,"span",96),e.\u0275\u0275text(14),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(15,"td")(16,"span",96),e.\u0275\u0275text(17),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(18,"td")(19,"span",96),e.\u0275\u0275text(20),e.\u0275\u0275elementEnd()()()),2&n){const t=a.$implicit,l=a.index;e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(l+1),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(t.processName),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(7,7,t.createdOn)),e.\u0275\u0275advance(4),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(11,9,t.completedOn)),e.\u0275\u0275advance(4),e.\u0275\u0275textInterpolate(t.isCompleted?"Finished":""),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(t.status?"success":""),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(t.message?t.message:"N/A")}}function Tn(n,a){if(1&n&&(e.\u0275\u0275elementStart(0,"div",89)(1,"div",10)(2,"section",90)(3,"div",83)(4,"h1",84)(5,"strong"),e.\u0275\u0275text(6,"Process"),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(7,"div",54)(8,"div",59)(9,"table",91)(10,"thead",92)(11,"tr",61)(12,"th",93)(13,"div",94)(14,"span",65),e.\u0275\u0275text(15,"#"),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(16,"th",93)(17,"div",94)(18,"span",65),e.\u0275\u0275text(19,"Process Name"),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(20,"th",93)(21,"div",94)(22,"span",65),e.\u0275\u0275text(23,"Started On"),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(24,"th",93)(25,"div",94)(26,"span",65),e.\u0275\u0275text(27,"Completed On"),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(28,"th",93)(29,"div",94)(30,"span",65),e.\u0275\u0275text(31,"Status"),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(32,"th",93)(33,"div",94)(34,"span",65),e.\u0275\u0275text(35,"Response"),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(36,"th",93)(37,"div",94)(38,"span",65),e.\u0275\u0275text(39,"Message"),e.\u0275\u0275elementEnd()()()()(),e.\u0275\u0275elementStart(40,"tbody"),e.\u0275\u0275template(41,Sn,21,11,"tr",95),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(42,"div",67),e.\u0275\u0275element(43,"div",96),e.\u0275\u0275elementEnd()()()()()()),2&n){const t=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(41),e.\u0275\u0275property("ngForOf",t.processList)}}function In(n,a){if(1&n&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275template(1,Tn,44,1,"div",88),e.\u0275\u0275elementContainerEnd()),2&n){const t=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",t.processList.length>0&&0!=(null==t.TbData?null:t.TbData.length))}}const En=function(){return["ADMIN","SUPER ADMIN","Inspector","Contractor","Master Inspector"]};let wn=(()=>{const a=class{constructor(l,i,o,r,d){this.logic=l,this.zone=i,this.API=o,this.Toast=r,this.popup=d,this.Totals=0,this.TbData=[],this.TbOptions={id:null,deletedFilter:null,archiveFilter:1,fileType:null,fileNumber:8,companyId:null,globalSearchTerm:null,page:1,count:10,sorting:{createdOn:"desc"}},this.ThData=[{label:"File Name",key:"docName"},{label:"Company",key:"cname"},{label:"Created On",key:"createdOn"}],this.Companies=[],this.selectedRecord={firstName:"",lastName:""},this.Roles=V.G,this.selectName="1",this.selectCompany="",this.globalSearch="",this.obj=Object,this.getCompany=c=>this.Companies.filter(u=>u._id==c),this.delCnfBtn=!0,this.loading=!0,this.goVal="",this.processList=[]}ngOnInit(){this.LoadCompanies(),console.log(this.logic.tbdata),"PREBUILDKML"==this.logic.tbdata.page&&this.logic.tbdata.options.page?(this.TbOptions=this.logic.tbdata.options,this.logic.tbdata.options.archiveFilter&&(this.selectName=this.logic.tbdata.options.archiveFilter),this.logic.tbdata.options.companyId&&(this.selectCompany=this.logic.tbdata.options.companyId),this.logic.tbdata.options.globalSearchTerm&&(this.globalSearch=this.logic.tbdata.options.globalSearchTerm),this.loadKLM(this.logic.tbdata.options)):this.loadKLM(this.TbOptions),this.kmlprocessList()}ArchiveData(){this.API.archiveKLM({docId:this.selectedRecord._id,fileType:this.selectedRecord.fileType,companyId:this.selectedRecord._id},({message:l="Success"})=>{this.popup.openPopUp("bulkSuccess","Archived !",l),this.loadKLM(this.TbOptions)},({error:l})=>{let{message:i=p.y0.errors.unknown}=l;this.Toast.error(i)})}updatedisableBtn(l=""){this.zone.run(()=>{this.delCnfBtn=l.toLowerCase()!=this.selectedRecord.docName.toLowerCase()})}hardDeleteUser(){this.API.permenentDeleteKML({docId:this.selectedRecord._id},({message:l="Success"})=>{this.popup.openPopUp("bulkSuccess","Deleted !",l),this.loadKLM(this.TbOptions)},({error:l})=>{let{message:i=p.y0.errors.unknown}=l;this.Toast.error(i)})}kmlRecover(){this.API.kmlRecover({companyId:this.selectedRecord.companyId,docId:this.selectedRecord._id},({message:l="Success"})=>{this.popup.openPopUp("bulkSuccess","Recovered !",l),this.loadKLM(this.TbOptions)},({error:l})=>{let{message:i=p.y0.errors.unknown}=l;this.Toast.error(i)})}recoverArchivekml(){this.API.recoverArchivekml({companyId:this.selectedRecord.companyId,docId:this.selectedRecord._id,fileType:this.selectedRecord.fileType},({message:l="Success"})=>{this.popup.openPopUp("bulkSuccess","Recovered !",l),this.loadKLM(this.TbOptions)},({error:l})=>{let{message:i=p.y0.errors.unknown}=l;this.Toast.error(i)})}DeletekmlTemp(){this.API.deleteKLM({companyId:this.selectedRecord.companyId,docId:this.selectedRecord._id},({message:l="Success"})=>{this.popup.openPopUp("bulkSuccess","Deleted !",l),this.loadKLM(this.TbOptions)},({error:l})=>{let{message:i=p.y0.errors.unknown}=l;this.Toast.error(i)})}sortPage(l){const i=this.TbOptions.sorting[l];Object.keys(this.TbOptions.sorting)[0]==l?this.TbOptions.sorting[l]="asc"==i?"desc":"asc":(this.TbOptions.sorting={},this.TbOptions.sorting[l]="desc"),this.UpdateTable({})}UpdateTable(l){this.logic.tbdata.options={...this.TbOptions,...l,globalSearchTerm:this.glbSearch.nativeElement.value.trim()},this.TbOptions={...this.TbOptions,...l,globalSearchTerm:this.glbSearch.nativeElement.value.trim()}
1,Object.keys(this.TbOptions).forEach(i=>{""===(this.TbOptions[i]||"")&&delete this.TbOptions[i]}),this.loadKLM(this.TbOptions)}goValupdate(l){this.zone.run(()=>{this.goVal=l})}kmlprocessList(){try{this.API.kmlprocessList(({status:l=0,data:i=[]})=>{200==l&&(this.processList=i)},({error:l})=>{let{message:i=p.y0.errors.unknown}=l})}catch{}}loadKLM(l){try{this.API.loadKmlFiles(l,({status:i=0,data:o=[],total:r=0})=>{200==i&&(this.TbData=o,this.Totals=r),this.loading=!1},({error:i})=>{let{message:o=p.y0.errors.unknown}=i;this.TbData=[],this.Totals=0,this.loading=!1})}catch{}}LoadCompanies(){try{this.API.listCompanies(({status:l=0,data:i=[]})=>{200==l&&(this.Companies=i)},({error:l})=>{let{message:i=p.y0.errors.unknown}=l})}catch{}}};let n=a;return a.\u0275fac=function(i){return new(i||a)(e.\u0275\u0275directiveInject(I.d),e.\u0275\u0275directiveInject(e.NgZone),e.\u0275\u0275directiveInject(C.s),e.\u0275\u0275directiveInject(y._W),e.\u0275\u0275directiveInject(S.q))},a.\u0275cmp=e.\u0275\u0275defineComponent({type:a,selectors:[["app-find-pre-build-kml"]],viewQuery:function(i,o){if(1&i&&e.\u0275\u0275viewQuery(ln,5),2&i){let r;e.\u0275\u0275queryRefresh(r=e.\u0275\u0275loadQuery())&&(o.glbSearch=r.first)}},decls:68,vars:16,consts:[[1,"page","page-dashboard"],[1,"pageheader"],[1,"page-bar"],[1,"page-breadcrumb"],["routerLink","/inspectionapp/home"],[1,"fa","fa-home"],["routerLink","/inspectionapp/kml/listKmlFiles"],["routerLink","/inspectionapp/kml/listPreBuildKmlFiles"],[1,"pagecontent"],[1,"row"],[1,"col-md-12"],["TitleStrong","Build Survey KML ","TitleWeek","Documents List"],[1,"tile-widget"],[1,"col-sm-2"],[4,"ngxPermissionsOnly"],[1,"col-sm-3"],[1,"col-sm-4"],["name","searchForm",1,""],[1,"input-group"],["type","text","placeholder","Search by File name","name","searchTerm",1,"input-sm","form-control",3,"ngModel","ngModelChange"],["glbSearch",""],[1,"input-group-btn"],["title","click to search term","type","button",1,"btn","btn-sm","btn-blue",3,"click"],["class","tile-body",4,"ngIf"],["class","row",4,"ngIf"],["id","support"],["id","supportPages"],["PopupName","DeletekmlTemp","okCta","Yes, delete it!","noCta","No, cancel it","warning","You won't be able to revert this!",3,"message","actionChange"],["PopupName","archiveData","okCta","Yes, archive it!","noCta","No, cancel it","message","Archive It !",3,"warning","actionChange"],["PopupName","deleteCnf"],[1,"modal","fade","ng-isolate-scope","splash","undefined","in",2,"z-index","1050","display","block"],[1,"modal-dialog","modal
1-md"],[1,"modal-content"],[1,"modal-header"],[1,"modal-title","custom-font","customFonth3"],[1,"modal-body"],[1,"text-muted"],["id","cnfValue","placeholder","Enter KML name","type","text","autocomplete","off",1,"form-control",2,"display","block",3,"input"],["reftext1",""],[1,"tile-footer","text-right","bg-tr-black","lter","dvd","dvd-top",2,"margin-top","30px","padding","20px"],[1,"btn","btn-lightred","btn-border","closeEvent"],["appPopup","","idVal","deleteCnfprocede",1,"btn","btn-blue","btn-border",3,"disabled","click"],["PopupName","deleteCnfprocede","okCta","Yes, delete it!","noCta","No, cancel it","warning","You won't be able to revert this!",3,"message","actionChange"],["PopupName","recoverIt","okCta","Yes, recover it!","noCta","No, cancel it","message","Recover It !",3,"warning","actionChange"],["PopupName","recoverArchive","okCta","Yes, recover it!","noCta","No, cancel it","message","Recover It !",3,"warning","actionChange"],["PopupName","bulkSuccess"],["name","action",1,"form-control",3,"ngModel","ngModelChange","change"],["label","Select Deleted / Not Deleted","value","0"],["label","Not Deleted","value","1","selected","selected"],["label","Deleted","value","2"],["name","companyId","id","companyId",1,"form-control",3,"ngModel","ngModelChange","change"],["value","","selected",""],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"tile-body"],["class","btn btn-lightred btn-sm mb-10 pull-right",3,"disabled","click",4,"ngIf"],[4,"ngIf"],["class","table-responsive",4,"ngIf"],[1,"btn","btn-lightred","btn-sm","mb-10","pull-right",3,"disabled","click"],[1,"table-responsive"],["ng-table","tableParams",1,"table","table-custom","ng-table"],[1,"ng-table-sort-header"],["role","button",1,"header"],[3,"class","click",4,"ngFor","ngForOf"],[1,"ng-table-header"],[1,"sort-indicator"],[4,"ngFor","ngForOf"],[1,"ng-scope","ng-isolate-scope"],[3,"count","page","Totals","UpdataTable"],[3,"click"],[2,"text-transform","uppercase"],["appPopup","","idVal","DeletekmlTemp","title","Click to delete KML document",1,"icon","icon-danger","icon-ef-3","icon-ef-3a","hover-color",3,"click"],[1,"fa","fa-trash-o"],["title","Click to view map",1,"icon","icon-success","icon-ef-3","icon-ef-3a","hover-color","ng-scope",3,"routerLink"],[1,"fa","fa-map-marker"],["download","","class","icon icon-info icon-ef-3 icon-ef-3a hover-color","title","Click to download file",3,"href",4,"ngIf"],["download","","title","Click to download file",1,"icon","icon-info","icon-ef-3","icon-ef-3a","hover-color",3,"href"],[1,"fa","fa-download"],["appPopup","","idVal","recoverIt","title","Click to recover KML document",1,"icon","icon-green","icon-ef-3","icon-ef-3a","hover-color","ng-scope",3,"click"],[1,"fa","fa-history"],[1,"alert","alert-warning","alert-dismissible"],[1,"ng-binding"],["fullscreen","isFullscreen13",1,"tile"],[1,"tile-header","dvd","dvd-btm"],[1,"custom-font"],[1,"icon","icon-danger","icon-ef-3","icon-ef-3a","hover-color","legends"],[1,"icon","icon-success","icon-ef-3","icon-ef-3a","hover-color","legends"],[1,"icon","icon-info","icon-ef-3","icon-ef-3a","hover-color","legends"],["class","row ng-scope",4,"ngIf"],[1,"row","ng-scope"],[1,"tile"],["ng-table","prTableParams",1,"table","table-custom","ng-scope","ng-table"],["ng-include","templates.header",1,"ng-scope"],["role","button","tabindex","0",1,"header"],[1,"ng-table-header","ng-scope"],["class","ng-scope",4,"ngFor","ngForOf"],[1,"ng-scope"]],template:function(i,o){if(1&i){const r=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div")(1,"div",0)(2,"div",1)(3,"h2"),e.\u0275\u0275text(4,"KML "),e.\u0275\u0275elementStart(5,"span"),e.\u0275\u0275text(6,"Upload and list KML files"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(7,"div",2)(8,"ul",3)(9,"li")(10,"a",4),e.\u0275\u0275element(11,"i",5),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(12,"li")(13,"a",6),e.\u0275\u0275text(14,"KML "),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(15,"li")(16,"a",7),e.\u0275\u0275text(17,"Build Survey KML"),e.\u0275\u0275elementEnd()()()()(),e.\u0275\u0275elementStart(18,"div",8)(19,"div",9)(20,"div",10)(21,"app-smart-div-fncs",11)(22,"div")(23,"div",12)(24,"div",9)(25,"div",13),e.\u0275\u0275template(26,on,8,1,"ng-container",14),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(27,"div",15),e.\u0275\u0275elementStart(28,"div",15),e.\u0275\u0275template(29,rn,5,2,"ng-container",14),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(30,"div",16)(31,"form",17)(32,"div",18)(33,"input",19,20),e.\u0275\u0275listener("ngModelChange",function(c){return o.globalSearch=c}),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(35,"span",21)(36,"button",22),e.\u0275\u0275listener("click",function(){return o.UpdateTable({page:1})}),e.\u0275\u0275text(37,"Go!"),e.\u0275\u0275elementEnd()()()()()()(),e.\u0275\u0275template(38,bn,5,3,"div",23),e.\u0275\u0275template(39,Cn,4,0,"div",23),e.\u0275\u0275elementEnd()()()()(),e.\u0275\u0275template(40,yn,17,0,"div",24),e.\u0275\u0275template(41,In,2,1,"ng-container",14),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(42,"div",25)(43,"div",26)(44,"app-action-pop-over",27),e.\u0275\u0275listener("actionChange",function(){return o.DeletekmlTemp()}),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(45,"app-action-pop-over",28),e.\u0275\u0275listener("actionChange",function(){return o.ArchiveData()}),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(46,"app-custom-html",29)(47,"div",30)(48,"div",31)(49,"div",32)(50,"div",33)(51,"h3",34),e.\u0275\u0275text(52,"Delete KML "),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(53,"div",35)(54,"p",36),e.\u0275\u0275text(55,"Note:Please enter KML name for permanent delete."),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(56,"input",37,38),e.\u0275\u0275listener("input",function(c){return o.updatedisableBtn(c.target.value)}),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(58,"div",39)(59,"button",40),e.\u0275\u0275text(60,"Cancel"),e.\u0275\u0275elementEnd(),e.\u0275\u0275text(61,"\xa0 "),e.\u0275\u0275elementStart(62,"button",41),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(r);const c=e.\u0275\u0275reference(57);
1return e.\u0275\u0275resetView(c.value="")}),e.\u0275\u0275text(63,"Submit"),e.\u0275\u0275elementEnd()()()()()()(),e.\u0275\u0275elementStart(64,"app-action-pop-over",42),e.\u0275\u0275listener("actionChange",function(){return o.hardDeleteUser()}),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(65,"app-action-pop-over",43),e.\u0275\u0275listener("actionChange",function(){return o.kmlRecover()}),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(66,"app-action-pop-over",44),e.\u0275\u0275listener("actionChange",function(){return o.recoverArchivekml()}),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(67,"app-infos",45),e.\u0275\u0275elementEnd()()}2&i&&(e.\u0275\u0275advance(26),e.\u0275\u0275property("ngxPermissionsOnly",e.\u0275\u0275pureFunction0(13,M)),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngxPermissionsOnly",e.\u0275\u0275pureFunction0(14,En)),e.\u0275\u0275advance(4),e.\u0275\u0275property("ngModel",o.globalSearch),e.\u0275\u0275advance(5),e.\u0275\u0275property("ngIf",0!=(null==o.TbData?null:o.TbData.length)),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",0==(null==o.TbData?null:o.TbData.length)&&!o.loading),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",0!=(null==o.TbData?null:o.TbData.length)),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngxPermissionsOnly",e.\u0275\u0275pureFunction0(15,M)),e.\u0275\u0275advance(3),e.\u0275\u0275propertyInterpolate1("message","Are you sure you want to delete ",null==o.selectedRecord?null:o.selectedRecord.docName," ?"),e.\u0275\u0275advance(1),e.\u0275\u0275propertyInterpolate1("warning","Are you sure you want to archive ",null==o.selectedRecord?null:o.selectedRecord.docName," ?"),e.\u0275\u0275advance(17),e.\u0275\u0275property("disabled",o.delCnfBtn),e.\u0275\u0275advance(2),e.\u0275\u0275propertyInterpolate1("message","Are you sure you want to delete ",null==o.selectedRecord?null:o.selectedRecord.docName," ?"),e.\u0275\u0275advance(1),e.\u0275\u0275propertyInterpolate1("warning","Are you sure you want to recover ",null==o.selectedRecord?null:o.selectedRecord.docName," ?"),e.\u0275\u0275advance(1),e.\u0275\u0275propertyInterpolate1("warning","Are you sure you want to recover ",null==o.selectedRecord?null:o.selectedRecord.docName," ?"))},dependencies:[g.sg,g.O5,v.rH,T.f,U.c,R.c,E.n,w.f,K.Q,s._Y,s.YN,s.Kr,s.Fj,s.EJ,s.JJ,s.JL,s.On,s.F,D.gE,P.t]}),n})();var Q=m(7494);function Kn(n,a){if(1&n&&(e.\u0275\u0275elementStart(0,"option",59),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&n){const t=a.$implicit;e.\u0275\u0275property("label",t.cname)("value",t._id),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(t.cname)}}function kn(n,a){1&n&&(e.\u0275\u0275elementStart(0,"span"),e.\u0275\u0275text(1,"Please Select Company"),e.\u0275\u0275elementEnd())}function Fn(n,a){if(1&n&&(e.\u0275\u0275elementStart(0,"span"),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&n){const t=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(t.errors.ZipInvalid)}}function Ln(n,a){if(1&n&&(e.\u0275\u0275elementStart(0,"span"),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&n){const t=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(t.errors.ZipInvalid)}}function On(n,a){1&n&&(e.\u0275\u0275elementStart(0,"span"),e.\u0275\u0275text(1,"File name is required."),e.\u0275\u0275elementEnd())}function Vn(n,a){1&n&&(e.\u0275\u0275elementStart(0,"span"),e.\u0275\u0275text(1,"File name is too short."),e.\u0275\u0275elementEnd())}function Dn(n,a){1&n&&(e.\u0275\u0275elementStart(0,"span"),e.\u0275\u0275text(1,"File name is too long."),e.\u0275\u0275elementEnd())}function Pn(n,a){1&n&&(e.\u0275\u0275elementStart(0,"span"),e.\u0275\u0275text(1,"File Type is required."),e.\u0275\u0275elementEnd())}function Mn(n,a){1&n&&(e.\u0275\u0275elementStart(0,"span"),e.\u0275\u0275text(1,"KML file is required."),e.\u0275\u0275elementEnd())}function Nn(n,a){if(1&n&&(e.\u0275\u0275elementStart(0,"span"),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&n){const t=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(null==t.files[0]?null:t.files[0].name)}}const F=function(n,a){return{"has-error":n,"has-success":a}};let An=(()=>{const a=class{constructor(l,i,o,r){this.API=l,this.toast=i,this.popup=o,this.router=r,this.userInfo=new s.cw({companyId:new s.NI("",[s.kI.required]),fileName:new s.NI("",[s.kI.required,s.kI.minLength(3),s.kI.maxLength(30)]),fileType:new s.NI("",[s.kI.required]),file:new s.NI}),this.Companies=[],this.succMessage="KML file successfully parsed and uploaded, Great!! ",this.files=[]}ngOnInit(){this.LoadCompanies()}rtnBl(l,i){return this.userInfo.controls[l].touched&&this.userInfo.controls[l][i]}uie(l,i){return null!=this.userInfo.controls[l].errors&&null!=this.userInfo.controls[l].errors[i]}rftv(l){return this.userInfo.controls[l].touched&&this.userInfo.controls[l].invalid}rfv(l){return this.userInfo.controls[l].touched&&this.userInfo.controls[l].valid}updatefiles(l){this.files=[l.files[0]],console.log(this.files)}navtoOtherPage(){setTimeout(()=>{this.router.navigateByUrl("/inspectionapp/kml/listKmlFiles")},500)}LoadCompanies(){try{this.API.listCompanies(({status:l=0,data:i=[]})=>{200==l&&(this.Companies=i)},({error:l})=>{let{message:i=p.y0.errors.unknown}=l})}catch{}}importusers(){if(console.log("file sixe is "+this.files[0].size/1048576+"MB"),this.files[0].size/1048576>30)this.toast.error("File size is large");else{let l=new FormData;l.append("file",this.files[0]),l.append("companyId",this.userInfo.value.companyId),l.append("fileName",this.userInfo.value.fileName),l.append("fileType",this.userInfo.value.fileType),this.userInfo.value.companyId===this.Companies.filter(i=>"DEMO"==i.cname)[0]._id&&l.append("isDemo","true");try{this.API.checkUniqueKml({companyId:this.userInfo.value.companyId,fileName:this.userInfo.value.fileName},({status:i=200,message:o="Success"})=>{200==i?this.API.ingestKML(l,({status:r=200,message:d="Success"})=>{this.succMessage=d,this.popup.openPopUp("uploadSuccess"),console.log(d);let c=document.getElementById("secondaryMsg12");c&&(c.textContent=d),setTimeout(()=>{c=document.getElementById("secondaryMsg12"),c&&(c.textContent=d)},500)},({error:r})=>{let{message:d=p.y0.errors.unknown}=r;this.popup.openPopUp("bulkSuccess","Oops...",d,!0)}):this.toast.error(p.y0.errors.unknown)},({error:i})=>{let{message:o=p.y0.errors.unknown}=i;this.toast.error(o)})}catch{}}}dropped(l){1==l.length?(document.getElementById("fileClear").value="",l[0].fileEntry.isFile&&l[0].fileEntry.file(o=>{console.log(o),this.files=[o]})):this.toast.error("Please drop single file.")}fileOver(l){}fileLeave(l){}};let n=a;return a.\u0275fac=function(i){return new(i||a)(e.\u0275\u0275directiveInject(C.s),e.\u0275\u0275directiveInject(y._W),e.\u0275\u0275directiveInject(S.q),e.\u0275\u0275directiveInject(v.F0))}
1,a.\u0275cmp=e.\u0275\u0275defineComponent({type:a,selectors:[["app-upload-kml"]],decls:130,vars:29,consts:[[1,"page","page-dashboard"],[1,"pageheader"],[1,"page-bar"],[1,"page-breadcrumb"],["routerLink","/inspectionapp/home"],[1,"fa","fa-home"],["routerLink","/inspectionapp/kml/listKmlFiles"],[1,"pagecontent"],[1,"row"],[1,"col-md-12"],["TitleStrong","Upload ","TitleWeek","KMLs","googleAddress","true"],[1,"tile-widget"],[1,"col-sm-5"],[1,"col-sm-3"],[1,"col-sm-4"],[3,"formGroup"],[1,"tile-body"],[1,"text-muted"],[1,"asterisk"],[1,"form-group","col-md-4",3,"ngClass"],["for","type",1,"singupLbl"],["name","companyId","id","companyId","formControlName","companyId",1,"form-control"],["value","","selected","selected",1,""],[3,"label","value",4,"ngFor","ngForOf"],[1,"help-block","showOnlyOne"],[4,"ngIf"],["type","text","formControlName","fileName","placeholder","File Name",1,"form-control"],["name","fileType","id","fileType","formControlName","fileType",1,"form-control"],["label","Lines","value","1"],["label","Structures","value","2"],["label","Stations","value","3"],[1,"text-muted","asterisk"],[1,"text-muted","asterisk","ng-binding"],[1,"form-group","col-md-12",3,"ngClass"],["type","file","id","fileClear","accept",".kml",1,"form-control",3,"change"],[1,"help-block"],["dropZoneLabel","Drop files here",3,"onFileDrop","onFileOver","onFileLeave"],[1,"tile-footer","text-right","bg-tr-black","lter","dvd","dvd-top"],["routerLink","/inspectionapp/kml/listKmlFiles","ui-sref","inspectionapp.employee.listEmployees",1,"btn","btn-lightred"],[1,"fa","fa-reply","p-r-10"],[1,"btn","btn-blue",3,"disabled","click"],[1,"fa","fa-upload"],["id","support"],["id","supportPages"],["PopupName","bulkSuccess"],["PopupName","uploadSuccess"],[1,"popup",2,"width","500px"],[1,"swal2-modal","swal2-show",2,"width","500px","padding","20px","background","rgb(255, 255, 255)","display","block"],["id","SuccessTrueCaseshow",1,"swal2-icon","swal2-success","swal2-animate-success-icon",2,"display","block"],[1,"swal2-success-circular-line-left",2,"background","rgb(255, 255, 255)"],[1,"swal2-success-line-tip","swal2-animate-success-line-tip"],[1,"swal2-success-line-long","swal2-animate-success-line-long"],[1,"swal2-success-ring"],[1,"swal2-success-fix",2,"background","rgb(255, 255, 255)"],[1,"swal2-success-circular-line-right",2,"background","rgb(255, 255, 255)"],["id","CustomMsg",1,"swal2-title",2,"font-size","26px"],["id","swal2-content","id","secondaryMsg12",1,"swal2-content",2,"display","block"],[1,"swal2-buttonswrapper",2,"display","block"],["type","button",1,"closeEvent","swal2-confirm","swal2-styled",2,"background-color","rgb(48, 133, 214)","border-left-color","rgb(48, 133, 214)","border-right-color","rgb(48, 133, 214)",3,"click"],[3,"label","value"]],template:function(i,o){1&i&&(e.\u0275\u0275elementStart(0,"div")(1,"div",0)(2,"div",1)(3,"h2"),e.\u0275\u0275text(4,"KML "),e.\u0275\u0275elementStart(5,"span"),e.\u0275\u0275text(6,"Upload and list KML files"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(7,"div",2)(8,"ul",3)(9,"li")(10,"a",4),e.\u0275\u0275element(11,"i",5),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(12,"li")(13,"a",6),e.\u0275\u0275text(14,"KML "),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(15,"li")(16,"a")(17,"span"),e.\u0275\u0275text(18,"Upload"),e.\u0275\u0275elementEnd()()()()()(),e.\u0275\u0275elementStart(19,"div",7)(20,"div",8)(21,"div",9)(22,"app-smart-div-fncs",10)(23,"div")(24,"div",11)(25,"div",8),e.\u0275\u0275element(26,"div",12)(27,"div",13)(28,"div",14),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(29,"form",15)(30,"div",16)(31,"p",17),e.\u0275\u0275text(32,"Note: All fields marked with "),e.\u0275\u0275elementStart(33,"span",18),e.\u0275\u0275text(34,"*"),e.\u0275\u0275elementEnd(),e.\u0275\u0275text(35," are mandatory "),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(36,"div",8)(37,"div",19)(38,"label",20),e.\u0275\u0275text(39,"Company"),e.\u0275\u0275elementStart(40,"span",18),e.\u0275\u0275text(41,"*"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(42,"select",21)(43,"option",22),e.\u0275\u0275text(44,"Select Company"),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(45,Kn,2,3,"option",23),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(46,"p",24),e.\u0275\u0275template(47,kn,2,0,"span",25),e.\u0275\u0275template(48,Fn,2,1,"span",25),e.\u0275\u0275template(49,Ln,2,1,"span",25),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(50,"div",19)(51,"label",20),e.\u0275\u0275text(52,"File Name"),e.\u0275\u0275elementStart(53,"span",18),e.\u0275\u0275text(54,"*"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275element(55,"input",26),e.\u0275\u0275elementStart(56,"p",24),e.\u0275\u0275template(57,On,2,0,"span",25),e.\u0275\u0275template(58,Vn,2,0,"span",25),e.\u0275\u0275template(59,Dn,2,0,"span",25),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(60,"div",19)(61,"label",20),e.\u0275\u0275text(62,"File Type"),e.\u0275\u0275elementStart(63,"span",18),e.\u0275\u0275text(64,"*"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(65,"select",27)(66,"option",22),e.\u0275\u0275text(67,"Select File Type"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(68,"option",28),e.\u0275\u0275text(69,"Lines"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(70,"option",29),e.\u0275\u0275text(71,"Structures"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(72,"option",30),e.\u0275\u0275text(73,"Stations"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(74,"p",24),e.\u0275\u0275template(75,Pn,2,0,"span",25),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(76,"div")(77,"p",31),e.\u0275\u0275text(78,"Note:"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(79,"p",32),e.\u0275\u0275text(80,"1: Valid extensions .kml or .kmz"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(81,"p",32),e.\u0275\u0275text(82,"2: File size should not be more than 30 MB"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(83,"div",8)(84,"div",33)(85,"label",20),e.\u0275\u0275text(86,"KML Document "),e.\u0275\u0275element(87,"span",18),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(88,"input",34),e.\u0275\u0275listener("change",function(d){return o.updatefiles(d.target)}),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(89,"p",35),e.\u0275\u0275template(90,Mn,2,0,"span",25),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(91,"div",8)(92,"div",9)(93,"ngx-file-drop",36),e.\u0275\u0275listener("onFileDrop",function(d){return o.dropped(d)})("onFileOver",function(d){return o.fileOver(d)})("onFileLeave",function(d){return o.fileLeave(d)}),e.\u0275\u0275text(94," Drop file here.... "),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(95,"div"),e.\u0275\u0275text(96,"\xa0"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(97,"div"),e.\u0275\u0275text(98," \xa0\xa0 "),e.\u0275\u0275template(99,Nn,2,1,"span",25),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(100,"div"),e.\u0275\u0275text(101,"\xa0"),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(102,"div",37)(103,"button",38),e.\u0275\u0275element(104,"i",39),e.\u0275\u0275text(105," Cancel"),e.\u0275\u0275elementEnd(),e.\u0275\u0275text(106," \xa0"),e.\u0275\u0275elementStart(107,"button",40),e.\u0275\u0275listener("click",function(){return o.importusers()}),e.\u0275\u0275element(108,"i",41),e.\u0275\u0275text(109," Upload"),e.\u0275\u0275elementEnd()()()()()()()()()()(),e.\u0275\u0275elementStart(110,"div",42)(111,"div",43),e.\u0275\u0275element(112,"app-infos",44),e.\u0275\u0275elementStart(113,"app-custom-html",45)(114,"div",46)(115,"div",47)(116,"div",48),e.\u0275\u0275element(117,"div",49)(118,"span",50)(119,"span",51)(120,"div",52)(121,"div",53)(122,"div",54),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(123,"h2",55),e.\u0275\u0275text(124,"Good job!"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(125,"div",56),e.\u0275\u0275text(126),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(127,"div",57)(128,"button",58),e.\u0275\u0275listener("click",function(){return o.navtoOtherPage()}),e.\u0275\u0275text(129," OK "),e.\u0275\u0275elementEnd()()()()()()()),2&i&&(e.\u0275\u0275advance(29),e.\u0275\u0275property("formGroup",o.userInfo),e.\u0275\u0275advance(8),e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction2(17,F,o.rftv("companyId"),o.rfv("companyId"))),e.\u0275\u0275advance(8),e.\u0275\u0275property("ngForOf",o.Companies),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",(null==o.userInfo.controls?null:o.userInfo.controls.companyId.touched)&&o.uie("companyId","required")),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf","Invalid Zip Code"==o.userInfo.value.companyId),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",o.uie("companyId","pattern")),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction2(20,F,o.rftv("fileName"),o.rfv
1("fileName"))),e.\u0275\u0275advance(7),e.\u0275\u0275property("ngIf",(null==o.userInfo.controls?null:o.userInfo.controls.fileName.touched)&&(null==o.userInfo.controls?null:o.userInfo.controls.fileName.invalid)&&o.uie("fileName","required")),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",o.uie("fileName","minlength")),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",o.uie("fileName","maxlength")),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction2(23,F,o.rftv("fileType"),o.rfv("fileType"))),e.\u0275\u0275advance(15),e.\u0275\u0275property("ngIf",(null==o.userInfo.controls?null:o.userInfo.controls.fileType.touched)&&o.uie("fileType","required")),e.\u0275\u0275advance(9),e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction2(26,F,o.rftv("file"),o.rfv("file"))),e.\u0275\u0275advance(6),e.\u0275\u0275property("ngIf",0==o.files.length&&(null==o.userInfo.controls?null:o.userInfo.controls.file.touched)),e.\u0275\u0275advance(9),e.\u0275\u0275property("ngIf",o.files.length>0),e.\u0275\u0275advance(8),e.\u0275\u0275property("disabled",o.userInfo.invalid||0==o.files.length),e.\u0275\u0275advance(19),e.\u0275\u0275textInterpolate(o.succMessage))},dependencies:[g.mk,g.sg,g.O5,v.rH,T.f,E.n,w.f,s._Y,s.YN,s.Kr,s.Fj,s.EJ,s.JJ,s.JL,s.sg,s.u,Q.CB]}),n})();var Un=m(9315),Rn=m(9485),Bn=m(1364),$n=m(8796),jn=m(4520),zn=m(8078),x=m(3211),Y=m(1278),Qn=m(4100);const Yn=["glbSearch"],Wn=["infoWindowLine"];function Jn(n,a){if(1&n&&(e.\u0275\u0275elementStart(0,"option",39),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&n){const t=a.$implicit;e.\u0275\u0275property("value",t),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(t)}}function Gn(n,a){if(1&n){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",33)(1,"label",34),e.\u0275\u0275text(2,"Station Class"),e.\u0275\u0275elementStart(3,"span",35),e.\u0275\u0275text(4,"*"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(5,"select",36),e.\u0275\u0275listener("change",function(i){e.\u0275\u0275restoreView(t);const o=e.\u0275\u0275nextContext();return o.getStationState(null),e.\u0275\u0275resetView(o.UpdateTable({stationClass:i.target.value}))}),e.\u0275\u0275elementStart(6,"option",37),e.\u0275\u0275text(7,"Select Station Class"),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(8,Jn,2,2,"option",38),e.\u0275\u0275elementEnd()()}if(2&n){const t=e.\u0275\u0275nextContext();e.\u0275\u0275advance(8),e.\u0275\u0275property("ngForOf",t.stations)}}function Hn(n,a){if(1&n&&(e.\u0275\u0275elementStart(0,"option",39),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&n){const t=a.$implicit;e.\u0275\u0275property("value",t),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(t)}}function Zn(n,a){if(1&n){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",33)(1,"label",34),e.\u0275\u0275text(2,"Station State "),e.\u0275\u0275elementStart(3,"span",35),e.\u0275\u0275text(4,"*"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(5,"select",36),e.\u0275\u0275listener("change",function(i){e.\u0275\u0275restoreView(t);const o=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(o.UpdateTable({stationState:i.target.value}))}),e.\u0275\u0275elementStart(6,"option",37),e.\u0275\u0275text(7,"Select Station Class"),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(8,Hn,2,2,"option",38),e.\u0275\u0275elementEnd()()}if(2&n){const t=e.\u0275\u0275nextContext();e.\u0275\u0275advance(8),e.\u0275\u0275property("ngForOf",t.stationsStates)}}function qn(n,a){1&n&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275element(1,"div",33)(2,"div",33),e.\u0275\u0275elementContainerEnd())}function Xn(n,a){1&n&&(e.\u0275\u0275elementStart(0,"a",40),e.\u0275\u0275text(1,"Return to search"),e.\u0275\u0275elementEnd())}function el(n,a){1&n&&(e.\u0275\u0275elementStart(0,"a",41),e.\u0275\u0275text(1,"Return to search"),e.\u0275\u0275elementEnd())}function tl(n,a){1&n&&(e.\u0275\u0275elementStart(0,"span"),e.\u0275\u0275text(1,"Pre-Build Structure"),e.\u0275\u0275elementEnd())}function nl(n,a){1&n&&(e.\u0275\u0275elementStart(0,"span"),e.\u0275\u0275text(1,"Pre-Build Structures"),e.\u0275\u0275elementEnd())}function ll(n,a){if(1&n&&(e.\u0275\u0275elementStart(0,"p")(1,"strong"),e.\u0275\u0275text(2,"Total "),e.\u0275\u0275template(3,tl,2,0,"span",13),e.\u0275\u0275template(4,nl,2,0,"span",13),e.\u0275\u0275text(5," : "),e.\u0275\u0275elementEnd(),e.\u0275\u0275text(6),e.\u0275\u0275elementEnd()),2&n){const t=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(3),e.\u0275\u0275property("ngIf",1==(null==t.buildPoles?null:t.buildPoles.length)),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",(null==t.buildPoles?null:t.buildPoles.length)>1),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate1("",null==t.buildPoles?null:t.buildPoles.length," ")}}function il(n,a){1&n&&(e.\u0275\u0275elementStart(0,"span"),e.\u0275\u0275text(1,"Pre-Build Station"),e.\u0275\u0275elementEnd())}function ol(n,a){1&n&&(e.\u0275\u0275elementStart(0,"span"),e.\u0275\u0275text(1,"Pre-Build Stations"),e.\u0275\u0275elementEnd())}function al(n,a){if(1&n&&(e.\u0275\u0275elementStart(0,"p")(1,"strong"),e.\u0275\u0275text(2,"Total "),e.\u0275\u0275template(3,il,2,0,"span",13),e.\u0275\u0275template(4,ol,2,0,"span",13),e.\u0275\u0275text(5," : "),e.\u0275\u0275elementEnd(),e.\u0275\u0275text(6),e.\u0275\u0275elementEnd()),2&n){const t=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(3),e.\u0275\u0275property("ngIf",1==(null==t.buildstations?null:t.buildstations.length)),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",(null==t.buildstations?null:t.buildstations.length)>1),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate1("",null==t.buildstations?null:t.buildstations.length," ")}}function rl(n,a){if(1&n&&(e.\u0275\u0275elementStart(0,"div",8)(1,"div",42),e.\u0275\u0275template(2,ll,7,3,"p",13),e.\u0275\u0275template(3,al,7,3,"p",13),e.\u0275\u0275elementEnd()()),2&n){const t=e.\u0275\u0275nextContext();e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",(null==t.buildPoles?null:t.buildPoles.length)>0),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",(null==t.buildstations?null:t.buildstations.length)>0)}}const sl=function(){return["","Lines","Structures","Stations"]};function dl(n,a){if(1&n&&(e.\u0275\u0275elementStart(0,"div",8)(1,"div",42)(2,"p")(3,"strong"),e.\u0275\u0275text(4),e.\u0275\u0275elementEnd(),e.\u0275\u0275text(5),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(6,"p")(7,"strong",43),e.\u0275\u0275text(8),e.\u0275\u0275elementEnd()()()()),2&n){const t=e.\u0275\u0275nextContext();e.\u0275\u0275advance(4),e.\u0275\u0275textInterpolate1("Total ",e.\u0275\u0275pureFunction0(4,sl)[t.params.filetype]," :"),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",t.Totals," "),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate2("Showing records ",t.pageCount," out of ",t.Totals,"")}}function cl(n,a){if(1&n){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"agm-overlay",46),e.\u0275\u0275listener("markerClick",function(){e.\u0275\u0275restoreView(t);const i=e.\u0275\u0275reference(6),o=e.\u0275\u0275nextContext(2);
1return e.\u0275\u0275resetView(o.clickedMarker(i))}),e.\u0275\u0275elementStart(1,"div")(2,"div",47),e.\u0275\u0275text(3),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(4,"img",48),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(5,"agm-info-window",null,49),e.\u0275\u0275text(7),e.\u0275\u0275elementEnd()()}if(2&n){const t=a.$implicit;e.\u0275\u0275property("latitude",t.location.coordinates[1])("longitude",t.location.coordinates[0]),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(t.properties.name),e.\u0275\u0275advance(1),e.\u0275\u0275property("src",t.poleImage,e.\u0275\u0275sanitizeUrl),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(t.properties.description)}}function pl(n,a){if(1&n&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275elementStart(1,"agm-map",44),e.\u0275\u0275element(2,"agm-map-type-control"),e.\u0275\u0275template(3,cl,8,5,"agm-overlay",45),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementContainerEnd()),2&n){const t=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275property("gestureHandling","cooperative")("scrollwheel",null)("zoom",6)("latitude",t.latCen)("longitude",t.lngCen),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngForOf",t.TbData)}}function ml(n,a){if(1&n&&(e.\u0275\u0275elementStart(0,"div",53),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&n){const t=e.\u0275\u0275nextContext().$implicit;e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(t.properties.name)}}function ul(n,a){if(1&n&&(e.\u0275\u0275elementStart(0,"div",53),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&n){const t=e.\u0275\u0275nextContext().$implicit;e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1("",t.properties.name,"*")}}function _l(n,a){if(1&n){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"agm-overlay",46),e.\u0275\u0275listener("markerClick",function(){const o=e.\u0275\u0275restoreView(t).$implicit,r=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(r.StationCLicked(o))}),e.\u0275\u0275elementStart(1,"div",50),e.\u0275\u0275template(2,ml,2,1,"div",51),e.\u0275\u0275template(3,ul,2,1,"div",51),e.\u0275\u0275element(4,"img",52),e.\u0275\u0275elementEnd()()}if(2&n){const t=a.$implicit;e.\u0275\u0275property("latitude",t.location.coordinates[1])("longitude",t.location.coordinates[0]),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",!t.haveImages),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",t.haveImages),e.\u0275\u0275advance(1),e.\u0275\u0275property("src",t.stationImage,e.\u0275\u0275sanitizeUrl)}}function gl(n,a){if(1&n&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275elementStart(1,"agm-map",44),e.\u0275\u0275element(2,"agm-map-type-control"),e.\u0275\u0275template(3,_l,5,5,"agm-overlay",45),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementContainerEnd()),2&n){const t=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275property("gestureHandling","cooperative")("scrollwheel",null)("zoom",6)("latitude",t.latCen)("longitude",t.lngCen),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngForOf",t.TbData)}}function vl(n,a){if(1&n){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"agm-overlay",46),e.\u0275\u0275listener("markerClick",function(){e.\u0275\u0275restoreView(t);const i=e.\u0275\u0275reference(6),o=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(o.clickedMarker(i))}),e.\u0275\u0275elementStart(1,"div")(2,"div",47),e.\u0275\u0275text(3),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(4,"img",48),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(5,"agm-info-window",null,49),e.\u0275\u0275text(7),e.\u0275\u0275elementEnd()()}if(2&n){const t=a.$implicit;e.\u0275\u0275property("latitude",t.location.coordinates[1])("longitude",t.location.coordinates[0]),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(t.properties.name),e.\u0275\u0275advance(1),e.\u0275\u0275property("src",t.poleImage,e.\u0275\u0275sanitizeUrl),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(t.properties.description)}}function hl(n,a){if(1&n&&(e.\u0275\u0275elementStart(0,"div",53),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&n){const t=e.\u0275\u0275nextContext().$implicit;e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(t.properties.name)}}function fl(n,a){if(1&n&&(e.\u0275\u0275elementStart(0,"div",53),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&n){const t=e.\u0275\u0275nextContext().$implicit;e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1("",t.properties.name,"*")}}function xl(n,a){if(1&n&&(e.\u0275\u0275elementStart(0,"agm-overlay",57)(1,"div",50),e.\u0275\u0275template(2,hl,2,1,"div",51),e.\u0275\u0275template(3,fl,2,1,"div",51),e.\u0275\u0275element(4,"img",52),e.\u0275\u0275elementEnd()()),2&n){const t=a.$implicit;e.\u0275\u0275property("latitude",t.location.coordinates[1])("longitude",t.location.coordinates[0]),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",!t.haveImages),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",t.haveImages),e.\u0275\u0275advance(1),e.\u0275\u0275property("src",t.stationImage,e.\u0275\u0275sanitizeUrl)}}function bl(n,a){if(1&n&&e.\u0275\u0275element(0,"agm-polyline-point",57),2&n){const t=a.$implicit;e.\u0275\u0275property("latitude",t[0])("longitude",t[1])}}function Cl(n,a){if(1&n&&(e.\u0275\u0275elementStart(0,"agm-polyline",58),e.\u0275\u0275template(1,bl,1,2,"agm-polyline-point",54),e.\u0275\u0275elementEnd()),2&n){const t=a.$implicit;e.\u0275\u0275property("strokeWeight",2.5)("strokeColor",t.properties.stroke),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",t.lineCoordinates)}}function yl(n,a){if(1&n&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275elementStart(1,"agm-map",44),e.\u0275\u0275element(2,"agm-map-type-control"),e.\u0275\u0275template(3,vl,8,5,"agm-overlay",45),e.\u0275\u0275template(4,xl,5,5,"agm-overlay",54),e.\u0275\u0275template(5,Cl,2,3,"agm-polyline",55),e.\u0275\u0275element(6,"agm-marker",56),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementContainerEnd()),2&n){const t=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275property("gestureHandling","cooperative")("scrollwheel",null)("zoom",6)("latitude",t.BuildlatCen)("longitude",t.BuildlngCen),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngForOf",t.buildPoles),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",t.buildstations),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",t.TbData),e.\u0275\u0275advance(1),e.\u0275\u0275property("latitude",t.latChamp)("longitude",t.longChamp)("visible",!1)}}function Sl(n,a){if(1&n&&e.\u0275\u0275element(0,"agm-polyline-point",57),2&n){const t=a.$implicit;e.\u0275\u0275property("latitude",t[0])("longitude",t[1])}}function Tl(n,a){if(1&n){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"agm-polyline",63),e.\u0275\u0275listener("lineClick",function(i){const r=e.\u0275\u0275restoreView(t).$implicit;e.\u0275\u0275nextContext();const d=e.\u0275\u0275reference(5),c=e.\u0275\u0275nextContext();
1return e.\u0275\u0275resetView(c.lineClick(i,d,r.properties))}),e.\u0275\u0275template(1,Sl,1,2,"agm-polyline-point",54),e.\u0275\u0275elementEnd()}if(2&n){const t=a.$implicit;e.\u0275\u0275property("strokeWeight",2.5)("strokeColor",t.properties.stroke),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",t.lineCoordinates)}}function Il(n,a){if(1&n){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275elementStart(1,"agm-map",44),e.\u0275\u0275template(2,Tl,2,3,"agm-polyline",59),e.\u0275\u0275elementStart(3,"agm-marker",56)(4,"agm-info-window",60,61),e.\u0275\u0275listener("infoWindowClose",function(){e.\u0275\u0275restoreView(t);const i=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(i.lineinfoClosed())}),e.\u0275\u0275element(6,"div",62),e.\u0275\u0275pipe(7,"safeHtml"),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementContainerEnd()}if(2&n){const t=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275property("gestureHandling","cooperative")("scrollwheel",null)("zoom",6)("latitude",1==t.TbData.length?t.TbData[0].lineCoordinates[0][0]:t.TbData[t.getIndex(t.roundFn(t.TbData.length/2))].lineCoordinates[0][0])("longitude",1==t.TbData.length?t.TbData[0].lineCoordinates[0][1]:t.TbData[t.getIndex(t.roundFn(t.TbData.length/2))].lineCoordinates[0][1]),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",t.TbData),e.\u0275\u0275advance(1),e.\u0275\u0275property("latitude",t.latChamp)("longitude",t.longChamp)("visible",!1),e.\u0275\u0275advance(1),e.\u0275\u0275property("disableAutoPan",!0)("isOpen",t.visible),e.\u0275\u0275advance(2),e.\u0275\u0275property("innerHtml",e.\u0275\u0275pipeBind1(7,12,null==t.linedesc?null:t.linedesc.description),e.\u0275\u0275sanitizeHtml)}}function El(n,a){1&n&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275element(1,"agm-map",44),e.\u0275\u0275elementContainerEnd()),2&n&&(e.\u0275\u0275advance(1),e.\u0275\u0275property("gestureHandling","cooperative")("scrollwheel",null)("zoom",6)("latitude",34.99431914)("longitude",-97.17759822))}function wl(n,a){if(1&n){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",64)(1,"div")(2,"app-pagination",65),e.\u0275\u0275listener("UpdataTable",function(i){e.\u0275\u0275restoreView(t);const o=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(o.UpdateTable(i))}),e.\u0275\u0275elementEnd()()()}if(2&n){const t=e.\u0275\u0275nextContext();e.\u0275\u0275advance(2),e.\u0275\u0275property("count",null==t.TbOptions?null:t.TbOptions.count)("page",null==t.TbOptions?null:t.TbOptions.page)("Totals",t.Totals)}}function Kl(n,a){1&n&&(e.\u0275\u0275elementStart(0,"span"),e.\u0275\u0275text(1,"Name is required."),e.\u0275\u0275elementEnd())}function kl(n,a){if(1&n&&(e.\u0275\u0275elementStart(0,"option",39),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&n){const t=a.$implicit;e.\u0275\u0275property("value",t),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(t)}}function Fl(n,a){1&n&&(e.\u0275\u0275elementStart(0,"span"),e.\u0275\u0275text(1,"Station Class is required."),e.\u0275\u0275elementEnd())}function Ll(n,a){if(1&n&&(e.\u0275\u0275elementStart(0,"option",39),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&n){const t=a.$implicit;e.\u0275\u0275property("value",t),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(t)}}function Ol(n,a){1&n&&(e.\u0275\u0275elementStart(0,"span"),e.\u0275\u0275text(1,"Station State is required."),e.\u0275\u0275elementEnd())}const f=function(n,a){return{" has-error":n,"has-success":a}};function Vl(n,a){if(1&n){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div")(1,"form",66)(2,"div",8)(3,"div",67)(4,"label",34),e.\u0275\u0275text(5,"Name"),e.\u0275\u0275elementStart(6,"span",35),e.\u0275\u0275text(7,"*"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275element(8,"input",68),e.\u0275\u0275elementStart(9,"p",69),e.\u0275\u0275template(10,Kl,2,0,"span",13),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(11,"div",67)(12,"label",34),e.\u0275\u0275text(13,"CIRCUIT_ID"),e.\u0275\u0275elementStart(14,"span",35),e.\u0275\u0275text(15,"*"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275element(16,"input",70),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(17,"div",67)(18,"label",34),e.\u0275\u0275text(19,"Latitude"),e.\u0275\u0275elementStart(20,"span",35),e.\u0275\u0275text(2
11,"*"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275element(22,"input",71),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(23,"div",67)(24,"label",34),e.\u0275\u0275text(25,"Longitude"),e.\u0275\u0275elementStart(26,"span",35),e.\u0275\u0275text(27,"*"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275element(28,"input",72),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(29,"div",8)(30,"div",73)(31,"agm-map",74)(32,"agm-marker",75),e.\u0275\u0275listener("dragEnd",function(i){e.\u0275\u0275restoreView(t);const o=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(o.markerDragEnd(i))}),e.\u0275\u0275elementEnd()()()(),e.\u0275\u0275elementStart(33,"div"),e.\u0275\u0275text(34,"\xa0"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(35,"div",8)(36,"div",67)(37,"label",34),e.\u0275\u0275text(38,"Station Class"),e.\u0275\u0275elementStart(39,"span",35),e.\u0275\u0275text(40,"*"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(41,"select",76)(42,"option",37),e.\u0275\u0275text(43,"Select Station Class"),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(44,kl,2,2,"option",38),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(45,"p",69),e.\u0275\u0275template(46,Fl,2,0,"span",13),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(47,"div",67)(48,"label",34),e.\u0275\u0275text(49,"Station State "),e.\u0275\u0275elementStart(50,"span",35),e.\u0275\u0275text(51,"*"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(52,"select",77)(53,"option",37),e.\u0275\u0275text(54,"Select Station Class"),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(55,Ll,2,2,"option",38),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(56,"p",69),e.\u0275\u0275template(57,Ol,2,0,"span",13),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(58,"div",67)(59,"label",34),e.\u0275\u0275text(60,"E911 Address"),e.\u0275\u0275element(61,"span",35),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(62,"input",78),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(63,"div",67)(64,"label",34),e.\u0275\u0275text(65,"County"),e.\u0275\u0275element(66,"span",35),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(67,"input",79),e.\u0275\u0275elementEnd()()()()}if(2&n){const t=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275property("formGroup",t.updateDesctipion),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction2(22,f,t.rftv("name"),t.rfv("name"))),e.\u0275\u0275advance(7),e.\u0275\u0275property("ngIf",(null==t.updateDesctipion.controls?null:t.updateDesctipion.controls.name.touched)&&t.uie("name","required")),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction2(25,f,t.rftv("circuitId"),t.rfv("circuitId"))),e.\u0275\u0275advance(6),e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction2(28,f,t.rftv("lat"),t.rfv("lat"))),e.\u0275\u0275advance(6),e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction2(31,f,t.rftv("long"),t.rfv("long"))),e.\u0275\u0275advance(8),e.\u0275\u0275property("gestureHandling","cooperative")("scrollwheel",null)("latitude",t.updateDesctipion.value.lat)("longitude",t.updateDesctipion.value.long)("zoom",10),e.\u0275\u0275advance(1),e.\u0275\u0275property("latitude",t.updateDesctipion.value.lat)("longitude",t.updateDesctipion.value.long)("markerDraggable",!0),e.\u0275\u0275advance(4),e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction2(34,f,t.rftv("stationClass"),t.rfv("stationClass"))),e.\u0275\u0275advance(8),e.\u0275\u0275property("ngForOf",t.stations),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",(null==t.updateDesctipion.controls?null:t.updateDesctipion.controls.stationClass.touched)&&t.uie("stationClass","required")),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction2(37,f,t.rftv("stationState"),t.rfv("stationState"))),e.\u0275\u0275advance(8),e.\u0275\u0275property("ngForOf",t.stationsStates),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",(null==t.updateDesctipion.controls?null:t.updateDesctipion.controls.stationState.touched)&&t.uie("stationState","required")),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction2(40,f,t.rftv("address"),t.rfv("address"))),e.\u0275\u0275advance(5),e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction2(43,f,t.rftv("county"),t.rfv("county")))}}let Dl=(()=>{const a=class{constructor(l,i,o,r,d){this.logic=l,this.route=i,this.API=o,this.Toast=r,this.popup=d,this.Totals=0,this.TbData=[],this.TbOptions={kmlDocId:this.route.
1snapshot.params.id,fileType:this.route.snapshot.params.filetype,page:1,count:100},this.ThData=[{label:"File Name",key:"docName"},{label:"Company",key:"companyId"},{label:"Created On",key:"createdOn"},{label:"File Type",key:"fileType"}],this.Roles=V.G,this.obj=Object,this.params=this.route.snapshot.params,this.stations=[],this.stationsStates=[],this.SelectionStation=null,this.updateDesctipion=new s.cw({name:new s.NI("",[s.kI.required]),circuitId:new s.NI(""),lat:new s.NI("0"),long:new s.NI("0"),stationClass:new s.NI(""),stationState:new s.NI(""),address:new s.NI(""),county:new s.NI(""),switchVoltage:new s.NI(""),switchContAmp:new s.NI(""),switchStatus:new s.NI(""),switchOwner:new s.NI(""),switchMaint:new s.NI(""),switchOperator:new s.NI(""),motorOperated:new s.NI(""),normallyOpen:new s.NI(""),id:new s.NI(""),entityType:new s.NI(""),desc:new s.NI("")}),this.types={1:"Lines",2:"Structures",3:"Stations",8:"Stations"},this.buildPoles=[],this.BuildlatCen=0,this.BuildlngCen=0,this.buildstations=[],this.BuildStalatCen=0,this.BuildStalngCen=0,this.pageCount=0,this.latCen=0,this.lngCen=0,this.roundFn=Math.ceil,this.visible=!1,this.latChamp=0,this.longChamp=0,this.linedesc=""}ngOnInit(){this.loadMap(this.TbOptions),this.getStations(null),this.logic.tbdata.page="8"!=this.params.filetype?"KML":"PREBUILDKML"}sortPage(l){const i=this.TbOptions.sorting[l];Object.keys(this.TbOptions.sorting)[0]==l?this.TbOptions.sorting[l]="asc"==i?"desc":"asc":(this.TbOptions.sorting={},this.TbOptions.sorting[l]="desc"),this.UpdateTable({})}UpdateTable(l){this.previous&&this.previous.close(),this.lineinfoClosed(),this.TbOptions={...this.TbOptions,...l},Object.keys(this.TbOptions).forEach(i=>{""===(this.TbOptions[i]||"")&&delete this.TbOptions[i]}),this.loadMap(this.TbOptions)}getIndex(l){return 1==l?0:l}loadMap(l){try{"8"==this.params.filetype?this.API.overlayPreBuildLines(l,({status:i=0,stationsDataArray:o=[],polesDataArray:r=[],linesDataArray:d=[],total:c=0})=>{200==i&&(this.buildPoles=r,r.length>0&&(this.BuildlatCen=r[this.getIndex(this.roundFn(r.length/2))].location.coordinates[1],this.BuildlngCen=r[this.getIndex(this.roundFn(r.length/2))].location.coordinates[0]),this.buildstations=o,o.length>0&&(this.BuildStalatCen=o[this.getIndex(this.roundFn(o.length/2))].location.coordinates[1],this.BuildStalngCen=o[this.getIndex(this.roundFn(o.length/2))].location.coordinates[0]),console.log(o),this.TbData=d,this.TbData.forEach((u,h)=>{this.TbData[h].path=u.lineCoordinates.map(b=>({lat:b[0],lng:b[1]}))}),this.Totals=c)},({error:i})=>{let{message:o=p.y0.errors.unknown}=i}):this.API.overlayAllLines(l,({lineCounts:i=0,status:o=0,stationsDataArray:r=[],polesDataArray:d=[],linesDataArray:c=[],total:u=0})=>{200==o&&(this.Totals=u,"2"==this.params.filetype?(this.TbData=d,this.pageCount=d.length,this.latCen=this.TbData[this.getIndex(this.roundFn(this.TbData.length/2))].location.coordinates[1],this.lngCen=this.TbData[this.getIndex(this.roundFn(this.TbData.length/2))].location.coordinates[0]):"1"==this.params.filetype?(this.TbData=c,this.pageCount=i,this.TbData.forEach((h,b)=>{this.TbData[b].path=h.lineCoordinates.map(L=>({lat:L[0],lng:L[1]}))}),this.latCen=c[this.getIndex(this.roundFn(c.length/2))].lineCoordinates[0][0],this.latCen=c[this.getIndex(this.roundFn(c.length/2))].lineCoordinates[0][1]):"3"==this.params.filetype&&(this.pageCount=r.length,this.TbData=r,this.latCen=this.TbData[this.getIndex(this.roundFn(this.TbData.length/2))].location.coordinates[1],this.lngCen=this.TbData[this.getIndex(this.roundFn(this.TbData.length/2))].location.coordinates[0]))},({error:i})=>{let{message:o=p.y0.errors.unknown}=i;this.Toast.error(o)})}catch{}}getStations(l){this.API.getStation(({status:i=0,data:o=[]})=>{200==i&&(this.stations=o,l&&this.updateDesctipion.patchValue({stationClass:l.StationClass}))},({error:i})=>{this.stations=["Box Bay","Customer","Distribution","Generation","Interconnect","Line Switch","Line Switching Station","Metering","Microwave","Mobile","Switch Tap","Switching Station","TD","TTD","Transmission","Unclassified"],l&&this.updateDesctipion.patchValue({stationClass:l.
1StationClass});let{message:o=p.y0.errors.unknown}=i})}getStationState(l){this.API.getStationState(l,({status:i=0,data:o=[]})=>{200==i&&(this.stationsStates=o,l&&this.updateDesctipion.patchValue({stationState:l.stationState,address:l.address,county:l.County}))},({error:i})=>{let{message:o=p.y0.errors.unknown}=i})}clickedMarker(l){this.previous&&this.previous.close(),this.previous=l}lineClick(l,i,o){let r=`${o.description}`.replace("background:#9CBCE2","");console.log(r),this.visible=!0,this.latChamp=l.latLng.lat(),this.longChamp=l.latLng.lng(),this.linedesc={...o,description:r}}lineinfoClosed(){this.visible=!1,this.latChamp=0,this.longChamp=0}getPath(l){return l.lineCoordinates.map(i=>({lat:i[0],lng:i[1]}))}markerDragEnd(l){this.updateDesctipion.patchValue({lat:l.latLng.lat(),long:l.latLng.lng()})}updateDescDym(){const{address:l,circuitId:i,county:o,lat:r,long:d,motorOperated:c,name:u,normallyOpen:h,stationClass:b,stationState:L,switchContAmp:ql,switchMaint:Xl,switchOperator:ei,switchOwner:ti,switchStatus:ni,switchVoltage:li,id:ii=this.SelectionStation._id,entityType:oi="3",desc:ai=this.SelectionStation.properties.description}=this.updateDesctipion.value;return new Promise((N,O)=>{var _=new FormData;_.append("address",l),_.append("circuitId",i),_.append("county",o),_.append("lat",r),_.append("long",d),_.append("motorOperated",c),_.append("normallyOpen",h),_.append("stationClass",b),_.append("stationState",L),_.append("switchContAmp",ql),_.append("switchMaint",Xl),_.append("switchOperator",ei),_.append("switchOwner",ti),_.append("switchStatus",ni),_.append("switchVoltage",li),_.append("name",u),_.append("id",ii),_.append("entityType",oi),_.append("desc",ai),N(_)}).then(N=>{this.API.updateDescDym(N,({message:O="Success"})=>{this.Toast.success(O),this.loadMap(this.TbOptions),this.popup.closePopUp("Update_Description")},({error:O})=>{let{message:_=p.y0.errors.unknown}=O;this.Toast.error(_)})})}StationCLicked(l){this.getStationState({address:l.parsedDesc.E911Address,desc:JSON.stringify(l.properties.description),entityType:l.entityType,lat:l.location.coordinates[1],long:l.location.coordinates[0],name:l.properties.name,stationClass:l.parsedDesc.StationClass,stationState:l.parsedDesc.State,County:l.parsedDesc.County}),this.getStations(l.parsedDesc),this.SelectionStation=l,this.updateDesctipion.patchValue({name:l.properties.name,circuitId:l.properties.CIRCUIT_ID,lat:l.location.coordinates[1],long:l.location.coordinates[0],stationClass:l.properties.StationClass,stationState:l.properties.State,address:l.properties.E911Address,county:l.properties.County,switchVoltage:l.properties.SwitchVoltage,switchContAmp:l.properties.SwitchContAmp,switchStatus:l.properties.SwitchStatus,switchOwner:l.properties.SwitchOwner,switchMaint:l.properties.SwitchMaint,switchOperator:l.properties.SwitchOperator,motorOperated:l.properties.MotorOperated,normallyOpen:l.properties.NormallyOpen}),this.popup.openPopUp("Update_Description")}whitespace(l){if(l&&l.parent)return""==l.value.trim()?{required:!0}:null}rtnBl(l,i){return this.updateDesctipion.controls[l].touched&&this.updateDesctipion.controls[l][i]}uie(l,i){return null!=this.updateDesctipion.controls[l].errors&&null!=this.updateDesctipion.controls[l].errors[i]}rftv(l){return this.updateDesctipion.controls[l].touched&&this.updateDesctipion.controls[l].invalid}rfv(l){return this.updateDesctipion.controls[l].touched&&this.updateDesctipion.controls[l].valid}};let n=a;return a.\u0275fac=function(i){return new(i||a)(e.\u0275\u0275directiveInject(I.d),e.\u0275\u0275directiveInject(v.gz),e.\u0275\u0275directiveInject(C.s),e.\u0275\u0275directiveInject(y._W),e.\u0275\u0275directiveInject(S.q))},a.\u0275cmp=e.\u0275\u0275defineComponent({type:a,selectors:[["app-overlay-all-lines"]],viewQuery:function(i,o){if(1&i&&(e.\u0275\u0275viewQuery(Yn,5),e.\u0275\u0275viewQuery(Wn,5)),2&i){let r;e.\u0275\u0275queryRefresh(r=e.\u0275\u0275loadQuery())&&(o.glbSearch=r.first),e.\u0275\u0275queryRefresh(r=e.\u0275\u0275loadQuery())&&(o.infoWindowLine=r.first)}},decls:57,vars:17,consts:[[1,"page","page-dashboard"],[1,"pageheader"],[1,"page-bar"],[1,"page-breadcrumb"],["routerLink","/ins
1pectionapp/home"],[1,"fa","fa-home"],["routerLink","/inspectionapp/kml/listKmlFiles"],[1,"pagecontent"],[1,"row"],[1,"col-md-12"],["TitleWeek","",3,"TitleStrong"],[1,"tile-body"],["class","col-sm-3",4,"ngIf"],[4,"ngIf"],[1,"col-sm-5"],["style","float:right;font-size:20px","routerLink","/inspectionapp/kml/listKmlFiles",4,"ngIf"],["style","float:right;font-size:20px","routerLink","/inspectionapp/kml/listPreBuildKmlFiles",4,"ngIf"],["class","row",4,"ngIf"],["class","",4,"ngIf"],["id","support"],["id","supportPages"],["PopupName","bulkSuccess"],["PopupName","Update_Description"],[1,"modal","fade","splash","undefined","in",2,"overflow","auto","z-index","1050","display","block"],[1,"modal-dialog","modal-md",2,"width","60%"],[1,"modal-content"],[1,"modal-header"],[1,"modal-title","custom-font"],[1,"modal-body"],[2,"margin","20px"],[1,"modal-footer"],[1,"closeEvent","btn","btn-lightred","btn-border"],[1,"btn","btn-blue","btn-border",3,"disabled","click"],[1,"col-sm-3"],[1,"singupLbl"],[1,"asterisk"],["type","text",1,"form-control",3,"change"],["value",""],[3,"value",4,"ngFor","ngForOf"],[3,"value"],["routerLink","/inspectionapp/kml/listKmlFiles",2,"float","right","font-size","20px"],["routerLink","/inspectionapp/kml/listPreBuildKmlFiles",2,"float","right","font-size","20px"],[1,"col-md-12",2,"margin-top","10px"],[1,"ng-binding"],[2,"height","600px","display","block",3,"gestureHandling","scrollwheel","zoom","latitude","longitude"],[3,"latitude","longitude","markerClick",4,"ngFor","ngForOf"],[3,"latitude","longitude","markerClick"],[2,"text-align","right","font-weight","bold","border","2px solid #fff","padding","2px","background","#F1EFE9"],["align","center",3,"src"],["infowindow",""],[2,"width","100px"],["style","text-align: center;font-weight: bold; border: 2px solid #fff; padding: 2px; background: #F1EFE9;",4,"ngIf"],[2,"display","block","margin","0 auto",3,"src"],[2,"text-align","center","font-weight","bold","border","2px solid #fff","padding","2px","background","#F1EFE9"],[3,"latitude","longitude",4,"ngFor","ngForOf"],[3,"strokeWeight","strokeColor",4,"ngFor","ngForOf"],[3,"latitude","longitude","visible"],[3,"latitude","longitude"],[3,"strokeWeight","strokeColor"],[3,"strokeWeight","strokeColor","lineClick",4,"ngFor","ngForOf"],[2,"margin-top","10px",3,"disableAutoPan","isOpen","infoWindowClose"],["infoWindo",""],[3,"innerHtml"],[3,"strokeWeight","strokeColor","lineClick"],[1,""],[3,"count","page","Totals","UpdataTable"],[3,"formGroup"],[1,"form-group","col-md-3",3,"ngClass"],["type","text","formControlName","name","placeholder","Name",1,"form-control"],[1,"help-block","showOnlyOne"],["disabled","","type","text","formControlName","circuitId",1,"form-control"],["disabled","","type","text","formControlName","lat",1,"form-control"],["disabled","","type","text","formControlName","long",1,"form-control"],[1,"col-sm-md-12",2,"margin","0px 15px"],[2,"display","block","width","auto","height","300px",3,"gestureHandling","scrollwheel","latitude","longitude","zoom"],[3,"latitude","longitude","markerDraggable","dragEnd"],["type","text","formControlName","stationClass",1,"form-control"],["type","text","formControlName","stationState",1,"form-control"],["type","text","formControlName","address",1,"form-control"],["type","text","formControlName","county",1,"form-control"]],template:function(i,o){1&i&&(e.\u0275\u0275elementStart(0,"div")(1,"div",0)(2,"div",1),e.\u0275\u0275element(3,"h2"),e.\u0275\u0275elementStart(4,"div",2)(5,"ul",3)(6,"li")(7,"a",4),e.\u0275\u0275element(8,"i",5),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(9,"li")(10,"a",6),e.\u0275\u0275text(11,"KML "),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(12,"li"),e.\u0275\u0275text(13," Overlay KML file on map"),e.\u0275\u0275elementEnd()()()(),e.\u0275\u0275elementStart(14,"div",7)(15,"div",8)(16,"div",9)(17,"app-smart-div-fncs",10)(18,"div")(19,"div",11)(20,"div",8),e.\u0275\u0275template(21,Gn,9,1,"div",12),e.\u0275\u0275template(22,Zn,9,1,"div",12),e.\u0275\u0275template(23,qn,3,0,"ng-container",13),e.\u0275\u0275elementStart(24,"div",14),e.\u0275\u0275template(25,Xn,2,0,"a",15),e.\u0275\u0275template(26,el,2,0,"a",16),e.\u0275\u0275elementEnd()(),e.\u0275\u0275template(27,rl,4,2,"div",17),e.\u0275\u0275template(28,dl,9,5,"div",17),e.\u0275\u0275elementStart(29,"div"),e.\u0275\u0275text(30,"\xa0"),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(31,pl,4,6,"ng-container",13),e.\u0275\u0275template(32,gl,4,6,"ng-container",13),e.\u0275\u0275template(33,yl,7,11,"ng-container",13),e.\u0275\u0275template(34,Il,8,14,"ng-container",13),e.\u0275\u0275template(35,El,2,5,"ng-container",13),e.\u0275\u0275elementStart(36,"div"),e.\u0275\u0275text(37,"\xa0"),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(38,wl,3,3,"div",18),e.\u0275\u0275elementEnd()()()()()()()(),e.\u0275\u0275elementStart(39,"div",19)(40,"div",20),e.\u0275\u0275element(41,"app-infos",21),e.\u0275\u0275elementStart(42,"app-custom-html",22)(43,"div",23)(44,"div",24)(45,"div",25)(46,"div",26)(47,"h3",27),e.\u0275\u0275text(48,"Update Description"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(49,"div",28)(50,"div",29),e.\u0275\u0275template(51,Vl,68,46,"div",13),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(52,"div",30)(53,"button",31),e.\u0275\u0275text(54,"Close"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(55,"button",32),e.\u0275\u0275listener("click",function(){return o.updateDescDym()}),e.\u0275\u0275text(56,"Update"),e.\u0275\u0275elementEnd()()()()()()()),2&i&&(e.\u0275\u0275advance(17),e.\u0275\u0275propertyInterpolate2("TitleStrong","",o.types[o.params.filetype]," ",o.params.name,""),e.\u0275\u0275advance(4),e.\u0275\u0275property("ngIf","3"==o.params.filetype),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf","3"==o.params.filetype),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf","3"!=o.params.filetype),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf","8"!=o.params.filetype),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf","8"==o.params.filetype),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf","8"==o.params.filetype),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf","8"!=o.params.filetype),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngIf","2"==o.params.filetype),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf","3"==o.params.filetype),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf","8"==o.params.filetype),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf","1"==o.params.filetype&&o.TbData.length>0),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf","1"==o.params.filetype&&0==o.TbData.length),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngIf","8"!=o.params.filetype),e.\u0275\u0275advance(13),e.\u0275\u0275property("ngIf",o.SelectionStation),e.\u0275\u0275advance(4),e.\u0275\u0275property("disabled",o.updateDesctipion.invalid))},dependencies:[g.mk,g.sg,g.O5,v.rH,T.f,E.n,w.f,K.Q,s._Y,s.YN,s.Kr,s.Fj,s.EJ,s.JJ,s.JL,s.sg,s.u,x.d,x.SA,x.zF,x.pt,x.k7,x.oV,Y.c,Qn.u]}),n})();var Pl=m(2736),Ml=m(8175);const Nl=["glbSearch"];function Al(n,a){if(1&n){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"button",35),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(t);const i=e.\u0275\u0275nextContext(2);
1return e.\u0275\u0275resetView(i.UpdateTable({sorting:{}}))}),e.\u0275\u0275text(1,"Clear sorting"),e.\u0275\u0275elementEnd()}if(2&n){const t=e.\u0275\u0275nextContext(2);e.\u0275\u0275property("disabled",0==t.obj.keys(t.TbOptions.sorting).length)}}function Ul(n,a){if(1&n&&(e.\u0275\u0275elementStart(0,"strong"),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&n){const t=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate2("Showing records ",t.TbData.length<(null==t.TbOptions?null:t.TbOptions.count)?t.TbData.length:null==t.TbOptions?null:t.TbOptions.count," out of ",t.Totals,"")}}function Rl(n,a){if(1&n){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"th",44),e.\u0275\u0275listener("click",function(){const o=e.\u0275\u0275restoreView(t).$implicit,r=e.\u0275\u0275nextContext(3);return e.\u0275\u0275resetView(r.sortPage(o.key,o.sort))}),e.\u0275\u0275elementStart(1,"div",45)(2,"span",46),e.\u0275\u0275text(3),e.\u0275\u0275elementEnd()()()}if(2&n){const t=a.$implicit,l=e.\u0275\u0275nextContext(3);e.\u0275\u0275classMapInterpolate1("header ",l.returnClassSort(l.TbOptions.sorting[t.key],t.sort),""),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(t.label)}}function Bl(n,a){if(1&n&&(e.\u0275\u0275elementStart(0,"div",51),e.\u0275\u0275text(1),e.\u0275\u0275elementStart(2,"span",52),e.\u0275\u0275text(3),e.\u0275\u0275elementEnd(),e.\u0275\u0275text(4," \u2192 "),e.\u0275\u0275elementStart(5,"span",53),e.\u0275\u0275text(6),e.\u0275\u0275elementEnd()()),2&n){const t=a.$implicit,l=e.\u0275\u0275nextContext(2).$implicit;e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",t.toUpperCase(),": "),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate1(" ",""===l.oldData[t]?"":l.oldData[t]," "),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate1(" ",""===l.newData[t]?"":l.newData[t]," ")}}function $l(n,a){if(1&n&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275template(1,Bl,7,3,"div",50),e.\u0275\u0275elementContainerEnd()),2&n){const t=e.\u0275\u0275nextContext().$implicit,l=e.\u0275\u0275nextContext(3);e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",l.getKeys(t.oldData))}}function jl(n,a){if(1&n&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275text(1),e.\u0275\u0275elementContainerEnd()),2&n){const t=e.\u0275\u0275nextContext(2).$implicit;e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",t.comments," ")}}function zl(n,a){if(1&n&&e.\u0275\u0275template(0,jl,2,1,"ng-container",47),2&n){const t=e.\u0275\u0275nextContext().$implicit,l=e.\u0275\u0275reference(19);e.\u0275\u0275property("ngIf",t.comments&&t.comments.length>0)("ngIfElse",l)}}function Ql(n,a){1&n&&e.\u0275\u0275text(0," NA ")}function Yl(n,a){if(1&n&&(e.\u0275\u0275elementStart(0,"tr")(1,"td"),e.\u0275\u0275text(2),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(3,"td"),e.\u0275\u0275text(4),e.\u0275\u0275pipe(5,"dateFormat"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(6,"td"),e.\u0275\u0275text(7," OG&E "),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(8,"td"),e.\u0275\u0275text(9),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(10,"td"),e.\u0275\u0275text(11),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(12,"td"),e.\u0275\u0275text(13),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(14,"td"),e.\u0275\u0275template(15,$l,2,1,"ng-container",47),e.\u0275\u0275template(16,zl,1,2,"ng-template",null,48,e.\u0275\u0275templateRefExtractor),e.\u0275\u0275template(18,Ql,1,0,"ng-template",null,49,e.\u0275\u0275templateRefExtractor),e.\u0275\u0275elementEnd()()),2&n){const t=a.$implicit,l=a.index,i=e.\u0275\u0275reference(17),o=e.\u0275\u0275nextContext(3);e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(l+1),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(5,7,null==t?null:t.timeStamp)),e.\u0275\u0275advance(5),e.\u0275\u0275textInterpolate(o.getActionMessage(null==t?null:t.action)),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(null==t?null:t.name),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate((null==t?null:t.circuitId)||"NA"),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",t.isChanged)("ngIfElse",i)}}function Wl(n,a){if(1&n){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",36)(1,"table",37)(2,"thead")(3,"tr",38)(4,"th",39)(5,"div"),e.\u0275\u0275text(6," # "),e.\u0275\u0275elementEnd()(),e.\u0275\u0275template(7,Rl,4,4,"th",40),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(8,"tbody"),e.\u0275\u0275template(9,Yl,20,9,"tr",41),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(10,"div",42)(11,"div")(12,"app-pagination",43),e.\u0275\u0275listener("UpdataTable",function(i){e.\u0275\u0275restoreView(t);const o=e.\u0275\u0275nextContext(2);
1return e.\u0275\u0275resetView(o.UpdateTable(i))}),e.\u0275\u0275elementEnd()()()()}if(2&n){const t=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(7),e.\u0275\u0275property("ngForOf",t.ThData),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngForOf",t.TbData),e.\u0275\u0275advance(3),e.\u0275\u0275property("count",null==t.TbOptions?null:t.TbOptions.count)("page",null==t.TbOptions?null:t.TbOptions.page)("Totals",t.Totals)}}function Jl(n,a){if(1&n&&(e.\u0275\u0275elementStart(0,"div",31),e.\u0275\u0275template(1,Al,2,1,"button",32),e.\u0275\u0275elementStart(2,"p"),e.\u0275\u0275template(3,Ul,2,2,"strong",33),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(4,Wl,13,5,"div",34),e.\u0275\u0275elementEnd()),2&n){const t=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",0!=(null==t.TbData?null:t.TbData.length)),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",0!=(null==t.TbData?null:t.TbData.length)),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",0!=(null==t.TbData?null:t.TbData.length))}}function Gl(n,a){1&n&&(e.\u0275\u0275elementStart(0,"div",31)(1,"div",54)(2,"strong",55),e.\u0275\u0275text(3,"No record to display."),e.\u0275\u0275elementEnd()()())}const Hl=[{path:"",children:[{path:"",redirectTo:"listKmlFiles",pathMatch:"full"},{path:"listKmlFiles",component:nn},{path:"listPreBuildKmlFiles",component:wn},{path:"uploadKml",component:An},{path:"overlayAllLines/:id/:filetype/:name",component:Dl},{path:"kmlLogs",component:(()=>{const a=class{constructor(l,i,o,r,d,c){this.zone=l,this.logic=i,this.API=o,this.Toast=r,this.popup=d,this.router=c,this.Totals=0,this.TbData=[],this.TbOptions={actionType:null,companyId:null,globalSearchTerm:null,page:1,count:100,sorting:{createdOn:"desc"}},this.ThData=[{label:"TimeStamp",key:"timeStamp",sort:!0},{label:"Company",key:"companyId",sort:!1},{label:"Action",key:"action",sort:!1},{label:"Name",key:"name",sort:!1},{label:"CIRCUIT ID",key:"circuitId",sort:!0},{label:"Object/Comments",key:"isChanged",sort:!1}],this.glbSearchDb="",this.loading=!1,this.actionType="",this.obj=Object}ngOnInit(){this.LoadKmlLogs(this.TbOptions)}getKeys(l){return l?Object.keys(l):[]}getActionMessage(l){switch(l){case 1:return"Line Added";case 2:return"Line Deleted";case 3:return"Line Updated";case 4:return"Lines KML Imported";case 5:return"Lines KML Not Imported";case 6:return"Lines KML Import Auto Cancelled";case 7:return"Structure Added";case 8:return"Structure Deleted";case 9:return"Structure Updated";case 10:return"Structures KML Imported";case 11:return"Structures KML Not Imported";case 12:return"Structures KML Import Auto Cancelled";case 13:return"Filter Deleted";default:return"Unknown Action"}}returnClassSort(l,i){return i?`sortable sort-${l}`:""}sortPage(l,i){if(i){const o=this.TbOptions.sorting[l];Object.keys(this.TbOptions.sorting)[0]==l?this.TbOptions.sorting[l]="asc"==o?"desc":"asc":(this.TbOptions.sorting={},this.TbOptions.sorting[l]="desc"),this.UpdateTable({})}}LoadKmlLogs(l){this.loading=!0,this.API.getKmlLogs(l,({status:i=0,message:o="",data:r=[],total:d=0})=>{200==i?(this.TbData=r,this.Totals=d):400==i&&(this.TbData=[],this.Totals=0,this.Toast.error(o)),this.loading=!1},({error:i})=>{let{message:o=p.y0.errors.unknown}=i;this.Toast.error(o),this.loading=!1})}catch(l){}UpdateTable(l){this.logic.tbdata.options={...this.TbOptions,...l,globalSearchTerm:this.glbSearch.nativeElement.value.trim()},this.TbOptions={...this.TbOptions,...l,globalSearchTerm:this.glbSearch.nativeElement.value.trim()},Object.keys(this.TbOptions).forEach(i=>{""===(this.TbOptions[i]||"")&&delete this.TbOptions[i]}),this.LoadKmlLogs(this.TbOptions)}};let n=a;return a.\u0275fac=function(i){return new(i||a)(e.\u0275\u0275directiveInject(e.NgZone),e.\u0275\u0275directiveInject(I.d),e.\u0275\u0275directiveInject(C.s),e.\u0275\u0275directiveInject(y._W),e.\u0275\u0275directiveInject(S.q),e.\u0275\u0275directiveInject(v.F0))},a.\u0275cmp=e.\u0275\u0275defineComponent({type:a,selectors:[["app-kml-logs"]],viewQuery:function(i,o){if(1&i&&e.\u0275\u0275viewQuery(Nl,5),2&i){let r;e.\u0275\u0275queryRefresh(r=e.\u0275\u0275loadQuery())&&(o.glbSearch=r.first)}},decls:52,vars:4,consts:[[1,"page","page-dashboard"],[1,"pageheader"],[1,"pagecontent"],[1,"row"],[1,"col-md-12"],["TitleStrong","KML ","TitleWeek","Change Log"],[1,"tile-widget"],[1,"col-sm-3"],["name","role","id","role",1,"form-control",3,"ngModel","ngModelChange","change"],["value","","selected","selected",1,""],["label","Line Added","value","1"],["label","Line Deleted","value","2"],["label","Line Updated","value","3"],["label","Lines KML Imported","value","4"],["label","Lines KML Not Imported","value","5"],["label","Lines KML Import Auto Cancelled","value","6"],["label","Structure Added","value","7"],["label","Structure Deleted","value","8"],["label","Structure Updated","value","9"],["label","Structures KML Imported","value","10"],["label","Structures KML Not Imported","value","11"],["label","Structures KML Import Auto Cancelled","value","12"],["label","Filter Deleted","value","13"],[1,"col-sm-4"],["name","searchForm",1,""],[1,"input-group"],["type","text","placeholder","Search by Name, CIRCUIT ID","name","searchTerm",1,"input-sm","form-control",3,"ngModel","ngModelChange"],["glbSearch",""],[1,"input-group-btn"],["title","click to search term","type","button",1,"btn","btn-sm","btn-blue",3,"click"],["class","tile-body",4,"ngIf"],[1,"tile-body"],["class","btn btn-lightred btn-sm mb-10 pull-right",3,"disabled","click",4,"ngIf"],[4,"ngIf"],["class","table-responsive",4,"ngIf"],[1,"btn","btn-lightred","btn-sm","mb-10","pull-right",3,"disabled","click"],[1,"table-responsive"],["ng-table","tableParams",1,"table","table-custom","ng-table"],[1,"ng-table-sort-header"],["role","button",1,"header"],[3,"class","click",4,"ngFor","ngForOf"],[4,"ngFor","ngForOf"],[1,""],[3,"count","page","Totals","UpdataTable"],[3,"click"],[1,"ng-table-header"],[1,"ng-binding","sort-indicator"],[4,"ngIf","ngIfElse"],["checkComments",""],["showNA",""],["class","diff-row",4,"ngFor","ngForOf"],[1,"diff-row"],[1,"old-val"],[1,"new-val"],[1,"alert","alert-warning","alert-dismissible"],[1,"ng-binding"]],template:function(i,o){1&i&&(e.\u0275\u0275elementStart(0,"div")(1,"div",0)(2,"div",1)(3,"h2"),e.\u0275\u0275text(4,"KML Change Log"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(5,"div",2)(6,"div",3)(7,"div",4)(8,"app-smart-div-fncs",5)(9,"div")(10,"div",6)(11,"div",3)(12,"div",7)(13,"select",8),e.\u0275\u0275listener("ngModelChange",function(d){return o.actionType=d})("change",function(d){return o.UpdateTable({actionType:+d.target.value,page:1})}),e.\u0275\u0275elementStart(14,"option",9),e.\u0275\u0275text(15,"Select Action Type"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(16,"option",10),e.\u0275\u0275text(17,"Line Added"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(18,"option",11),e.\u0275\u0275text(19,"Line Deleted"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(20,"option",12),e.\u0275\u0275text(2
11,"Line Updated"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(22,"option",13),e.\u0275\u0275text(23,"Lines KML Imported"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(24,"option",14),e.\u0275\u0275text(25,"Lines KML Not Imported"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(26,"option",15),e.\u0275\u0275text(27,"Lines KML Import Auto Cancelled"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(28,"option",16),e.\u0275\u0275text(29,"Structure Added"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(30,"option",17),e.\u0275\u0275text(31,"Structure Deleted"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(32,"option",18),e.\u0275\u0275text(33,"Structure Updated"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(34,"option",19),e.\u0275\u0275text(35,"Structures KML Imported"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(36,"option",20),e.\u0275\u0275text(37,"Structures KML Not Imported"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(38,"option",21),e.\u0275\u0275text(39,"Structures KML Import Auto Cancelled"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(40,"option",22),e.\u0275\u0275text(41,"FilterDeleted"),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(42,"div",23)(43,"form",24)(44,"div",25)(45,"input",26,27),e.\u0275\u0275listener("ngModelChange",function(d){return o.glbSearchDb=d}),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(47,"span",28)(48,"button",29),e.\u0275\u0275listener("click",function(){return o.UpdateTable({page:1})}),e.\u0275\u0275text(49,"Go!"),e.\u0275\u0275elementEnd()()()()()()(),e.\u0275\u0275template(50,Jl,5,3,"div",30),e.\u0275\u0275template(51,Gl,4,0,"div",30),e.\u0275\u0275elementEnd()()()()()()()),2&i&&(e.\u0275\u0275advance(13),e.\u0275\u0275property("ngModel",o.actionType),e.\u0275\u0275advance(32),e.\u0275\u0275property("ngModel",o.glbSearchDb),e.\u0275\u0275advance(5),e.\u0275\u0275property("ngIf",0!=(null==o.TbData?null:o.TbData.length)),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",0==(null==o.TbData?null:o.TbData.length)&&!o.loading))},dependencies:[g.sg,g.O5,T.f,K.Q,s._Y,s.YN,s.Kr,s.Fj,s.EJ,s.JJ,s.JL,s.On,s.F,P.t],styles:[".old-val[_ngcontent-%COMP%]{color:#f02d2d;font-weight:500}.new-val[_ngcontent-%COMP%]{color:#2b88f3;font-weight:500}"]}),n})()}]}];let Zl=(()=>{const a=class{};let n=a;return a.\u0275fac=function(i){return new(i||a)},a.\u0275mod=e.\u0275\u0275defineNgModule({type:a}),a.\u0275inj=e.\u0275\u0275defineInjector({imports:[g.ez,v.Bz.forChild(Hl),Un.s,Rn.Z,Bn.p,s.u5,s.UX,$n.A0,jn.GooglePlaceModule,zn.QG,D.VI,Q.Yi,x.su,Y.b,Pl.x,Ml.q]}),n})()}}]);
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.