1"use strict";(self.webpackChunklogopedasvalencia_web=self.webpackChunklogopedasvalencia_web||[]).push([[28],{28:(F,_,l)=>{l.d(_,{y:()=>P});var t=l(3953),s=l(9417);class p{constructor(a){this.iban="",this.field1="",this.field2="",this.field3="",this.field4="",this.field5="","string"==typeof(a=a||"")?"ES"===(a=a.toUpperCase()).substr(0,2)?(this.iban=a.substr(0,4),this.field1=a.substr(4,4),this.field2=a.substr(8,4),this.field3=a.substr(12,4),this.field4=a.substr(16,4),this.field5=a.substr(20,4)):this.iban=a:(this.iban=a.iban,this.field1=a.field1,this.field2=a.field2,this.field3=a.field3,this.field4=a.field4,this.field5=a.field5)}toString(){return this.iban&&"ES"===this.iban.substr(0,2)?this.iban+this.field1+this.field2+this.field3+this.field4+this.field5:this.iban}isCompleted(){return"ES"===this.iban.substr(0,2)?this.field1&&this.field1.length>3&&this.field2&&this.field2.length>3&&this.field3&&this.field3.length>3&&this.field4&&this.field4.length>3&&this.field5&&this.field5.length>3:32===this.iban.length}}var c=l(2627),g=l(6225),I=l(3955),u=l(177),m=l(3719),b=l(9631);const C=["iban"],k=["field1"],x=["field2"],j=["field3"],V=["field4"],v=["field5"];function G(o,a){if(1&o){const e=t.RV6();t.qex(0),t.j41(1,"span"),t.EFF(2,"-"),t.k0s(),t.j41(3,"mat-form-field")(4,"input",11,1),t.bIt("paste",function(n){return t.eBV(e),t.XpG().onPaste(n),t.Njj(n.preventDefault())}),t.k0s()(),t.j41(6,"span"),t.EFF(7,"-"),t.k0s(),t.j41(8,"mat-form-field")(9,"input",12,2),t.bIt("paste",function(n){return t.eBV(e),t.XpG().onPaste(n),t.Njj(n.preventDefault())}),t.k0s()(),t.j41(11,"span"),t.EFF(12,"-"),t.k0s(),t.j41(13,"mat-form-field")(14,"input",13,3),t.bIt("paste",function(n){return t.eBV(e),t.XpG().onPaste(n),t.Njj(n.preventDefault())}),t.k0s()(),t.j41(16,"span"),t.EFF(17,"-"),t.k0s(),t.j41(18,"mat-form-field")(19,"input",14,4),t.bIt("paste",function(n){return t.eBV(e),t.XpG().onPaste(n),t.Njj(n.preventDefault())}),t.k0s()(),t.j41(21,"span"),t.EFF(22,"-"),t.k0s(),t.j41(23,"mat-form-field")(24,"input",15,5),t.bIt("paste",function(n){return t.eBV(e),t.XpG().onPaste(n),t.Njj(n.preventDefault())}),t.k0s()(),t.bVm()}if(2&o){const e=t.XpG();t.R7$(9),t.Y8G("type",e.secrect?"password":"text"),t.R7$(5),t.Y8G("type",e.secrect?"password":"text"),t.R7$(5),t.Y8G("type",e.secrect?"password":"text")}}function E(o,a){1&o&&(t.j41(0,"div",16),t.EFF(1,"IBAN incorrecto"),t.k0s())}let w=(()=>{class o extends g.${set field1Set(e){this.field1=e}set field2Set(e){this.field2=e}set field3Set(e){this.field3=e}set field4Set(e){this.field4=e}set field5Set(e){this.field5=e}constructor(e,i){super(e),this.translate=e,this.elRef=i,this.secrect=!1,this.required=!0,this.placeholder="IBAN",this.ibanLength=4,this.finished=new t.bkB,this.onChange=n=>{},this.onTouch=()=>{}}ngOnInit(){this.form=new s.J3({iban:new s.hs(""),field1:new s.hs(""),field2:new s.hs(""),field3:new s.hs(""),field4:new s.hs(""),field5:new s.hs("")},this.validate.bind(this)),this.required&&(this.form.controls.iban.setValidators([s.k0.required,s.k0.minLength(4),s.k0.maxLength(4)]),this.form.controls.field1.setValidators([s.k0.required,s.k0.minLength(4),s.k0.maxLength(4)]),this.form.controls.field2.setValidators([s.k0.required,s.k0.minLength(4),s.k0.maxLength(4)]),this.form.controls.field3.setValidators([s.k0.required,s.k0.minLength(4),s.k0.maxLength(4)]),this.form.controls.field4.setValidators([s.k0.required,s.k0.minLength(4),s.k0.maxLength(4)]),this.form.controls.field5.setValidators([s.k0.required,s.k0.minLength(4),s.k0.maxLength(4)])),this.check&&this.subscriptions.push(this.check.subscribe(()=>{this.setValidators(),(0,c.Hj)(this.form)})),this.form.valueChanges.subscribe(e=>{this.onChange(new p(e).toString())}),this.form.controls.iban.valueChanges.pipe().subscribe(e=>{this.form.controls.iban.setValue(e.toUpperCase(),{emitEvent:!1}),e=e.toUpperCase(),this.ibanLength=(0,c.P2)(e.substr(0,2)),this.setValidators(e),4===e.length&&"ES"===e.substr(0,2)&&this.field1&&this.field1.nativeElement.focus()});for(let e=1;e<6;e++)this.form.controls["field"+e].valueChanges.subscribe(i=>{this.focusNextField(i,e)})}setValidators(e){e=void 0!==e?e:new p(this.form.value).toString(),this.required||e?this.form.controls.iban.setValidators([s.k0.required,s.k0.minLength(this.ibanLength),s.k0.maxLength(this.ibanLength)]):this.required||this.form.controls.iban.clearValidators(),this.form.controls.iban.updateV
1alueAndValidity({emitEvent:!1});for(let i=1;i<6;i++)e&&"ES"===e.substr(0,2)&&4===e.length?this.form.controls["field"+i].setValidators([s.k0.required,s.k0.minLength(4),s.k0.maxLength(4)]):this.form.controls["field"+i].clearValidators(),this.form.controls["field"+i].markAsTouched(),this.form.controls["field"+i].updateValueAndValidity({emitEvent:!1})}validate(e){const i=new p(e.value);return this.required||!i||i.toString()?i&&i.toString()&&"ES"===i.toString().substr(0,2)?!1!==(0,c.bX)(i)?(this.finished.emit(i.toString()),null):{incorrectIBAN:!0}:i&&i.toString()&&!/^[A-Z]{2}/.test(i.toString().substr(0,2))||e&&!e.controls&&e.value&&(e.value.length<this.ibanLength||e.value.length>this.ibanLength)?{incorrectIBAN:!0}:(this.finished.emit(i.toString()),null):null}focusNextField(e,i){if(4===e.length){const n="field"+(i+1);this[n]&&this[n].nativeElement&&this[n].nativeElement.focus()}else if(0===e.length){const n=1===i?"iban":"field"+(i-1);this.secrect=!1,this[n]&&this[n].nativeElement&&this[n].nativeElement.focus()}}writeValue(e){e&&(e=new p(e),this.form.setValue(e))}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouch=e}setDisabledState(e){e?this.form.disable():this.form.enable()}onContainerClick(e){"input"!==e.target.tagName.toLowerCase()&&this.elRef.nativeElement.querySelector("input").focus()}onPaste(e){let i=e.clipboardData.getData("text/plain");if(i=i.replace(/[- .]/g,""),"ES"===i.substr(0,2)){if(20===i.length){const n=i.substr(0,4),r=i.substr(4,4),d=i.substr(8,4),f=i.substr(12,4),h=i.substr(16,4);this.form.patchValue({field1:n,field2:r,field3:d,field4:f,field5:h})}else if(24===i.length){const n=i.substr(0,4),r=i.substr(4,4),d=i.substr(8,4),f=i.substr(12,4),h=i.substr(16,4),B=i.substr(20,4);this.form.patchValue({iban:n,field1:r,field2:d,field3:f,field4:h,field5:B})}}else this.form.controls.iban.setValue(i)}static{this.\u0275fac=function(i){return new(i||o)(t.rXU(I.c$),t.rXU(t.aKT))}}static{this.\u0275cmp=t.VBU({type:o,selectors:[["web-base-iban-input"]],viewQuery:function(i,n){if(1&i&&(t.GBs(C,7),t.GBs(k,5),t.GBs(x,5),t.GBs(j,5),t.GBs(V,5),t.GBs(v,5)),2&i){let r;t.mGM(r=t.lsd())&&(n.iban=r.first),t.mGM(r=t.lsd())&&(n.field1Set=r.first),t.mGM(r=t.lsd())&&(n.field2Set=r.first),t.mGM(r=t.lsd())&&(n.field3Set=r.first),t.mGM(r=t.lsd())&&(n.field4Set=r.first),t.mGM(r=t.lsd())&&(n.field5Set=r.first)}},inputs:{secrect:"secrect",check:"check",required:"required",placeholder:"placeholder"},outputs:{finished:"finished"},features:[t.Jv_([{provide:s.kq,useExisting:(0,t.Rfq)(()=>o),multi:!0},{provide:s.cz,useExisting:(0,t.Rfq)(()=>o),multi:!0}]),t.Vt3],decls:8,vars:9,consts:[["iban",""],["field1",""],["field2",""],["field3",""],["field4",""],["field5",""],[3,"formGroup"],["floatPlaceholder","always"],["matInput","","formControlName","iban","pattern","[A-Z0-9]*",1,"iban",3,"paste","required"],[4,"ngIf"],["class","iban-error",4,"ngIf"],["matInput","","formControlName","field1","size","4","maxlength","4",1,"field1",3,"paste"],["matInput","","formControlName","field2","size","4","maxlength","4",1,"field2",3,"paste","type"],["matInput","","formControlName","field3","size","4","maxlength","4",1,"field3",3,"paste","type"],["matInput","","formControlName","field4","size","4","maxlength","4",1,"field4",3,"paste","type"],["matInput","","formControlName","field5","size","4","maxlength","4",1,"field5",3,"paste"],[1,"iban-error"]],template:function(i,n){if(1&i){const r=t.RV6();t.j41(0,"form",6)(1,"mat-form-field",7)(2,"mat-label"),t.EFF(3),t.k0s(),t.j41(4,"input",8,0),t.bIt("paste",function(f){return t.eBV(r),n.onPaste(f),t.Njj(f.preventDefault())}),t.k0s()(),t.DNE(6,G,26,3,"ng-container",9)(7,E,2,0,"div",10),t.k0s()}2&i&&(t.Y8G("formGroup",n.form),t.R7$(),t.AVh("not-spanish","ES"!==n.form.controls.iban.value.substr(0,2)),t.R7$(2),t.JRh(n.placeholder),t.R7$(),t.Y8G("required",n.required),t.BMQ("size",n.ibanLength)("maxlength",n.ibanLength),t.R7$(2),t.Y8G("ngIf","ES"===n.form.controls.iban.value.substr(0,2)),t.R7$(),t.Y8G("ngIf",n.form.controls.iban.value&&n.form.hasError("incorrectIBAN")))},dependencies:[u.bT,s.qT,s.me,s.BC,s.cb,s.YS,s.tU,s.R_,s.j4,s.JD,m.rl,m.nJ,b.fg],styles:["[_nghost-%COMP%]{width:100%}div[_ngcontent-%COMP%]{display:flex}span[_ngcontent-%COMP%]{opacity:0;transition:opacity .2s}.cdk-focused[_nghost-%COMP%] span[_ngcontent-%COMP%]{opacity:1}[_nghost-%COMP%] .mat-mdc-form-field{width:72px!important;border:none;background:none;padding:0;outline:none;font:inherit;text-align:left}[_nghost-%COMP%] .mat-mdc-form-field.not-spanish{width:100%!important;text-align:left}[_nghost-%COMP%] .mat-mdc-form-field .mat-mdc-form-field-label-wrapper{overflow:visible!important}[_nghost-%COMP%] .mat-mdc-form-field .mat-mdc-form-field-label-wrapper .mat-form-field-label{overflow:visible!important}.iban-error[_ngcontent-%COMP%]{position:relative;top:-13px;color:red;font-size:11px;font-weight:400}"]})}}return o}
1)();function N(o,a){if(1&o){const e=t.RV6();t.qex(0),t.j41(1,"span"),t.EFF(2,"-"),t.k0s(),t.j41(3,"mat-form-field")(4,"input",11,1),t.bIt("paste",function(n){return t.eBV(e),t.XpG().onPaste(n),t.Njj(n.preventDefault())}),t.k0s()(),t.j41(6,"span"),t.EFF(7,"-"),t.k0s(),t.j41(8,"mat-form-field")(9,"input",12,2),t.bIt("paste",function(n){return t.eBV(e),t.XpG().onPaste(n),t.Njj(n.preventDefault())}),t.k0s()(),t.j41(11,"span"),t.EFF(12,"-"),t.k0s(),t.j41(13,"mat-form-field")(14,"input",13,3),t.bIt("paste",function(n){return t.eBV(e),t.XpG().onPaste(n),t.Njj(n.preventDefault())}),t.k0s()(),t.j41(16,"span"),t.EFF(17,"-"),t.k0s(),t.j41(18,"mat-form-field")(19,"input",14,4),t.bIt("paste",function(n){return t.eBV(e),t.XpG().onPaste(n),t.Njj(n.preventDefault())}),t.k0s()(),t.j41(21,"span"),t.EFF(22,"-"),t.k0s(),t.j41(23,"mat-form-field")(24,"input",15,5),t.bIt("paste",function(n){return t.eBV(e),t.XpG().onPaste(n),t.Njj(n.preventDefault())}),t.k0s()(),t.bVm()}if(2&o){const e=t.XpG();t.R7$(9),t.Y8G("type",e.secrect?"password":"text"),t.R7$(5),t.Y8G("type",e.secrect?"password":"text"),t.R7$(5),t.Y8G("type",e.secrect?"password":"text")}}function y(o,a){1&o&&(t.j41(0,"div",16),t.EFF(1,"IBAN incorrecto"),t.k0s())}let P=(()=>{class o extends w{static{this.\u0275fac=(()=>{let e;return function(n){return(e||(e=t.xGo(o)))(n||o)}})()}static{this.\u0275cmp=t.VBU({type:o,selectors:[["web-iban-input"]],features:[t.Jv_([{provide:s.kq,useExisting:(0,t.Rfq)(()=>o),multi:!0},{provide:s.cz,useExisting:(0,t.Rfq)(()=>o),multi:!0}]),t.Vt3],decls:8,vars:9,consts:[["iban",""],["field1",""],["field2",""],["field3",""],["field4",""],["field5",""],[3,"formGroup"],["floatPlaceholder","always"],["matInput","","formControlName","iban","pattern","[A-Z0-9]*",1,"iban",3,"paste","required"],[4,"ngIf"],["class","iban-error",4,"ngIf"],["matInput","","formControlName","field1","size","4","maxlength","4",1,"field1",3,"paste"],["matInput","","formControlName","field2","size","4","maxlength","4",1,"field2",3,"paste","type"],["matInput","","formControlName","field3","size","4","maxlength","4",1,"field3",3,"paste","type"],["matInput","","formControlName","field4","size","4","maxlength","4",1,"field4",3,"paste","type"],["matInput","","formControlName","field5","size","4","maxlength","4",1,"field5",3,"paste"],[1,"iban-error"]],template:function(i,n){if(1&i){const r=t.RV6();t.j41(0,"form",6)(1,"mat-form-field",7)(2,"mat-label"),t.EFF(3),t.k0s(),t.j41(4,"input",8,0),t.bIt("paste",function(f){return t.eBV(r),n.onPaste(f),t.Njj(f.preventDefault())}),t.k0s()(),t.DNE(6,N,26,3,"ng-container",9)(7,y,2,0,"div",10),t.k0s()}2&i&&(t.Y8G("formGroup",n.form),t.R7$(),t.AVh("not-spanish","ES"!==n.form.controls.iban.value.substr(0,2)),t.R7$(2),t.JRh(n.placeholder),t.R7$(),t.Y8G("required",n.required),t.BMQ("size",n.ibanLength)("maxlength",n.ibanLength),t.R7$(2),t.Y8G("ngIf","ES"===n.form.controls.iban.value.substr(0,2)),t.R7$(),t.Y8G("ngIf",n.form.controls.iban.value&&n.form.hasError("incorrectIBAN")))},dependencies:[u.bT,s.qT,s.me,s.BC,s.cb,s.YS,s.tU,s.R_,s.j4,s.JD,m.rl,m.nJ,b.fg],styles:["[_nghost-%COMP%]{width:100%}div[_ngcontent-%COMP%]{display:flex}span[_ngcontent-%COMP%]{opacity:0;transition:opacity .2s}.cdk-focused[_nghost-%COMP%] span[_ngcontent-%COMP%]{opacity:1}[_nghost-%COMP%] .mat-mdc-form-field{width:72px!important;border:none;background:none;padding:0;outline:none;font:inherit;text-align:left}[_nghost-%COMP%] .mat-mdc-form-field.not-spanish{width:100%!important;text-align:left}[_nghost-%COMP%] .mat-mdc-form-field .mat-mdc-form-field-label-wrapper{overflow:visible!important}[_nghost-%COMP%] .mat-mdc-form-field .mat-mdc-form-field-label-wrapper .mat-form-field-label{overflow:visible!important}.iban-error[_ngcontent-%COMP%]{position:relative;top:-13px;color:red;font-size:11px;font-weight:400}"]})}}return o})()}}]);
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.