{"size": 7667, "ext": "js", "max_stars_repo_path": "public/dist/js/9.4b570c.js", "max_stars_repo_name": "arsalanqayum/upwork", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "public/dist/js/9.4b570c.js", "max_issues_repo_name": "arsalanqayum/upwork", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "public/dist/js/9.4b570c.js", "max_forks_repo_name": "arsalanqayum/upwork", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 7667.0, "max_line_length": 7667, "alphanum_fraction": 0.7007956176}
(window.webpackJsonp=window.webpackJsonp||[]).push([[9],{126:function(t,e,o){"use strict";o(83)},127:function(t,e,o){(t.exports=o(5)(!1)).push([t.i,".resetpass{background-color:red!important;border-color:red!important;color:#fff}.createacc,.resetpass{padding:6px 12px;font:16px Roboto;border-radius:3px}.createacc{color:#007bff}.loginbtn{padding:6px 12px;font:16px Roboto;border-radius:3px;background-color:#007bff;color:#fff}.errorMsg{margin-right:auto;margin-left:240px}.logintitle{text-align:center;font-family:Arial;font-size:40px;color:#212529;-webkit-text-decoration:none solid #212529;text-decoration:none solid #212529}.inputfieldbox{width:624px;height:38px;padding:0 8px;border:1px solid #121212;border-radius:5px;background-color:#fff;background-size:cover;font-family:Arial;font-size:14px;color:#121212;-webkit-text-decoration:none solid #121212;text-decoration:none solid #121212}@media only screen and (max-width:600px){.logintitle{font-size:25px}.inputfieldbox{width:350px}.loginbtn{margin-left:0}}",""])},35:function(t,e,o){"use strict";var n=o(1),r=o.n(n);function i(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,n)}return o}function s(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?i(Object(o),!0).forEach((function(e){a(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):i(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}function a(t,e,o){return e in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function c(t){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function l(t,e,o,n,r,i,s){try{var a=t[i](s),c=a.value}catch(t){return void o(t)}a.done?e(c):Promise.resolve(c).then(n,r)}function u(t,e){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};"object"===c(t)&&(o=t,t=""),o=s({url:t,title:e,width:600,height:720},o);var n=void 0!==window.screenLeft?window.screenLeft:window.screen.left,r=void 0!==window.screenTop?window.screenTop:window.screen.top,i=window.innerWidth||document.documentElement.clientWidth||window.screen.width,a=window.innerHeight||document.documentElement.clientHeight||window.screen.height;o.left=i/2-o.width/2+n,o.top=a/2-o.height/2+r;var l=Object.keys(o).reduce((function(t,e){return t.push("".concat(e,"=").concat(o[e])),t}),[]).join(","),u=window.open(t,e,l);return window.focus&&u.focus(),u}var d={name:"LoginWithGithub",computed:{githubAuth:function(){return window.config.githubAuth},url:function(){return"/api/oauth/github"}},mounted:function(){window.addEventListener("message",this.onMessage,!1)},beforeDestroy:function(){window.removeEventListener("message",this.onMessage)},methods:{login:function(){var t,e=this;return(t=r.a.mark((function t(){var o,n;return r.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o=u("",e.$t("login")),t.next=3,e.$store.dispatch("auth/fetchOauthUrl",{provider:"github"});case 3:n=t.sent,o.location.href=n;case 5:case"end":return t.stop()}}),t)})),function(){var e=this,o=arguments;return new Promise((function(n,r){var i=t.apply(e,o);function s(t){l(i,n,r,s,a,"next",t)}function a(t){l(i,n,r,s,a,"throw",t)}s(void 0)}))})()},onMessage:function(t){t.origin===window.origin&&t.data.token&&(this.$store.dispatch("auth/saveToken",{token:t.data.token}),this.$router.push({name:"home"}))}}},f=o(0),p=Object(f.a)(d,(function(){var t=this.$createElement,e=this._self._c||t;return this.githubAuth?e("button",{staticClass:"btn btn-dark ml-auto",attrs:{type:"button"},on:{click:this.login}},[this._v("\n  "+this._s(this.$t("login_with"))+"\n  "),e("fa",{attrs:{icon:["fab","github"]}})],1):this._e()}),[],!1,null,null,null);e.a=p.exports},58:function(t,e,o){"use strict";o.r(e);var n=o(1),r=o.n(n),i=o(4),s=o.n(i),a=o(10),c=o.n(a),l=o(35),u=o(7);function d(t,e,o,n,r,i,s){try{var a=t[i](s),c=a.value}catch(t){return void o(t)}a.done?e(c):Promise.resolve(c).then(n,r)}var f={components:{LoginWithGithub:l.a},middleware:"guest",metaInfo:function(){return{title:this.$t("login")}},data:function(){return{form:new s.a({email:"",password:""}),remember:!1}},methods:{login:function(){var t,e=this;return(t=r.a.mark((function t(){var o,n;return r.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.form.post("/api/login");case 2:return o=t.sent,n=o.data,e.$store.dispatch("auth/saveToken",{token:n.token,remember:e.remember}),t.next=7,e.$store.dispatch("auth/fetchUser");case 7:e.redirect();case 8:case"end":return t.stop()}}),t)})),function(){var e=this,o=arguments;return new Promise((function(n,r){var i=t.apply(e,o);function s(t){d(i,n,r,s,a,"next",t)}function a(t){d(i,n,r,s,a,"throw",t)}s(void 0)}))})()},redirect:function(){var t=c.a.get("intended_url");t?(c.a.remove("intended_url"),this.$router.push({path:t})):this.$router.push({name:"/"})},populateEmail:function(t){return 0!==t.length?this.form.email=t:this.form.email}},computed:Object(u.b)({getEmail:"welcomeEmail/email"}),created:function(){this.populateEmail(this.getEmail)}},p=(o(126),o(0)),m=Object(p.a)(f,(function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"container"},[o("h1",{staticClass:"logintitle"},[t._v(t._s(t.$t("login")))]),t._v(" "),o("form",{on:{submit:function(e){return e.preventDefault(),t.login(e)},keydown:function(e){return t.form.onKeydown(e)}}},[o("div",{staticClass:"form-group row"},[o("div",{staticClass:"col"},[o("input",{directives:[{name:"model",rawName:"v-model",value:t.form.email,expression:"form.email"}],staticClass:"form-control mx-auto inputfieldbox",class:{"is-invalid":t.form.errors.has("email")},attrs:{type:"email",name:"email",placeholder:"Enter Email Address"},domProps:{value:t.form.email},on:{input:function(e){e.target.composing||t.$set(t.form,"email",e.target.value)}}}),t._v(" "),o("has-error",{staticClass:"errorMsg",attrs:{form:t.form,field:"email"}})],1)]),t._v(" "),o("div",{staticClass:"form-group row"},[o("div",{staticClass:"col"},[o("input",{directives:[{name:"model",rawName:"v-model",value:t.form.password,expression:"form.password"}],staticClass:"form-control mx-auto inputfieldbox",class:{"is-invalid":t.form.errors.has("password")},attrs:{type:"password",name:"password",placeholder:"Enter Password"},domProps:{value:t.form.password},on:{input:function(e){e.target.composing||t.$set(t.form,"password",e.target.value)}}}),t._v(" "),o("has-error",{staticClass:"errorMsg",attrs:{form:t.form,field:"password"}})],1)]),t._v(" "),o("div",{staticClass:"form-group row"},[o("div",{staticClass:"col-xl-2 col-md-2"}),t._v(" "),o("div",{staticClass:"col-xl-7 col-md-7 col-xs-6"},[o("v-button",{staticClass:"btn btn-primary loginbtn ml-5",attrs:{loading:t.form.busy}},[t._v("\n          "+t._s(t.$t("login"))+"\n        ")]),t._v(" "),o("button",{staticClass:"btn btn-outline-primary createacc mx-1"},[t._v("\n          Create Account\n        ")]),t._v(" "),o("button",{staticClass:"btn btn-info resetpass",attrs:{type:"button"}},[t._v("\n          Reset Password\n        ")]),t._v(" "),o("login-with-github")],1),t._v(" "),o("div",{staticClass:"col-xl-3 col-md-3"})])])])}),[],!1,null,null,null);e.default=m.exports},83:function(t,e,o){var n=o(127);"string"==typeof n&&(n=[[t.i,n,""]]);var r={hmr:!0,transform:void 0,insertInto:void 0};o(6)(n,r);n.locals&&(t.exports=n.locals)}}]);