1"use strict";(self.webpackChunkFGD_BCC_FE=self.webpackChunkFGD_BCC_FE||[]).push([[4661],{94661:(E,p,i)=>{i.r(p),i.d(p,{CreateFilialModule:()=>M});var c=i(69808),t=i(93075),g=i(91719),m=i(39574),o=i(38746),u=i(99404),e=i(87587),h=i(17783),b=i(48935),v=i(79748),x=i(37953),A=i(90985),Z=i(34002),f=i(75016),T=i(65887),C=i(34043),F=i(1221),k=i(17805);function N(r,l){if(1&r&&(e.TgZ(0,"div")(1,"span"),e._uU(2),e.qZA()()),2&r){const n=l.$implicit;e.xp6(2),e.AsE("",n.abiBankAgent,"-",n.denomination,"")}}const I=function(){return{of:"myDiv"}},s=function(){return{style:"text-transform: uppercase"}},y=[{path:"",component:(()=>{class r{constructor(n,a,d,P,R){this.fb=n,this.authenticationService=a,this.bankService=d,this.router=P,this.banksManagementService=R,this.abiPattern=o.FY,this.txtCharNumPattern=o.FG,this.phoneNumberPattern=o.yk,this.addressPattern=o.CC,this.provincePattern=o.N9,this.textPattern=o.sg,this.agentBank=[],this.loadingSpinner=!0,this.isReadonly=!0,this.abiBankAgentExist=!0,this.validateAbi=q=>{const O=q.value;return this.agentBank.some(U=>U.abiBankAgent.includes(O))||"ROL"==this.role[0]},this.role=this.authenticationService.roles}ngOnInit(){this.createForm(),this.getAgentDataBank()}createForm(){this.formFilialBank=this.fb.group({abi:new t.NI("",[t.kI.required,t.kI.pattern(this.abiPattern)]),branchName:new t.NI("",[t.kI.required,t.kI.pattern(this.txtCharNumPattern)]),cab:new t.NI("",[t.kI.required,t.kI.pattern(o.er),t.kI.minLength(5)]),cap:new t.NI("",[t.kI.required,t.kI.pattern(o.er),t.kI.minLength(5)]),telephoneNumber:new t.NI("",[t.kI.required,t.kI.pattern(this.phoneNumberPattern)]),address:new t.NI("",[t.kI.required]),province:new t.NI("",[t.kI.required,t.kI.pattern(this.provincePattern)]),municipality:new t.NI("",[t.kI.required,t.kI.pattern(o.sg)]),email:new t.NI("",[t.kI.required,t.kI.email]),startDateRecord:new t.NI("",t.kI.required),endDateRecord:new t.NI("",t.kI.required)})}getAgentDataBank(){this.banksManagementService.getAgentBankAbi().subscribe({next:n=>{n.forEach(a=>{this.abiBankAgent=n[0].abiBankAgent,this.agentBank.push({abiBankAgent:a.abiBankAgent,denomination:a.denomination})}),this.loadingSpinner=!1},error:n=>{this.loadingSpinner=!1,(0,u.Z)(n,"error",4e3)},complete:()=>{"ADMIN"==this.role[0]?(this.abiBankAgent="",this.isReadonly=!1):this.agentBank.map(n=>(this.isReadonly=!0,this.abiBankAgent=n.abiBankAgent,this.agentBank))}})}createNewFilialBank(){let n=new Date(this.formFilialBank.get("startDateRecord").value).toISOString(),a=new Date(this.formFilialBank.get("endDateRecord").value).toISOString();this.bankService.createNewBranch(JSON.stringify(Object.assign(Object.assign({},this.formFilialBank.value),{startDateRecord:n,endDateRecord:a}))).subscribe({next:d=>{(0,u.Z)("I dati sono aggiunti con successo","success",4e3)},error:d=>{(0,u.Z)(d.message,"error",4e3)},complete:()=>{this.router.navigate(["home/bank-filial"])}})}indietroButton(){this.router.navigate(["home/bank-filial"])}findExistingAbi(){this.abiBankAgentExist=!!this.agentBank.find(n=>n.abiBankAgent===this.formFilialBank.get("abi").value)}}return r.\u0275fac=function(n){return new(n||r)(e.Y36(t.qu),e.Y36(h.$),e.Y36(b.y),e.Y36(m.F0),e.Y36(v.U))},r.\u0275cmp=e.Xpm({type:r,selectors:[["app-create-filial"]],decls:101,vars:45,consts:[[1,"row","heading-row"],[1,"benvenuto","text-white","ps-5","mt-5"],[1,"ps-5","text-white"],[1,"row","line","mb-5"],[1,"col-md-12","pe-0","ps-5","mt-3","d-flex"],["shadingColor","rgba(0,0,0,0.4)",3,"position","visible","showIndicator","showPane","shading","visibleChange"],["loadPanel",""],[1,"text-white","px-5"],[1,"mx-4"],[3,"formGroup"],[1,"container","bg-white"],[1,"row","mt-3"],[1,"col-6"],["for","abi",1,"labelForm","mt-4"],["name","abi","formControlName","abi","placeholder","Inizia a digitare l'ABI...","searchExpr","abiBankAgent","valueExpr","abiBankAgent","id","abi",3,"dataSource","value","readOnly","maxLength","pattern","isValid","onValueChanged"],[4,"dxTemplate","dxTemplateOf"],["name","abi"],["type","pattern","message","Formato non valido!",3,"pattern"],["type","required","message","ABI \xe8 un campo obbligatorio!"],["message","Non \xe8 stata trovata nessuna Banca censita con questo ABI!","type","custom",3,"validationCallback"],["for","branchName",1,"mt-4"],["name","branchName","formControlName","branchName","id","branchName",3,"inputAttr","pattern"],["name","branchName"],["type","required","message","Nome agenzia \xe8 un campo obbligatorio!"],["type","pattern","message","Nome Agenzia non \xe8 scritto correttamente!",3,"pattern"],[1,"row"],[1,"col-4","mb-3"],["for","cap",1,"mt-3"],["name","cap","formControlName","cap","id","cap",1,"input-field-width",3,"maxLength"],["name","cap"],["type","numeric","message","Questo campo pu\xf2 contenere solo valori numerici!"],["type","required","message","CAP \xe8 un campo obbligatorio!"],["type","stringLength","message","CAP deve avere almeno 5 caratteri!",3,"min"],["for","cab",1,"mt-3"],["name","cab","formControlName","cab","id","cab",3,"maxLength"],["name","cab"],["type","required","message","CAB \xe8 un campo obbligatorio!"],["type","stringLength","message","CAB deve avere almeno 5 caratteri!",3,"min"],["for","telephoneNumber",1,"mt-3"],["name","telephoneNumber","formControlName","telephoneNumber","id","telephoneNumber",3,"pattern","maxLength"],["name","telephoneNumber"],["type","pattern","message","Dovrai inserire il numero in questo modo: +39 ### ######/#!",3,"pattern"],["type","required","message","Il numero di telefono \xe8 un campo obbligatorio!"],["for","address",1,"mt-3"],["name","address","formControlName","address","id","address",3,"inputAttr","pattern"],["name","address"],["type","required","message","Indirizzio \xe8 un campo obbligatorio!"],["for","municipality",1,"mt-3"],["name","municipality","formControlName","municipality","id","municipality",3,"inputAttr","maxLength","pattern"],["name","municipality"],["type","required","message","Comune \xe8 un campo obbligatorio!"],["type","pattern","message","Comune non \xe8 correto!",3,"pattern"],["for","province",1,"mt-3"],["name","province","formControlName","province","id","province",3,"inputAttr","pattern","maxLength"],["name","province"],["type","required","message","Provincia \xe8 un campo obbligatorio!"],["type","pattern","message","Sono scrittte solo due lettere per esempio 'AA'",3,"pattern"],["for","email",1,"mt-3"],["name","email","formControlName","email","id","email"],["name","email"],["type","email","message","E-Mail non \xe8 correto!"],["type","required","message","E-Mail \xe8 un campo obbligatorio!"],["for","startDateRecord",1,"mt-3"],["name","startDateRecord","formControlName","startDateRecord","id","startDateRecord","placeholder","dd/mm/yyyy","displayFormat","dd/MM/yyyy",3,"useMaskBehavior","showClearButton"],["name","startDateRecord"],["type","required","message","Data di Inizio Record \xe8 un campo obbligatorio!"],["for","endDateRecord",1,"mt-3"],["placeholder","dd/mm/yyyy","displayFormat","dd/MM/yyyy","name","endDateRecord","formControlName","endDateRecord","id","endDateRecord",3,"showClearButton","useMaskBehavior"],["name","endDateRecord"],["type","required","message","Data di Fine Record \xe8 un campo obbligatorio!"],[1,"mx-3","mt-4","d-flex","justify-content-end"],["text","INDIETRO",1,"back",3,"click"],["text","SALVA",1,"save",3,"disabled","click"]],template:function(n,a){1&n&&(e.TgZ(0,"div",0)(1,"h6",1),e._uU(2,"PROCEDURA RIMBORSO DEPOSITANTI"),e.qZA(),e._UZ(3,"br"),e.TgZ(4,"h3",2),e._uU(5,"Gestione Filiali"),e.qZA()(),e.TgZ(6,"div",3)(7,"div",4),e._UZ(8,"hr"),e.qZA()(),e.TgZ(9,"dx-load-panel",5,6),e.NdJ("visibleChange",function(P){return a.loadingSpinner=P}),e.qZA(),e.TgZ(11,"h6",7),e._uU(12,"Inserisci una nuova Filiale"),e.qZA(),e.TgZ(13,"div",8)(14,"form",9)(15,"div",10)(16,"div",11)(17,"div",12)(18,"label",13),e._uU(19,"ABI"),e.qZA(),e.TgZ(20,"dx-autocomplete",14),e.NdJ("onValueChanged",function(){return a.findExistingAbi()}
1),e.YNc(21,N,3,2,"div",15),e.TgZ(22,"dx-validator",16),e._UZ(23,"dxi-validation-rule",17)(24,"dxi-validation-rule",18)(25,"dxi-validation-rule",19),e.qZA()()(),e.TgZ(26,"div",12)(27,"label",20),e._uU(28,"NOME AGENZIA"),e.qZA(),e.TgZ(29,"dx-text-box",21)(30,"dx-validator",22),e._UZ(31,"dxi-validation-rule",23)(32,"dxi-validation-rule",24),e.qZA()()()(),e.TgZ(33,"div",25)(34,"div",26)(35,"label",27),e._uU(36,"CAP"),e.qZA(),e.TgZ(37,"dx-text-box",28)(38,"dx-validator",29),e._UZ(39,"dxi-validation-rule",30)(40,"dxi-validation-rule",31)(41,"dxi-validation-rule",32),e.qZA()()(),e.TgZ(42,"div",26)(43,"label",33),e._uU(44,"CAB"),e.qZA(),e.TgZ(45,"dx-text-box",34)(46,"dx-validator",35),e._UZ(47,"dxi-validation-rule",30)(48,"dxi-validation-rule",36)(49,"dxi-validation-rule",37),e.qZA()()(),e.TgZ(50,"div",26)(51,"label",38),e._uU(52,"TELEFONO"),e.qZA(),e.TgZ(53,"dx-text-box",39)(54,"dx-validator",40),e._UZ(55,"dxi-validation-rule",41)(56,"dxi-validation-rule",42),e.qZA()()()(),e.TgZ(57,"div",25)(58,"div",26)(59,"label",43),e._uU(60,"INDIRIZZO"),e.qZA(),e.TgZ(61,"dx-text-box",44)(62,"dx-validator",45),e._UZ(63,"dxi-validation-rule",46),e.qZA()()(),e.TgZ(64,"div",26)(65,"label",47),e._uU(66,"COMUNE"),e.qZA(),e.TgZ(67,"dx-text-box",48)(68,"dx-validator",49),e._UZ(69,"dxi-validation-rule",50)(70,"dxi-validation-rule",51),e.qZA()()(),e.TgZ(71,"div",26)(72,"label",52),e._uU(73,"PROVINCIA"),e.qZA(),e.TgZ(74,"dx-text-box",53)(75,"dx-validator",54),e._UZ(76,"dxi-validation-rule",55)(77,"dxi-validation-rule",56),e.qZA()()()(),e.TgZ(78,"div",25)(79,"div",26)(80,"label",57),e._uU(81,"EMAIL"),e.qZA(),e.TgZ(82,"dx-text-box",58)(83,"dx-validator",59),e._UZ(84,"dxi-validation-rule",60)(85,"dxi-validation-rule",61),e.qZA()()(),e.TgZ(86,"div",26)(87,"label",62),e._uU(88,"DATA INIZIO RECORD"),e.qZA(),e.TgZ(89,"dx-date-box",63)(90,"dx-validator",64),e._UZ(91,"dxi-validation-rule",65),e.qZA()()(),e.TgZ(92,"div",26)(93,"label",66),e._uU(94,"DATA FINE RECORD"),e.qZA(),e.TgZ(95,"dx-date-box",67)(96,"dx-validator",68),e._UZ(97,"dxi-validation-rule",69),e.qZA()()()()(),e.TgZ(98,"div",70)(99,"dx-button",71),e.NdJ("click",function(){return a.indietroButton()}),e.qZA(),e.TgZ(100,"dx-button",72),e.NdJ("click",function(){return a.createNewFilialBank()}),e.qZA()()()()),2&n&&(e.xp6(9),e.Q6J("position",e.DdM(40,I))("visible",a.loadingSpinner)("showIndicator",!0)("showPane",!0)("shading",!0),e.xp6(5),e.Q6J("formGroup",a.formFilialBank),e.xp6(6),e.s9C("value","ADMIN"==a.role[0]?"":a.abiBankAgent),e.Q6J("dataSource",a.agentBank)("readOnly",a.isReadonly)("maxLength",5)("pattern",a.abiPattern)("isValid",a.abiBankAgentExist||"ROL"==a.role[0]),e.xp6(1),e.Q6J("dxTemplateOf","item"),e.xp6(2),e.Q6J("pattern",a.abiPattern),e.xp6(2),e.Q6J("validationCallback",a.validateAbi),e.xp6(4),e.Q6J("inputAttr",e.DdM(41,s))("pattern",a.txtCharNumPattern),e.xp6(3),e.Q6J("pattern",a.txtCharNumPattern),e.xp6(5),e.Q6J("maxLength",5),e.xp6(4),e.Q6J("min",5),e.xp6(4),e.Q6J("maxLength",5),e.xp6(4),e.Q6J("min",5),e.xp6(4),e.Q6J("pattern",a.phoneNumberPattern)("maxLength",15),e.xp6(2),e.Q6J("pattern",a.phoneNumberPattern),e.xp6(6),e.Q6J("inputAttr",e.DdM(42,s))("pattern",a.addressPattern),e.xp6(6),e.Q6J("inputAttr",e.DdM(43,s))("maxLength",25)("pattern",a.textPattern),e.xp6(3),e.Q6J("pattern",a.textPattern),e.xp6(4),e.Q6J("inputAttr",e.DdM(44,s))("pattern",a.provincePattern)("maxLength",2),e.xp6(3),e.Q6J("pattern",a.provincePattern),e.xp6(12),e.Q6J("useMaskBehavior",!0)("showClearButton",!0),e.xp6(6),e.Q6J("showClearButton",!0)("useMaskBehavior",!0),e.xp6(5),e.Q6J("disabled",a.formFilialBank.invalid||!a.abiBankAgentExist))},directives:[x.Z,t._Y,t.JL,t.sg,A.L,t.JJ,t.u,t.c5,Z.p6,f.S,k.vrV,T.I,C.M,F.K],styles:[".heading-row[_ngcontent-%COMP%]{display:flex;align-items:center;background-color:#5eb571}hr[_ngcontent-%COMP%]{display:block;border-style:solid;border-width:5px;border-top:none;width:5%;margin-top:10px;padding-right:20px;border-radius:10%;color:#fff;opacity:1;margin-left:5px}.title[_ngcontent-%COMP%]{margin-left:25px}.line[_ngcontent-%COMP%]{background-color:#8dc57c!important;height:50px}.bg-white[_ngcontent-%COMP%]{border-radius:15px;height:380px}
1.save[_ngcontent-%COMP%]{margin-left:10px;width:230px;border-radius:20px;background-color:#3251a1;color:#fff;border:1px solid #3251A1}.back[_ngcontent-%COMP%]{width:230px}"]}),r})()}];let B=(()=>{class r{}return r.\u0275fac=function(n){return new(n||r)},r.\u0275mod=e.oAB({type:r}),r.\u0275inj=e.cJS({imports:[[m.Bz.forChild(y)],m.Bz]}),r})(),M=(()=>{class r{}return r.\u0275fac=function(n){return new(n||r)},r.\u0275mod=e.oAB({type:r}),r.\u0275inj=e.cJS({imports:[[c.ez,t.UX,t.u5,g.NDt,B]]}),r})()},38746:(E,p,i)=>{i.d(p,{FY:()=>c,iS:()=>t,CC:()=>g,yk:()=>m,i2:()=>o,lI:()=>u,Ae:()=>e,$T:()=>h,Jb:()=>b,co:()=>v,sO:()=>x,sb:()=>A,er:()=>Z,Cf:()=>f,N9:()=>C,sg:()=>k,FG:()=>N,UV:()=>I,V8:()=>s,s9:()=>D,It:()=>y,OU:()=>B});const c=/^[a-zA-Z0-9]\d{4}$/,t=/^[A-Z]{6}\d{2}[A-Z]{1}\d{2}[A-Z]{1}\d{3}[A-Z]{1}$/,g=/^[a-zA-Z\xc0-\xd6\xd8-\xf6\xf8-\xff0-9.'"\u2018`\s,\/+()-]*$/,m=/^[+]?[0-9/ \-.]{8,14}$/,o=/^[0-9\/ \-.]{5,11}$/,u=/^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9])(?=.*?[#?!@$^&*%_-]).{8,}$/,e=/^[0-9A-Za-z]{10,11}$/,h=/^(IT)?[0-9]{9,11}$/,b=/^IT\d{13}$/,v=/[0-9A-Z]{18}[0-9]{2}$/,x=/^\d{2,5}$/,A=/^IT\d{2}[A-Z]\d{10}[0-9A-Z]{12}$/,Z=/^-?[0-9]\d*(\,\d{1,2})?$/,f=/^[A-Z]{6}[A-Z2-9][A-NP-Z0-9]([A-Z0-9]{3})?$/,C=/^[A-Za-z]{2}$/,k=/^[a-zA-Z\xc0-\xd6\xd8-\xf6\xf8-\xff\s\-\+\&\,\.\']+/,N=/^[a-zA-Z0-9#',.\s-]*$/,I=/([0-9]|[\-+#])+/,s=/[a-zA-Z0-9]/,D=/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/,y=/^na$/,B=/^nd$/}}]);
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.