(window.webpackJsonp=window.webpackJsonp||[]).push([["Login"],{"04eb":function(t,e,s){},"10ff":function(t,e,s){"use strict";var a={props:{type:{type:String}},data(){return{apiDomain:"https://youniversity.be/b",documentsToLoad:["https://accounts.google.com/gsi/client","https://connect.facebook.net/en_US/sdk.js#xfbml=1&version=v19.0"]}}},i=(s("96d2"),s("2877")),n=s("6544"),o=(n=s.n(n),s("62ad")),l=s("ce7e");s=s("0fd9"),i=Object(i.a)(a,(function(){var t=this,e=t.$createElement;e=t._self._c||e;return e("div",[e("div",{staticClass:"logins-container"},[e("a",{staticClass:"custom-button linkedin-custom-button mb-2",attrs:{"aria-label":"Sign in with LinkedIn",href:t.apiDomain+"/auth/linkedin"}},[e("span",{staticClass:"logo-container"},[e("img",{staticClass:"logo",attrs:{src:t.$_assetsCdnUrl("/images/icons/linkedin-logo.svg",!1),alt:"",loading:"lazy"}})]),e("span",{staticClass:"custom-button__text--mobile"},["login"===t.type&&t.$vuetify.breakpoint.mdAndUp?[t._v(t._s(t.$t("login.externalAddon")))]:t._e(),t._v(" "+t._s(t.$t("login.externalMini.linkedin")))],2)]),e("a",{staticClass:"custom-button mb-2",attrs:{"aria-label":"Continue with Google",href:t.apiDomain+"/auth/google"}},[e("span",{staticClass:"logo-container"},[e("img",{staticClass:"logo",attrs:{src:t.$_assetsCdnUrl("/images/icons/googleLogo.png",!1),alt:"",loading:"lazy"}})]),e("span",{staticClass:"custom-button__text--mobile"},["login"===t.type&&t.$vuetify.breakpoint.mdAndUp?[t._v(t._s(t.$t("login.externalAddon")))]:t._e(),t._v(" "+t._s(t.$t("login.externalMini.google")))],2)]),e("a",{staticClass:"custom-button fb-custom-button mb-2",attrs:{"aria-label":"Continue with Facebook",href:t.apiDomain+"/auth/fb"}},[e("span",{staticClass:"logo-container"},[e("img",{staticClass:"fb-logo",attrs:{src:t.$_assetsCdnUrl("/images/icons/Facebook_Logo_Secondary.png",!1),alt:"",loading:"lazy"}})]),e("span",{staticClass:"custom-button__text--mobile"},["login"===t.type&&t.$vuetify.breakpoint.mdAndUp?[t._v(t._s(t.$t("login.externalAddon")))]:t._e(),t._v(" "+t._s(t.$t("login.externalMini.facebook")))],2)])]),e("div",{staticClass:"p-relative mt-3"},[e("v-row",{attrs:{"no-gutters":""}},[e("v-col",[e("v-divider",{staticClass:"my-6",attrs:{thickness:3}})],1),e("v-col",{attrs:{cols:"6",sm:"5"}},[e("span",{staticClass:"email-text grey300700--text"},[t._v(t._s(t.$t("login.withEmail")))])]),e("v-col",[e("v-divider",{staticClass:"my-6",attrs:{thickness:3}})],1)],1)],1)])}),[],!1,null,"0e9b560c",null);e.a=i.exports,n()(i,{VCol:o.a,VDivider:l.a,VRow:s.a})},"17f6":function(t,e,s){"use strict";s("d001")},"2d97":function(t,e,s){"use strict";var a={name:"InputText",props:{placeholder:{type:String,default:null},icon:{type:String,default:null},label:{type:String,default:null},type:{type:String,default:"text"},error:{type:String,default:null},disabled:{type:Boolean,default:!1},passwordDisplay:{type:Boolean,default:!1},height:{type:[String,Number],default:60},rules:{type:Array},readonly:{type:Boolean},inputId:{type:[String,Number]},hideDetails:{type:[Boolean,String]}},data(){return{inputValue:"",baseType:null,messages:[]}},watch:{"$attrs.value":{immediate:!0,handler(t){this.inputValue=t}},inputValue(t){this.$emit("input",t)},error(t){this.messages=null===t?[]:[t]}},created(){this.baseType=this.type},methods:{changeVisibility(){"password"===this.baseType?this.baseType="text":this.baseType="password"}}},i=(s("17f6"),s("2877")),n=s("6544"),o=(n=s.n(n),s("132d"));s=s("8654"),i=Object(i.a)(a,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"app-text-input"},[t.$slots.label?s("label",{staticClass:"text--lighten-3 grey--text text--md d-flex mb-2",attrs:{for:t.inputId?""+t.inputId:null}},[t._t("label")],2):t._e(),t.label?s("label",{staticClass:"grey300500--text text--md d-flex mb-2",attrs:{for:t.inputId?""+t.inputId:null}},[t._v(" "+t._s(t.label)+" ")]):t._e(),s("v-text-field",t._b({attrs:{disabled:t.disabled,outlined:"",placeholder:t.placeholder,height:t.height,type:t.baseType,rules:t.rules,messages:t.messages,readonly:t.readonly,id:t.inputId,"hide-details":t.hideDetails},on:{input:function(e){return t.$emit("input",e)},blur:function(e){return t.$emit("blur")}},scopedSlots:t._u([{key:"prepend-inner",fn:function(){return[s("v-icon",{staticClass:"cursor-pointer grey--text text--lighten-6"},[t._v(" "+t._s(t.icon)+" ")]),t._t("prepend")]},proxy:!0},{key:"append",fn:function(){return[t._t("append",(function(){return[t.passwordDisplay?[t.passwordDisplay?s("v-icon",{staticClass:"password-icon cursor-pointer grey--text text--lighten-6",attrs:{color:"grey lighten-6",small:""},nativeOn:{click:function(e){return t.changeVisibility()}}},["password"===t.baseType?[t._v(" $eye ")]:[t._v(" $eye-off ")]],2):t._e()]:t._e()]}))]},proxy:!0},{key:"message",fn:function(e){return e=e.message,[s("div",{directives:[{name:"show",rawName:"v-show",value:e&&0 0"}],staticClass:"error--text text--lighten-5 text--sm"},[t._v(" "+t._s(e)+" ")])]}}],null,!0),model:{value:t.inputValue,callback:function(e){t.inputValue=e},expression:"inputValue"}},"v-text-field",t.$attrs,!1))],1)}),[],!1,null,null,null);e.a=i.exports,n()(i,{VIcon:o.a,VTextField:s.a})},"32ef":function(t,e,s){},"46eb":function(t,e,s){"use strict";s("8f44")},"5b70":function(t,e,s){},"6c26":function(t,e,s){"use strict";var a=s("2f62"),i=s("2d97"),n=s("10ff"),o=s("760d");s("2b0e").a.use(o.VueReCaptcha,{siteKey:"6LdmhdQUAAAAALfAsLLaf_vNafhvurpJBKiCY-Nd",loaderOptions:{autoHideBadge:!0}});o={name:"Login",components:{InputText:i.a,AppExternalLogins:n.a},data:()=>({appName:"Youniversity",registerData:{name:"",email:"",password:""},loginData:{email:"",password:"",remember:!0},loading:!1}),created(){this.$recaptchaInstance&&this.$recaptchaInstance.hideBadge()},mounted(){this.loginData.email=this.$route.query.email||""},methods:{...Object(a.b)("auth",["register","getCsrfToken","login","user","profileData"]),sendRegisterData(){this.register(this.registerData)},async sendLoginData(e=!1,s=!1){if(this.loginData.email&&this.loginData.password){let a,i,n={...this.loginData};this.loading=!0;try{i=await this.$recaptchaLoaded(),a=await this.$recaptcha("login"),n=Object.assign({token:a},this.loginData)}catch(t){if(navigator.onLine)throw s||(await this.getCsrfToken(),await this.sendLoginData(e,!0)),this.$store.commit("snackbar/addSnackbar",{message:"errors.serverNoResponse",translate:!0,response:{status:477}},{root:!0}),console.log(t),`error:${t}, data:${JSON.stringify(n)}, oldCSRF:${e}, loginData:${JSON.stringify(this.loginData)}, token:${a}, recaptchaLoaded:`+i}const o=await this.login(n);s=this.loginData.remember?31556926:7200,this.$addLoggedCookie(s),o&&200===o.status?(this.loginData.remember?localStorage.setItem("rememberMe",!0):localStorage.removeItem("rememberMe"),await this.profileData(),this.$nextTick(()=>{null!=(t=document.referrer)&&t.includes("https://youniversity.be/board/")&&window.history.back();var t=this.$router.history._startLocation;if(t.includes("/login")||"/"===t||0===this.$router.match(t).matched.length||t.includes("/ftl-register")||t.includes("/bb9-register")||t.includes("/bb9-online-register")||t.includes("/powerful-register")||t.includes("/register")){var e=null===o||void 0===o||null==(e=o.data)||null==(e=e.data)||null==(e=e.user)||null==(e=e.dp_program)?void 0:e.slug,s=(null===o||void 0===o||null==(s=o.data)||null==(s=s.data)||null==(s=s.user)?void 0:s.dp_program_enabled)&&e;let t="";t=s?"/development/"+e:"/home",this.$safeRouterPush(t)}else this.$safeRouterPush({path:t})})):navigator.onLine&&(419===o.status&&"CSRF token mismatch."===o.data.message?(await this.getCsrfToken(),!1===e?await this.sendLoginData(!0):this.$store.commit("snackbar/addSnackbar",{response:o,message:"errors.serverError",translate:!0},{root:!0})):this.$store.commit("snackbar/addSnackbar",{response:o,message:"errors.loginError",translate:!0},{root:!0})),this.loading=!1}else this.$store.commit("snackbar/addSnackbar",{message:"errors.loginEmpty",translate:!0,response:{status:477}},{root:!0})}}},s("c802"),i=s("2877"),n=s("6544"),a=s.n(n),n=s("ce7e");var l=s("4bd4");s=s("3a2f"),i=Object(i.a)(o,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("v-form",{attrs:{id:"app-solo-form"}},[s("AppExternalLogins",{attrs:{type:"login"}}),s("input-text",{ref:"email",staticClass:"mb-4",attrs:{label:t.$t("login.labels.email"),placeholder:t.$t("login.placeholders.email"),icon:"$mail",autocomplete:"current-login","input-id":"login__email"},model:{value:t.loginData.email,callback:function(e){t.$set(t.loginData,"email",e)},expression:"loginData.email"}}),s("input-text",{staticClass:"mt-6 mb-4",attrs:{placeholder:t.$t("login.placeholders.password"),icon:"$lock",type:"password","password-display":"",autocomplete:"current-password","input-id":"login__password"},nativeOn:{keydown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.sendLoginData()}},scopedSlots:t._u([{key:"label",fn:function(){return[t._v(" "+t._s(t.$t("login.placeholders.password"))+": "),"Login"!==t.$route.name?s("v-tooltip",{attrs:{top:""},scopedSlots:t._u([{key:"activator",fn:function(e){var a=e.on;e=e.attrs;return[s("img",t._g(t._b({staticClass:"ml-1",attrs:{src:t.$_assetsCdnUrl("/images/powerfulleadership/info.svg",!1),alt:""}},"img",e,!1),a))]}}],null,!1,4038749313)},[s("div",{staticClass:"tooltip-wrapper"},[s("h3",{staticClass:"tooltip-title"},[t._v(" Nie znasz swojego hasła do Youniversity? ")]),s("p",{staticClass:"tooltip-description mb-4"},[t._v(" Dzięki udziale w "+t._s(t.$t(t.$route.meta.title))+" otrzymujesz dostęp do platformy Youniversity! Sprawdź skrzynkę "+t._s(t.$route.query.email)+" - wysłaliśmy Ci dane razem instrukcją logowania. ")]),s("h3",{staticClass:"tooltip-title"},[t._v(" Nie otrzymałeś maila z dostępem do Youniversity? ")]),s("p",{staticClass:"tooltip-description mb-4"},[t._v(" Skontaktuj się z nami na help@youniversity.be. Pomożemy Ci w logowaniu! ")]),s("h3",{staticClass:"tooltip-title"},[t._v("Miałeś już konto w Youniversity?")]),s("p",{staticClass:"tooltip-description mb-0"},[t._v(" Wpisz wcześniej ustawione przez siebie hasło. ")])])]):t._e()]},proxy:!0}]),model:{value:t.loginData.password,callback:function(e){t.$set(t.loginData,"password",e)},expression:"loginData.password"}}),s("div",{staticClass:"d-flex justify-space-between mt-4"},[s("div",{staticClass:"d-flex align-center"},[s("c-base-checkbox",{attrs:{"input-id":"login__remember"},model:{value:t.loginData.remember,callback:function(e){t.$set(t.loginData,"remember",e)},expression:"loginData.remember"}},[t._v(t._s(t.$t("login.labels.remember")))])],1),s("router-link",{staticClass:"text-decoration-none primary--text text--lighten-5 font-weight-medium text--md",attrs:{to:{name:"ResetPassword"}}},[t._v(t._s(t.$t("login.buttons.remind")))])],1),s("div",{staticClass:"d-flex justify-center mt-6"},[s("c-base-button",{attrs:{size:"xl",loading:t.loading,id:"login__submit"},nativeOn:{click:function(e){return t.sendLoginData()}}},[t._v(t._s(t.$t("login.buttons.login")))])],1),"Youniversity"===t.appName&&"Login"===t.$route.name?[s("div",{staticClass:"pt-5 pb-5 pt-sm-9 pb-sm-9"},[s("v-divider")],1),s("div",{staticClass:"text-center grey--text text--lighten-3 p-relative"},[t._v(" "+t._s(t.$t("login.bottom.question"))+" "),s("router-link",{staticClass:"text-decoration-none primary--text text--lighten-5 font-weight-medium text--md",attrs:{to:"/register"}},[t._v(" "+t._s(t.$t("login.bottom.solution"))+" ")])],1)]:t._e()],2)}),[],!1,null,"cea14a5c",null);e.a=i.exports,a()(i,{VDivider:n.a,VForm:l.a,VTooltip:s.a})},"8a29":function(t,e,s){"use strict";s("32ef")},"8f44":function(t,e,s){},"96d2":function(t,e,s){"use strict";s("5b70")},a55b:function(t,e,s){"use strict";s.r(e);var a=s("6c26");a={name:"Login",components:{YouniversityLogo:s("c95b").a,AppLoginForm:a.a}},s("8a29"),s=s("2877"),s=Object(s.a)(a,(function(){var t=this,e=t.$createElement;e=t._self._c||e;return e("div",{staticClass:"d-flex justify-center align-center flex-column"},[e("div",{staticClass:"app-solo-logo d-flex justify-center"},[e("YouniversityLogo",{attrs:{width:244}})],1),e("div",{staticClass:"title--md font-weight-bold white--text text-center p-relative"},[t._v(" "+t._s(t.$t("login.login"))+" ")]),e("AppLoginForm",{staticClass:"mt-8"})],1)}),[],!1,null,"4b2c88a1",null);e.default=s.exports},c802:function(t,e,s){"use strict";s("04eb")},c95b:function(t,e,s){"use strict";var a={name:"YouniversityLogo",props:{width:{type:Number,default:203}},computed:{isAuthenticated(){return this.$store.state.auth.isAuthenticated},attributeName(){return this.isAuthenticated?"to":"href"},address(){return this.isAuthenticated?{name:"Home"}:"/"}}};s("46eb"),s=s("2877"),s=Object(s.a)(a,(function(){var t=this,e=t.$createElement;e=t._self._c||e;return e(t.isAuthenticated?"router-link":"a",t._b({tag:"component",staticClass:"logo you-logo"},"component",t._d({},[t.attributeName,t.address])),[e("svg",t._b({staticClass:"base-image",attrs:{xmlns:"http://www.w3.org/2000/svg",id:"Warstwa_1","data-name":"Warstwa 1",viewBox:"471.42 845.1 2057.16 309.79",alt:"youniversity logo",width:t.width,height:"30"}},"svg",t.$attrs,!1),[e("g",[e("path",{staticClass:"cls-1",attrs:{d:"m727.56,1001.01c0,47.48,27.27,77.11,81.15,77.11,50.17,0,80.81-27.95,80.81-79.13,0-47.48-24.92-77.11-80.81-77.11s-81.15,30.98-81.15,79.13Zm80.98,70.24c-23.57,0-30.47-15.69-30.47-70.24s7.66-71.64,30.9-71.64,30.05,15.74,30.05,69.62-6.57,72.26-30.48,72.26Zm118.68-39.26c0,30.98,15.49,46.13,46.47,46.13,33,0,49.16-17.85,56.91-38.39h0v36.03h68.02v-5.05h-20.88v-146.48h-68.69v6.84s20.88,0,20.88,0v84.08c.06,17.16-15.48,49.83-37.71,52.19-11.72,1.24-17.17-7.74-17.17-24.92v-118.19h-68.69v6.84s20.87,0,20.87,0v100.91Zm183.81,43.77h87.21v-5.05h-18.52v-85.87c0-9.09,5.63-24.6,14.07-37.58,8.19-10.58,12.45-13.73,22.55-13.73,12.12,0,18.26,6.87,18.26,24.04v113.14h-18.52v5.05h87.21v-6.56h-20.88v-101.19c0-31.99-15.15-46.13-48.49-46.13-44.11,0-54.21,38.39-54.21,38.39h-.67v-36.03h-68.02v6.84h20.81l.06,139.64h-20.88v5.05Zm203.96,0h89.57v-5.05h-20.88v-146.48h-68.69v5.05h20.88v141.42h-20.88v5.05Zm0,.22h89.57v-6.78s-20.88,0-20.88,0v-143.18s-68.69,0-68.69,0v5.05h20.88v138.13h-20.88v6.78Zm19.2-205.96c0,14.14,11.11,25.25,25.25,25.25s24.92-11.11,24.92-25.25-11.11-24.92-24.92-24.92-25.25,11.11-25.25,24.92Zm157.58,206.41h14.14l53.54-131.66c3.7-9.43,11.8-13.7,24.26-13.7h1.66v-6.84s-53.53,0-53.53,0v6.84s6.73,0,6.73,0c14.48,0,17.69,2.82,12.31,16.29l-31.99,78.46-41.49-94.74,19.42-1.79v-5.05h-86.88v6.84s16.96,0,16.96,0l64.87,145.36Zm145.95-80.48h93.95v-13.47c0-39.73-25.25-60.61-66.67-60.61-45.8,0-77.45,24.24-77.45,77.45,0,59.6,35.02,78.79,82.83,78.79,10.44,0,21.55-1.35,31.99-6.4,14.82-7.74,25.59-21.55,25.93-41.08h-6.82c0,26.6-21.64,40.83-46.89,40.83-26.94,0-36.86-14.9-36.86-70.46v-5.05Zm.42-6.92c.92-50.32,7.25-59.66,24.76-59.66,15.83,0,21.29,11.03,21.29,43.02l.09,16.65h-46.13Zm113.12,86.73h92.94v-6.78h-24.25v-84.14c0-10.44,4.04-25.93,11.45-38.05,6.4-10.44,13.47-16.16,21.89-16.16,10.78,0,14.82,8.42,14.82,23.23,0,13.47-2.02,27.27-13.13,25.59v2.69c4.38,2.02,9.43,2.02,13.13,2.02,16.84,0,32.32-9.77,32.32-30.98s-16.5-31.32-36.36-31.32c-24.58,0-37.38,19.19-44.11,38.05h-.67v-35.69h-68.02v5.05h20.88v139.7h-20.88v6.78Zm170.35,2.36c2.69-6.73,8.08-10.78,17.51-12.12,9.09,7.07,22.56,12.12,41.42,12.12,40.41,0,61.62-21.21,61.62-50.85,0-66.33-104.05-42.09-104.05-77.78,0-16.16,17.4-20.12,39.28-20.12,38.05,0,49.41,19.03,49.41,35.53v5.46h6.93v-17.17c0-10.78.67-22.9,3.7-31.32h-4.38c-3.03,7.07-8.42,9.76-16.5,10.78-9.43-6.73-22.56-10.78-39.4-10.78-30.64,0-58.93,13.81-58.93,47.48,0,69.7,103.37,45.79,103.37,80.14,0,18.18-20.23,21.75-41.11,21.75-35.36,0-52.77-17.92-52.77-43.85v-5.52h-6.8v24.92c0,10.78-1.35,22.9-3.7,31.32h4.38Zm141.54-2.36h89.57v-6.78h-20.88v-144.75s-68.69,0-68.69,0v6.84s20.87,0,20.87,0v137.91s-20.87,0-20.87,0v6.78Zm19.19-205.74c0,14.14,11.11,25.25,25.25,25.25s24.92-11.11,24.92-25.25-11.11-24.92-24.92-24.92-25.25,11.11-25.25,24.92Zm100.33,156.9c0,25.6,11.11,51.19,49.5,51.19,36.03,0,41.42-22.56,41.42-37.04l-6.78.12c0,21.89-11.68,25.61-19.43,25.61-13.81,0-16.9-11.59-16.9-30.44v-105.29s37.71,0,37.71,0v-6.84s-37.71,0-37.71,0v-58.25h-5.05c-1.68,19.87-20.54,58.25-54.55,58.25h-9.09v6.84s20.88-.16,20.88-.16v96.01Zm143.06,80.83c-25.25,0-39.4,7.74-39.4,21.89,0,15.15,15.83,25.25,38.39,25.25,37.04,0,42.76-26.6,46.47-50.84l4.04-28.29,51.86-130.99c3.37-9.09,11.54-13.7,20.3-13.7h5.29v-6.84s-53.53,0-53.53,0v6.84s6.41,0,6.41,0c14.48,0,17.65,3.86,12.6,17.33l-28.87,72.27-44.48-89.6h22.35v-6.84s-91.24,0-91.24,0v6.84s16.79,0,16.79,0l73.6,147.03-2.58,27.3c-3.03,22.22-9.82,38.36-32.38,38.3-14.72-.04-21.72-5.86-21.52-14.21.19-7.94,8.95-15.39,15.69-16.07l.23-5.67Zm-848.35-176.68h19.42v-6.84"}}),e("polygon",{staticClass:"cls-2",attrs:{points:"540.02 864.33 471.42 864.33 526.23 981.5 594.83 981.5 540.02 864.33"}}),e("polygon",{staticClass:"cls-2",attrs:{points:"729.42 863.52 660.81 863.52 564.98 1114.98 633.59 1114.98 729.42 863.52"}})]),e("g",[e("path",{staticClass:"cls-1",attrs:{d:"m2501.21,939.98c-15.09,0-27.37-12.28-27.37-27.37s12.28-27.37,27.37-27.37,27.37,12.28,27.37,27.37-12.28,27.37-27.37,27.37Zm0-50.74c-12.89,0-23.37,10.48-23.37,23.37s10.48,23.37,23.37,23.37,23.37-10.48,23.37-23.37-10.48-23.37-23.37-23.37Z"}}),e("path",{staticClass:"cls-1",attrs:{d:"m2491.07,926.47v-27.97h12.15c1.68,0,3.21.39,4.59,1.18,1.38.79,2.48,1.85,3.3,3.2.81,1.35,1.22,2.86,1.22,4.53s-.41,3.07-1.22,4.41c-.81,1.35-1.9,2.41-3.28,3.2-1.37.79-2.91,1.18-4.61,1.18h-7.07v10.27h-5.07Zm5.07-14.78h7.11c.77,0,1.44-.18,2.02-.54.57-.36,1.02-.86,1.34-1.5.32-.64.48-1.34.48-2.12,0-.88-.2-1.64-.6-2.28-.4-.64-.96-1.15-1.68-1.52-.72-.37-1.54-.56-2.48-.56h-6.19v8.51Zm11.15,14.78l-7.11-12.62,5.35-1,7.91,13.66-6.15-.04Z"}})])])])}),[],!1,null,"4a88ed6a",null);e.a=s.exports},d001:function(t,e,s){}}]);