"use strict";new VueW3CValid({el:"#stm-listing-login-register"}),new Vue({el:"#stm-listing-login-register",data:{loading:!1,login:"",password:"",message:null,remember:0,status:"",errors:[]},methods:{logIn:function(){var n,t=this;t.loading=!0,t.message=null,n={login:t.login,password:t.password,remember:t.remember},t.errors=[],this.$http.post(currentAjaxUrl+"?action=stm_listing_login",n).then(function(e){t.loading=!1,t.message=e.body.message,t.status=e.body.status,e.body.errors&&(t.errors=e.body.errors),t.status=="success"&&location.reload()})}}})