1import"./chunk-YNTJ3ZNZ.js";import{a as W}from"./chunk-G3QVBGRO.js";import"./chunk-D52RLEYG.js";import"./chunk-3RK6DDJD.js";import{b as j}from"./chunk-QS4NKJVL.js";import{f as T}from"./chunk-HHIIAM7F.js";import"./chunk-JYX675GQ.js";import{b as N}from"./chunk-5ZNE2FRE.js";import"./chunk-ITB7XVJW.js";import"./chunk-GH4HQ4UM.js";import"./chunk-VLUGWFAX.js";import"./chunk-RFCKCFAV.js";import{b as D,c as R}from"./chunk-CEYGSITY.js";import"./chunk-TADLPHOR.js";import"./chunk-UH5ULZE3.js";import"./chunk-3SZWAO3P.js";import"./chunk-J7J4GNHG.js";import"./chunk-25U5FXAZ.js";import"./chunk-H6RLFBCZ.js";import"./chunk-2LU4APOT.js";import"./chunk-LE74A4IQ.js";import"./chunk-XA5MBOS7.js";import"./chunk-VT4SLOZ3.js";import{e as M,g as w}from"./chunk-UKI3P5XO.js";import"./chunk-VGXSXI5J.js";import"./chunk-XFEOO4TY.js";import"./chunk-PF35LDE3.js";import"./chunk-VBPJ5DRZ.js";import"./chunk-M7IIYPYL.js";import"./chunk-7UJTMH4R.js";import{Y as P}from"./chunk-IQWFVERN.js";import"./chunk-BKF7GJNS.js";import{L as F,M as A,c as y,e as S,g as B,m as I,n as k,r as E}from"./chunk-62Q3FVOL.js";import{m as C}from"./chunk-KJY6N5PL.js";import{Ec as v,Fb as g,Fc as x,Gc as _,Nb as c,Yb as t,Zb as r,_b as m,hc as f,ic as h,lb as d,qb as s,wc as n,xc as b,zb as u}from"./chunk-JMQPEIEX.js";import"./chunk-EU2KAMEK.js";import"./chunk-J4XOFOAH.js";function V(i,q){if(i&1&&(t(0,"div",12),n(1),r()),i&2){let o=h();d(),b(o.message)}}var Z=(()=>{class i{constructor(o,a,e){this.snackBar=o,this.route=a,this.router=e,this.nota_parere=new I("",[S.required]),this.esito_parere="positivo",this.route.params.subscribe(p=>{this.idpaese=p.idpaese,this.idbando=p.idbando,this.idpratica=p.idpratica})}create(){this.message=null;var o={cretaed_at:Date.now(),esito_parere:this.esito_parere,nota_parere:this.nota_parere.value};this.message="Modifiche parere eseguite con successo.",P.database().ref(this.idpaese+"/buonospesa-pratiche/"+this.idbando+"/"+this.idpratica).update({parere:o}),this.snackBar.openFromComponent(W,{duration:4500,data:{message:this.message}}),this.router.navigate(["buonospesa/admin-pratica-viewall/"+this.idbando])}static{this.\u0275fac=function(a){return new(a||i)(s(N),s(M),s(w))}}static{this.\u0275cmp=u({type:i,selectors:[["app-admin-pratica-parere-bs"]],decls:19,vars:3,consts:[[1,"text-center",2,"background","#f5f5f5","overflow","hidden","height","100%"],[1,"scroll-bar",2,"height","100%","overflow-y","scroll","padding-bottom","40px"],[1,"font-title",2,"margin-top","20px","width","100%","margin-bottom","20px","text-align","center"],["","50",1,"box-shadow",2,"min-width","400px","background-color","white","padding-left","20px","padding-right","20px","margin-bottom","20px","padding-top","20px","padding-bottom","20px","margin-right","10px","margin-left","10px","border-radius","5px"],[1,"example-radio-group",3,"ngModelChange","ngModel"],["value","positivo",1,"example-radio-button"],["value","negativo",1,"example-radio-button",2,"width","100%"],[2,"width","100%","margin-bottom","10px"],["matInput","","placeholder","Nota","rows","6",3,"formControl"],["style","margin-top: 20px; color: #cd181f;",4,"ngIf"],[1,"text-center"],[1,"btn","btn-primary","btn-xs",3,"click"],[2,"margin-top","20px","color","#cd181f"]],template:function(a,e){a&1&&(t(0,"section",0)(1,"div",1)(2,"div",2),n(3,"Parere pratica "),r(),t(4,"div",3)(5,"mat-radio-group",4),_("ngModelChange",function(l){return x(e.esito_parere,l)||(e.esito_parere=l),l}),t(6,"mat-radio-button",5),n(7," Esito positivo "),r(),m(8,"br"),t(9,"mat-radio-button",6),n(10," Esito negativo "),r()(),m(11,"br")(12,"br"),t(13,"mat-form-field",7),m(14,"textarea",8),r(),g(15,V,2,1,"div",9),t(16,"div",10)(17,"button",11),f("click",function(){return e.create()}),n(18," Invia "),r()()()()()),a&2&&(d(5),v("ngModel",e.esito_parere),d(9),c("formControl",e.nota_parere),d(),c("ngIf",e.message))},dependencies:[D,A,y,B,E,F,k,R,T,j,C],encapsulation:2})}}return i})();export{Z as AdminPraticaParereBsComponent};
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.