PageSourceSearch

https://mirame.chduero.es/chduero/4588.7c6baa552ea966f0.js

js chduero.es collected 2026-09-24 18:10:03 UTC 43,840 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkchd_mirame_web=self.webpackChunkchd_mirame_web||[]).push([[4588],{4588:(Oe,E,s)=>{s.r(E),s.d(E,{HttpLoaderFactory:()=>q,OtherUsesModule:()=>xe});var j=s(4486),p=s(4894),z=s(40),X=s(520),u=s(3932),c=s(3179),t=s(5e3),Z=s(33),V=s(7706),k=s(5563);let K=(()=>{class n{constructor(e,o,i){this.entityMenuService=e,this.translate=o,this.languageChangeService=i,this.languageChangeService.language$.subscribe(r=>{this.translate.currentLang="",this.translate.use(r),this.translate.get("otherUses.fichaGeneral.titulo").subscribe(l=>{this.entityMenu={type:l,datalink:"data",searchlink:"search",generalDataLink:"search/general",technicalDataLink:"search/technical",entityType:c.C.tipoEntidad.otrosUsos},this.entityMenuService.entityMenuChange(this.entityMenu)})})}ngOnInit(){}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(Z.$),t.Y36(p.sK),t.Y36(V.S))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-otherUses"]],decls:5,vars:0,consts:[[1,"row"],[1,"col-12","col-md-auto"],[1,"col","col-lg-8","col-xl"]],template:function(e,o){1&e&&(t.TgZ(0,"div",0)(1,"div",1),t._UZ(2,"app-entity-menu"),t.qZA(),t.TgZ(3,"div",2),t._UZ(4,"router-outlet"),t.qZA()())},directives:[k.A,u.lC],styles:[""]}),n})();var O=s(1250),v=s(4834),_=s(5397);function W(n,a){1&n&&t._UZ(0,"app-spinner")}let tt=(()=>{class n{constructor(e){this.selectedTabService=e,this.selectedTabService.changeTab(0)}ngOnInit(){}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(O.O))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-data"]],decls:11,vars:6,consts:[[1,"container-title"],[1,"mb-2"],[1,"container-text"],["loading",""]],template:function(e,o){1&e&&(t.TgZ(0,"div",0)(1,"h2"),t._uU(2),t.ALo(3,"translate"),t.qZA()(),t._UZ(4,"mat-divider",1),t.TgZ(5,"div",2)(6,"p"),t._uU(7),t.ALo(8,"translate"),t.qZA()(),t.YNc(9,W,1,0,"ng-template",null,3,t.W1O)),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,2,"otherUses.data.queEsUnOtroUso")),t.xp6(5),t.Oqu(t.lcZ(8,4,"otherUses.data.defOtrosUsos")))},directives:[v.d,_.O],pipes:[p.X$],styles:[".container-title[_ngcontent-%COMP%]{border-left:6px solid #1c7696;padding-left:1rem}.container-subtitle[_ngcontent-%COMP%]{color:#1c7696}.bar-gradient[_ngcontent-%COMP%]{margin-bottom:8px;border-radius:.85rem;background:-prefix-linear-gradient(left,#d1e3ea,#f1fafd);background:linear-gradient(to right,#d1e3ea 20%,#f1fafd)}.bar-light-bluewhite[_ngcontent-%COMP%]{display:inline-flex}.bar-light-text[_ngcontent-%COMP%]{border-top-left-radius:.85rem;border-bottom-left-radius:.85rem;padding:16px;background-color:#d1e3ea;font-weight:500}.bar-light-numbers[_ngcontent-%COMP%]{border-top-right-radius:.85rem;border-bottom-right-radius:.85rem;padding:16px;border:1px solid #d1e3ea}.bar-lighter-bluewhite[_ngcontent-%COMP%]{display:inline-flex}.bar-lighter-text[_ngcontent-%COMP%]{border-top-left-radius:.85rem;border-bottom-left-radius:.85rem;padding:16px;background-color:#f1fafd;font-weight:500}.bar-lighter-numbers[_ngcontent-%COMP%]{border-top-right-radius:.85rem;border-bottom-right-radius:.85rem;padding:16px;border:1px solid #f1fafd}.bar-light-blue[_ngcontent-%COMP%]{width:100%;border-radius:.85rem;padding:6px;background-color:#d1e3ea;float:right;font-weight:500}.bar-lighter-blue[_ngcontent-%COMP%]{width:90%;border-radius:.85rem;padding:6px;background-color:#f1fafd;float:right;font-weight:500}"]}),n})(),et=(()=>{class n{constructor(e,o){this.languageChangeService=e,this.translate=o,this.languageChangeService.language$.subscribe(i=>{this.translate.use(i)})}ngOnInit(){}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(V.S),t.Y36(p.sK))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-search"]],decls:1,vars:0,template:function(e,o){1&e&&t._UZ(0,"router-outlet")},directives:[u.lC],styles:[""]}),n})();var M=s(7579),P=s(2722),h=s(7470),nt=s(5864),T=s(3468),x=s(8060),g=s(60),ot=s(6159),it=s(291);function at(n,a){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"div",2)(2,"h2"),t._uU(3),t.qZA()(),t._UZ(4,"mat-divider",3),t.TgZ(5,"app-version-fields-form",4),t.NdJ("newSelectionEvent",function(i){return t.CHM(e),t.oxw().setSelectedItems(i)}),t.qZA(),t.TgZ(6,"app-aditional-data-form",5),t.NdJ("newAditionalDataEvent",function(i){return t.CHM(e),t.oxw().saveData(i)}),t.qZA(),t.BQk()}if(2&n){const e=a.ngIf,o=t.oxw();
1t.xp6(3),t.AsE("",e.id," - ",e.nombre,""),t.xp6(2),t.Q6J("modifiedData",o.modifiedData),t.xp6(1),t.Q6J("entityId",e.id)("guardando",o.guardando)("newRouterLink",o.routerLinkVolver)("itemData",o.itemDetail)}}function st(n,a){1&n&&t._UZ(0,"app-spinner")}let R=(()=>{class n{constructor(e,o,i,r,l){var d;this.router=e,this.activatedRoute=o,this.dialogModelService=i,this.translate=r,this.globalUseService=l,this.selectedItems=[],this.stop$=new M.x,this.routerLinkVolver="../../../technical",this.guardando=!1;let m=this.activatedRoute.snapshot.paramMap.get("gid");null!=m&&(this.otherUse$=this.globalUseService.getById(Number(m),c.C.tiposUsosComun.AGROPECUARIOS_AGRARIOS)),this.navigationData=null===(d=this.router.getCurrentNavigation())||void 0===d?void 0:d.extras.state,h.c.isUndefined(this.navigationData.item)||(this.itemDetail=this.navigationData.item),this.modifiedData=h.c.isUndefined(this.navigationData.comparedObject)?this.navigationData:this.navigationData.comparedObject}ngOnInit(){}setSelectedItems(e){this.selectedItems=e}saveData(e){let o=this.activatedRoute.snapshot.paramMap.get("tab"),i=Number(o),r=0,l=i===c.C.operacion.OPERACION_GENERAL,d=i===c.C.operacion.OPERACION_INFO_CONCESIONAL,m=i===c.C.operacion.OPERACION_USOS_VOLUMENES;this.selectedItems.length>0?this.otherUse$.pipe((0,P.R)(this.stop$)).subscribe(I=>{let U,C=I;h.c.isUndefined(this.itemDetail)||(U=this.prepareData(this.itemDetail)),l?(r=c.C.operacion.OPERACION_GENERAL,C=U):d?(r=c.C.operacion.OPERACION_INFO_CONCESIONAL,C.infoConcesionalMod=U):m&&(r=c.C.operacion.OPERACION_USOS_VOLUMENES,C.volumenesMod=U),this.save(C,e,r)}):(this.guardando=!this.guardando,this.dialogModelService.openMessageDialog(this.translate.instant("dialogos.guardarCambios.titulo"),this.translate.instant("dialogos.guardarCambios.seleccionCampos")))}prepareData(e){let o=e;for(const i of this.selectedItems){let r=i.name,l=this.modifiedData.find(d=>d.name===r).value;o[r]=l}return o}save(e,o,i){if(null!=e){let r=new nt.Z(e,o,i);this.globalUseService.guardarVersionado(r).subscribe(l=>{this.manageResponse(l)})}}manageResponse(e){if(200===e.status){this.dialogModelService.openMessageDialog(this.translate.instant("dialogos.guardarCambios.titulo"),this.translate.instant("dialogos.guardarCambios.operacionCorrecta"));let o=this.activatedRoute.snapshot.paramMap.get("gid");o=e.body.id,this.router.navigate([`${this.routerLinkVolver}/${o}`],{relativeTo:this.activatedRoute})}else this.dialogModelService.openMessageDialog(this.translate.instant("dialogos.guardarCambios.titulo"),this.translate.instant("dialogos.guardarCambios.operacionError"))}ngOnDestroy(){this.stop$.next(!0)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(u.F0),t.Y36(u.gz),t.Y36(T.r),t.Y36(p.sK),t.Y36(x.a))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-fields-version"]],decls:4,vars:4,consts:[[4,"ngIf","ngIfElse"],["loading",""],[1,"container-title"],[1,"mb-2"],[3,"modifiedData","newSelectionEvent"],[3,"entityId","guardando","newRouterLink","itemData","newAditionalDataEvent"]],template:function(e,o){if(1&e&&(t.YNc(0,at,7,7,"ng-container",0),t.ALo(1,"async"),t.YNc(2,st,1,0,"ng-template",null,1,t.W1O)),2&e){const i=t.MAs(3);t.Q6J("ngIf",t.lcZ(1,2,o.otherUse$))("ngIfElse",i)}},directives:[g.O5,v.d,ot.L,it.T,_.O],pipes:[g.Ov],styles:[""]}),n})();var L=s(4024),D=s(2695),rt=s(8910),A=s(7278),lt=s(4511);function ct(n,a){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"h3",5),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"app-search-table",6),t.NdJ("changePageEvent",function(i){return t.CHM(e),t.oxw().updatePage(i)}),t.qZA(),t.BQk()}if(2&n){const e=t.oxw();
1t.xp6(2),t.Oqu(t.lcZ(3,4,"formBusqueda.resultado")),t.xp6(2),t.Q6J("searchResult",e.otherUses)("tableColumns",e.tableConfiguration)("visor",e.visorLink)}}function dt(n,a){1&n&&(t.TgZ(0,"div")(1,"div",8)(2,"p"),t._uU(3),t.ALo(4,"translate"),t.qZA()()()),2&n&&(t.xp6(3),t.Oqu(t.lcZ(4,1,"formBusqueda.noResultados")))}function pt(n,a){if(1&n&&t.YNc(0,dt,5,3,"div",7),2&n){const e=t.oxw();t.Q6J("ngIf",e.otherUses&&0===e.otherUses.data.length)}}let mt=(()=>{class n{constructor(e,o,i){this.otherUsesService=e,this.translate=o,this.selectedTabService=i,this.visorLink="/viewer/"+c.C.otherUseEntity,this.entity=c.C.tiposUsosComun.AGROPECUARIOS_AGRARIOS,this.disabledReportButton=!0,this.translate.get(["otherUses.busqueda.tabla.id","otherUses.busqueda.tabla.nombre","otherUses.busqueda.codigoIntegra","otherUses.busqueda.tabla.situacion","otherUses.busqueda.tabla.volumen"]).subscribe(r=>{this.tableConfiguration=this.getTableConfiguration(r)}),this.formStorageType=h.c.getEntityName(c.C.tipoEntidad.otrosUsos,!0),this.selectedTabService.changeTab(0),this.numberPipe=new g.JJ(this.translate.currentLang)}getTableConfiguration(e){return[{columnDef:"detalle",header:"",cell:o=>""},{columnDef:"id",header:this.translate.instant("otherUses.busqueda.tabla.id"),cell:o=>`${o.id}`},{columnDef:"codIntegra",header:this.translate.instant("otherUses.busqueda.codigoIntegra"),cell:o=>`${o.codIntegra}`},{columnDef:"nombre",header:this.translate.instant("otherUses.busqueda.tabla.nombre"),cell:o=>`${o.nombre}`},{columnDef:"situacion",header:this.translate.instant("otherUses.busqueda.tabla.situacion"),cell:o=>`${o.situacion}`},{columnDef:"volumenOrder",header:this.translate.instant("otherUses.busqueda.tabla.volumen"),cell:o=>`${this.numberPipe.transform(o.volumenOrder,c.C.numRed)||""}`,center:!0}]}ngOnInit(){}ngOnDestroy(){}search(e){this.searchFilter=e,this.otherUsesService.getOtherUses(e).subscribe(o=>{this.otherUsesService.getCountOtherUses(e).subscribe(i=>{this.count=i,this.disabledReportButton=!(this.count>0),this.otherUses=new L.y(!0,i,o);for(const r of this.otherUses.data)null==r.situacion&&(r.situacion=""),null==r.codIntegra&&(r.codIntegra="")})})}updatePage(e){this.otherUsesService.getOtherUses(this.searchFilter,e.pageNumber.toString(),e.pageSize.toString(),e.sortDirection,e.sortField).subscribe(o=>{this.otherUses=new L.y(!1,this.count,o);for(const i of this.otherUses.data)null==i.situacion&&(i.situacion=""),null==i.codIntegra&&(i.codIntegra="")})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(D.r),t.Y36(p.sK),t.Y36(O.O))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-search-list"]],decls:9,vars:8,consts:[[1,"container-title"],[1,"mb-2"],[3,"typeKey","disabledReportButton","entity","newSearchEvent"],[4,"ngIf","ngIfElse"],["noResultados",""],["appBold",""],[3,"searchResult","tableColumns","visor","changePageEvent"],[4,"ngIf"],[1,"container-subtitle"]],template:function(e,o){if(1&e&&(t.TgZ(0,"div",0)(1,"h2"),t._uU(2),t.ALo(3,"translate"),t.qZA()(),t._UZ(4,"mat-divider",1),t.TgZ(5,"app-uses-search-form",2),t.NdJ("newSearchEvent",function(r){return o.search(r)}),t.qZA(),t.YNc(6,ct,5,6,"ng-container",3),t.YNc(7,pt,1,1,"ng-template",null,4,t.W1O)),2&e){const i=t.MAs(8);t.xp6(2),t.Oqu(t.lcZ(3,6,"otherUses.busqueda.titulo")),t.xp6(3),t.Q6J("typeKey",o.formStorageType)("disabledReportButton",o.disabledReportButton)("entity",o.entity),t.xp6(1),t.Q6J("ngIf",o.tableConfiguration&&null!=o.otherUses&&o.otherUses.data.length>0)("ngIfElse",i)}},directives:[v.d,rt.f,g.O5,A.M,lt.D],pipes:[p.X$],styles:[""]}),n})();var Y=s(2170),ut=s(2511),J=s(4209),gt=s(8914),F=s(4623),ht=s(3279),ft=s(508),bt=s(5194),w=s(2600),S=s(7423),vt=s(5245),N=s(7238);function _t(n,a){if(1&n&&(t.TgZ(0,"div",23)(1,"span",24),t._uU(2),t.qZA()()),2&n){const e=a.$implicit;t.xp6(2),t.Oqu(e)}}function Ct(n,a){if(1&n&&(t.ynx(0),t.TgZ(1,"mat-list-item",18)(2,"span",19),t._uU(3),t.ALo(4,"translate"),t.qZA()(),t.TgZ(5,"mat-list",20)(6,"mat-list-item",21),t.YNc(7,_t,3,1,"div",22),t.qZA()(),t.BQk()),2&n){const e=t.oxw(2);t.xp6(3),t.Oqu(t.lcZ(4,2,"otherUses.fichaGeneral.lblProvincias")),t.xp6(4),t.Q6J("ngForOf",e.otherUse.provincias)}}function xt(n,a){if(1&n&&(t.TgZ(0,"div",23)(1,"span",24),t._uU(2),t.qZA()()),2&n){const e=a.$implicit;t.xp6(2),t.Oqu(e)}}function Ot(n,a){if(1&n&&(t.ynx(0),t.TgZ(1,"mat-list-item",18)(2,"span",19),t._uU(3),t.ALo(4,"translate"),t.qZA()(),t.TgZ(5,"mat-list",20)(6,"mat-list-item",21),t.YNc(7,xt,3,1,"div",22),t.qZA()(),t.BQk()),2&n){const e=t.oxw(2);t.xp6(3),t.Oqu(t.lcZ(4,2,"otherUses.fichaGeneral.lblMunicipios")),t.xp6(4),t.Q6J("ngForOf",e.otherUse.municipios)}}function Mt(n,a){if(1&n&&t._UZ(0,"app-image-map",25),2&n){const e=t.oxw(2);t.Q6J("entityDataMap",e.photoMap)("entitiesLayers",e.layer)}}function Tt(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"div",2)(1,"div",3)(2,"h2"),t._uU(3),t.qZA()(),t._UZ(4,"mat-divider",4),t.TgZ(5,"div",5)(6,"div",6)(7,"mat-list",7),t._UZ(8,"a
1pp-mat-list-item-text",8)(9,"app-mat-list-item-text",8)(10,"app-mat-list-item-text",8)(11,"app-mat-list-item-text",8),t.YNc(12,Ct,8,4,"ng-container",9),t.YNc(13,Ot,8,4,"ng-container",9),t.qZA()(),t.TgZ(14,"div",10),t.YNc(15,Mt,1,2,"app-image-map",11),t.qZA()(),t.TgZ(16,"div",12)(17,"div",13)(18,"div",14),t._UZ(19,"app-map-icon",15),t.TgZ(20,"a",16),t.NdJ("click",function(){t.CHM(e);const i=t.oxw();return i.printData(i.otherUse.id)}),t.TgZ(21,"mat-icon",17),t.ALo(22,"translate"),t._uU(23,"print "),t.qZA()()()()()()}if(2&n){const e=t.oxw();t.xp6(3),t.AsE("",e.otherUse.id," - ",e.otherUse.nombre,""),t.xp6(5),t.Q6J("elem",e.otherUse.nombre)("label","otherUses.fichaGeneral.lblNombre"),t.xp6(1),t.Q6J("elem",e.otherUse.estado)("label","otherUses.fichaGeneral.lblEstado"),t.xp6(1),t.Q6J("elem",e.otherUse.codIntegra)("label","otherUses.fichaGeneral.lblCodIntegra"),t.xp6(1),t.Q6J("elem",e.otherUse.subUsoIntegra)("label","otherUses.fichaGeneral.lblSubUsoIntegra"),t.xp6(1),t.Q6J("ngIf",e.otherUse.provincias&&e.otherUse.provincias.length>0),t.xp6(1),t.Q6J("ngIf",e.otherUse.municipios&&e.otherUse.municipios.length>0),t.xp6(2),t.Q6J("ngIf",e.photoMap),t.xp6(4),t.Q6J("entityName",e.entityName)("entityId",e.otherUse.id),t.xp6(2),t.s9C("matTooltip",t.lcZ(22,16,"tootips.tltipImprimirFicha"))}}function yt(n,a){1&n&&t._UZ(0,"app-spinner")}let Ut=(()=>{class n{constructor(e,o,i,r,l,d,m,I,C){this.route=e,this.entityMenuService=o,this.otherUsesService=i,this.globalService=r,this.globalUseService=l,this.selectedTabService=d,this.translate=m,this.dialogModelService=I,this.configService=C,this.substringByChar=h.c.substringByChar,this.numRed=c.C.numRed,this.layer=[],this.entityName=c.C.otherUseEntity,this.stop$=new M.x,this.selectedTabService.changeTab(0),this.layer.push(this.configService.getItemLayerById(c.C.olMap.layerOtherUses))}ngOnInit(){let e=this.route.snapshot.paramMap.get("gid");null!=e&&(this.entityMenuService.submenuChange(!0),this.entityMenuService.gidEntitySubject$.next(e),this.globalUseService.getById(Number(e),c.C.tiposUsosComun.AGROPECUARIOS_AGRARIOS).pipe((0,P.R)(this.stop$)).subscribe(o=>{this.otherUse=o}),this.otherUsesService.getExtensionFeature(Number(e)).subscribe(o=>{this.photoMap=new Y.lC([Number(e)],200===o.status?o.body:[])}))}printData(e){ut.l.printData(e,c.C.tipoEntidad.otrosUsos,this.dialogModelService,this.translate,this.globalService)}ngOnDestroy(){this.stop$.next(!0)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(u.gz),t.Y36(Z.$),t.Y36(D.r),t.Y36(J.U),t.Y36(x.a),t.Y36(O.O),t.Y36(p.sK),t.Y36(T.r),t.Y36(gt.E))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-general-data"]],decls:3,vars:2,consts:[["class","container",4,"ngIf","ngIfElse"],["loading",""],[1,"container"],[1,"container-title"],[1,"mb-2"],[1,"row","mb-4"],[1,"col-5"],["dense",""],[3,"elem","label"],[4,"ngIf"],[1,"col-7","iframeMapa"],[3,"entityDataMap","entitiesLayers",4,"ngIf"],[1,"row"],[1,"col-md-12"],[1,"float-end"],[3,"entityName","entityId"],["mat-flat-button","",3,"click"],["matTooltipPosition","below","matTooltipClass","custom-tooltip",1,"btn-icon-mat",3,"matTooltip"],[1,"bar-light-blue","mb-2"],["appBold",""],["dense","",1,"ms-5"],[1,"bar-lighter-blue","mb-2"],["matLine","",4,"ngFor","ngForOf"],["matLine",""],[1,"float-start"],[3,"entityDataMap","entitiesLayers"]],template:function(e,o){if(1&e&&(t.YNc(0,Tt,24,18,"div",0),t.YNc(1,yt,1,0,"ng-template",null,1,t.W1O)),2&e){const i=t.MAs(2);t.Q6J("ngIf",o.otherUse)("ngIfElse",i)}},directives:[g.O5,v.d,F.i$,ht.f,F.Tg,A.M,g.sg,ft.X2,bt.E,w.N,S.zs,vt.Hw,N.gM,_.O],pipes:[p.X$],styles:[".container-title[_ngcontent-%COMP%]{border-left:6px solid #1c7696;padding-left:1rem}.container-subtitle[_ngcontent-%COMP%]{color:#1c7696}div.detail-info[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]:first-child{font-weight:700}.detail-info[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{margin-bottom:0}.iframeMapa[_ngcontent-%COMP%]{text-align:-webkit-center;margin-top:1rem}.btn-first[_ngcontent-%COMP%]{background-color:#1b576d;color:#fff;margin:0 8px 8px 0;padding:0 28px;border-radius:unset}.btn-first[_ngcontent-%COMP%]:hover, .btn-first[_ngcontent-%COMP%]:focus, .btn-first[_ngcontent-%COMP%]:active, .btn-first.active[_ngcontent-%COMP%]{background-color:#0b475d;color:#fff}.btn-first.disabled[_ngcontent-%COMP%]:hover, .btn-first.disabled[_ngcontent-%COMP%]:focus, .btn-first.disabled[_ngcontent-%COMP%]:active, .btn-first.disabled.active[_ngcontent-%COMP%], .btn-first[disabled][_ngcontent-%COMP%]:hover, .btn-first[disabled][_ngcontent-%COMP%]:focus, .btn-first[disabled][_ngcontent-%COMP%]:active, .btn-first[disabled].active[_ngcontent-%COMP%], fieldset[disabled][_ngcontent-%COMP%]   .btn-first[_ngcontent-%COMP%]:hover, fieldset[disabled][_ngcontent-%COMP%]   .btn-first[_ngcontent-%COMP%]:focus, fieldset[disabled][_ngcontent-%COMP%]   .btn-first[_ngcontent-%COMP%]:active, fieldset[disabled][_ngcontent-%COMP%]   .btn-first.active[_ngcontent-%COMP%]{background-color:#1b576d;color:#fff}"]}),n})();var Zt=s(4327),Pt=s(5795),Dt=s(4239),At=s(1889);function St(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"button",13),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).generateReport()}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&n&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"botones.generarInforme")))}function Nt(n,a){1&n&&t._UZ(0,"app-generating-report-icon")}const It=function(){return["../"]};function Et(n,a){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"div",2)(2,"p"),t._uU(3),t.ALo(4,"translate"),t.qZA()(),t.TgZ(5,"div",3)(6,"div",4)(7,"div",5)(8,"app-pick-list-form",6),t.NdJ("newSelectionEvent",function(i){return t.CHM(e),t.oxw().addSelectedItems(i)}),t.qZA()()(),t.TgZ(9,"div",7)(10,"div",8)(11,"div",9),t.YNc(12,St,3,3,"button",10),t.YNc(13,Nt,1,0,"ng-template",null,11,t.W1O),t.TgZ(15,"button",12),t._uU(16),t.ALo(17,"translate"),t.qZA()()()()(),t.BQk()}if(2&n){const e=a.ngIf,o=t.MAs(14),i=t.oxw();
1t.xp6(3),t.Oqu(t.lcZ(4,6,"informes.msgCampos")),t.xp6(5),t.Q6J("sourceList",e),t.xp6(4),t.Q6J("ngIf",!i.generatingReport)("ngIfElse",o),t.xp6(3),t.Q6J("routerLink",t.DdM(10,It)),t.xp6(1),t.Oqu(t.lcZ(17,8,"botones.volver"))}}function Vt(n,a){1&n&&t._UZ(0,"app-spinner")}let Rt=(()=>{class n{constructor(e,o,i,r,l){var d;this.globalService=e,this.router=o,this.dialogModelService=i,this.translate=r,this.otherUsesService=l,this.selectedItems=[],this.generatingReport=!1,this.formData=null===(d=this.router.getCurrentNavigation())||void 0===d?void 0:d.extras.state}ngOnInit(){this.parameterization$=this.globalService.getParametrizacionInforme(c.C.tipoEntidad.otrosUsos)}addSelectedItems(e){this.selectedItems=e}generateReport(){if(this.selectedItems.length>0){this.generatingReport=!0;let e=new Pt.T(this.selectedItems,this.formData,c.C.tiposUsosComun.AGROPECUARIOS_AGRARIOS);this.otherUsesService.generarInformeGeneral(e).subscribe(o=>{if(200===o.status){let i=h.c.toArrayBuffer(o.body.contenido);const r=new Blob([i],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}),l=new File([r],o.body.nombre,{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"});(0,Zt.saveAs)(l)}else this.dialogModelService.openMessageDialog(this.translate.instant("dialogos.informes.titulo"),this.translate.instant("dialogos.informes.informeError"));this.generatingReport=!1})}else this.dialogModelService.openMessageDialog(this.translate.instant("dialogos.informes.titulo"),this.translate.instant("dialogos.informes.seleccionCampos"))}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(J.U),t.Y36(u.F0),t.Y36(T.r),t.Y36(p.sK),t.Y36(D.r))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-report"]],decls:4,vars:4,consts:[[4,"ngIf","ngIfElse"],["loading",""],[1,"container-text"],[1,"container"],[1,"row","mb-2"],[1,"col"],[3,"sourceList","newSelectionEvent"],[1,"row"],[1,"col-md-12"],[1,"float-end"],["type","button","mat-flat-button","","class","btn-first",3,"click",4,"ngIf","ngIfElse"],["generating",""],["type","button","mat-flat-button","",1,"btn-second",3,"routerLink"],["type","button","mat-flat-button","",1,"btn-first",3,"click"]],template:function(e,o){if(1&e&&(t.YNc(0,Et,18,11,"ng-container",0),t.ALo(1,"async"),t.YNc(2,Vt,1,0,"ng-template",null,1,t.W1O)),2&e){const i=t.MAs(3);t.Q6J("ngIf",t.lcZ(1,2,o.parameterization$))("ngIfElse",i)}},directives:[g.O5,Dt.N,S.lW,At.C,u.rH,_.O],pipes:[g.Ov,p.X$],styles:[".btn-first[_ngcontent-%COMP%]{background-color:#1b576d;color:#fff;margin:0 8px 8px 0;padding:0 28px;border-radius:unset}.btn-first[_ngcontent-%COMP%]:hover, .btn-first[_ngcontent-%COMP%]:focus, .btn-first[_ngcontent-%COMP%]:active, .btn-first.active[_ngcontent-%COMP%]{background-color:#0b475d;color:#fff}.btn-first.disabled[_ngcontent-%COMP%]:hover, .btn-first.disabled[_ngcontent-%COMP%]:focus, .btn-first.disabled[_ngcontent-%COMP%]:active, .btn-first.disabled.active[_ngcontent-%COMP%], .btn-first[disabled][_ngcontent-%COMP%]:hover, .btn-first[disabled][_ngcontent-%COMP%]:focus, .btn-first[disabled][_ngcontent-%COMP%]:active, .btn-first[disabled].active[_ngcontent-%COMP%], fieldset[disabled][_ngcontent-%COMP%]   .btn-first[_ngcontent-%COMP%]:hover, fieldset[disabled][_ngcontent-%COMP%]   .btn-first[_ngcontent-%COMP%]:focus, fieldset[disabled][_ngcontent-%COMP%]   .btn-first[_ngcontent-%COMP%]:active, fieldset[disabled][_ngcontent-%COMP%]   .btn-first.active[_ngcontent-%COMP%]{background-color:#1b576d;color:#fff}.btn-second[_ngcontent-%COMP%]{background-color:#1c7696;color:#fff;margin:0 8px 8px 0;padding:0 28px;border-radius:unset}.btn-second[_ngcontent-%COMP%]:hover, .btn-second[_ngcontent-%COMP%]:focus, .btn-second[_ngcontent-%COMP%]:active, .btn-second.active[_ngcontent-%COMP%]{background-color:#0c6686;border-color:#002f45;color:#fff}.btn-second.disabled[_ngcontent-%COMP%]:hover, .btn-second.disabled[_ngcontent-%COMP%]:focus, .btn-second.disabled[_ngcontent-%COMP%]:active, .btn-second.disabled.active[_ngcontent-%COMP%], .btn-second[disabled][_ngcontent-%COMP%]:hover, .btn-second[disabled][_ngcontent-%COMP%]:focus, .btn-second[disabled][_ngcontent-%COMP%]:active, .btn-second[disabled].active[_ngcontent-%COMP%], fieldset[disabled][_ngcontent-%COMP%]   .btn-second[_ngcontent-%COMP%]:hover, fieldset[disabled][_ngcontent-%COMP%]   .btn-second[_ngcontent-%COMP%]:focus, fieldset[disabled][_ngcontent-%COMP%]   .btn-second[_ngcontent-%COMP%]:active, fieldset[disabled][_ngcontent-%COMP%]   .btn-second.active[_ngcontent-%COMP%]{background-color:#1c7696;color:#fff}"]}),n})();var Q=s(5448),Lt=s(2941),Yt=s(2367);function Jt(n,a){if(1&n){const e=t.EpF();
1t.ynx(0),t.TgZ(1,"app-historical-fields",3),t.NdJ("newSearchEvent",function(i){return t.CHM(e),t.oxw().searchChanges(i)}),t.qZA(),t.BQk()}if(2&n){const e=a.ngIf,o=t.oxw();t.xp6(1),t.Q6J("fields",e)("gid",o.itemDetail.id)("newRouterLink",o.newRouterLink)}}function Ft(n,a){if(1&n&&(t.ynx(0),t._UZ(1,"app-historical-table",4),t.BQk()),2&n){const e=a.ngIf,o=t.oxw();t.xp6(1),t.Q6J("searchResult",e)("gid",o.itemDetail.id)("searchField",o.selectedValueName)("tableColumns",o.tableConfiguration)}}let wt=(()=>{class n{constructor(e,o,i,r){var l;this.route=e,this.tableConfigurationService=o,this.router=i,this.globalUseService=r,this.tab="",this.selectedValueName="",this.newRouterLink="../../technical",this.tab=this.route.snapshot.paramMap.get("tab")||"",this.tableConfiguration=this.tableConfigurationService.getHistoricalTableConfiguration(),this.itemDetail=null===(l=this.router.getCurrentNavigation())||void 0===l?void 0:l.extras.state,""!==this.tab&&(this.historicalFields$=this.globalUseService.getListadoCamposHistorico(Number(this.tab),this.itemDetail.idEntidad))}ngOnInit(){}searchChanges(e){this.selectedValueName=e.nombreOriginal,""!==this.tab&&(this.historical$=this.globalUseService.getHistoricoCampo(Number(this.itemDetail.id),Number(this.tab),e.nombre,0,this.itemDetail.idEntidad))}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(u.gz),t.Y36(Q.A),t.Y36(u.F0),t.Y36(x.a))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-historical"]],decls:8,vars:8,consts:[[1,"container-title"],[1,"mb-2"],[4,"ngIf"],[3,"fields","gid","newRouterLink","newSearchEvent"],[3,"searchResult","gid","searchField","tableColumns"]],template:function(e,o){1&e&&(t.TgZ(0,"div",0)(1,"h2"),t._uU(2),t.qZA()(),t._UZ(3,"mat-divider",1),t.YNc(4,Jt,2,3,"ng-container",2),t.ALo(5,"async"),t.YNc(6,Ft,2,4,"ng-container",2),t.ALo(7,"async")),2&e&&(t.xp6(2),t.AsE("",o.itemDetail.id," - ",o.itemDetail.nombre,""),t.xp6(2),t.Q6J("ngIf",t.lcZ(5,4,o.historicalFields$)),t.xp6(2),t.Q6J("ngIf",t.lcZ(7,6,o.historical$)))},directives:[v.d,g.O5,Lt.f,Yt.q],pipes:[g.Ov],styles:[""]}),n})();var y=s(3251),Qt=s(7555),$t=s(7427),$=s(7318),Gt=s(1563),Ht=s(8260),Bt=s(8449),f=s(3075),G=s(9506),H=s(8226),qt=s(1193),B=s(7322),jt=s(8833),zt=s(9709),Xt=s(4533),kt=s(2546);function Kt(n,a){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"validacionForm.numero")))}function Wt(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"app-edit-cell-table",31),t.NdJ("newUpdateEvent",function(i){return t.CHM(e),t.oxw(2).getModifiedData(i)}),t.qZA()}if(2&n){const e=t.oxw(2);t.Q6J("tableData",e.volumesMonths)("tableEditable",!1)("tableColumns",e.tableConfiguration)}}function te(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"button",36),t.NdJ("click",function(){return t.CHM(e),t.oxw(4).validateVersions()}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&n){const e=t.oxw(4);t.Q6J("disabled",e.disableValidateBtn),t.xp6(1),t.Oqu(t.lcZ(2,2,"botones.valSeleccion"))}}const ee=function(){return["2"]};function ne(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"div",7)(1,"div",17)(2,"div",33)(3,"h2"),t._uU(4),t.ALo(5,"translate"),t.qZA()(),t.TgZ(6,"div",7)(7,"app-version-table",34),t.NdJ("newSelectEvent",function(i){return t.CHM(e),t.oxw(3).addSelection(i)})("newValidateVersionEvent",function(i){return t.CHM(e),t.oxw(3).validateVersions(i)})("newDeleteVersionEvent",function(i){return t.CHM(e),t.oxw(3).deleteVersion(i)}),t.qZA()(),t.TgZ(8,"div",7)(9,"div",24)(10,"div",25),t.YNc(11,te,3,4,"button",35),t.qZA()()()()()}if(2&n){const e=t.oxw(3);t.xp6(4),t.Oqu(t.lcZ(5,6,"versionado.controlVersiones")),t.xp6(3),t.Q6J("searchResult",e.volumesControlVersiones)("tableColumns",e.tableConfigurationVersion)("itemName",e.useDetail.nombre)("entityType",e.otherUseType),t.xp6(4),t.Q6J("appHasrole",t.DdM(8,ee))}}function oe(n,a){if(1&n&&(t.ynx(0),t.YNc(1,ne,12,9,"div",32),t.BQk()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("ngIf",e.existVersions)}}const ie=function(){return["4","2","7"]};function ae(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"div",4)(1,"form",5,6),t.NdJ("ngSubmit",function(){return t.CHM(e),t.oxw().onSubmit()}),t.TgZ(3,"div",7)(4,"div",8)(5,"div",7)(6,"div",9)(7,"div",7)(8,"div",10)(9,"span",11),t._uU(10),t.ALo(11,"translate"),t.qZA()(),t.TgZ(12,"div",12)(13,"mat-form-field",13),t._UZ(14,"input",14),t.qZA(),t.YNc(15,Kt,3,3,"mat-error",15),t.qZA(),t.TgZ(16,"div",16),t._uU(17),t.ALo(18,"translate"),t.qZA()()()(),t.TgZ(19,"div",7)(20,"div",17),t.YNc(21,Wt,1,3,"app-edit-cell-table",18),t.qZA()()(),t.TgZ(22,"div",8)(23,"div",17)(24,"div",19)(25,"div",20)(26,"span",21),t.ALo(27,"translate"),t._uU(28),t.ALo(29,"translate"),t.qZA()()(),t.TgZ(30,"div",19)(31,"div",9)(32,"mat-form-field",13),t._UZ(33,"textarea",22,23),t.qZA()()()()()(),t.TgZ(35,"div",7)(36,"div",24)(37,"div",25)(38,"button",26),t.NdJ("click",function(){return t.CHM(e),t.oxw().goToFieldsHistory()}),t._uU(39),t.ALo(40,"translate"),t.qZA(),t.TgZ(41,"button",27),t._uU(42),t.ALo(43,"translate"),t._UZ(44,"i",28),t.qZA(),t._UZ(45,"app-map-icon",29),t.qZA()()()(),t.YNc(46,oe,2,1,"ng-container",30),t.qZA()}if(2&n){const e=t.oxw();let o;t.xp6(1),t.Q6J("formGroup",e.volumesGroup),t.xp6(9),t.Oqu(t.lcZ(11,12,"useCommon.volumenes.dotacion")),t.xp6(5),t.Q6J("ngIf",null==(o=e.volumesGroup.get("dotacion"))?null:o.hasError("pattern")),t.xp6(2),t.Oqu(t.lcZ(18,14,"unidades.m3Anyo")),t.xp6(4),t.Q6J("ngIf",e.useDetail.volumenesMod),t.xp6(5),t.s9C("matTooltip",t.lcZ(27,16,"useCommon.volumenes.tltipComentarios")),t.xp6(2),t.hij(" ",t.lcZ(29,18,"useCommon.volumenes.lblComentarios")," "),t.xp6(11),t.hij(" ",t.lcZ(40,20,"botones.historico")," "),t.xp6(3),t.hij("",t.lcZ(43,22,"botones.guardar")," "),t.xp6(3),t.Q6J("entityName",e.entityName)("entityId",e.useDetail.id),t.xp6(1),t.Q6J("appHasrole",t.DdM(24,ie))}}function se(n,a){1&n&&t._UZ(0,"app-spinner")}let re=(()=>{class n{constructor(e,o,i,r,l,d,m){this.tableConfigurationService=e,this.fb=o,this.translate=i,this.router=r,this.activatedRoute=l,this.dialogModelService=d,this.globalUseService=m,this.isProfile=!1,this.numRed=c.C.numRed,this.numberPipe=new g.JJ(this.translate.currentLang),this.tableData={isValid:!0,modifiedObject:[]},this.tabVolumes=c.C.operacion.OPERACION_USOS_VOLUMENES,this.perfilUsuario="",this.existVersions=!1,this.selection=[],this.disableValidateBtn=!0,this.otherUseType=c.C.tipoEntidad.otrosUsos,this.elementCheckNameList=[],this.stop$=new M.x,this.tableConfiguration=this.tableConfigurationService.getVolumesTableConfiguration(),this.tableConfigurationVersion=this.tableConfigurationService.getVersionTableConfiguration()}ngOnInit(){this.volumes=this.useDetail.volumenesMod,this.volumesMonths=H._.getVolumesByMonth(this.volumes,this.translate),this.createForm(),this.globalUseService.getControlDeVersiones(this.useDetail.id,this.tabVolumes,this.useDetail.idEntidad).subscribe(e=>{e.length>0&&(this.existVersions=!0),this.volumesControlVersiones=e})}createForm(){this.volumesGroup=this.fb.group({dotacion:this.fb.control({value:this.numberPipe.transform(this.volumes.dotacion,c.C.numRed),disabled:!1},f.kI.pattern(c.C.regExpNumFormatted)),comentarios:this.fb.control({value:this.volumes.comentarios,disabled:!1})}),this.elementCheckNameList=["dotacion"],this.initialValues=this.volumesGroup.value}getModifiedData(e){this.tableData=e}onSubmit(){if(this.volumesGroup.invalid)return;let e=h.c.compareObjects(this.initialValues,this.volumesGroup.value),o=Object.assign({},this.volumes);for(const r of this.tableData.modifiedObject)for(const l in r){let d=r[l];Object.assign(o,{[`${l}${r.mes}`]:h.c.isNullorEmpty(d)?d:Number(d)})}let i=h.c.compareObjects(this.volumes,o);if(Object.keys(e).length>0||this.tableData.isValid&&this.tableData.modifiedObject.length>0)this.router.navigate([`../../fieldsVersion/${this.useDetail.id}/${this.tabVolumes}`],{relativeTo:this.activatedRoute,state:{comparedObject:this.prepareData(e,i),item:this.volumes,operation:c.C.operacionRealizada.MODIFICADO}});else{if(!this.tableData.isValid)return;this.dialogModelService.openMessageDialog(this.translate.instant("dialogos.guardarCambios.titulo"),this.translate.instant("dialogos.guardarCambios.sinCambios"))}}prepareData(e,o){let i=[];for(const r in e){let l,d=e[r],m=e[r];m&&this.elementCheckNameList.includes(r)&&(m=h.c.convertFormattedNumber(m.toString())),l=new G.i(r,this.translate.instant(`useCommon.fichaTecnica.lblsGuardarCambios.${r}`),m,d),i.push(l)}for(const r in o)if(r.includes("volSolicitado")){let l=o[r],d=H._.getVolumesLabelByPorperty(r,this.translate,"useCommon.volumenes.lblsGuardarCambios"),m=new G.i(r,d,l,qt.o.transform(l.toString(),c.C.numRed,c.C.date,this.translate.currentLang));i.push(m)}return i}goToFieldsHistory(){this.router.navigate([`../../fieldsHistory/${this.tabVolumes}`],{relativeTo:this.activatedRoute,state:this.useDetail})}addSelection(e){this.disableValidateBtn=0===e.length,this.selection=e}validateVersions(e){let o=[];e?o.push(e):o=this.selection.map(i=>i),this.globalUseService.validarBloque(o,this.useDetail.idEntidad).subscribe(i=>{200===i.status?(this.dialogModelService.openMessageDialog(this.translate.instant("dialogos.validarVersion.tituloVersion"),`${this.translate.instant("dialogos.validarVersion.validacionCorrecta")} ${i.body} ${this.translate.instant(i.body>1?"dialogos.validarVersion.variosElementos":"dialogos.validarVersion.1elemento")}`),this.reloadComponent()):this.dialogModelService.openMessageDialog(this.translate.instant("dialogos.validarVersion.tituloVersion"),this.translate.instant("dialogos.validarVersion.validacionError"))})}deleteVersion(e){this.globalUseService.descartarOperacion(e.version,e.operacionEntidad,this.useDetail.idEntidad).subscribe(o=>{o?(this.dialogModelService.openMessageDialog(this.translate.instant("dialogos.descartar
1Version.titulo"),this.translate.instant("dialogos.descartarVersion.descartarCorrecta")),this.reloadComponent()):this.dialogModelService.openMessageDialog(this.translate.instant("dialogos.descartarVersion.titulo"),this.translate.instant("dialogos.descartarVersion.descartarError"))})}reloadComponent(){this.router.routeReuseStrategy.shouldReuseRoute=()=>!1,this.router.navigate(["./"],{relativeTo:this.activatedRoute,queryParamsHandling:"merge"})}ngOnDestroy(){this.stop$.next(!0)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(Q.A),t.Y36(f.qu),t.Y36(p.sK),t.Y36(u.F0),t.Y36(u.gz),t.Y36(T.r),t.Y36(x.a))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-volumes"]],inputs:{useDetail:"useDetail",entityType:"entityType",entityName:"entityName",isProfile:"isProfile"},decls:7,vars:4,consts:[[1,"container-title","mt-1"],[1,"mb-2"],["class","container",4,"ngIf","ngIfElse"],["loading",""],[1,"container"],[3,"formGroup","ngSubmit"],["volumesForm","ngForm"],[1,"row"],[1,"col-xl-6"],[1,"col","col-xl-12"],[1,"col","col-xl-6","labelForm"],["appBold",""],[1,"col","col-xl-4"],["appearance","standard",1,"width-100"],["matInput","","name","dotacion","type","text","formControlName","dotacion"],[4,"ngIf"],[1,"col","col-xl-2"],[1,"col"],[3,"tableData","tableEditable","tableColumns","newUpdateEvent",4,"ngIf"],[1,"row","inputRow"],[1,"col","col-xl-3","labelForm"],["appBold","","matTooltipPosition","after","matTooltipClass","custom-tooltip",3,"matTooltip"],["matInput","","cdkTextareaAutosize","","cdkAutosizeMinRows","20","cdkAutosizeMaxRows","20","name","comentarios","formControlName","comentarios","maxlength","2000"],["autosize","cdkTextareaAutosize"],[1,"col-md-12"],[1,"float-end"],["type","button","mat-flat-button","",1,"btn-first",3,"click"],["type","submit","mat-flat-button","",1,"btn-second"],[1,"fa-regular","fa-floppy-disk"],[3,"entityName","entityId"],[4,"appHasrole"],[3,"tableData","tableEditable","tableColumns","newUpdateEvent"],["class","row",4,"ngIf"],[1,"container-subtitle","mb-2"],[3,"searchResult","tableColumns","itemName","entityType","newSelectEvent","newValidateVersionEvent","newDeleteVersionEvent"],["class","btn-first","type","button","mat-flat-button","",3,"disabled","click",4,"appHasrole"],["type","button","mat-flat-button","",1,"btn-first",3,"disabled","click"]],template:function(e,o){if(1&e&&(t.TgZ(0,"div",0)(1,"h2"),t._uU(2),t.qZA()(),t._UZ(3,"mat-divider",1),t.YNc(4,ae,47,25,"div",2),t.YNc(5,se,1,0,"ng-template",null,3,t.W1O)),2&e){const i=t.MAs(6);t.xp6(2),t.AsE("",o.useDetail.id," - ",o.useDetail.nombre,""),t.xp6(2),t.Q6J("ngIf",o.useDetail)("ngIfElse",i)}},directives:[v.d,g.O5,f._Y,f.JL,f.sg,A.M,B.KE,jt.Nt,f.Fj,f.JJ,f.u,B.TO,zt.Y,N.gM,Xt.IC,f.nD,S.lW,w.N,$.I,kt.L,_.O],pipes:[p.X$],styles:[".btn-first[_ngcontent-%COMP%]{background-color:#1b576d;color:#fff;margin:0 8px 8px 0;padding:0 28px;border-radius:unset}.btn-first[_ngcontent-%COMP%]:hover, .btn-first[_ngcontent-%COMP%]:focus, .btn-first[_ngcontent-%COMP%]:active, .btn-first.active[_ngcontent-%COMP%]{background-color:#0b475d;color:#fff}.btn-first.disabled[_ngcontent-%COMP%]:hover, .btn-first.disabled[_ngcontent-%COMP%]:focus, .btn-first.disabled[_ngcontent-%COMP%]:active, .btn-first.disabled.active[_ngcontent-%COMP%], .btn-first[disabled][_ngcontent-%COMP%]:hover, .btn-first[disabled][_ngcontent-%COMP%]:focus, .btn-first[disabled][_ngcontent-%COMP%]:active, .btn-first[disabled].active[_ngcontent-%COMP%], fieldset[disabled][_ngcontent-%COMP%]   .btn-first[_ngcontent-%COMP%]:hover, fieldset[disabled][_ngcontent-%COMP%]   .btn-first[_ngcontent-%COMP%]:focus, fieldset[disabled][_ngcontent-%COMP%]   .btn-first[_ngcontent-%COMP%]:active, fieldset[disabled][_ngcontent-%COMP%]   .btn-first.active[_ngcontent-%COMP%]{background-color:#1b576d;color:#fff}.btn-second[_ngcontent-%COMP%]{background-color:#1c7696;color:#fff;margin:0 8px 8px 0;padding:0 28px;border-radius:unset}.btn-second[_ngcontent-%COMP%]:hover, .btn-second[_ngcontent-%COMP%]:focus, .btn-second[_ngcontent-%COMP%]:active, .btn-second.active[_ngcontent-%COMP%]{background-color:#0c6686;border-color:#002f45;color:#fff}.btn-second.disabled[_ngcontent-%COMP%]:hover, .btn-second.disabled[_ngcontent-%COMP%]:focus, .btn-second.disabled[_ngcontent-%COMP%]:active, .btn-second.disabled.active[_ngcontent-%COMP%], .btn-second[disabled][_ngcontent-%COMP%]:hover, .btn-second[disabled][_ngcontent-%COMP%]:focus, .btn-second[disabled][_ngcontent-%COMP%]:active, .btn-second[disabled].active[_ngcontent-%COMP%], fieldset[disabled][_ngcontent-%COMP%]   .btn-second[_ngcontent-%COMP%]:hover, fieldset[disabled][_ngcontent-%COMP%]   .btn-second[_ngcontent-%COMP%]:focus, fieldset[disabled][_ngcontent-%COMP%]   .btn-second[_ngcontent-%COMP%]:active, fieldset[disabled][_ngcontent-%COMP%]   .btn-second.active[_ngcontent-%COMP%]{background-color:#1c7696;color:#fff}"]}),n})();function le(n,a){if(1&n&&(t.TgZ(0,"div"),t._UZ(1,"app-use-technical-no-profile-form",7),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("useDetail",e.otherUse)("entityName",e.entityName)("entityType",e.entityType)("isProfile",!1)}}function ce(n,a){if(1&n&&(t.TgZ(0,"div"),t._UZ(1,"app-use-technical-profile-form",8),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("useDetail",e.otherUse)("entityName",e.entityName)("entityType",e.entityType)}}function de(n,a){if(1&n&&(t.TgZ(0,"div"),t._UZ(1,"app-use-technical-extraction-form",9),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("useDetail",e.otherUse)("entityName",e.entityName)("isProfile",!1)("entityType",e.entityType)}}function pe(n,a){if(1&n&&(t.TgZ(0,"div"),t._UZ(1,"app-use-technical-extraction-form",9),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("useDetail",e.otherUse)("entityName",e.entityName)("isProfile",!0)("entityType",e.entityType)}}function me(n,a){if(1&n&&(t.TgZ(0,"div"),t._UZ(1,"app-use-technical-concesional-info-form",9),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("useDetail",e.otherUse)("entityName",e.entityName)("isProfile",!1)("entityType",e.entityType)}}function ue(n,a){if(1&n&&(t.TgZ(0,"div"),t._UZ(1,"app-use-technical-concesional-info-form",9),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("useDetail",e.otherUse)("entityName",e.entityName)("isProfile",!0)("entityType",e.entityType)}}function ge(n,a){1&n&&(t.TgZ(0,"label",12),t.ALo(1,"translate"),t._uU(2),t.ALo(3,"translate"),t.qZA()),2&n&&(t.s9C("matTooltip",t.lcZ(1,2,"useCommon.tltipPestanaVolumenes")),t.xp6(2),t.hij(" ",t.lcZ(3,4,"pestanas.volumenCompatible")," "))}function he(n,a){if(1&n&&t._UZ(0,"app-volumes",9),2&n){const e=t.oxw(3);t.Q6J("useDetail",e.otherUse)("entityName",e.entityName)("isProfile",!0)("entityType",e.entityType)}}function fe(n,a){1&n&&(t.TgZ(0,"mat-tab",3),t.ALo(1,"translate"),t.YNc(2,ge,4,6,"ng-template",10),t.YNc(3,he,1,4,"ng-template",11),t.qZA()),2&n&&t.s9C("label",t.lcZ(1,1,"pestanas.volumenCompatible"))}const b=function(){return["4","2","7"]};function be(n,a){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"mat-tab-group",2),t.NdJ("selectedTabChange",function(i){return t.CHM(e),t.oxw().tabChanged(i)}),t.TgZ(2,"mat-tab",3),t.ALo(3,"translate"),t.YNc(4,le,2,4,"div",4),t.YNc(5,ce,2,3,"div",5),t.qZA(),t.TgZ(6,"mat-tab",3),t.ALo(7,"translate"),t.YNc(8,de,2,4,"div",4),t.YNc(9,pe,2,4,"div",5),t.qZA(),t.TgZ(10,"mat-tab",3),t.ALo(11,"translate"),t.YNc(12,me,2,4,"div",4),t.YNc(13,ue,2,4,"div",5),t.qZA(),t.YNc(14,fe,4,3,"mat-tab",6),t.qZA(),t.BQk()}if(2&n){const e=t.oxw();
1t.xp6(1),t.Q6J("selectedIndex",e.selectedTab),t.xp6(1),t.s9C("label",t.lcZ(3,11,"pestanas.datosGenerales")),t.xp6(2),t.Q6J("appNothasrole",t.DdM(17,b)),t.xp6(1),t.Q6J("appHasrole",t.DdM(18,b)),t.xp6(1),t.s9C("label",t.lcZ(7,13,"pestanas.captaciones")),t.xp6(2),t.Q6J("appNothasrole",t.DdM(19,b)),t.xp6(1),t.Q6J("appHasrole",t.DdM(20,b)),t.xp6(1),t.s9C("label",t.lcZ(11,15,"pestanas.infoConcesional")),t.xp6(2),t.Q6J("appNothasrole",t.DdM(21,b)),t.xp6(1),t.Q6J("appHasrole",t.DdM(22,b)),t.xp6(1),t.Q6J("appHasrole",t.DdM(23,b))}}function ve(n,a){1&n&&t._UZ(0,"app-spinner")}const _e=[{path:"",data:{breadcrumb:"bCOtherUses"},component:K,children:[{path:"",data:{breadcrumb:"null"},redirectTo:"data",pathMatch:"full"},{path:"data",data:{breadcrumb:"bCData"},component:tt},{path:"search",data:{breadcrumb:"bCBusInf"},component:et,children:[{path:"",data:{breadcrumb:"null"},component:mt},{path:"general/:gid",data:{breadcrumb:"bCFichaGral"},component:Ut},{path:"technical/:gid",data:{breadcrumb:"bCFichaTec"},component:(()=>{class n{constructor(e,o,i,r){this.route=e,this.entityMenuService=o,this.globalUseService=i,this.selectedTabService=r,this.selectedTab=0,this.numRed=c.C.numRed,this.coordinates=[],this.stop$=new M.x,this.entityType=c.C.tipoEntidad.otrosUsos;let l=this.route.snapshot.paramMap.get("gid");null!=l&&(this.entityMenuService.submenuChange(!0),this.entityMenuService.gidEntitySubject$.next(l),this.globalUseService.getById(Number(l),c.C.tiposUsosComun.AGROPECUARIOS_AGRARIOS).subscribe(d=>{this.otherUse=d,this.entityName=c.C.otherUseEntity}))}ngOnInit(){this.selectedTabService.tabIndexSubject$.pipe((0,P.R)(this.stop$)).subscribe(e=>{this.selectedTab=e})}tabChanged(e){this.selectedTabService.changeTab(e.index)}addCoordinates(e){this.coordinates=e}ngOnDestroy(){this.stop$.next(!0)}resetTab(e){e&&(this.coordinates=[])}resetTabEdit(e){}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(u.gz),t.Y36(Z.$),t.Y36(x.a),t.Y36(O.O))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-technical-data"]],decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["loading",""],[3,"selectedIndex","selectedTabChange"],[3,"label"],[4,"appNothasrole"],[4,"appHasrole"],[3,"label",4,"appHasrole"],[3,"useDetail","entityName","entityType","isProfile"],[3,"useDetail","entityName","entityType"],[3,"useDetail","entityName","isProfile","entityType"],["mat-tab-label",""],["matTabContent",""],["matTooltipPosition","after","matTooltipClass","custom-tooltip",1,"cp",3,"matTooltip"]],template:function(e,o){if(1&e&&(t.YNc(0,be,15,24,"ng-container",0),t.YNc(1,ve,1,0,"ng-template",null,1,t.W1O)),2&e){const i=t.MAs(2);t.Q6J("ngIf",o.otherUse)("ngIfElse",i)}},directives:[g.O5,y.SP,y.uX,Qt.b,$t.d,$.I,Gt.y,Ht.K,Bt.B,y.uD,N.gM,y.Vc,re,_.O],pipes:[p.X$],styles:[""]}),n})()},{path:"fieldsHistory/:tab",data:{breadcrumb:"bCHist"},component:wt},{path:"fieldsVersion/:gid",data:{breadcrumb:"bCVers"},component:R},{path:"fieldsVersion/:gid/:tab",data:{breadcrumb:"bCVers"},component:R},{path:"report",data:{breadcrumb:"bCInf"},component:Rt}]}]}];let Ce=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[u.Bz.forChild(_e)],u.Bz]}),n})();function q(n){return new z.w(n,"./assets/i18n/otherUses/",".json")}let xe=(()=>{class n{constructor(){}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({providers:[],imports:[[j.m,Ce,p.aw.forChild({defaultLanguage:c.C.defaultLanguage,loader:{provide:p.Zw,useFactory:q,deps:[X.eN]},isolate:!1,extend:!0})]]}),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.