1ricoWebpackJsonp([41],{"+Obs":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={name:"login",props:["step"],data:function(){return{csrf:document.head.querySelector('meta[name="csrf-token"]').content,login_form:!0,reset_email:"",invalid_email:!0,username:"",password:"",error:!1,secret:null,url:null,recovery:!1,recover_account:!1,codes:null,digit1:"",digit2:"",digit3:"",digit4:"",digit5:"",digit6:"",code1:null,code2:null}},mounted:function(){this.$refs.username.focus()},methods:{checkValidEmail:function(){var e=this;axios.post("/api/is-valid-email",{email:this.reset_email}).then(function(t){var o=t.data;return e.invalid_email=!o}).catch(function(e){return console.log(e)})},submitLogin:function(){var e=this;this.error=!1,fetch("/api/reminder-hash",{method:"post",headers:{"content-type":"application/json"},body:JSON.stringify({username:this.username,password:this.password})}).then(function(e){return e.json()}).then(function(t){var o=localStorage.getItem(t);axios.post("/login",{username:e.username,password:e.password,_token:e.csrf,step:e.step,reminded:o||""}).then(function(t){var o=t.data;o.secret?(e.secret=o.secret,e.url=o.url):o.recovery?(console.log(o.recovery),e.recovery=!0,e.codes=o.recovery):window.location.href=o}).catch(function(t){return e.error=!0})})},loginMfa:function(){var e=this;axios.post("/login",{username:this.username,password:this.password,_token:this.csrf,step:this.step,twofa_code:this.digit1+this.digit2+this.digit3+this.digit4+this.digit5+this.digit6}).then(function(t){var o=t.data;fetch("/api/reminder-hash",{method:"post",headers:{"content-type":"application/json"},body:JSON.stringify({username:e.username,password:e.password})}).then(function(e){return e.json()}).then(function(t){localStorage.setItem(t,btoa(e.username+":"+Date.now())),o.recovery?(e.recovery=!0,e.codes=o.recovery):window.location.href=o})}).catch(function(t){return e.error=!0})},confirmSavedRecoveryCodes:function(){var e=this;axios.post("/api/login-2fa-restore-codes",{code1:this.codes.code1,code2:this.codes.code2,step:this.step?"/store/cart?step="+this.step:null}).then(function(e){var t=e.data;return window.location.href=t}).catch(function(t){return e.error=!0})},recoverAccount:function(){var e=this;axios.post("/api/2fa-restore-account",{username:this.username,password:this.password,code1:this.code1,code2:this.code2}).then(function(){e.recovery=!1,e.recover_account=!1,e.secret=null,e.error=null}).catch(function(t){return e.error=!0})},digitInput:function(e){if("Backspace"===e.key&&""===e.target.value){e.preventDefault();var t=e.target.previousElementSibling;t&&(t.value="",t.focus())}if("Backspace"!==e.key){var o=e.target.nextElementSibling;o&&""!==e.target.value&&o.focus()}},copyCodes:function(e){e.preventDefault(),navigator.clipboard.writeText(this.codes.code1+","+this.codes.code2)},downloadCodes:function(e){e.preventDefault();var t=this.codes.code1+"\n"+this.codes.code2;this.downloadCSV(t,"my-2fa-restore-codes.csv")},downloadCSV:function(e,t){var o=new Blob([e],{type:"text/csv;charset=utf-8;"});if(navigator.msSaveBlob)navigator.msSaveBlob(o,t);else{var i=document.createElement("a");if(void 0!==i.download){var r=URL.createObjectURL(o);i.setAttribute("href",r),i.setAttribute("download",t),i.style.visibility="hidden",document.body.appendChild(i),i.click(),document.body.removeChild(i)}}}}}},40:function(e,t,o){e.exports=o("C7U8")},C7U8:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o("wY4d"),r=o.n(i);if(Vue.component("login",r.a),document.getElementById("login"))new Vue({el:"#login",data:{login_popup:!1,step:null},created:function(){var e=this;this.eventHub.$on("show-login",function(t){e.login_popup=!0,e.step=t})},beforeDestroy:function(){this.eventHub.$off("show-login")}})},RY9k:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"overlay"},[o("div",{staticClass:"login-modal"},[e.secret||e.recovery?e.recovery?[e.recover_account?[o("h2",[e._v("Recover 2FA Account "),o("a",{staticClass:"close",attrs:{href:"#"},on:{click:function(t){return e.$emit("close")}}},[e._v("X")])]),e._v(" "),o("div",{staticClass:"form-group"},[e._v("\n Enter your login credentials and saved recovery codes.\n ")]),e._v(" "),o("div",{staticClass:"form-group clearfix"},[o("input",{directives:[{name:"model",rawName:"v-model",value:e.username,expression:"username"}],staticClass:"form-control",attrs:{type:"text",placeholder:"Username",required:""},domProps:{value:e.username},on:{input:function(t){t.target.composing||(e.username=t.target.value)}}})]),e._v(" "),o("div",{staticClass:"form-group clearfix"},[o("input",{directives:[{name:"model",rawName:"v-model",value:e.password,expression:"password"}],staticClass:"form-control",attrs:{type:"password",placeholder:"Password",required:""},domProps:{value:e.password},on:{input:function(t){t.target.composing||(e.password=t.target.value)}}})]),e._v(" "),o("div",{staticClass:"form-group clearfix"},[o("input",{directives:[{name:"model",rawName:"v-model",value:e.code1,expression:"code1"}],staticClass:"form-control",attrs:{type:"text",placeholder:"Code1",required:""},domProps:{value:e.code1},on:{input:function(t){t.target.composing||(e.code1=t.target.value)}}})]),e._v(" "),o("div",{staticClass:"form-group clearfix"},[o("input",{directives:[{name:"model",rawName:"v-model",value:e.code2,expression:"code2"}],staticClass:"form-control",attrs:{type:"text",placeholder:"Code2",required:""},domProps:{value:e.code2},on:{input:function(t){t.target.composing||(e.code2=t.target.value)}}})]),e._v(" "),o("div",{staticClass:"form-group",staticStyle:{"margin-top":"35px"}},[o("button",{staticClass:"btn btn-primary btn-block",on:{click:function(t){return e.recoverAccount()}}},[e._v("Recover Account")])])]:[o("h2",[e._v("Save your recovery codes "),o("a",{staticClass:"close",attrs:{href:"#"},on:{click:function(t){return e.$emit("close")}}},[e._v("X")])]),e._v(" "),o("div",{staticClass:"form-group"},[e._v("\n Saving your recovery codes is important in case you lose your device with your authenticator or\n are switching to a new device or authenticator. In order for us to verify you we require the two\n codes below in order to reset your 2FA.\n ")]),e._v(" "),o("div",{staticClass:"form-group clearfix"},[o("b",[e._v("Your Recovery Codes")]),e._v(" "),o("br"),e._v(" "),o("span",{staticStyle:{"font-size":"13px"},domProps:{textContent:e._s(e.codes.code1)}}),e._v(" "),o("br"),e._v(" "),o("span",{staticStyle:{"font-size":"13px"},domProps:{textContent:e._s(e.codes.code2)}})]),e._v(" "),o("div",{staticClass:"form-group clearfix"},[o("a",{staticClass:"underline",staticStyle:{"font-size":"13px"},attrs:{href:"#"},on:{click:function(t){return e.copyCodes(t)}}},[e._v("Copy\n Codes")]),e._v(" "),o("a",{staticClass:"underline",staticStyle:{"font-size":"13px","margin-left":"25px"},attrs:{href:"#"},on:{click:function(t){return e.downloadCodes(t)}}},[e._v("Download Codes")])]),e._v(" "),o("div",{staticClass:"form-group",staticStyle:{"margin-top":"35px"}},[o("button",{staticClass:"btn btn-primary btn-block",attrs:{id:"verify_button"},on:{click:function(t){return e.confirmSavedRecoveryCodes()}}},[e._v("I have\n saved\n the codes\n ")])])]]:[o("div",{staticClass:"form-group"},[o("h2",[e._v("Please enter your authentication code. "),o("a",{staticClass:"close",attrs:{href:"#"},on:{click:function(t){return e.$emit("close")}}},[e._v("X")])])]),e._v(" "),"mfa"!==e.secret?[o("div",{staticClass:"form-group",staticStyle:{display:"flex"}},[o("div",{staticClass:"col-sm-5 no-padding-left-right",domProps:{innerHTML:e._s(e.secret)}}),e._v(" "),o("div",{staticClass:"col-sm-7"},[e._v("To pair your authenticator app, scan the QRCode and enter the six-digit code.")])])]:e._e(),e._v(" "),o("div",{staticClass:"form-group clearfix"},[o("div",{staticClass:"verification-code-input"},[o("input",{directives:[{name:"model",rawName:"v-model",value:e.digit1,expression:"digit1"}],attrs:{type:"text",maxlength:"1",required:"",autofocus:"",autocomplete:"off"},domProps:{value:e.digit1},on:{keyup:function(t){return e.digitInput(t)}
1,input:function(t){t.target.composing||(e.digit1=t.target.value)}}}),e._v(" "),o("input",{directives:[{name:"model",rawName:"v-model",value:e.digit2,expression:"digit2"}],attrs:{type:"text",maxlength:"1",required:"",autocomplete:"off"},domProps:{value:e.digit2},on:{keyup:function(t){return e.digitInput(t)},input:function(t){t.target.composing||(e.digit2=t.target.value)}}}),e._v(" "),o("input",{directives:[{name:"model",rawName:"v-model",value:e.digit3,expression:"digit3"}],attrs:{type:"text",maxlength:"1",required:"",autocomplete:"off"},domProps:{value:e.digit3},on:{keyup:function(t){return e.digitInput(t)},input:function(t){t.target.composing||(e.digit3=t.target.value)}}}),e._v(" "),o("input",{directives:[{name:"model",rawName:"v-model",value:e.digit4,expression:"digit4"}],attrs:{type:"text",maxlength:"1",required:"",autocomplete:"off"},domProps:{value:e.digit4},on:{keyup:function(t){return e.digitInput(t)},input:function(t){t.target.composing||(e.digit4=t.target.value)}}}),e._v(" "),o("input",{directives:[{name:"model",rawName:"v-model",value:e.digit5,expression:"digit5"}],attrs:{type:"text",maxlength:"1",required:"",autocomplete:"off"},domProps:{value:e.digit5},on:{keyup:function(t){return e.digitInput(t)},input:function(t){t.target.composing||(e.digit5=t.target.value)}}}),e._v(" "),o("input",{directives:[{name:"model",rawName:"v-model",value:e.digit6,expression:"digit6"}],attrs:{type:"text",maxlength:"1",required:"",autocomplete:"off"},domProps:{value:e.digit6},on:{keyup:function(t){return e.digitInput(t)},input:function(t){t.target.composing||(e.digit6=t.target.value)}}})])]),e._v(" "),e.url?o("div",{staticClass:"form-group clearfix"},[e._v("\n To manually add to your authenticator when on the same device click "),o("a",{staticClass:"underline",staticStyle:{"text-decoration":"underline !important"},attrs:{href:e.url,target:"_blank"}},[e._v("HERE")]),e._v(".\n ")]):e._e(),e._v(" "),o("div",{staticClass:"form-group"},[o("button",{staticClass:"btn btn-primary btn-block",staticStyle:{width:"100%"},attrs:{id:"verify_button"},on:{click:function(t){return e.loginMfa()}}},[e._v("Verify\n ")])]),e._v(" "),o("div",{staticClass:"form-group"},[o("a",{staticClass:"underline",attrs:{href:"#"},on:{click:function(t){e.recover_account=!0,e.recovery=!0}}},[e._v("Recover Account")])])]:[e.login_form?o("div",[o("h2",{staticClass:"header clearfix"},[e._v("Log In To Your Account "),o("a",{staticClass:"close",attrs:{href:"#"},on:{click:function(t){return e.$emit("close")}}},[e._v("X")])]),e._v(" "),o("input",{directives:[{name:"model",rawName:"v-model",value:e.csrf,expression:"csrf"}],attrs:{type:"hidden",name:"_token"},domProps:{value:e.csrf},on:{input:function(t){t.target.composing||(e.csrf=t.target.value)}}}),e._v(" "),o("p",[e._v("Â ")]),e._v(" "),o("div",{staticClass:"form-group"},[o("input",{directives:[{name:"model",rawName:"v-model",value:e.username,expression:"username"}],ref:"username",staticClass:"form-control",attrs:{type:"text",placeholder:"Email or Username",name:"username",required:"",autofocus:""},domProps:{value:e.username},on:{keypress:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.submitLogin()},input:function(t){t.target.composing||(e.username=t.target.value)}}})]),e._v(" "),o("div",{staticClass:"form-group"},[o("input",{directives:[{name:"model",rawName:"v-model",value:e.password,expression:"password"}],staticClass:"form-control",attrs:{type:"password",placeholder:"Password",name:"password",required:""},domProps:{value:e.password},on:{keypress:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.submitLogin()},input:function(t){t.target.composing||(e.password=t.target.value)}}})]),e._v(" "),e.error?o("div",{staticClass:"text-danger"},[e._v("We do not have a record of submitted credentials.")]):e._e(),e._v(" "),o("p",[o("a",{staticClass:"text-primary forgot-pwd",attrs:{href:"#"},on:{click:function(t){e.login_form=!1}}},[e._v("Forgot your password?")])]),e._v(" "),o("div",{staticClass:"form-group"},[o("button",{staticClass:"btn btn-primary btn-block w-100",on:{click:function(t){return e.submitLogin()},keypress:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.submitLogin()}}}
1,[e._v("Login\n ")])])]):e._e(),e._v(" "),e.login_form?e._e():o("form",{attrs:{method:"post",action:"/password/email"}},[o("h2",{staticClass:"header clearfix"},[e._v("Forgot your password? "),o("a",{staticClass:"close",attrs:{href:"#"},on:{click:function(t){return e.$emit("close")}}},[e._v("X")])]),e._v(" "),o("p",[e._v("Don't worry, we'll send you an email to reset your password.")]),e._v(" "),o("p",[e._v("Â ")]),e._v(" "),o("input",{directives:[{name:"model",rawName:"v-model",value:e.csrf,expression:"csrf"}],attrs:{type:"hidden",name:"_token"},domProps:{value:e.csrf},on:{input:function(t){t.target.composing||(e.csrf=t.target.value)}}}),e._v(" "),o("div",{staticClass:"form-group"},[o("input",{directives:[{name:"model",rawName:"v-model",value:e.reset_email,expression:"reset_email"}],staticClass:"form-control",attrs:{type:"text",name:"email",placeholder:"Your Email",required:""},domProps:{value:e.reset_email},on:{input:[function(t){t.target.composing||(e.reset_email=t.target.value)},function(t){return e.checkValidEmail()}]}})]),e._v(" "),o("p",[e._v("Â ")]),e._v(" "),o("div",{staticClass:"form-group"},[o("button",{staticClass:"btn btn-primary btn-block w-100",attrs:{disabled:e.invalid_email}},[e._v("Reset Password")])])])]],2)])},staticRenderFns:[]}},qtwR:function(e,t,o){var i=o("wniC");"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);o("rjj0")("6aaf2f55",i,!0,{})},wY4d:function(e,t,o){var i=o("VU/8")(o("+Obs"),o("RY9k"),!1,function(e){o("qtwR")},"data-v-242dbd8c",null);e.exports=i.exports},wniC:function(e,t,o){(e.exports=o("FZ+f")(!1)).push([e.i,".overlay[data-v-242dbd8c]{position:fixed;top:0;left:0;right:0;bottom:0;background-color:hsla(0,0%,50%,.85);z-index:9999;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.login-modal[data-v-242dbd8c]{width:400px;min-height:300px;background-color:#fff;z-index:10000;padding:20px}.login-modal .close[data-v-242dbd8c]{float:right;color:#777}.login-modal .header[data-v-242dbd8c]{font-weight:400;font-size:16px;text-align:center;color:var(--primary_color)}.site-navbar a .text-primary[data-v-242dbd8c]{color:var(--primary_color);text-decoration:underline!important}.forgot-pwd[data-v-242dbd8c]{font-size:12px}.verification-code-input[data-v-242dbd8c]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.verification-code-input>input[data-v-242dbd8c]{width:50px;height:50px;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;font-size:24px;border:1px solid #ccc;border-radius:5px;text-align:center}",""])}},[40]);
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.