PageSourceSearch

https://www.unieuro.it/chunk-FU3KBRM6.js

js unieuro.it collected 2026-09-25 09:28:28 UTC 12,994 bytes, 1 lines download raw bytes

1import{J as at,K as ct,N as pt,O as D,P as ut,Q as mt,R as dt,U as ft,V as E,X as ht,ba as gt,fa as P,ga as k}from"./chunk-LX5UYXNU.js";import{r as b,w as bt}from"./chunk-OTRHGGDZ.js";import{Pa as vt,U as ot,X as rt,Y as st,da as lt}from"./chunk-TBUQQBE3.js";import{Ba as c,Ca as p,Db as K,Dd as it,Ea as U,Ec as y,Ed as h,Fa as H,Fc as l,Ja as B,Jc as W,Kb as O,Kc as X,Lc as Y,Na as yt,Pb as F,Sa as Z,Sc as L,Tc as g,Ud as C,Vc as v,ed as S,f as V,fc as R,gd as $,ha as q,hc as j,id as tt,ka as wt,kd as et,mc as u,nc as m,oa as G,oc as d,pa as z,pc as J,sb as a,tc as M,ua as Q,uc as T,yc as w,zd as nt}from"./chunk-FJ6SICJU.js";import{f as N}from"./chunk-VA6OWENO.js";function Vt(o,i){if(o&1&&(m(0,"span"),g(1),d()),o&2){let s=l(3);a(),v(" ",s.config.separator," ")}}function Ot(o,i){if(o&1){let s=w();M(0),m(1,"input",5,0),y("paste",function(n){c(s);let e=l(2);return p(e.handlePaste(n))})("keyup",function(n){let e=c(s).index,r=l(2);return p(r.onKeyUp(n,e))})("input",function(n){let e=c(s).index,r=l(2);return p(r.onInput(n,e))})("keydown",function(n){let e=c(s).index,r=l(2);return p(r.onKeyDown(n,e))}
1),d(),F(3,Vt,2,1,"span",6),T()}if(o&2){let s=i.$implicit,t=i.index,n=i.last,e=l(2);a(),L(S("otp-input ",e.config.inputClass)),u("pattern",e.config.allowNumbersOnly?"\\d*":"")("type",e.inputType)("placeholder",(e.config==null?null:e.config.placeholder)||"")("ngStyle",e.config.inputStyles)("formControl",e.otpForm.controls[s])("id",e.getBoxId(t))("ngClass",tt(11,Nt,(e.config==null?null:e.config.showError)&&(e.formControl==null?null:e.formControl.invalid)&&((e.formControl==null?null:e.formControl.dirty)||(e.formControl==null?null:e.formControl.touched)))),a(2),u("ngIf",e.config.separator&&!n)}}function Ft(o,i){if(o&1){let s=w();m(0,"div",2),y("focusin",function(){c(s);let n=l();return p(n.onFocusIn())})("focusout",function(){c(s);let n=l();return p(n.onFocusOut())}),m(1,"div",3),F(2,Ot,4,13,"ng-container",4),d()()}if(o&2){let s=l();L(S("ng-otp-input-wrapper wrapper ",s.config.containerClass)),u("id",S("c_",s.componentKey))("ngStyle",s.config.containerStyles),a(2),u("ngForOf",s.controlKeys)}}var Nt,f,I,_t,xt=N(()=>{"use strict";C();C();k();k();vt();wt();yt();Nt=o=>({"error-input":o});f=class{static ifTab(i){return this.ifKey(i,"Tab")}static ifDelete(i){return this.ifKey(i,"Delete;Del")}static ifBackspace(i){return this.ifKey(i,"Backspace")}static ifRightArrow(i){return this.ifKey(i,"ArrowRight;Right")}static ifLeftArrow(i){return this.ifKey(i,"ArrowLeft;Left")}static ifSpacebar(i){return this.ifKey(i,"Spacebar; ")}static ifKey(i,s){return s.split(";").some(n=>n===i.key)}},I=class{static keys(i){return i?Object.keys(i):[]}},_t=(()=>{let i=class i{set disabled(t){this.setDisabledState(t)}get inputType(){return this.config?.isPasswordInput?"password":this.config?.allowNumbersOnly?"tel":"text"}get controlKeys(){return I.keys(this.otpForm?.controls)}get formControl(){return this.formCtrl??this.inj?.get(pt)}constructor(t,n){this.document=t,this.inj=n,this.config={length:4},this.onBlur=new V,this.onInputChange=new V,this.inputControls=new Array(this.config.length),this.componentKey=Math.random().toString(36).substring(2)+new Date().getTime().toString(36),this.destroy$=new V,this.activeFocusCount=0,this.onChange=()=>{},this.onTouched=()=>{},this._isDisabled=!1}ngOnInit(){this.otpForm=new mt({});for(let t=0;t<this.config.length;t++)this.otpForm.addControl(this.getControlName(t),new dt);this.otpForm.valueChanges.pipe(q(this.destroy$)).subscribe(t=>{I.keys(this.otpForm.controls).forEach(n=>{var e=this.otpForm.controls[n].value;e&&e.length>1&&(e.length>=this.config.length?this.setValue(e):this.rebuildValue())})})}setDisabledState(t){this._isDisabled=t,this.otpForm&&(t?this.otpForm.disable({emitEvent:!1}):this.otpForm.enable({emitEvent:!1}))}writeValue(t){this.currentVal=this.hasVal(t)?t:null,this.setValue(this.currentVal)}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}onFocusIn(){this.onTouched(),this.activeFocusCount++}onFocusOut(){setTimeout(()=>{this.activeFocusCount--,this.activeFocusCount===0&&(this.onTouched(),this.onBlur.next())},0)}ngAfterViewInit(){if(!this.config.disableAutoFocus){let t=this.document.getElementById(`c_${this.componentKey}`);if(t){let n=t.getElementsByClassName("otp-input")[0];n&&n.focus&&n.focus()}}}getControlName(t){return`ctrl_${t}`}onKeyDown(t,n){let e=this.getBoxId(n-1),r=this.getBoxId(n);if(f.ifKey(t,"Enter")){let x=this.document.getElementById(r)?.closest("form");if(x){t.preventDefault(),x.dispatchEvent(new Event("submit"));return}}if(f.ifSpacebar(t))return t.preventDefault(),!1;if(f.ifBackspace(t)){t.target.value?this.clearInput(r,n):(this.clearInput(e,n-1),this.setSelected(e)),this.rebuildValue();return}if(f.ifDelete(t)){t.target.value?this.clearInput(r,n):(this.clearInput(e,n-1),this.setSelected(e)),this.rebuildValue();return}}hasVal(t){return t!=null&&t!=null&&(!t?.trim||t.trim()!="")}onInput(t,n){let e=this.hasVal(this.currentVal)?`${this.currentVal}${t.target.value}`:t.target.value;if(this.config.allowNumbersOnly&&!this.validateNumber(e)){t.target.value=null,t.stopPropagation(),t.preventDefault(),this.clearInput(null,n);return}if(this.ifValidKeyCode(null,t.target.value)){let r=this.getBoxId(n+1);this.setSelected(r),this.rebuildValue()}else{t.target.value=null;let r=this.getControlName(n);this.otpForm.controls[r]?.setValue(null),this.rebuildValue()}}onKeyUp(t,n){f.ifTab(t)&&(n-=1);let e=this.getBoxId(n+1),r=this.getBoxId(n-1);if(f.ifRightArrow(t)){t.preventDefault(),this.setSelected(e);return}if(f.ifLeftArrow(t)){t.preventDefault(),this.setSelected(r);return}}validateNumber(t){return t&&/^[0-9]+$/.test(t)}getBoxId(t){return`otp_${t}_${this.componentKey}`}clearInput(t,n){let e=this.getControlName(n);if(this.otpForm.controls[e]?.setValue(null),t){let r=this.document.getElementById(t);r&&r instanceof HTMLInputElement&&(r.value=null)}}setSelected(t){this.focusTo(t);let n=this.document.getElementById(t);n&&n.setSelectionRange&&setTimeout(()=>{n.setSelectionRange(0,1)},0)}ifValidKeyCode(t,n){let e=n??t.key;return this.config?.allowNumbersOnly?this.validateNumber(e):/iPhone|iPad|iPod|Android/i.test(navigator.userAgent)||/^[a-zA-Z0-9%*_\-@#$!]$/.test(e)&&e.length==1}focusTo(t){let n=this.document.getElementById(t);n&&n.focus()}setValue(t){if(!(this.config.allowNumbersOnly&&isNaN(t))){if(this.otpForm?.reset(),!this.hasVal(t)){this.rebuildValue();return}t=t.toString().replace(/\s/g,""),Array.from(t).forEach((n,e)=>{this.otpForm.get(this.getControlName(e))&&this.otpForm.get(this.getControlName(e)).setValue(n)}),this.config.disableAutoFocus||setTimeout(()=>{let n=this.document.getElementById(`c_${this.componentKey}`);var e=t.length<this.config.length?t.length:this.config.length-1;let r=n.getElementsByClassName("otp-input")[e];r&&r.focus&&setTimeout(()=>{r.focus()},1)},0),this.rebuildValue()}}rebuildValue(){let t=null;
1I.keys(this.otpForm.controls).forEach(n=>{let e=this.otpForm.controls[n].value;if(e){let r=e.length>1,_=!this.config.allowNumbersOnly&&this.config.letterCase&&(this.config.letterCase.toLocaleLowerCase()=="upper"||this.config.letterCase.toLocaleLowerCase()=="lower");e=e[0];let x=_?this.config.letterCase.toLocaleLowerCase()=="upper"?e.toUpperCase():e.toLowerCase():e;_&&x==e?_=!1:e=x,t==null?t=e:t+=e,(r||_)&&this.otpForm.controls[n].setValue(e)}}),this.currentVal!=t&&(this.currentVal=t,this.onChange(t),this.formCtrl?.setValue&&this.formCtrl.setValue(t),this.onInputChange.next(t))}handlePaste(t){let n=t.clipboardData||window.clipboardData;if(n)var e=n.getData("Text");t.stopPropagation(),t.preventDefault(),!(!e||this.config.allowNumbersOnly&&!this.validateNumber(e))&&this.setValue(e)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}};i.\u0275fac=function(n){return new(n||i)(K(H),K(U))},i.\u0275cmp=O({type:i,selectors:[["ng-otp-input"],["ngx-otp-input"]],inputs:{config:"config",formCtrl:"formCtrl",disabled:"disabled"},outputs:{onBlur:"onBlur",onInputChange:"onInputChange"},features:[$([{provide:at,useExisting:G(()=>i),multi:!0}])],decls:1,vars:1,consts:[["inp",""],["tabindex","0",3,"class","id","ngStyle","focusin","focusout",4,"ngIf"],["tabindex","0",3,"focusin","focusout","id","ngStyle"],[1,"n-o-c"],[4,"ngFor","ngForOf"],["autocomplete","one-time-code",3,"paste","keyup","input","keydown","pattern","type","placeholder","ngStyle","formControl","id","ngClass"],[4,"ngIf"]],template:function(n,e){n&1&&F(0,Ft,3,7,"div",1),n&2&&u("ngIf",e.otpForm==null?null:e.otpForm.controls)},dependencies:[P,ct,D,gt,ft,st,rt,lt,ot],styles:[".otp-input[_ngcontent-%COMP%]{width:50px;height:50px;border-radius:4px;border:solid 1px #c5c5c5;text-align:center;font-size:32px}.ng-otp-input-wrapper[_ngcontent-%COMP%]   .otp-input[_ngcontent-%COMP%]{margin:0 .51rem}.ng-otp-input-wrapper[_ngcontent-%COMP%]   .otp-input[_ngcontent-%COMP%]:first-child{margin-left:0}.ng-otp-input-wrapper[_ngcontent-%COMP%]   .otp-input[_ngcontent-%COMP%]:last-child{margin-right:0}.n-o-c[_ngcontent-%COMP%]{display:flex;align-items:center}.error-input[_ngcontent-%COMP%]{border-color:red}@media screen and (max-width: 767px){.otp-input[_ngcontent-%COMP%]{width:40px;font-size:24px;height:40px}}@media screen and (max-width: 420px){.otp-input[_ngcontent-%COMP%]{width:30px;font-size:18px;height:30px}}"]});let o=i;return o})()});function St(o,i){o&1&&(m(0,"span"),g(1,"Codice corretto!"),d())}function Dt(o,i){if(o&1&&g(0),o&2){let s=l();v(" ",s.info()," ")}}function Et(o,i){if(o&1){let s=w();m(0,"a",6),y("click",function(){c(s);let n=l();return p(n.onRequestNewCode())}),g(1),d()}if(o&2){let s=l();a(),v(" ",s.resendText()," ")}}var Mt,Tt,ee,Pt=N(()=>{"use strict";C();k();xt();C();k();Mt=["otpInputComponent"],Tt=(o,i,s)=>({length:o,allowNumbersOnly:i,containerClass:s});ee=(()=>{let i=class i{constructor(){this.controlName=h("otp"),this.length=h(6),this.allowNumbersOnly=h(!0),this.info=h(),this.resendText=h.required(),this.otpValid=h(),this.requestNewCode=it(),this.isActive=nt(()=>this.otpValid()?" active":""),this.rootFormGroup=Q(E)}ngOnInit(){this.form=this.rootFormGroup.control}ngAfterViewInit(){this.otpInput.nativeElement.querySelector("div").setAttribute("tabindex","-1")}onRequestNewCode(){this.requestNewCode.emit()}};i.\u0275fac=function(n){return new(n||i)},i.\u0275cmp=O({type:i,selectors:[["app-otp-input"]],viewQuery:function(n,e){if(n&1&&W(Mt,5,Z),n&2){let r;X(r=Y())&&(e.otpInput=r.first)}},inputs:{controlName:[1,"controlName"],length:[1,"length"],allowNumbersOnly:[1,"allowNumbersOnly"],info:[1,"info"],resendText:[1,"resendText"],otpValid:[1,"otpValid"]},outputs:{requestNewCode:"requestNewCode"},decls:8,vars:10,consts:[["otpInputComponent",""],[3,"formGroup"],[3,"formControlName","tabIndex","config"],[1,"otp-hint-block","flex","ion-justify-content-between","ion-align-items-center"],[1,"info"],["href","javascript:void(0)",1,"text-button","ion-float-right"],["href","javascript:void(0)",1,"text-button","ion-float-right",3,"click"]],template:function(n,e){n&1&&(M(0,1),J(1,"ng-otp-input",2,0),T(),m(3,"div",3)(4,"p",4),R(5,St,2,0,"span")(6,Dt,1,1),d(),R(7,Et,2,1,"a",5),d()),n&2&&(u("formGroup",e.form),a(),u("formControlName",e.controlName())("tabIndex",-1)("config",et(6,Tt,e.length(),e.allowNumbersOnly(),"otp-input-container "+e.isActive())),a(4),j(e.isActive()?5:6),a(2),j(e.isActive()?-1:7))},dependencies:[_t,P,D,ut,E,ht],styles:["[_ngcontent-%COMP%]:root{--max-width: 1440px;--cms-vertical-spacing: 1rem;--cms-vertical-spacing--large: 2rem;--app-tab-bar-height: 3.6675rem;--app-compare-height: 2.75rem}@media (min-width: 1921px){[_ngcontent-%COMP%]:root{--max-width: 1440px}}@media (max-width: 1920px){[_ngcontent-%COMP%]:root{--max-width: 1320px}}@media (max-width: 1440px){[_ngcontent-%COMP%]:root{--max-width: 1140px}}@media (max-width: 1200px){[_ngcontent-%COMP%]:root{--max-width: 960px}}@media (max-width: 992px){[_ngcontent-%COMP%]:root{--max-width: 720px}}@media (max-width: 768px){[_ngcontent-%COMP%]:root{--max-width: 540px}}@media (max-width: 576px){[_ngcontent-%COMP%]:root{--max-width: 100%}}@media (max-width: 375px){[_ngcontent-%COMP%]:root{--max-width: 100%}}.otp-hint-block[_ngcontent-%COMP%]{margin-top:.5rem}.otp-hint-block[_ngcontent-%COMP%]   .info[_ngcontent-%COMP%]{font-size:.75rem;font-weight:400;line-height:1rem;color:var(--greys_dark_basalto)}.otp-hint-block[_ngcontent-%COMP%]   .info[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{color:var(--ion-color-success)}"]});let o=i;return o}
1)()});var A,oe,re,se,le,kt=N(()=>{"use strict";bt();A=({register:o})=>o,oe=b(A,o=>o),re=b(A,o=>o?.email),se=b(A,o=>o?.password),le=b(A,o=>o?.otpValid)});var ue,At=N(()=>{"use strict";C();C();ue=(()=>{let i=class i{constructor(){this.isIncompleteRegistration=B(!1),this.isVerified=B(!1)}setIncomplete(t){this.isIncompleteRegistration.set(t)}setVerified(t){this.isVerified.set(t)}};i.\u0275fac=function(n){return new(n||i)},i.\u0275prov=z({token:i,factory:i.\u0275fac,providedIn:"root"});let o=i;return o})()});export{ee as a,Pt as b,oe as c,se as d,le as e,kt as f,ue as g,At as h};

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.