(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["login"],{"017a":function(t,e,a){},"042a":function(t,e,a){"use strict";var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"sticky-header",style:t.stickyHeaderStyles},[a("sequential-entrance",{attrs:{animation:"animate__fadeInLeft",tag:"div"}},[a("div",{staticClass:"animate__animated logo_container",on:{click:function(e){return t.$router.push({name:"Home"})}}},[a("Logo",{attrs:{mini:""}}),t.withAddress&&t.isMobile?t._e():a("span",{staticClass:"logo_title"},[t._v("Fastcat")])],1)]),a("sequential-entrance",{attrs:{animation:"animate__fadeInUp",tag:"div"}},[t.title?a("div",{staticClass:"animate__animated address_container"},[a("div",{staticClass:"address_content"},[a("span",[t._v(t._s(t.title))])])]):a("div",{staticClass:"animate__animated address_container"},[a("div",{directives:[{name:"show",rawName:"v-show",value:t.withAddress,expression:"withAddress"}],staticClass:"address_content",on:{click:function(e){return t.$store.commit("switchShowSearchAddress")}}},[t.address.street&&t.address.postcode&&t.address.city&&t.address.house_nr?a("span",[t._v(t._s(t.address.street)+" "+t._s(t.address.house_nr)+t._s(t.address.apartment_nr?"/"+t.address.apartment_nr:"")+", "+t._s(t.address.city))]):a("span",[t._v("Wybierz...")])])])]),a("sequential-entrance",{attrs:{animation:"animate__fadeInRight",tag:"div"}},[a("div",{staticClass:"animate__animated menu_container"},[a("div",{directives:[{name:"show",rawName:"v-show",value:t.withMenu,expression:"withMenu"}],staticClass:"menu_content"},[a("div",{staticClass:"menu_button",on:{click:function(e){return t.$store.commit("setShowDrawer",!0)}}},[a("i",{staticClass:"far fa-bars"})])])])])],1)},i=[],s=a("5530"),o=a("2241"),r=a("2f62"),c={name:"StickyHeader",components:{Logo:o["a"]},props:{withAddress:Boolean,withMenu:Boolean,title:String,backgroundImage:String},computed:Object(s["a"])(Object(s["a"])({},Object(r["b"])(["isMobile","address"])),{},{stickyHeaderStyles:function(){var t={};return this.backgroundImage&&(t["background-image"]="url('".concat(this.$asset(this.backgroundImage),"')")),t}})},l=c,d=(a("22419"),a("2877")),u=Object(d["a"])(l,n,i,!1,null,"da8cacba",null);e["a"]=u.exports},"10e8c":function(t,e,a){"use strict";a("5da1")},"1bd3":function(t,e,a){},"1f35":function(t,e,a){},2241:function(t,e,a){"use strict";var n=function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.mini?n("img",{staticStyle:{"max-height":"50px"},attrs:{src:a("7ec9"),alt:"Logo"}}):n("img",{attrs:{src:a("ec23"),alt:"Logo"}})},i=[],s={name:"Logo",props:{mini:Boolean}},o=s,r=a("2877"),c=Object(r["a"])(o,n,i,!1,null,null,null);e["a"]=c.exports},22419:function(t,e,a){"use strict";a("1f35")},"25f0":function(t,e,a){"use strict";var n=a("6eeb"),i=a("825a"),s=a("d039"),o=a("ad6d"),r="toString",c=RegExp.prototype,l=c[r],d=s((function(){return"/a/b"!=l.call({source:"a",flags:"b"})})),u=l.name!=r;(d||u)&&n(RegExp.prototype,r,(function(){var t=i(this),e=String(t.source),a=t.flags,n=String(void 0===a&&t instanceof RegExp&&!("flags"in c)?o.call(t):a);return"/"+e+"/"+n}),{unsafe:!0})},"273b":function(t,e,a){"use strict";a("4c5b")},"2f82":function(t,e,a){},"2f89":function(t,e,a){"use strict";var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{directives:[{name:"show",rawName:"v-show",value:t.showDownloadFromStore,expression:"showDownloadFromStore"}],staticClass:"download-from-store"},[this.$isOS("ios")?a("div",{staticClass:"app-ios",on:{click:t.openIos}},[t._m(0),a("div",[t._v(" Pobierz naszą apkę na swojego iPhona ")]),a("div",[a("div",{staticClass:"close",on:{click:function(e){return e.stopPropagation(),t.closeDownload.apply(null,arguments)}}},[a("i",{staticClass:"far fa-times"})])])]):t._e(),this.$isOS("android")?a("div",{staticClass:"app-android",on:{click:t.openAndroid}},[t._m(1),a("div",[t._v(" Pobierz naszą apkę na swój telefon ")]),a("div",[a("div",{staticClass:"close",on:{click:t.closeDownload}},[a("i",{staticClass:"far fa-times"})])])]):t._e()])},i=[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"app-logo-container"},[n("img",{staticClass:"app-logo",attrs:{src:a("f960"),alt:"Logo"}})])},function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"app-logo-container"},[n("img",{staticClass:"app-logo",attrs:{src:a("f960"),alt:"Logo"}})])}],s=a("5530"),o=a("2f62"),r={name:"DownloadFromStore",computed:Object(s["a"])({},Object(o["b"])(["showDownloadFromStore"])),methods:{closeDownload:function(){this.$store.dispatch("setShowDownloadFromStore",!1)},openIos:function(){window.open("https://apps.apple.com/pl/app/fastcat/id1559723223?l=pl")},openAndroid:function(){window.open("https://play.google.com/store/apps/details?id=com.fastcat")}}},c=r,l=(a("273b"),a("2877")),d=Object(l["a"])(c,n,i,!1,null,"f9669fea",null);e["a"]=d.exports},4088:function(t,e,a){},"44ed":function(t,e,a){"use strict";a("1bd3")},"4c5b":function(t,e,a){},5141:function(t,e,a){"use strict";a("2f82")},5326:function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"page page--login animated_content"},[a("SeqEntrance",{attrs:{animation:"animate__fadeInUp",tag:"div"}},[a("StickyHeader",{staticClass:"animate__animated"}),a("div",{staticClass:"box-container animate__animated"},[a("div",{staticClass:"box-content"},[a("SeqEntrance",{attrs:{animation:"animate__fadeInUp",tag:"div"}},[a("div",{staticClass:"animate__animated"},[a("p",[t._v("Logowanie")])]),a("div",{staticClass:"animate__animated"},[a("TextField",{attrs:{name:"login",label:"Login",placeholder:"Login / e-mail",required:""},on:{input:t.validateForm},model:{value:t.form,callback:function(e){t.form=e},expression:"form"}})],1),a("div",{staticClass:"animate__animated"},[a("TextField",{attrs:{name:"password",label:"Hasło",placeholder:"Hasło",inputType:"password",required:""},on:{input:t.validateForm,keypress:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.login.apply(null,arguments)}},model:{value:t.form,callback:function(e){t.form=e},expression:"form"}})],1),a("div",{staticClass:"password-recovery animate__animated"},[a("span",{on:{click:t.toPasswordRecovery}},[a("small",[t._v("Zapomniałeś hasła?")])])]),a("div",{staticClass:"animate__animated"},[a("Btn",{attrs:{disabled:!t.formIsValid},on:{click:t.login}},[t._v("Zaloguj się")])],1),a("div",{staticClass:"animate__animated"},[a("p",{staticStyle:{"text-align":"left","font-size":"13px"}},[a("span",{staticClass:"required-star"},[t._v("*")]),t._v(" Pole wymagane")])])])],1)]),a("div",{staticClass:"flex-fill animate__animated"}),a("PlainFooter",{staticClass:"animate__animated"})],1)],1)},i=[],s=a("2241"),o=a("dedc"),r=a("042a"),c=a("6826"),l=a("fead"),d=a("57b0"),u=a("85f3"),m={name:"Login",components:{SeqEntrance:u["a"],CheckboxField:d["a"],TextField:l["a"],PlainFooter:c["a"],StickyHeader:r["a"],Logo:s["a"],Btn:o["a"]},data:function(){return{form:{login:"",password:""},formIsValid:!1}},methods:{openInNewCard:function(t){window.open(t,"_blank")},toPasswordRecovery:function(){this.$router.push({name:"PasswordRecovery"})},validateForm:function(){var t=!0;return this.form.login?this.form.login.length<3&&(t=!1):t=!1,this.form.password?this.form.password.length<6&&(t=!1):t=!1,this.formIsValid=t,t},login:function(){var t=this;this.validateForm()?this.$store.dispatch("loginUser",{form:this.form}).then((function(e){var a=e.statusCode,n=e.message;200===a?(t.$toast.success("Witamy na kotładzie 👋"),t.$router.push({name:"Home"})):"password_mismatch"===n?t.$toast.error("Podane hasło jest nieprawidłowe"):t.$toast.error("Upsss
".concat(n))})):this.$toast.error("Formularz zawiera błędy")}}},f=m,p=(a("ecfc"),a("2877")),_=Object(p["a"])(f,n,i,!1,null,"78335eb1",null);e["default"]=_.exports},"57b0":function(t,e,a){"use strict";var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"checkbox_field"},[a("input",{attrs:{id:"checkboxfield_"+t.name,required:t.required?"required":"",type:"checkbox"},domProps:{checked:t.value[t.name]?"checked":""},on:{change:t.handleChange}}),a("label",{attrs:{for:"checboxfield_"+t.name},domProps:{innerHTML:t._s(t.labelProcessed)},on:{click:t.handleLabelClick}})])},i=[],s=a("ade3"),o=a("5530"),r=(a("b0c0"),{name:"CheckboxField",props:{value:Object,label:String,name:String,required:Boolean},computed:{labelProcessed:function(){return this.required?'*'.concat(this.label):this.label}},methods:{handleChange:function(t){this.$emit("input",Object(o["a"])(Object(o["a"])({},this.value),{},Object(s["a"])({},this.name,t.target.checked)))},handleLabelClick:function(t){"A"!==t.target.tagName&&this.$emit("input",Object(o["a"])(Object(o["a"])({},this.value),{},Object(s["a"])({},this.name,!this.value[this.name])))}}}),c=r,l=(a("c6fb"),a("2877")),d=Object(l["a"])(c,n,i,!1,null,"39cbe66a",null);e["a"]=d.exports},5899:function(t,e){t.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},"58a8":function(t,e,a){var n=a("1d80"),i=a("5899"),s="["+i+"]",o=RegExp("^"+s+s+"*"),r=RegExp(s+s+"*$"),c=function(t){return function(e){var a=String(n(e));return 1&t&&(a=a.replace(o,"")),2&t&&(a=a.replace(r,"")),a}};t.exports={start:c(1),end:c(2),trim:c(3)}},"5da1":function(t,e,a){},6826:function(t,e,a){"use strict";var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"plain-footer"},[a("span",{staticClass:"version"},[t._v("v"+t._s(t.appVersion))]),a("span",{staticClass:"copyright"},[t._v("Fastcat "+t._s(t.year)+" by "),a("a",{attrs:{href:"https://appworks.pl/"}},[t._v("AppWorks Software House Sp. z o.o.")])])])},i=[],s=a("c1df"),o=a.n(s),r=a("9224"),c={name:"PlainFooter",data:function(){return{appVersion:r["a"]}},computed:{year:function(){return o()().format("YYYY")}}},l=c,d=(a("44ed"),a("2877")),u=Object(d["a"])(l,n,i,!1,null,"5e8482c4",null);e["a"]=u.exports},7156:function(t,e,a){var n=a("861d"),i=a("d2bb");t.exports=function(t,e,a){var s,o;return i&&"function"==typeof(s=e.constructor)&&s!==a&&n(o=s.prototype)&&o!==a.prototype&&i(t,o),t}},"7ec9":function(t,e,a){t.exports=a.p+"img/mini.a5c992a5.png"},"7fe3":function(t,e,a){"use strict";a("017a")},"85f3":function(t,e,a){"use strict";a("159b");var n,i,s={functional:!0,render:function(t,e){var a=e.props,n=(e.data,e.children),i=a.delay||250,s=a.tag||"span",o=a.animation||"entranceFromRight";if(void 0!==a.fromTop&&(o="entranceFromTop"),void 0!==a.fromRight&&(o="entranceFromRight"),void 0!==a.fromBottom&&(o="entranceFromBottom"),void 0!==a.fromLeft&&(o="entranceFromLeft"),n){var r=0;n.forEach((function(t,e){t.data&&(t.data.staticStyle={opacity:0,animationFillMode:"forwards",animationDelay:r*i+"ms"},t.data.staticClass+=" "+o,r++)}))}return t(s,n)}},o=s,r=a("2877"),c=Object(r["a"])(o,n,i,!1,null,null,null);e["a"]=c.exports},9224:function(t){t.exports=JSON.parse('{"a":"1.1.14"}')},a9e3:function(t,e,a){"use strict";var n=a("83ab"),i=a("da84"),s=a("94ca"),o=a("6eeb"),r=a("5135"),c=a("c6b6"),l=a("7156"),d=a("c04e"),u=a("d039"),m=a("7c73"),f=a("241c").f,p=a("06cf").f,_=a("9bf2").f,h=a("58a8").trim,v="Number",g=i[v],b=g.prototype,w=c(m(b))==v,C=function(t){var e,a,n,i,s,o,r,c,l=d(t,!1);if("string"==typeof l&&l.length>2)if(l=h(l),e=l.charCodeAt(0),43===e||45===e){if(a=l.charCodeAt(2),88===a||120===a)return NaN}else if(48===e){switch(l.charCodeAt(1)){case 66:case 98:n=2,i=49;break;case 79:case 111:n=8,i=55;break;default:return+l}for(s=l.slice(2),o=s.length,r=0;ri)return NaN;return parseInt(s,n)}return+l};if(s(v,!g(" 0o1")||!g("0b1")||g("+0x1"))){for(var y,k=function(t){var e=arguments.length<1?0:t,a=this;return a instanceof k&&(w?u((function(){b.valueOf.call(a)})):c(a)!=v)?l(new g(C(e)),a,k):C(e)},x=n?f(g):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger,fromString,range".split(","),S=0;x.length>S;S++)r(g,y=x[S])&&!r(k,y)&&_(k,y,p(g,y));k.prototype=b,b.constructor=k,o(i,v,k)}},b385:function(t,e,a){},c6fb:function(t,e,a){"use strict";a("4088")},dedc:function(t,e,a){"use strict";var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("button",t._g(t._b({staticClass:"btn",class:{"btn-disabled":t.disabled},attrs:{disabled:t.disabled}},"button",t.$attrs,!1),t.$listeners),[t._t("default")],2)},i=[],s={name:"Btn",props:{disabled:Boolean}},o=s,r=(a("7fe3"),a("2877")),c=Object(r["a"])(o,n,i,!1,null,"1b9d8408",null);e["a"]=c.exports},ec23:function(t,e,a){t.exports=a.p+"img/main.70cbf0fe.svg"},ecfc:function(t,e,a){"use strict";a("b385")},eec5:function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"page page--welcome animated_content"},[a("sequential-entrance",{attrs:{animation:"animate__fadeInUp",tag:"div"}},[a("DownloadFromStore",{staticClass:"animate__animated"}),a("StickyHeader",{staticClass:"animate__animated"}),a("div",{staticClass:"animate__animated"},[a("Logo",{staticStyle:{"margin-top":"30px"}})],1),a("div",{staticClass:"animate__animated"},[a("h2",{staticStyle:{"font-weight":"normal"}},[t._v("Witaj w "),a("strong",[t._v("FASTCAT!")])])]),a("div",{staticClass:"animate__animated"},[a("p",[t._v("Tu zamawiasz = wspierasz.")])]),a("div",{staticClass:"animate__animated"},[a("p",[t._v("Proste jak ogon i wąsy!")])]),a("div",{staticClass:"animate__animated"},[a("Btn",{on:{click:function(e){return e.preventDefault(),t.$router.push({name:"Register"})}}},[t._v("Załóż konto")]),a("Btn",{on:{click:function(e){return e.preventDefault(),t.$router.push({name:"Login"})}}},[t._v("Zaloguj się")])],1),a("div",{staticClass:"animate__animated"},[a("Btn",{on:{click:function(e){return e.preventDefault(),t.$router.push({name:"Home"})}}},[t._v("Kontynuuj bez logowania")])],1),a("div",{staticClass:"flex-fill animate__animated"}),a("PlainFooter",{staticClass:"animate__animated"})],1)],1)},i=[],s=a("2241"),o=a("dedc"),r=a("042a"),c=a("6826"),l=a("2f89"),d={name:"Welcome",components:{PlainFooter:c["a"],StickyHeader:r["a"],Logo:s["a"],Btn:o["a"],DownloadFromStore:l["a"]},created:function(){window.localStorage.getItem("fastcat_welcome")?this.$router.push({name:"Home"}):window.localStorage.setItem("fastcat_welcome","true")},mounted:function(){}},u=d,m=(a("5141"),a("2877")),f=Object(m["a"])(u,n,i,!1,null,"5374e34b",null);e["default"]=f.exports},f960:function(t,e,a){t.exports=a.p+"img/1024.f1b97249.png"},fead:function(t,e,a){"use strict";var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"text_field"},[t.label?a("label",{attrs:{for:"textfield_"+t.name},domProps:{innerHTML:t._s(t.labelProcessed)}}):t._e(),a("input",{attrs:{id:"textfield_"+t.name,type:t.inputType,placeholder:t.placeholder,required:t.required?"required":""},domProps:{value:t.value[t.name]},on:{input:t.handleInput,keypress:function(e){return t.$emit("keypress",e)}}})])},i=[],s=a("ade3"),o=a("5530"),r=(a("a9e3"),a("b0c0"),a("d3b7"),a("25f0"),{name:"TextField",props:{value:Object,label:String,name:String,placeholder:String,inputType:{type:String,default:"text"},required:Boolean,format:String,maxLength:Number},computed:{labelProcessed:function(){return this.label?this.required?"".concat(this.label,'*'):this.label:""}},methods:{handleInput:function(t){if("tel"!==this.inputType||!t.target.value||/^[0-9\s]{1,11}$/.test(t.target.value)){var e=t.target.value;"uppercase"===this.format&&(e=e.toString().toUpperCase()),this.maxLength&&(e=e.substr(0,this.maxLength)),this.$emit("input",Object(o["a"])(Object(o["a"])({},this.value),{},Object(s["a"])({},this.name,e)))}else this.$emit("input",Object(o["a"])(Object(o["a"])({},this.value),{},Object(s["a"])({},this.name,this.value[this.name])))}}}),c=r,l=(a("10e8c"),a("2877")),d=Object(l["a"])(c,n,i,!1,null,"c08bff50",null);e["a"]=d.exports}}]); //# sourceMappingURL=login.d0280b01.js.map