1"use strict";(self["webpackChunkspc_areariservata"]=self["webpackChunkspc_areariservata"]||[]).push([[6533],{39743:function(t,e,s){s.r(e),s.d(e,{default:function(){return Z}});var a=s(37179),i=s(9781),r=s(75223),o=s(46072),n=s(24437),l=s(46035),c=s(84192),d=s(56904),u=s(32469),h=s(5294),p=s(75251),m=function(){var t=this,e=t._self._c;return e("div",{staticClass:"backgroudBlue h-100"},[e(l.Z,{attrs:{cols:"12",lg:"12",md:"12",sm:"12"}},[e("div",{staticClass:"container white--text"},[e("div",{staticClass:"text-center",attrs:{cols:"12"}},[e(u.Z,{attrs:{contain:"",height:"55px",src:s(7016)}})],1)]),e(d.Z,{ref:"form",staticClass:"px-lg-10 px-md-10 px-xs-0",attrs:{"lazy-validation":""},model:{value:t.valid,callback:function(e){t.valid=e},expression:"valid"}},[e(i.Z,{staticClass:"mx-auto my-12 mt-0",attrs:{color:"backgroudBlue rounded-lg","max-width":"374"}},[e(c.Z,{staticClass:"mx-4"}),e(l.Z,[e(h.Z,{staticClass:"border-bottom",attrs:{"no-gutters":""}},[e(n.Z,{attrs:{cols:"10",lg:"10",sm:"10"}},[e(r.EB,{staticClass:"white--text text-sella-medium fs22 fs-sm-20 mb-5"},[t._v(t._s(t.$t("login.accediallareariservata")))])],1),e(n.Z,{attrs:{cols:"2",lg:"2",sm:"2"}},[e(u.Z,{attrs:{contain:"",width:"54px",height:"54px",src:s(36449)}})],1)],1)],1),e(r.ZB,{staticClass:"pt-0"},[e(p.Z,{ref:"email",staticClass:"fs12 text-sella-regular",attrs:{filled:"",rules:t.emailRules,"error-messages":t.errorMessages,label:t.$t("login.form.email"),placeholder:"Inserisci l'email",required:""},on:{click:function(e){return t.refreshAuth()}},model:{value:t.email,callback:function(e){t.email=e},expression:"email"}}),e(p.Z,{staticClass:"fs12 text-sella-regular",attrs:{filled:"","append-icon":t.show1?"mdi-eye":"mdi-eye-off",type:t.show1?"text":"password",title:"Clicca per visualizzare la password",name:"input-10-1",label:t.$t("login.form.password"),hint:"Almeno 8 caratteri",placeholder:"",counter:""},on:{"click:append":function(e){t.show1=!t.show1},click:function(e){return t.refreshAuth()}},model:{value:t.password,callback:function(e){t.password=e},expression:"password"}}),e(h.Z,{staticClass:"mt-3 mb-3",attrs:{cols:"12","no-gutters":""}},[e(n.Z,{staticClass:"text-start",attrs:{lg:"7"}},[e(o.Z,{staticClass:"mt-0 white--text fs12",attrs:{label:t.$t("login.form.memorizzalaccesso")},model:{value:t.myCheckBox,callback:function(e){t.myCheckBox=e},expression:"myCheckBox"}})],1),e(n.Z,{staticClass:"text-end mt-1",attrs:{lg:"5"}},[e("a",{staticClass:"fs12 white--text text-sella-regular",attrs:{href:"#/forgotpassword"}},[t._v(" "+t._s(t.$t("login.form.passworddimenticata")))])])],1)],1),e(l.Z,{staticClass:"pt-0"},[e("p",{staticClass:"red--text text-sella-bold fs14"},[t._v(t._s(this.autTokenCheck?"":"Credenziali errate."))]),e(n.Z,{staticClass:"fs16 text--sella-medium border-bottom",attrs:{cols:"12 text-center",sm:"12",md:"12",lg:"12"}},[e(a.Z,{staticClass:"fs16 text-sella-bold yellow black--text border-bottom mb-7 pt-2",staticStyle:{width:"256px",height:"56px"},attrs:{dark:"",large:"",disabled:!t.valid},on:{click:function(e){return t.goToAuth()}}},[t._v(" "+t._s(t.$t("login.button.accedi"))+" ")])],1),e("p",{staticClass:"text-lg-fs12 fs12 text-sella-regular text-center pt-4 white--text"},[t._v(" "+t._s(t.$t("login.button.nonseiancoraregistrato")))]),e(n.Z,{staticClass:"fs16 text--sella-regular",attrs:{cols:"12 text-center",sm:"12",md:"12",lg:"12"}},[e(a.Z,{staticClass:"fs16 text-sella-bold rounded-lg pt-1",staticStyle:{width:"256px",height:"56px"},attrs:{outlined:"","x-large":"",color:"white"},on:{click:function(e){return t.goToRegsiter()}}},[t._v(" "+t._s(t.$t("login.button.registrati"))+" ")])],1)],1)],1)],1)],1)],1)},g=[],f=(s(57658),s(50196)),v=s(97314),x={mounted(){localStorage.removeItem("token"),localStorage.setItem("isSSOLogin","false"),v.N.$on("login",(t=>{this.login=t}))},data(){return{myCheckBox:!1,show1:!1,valid:!0,email:"",errorMessages:"",auth:{},password:"",emailRules:[t=>!!t||"E-mail is required",t=>/.+@.+\..+/.test(t)||"E-mail must be valid"],rules:{required:t=>!!t||"Required.",min:t=>t.length>=8||"Min 8 characters",emailMatch:()=>"The email and password you entered don't match"},pwdRules:[t=>!!t||"Password required",t=>t&&/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)[A-Za-z\d@$!%*?&]{8,}
1$/.test(t)||"Minimum 8 characters, One capital latter, Number"],authToken:"",autTokenCheck:!0,otpToken:""}},methods:{goToAuth(){!0===this.$refs.form.validate()&&(localStorage.setItem("loginEmail",this.email),this.loadLoginApi()),this.$refs.form.validate()},refreshAuth(){this.autTokenCheck=!0},goToRegsiter(){this.$router.push("/register")},redirectToLostPassword(){this.$router.push("/forgotpassword")},checkBoxAccess(){localStorage.setItem("Memorizzalaccesso",this.myCheckBox)},loadLoginApi(){let t={headers:{"Content-Type":"application/json;charset=UTF-8"}};f.ZP.post("/spcapi/public/login/auth",{username:this.email,password:this.password},t).then((t=>{this.login=t.data;var e=JSON.parse(JSON.stringify(t.data));localStorage.setItem("token",e["auth.token"]),this.authToken=e["auth.token"],this.otpToken=this.login.otpToken,null!=this.authToken&&""!=this.authToken?this.$router.push("/autenticaion"):this.autTokenCheck=!1,v.N.$emit("login",this.login)}))}}},C=x,k=s(43736),b=(0,k.Z)(C,m,g,!1,null,"d01e7a0a",null),Z=b.exports},64099:function(t,e,s){s.r(e),s.d(e,{default:function(){return Z}});var a=s(37179),i=s(9781),r=s(75223),o=s(24437),n=s(46035),l=s(84192),c=s(56904),d=s(32469),u=s(34674),h=s(5294),p=function(){var t=this,e=t._self._c;return e("div",{staticClass:"backgroudBlue h-100"},[e(n.Z,{attrs:{cols:"12",lg:"12",md:"12",sm:"12"}},[e("div",{staticClass:"container white--text"},[e("div",{staticClass:"text-center",attrs:{cols:"12"}},[e(d.Z,{attrs:{contain:"",height:"55px",src:s(7016)}})],1)]),e(c.Z,{ref:"form",attrs:{"lazy-validation":""},model:{value:t.valid,callback:function(e){t.valid=e},expression:"valid"}},[e(i.Z,{staticClass:"mx-auto my-12 mt-0 rounded-lg",attrs:{color:"backgroudBlue","max-width":"410"}},[e(l.Z,{staticClass:"mx-4"}),e(n.Z,{staticClass:"px-3"},[e(h.Z,{staticClass:"border-bottom",attrs:{"no-gutters":""}},[e(r.EB,{staticClass:"white--text text-sella-medium fs22 fs-sm-20 mb-5"},[t._v(t._s(t.$t("loginotp.inserisciilcodiceotp"))+" ")]),e(d.Z,{attrs:{contain:"",width:"54px",height:"54px",src:s(87990)}})],1)],1),e(r.ZB,{staticClass:"pt-0 pb-0"},[e(n.Z,{staticClass:"px-1"},[e("p",{staticClass:"white--text text-sella-regular fs14 text-center"},[t._v(" "+t._s(t.$t("loginotp.form.insericiilcodice"))+" ")]),e(o.Z,{staticClass:"p-5 pt-0 pb-0 mx-lg-7"},[e(u.Z,{attrs:{filled:"",length:"4",rules:[t=>!!t],plain:""},on:{click:function(e){return t.refreshOTP()}},model:{value:t.otp,callback:function(e){t.otp=e},expression:"otp"}}),e("p",{staticClass:"red--text text-sella-bold fs14"},[t._v(" "+t._s(this.otpCheck?"":"Codice OTP non valido")+" ")])],1),e(o.Z,{staticClass:"cols-12 text-center"},[e("a",{staticClass:"white--text text-sella-regular fs12",attrs:{href:"#"}},[t._v(t._s(t.$t("loginotp.form.richiediun")))])])],1)],1),e(n.Z,[e(o.Z,{staticClass:"fs16 text--sella-medium",attrs:{cols:"12 text-center",sm:"12",md:"12",lg:"12"}},[e(a.Z,{staticClass:"fs16 text-sella-medium yellow black--text border-bottom mb-7 pt-2 rounded-lg",staticStyle:{width:"256px",height:"56px"},attrs:{dark:"",large:"",disabled:!t.valid},on:{click:function(e){return t.loadCheckLoginOtpApi()}}},[t._v(" "+t._s(t.$t("loginotp.button.continua"))+" ")]),e("hr",{staticClass:"border-bottom"}),e("p",{staticClass:"white--text text-sella-regular fs12"},[t._v(" "+t._s(t.$t("loginotp.iltonumerodi"))+" ")]),e(o.Z,{staticClass:"d-flex",attrs:{cols:"12"}},[e(d.Z,{attrs:{contain:"",width:"160px",height:"58px",src:s(52192)}})],1),e("p",{staticClass:"white--text text-sella-regular fs12"},[t._v("Contatta il Servizio Clienti dal lunedì al venerdì dalle ore 8:30 alle ore 19:30; sabato dalle ore 9:00 alle ore 13:00.")]),e("p",{staticClass:"white--text text-sella-regular fs12"},[e("span",{staticClass:"vividBueLight--text"},[t._v(t._s(t.$t("loginotp.email1")))]),t._v(" "+t._s(t.$t("loginotp.email2")))])],1)],1)],1)],1)],1)],1)},m=[],g=(s(57658),s(50196)),f=s(97314),v=s(19638),x={mounted(){this.loadLoginOtpApi(),f.N.$on("sendOtp",(t=>{this.sendOtp=t,this.status=this.sendOtp.status})),f.N.$on("checkOtp",(t=>{this.checkOtp=t})),f.N.$on("otpCheck",(t=>{this.otpCheck=t}))},data(){return{valid:!0,otp:"",sendOtp:[],status:!1,otpCheck:!0}},methods:{goToDashboard(){!0===this.$refs.form.validate()&&this.$router.push("/private/dashboard"),this.$refs.form.validate()},refreshOTP(){this.otpCheck=!0},loadLoginOtpApi(){v.p7.headers["auth.token"]=localStorage.getItem("token"),g.ZP.post("/spcapi/secure/login/sendOtp",this.form,v.p7).then((t=>{this.sendOtp=t.data,f.N.$emit("sendOtp",this.sendOtp)}))},loadCheckLoginOtpApi(){v.p7.headers["auth.token"]=localStorage.getItem("token"),g.ZP.post("/spcapi/secure/login/checkOtp",{otp:this.otp},v.p7).then((t=>{this.checkOtp=t.data,this.status&&200==t.status&&(f.N.$emit("checkOtp",this.checkOtp),f.N.$emit("otpCheck",t.data.status),t.data.status?this.goToDashboard():this.otpCheck=!1)})).catch((function(t){JSON.parse(JSON.stringify(t.response.status)),f.N.$emit("otpCheck",!1)}))}}},C=x,k=s(43736),b=(0,k.Z)(C,p,m,!1,null,"ef798420",null),Z=b.exports},9781:function(t,e,s){s.d(e,{Z:function(){return n}});var a=s(62925),i=s(30445),r=s(54040),o=s(74987),n=(0,o.Z)(i.Z,r.Z,a.Z).extend({name:"v-card",props:{flat:Boolean,hover:Boolean,img:String,link:Boolean,loaderHeight:{type:[Number,String],default:4},raised:Boolean},computed:{classes(){return{"v-card":!0,...r.Z.options.computed.classes.call(this),"v-card--flat":this.flat,"v-card--hover":this.hover,"v-card--link":this.isClickable,"v-card--loading":this.loading,"v-card--disabled":this.disabled,"v-card--raised":this.raised,...a.Z.options.computed.classes.call(this)}},styles(){const t={...a.Z.options.computed.styles.call(this)};return this.img&&(t.background=`url("${this.img}") center center / cover no-repeat`),t}},methods:{genProgress(){const t=i.Z.options.methods.genProgress.call(this);return t?this.$createElement("div",{staticClass:"v-card__progress",key:"progress"},[t]):null}},render(t){const{tag:e,data:s}=this.generateRouteLink();return s.style=this.styles,this.isClickable&&(s.attrs=s.attrs||{}
1,s.attrs.tabindex=0),t(e,this.setBackgroundColor(this.color,s),[this.genProgress(),this.$slots.default])}})},75223:function(t,e,s){s.d(e,{EB:function(){return l},ZB:function(){return n},h7:function(){return r}});var a=s(9781),i=s(31050);const r=(0,i.Ji)("v-card__actions"),o=(0,i.Ji)("v-card__subtitle"),n=(0,i.Ji)("v-card__text"),l=(0,i.Ji)("v-card__title");a.Z},46072:function(t,e,s){s.d(e,{Z:function(){return o}});s(47393);var a=s(11012),i=s(23316),r=s(80911),o=r.Z.extend({name:"v-checkbox",props:{indeterminate:Boolean,indeterminateIcon:{type:String,default:"$checkboxIndeterminate"},offIcon:{type:String,default:"$checkboxOff"},onIcon:{type:String,default:"$checkboxOn"}},data(){return{inputIndeterminate:this.indeterminate}},computed:{classes(){return{...i.Z.options.computed.classes.call(this),"v-input--selection-controls":!0,"v-input--checkbox":!0,"v-input--indeterminate":this.inputIndeterminate}},computedIcon(){return this.inputIndeterminate?this.indeterminateIcon:this.isActive?this.onIcon:this.offIcon},validationState(){if(!this.isDisabled||this.inputIndeterminate)return this.hasError&&this.shouldValidate?"error":this.hasSuccess?"success":null!==this.hasColor?this.computedColor:void 0}},watch:{indeterminate(t){this.$nextTick((()=>this.inputIndeterminate=t))},inputIndeterminate(t){this.$emit("update:indeterminate",t)},isActive(){this.indeterminate&&(this.inputIndeterminate=!1)}},methods:{genCheckbox(){const{title:t,...e}=this.attrs$;return this.$createElement("div",{staticClass:"v-input--selection-controls__input"},[this.$createElement(a.Z,this.setTextColor(this.validationState,{props:{dense:this.dense,dark:this.dark,light:this.light}}),this.computedIcon),this.genInput("checkbox",{...e,"aria-checked":this.inputIndeterminate?"mixed":this.isActive.toString()}),this.genRipple(this.setTextColor(this.rippleState))])},genDefaultSlot(){return[this.genCheckbox(),this.genLabel()]}}})},84192:function(t,e,s){s.d(e,{Z:function(){return i}});var a=s(23276),i=a.Z.extend({name:"v-divider",props:{inset:Boolean,vertical:Boolean},render(t){let e;return this.$attrs.role&&"separator"!==this.$attrs.role||(e=this.vertical?"vertical":"horizontal"),t("hr",{class:{"v-divider":!0,"v-divider--inset":this.inset,"v-divider--vertical":this.vertical,...this.themeClasses},attrs:{role:"separator","aria-orientation":e,...this.$attrs},on:this.$listeners})}})},46035:function(t,e,s){s.d(e,{Z:function(){return o}});s(19027),s(1884);var a=s(20144);function i(t){return a["default"].extend({name:`v-${t}`,functional:!0,props:{id:String,tag:{type:String,default:"div"}},render(e,{props:s,data:a,children:i}){a.staticClass=`${t} ${a.staticClass||""}`.trim();const{attrs:r}=a;if(r){a.attrs={};const t=Object.keys(r).filter((t=>{if("slot"===t)return!1;const e=r[t];return t.startsWith("data-")?(a.attrs[t]=e,!1):e||"string"===typeof e}));t.length&&(a.staticClass+=` ${t.join(" ")}`)}return s.id&&(a.domProps=a.domProps||{},a.domProps.id=s.id),e(s.tag,a,i)}})}var r=s(2653),o=i("container").extend({name:"v-container",functional:!0,props:{id:String,tag:{type:String,default:"div"},fluid:{type:Boolean,default:!1}},render(t,{props:e,data:s,children:a}){let i;const{attrs:o}=s;return o&&(s.attrs={},i=Object.keys(o).filter((t=>{if("slot"===t)return!1;const e=o[t];return t.startsWith("data-")?(s.attrs[t]=e,!1):e||"string"===typeof e}))),e.id&&(s.domProps=s.domProps||{},s.domProps.id=e.id),t(e.tag,(0,r.ZP)(s,{staticClass:"container",class:Array({"container--fluid":e.fluid}).concat(i||[])}),a)}})},20564:function(t,e,s){var a=s(20144),i=s(31050);e["Z"]=a["default"].extend({name:"comparable",props:{valueComparator:{type:Function,default:i.vZ}}})},19638:function(t,e,s){function a(t){if(t){const e=new Date(t),s=e.getDate().toString().padStart(2,"0"),a=(e.getMonth()+1).toString().padStart(2,"0"),i=e.getFullYear();return`${s}/${a}/${i}`}}function i(t){if(!t)return"";const e=t.substr(0,4),s=t.substr(4,2),a=t.substr(6,2);return`${a}/${s}/${e}`}function r(t){let e=(t/1).toFixed(2).replace(".",",");return e.toString().replace(/\B(?=(\d{3})+(?!\d))/g,".")}
1function o(t){const e=new Date(t),s=e.toLocaleString("default",{month:"long"}),a=e.getFullYear();return`${s} ${a}`}function n(t){if(!t)return"";const e=new Date(t);if(isNaN(e))return"";let s=e.toLocaleString("it-IT",{month:"long"});s=s.charAt(0).toUpperCase()+s.slice(1);const a=e.getFullYear();return`${s} ${a}`}s.d(e,{Jj:function(){return n},Pb:function(){return o},Qe:function(){return i},Sp:function(){return a},T4:function(){return r},oL:function(){return c},p7:function(){return l}});const l={headers:{"Content-Type":"application/json;charset=UTF-8"}};function c(t){return"CQ"===t?"CQ":"PP"===t||"PF"===t||"PA"===t||"CO"===t?"CO":"LC"===t||"CA"===t?"CA":"NA"}},97314:function(t,e,s){s.d(e,{N:function(){return i}});var a=s(20144);const i=new a["default"]},19027:function(){},7016:function(t,e,s){t.exports=s.p+"img/Logo SPC.f8c1b97e.svg"},52192:function(t,e,s){t.exports=s.p+"img/Numero-verde- blue.bcc5306f.svg"},87990:function(t,e,s){t.exports=s.p+"img/OTP Icon.3ca8e987.svg"},36449:function(t,e,s){t.exports=s.p+"img/User_Icon.4b81659b.svg"}}]); 2//# sourceMappingURL=login-group.f2ed6fcb.js.map
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.