(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["LoginWithToken"],{"3d79":function(t,e,n){},"4a16":function(t,e,n){"use strict";n("3d79")},e45b:function(t,e,n){"use strict";n.r(e);var o=n("0798"),r=n("8336"),a=n("b0af"),i=n("99d9"),s=n("a523"),c=n("169a"),u=n("adda"),l=n("8e36"),f=function(){var t=this,e=t._self._c;t._self._setupProxy;return e(s["a"],[e(c["a"],{attrs:{persistent:"","max-width":"400"},model:{value:t.dialog,callback:function(e){t.dialog=e},expression:"dialog"}},[e(a["a"],{staticClass:"mx-auto pa-4 moreRadius button",attrs:{"max-width":"400",elevation:"0",color:"white"}},[t.loading?[e(i["c"],{staticClass:"d-flex flex-column pa-0"},[e("span",{staticClass:"title my-3 black--text"},[t._v(t._s(t.$t("pleaseWait3")))]),e("span",{staticClass:"body-1 black--text"},[t._v(t._s(t.$t("loggingTxt")))])]),e(i["a"],{staticClass:"justify-center px-0"},[e(l["a"],{attrs:{color:"buttons",rounded:"",indeterminate:""}})],1)]:[t.user?t._e():e(i["c"],{class:t.$vuetify.breakpoint.mobile?"":"pb-1"},[e("div",{staticClass:"d-flex flex-column justify-center align-center pt-2 pb-3",class:t.$vuetify.breakpoint.mobile?"flex-column":""},[e(u["a"],{staticClass:"mb-5",attrs:{src:t.otherImageUrl("warn.png"),width:"150px",height:"auto"}}),e(o["a"],{staticClass:"body-1 rounded-lg py-3",attrs:{text:"",color:"#FF791F"}},[e("span",{staticClass:"d-flex align-center"},[e("i",{staticClass:"icon-info-circle icon-18",class:t.$vuetify.rtl?"pl-2":"pr-2"}),e("span",{staticClass:"font-size-13"},[t._v(" "+t._s(t.authErr)+" ")])])]),e(r["a"],{staticClass:"moreRadius button",attrs:{width:t.$vuetify.breakpoint.mobile?"48%":162,height:"44",depressed:""},on:{click:t.backToHome}},[t._v(" "+t._s(t.$t("backToHome"))+" ")])],1)])]],2)],1)],1)},p=[],h=n("60a3"),d=n("e653"),b=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),y=function(t,e,n,o){var r,a=arguments.length,i=a<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)i=Reflect.decorate(t,e,n,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(i=(a<3?r(i):a>3?r(e,n,i):r(e,n))||i);return a>3&&i&&Object.defineProperty(e,n,i),i},g=function(t,e,n,o){function r(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,a){function i(t){try{c(o.next(t))}catch(e){a(e)}}function s(t){try{c(o["throw"](t))}catch(e){a(e)}}function c(t){t.done?n(t.value):r(t.value).then(i,s)}c((o=o.apply(t,e||[])).next())}))},w=function(t,e){var n,o,r,a,i={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(t){return function(e){return c([t,e])}}function c(a){if(n)throw new TypeError("Generator is already executing.");while(i)try{if(n=1,o&&(r=2&a[0]?o["return"]:a[0]?o["throw"]||((r=o["return"])&&r.call(o),0):o.next)&&!(r=r.call(o,a[1])).done)return r;switch(o=0,r&&(a=[2&a[0],r.value]),a[0]){case 0:case 1:r=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,o=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(r=i.trys,!(r=r.length>0&&r[r.length-1])&&(6===a[0]||2===a[0])){i=0;continue}if(3===a[0]&&(!r||a[1]>r[0]&&a[1]<r[3])){i.label=a[1];break}if(6===a[0]&&i.label<r[1]){i.label=r[1],r=a;break}if(r&&i.label<r[2]){i.label=r[2],i.ops.push(a);break}r[2]&&i.ops.pop(),i.trys.pop();continue}a=e.call(t,i)}catch(s){a=[6,s],o=0}finally{n=r=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}},m=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.parseToken="",e.loading=!0,e.dialog=!0,e}return b(e,t),e.prototype.mounted=function(){this.parseToken=document.getElementsByName("Token")[0].value,this.init()},e.prototype.init=function(){return g(this,void 0,void 0,(function(){var t;return w(this,(function(e){switch(e.label){case 0:return e.trys.push([0,4,,5]),Object(d["b"])("auth_token",this.parseToken),[4,this.$store.dispatch("authStore/getUserInfo")];case 1:return t=e.sent(),[4,this.$store.dispatch("authStore/getCurrency")];case 2:return e.sent(),[4,this.$store.dispatch("authStore/refreshToken")];case 3:return e.sent(),this.user&&"done"==t&&this.backToHome(),console.log("this.loading",this.loading),[3,5];case 4:throw e.sent(),this.$store.commit("authStore/setAuthErr",this.$t("informationIsIncorrect")),this.loading=!1,new Error(this.$t("informationIsIncorrect"));case 5:return[2]}}))}))},Object.defineProperty(e.prototype,"user",{get:function(){return this.$store.getters["authStore/user"]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"authErr",{get:function(){return this.$store.getters["authStore/authErr"]},enumerable:!1,configurable:!0}),e.prototype.backToHome=function(){window.location.href="".concat(window.location.origin).concat(this.lang,"/")},Object.defineProperty(e.prototype,"lang",{get:function(){var t=this.$store.getters["authStore/base"],e=this.$store.getters["authStore/siteLanguage"],n="";return t.siteLanguage!==e&&(n="/"+e),n},enumerable:!1,configurable:!0}),e.prototype.otherImageUrl=function(t){return window.location.origin+"/wp-content/plugins/citynet/assets/other/"+t},e=y([Object(h["a"])({})],e),e}(h["d"]),v=m,k=v,x=(n("4a16"),n("2877")),_=Object(x["a"])(k,f,p,!1,null,"0e4d5a7b",null);e["default"]=_.exports}}]);