1"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[8461],{61945:(F,p,n)=>{n.d(p,{s:()=>m});var g=n(53358),f=n(4859),x=n(65938),h=n(97392),l=n(94650);let m=(()=>{const u=class{};let D=u;return u.\u0275fac=function(_){return new(_||u)},u.\u0275mod=l.oAB({type:u}),u.\u0275inj=l.cJS({imports:[g.m,x.Is,f.ot,h.Ps]}),D})()},64694:(F,p,n)=>{n.d(p,{S:()=>R});var g=n(53358),f=n(4859),x=n(65938),h=n(44850),l=n(97392),m=n(96338),D=n(98674),u=n(94650);let R=(()=>{const _=class{};let C=_;return _.\u0275fac=function(O){return new(O||_)},_.\u0275mod=u.oAB({type:_}),_.\u0275inj=u.cJS({imports:[g.m,x.Is,m.ie,h.t,f.ot,l.Ps,D.z]}),C})()},98461:(F,p,n)=>{n.r(p),n.d(p,{UploadDocumentoICRFModule:()=>Rt});var g=n(53358),f=n(44476),x=n(97582),h=n(2231),l=n(30671),m=n(37340),D=n(19585),u=n(93612),R=n(72986),C=n(27221),_=n(40537),y=n(92340),t=n(94650),O=n(74670),Q=n(73213),M=n(42684),z=n(36700),Z=n(36895),v=n(1576),L=n(55829),d=n(24006),Y=n(4543),K=n(32233),A=n(59549),B=n(84385),k=n(3238),I=n(99602),N=n(284);function W(e,o){if(1&e&&(t.TgZ(0,"mat-option",17),t._uU(1),t.qZA()),2&e){const a=o.$implicit;t.Q6J("value",a.id),t.xp6(1),t.hij(" ",a.descrizione," ")}}let H=(()=>{const o=class extends h.P{constructor(i,c,r,s){super(),this.firmaService=i,this.messageService=c,this.formBuilder=r,this.mediaObserver=s,this.fileName="Seleziona il documento",this.minDate=new Date(1900,1,0)}set selectedRow(i){this.setForm(i)}setForm(i){this.form||(this.form=this.formBuilder.group({codTipoDocumento:["",[d.kI.required]],numeroDocumento:["",d.kI.required],rilascioDocumento:["",d.kI.required],scadenzaDocumento:["",d.kI.required],luogoRilascioDocumento:["",d.kI.required],rilasciatoDa:["",d.kI.required],barcode:[""],nomeDocumento:[""]})),i?this.form.setValue({codTipoDocumento:i.codTipoDocumento,numeroDocumento:i.numeroDocumento,rilascioDocumento:i.rilascioDocumento,scadenzaDocumento:i.scadenzaDocumento,luogoRilascioDocumento:i.luogoRilascioDocumento,rilasciatoDa:i.rilasciatoDa,barcode:i.barcode,nomeDocumento:null}):this.form.reset(),this.form.disable({emitEvent:!1})}ngOnInit(){this.documenti$=this.firmaService.getTipiDocumenti()}};let e=o;return o.\u0275fac=function(c){return new(c||o)(t.Y36(Y.o),t.Y36(M.e),t.Y36(d.QS),t.Y36(K.u0))},o.\u0275cmp=t.Xpm({type:o,selectors:[["ar-form-documento"]],inputs:{selectedRow:"selectedRow"},features:[t.qOj],decls:43,vars:12,consts:[[1,"login-title-inner"],[2,"margin-top","0px"],["name","loginForm",1,"form-container",3,"formGroup"],["fxLayout","row"],["fxFlex",""],["formControlName","codTipoDocumento"],[3,"value",4,"ngFor","ngForOf"],["matInput","","formControlName","numeroDocumento"],["matInput","","formControlName","rilasciatoDa"],["matInput","","formControlName","luogoRilascioDocumento"],["fxFlex","",3,"click"],["matInput","","formControlName","rilascioDocumento",3,"min","matDatepicker"],["matSuffix","",3,"for"],[3,"touchUi"],["pickerRilascio",""],["matInput","","formControlName","scadenzaDocumento",3,"min","matDatepicker"],["pickerScadenza",""],[3,"value"]],template:function(c,r){if(1&c){const s=t.EpF();t.TgZ(0,"div",0)(1,"h2",1),t._uU(2,"Inserire i dati del documento di identit\xe0 utilizzato per aderire alla firma OTP"),t.qZA()(),t.TgZ(3,"form",2)(4,"div",3)(5,"mat-form-field",4)(6,"mat-label"),t._uU(7,"Tipo Documento"),t.qZA(),t.TgZ(8,"mat-select",5),t.YNc(9,W,2,2,"mat-option",6),t.ALo(10,"async"),t.qZA()()(),t.TgZ(11,"div",3)(12,"mat-form-field",4)(13,"mat-label"),t._uU(14,"Numero Documento"),t.qZA(),t._UZ(15,"input",7),t.qZA()(),t.TgZ(16,"div",3)(17,"mat-form-field",4)(18,"mat-label"),t._uU(19,"Rilasciato Da"),t.qZA(),t._UZ(20,"input",8),t.qZA()(),t.TgZ(21,"div",3)(22,"mat-form-field",4)(23,"mat-label"),t._uU(24,"Luogo di Rilascio"),t.qZA(),t._UZ(25,"input",9),t.qZA()(),t.TgZ(26,"div",3)(27,"mat-form-field",10),t.NdJ("click",function(){t.CHM(s);const b=t.MAs(33);return t.KtG(b.open())}),t.TgZ(28,"mat-label"),t._uU(29,"Data di rilascio documento"),t.qZA(),t._UZ(30,"input",11)(31,"mat-datepicker-toggle",12)(32,"mat-datepicker",13,14),t.qZA()(),t.TgZ(34,"div",3)(35,"mat-form-field",10),t.NdJ("click",function(){t.CHM(s);const b=t.MAs(42);return t.KtG(b.open())}),t.TgZ(36,"mat-label"),t._uU(37,"Data di scadenza documento"),t.qZA(),t._uU(38,"> "),t._UZ(39,"input",15)(40,"mat-datepicker-toggle",12)(41,"mat-datepicker",13,16),t.qZA()()()}if(2&c){const s=t.MAs(33),T=t.MAs(42);t.xp6(3),t.Q6J("formGroup",r.form),t.xp6(6),t.Q6J("ngForOf",t.lcZ(10,10,r.documenti$)),t.xp6(21),t.Q6J("min",r.minDate)("matDatepicker",s),t.xp6(1),t.Q6J("for",s),t.xp6(1),t.s9C("touchUi",r.mediaObserver.isActive("xs")),t.xp6(7),t.Q6J("min",r.minDate)("matDatepicker",T),t.xp6(1),t.Q6J("for",T),t.xp6(1),t.s9C("touchUi",r.mediaObserver.isActive("xs"))}},dependencies:[Z.sg,v.xw,v.yH,A.KE,A.hX,A.R9,B.gD,k.ey,d._Y,d.Fj,d.JJ,d.JL,d.sg,d.u,I.Mq,I.hl,I.nW,N.Nt,Z.Ov],styles:[".form-container[_ngcontent-%COMP%]{width:50%;margin:10px auto}@media screen and (max-width: 960px){.main-container[_ngcontent-%COMP%]{margin-top:60px}.form-container[_ngcontent-%COMP%]{width:100%}}"]}),e})();var $=n(27227),w=n(56709),S=n(4859),P=n(97392),J=n(8901);function G(e,o){1&e&&t._UZ(0,"th",25)}function j(e,o){if(1&e){const a=t.EpF();t.TgZ(0,"td",26)(1,"mat-checkbox",27),t.NdJ("ngModelChange",function(c){const s=t.CHM(a).$implicit;return t.KtG(s.checked=c)})("change",function(c){const s=t.CHM(a).$implicit,T=t.oxw(4);return t.KtG(T.uncheckExcept(s,c))})("click",function(c){return c.stopPropagation()}),t.qZA()()}if(2&e){const a=o.$implicit;t.xp6(1),t.Q6J("ngModel",a.checked)}}function V(e,o){1&e&&(t.TgZ(0,"th",25),t._uU(1,"Documento"),t.qZA())}function X(e,o){if(1&e&&(t.TgZ(0,"td",26),t._uU(1),t.qZA()),2&e){const a=o.$implicit;
1t.xp6(1),t.Oqu(a.tipoDocumento)}}function q(e,o){1&e&&(t.TgZ(0,"th",28),t._uU(1,"Visualizza Documento"),t.qZA())}function tt(e,o){if(1&e){const a=t.EpF();t.TgZ(0,"td",29)(1,"img",30),t.NdJ("click",function(){const r=t.CHM(a).$implicit,s=t.oxw(4);return t.KtG(s.apriModalImage(r.barcode))}),t.qZA()()}if(2&e){const a=o.$implicit;t.xp6(1),t.s9C("src",a.urlIcona,t.LSH)}}function ot(e,o){1&e&&(t.TgZ(0,"th",28),t._uU(1,"Validato"),t.qZA())}function et(e,o){if(1&e&&(t.TgZ(0,"td",29),t._UZ(1,"span",31),t.qZA()),2&e){const a=o.$implicit;t.xp6(1),t.Q6J("ngClass",a.isDocumentoValidato?"confirm":"warning")}}function nt(e,o){1&e&&t._UZ(0,"th",32)}function at(e,o){if(1&e&&(t.TgZ(0,"td",33),t.ynx(1),t.TgZ(2,"div",34),t._UZ(3,"ar-form-documento",35),t.qZA(),t.BQk(),t.qZA()),2&e){const a=o.$implicit,i=t.oxw(4);t.xp6(2),t.Q6J("@detailExpand",a==i.expandedElement?"expanded":"collapsed"),t.xp6(1),t.Q6J("selectedRow",a)}}function it(e,o){1&e&&t._UZ(0,"tr",36)}function ct(e,o){if(1&e){const a=t.EpF();t.TgZ(0,"tr",37),t.NdJ("click",function(){const r=t.CHM(a).$implicit,s=t.oxw(4);return t.KtG(s.expandedElement=s.expandedElement===r?null:r)}),t.qZA()}if(2&e){const a=o.$implicit,i=t.oxw(4);t.ekj("example-expanded-row",i.expandedElement===a)}}function lt(e,o){1&e&&t._UZ(0,"tr",38)}function rt(e,o){if(1&e&&(t.ynx(0),t.TgZ(1,"div",8)(2,"h2",9),t._uU(3,"Seleziona un documento o caricane uno nuovo"),t.qZA()(),t.TgZ(4,"table",10),t.ynx(5,11),t.YNc(6,G,1,0,"th",12),t.YNc(7,j,2,1,"td",13),t.BQk(),t.ynx(8,14),t.YNc(9,V,2,0,"th",12),t.YNc(10,X,2,1,"td",13),t.BQk(),t.ynx(11,15),t.YNc(12,q,2,0,"th",16),t.YNc(13,tt,2,1,"td",17),t.BQk(),t.ynx(14,18),t.YNc(15,ot,2,0,"th",16),t.YNc(16,et,2,1,"td",17),t.BQk(),t.ynx(17,19),t.YNc(18,nt,1,0,"th",20),t.YNc(19,at,4,2,"td",21),t.BQk(),t.YNc(20,it,1,0,"tr",22),t.YNc(21,ct,1,2,"tr",23),t.YNc(22,lt,1,0,"tr",24),t.qZA(),t.BQk()),2&e){const a=t.oxw(3);t.xp6(4),t.Q6J("dataSource",a.dataSource),t.xp6(16),t.Q6J("matHeaderRowDef",a.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",a.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",a.expandableColumns)}}function mt(e,o){if(1&e){const a=t.EpF();t.ynx(0),t.TgZ(1,"div",39)(2,"div",40)(3,"button",41),t.NdJ("click",function(){t.CHM(a);const c=t.oxw(3);return t.KtG(c.selectDocForFirma(c.selectedRow))}),t.TgZ(4,"mat-icon",42),t._uU(5,"chevron_right"),t.qZA(),t.TgZ(6,"span"),t._uU(7,"Avanti"),t.qZA()()()(),t.BQk()}}function st(e,o){if(1&e){const a=t.EpF();t.TgZ(0,"div",43)(1,"button",44),t.NdJ("click",function(){t.CHM(a);const c=t.oxw(3);return t.KtG(c.selectDoc())}),t.TgZ(2,"mat-icon",42),t._uU(3,"cloud_upload"),t.qZA(),t.TgZ(4,"span"),t._uU(5,"Carica nuovo documento"),t.qZA()(),t._UZ(6,"div",45),t.TgZ(7,"button",46)(8,"mat-icon",42),t._uU(9,"priority_high"),t.qZA(),t.TgZ(10,"span"),t._uU(11,"Selezionare un documento"),t.qZA()()()}}function dt(e,o){if(1&e&&(t.ynx(0),t.YNc(1,rt,23,4,"ng-container",6),t.YNc(2,mt,8,0,"ng-container",4),t.YNc(3,st,12,0,"ng-template",null,7,t.W1O),t.BQk()),2&e){const a=t.MAs(4),i=t.oxw(2);t.xp6(1),t.Q6J("ngIf",i.dataSource.data.length>0),t.xp6(1),t.Q6J("ngIf",i.selectedRow)("ngIfElse",a)}}function ut(e,o){if(1&e){const a=t.EpF();t.ynx(0),t.TgZ(1,"icrf-root",47),t.NdJ("complete",function(c){t.CHM(a);const r=t.oxw(3);return t.KtG(r.complete(c))})("downloadDocument",function(c){t.CHM(a);const r=t.oxw(3);return t.KtG(r.downloadDocument(c))}),t.qZA(),t.BQk()}if(2&e){const a=t.oxw(3);t.xp6(1),t.Q6J("idClient",a.idSoggettoAnagrafica)("idDocument",a.barcode)("idPolizza",a.idPolizza)("token",a.token)("baseUrl",a.baseUrl)("baseUrlAR",a.baseUrlAR)("baseUrlARWeb",a.baseUrlARWeb)}}function _t(e,o){if(1&e&&t.YNc(0,ut,2,7,"ng-container",6),2&e){const a=t.oxw(2);t.Q6J("ngIf",a.loadICRF)}}function pt(e,o){if(1&e&&(t.TgZ(0,"div",3),t.YNc(1,dt,5,3,"ng-container",4),t.YNc(2,_t,1,1,"ng-template",null,5,t.W1O),t.qZA()),2&e){const a=t.MAs(3),i=t.oxw();t.xp6(1),t.Q6J("ngIf",!i.loadExternalComponent)("ngIfElse",a)}}const U=class extends h.P{constructor(o,a,i,c,r,s){super(),this.firmaService=o,this.downloadService=a,this.messageService=i,this.route=c,this.loaderService=r,this.valid=0,this.manual_verification=1,this.invalid=2,this.displayedColumns=["select","tipoDocumento","urlIcona","isDocumentoValidato"],this.expandableColumns=["accordion"],this.baseUrlARWeb=y.N.apiBaseUrl.replace(/\.api/i,".web"),this.baseUrl=y.N.apiCloudBaseUrl,this.baseUrlAR=y.N.apiBaseUrl+"/api",this.loadICRF=!1,this.token="Bearer "+s.selectSnapshot(u.jq.token),this.loadICRF=!0}
1editDocumento(o){this.showForm=!0,this.selectedRow=o}apriModalImage(o){this.downloadService.downloadDocumento(this.firmaService.downloadDocumentoIdentita({barcode:o}))}ngOnInit(){this.idPolizza=this.route.snapshot.queryParams.idPolizza,this.$idSoggettoAnagrafica.pipe((0,R.q)(1)).subscribe(o=>{this.idSoggettoAnagrafica=o}),this.getData()}downloadDocument(o){1===o.documentType&&this.downloadService.downloadDocumento(this.firmaService.getInformativaVideo())}getData(){this.firmaService.getListaDocumenti().subscribe(o=>{o&&0===o.length&&(this.loadExternalComponent=!0),this.dataSource=new l.by(o)},o=>{})}uncheckExcept(o,a){a.checked?(this.selectedRow=o,this.barcode=o.barcode):(this.selectedRow=null,this.barcode=null),this.dataSource.data.filter(i=>i.barcode!=o.barcode).forEach(i=>i.checked=null)}dialogDocFirst(){this.messageService.info("Selezionare un documento per continuare")}expandRow(o){this.expandedElement=o}selectDocForFirma(o){o.isDocumentoValidato?this.uploadDocumento(o):this.selectDoc()}selectDoc(){this.loadExternalComponent=!0}complete(o){if(o.outcome===this.valid||o.outcome===this.manual_verification){const a={...this.selectedRow,barcode:o.numBarCode};this.uploadDocumento(a)}o.outcome===this.invalid&&(this.barcode=null,this.selectedRow=null,this.loadExternalComponent=!1,this.getData())}uploadDocumento(o){this.loaderService.show(),this.firmaService.uploadDocumentoIdentitaIcrf({body:o}).pipe((0,C.K)(a=>(this.messageService.error("Si \xe8 verificato un errore"),a)),(0,_.x)(()=>this.loaderService.hide())).subscribe()}};let E=U;U.\u0275fac=function(a){return new(a||U)(t.Y36(O.RR),t.Y36(Q.K),t.Y36(M.e),t.Y36(f.gz),t.Y36(z.D),t.Y36(D.yh))},U.\u0275cmp=t.Xpm({type:U,selectors:[["ar-upload-documento"]],features:[t.qOj],decls:3,vars:1,consts:[[1,"main-container"],[1,"content-container"],["class","inner-content","fxLayout","column",4,"arLoading"],["fxLayout","column",1,"inner-content"],[4,"ngIf","ngIfElse"],["ircfComponent",""],[4,"ngIf"],["selectDocFirst",""],[1,"login-title-inner"],[2,"margin-top","0px"],["mat-table","","multiTemplateDataRows","true",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","tipoDocumento"],["matColumnDef","urlIcona"],["mat-header-cell","","class","aligntable",4,"matHeaderCellDef"],["mat-cell","","class","aligntable",4,"matCellDef"],["matColumnDef","isDocumentoValidato"],["matColumnDef","accordion"],["mat-header-cell","","class","aligntable","colspan","4",4,"matHeaderCellDef"],["mat-cell","","class","aligntable","colspan","4",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","example-element-row",3,"example-expanded-row","click",4,"matRowDef","matRowDefColumns"],["mat-row","","class","example-detail-row",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],[1,"select-check-box",3,"ngModel","ngModelChange","change","click"],["mat-header-cell","",1,"aligntable"],["mat-cell","",1,"aligntable"],["height","70",2,"cursor","pointer",3,"src","click"],[1,"dot",3,"ngClass"],["mat-header-cell","","colspan","4",1,"aligntable"],["mat-cell","","colspan","4",1,"aligntable"],[1,"example-element-detail"],[2,"width","100%",3,"selectedRow"],["mat-header-row",""],["mat-row","",1,"example-element-row",3,"click"],["mat-row","",1,"example-detail-row"],["fxLayout","row","fxLayoutAlign","end center",1,"pt-10"],["fxFlex","20","fxFlex.xs","30"],["mat-flat-button","",1,"ar-button",2,"float","right",3,"click"],[2,"margin-right","5px"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutGap","5px",1,"pt-10"],["mat-flat-button","","fxFlex.xs","100","fxFlex","40","fxFlex.gt-md","30",1,"ar-button",3,"click"],["fxFlex",""],["mat-flat-button","","fxFlex.xs","100","fxFlex","40","fxFlex","40","fxFlex.gt-md","30",1,"ar-button"],[3,"idClient","idDocument","idPolizza","token","baseUrl","baseUrlAR","baseUrlARWeb","complete","downloadDocument"]],template:function(a,i){1&a&&(t.TgZ(0,"div",0)(1,"div",1),t.YNc(2,pt,4,2,"div",2),t.qZA()()),2&a&&(t.xp6(2),t.Q6J("arLoading",!i.dataSource))},dependencies:[Z.mk,Z.O5,v.xw,v.SQ,v.Wh,v.yH,L.oO,H,$.m,l.BZ,l.fO,l.as,l.w1,l.Dz,l.nj,l.ge,l.ev,l.XQ,l.Gk,w.oG,S.lW,P.Hw,d.JJ,d.On,J.Uq],styles:["ar-upload-documento .dot.confirm{background-color:green}ar-upload-documento .dot.warning{background-color:#ff0}ar-upload-documento .dot{height:25px;width:25px;background-color:#bbb;border-radius:50%;display:inline-block}ar-upload-documento .aligntable{text-align:center!important}ar-upload-documento .mat-column-select{padding-left:20px}ar-upload-documento .pt-10{padding-top:10px}ar-upload-documento .example-element-detail{overflow:hidden;display:flex}ar-upload-documento tr.example-detail-row{height:0}@media screen and (max-width: 960px){ar-upload-documento .main-container{margin-top:60px}ar-upload-documento .mat-column-select{padding-left:0}}ar-upload-documento .mat-mdc-table{width:100%;font-size:14px;line-height:18px}ar-upload-documento .step-btn{width:100%}ar-upload-documento .select-check-box{padding-right:5px}\n"],encapsulation:2,data:{animation:[(0,m.X$)("detailExpand",[(0,m.SB)("collapsed",(0,m.oB)({height:"0px",minHeight:"0"})),(0,m.SB)("expanded",(0,m.oB)({height:"*"})),(0,m.eR)("expanded <=> collapsed",(0,m.jt)("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])]}}),(0,x.gn)([(0,D.Ph)(u.jq.idSoggettoAnagrafica)],E.prototype,"$idSoggettoAnagrafica",void 0);var gt=n(51572),ft=n(64694),xt=n(65938),ht=n(61945);let Dt=(()=>{const o=class{};let e=o;return o.\u0275fac=function(c){return new(c||o)}
1,o.\u0275mod=t.oAB({type:o}),o.\u0275inj=t.cJS({imports:[g.m,v.ae,xt.Is,ft.S,P.Ps,gt.Cq,B.LD,S.ot,d.UX,I.FA,N.c,A.lN,ht.s]}),e})();var vt=n(98674),Ct=n(34614),Ut=n(69814);const Tt=[{path:"",component:E}];let Rt=(()=>{const o=class{};let e=o;return o.\u0275fac=function(c){return new(c||o)},o.\u0275mod=t.oAB({type:o}),o.\u0275inj=t.cJS({imports:[g.m,f.Bz.forChild(Tt),Ut.o9,Dt,vt.z,l.p0,w.p9,S.ot,P.Ps,Ct.x,d.u5,J.ac]}),e})()},34614:(F,p,n)=>{n.d(p,{x:()=>h});var g=n(73213),f=n(72079),x=n(94650);let h=(()=>{const m=class{};let l=m;return m.\u0275fac=function(R){return new(R||m)},m.\u0275mod=x.oAB({type:m}),m.\u0275inj=x.cJS({providers:[g.K],imports:[f.Q]}),l})()}}]);
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.