PageSourceSearch

https://mirame.chduero.es/chduero/1750.67c65dd2d1f4e2c8.js

js chduero.es collected 2026-09-24 18:09:26 UTC 25,031 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkchd_mirame_web=self.webpackChunkchd_mirame_web||[]).push([[1750],{319:(A,f,o)=>{o.d(f,{S:()=>a});class a{constructor(p,P,O,t){this.pageNumber=p,this.pageSize=P,this.sortField=O,this.sortDirection=t}}},2215:(A,f,o)=>{o.d(f,{K:()=>a});class a{constructor(p,P){this.elementos=p,this.idFoto=P}}},42:(A,f,o)=>{o.d(f,{P:()=>J});var a=o(5e3),s=o(7579),p=o(2722),P=o(3179),O=o(8825),t=o(4209),C=o(3075),T=o(60),Z=o(422),m=o(9783),E=o(4623),_=o(508),h=o(7278),g=o(4834),v=o(7322),L=o(8833),S=o(6856),B=o(4533),F=o(5397),R=o(4894);function y(d,D){1&d&&(a.TgZ(0,"div",12)(1,"h2"),a._uU(2),a.ALo(3,"translate"),a.qZA()()),2&d&&(a.xp6(2),a.Oqu(a.lcZ(3,1,"fotosRelacionadas.metadatos.titulo")))}function b(d,D){if(1&d&&(a.ynx(0),a.TgZ(1,"div",5)(2,"p-fieldset",6),a.YNc(3,y,4,3,"ng-template",7),a.TgZ(4,"mat-list")(5,"mat-list-item",8)(6,"div",9)(7,"span",10),a._uU(8),a.ALo(9,"translate"),a.qZA(),a.TgZ(10,"span",11),a._uU(11),a.qZA()()(),a.TgZ(12,"mat-list-item",8)(13,"div",9)(14,"span",10),a._uU(15),a.ALo(16,"translate"),a.qZA(),a.TgZ(17,"span",11),a._uU(18),a.ALo(19,"date"),a.qZA()()(),a.TgZ(20,"mat-list-item",8)(21,"div",9)(22,"span",10),a._uU(23),a.ALo(24,"translate"),a.qZA(),a.TgZ(25,"span",11),a._uU(26),a.ALo(27,"date"),a.qZA()()(),a.TgZ(28,"mat-list-item",8)(29,"div",9)(30,"span",10),a._uU(31),a.ALo(32,"translate"),a.qZA(),a.TgZ(33,"span",11),a._uU(34),a.qZA()()()()()(),a.BQk()),2&d){const r=a.oxw(2);a.xp6(8),a.Oqu(a.lcZ(9,8,"fotosRelacionadas.metadatos.subidaPor")),a.xp6(3),a.Oqu(r.metadata.usuarioSubida),a.xp6(4),a.Oqu(a.lcZ(16,10,"fotosRelacionadas.metadatos.fechaInsercion")),a.xp6(3),a.Oqu(a.xi3(19,12,r.metadata.fechaInsercion,r.dateFormat)),a.xp6(5),a.Oqu(a.lcZ(24,15,"fotosRelacionadas.metadatos.fechaToma")),a.xp6(3),a.Oqu(a.xi3(27,17,r.metadata.fechaToma,r.dateFormat)),a.xp6(5),a.Oqu(a.lcZ(32,20,"fotosRelacionadas.metadatos.comentarios")),a.xp6(3),a.Oqu(r.metadata.comentarios)}}function U(d,D){1&d&&(a.TgZ(0,"mat-error"),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&d&&(a.xp6(1),a.Oqu(a.lcZ(2,1,"validacionForm.formatoFecha")))}function w(d,D){if(1&d&&(a._UZ(0,"mat-divider",13),a.TgZ(1,"mat-list")(2,"div",3)(3,"div",14)(4,"mat-list-item",8)(5,"div",9)(6,"span",10),a._uU(7),a.ALo(8,"translate"),a.qZA(),a.TgZ(9,"span",11),a._uU(10),a.qZA()()()(),a.TgZ(11,"div",14)(12,"mat-list-item",8)(13,"div",9)(14,"span",10),a._uU(15),a.ALo(16,"translate"),a.qZA(),a.TgZ(17,"span",11),a._uU(18),a.ALo(19,"date"),a.qZA()()()()()(),a.TgZ(20,"form",15,16)(22,"div",17)(23,"div",18)(24,"span",19),a._uU(25),a.ALo(26,"translate"),a.qZA()(),a.TgZ(27,"div",20)(28,"mat-form-field",21),a._UZ(29,"input",22)(30,"mat-datepicker-toggle",23)(31,"mat-datepicker",null,24),a.YNc(33,U,3,3,"mat-error",25),a.qZA()()(),a.TgZ(34,"div",26)(35,"div",18)(36,"span",27),a._uU(37),a.ALo(38,"translate"),a.qZA()(),a.TgZ(39,"div",28)(40,"mat-form-field",29),a._UZ(41,"textarea",30,31),a.qZA()()()()),2&d){const r=a.MAs(32),u=a.oxw(2);let I;a.xp6(7),a.Oqu(a.lcZ(8,11,"fotosRelacionadas.metadatos.subidaPor")),a.xp6(3),a.Oqu(u.metadata.usuarioSubida),a.xp6(5),a.Oqu(a.lcZ(16,13,"fotosRelacionadas.metadatos.fechaInsercion")),a.xp6(3),a.Oqu(a.xi3(19,15,u.metadata.fechaInsercion,u.dateFormat)),a.xp6(2),a.Q6J("formGroup",u.metadataGroup),a.xp6(5),a.Oqu(a.lcZ(26,18,"fotosRelacionadas.metadatos.fechaToma")),a.xp6(4),a.Q6J("matDatepicker",r)("errorStateMatcher",u.matcher),a.xp6(1),a.Q6J("for",r),a.xp6(3),a.Q6J("ngIf",null==(I=u.metadataGroup.get("fechaToma"))?null:I.hasError),a.xp6(4),a.Oqu(a.lcZ(38,20,"fotosRelacionadas.metadatos.comentarios"))}}function N(d,D){if(1&d&&(a.ynx(0),a.TgZ(1,"div",2)(2,"div",3),a.YNc(3,b,35,22,"ng-container",0),a.YNc(4,w,43,22,"ng-template",null,4,a.W1O),a.qZA()(),a.BQk()),2&d){const r=a.MAs(5),u=a.oxw();a.xp6(3),a.Q6J("ngIf",!u.showForm)("ngIfElse",r)}}function W(d,D){1&d&&a._UZ(0,"app-spinner")}let J=(()=>{class d{constructor(r,u){this.globalService=r,this.fb=u,this.showForm=!1,this.newMetadataEditEvent=new a.vpe,this.matcher=new O.o,this.stop$=new s.x,this.dateFormat=P.C.dateFormat}ngOnInit(){}createForm(){this.metadataGroup=this.fb.group({fechaToma:this.fb.control({value:this.metadata.fechaToma,disabled:!1}),comentarios:this.fb.control({value:this.metadata.comentarios,disabled:!1})}),this.metadataGroup.valueChanges.subscribe(r=>{this.metadataGroup.invalid||(r.id=this.dataId,this.newMetadataEditEvent.emit(r))})}ngOnChanges(r){void 0!==this.dataId&&this.globalService.getMetadatosFoto(r.dataId.currentValue).pipe((0,p.R)(this.stop$)).subscribe(u=>{this.metadata=u,this.createForm()})}ngOnDestroy(){this.stop$.next(!0)}}return d.\u0275fac=function(r){return new(r||d)(a.Y36(t.U),a.Y36(C.qu))},d.\u0275cmp=a.Xpm({type:d,selectors:[["app-photo-metadata"]],inputs:{dataId:"dataId",showForm:"show
1Form"},outputs:{newMetadataEditEvent:"newMetadataEditEvent"},features:[a.TTD],decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["loading",""],[1,"container"],[1,"row"],["detailForm",""],[1,"d-flex","justify-content-center"],[1,"metadataInfo"],["pTemplate","header"],[1,"bar-gradient","h-auto","py-2"],["matLine",""],["appBold","",1,"float-start"],[1,"float-end","text-wrap"],[1,"container-title","metadataTitle"],[1,"mb-2"],[1,"col","col-xl-6"],[3,"formGroup"],["metdatadaForm","ngForm"],[1,"row","ps-1","mt-2"],[1,"col","col-xl-2","labelForm"],["appBold","",1,"fs-6","mt-2"],[1,"col","col-xl-4"],["appearance","standard",1,"width-100","dateInput"],["matInput","","type","text","name","fechaToma","formControlName","fechaToma",3,"matDatepicker","errorStateMatcher"],["matSuffix","",3,"for"],["picker",""],[4,"ngIf"],[1,"row","ps-1"],["appBold","",1,"fs-6"],[1,"col","col-xl-10"],["appearance","standard",1,"width-100"],["matInput","","cdkTextareaAutosize","","cdkAutosizeMinRows","1","cdkAutosizeMaxRows","5","name","comentarios","formControlName","comentarios"],["autosize","cdkTextareaAutosize"]],template:function(r,u){if(1&r&&(a.YNc(0,N,6,2,"ng-container",0),a.YNc(1,W,1,0,"ng-template",null,1,a.W1O)),2&r){const I=a.MAs(2);a.Q6J("ngIf",u.metadata)("ngIfElse",I)}},directives:[T.O5,Z.p,m.jx,E.i$,E.Tg,_.X2,h.M,g.d,C._Y,C.JL,C.sg,v.KE,L.Nt,C.Fj,S.hl,C.JJ,C.u,S.nW,v.R9,S.Mq,v.TO,B.IC,F.O],pipes:[R.X$,T.uU],styles:[".metadataTitle[_ngcontent-%COMP%]{display:flex;flex-direction:row}.metadataInfo[_ngcontent-%COMP%]{width:100%}.comentarios[_ngcontent-%COMP%]{padding-top:16px;padding-bottom:16px;height:auto}"]}),d})()},2600:(A,f,o)=>{o.d(f,{N:()=>E});var a=o(3179),s=o(5e3),p=o(8914),P=o(9547),O=o(3932),t=o(7238),C=o(60),T=o(4894);const Z=function(_){return[_]},m=function(_,h){return{"btn-icon":_,"btn-icon-table":h}};let E=(()=>{class _{constructor(g,v){this.configService=g,this.temporaryStorageService=v,this.tableStyle=!1,this.target=""}ngOnInit(){if(!this.queryParams){let g=this.configService.getFeatureTypeConfiguration(this.entityName);this.layersIds=g?g.additionalLayersIdsToLoad.join(a.C.concatChar):"",this.baseLayerId=g?g.baseLayerId:0,this.queryParams={featureId:this.entityId?this.entityId.toString():"",showLayers:this.layersIds,baseLayer:this.baseLayerId.toString()},this.target="_blank"}}createLocalStorageItem(){this.temporaryStorageService.get("auth").then(g=>{null!=g&&localStorage.setItem("auth",g)})}}return _.\u0275fac=function(g){return new(g||_)(s.Y36(p.E),s.Y36(P.x))},_.\u0275cmp=s.Xpm({type:_,selectors:[["app-map-icon"]],inputs:{entityName:"entityName",entityId:"entityId",tableStyle:"tableStyle",queryParams:"queryParams",target:"target"},decls:3,vars:12,consts:[["matTooltipPosition","below","matTooltipClass","custom-tooltip",3,"routerLink","queryParams","target","matTooltip","click"],[1,"fa-solid","fa-map-location-dot",3,"ngClass"]],template:function(g,v){1&g&&(s.TgZ(0,"a",0),s.NdJ("click",function(){return v.createLocalStorageItem()}),s.ALo(1,"translate"),s._UZ(2,"i",1),s.qZA()),2&g&&(s.s9C("matTooltip",s.lcZ(1,5,"tootips.tltipVerMapa")),s.Q6J("routerLink",s.VKq(7,Z,"/viewer/"+v.entityName))("queryParams",v.queryParams)("target",v.target),s.xp6(2),s.Q6J("ngClass",s.WLB(9,m,!v.tableStyle,v.tableStyle)))},directives:[O.yS,t.gM,C.mk],pipes:[T.X$],styles:[""]}),_})()},9693:(A,f,o)=>{o.d(f,{t:()=>Z});var a=o(5e3),s=o(60),p=o(5245),P=o(7238),O=o(4894);function t(m,E){1&m&&(a.TgZ(0,"mat-icon",2),a.ALo(1,"translate"),a._uU(2,"sync"),a.qZA()),2&m&&a.s9C("matTooltip",a.lcZ(1,1,"tootips.tltipEditado"))}function C(m,E){1&m&&(a.TgZ(0,"mat-icon",2),a.ALo(1,"translate"),a._uU(2,"fiber_new"),a.qZA()),2&m&&a.s9C("matTooltip",a.lcZ(1,1,"tootips.tltipNuevo"))}function T(m,E){1&m&&(a.TgZ(0,"mat-icon",2),a.ALo(1,"translate"),a._uU(2,"delete_forever"),a.qZA()),2&m&&a.s9C("matTooltip",a.lcZ(1,1,"tootips.tltipEliminado"))}let Z=(()=>{class m{constructor(){}ngOnInit(){}}return m.\u0275fac=function(_){return new(_||m)},m.\u0275cmp=a.Xpm({type:m,selectors:[["app-operacion-icon"]],inputs:{operacion:"operacion"},decls:4,vars:4,consts:[[3,"ngSwitch"],["matTooltipPosition","below","matTooltipClass","custom-tooltip",3,"matTooltip",4,"ngSwitchCase"],["matTooltipPosition","below","matTooltipClass","custom-tooltip",3,"matTooltip"]],template:function(_,h){1&_&&(a.TgZ(0,"div",0),a.YNc(1,t,3,3,"mat-icon",1),a.YNc(2,C,3,3,"mat-icon",1),a.YNc(3,T,3,3,"mat-icon",1),a.qZA()),2&_&&(a.Q6J("ngSwitch",h.operacion),a.xp6(1),a.Q6J("ngSwitchCase","MODIFICADO"),a.xp6(1),a.Q6J("ngSwitchCase","A\xd1ADIDO"),a.xp6(1),a.Q6J("ngSwitchCase","ELIMINADO"))},directives:[s.RF,s.n9,p.Hw,P.gM],pipes:[O.X$],styles:[""]}),m})()},8825:(A,f,o)=>{o.d(f,{o:()=>a});class a{isErrorState(p,P){return!!(p&&p.invalid&&(p.dirty||p.touched||P&&P.submitted))}}},722:(A,f,o)=>{o.r(f),o.d(f,{PhotoValidationModule:()=>k});var a=o(4486),s=o(3932),p=o(7),P=o(2215),O=o(3179),t=o(5e3),C=o(4209),T=o(60),Z=o(3468),m=o(4894),E=o(8914),_=o(4834),h=o(9224),g=o(5245),v=o(7278),L=o(42),S=o(2546),B=o(7423),F=o(2600),R=o(6087),y=o(4847),b=o(2075),U=o(319),w=o(5664),N=o(5899),W=o(7238);function J(n,c){1&n&&t._UZ(0,"mat-progress-bar",7)}function d(n,c){if(1&n&&(t.TgZ(0,"th",13),t._uU(1),t.qZA()),2&n){const e=t.oxw(2).$implicit;t.xp6(1),t.Oqu(e.header)}}function D(n,c){1&n&&(t.ynx(0),t.YNc(1,d,2,1,"th",12),t.BQk())}function r(n,c){if(1&n&&(t.TgZ(0,"th",15),t._uU(1),t.qZA()),2&n){const e=t.oxw(2).$implicit;t.xp6(1),t.Oqu(e.header)}}function u(n,c){1&n&&t.YNc(0,r,2,1,"th",14)}function I(n,c){if(1&n&&(t.TgZ(0,"td",18),t._uU(1),t.qZA()),2&n){const e=t.oxw().$implicit,i=t.oxw().$implicit;t.xp6(1),t.Oqu(i.cell(e))}}function V(n,c){if(1&n){const e=t.EpF();t.TgZ(0,"td",19)(1,"a",20),t.NdJ("click",function(){t.CHM(e);const l=t.oxw().$implicit;return t.oxw(2).sendEntityId(l.id)}),t.TgZ(2,"mat-icon",21),t.ALo(3,"translate"),t._uU(4,"search"),t.qZA()()()}2&n&&(t.xp6(2),t.s9C("matTooltip",t.lcZ(3,1,"tootips.verDetalle")))}function K(n,c){if(1&n&&(t.ynx(0),t.YNc(1,I,2,1,"td",16),t.YNc(2,V,5,3,"ng-template",null,17,t.W1O),t.BQk()),2&n){const e=t.MAs(3),i=t.oxw().$implicit;t.xp6(1),t.Q6J("ngIf","detalle"!==i.columnDef)("ngIfElse",e)}}function Q(n,c){if(1&n&&(t.ynx(0,8),t.YNc(1,D,2,0,"ng-container",9),t.YNc(2,u,1,0,"ng-template",null,10,t.W1O),t.YNc(4,K,4,2,"ng-container",11),t.BQk()),2&n){const e=c.$implicit,i=t.MAs(3);t.Q6J("matColumnDef",e.columnDef),t.xp6(1),t.Q6J("ngIf","detalle"!==e.columnDef)("ngIfElse",i)}}function Y(n,c){1&n&&t._UZ(0,"tr",22)}
1function $(n,c){1&n&&t._UZ(0,"tr",23)}let z=(()=>{class n{constructor(e){this._liveAnnouncer=e,this.tableColumns=[],this.changePageEvent=new t.vpe,this.newDetailEvent=new t.vpe,this.dataSource=new b.by,this.isLoading=!1,this.totalRows=0,this.pageSize=10,this.currentPage=0,this.pageSizeOptions=[5,10,20]}ngOnInit(){this.displayedColumns=this.tableColumns.map(e=>e.columnDef)}ngOnChanges(e){this.isLoading=!0,null!=this.searchResult&&null!=this.searchResult&&(setTimeout(()=>{var i;this.dataSource.data=null===(i=e.searchResult.currentValue)||void 0===i?void 0:i.data,this.isLoading=!1},500),setTimeout(()=>{this.searchResult.newSearch?this.toFirstPage():this.paginator.pageIndex=this.currentPage,this.paginator.length=this.searchResult.count,this.totalRows=this.searchResult.count},1e3))}ngAfterViewInit(){this.dataSource.paginator=this.paginator}announceSortChange(e){this.isLoading=!0,this.toFirstPage(),this._liveAnnouncer.announce(e.direction?`Sorted ${e.direction}ending`:"Sorting cleared"),this.sortField=e.active,this.sortDirection=e.direction;let i=new U.S(this.currentPage,this.pageSize,this.sortField,this.sortDirection);this.changePageEvent.emit(i)}pageChanged(e){this.isLoading=!0,this.pageSize=e.pageSize,this.currentPage=e.pageIndex;let i=new U.S(this.currentPage,this.pageSize,this.sortField,this.sortDirection);this.changePageEvent.emit(i)}toFirstPage(){this.paginator.firstPage(),this.currentPage=0}sendEntityId(e){this.newDetailEvent.emit(e)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(w.Kd))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-basic-detail-table-pag"]],viewQuery:function(e,i){if(1&e&&(t.Gf(y.YE,5),t.Gf(R.NW,5)),2&e){let l;t.iGM(l=t.CRH())&&(i.sort=l.first),t.iGM(l=t.CRH())&&(i.paginator=l.first)}},inputs:{searchResult:"searchResult",tableColumns:"tableColumns"},outputs:{changePageEvent:"changePageEvent",newDetailEvent:"newDetailEvent"},features:[t.TTD],decls:9,vars:12,consts:[["mode","indeterminate",4,"ngIf"],["mat-table","","matSort","",1,"mat-elevation-z1","width-100",3,"dataSource","matSortChange"],[3,"matColumnDef",4,"ngFor","ngForOf"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"length","pageIndex","pageSize","pageSizeOptions","page"],["paginator",""],["mode","indeterminate"],[3,"matColumnDef"],[4,"ngIf","ngIfElse"],["sinOdenacion",""],[4,"matCellDef"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-header-cell","","mat-sort-header",""],["mat-header-cell","",4,"matHeaderCellDef"],["mat-header-cell",""],["mat-cell","",4,"ngIf","ngIfElse"],["detail",""],["mat-cell",""],["mat-cell","",1,"td-icos"],[3,"click"],["matTooltipPosition","below","matTooltipClass","custom-tooltip",3,"matTooltip"],["mat-header-row",""],["mat-row",""]],template:function(e,i){1&e&&(t.TgZ(0,"div"),t.YNc(1,J,1,0,"mat-progress-bar",0),t.TgZ(2,"table",1),t.NdJ("matSortChange",function(x){return i.announceSortChange(x)}),t.YNc(3,Q,5,3,"ng-container",2),t.YNc(4,Y,1,0,"tr",3),t.YNc(5,$,1,0,"tr",4),t.qZA(),t.TgZ(6,"mat-paginator",5,6),t.NdJ("page",function(x){return i.pageChanged(x)}),t.ALo(8,"translate"),t.qZA()()),2&e&&(t.xp6(1),t.Q6J("ngIf",i.isLoading),t.xp6(1),t.Q6J("dataSource",i.dataSource),t.xp6(1),t.Q6J("ngForOf",i.tableColumns),t.xp6(1),t.Q6J("matHeaderRowDef",i.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",i.displayedColumns),t.xp6(1),t.Q6J("length",i.totalRows)("pageIndex",i.currentPage)("pageSize",i.pageSize)("pageSizeOptions",i.pageSizeOptions),t.uIk("aria-label",t.lcZ(8,10,"formBusqueda.ariaLblTabla")))}
1,directives:[T.O5,N.pW,b.BZ,y.YE,T.sg,b.w1,b.fO,b.ge,y.nU,b.Dz,b.ev,g.Hw,W.gM,b.as,b.XQ,b.nj,b.Gk,R.NW],pipes:[m.X$],styles:["table[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]{background-color:#1b576d;color:#fff;font-size:14px}table[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]:nth-child(2n){background-color:#f1f1f1}table[_ngcontent-%COMP%]   td.td-icos[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:#1b576d}table[_ngcontent-%COMP%]   td.td-icos[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{vertical-align:middle}th[_ngcontent-%COMP%], td[_ngcontent-%COMP%]{text-align:left;padding:2px}  table th .mat-checkbox-frame{border-color:#fff}.mat-cell[_ngcontent-%COMP%]{padding:2px 10px 2px 0}tr.mat-row[_ngcontent-%COMP%], tr.mat-footer-row[_ngcontent-%COMP%]{height:unset}tr.mat-header-row[_ngcontent-%COMP%]{height:46px}"]}),n})();function q(n,c){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"h3",7),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"app-version-table",19),t.NdJ("newSelectEvent",function(l){return t.CHM(e),t.oxw(2).addSelection(l)}),t.qZA(),t.BQk()}if(2&n){const e=c.ngIf,i=t.oxw(2);t.xp6(2),t.Oqu(t.lcZ(3,3,"validacionFotos.elemCercanos.titulo")),t.xp6(2),t.Q6J("searchResult",e)("tableColumns",i.tableRelatedElemConfiguration)}}function H(n,c){if(1&n){const e=t.EpF();t.TgZ(0,"div",1)(1,"div",2)(2,"h2"),t._uU(3),t.ALo(4,"translate"),t.qZA()(),t._UZ(5,"mat-divider",3),t.TgZ(6,"div",4)(7,"div",5)(8,"mat-card")(9,"mat-card-header")(10,"div",6)(11,"mat-icon"),t._uU(12,"photo"),t.qZA()(),t.TgZ(13,"mat-card-title")(14,"h3",7),t._uU(15),t.ALo(16,"translate"),t.qZA()(),t.TgZ(17,"mat-card-subtitle")(18,"div",2)(19,"h2"),t._uU(20),t.qZA()()()(),t._UZ(21,"img",8),t.TgZ(22,"mat-card-content"),t._UZ(23,"app-photo-metadata",9),t.qZA()()(),t.TgZ(24,"div",5),t.YNc(25,q,5,5,"ng-container",10),t.ALo(26,"async"),t.qZA()(),t.TgZ(27,"div",4)(28,"div",11)(29,"div",12)(30,"button",13),t.NdJ("click",function(){t.CHM(e);const l=t.oxw();return l.dismissPhoto(l.selectedPhoto.id)}),t._uU(31),t.ALo(32,"translate"),t.qZA(),t.TgZ(33,"button",14),t.NdJ("click",function(){t.CHM(e);const l=t.oxw();return l.validatePhoto(l.selectedPhoto.id)}),t._uU(34),t.ALo(35,"translate"),t.qZA(),t._UZ(36,"app-map-icon",15),t.qZA()()(),t.TgZ(37,"div",16)(38,"h3",7),t._uU(39),t.ALo(40,"translate"),t.qZA(),t.TgZ(41,"div",17)(42,"app-basic-detail-table-pag",18),t.NdJ("changePageEvent",function(l){return t.CHM(e),t.oxw().updatePage(l)})("newDetailEvent",function(l){return t.CHM(e),t.oxw().updatePhoto(l)}),t.qZA()()()()}if(2&n){const e=t.oxw();
1t.xp6(3),t.Oqu(t.lcZ(4,15,"validacionFotos.titulo")),t.xp6(12),t.Oqu(t.lcZ(16,17,"validacionFotos.tarjeta.titulo")),t.xp6(5),t.Oqu(e.selectedPhoto.id),t.xp6(1),t.hYB("src","./img/fotos/",e.selectedPhoto.id,".",e.extensionPhoto,"",t.LSH),t.s9C("alt",e.selectedPhoto.comentarios),t.xp6(2),t.Q6J("dataId",e.selectedPhoto.id),t.xp6(2),t.Q6J("ngIf",t.lcZ(26,19,e.relatedElements$)),t.xp6(6),t.Oqu(t.lcZ(32,21,"botones.descartarFoto")),t.xp6(3),t.Oqu(t.lcZ(35,23,"botones.validarFoto")),t.xp6(2),t.Q6J("entityName",e.entityName)("entityId",e.selectedPhoto.id),t.xp6(3),t.Oqu(t.lcZ(40,25,"validacionFotos.fotosPdteValidar.titulo")),t.xp6(3),t.Q6J("searchResult",e.valPendPhotos)("tableColumns",e.tablePendPhotosConfiguration)}}const G=[{path:"",data:{breadcrumb:"bCFotoVal",profiles:[O.C.perfilValidador],authRequired:!0},component:(()=>{class n{constructor(e,i,l,x,tt){this.globalService=e,this.viewportScroller=i,this.dialogModelService=l,this.translate=x,this.configService=tt,this.selectionCloseElements=[],this.entityName=O.C.photoEntity,this.extensionPhoto="jpg",this.tableRelatedElemConfiguration=[{columnDef:"seleccion",header:"",cell:M=>""},{columnDef:"codigo",header:this.translate.instant("tablas.tablaElemCercanos.codigo"),cell:M=>`${M.codigo}`},{columnDef:"tipo",header:this.translate.instant("tablas.tablaElemCercanos.tipo"),cell:M=>`${M.tipo}`},{columnDef:"nombre",header:this.translate.instant("tablas.tablaElemCercanos.nombre"),cell:M=>`${M.nombre}`}],this.tablePendPhotosConfiguration=[{columnDef:"detalle",header:"",cell:M=>""},{columnDef:"id",header:this.translate.instant("tablas.tablaFotosPdteValidar.codigo"),cell:M=>`${M.id}`},{columnDef:"fechaToma",header:this.translate.instant("tablas.tablaFotosPdteValidar.fechaToma"),cell:M=>`${M.fechaToma}`},{columnDef:"usuarioSubida",header:this.translate.instant("tablas.tablaFotosPdteValidar.autor"),cell:M=>`${M.usuarioSubida}`}],this.getValidatePendingPhotos()}ngOnInit(){}getValidatePendingPhotos(){this.globalService.getFotosPtesValidar().subscribe(e=>{this.valPendPhotos=e,this.valPendPhotos.newSearch=!0,this.selectedPhoto=this.valPendPhotos.data[0],this.getRelatedElements(this.selectedPhoto.id),this.selectedPhoto&&this.selectedPhoto.id&&this.globalService.getExtensionFoto(this.selectedPhoto.id).subscribe(i=>{this.extensionPhoto=i.body})})}getRelatedElements(e){this.relatedElements$=this.globalService.getElementosCercanos(e)}updatePage(e){this.globalService.getFotosPtesValidar(e.pageNumber.toString(),e.pageSize.toString(),e.sortDirection,e.sortField).subscribe(i=>{this.valPendPhotos=i,this.valPendPhotos.newSearch=!1})}updatePhoto(e){this.selectedPhoto=this.valPendPhotos.data.find(i=>i.id===e),this.getRelatedElements(e),e&&this.globalService.getExtensionFoto(e).subscribe(i=>{this.extensionPhoto=i.body}),this.viewportScroller.scrollToPosition([0,0])}dismissPhoto(e){this.dialogModelService.openConfirmDialog(this.translate.instant("dialogos.fotos.validacion.tituloDescartar"),`${this.translate.instant("dialogos.fotos.validacion.msgConfirmacionDescartar1")} ${e}. ${this.translate.instant("dialogos.fotos.validacion.msgConfirmacionDescartar2")}`).subscribe(i=>{i&&this.globalService.descartarFoto(e).subscribe(l=>{l?this.dialogModelService.openMessageDialog(this.translate.instant("dialogos.fotos.validacion.tituloDescartar"),this.translate.instant("dialogos.fotos.validacion.descartarCorrecto")).subscribe(x=>{this.getValidatePendingPhotos()}):this.dialogModelService.openMessageDialog(this.translate.instant("dialogos.fotos.validacion.tituloDescartar"),this.translate.instant("dialogos.fotos.validacion.descartarError"))})})}validatePhoto(e){if(this.selectionCloseElements.length>0){let i=new P.K(this.selectionCloseElements,e);this.globalService.agregarRelacionFoto(i).subscribe(l=>{200===l.status?this.dialogModelService.openMessageDialog(this.translate.instant("dialogos.fotos.validacion.tituloValidar"),this.translate.instant("dialogos.fotos.validacion.validarCorrecto")).subscribe(x=>{this.getValidatePendingPhotos()}):this.dialogModelService.openMessageDialog(this.translate.instant("dialogos.fotos.validacion.tituloValidar"),this.translate.instant("dialogos.fotos.validacion.validarError"))})}else this.dialogModelService.openMessageDialog(this.translate.instant("dialogos.fotos.validacion.tituloValidar"),this.translate.instant("dialogos.fotos.validacion.msgSeleccionElem"))}addSelection(e){this.selectionCloseElements=e}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(C.U),t.Y36(T.EM),t.Y36(Z.r),t.Y36(m.sK),t.Y36(E.E))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-photo-validation"]],decls:1,vars:1,consts:[["class","container",4,"ngIf"],[1,"container"],[1,"container-title"],[1,"mb-2"],[1,"row"],[1,"col-6"],["mat-card-avatar",""],["appBold",""],["mat-card-image","",3,"src","alt"],[3,"dataId"],[4,"ngIf"],[1,"col-md-12"],[1,"float-end"],["type","button","mat-flat-button","",1,"btn-third",3,"click"],["type","button","mat-flat-button","",1,"btn-first",3,"click"],[3,"entityName","entityId"],[1,"row","mt-4"],[1,"col"],[3,"searchResult","tableColumns","changePageEvent","newDetailEvent"],[3,"searchResult","tableColumns","newSelectEvent"]],template:function(e,i){1&e&&t.YNc(0,H,43,27,"div",0),2&e&&t.Q6J("ngIf",i.selectedPhoto)},directives:[T.O5,_.d,h.a8,h.dk,h.kc,g.Hw,h.n5,v.M,h.$j,h.G2,h.dn,L.P,S.L,B.lW,F.N,z],pipes:[m.X$,T.Ov],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-third[_ngcontent-%COMP%]{background-color:#545454;color:#fff;margin:0 8px 8px 0;padding:0 28px;border-radius:unset}.btn-third[_ngcontent-%COMP%]:hover, .btn-third[_ngcontent-%COMP%]:focus, .btn-third[_ngcontent-%COMP%]:active, .btn-third.active[_ngcontent-%COMP%]{background-color:#444;color:#fff}.btn-third.disabled[_ngcontent-%COMP%]:hover, .btn-third.disabled[_ngcontent-%COMP%]:focus, .btn-third.disabled[_ngcontent-%COMP%]:active, .btn-third.disabled.active[_ngcontent-%COMP%], .btn-third[disabled][_ngcontent-%COMP%]:hover, .btn-third[disabled][_ngcontent-%COMP%]:focus, .btn-third[disabled][_ngcontent-%COMP%]:active, .btn-third[disabled].active[_ngcontent-%COMP%], fieldset[disabled][_ngcontent-%COMP%]   .btn-third[_ngcontent-%COMP%]:hover, fieldset[disabled][_ngcontent-%COMP%]   .btn-third[_ngcontent-%COMP%]:focus, fieldset[disabled][_ngcontent-%COMP%]   .btn-third[_ngcontent-%COMP%]:active, fieldset[disabled][_ngcontent-%COMP%]   .btn-third.active[_ngcontent-%COMP%]{background-color:#545454;color:#fff}"]}),n})(),canActivate:[p.j]}];let X=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[s.Bz.forChild(G)],s.Bz]}),n})(),k=(()=>{class n{constructor(){}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({providers:[],imports:[[a.m,X]]}),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.