(window.webpackJsonp=window.webpackJsonp||[]).push([[6],{124:function(t,e,n){"use strict";n.r(e);var r=n(573),o={data:function(){return{snackbar:!1,text:null,texts:[],color:null}},created:function(){var t=this;this.$nuxt.$on("open_snackbar",(function(data){Array.isArray(data.text)?(t.texts=data.text,t.text=null):(t.text=data.text,t.texts=[]),data.color?t.color=data.color:t.color=null,t.snackbar=!0}))}},c=n(40),component=Object(c.a)(o,(function(){var t=this,e=t._self._c;return e(r.a,{attrs:{color:t.color},model:{value:t.snackbar,callback:function(e){t.snackbar=e},expression:"snackbar"}},[e("div",{staticClass:"text-center"},[t._v("\n "+t._s(t.text)+"\n "),t._l(t.texts,(function(n,r){return e("div",{key:r},[t._v(t._s(n))])}))],2)])}),[],!1,null,null,null);e.default=component.exports},152:function(t,e,n){"use strict";e.a={}},195:function(t,e,n){"use strict";n(12),n(53),n(61),n(15),n(49),n(44),n(77),n(43),n(31),n(4),n(27),n(42),n(67),n(45),n(13),n(46),n(52);var r=n(1);function o(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,a){if(t){if("string"==typeof t)return c(t,a);var e={}.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?c(t,a):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var f,a=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){u=!0,f=t},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw f}}}}function c(t,a){(null==a||a>t.length)&&(a=t.length);for(var e=0,n=Array(a);e0},canPrefetch:function(){var t=navigator.connection;return!(this.$nuxt.isOffline||t&&((t.effectiveType||"").includes("2g")||t.saveData))},getPrefetchComponents:function(){return this.$router.resolve(this.to,this.$route,this.append).resolved.matched.map((function(t){return t.components.default})).filter((function(t){return"function"==typeof t&&!t.options&&!t.__prefetched}))},prefetchLink:function(){if(this.canPrefetch()){h.unobserve(this.$el);var t,e=o(this.getPrefetchComponents());try{for(e.s();!(t=e.n()).done;){var n=t.value,r=n();r instanceof Promise&&r.catch((function(){})),n.__prefetched=!0}}catch(t){e.e(t)}finally{e.f()}}}}}},235:function(t,e,n){"use strict";n.r(e);var r=n(562),o=n(572),c=n(232),f=n(231),l=n(151),h=n(129),d=n(41),m=n(571),v={data:function(){return{count:0,ips:[],dialog:!1}},methods:{logout:function(){this.$auth.logout()},showIps:function(){0!==this.ips.length&&(this.dialog=!0)}},sockets:{updateCountOfConnectedUsers:function(data){this.count=data.count,this.ips=data.ips}},created:function(){var t=this;this.$socket.emit("getCountAndIps",(function(data){t.count=data.count,t.ips=data.ips}))}},y=n(40),component=Object(y.a)(v,(function(){var t=this,e=t._self._c;return e(m.a,{attrs:{permanent:"","expand-on-hover":"",fixed:""}},[e("div",{staticClass:"d-flex flex-column justify-space-between",staticStyle:{height:"100%"}},[e(f.a,{attrs:{nav:"",dense:""}},[e(l.a,{attrs:{link:"",to:"/offices"}},[e(h.a,[e(c.a,[t._v("mdi-office-building")])],1),t._v(" "),e(d.b,[t._v("Офисы")])],1),t._v(" "),e(l.a,{attrs:{link:"",to:"/orders"}},[e(h.a,[e(c.a,[t._v("mdi-credit-card-outline")])],1),t._v(" "),e(d.b,[t._v("Заказы")])],1),t._v(" "),e(l.a,{attrs:{link:"",to:"/texts"}},[e(h.a,[e(c.a,[t._v("mdi-format-color-text")])],1),t._v(" "),e(d.b,[t._v("Текста")])],1),t._v(" "),e(l.a,{attrs:{link:"",to:"/clients"}},[e(h.a,[e(c.a,[t._v("mdi-car-traction-control")])],1),t._v(" "),e(d.b,[t._v("Трекер действий")])],1)],1),t._v(" "),e("div",[e(f.a,{attrs:{nav:"",dense:""}},[e(l.a,{on:{click:t.showIps}},[e(h.a,[e(c.a,[t._v(t._s(t.count))])],1),t._v(" "),e(d.b,[t._v("Пользователи")])],1),t._v(" "),e(l.a,{on:{click:t.logout}},[e(h.a,[e(c.a,[t._v("mdi-exit-to-app")])],1),t._v(" "),e(d.b,[t._v("Выйти")])],1)],1)],1)],1),t._v(" "),e(o.a,{attrs:{"max-width":"300"},model:{value:t.dialog,callback:function(e){t.dialog=e},expression:"dialog"}},[e(r.a,[e(r.a,{staticClass:"elevation-2 pa-2 mb-1"},t._l(t.ips,(function(n,r){return e("div",{key:r,staticClass:"elevation-2 pa-2"},[t._v(t._s(n))])})),0)],1)],1)],1)}),[],!1,null,null,null);e.default=component.exports},236:function(t,e,n){"use strict";n.r(e);var r=n(238),o=n(232),c=n(231),f=n(151),l=n(234),h=n(41),d=n(571),m={data:function(){return{drawer:!1}},methods:{goTo:function(t){this.$nuxt.$emit("go_to",t),this.drawer=!1},openPayDialog:function(){this.$nuxt.$emit("open_pay_dialog")}},created:function(){var t=this;this.$nuxt.$on("open_mobile_menu",(function(){t.drawer=!0}))}},v=n(40),component=Object(v.a)(m,(function(){var t=this,e=t._self._c;return e(d.a,{staticStyle:{"z-index":"99"},attrs:{app:"",temporary:"",touchless:"",right:"",color:"rgba(0, 0, 0, 0.891)",height:t.$store.state.screenHeight},scopedSlots:t._u([{key:"append",fn:function(){return[e("div",{staticClass:"d-flex justify-center pa-2"},[e(r.a,{staticStyle:{width:"100%"},attrs:{text:"",dark:""},on:{click:function(e){t.drawer=!1}}},[e(o.a,[t._v("mdi-close")])],1)],1)]},proxy:!0}]),model:{value:t.drawer,callback:function(e){t.drawer=e},expression:"drawer"}},[e(c.a,{attrs:{nav:"",dense:"",dark:""}},[e(l.a,{attrs:{"active-class":"white--text text--accent-4"}},[e(f.a,[e(h.b,{on:{click:function(e){return t.goTo("about")}}},[t._v("О КОМПЛЕКСЕ")])],1),t._v(" "),e(f.a,[e(h.b,{on:{click:function(e){return t.goTo("gallery")}}},[t._v("ФОТОГАЛЕРЕЯ")])],1),t._v(" "),e(f.a,[e(h.b,{on:{click:function(e){return t.goTo("offices")}}},[t._v("ОФИСЫ И ПОМЕЩЕНИЯ")])],1),t._v(" "),e(f.a,[e(h.b,{on:{click:function(e){return t.goTo("offices")}}},[t._v("КОВОРКИНГ")])],1),t._v(" "),e(f.a,[e(h.b,{on:{click:function(e){return t.goTo("contacts")}}},[t._v("КОНТАКТЫ")])],1),t._v(" "),e(f.a,[e(h.b,{on:{click:function(e){return t.openPayDialog()}}},[t._v("ОПЛАТИТЬ")])],1)],1)],1)],1)}),[],!1,null,null,null);e.default=component.exports},237:function(t,e,n){"use strict";n.r(e);var r=n(576),o=n(238),c=n(232),f=n(574),l=n(575),h=n(577),d=(n(31),{data:function(){return{active_tab:3,tabs:[{index:0,name:"О КОМПАНИИ",id:"about"},{index:1,name:"ФОТОГАЛЛЕРЕЯ",id:"gallery"},{index:2,name:"ОФИСЫ И ПОМЕЩЕНИЯ",id:"offices"},{index:3,name:"КОВОРКИНГ",id:"offices"},{index:4,name:"КОНТАКТЫ",id:"contacts"}]}},methods:{goTo:function(t){this.$nuxt.$emit("go_to",t)},openPayDialog:function(){this.$nuxt.$emit("open_pay_dialog")}}}),m=n(40),component=Object(m.a)(d,(function(){var t=this,e=t._self._c;return e(r.a,{staticStyle:{"background-color":"rgba(0, 0, 0, 0.441)","border-bottom":"1px solid rgba(255, 255, 255, 0.441)","z-index":"10"},attrs:{app:"",dark:"",height:"80","hide-on-scroll":""}},[e("h1",{staticStyle:{"min-width":"250px"}},[t._v("\n БИЗНЕС-ЦЕНТР НА\n "),e("br"),t._v(" "),e("span",{staticClass:"orangespan"},[t._v("КЛАРЫ ЦЕТКИН")])]),t._v(" "),e(f.a),t._v(" "),t.$vuetify.breakpoint.lg||t.$vuetify.breakpoint.xl?e(h.a,{attrs:{right:""},model:{value:t.active_tab,callback:function(e){t.active_tab=e},expression:"active_tab"}},[t._l(t.tabs,(function(n){return e(l.a,{key:n.index,on:{click:function(e){return t.goTo(n.id)}}},[t._v("\n "+t._s(n.name)+"\n ")])})),t._v(" "),e(l.a,{on:{click:function(e){return t.openPayDialog()}}},[t._v(" ОПЛАТИТЬ ")])],2):t._e(),t._v(" "),t.$vuetify.breakpoint.xs||t.$vuetify.breakpoint.sm||t.$vuetify.breakpoint.md?e(o.a,{attrs:{icon:""},on:{click:function(e){return t.$nuxt.$emit("open_mobile_menu")}}},[e(c.a,[t._v("mdi-menu")])],1):t._e()],1)}),[],!1,null,null,null);e.default=component.exports},305:function(t,e,n){var content=n(421);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(6).default)("d93fca10",content,!0,{sourceMap:!1})},306:function(t,e,n){var content=n(423);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(6).default)("752b27d3",content,!0,{sourceMap:!1})},330:function(t,e,n){"use strict";var r=n(23),o=(n(89),n(4),n(52),n(1)),c=n(7),f=window.__NUXT__;function l(){if(!this._hydrated)return this.$fetch()}function h(){if((t=this).$vnode&&t.$vnode.elm&&t.$vnode.elm.dataset&&t.$vnode.elm.dataset.fetchKey){var t;this._hydrated=!0,this._fetchKey=this.$vnode.elm.dataset.fetchKey;var data=f.fetch[this._fetchKey];if(data&&data._error)this.$fetchState.error=data._error;else for(var e in data)o.default.set(this.$data,e,data[e])}}function d(){var t=this;return this._fetchPromise||(this._fetchPromise=m.call(this).then((function(){delete t._fetchPromise}))),this._fetchPromise}function m(){return v.apply(this,arguments)}function v(){return(v=Object(r.a)(regeneratorRuntime.mark((function t(){var e,n,r,o=this;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this.$nuxt.nbFetching++,this.$fetchState.pending=!0,this.$fetchState.error=null,this._hydrated=!1,e=null,n=Date.now(),t.prev=6,t.next=9,this.$options.fetch.call(this);case 9:t.next=15;break;case 11:t.prev=11,t.t0=t.catch(6),e=Object(c.p)(t.t0);case 15:if(!((r=this._fetchDelay-(Date.now()-n))>0)){t.next=19;break}return t.next=19,new Promise((function(t){return setTimeout(t,r)}));case 19:this.$fetchState.error=e,this.$fetchState.pending=!1,this.$fetchState.timestamp=Date.now(),this.$nextTick((function(){return o.$nuxt.nbFetching--}));case 23:case"end":return t.stop()}}),t,this,[[6,11]])})))).apply(this,arguments)}e.a={beforeCreate:function(){Object(c.l)(this)&&(this._fetchDelay="number"==typeof this.$options.fetchDelay?this.$options.fetchDelay:200,o.default.util.defineReactive(this,"$fetchState",{pending:!1,error:null,timestamp:Date.now()}),this.$fetch=d.bind(this),Object(c.a)(this,"created",h),Object(c.a)(this,"beforeMount",l))}}},332:function(t,e,n){"use strict";n.r(e);var r=n(238),o=n(562),c=n(572),f=n(232),l={data:function(){return{dialog:!1}},created:function(){var t=this;this.$nuxt.$on("open_sign_to_bots_dialog",(function(){t.dialog=!0}))},methods:{openWA:function(){window.open("https://wa.me/79000560606?text=start","_blank")},openTG:function(){window.open("https://t.me/centkincenterbot?text=start","_blank")}}},h=n(40),component=Object(h.a)(l,(function(){var t=this,e=t._self._c;return e(c.a,{attrs:{"max-width":"350"},model:{value:t.dialog,callback:function(e){t.dialog=e},expression:"dialog"}},[e(o.a,{staticClass:"d-flex flex-column justify-center align-center pa-5"},[e("div",{staticClass:"headline grey--text"},[t._v("\n Благодарим вас\n ")]),t._v(" "),e(f.a,{staticClass:"my-5",attrs:{"x-large":"",color:"#2DD449"}},[t._v("mdi-checkbox-marked-circle-outline")]),t._v(" "),e("div",{staticClass:"d-flex flex-column align-center rounded-lg pa-3 elevation-5"},[e("div",{staticClass:"caption text-center"},[t._v("\n Пожалуйста, напишите нашим виртуальным помощникам. Они будут оповещать вас при окончании срока аренды и там же можно получить все необходимые документы\n ")]),t._v(" "),e(r.a,{staticClass:"mt-2",attrs:{color:"#2DD449",dark:"",width:"180"},on:{click:t.openWA}},[e(f.a,{staticClass:"mr-2"},[t._v("mdi-whatsapp")]),t._v("\n WhatsApp\n ")],1),t._v(" "),e("div",{staticClass:"my-2 caption"},[t._v("\n или\n ")]),t._v(" "),e(r.a,{attrs:{color:"#2AA3DC",dark:"",width:"180"},on:{click:t.openTG}},[e(f.a,{staticClass:"mr-2"},[t._v("mdi-telegram")]),t._v("\n Telegram\n ")],1)],1),t._v(" "),e("div",{staticClass:"d-flex justify-center mt-5"},[e(r.a,{attrs:{text:"",small:""},on:{click:function(e){t.dialog=!1}}},[t._v("Закрыть")])],1)],1)],1)}),[],!1,null,null,null);e.default=component.exports},344:function(t,e,n){n(345),t.exports=n(346)},346:function(t,e,n){"use strict";n.r(e),function(t){var e=n(17),r=n(23),o=(n(204),n(353),n(365),n(367),n(89),n(12),n(53),n(61),n(36),n(15),n(49),n(44),n(77),n(43),n(31),n(16),n(4),n(27),n(42),n(67),n(45),n(379),n(384),n(13),n(46),n(52),n(1)),c=n(318),f=n(152),l=n(7),h=n(87),d=n(330),m=n(195);function v(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,a){if(t){if("string"==typeof t)return y(t,a);var e={}.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?y(t,a):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var c,a=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){u=!0,c=t},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw c}}}}function y(t,a){(null==a||a>t.length)&&(a=t.length);for(var e=0,n=Array(a);e2?e-2:0),r=2;r=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var c,a=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){u=!0,c=t},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw c}}}}function f(t,a){(null==a||a>t.length)&&(a=t.length);for(var e=0,n=Array(a);e=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var c,a=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){u=!0,c=t},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw c}}}}function y(t,a){(null==a||a>t.length)&&(a=t.length);for(var e=0,n=Array(a);e1&&void 0!==arguments[1]?arguments[1]:[],r=v(t.$children||[]);try{for(r.s();!(e=r.n()).done;){var o=e.value;o.$fetch&&n.push(o),o.$children&&_(o,n)}}catch(t){r.e(t)}finally{r.f()}return n}function O(t,e){if(e||!t.options.__hasNuxtData){var n=t.options._originDataFn||t.options.data||function(){return{}};t.options._originDataFn=n,t.options.data=function(){var data=n.call(this,this);return this.$ssrContext&&(e=this.$ssrContext.asyncData[t.cid]),m(m({},data),e)},t.options.__hasNuxtData=!0,t._Ctor&&t._Ctor.options&&(t._Ctor.options.data=t.options.data)}}function $(t){return t.options&&t._Ctor===t||(t.options?(t._Ctor=t,t.extendOptions=t.options):(t=l.default.extend(t))._Ctor=t,!t.options.name&&t.options.__file&&(t.options.name=t.options.__file)),t}function C(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"components";return Array.prototype.concat.apply([],t.matched.map((function(t,r){return Object.keys(t[n]).map((function(o){return e&&e.push(r),t[n][o]}))})))}function j(t){return C(t,arguments.length>1&&void 0!==arguments[1]&&arguments[1],"instances")}function E(t,e){return Array.prototype.concat.apply([],t.matched.map((function(t,n){return Object.keys(t.components).reduce((function(r,o){return t.components[o]?r.push(e(t.components[o],t.instances[o],t,o,n)):delete t.components[o],r}),[])})))}function S(t,e){return Promise.all(E(t,function(){var t=Object(o.a)(regeneratorRuntime.mark((function t(n,r,o,c){var f,l;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("function"!=typeof n||n.options){t.next=11;break}return t.prev=1,t.next=4,n();case 4:n=t.sent,t.next=11;break;case 7:if(t.prev=7,t.t0=t.catch(1),t.t0&&"ChunkLoadError"===t.t0.name&&"undefined"!=typeof window&&window.sessionStorage){f=Date.now();try{(!(l=parseInt(window.sessionStorage.getItem("nuxt-reload")))||l+6e41&&void 0!==arguments[1]?arguments[1]:$,n=arguments.length>2?arguments[2]:void 0;return r.call(this,t,e,n)};var o=n.resolve.bind(n);return n.resolve=function(t,e,n){return"string"==typeof t&&(t=Object(x.c)(t)),o(t,e,n)},n}var E={name:"NuxtChild",functional:!0,props:{nuxtChildKey:{type:String,default:""},keepAlive:Boolean,keepAliveProps:{type:Object,default:void 0}},render:function(t,e){var n=e.parent,data=e.data,r=e.props,o=n.$createElement;data.nuxtChild=!0;for(var c=n,f=n.$nuxt.nuxt.transitions,l=n.$nuxt.nuxt.defaultTransition,h=0;n;)n.$vnode&&n.$vnode.data.nuxtChild&&h++,n=n.$parent;data.nuxtChildDepth=h;var d=f[h]||l,m={};S.forEach((function(t){void 0!==d[t]&&(m[t]=d[t])}));var v={};R.forEach((function(t){"function"==typeof d[t]&&(v[t]=d[t].bind(c))}));var y=v.beforeEnter;if(v.beforeEnter=function(t){if(window.$nuxt.$nextTick((function(){window.$nuxt.$emit("triggerScroll")})),y)return y.call(c,t)},!1===d.css){var w=v.leave;(!w||w.length<2)&&(v.leave=function(t,e){w&&w.call(c,t),c.$nextTick(e)})}var x=o("routerView",data);return r.keepAlive&&(x=o("keep-alive",{props:r.keepAliveProps},[x])),o("transition",{props:m,on:v},[x])}},S=["name","mode","appear","css","type","duration","enterClass","leaveClass","appearClass","enterActiveClass","enterActiveClass","leaveActiveClass","appearActiveClass","enterToClass","leaveToClass","appearToClass"],R=["beforeEnter","enter","afterEnter","enterCancelled","beforeLeave","leave","afterLeave","leaveCancelled","beforeAppear","appear","afterAppear","appearCancelled"],P=n(238),A=n(562),T={layout:"empty",props:{error:{type:Object,default:null}},data:function(){return{pageNotFound:"Страница не найдена",otherError:"Упс... Ошибочка"}},head:function(){return{title:404===this.error.statusCode?this.pageNotFound:this.otherError}},methods:{goHome:function(){"/"==this.$nuxt.$route.path?location.reload():this.$router.push("/")}}},F=(n(420),n(40)),M=Object(F.a)(T,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"d-flex justify-center align-center fullheight"},[e(A.a,{staticClass:"d-flex justify-center pa-2 block-center",attrs:{"max-width":"400","min-width":"300"}},[e("div",[404===t.error.statusCode?e("h1",[t._v("\n "+t._s(t.pageNotFound)+"\n ")]):e("h1",[t._v("\n "+t._s(t.otherError)+"\n ")]),t._v(" "),e(P.a,{staticClass:"orangebtn mt-7",attrs:{dark:"",block:"",height:"50px"},on:{click:t.goHome}},[t._v("\n ВЕРНУТЬСЯ НА САЙТ\n ")])],1)])],1)}),[],!1,null,"1674edac",null).exports,U=n(20),D=(n(42),{name:"Nuxt",components:{NuxtChild:E,NuxtError:M},props:{nuxtChildKey:{type:String,default:void 0},keepAlive:Boolean,keepAliveProps:{type:Object,default:void 0},name:{type:String,default:"default"}},errorCaptured:function(t){this.displayingNuxtError&&(this.errorFromNuxtError=t,this.$forceUpdate())},computed:{routerViewKey:function(){if(void 0!==this.nuxtChildKey||this.$route.matched.length>1)return this.nuxtChildKey||Object(k.c)(this.$route.matched[0].path)(this.$route.params);var t=Object(U.a)(this.$route.matched,1)[0];if(!t)return this.$route.path;var e=t.components.default;if(e&&e.options){var n=e.options;if(n.key)return"function"==typeof n.key?n.key(this.$route):n.key}return/\/$/.test(t.path)?this.$route.path:this.$route.path.replace(/\/$/,"")}},beforeCreate:function(){f.default.util.defineReactive(this,"nuxt",this.$root.$options.nuxt)},render:function(t){var e=this;return this.nuxt.err&&this.nuxt.errPageReady?this.errorFromNuxtError?(this.$nextTick((function(){return e.errorFromNuxtError=!1})),t("div",{},[t("h2","An error occurred while showing the error page"),t("p","Unfortunately an error occurred and while showing the error page another error occurred"),t("p","Error details: ".concat(this.errorFromNuxtError.toString())),t("nuxt-link",{props:{to:"/"}},"Go back to home")])):(this.displayingNuxtError=!0,this.$nextTick((function(){return e.displayingNuxtError=!1})),t(M,{props:{error:this.nuxt.err}})):t("NuxtChild",{key:this.routerViewKey,props:this.$props})}}),I=(n(53),n(61),n(49),n(43),n(52),{name:"NuxtLoading",data:function(){return{percent:0,show:!1,canSucceed:!0,reversed:!1,skipTimerCount:0,rtl:!1,throttle:200,duration:5e3,continuous:!1}},computed:{left:function(){return!(!this.continuous&&!this.rtl)&&(this.rtl?this.reversed?"0px":"auto":this.reversed?"auto":"0px")}},beforeDestroy:function(){this.clear()},methods:{clear:function(){clearInterval(this._timer),clearTimeout(this._throttle),clearTimeout(this._hide),this._timer=null},start:function(){var t=this;return this.clear(),this.percent=0,this.reversed=!1,this.skipTimerCount=0,this.canSucceed=!0,this.throttle?this._throttle=setTimeout((function(){return t.startTimer()}),this.throttle):this.startTimer(),this},set:function(t){return this.show=!0,this.canSucceed=!0,this.percent=Math.min(100,Math.max(0,Math.floor(t))),this},get:function(){return this.percent},increase:function(t){return this.percent=Math.min(100,Math.floor(this.percent+t)),this},decrease:function(t){return this.percent=Math.max(0,Math.floor(this.percent-t)),this},pause:function(){return clearInterval(this._timer),this},resume:function(){return this.startTimer(),this},finish:function(){return this.percent=this.reversed?0:100,this.hide(),this},hide:function(){var t=this;return this.clear(),this._hide=setTimeout((function(){t.show=!1,t.$nextTick((function(){t.percent=0,t.reversed=!1}))}),500),this},fail:function(t){return this.canSucceed=!1,this},startTimer:function(){var t=this;this.show||(this.show=!0),void 0===this._cut&&(this._cut=1e4/Math.floor(this.duration)),this._timer=setInterval((function(){t.skipTimerCount>0?t.skipTimerCount--:(t.reversed?t.decrease(t._cut):t.increase(t._cut),t.continuous&&(t.percent>=100||t.percent<=0)&&(t.skipTimerCount=1,t.reversed=!t.reversed))}),100)}},render:function(t){var e=t(!1);return this.show&&(e=t("div",{staticClass:"nuxt-progress",class:{"nuxt-progress-notransition":this.skipTimerCount>0,"nuxt-progress-failed":!this.canSucceed},style:{width:this.percent+"%",left:this.left}})),e}}),K=(n(422),Object(F.a)(I,undefined,undefined,!1,null,null,null).exports),L=(n(424),n(426),n(428),n(430),n(570)),N=n(235),B=n(124),Y={components:{MenuAdmin:N.default,Snackbar:B.default},created:function(){this.$store.dispatch("get_offices")}},z=Object(F.a)(Y,(function(){var t=this,e=t._self._c;return e(L.a,[e("MenuAdmin"),t._v(" "),e("nuxt"),t._v(" "),e("Snackbar")],1)}),[],!1,null,null,null),H=z.exports;installComponents(z,{MenuAdmin:n(235).default,Snackbar:n(124).default});var W=n(236),V=n(237),J=n(332),G={components:{MenuMobile:W.default,MenuDesktop:V.default,Snackbar:B.default,TYAndSighToBots:J.default},created:function(){var t=this;try{this.$store.dispatch("get_offices").then((function(){t.$nuxt.$emit("set_offices")}))}catch(t){console.error("Error get data")}},mounted:function(){var t=this;window.addEventListener("resize",(function(){t.$store.commit("changeScreenHeight",window.innerHeight)}))}},X=Object(F.a)(G,(function(){var t=this,e=t._self._c;return e(L.a,[e("MenuMobile"),t._v(" "),e("MenuDesktop"),t._v(" "),e("nuxt"),t._v(" "),e("Snackbar"),t._v(" "),e("TYAndSighToBots"),t._v(" "),e("script",{attrs:{type:"text/javascript"}},[t._v('\n (function(m,e,t,r,i,k,a){m[i]=m[i]function(){(m[i].a=m[i].a[]).push(arguments)};\n m[i].l=1*new Date();\n for (var j = 0; j < document.scripts.length; j++) {if (document.scripts[j].src === r) { return; }}\n k=e.createElement(t),a=e.getElementsByTagName(t)[0],k.async=1,k.src=r,a.parentNode.insertBefore(k,a)})\n (window, document, "script", "https://mc.yandex.ru/metrika/tag.js", "ym");\n\n ym(97951034, "init", {\n clickmap:true,\n trackLinks:true,\n accurateTrackBounce:true\n });\n ')]),t._v(" "),e("noscript",[e("div",[e("img",{staticStyle:{position:"absolute",left:"-9999px"},attrs:{src:"https://mc.yandex.ru/watch/97951034",alt:""}})])])],1)}),[],!1,null,null,null),Q=X.exports;installComponents(X,{MenuMobile:n(236).default,MenuDesktop:n(237).default,Snackbar:n(124).default});var Z=Object(F.a)({},(function(){var t=this._self._c;return t(L.a,[t("nuxt")],1)}),[],!1,null,null,null).exports;function tt(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,a){if(t){if("string"==typeof t)return et(t,a);var e={}.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?et(t,a):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var c,a=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){u=!0,c=t},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw c}}}}function et(t,a){(null==a||a>t.length)&&(a=t.length);for(var e=0,n=Array(a);e0},isPreview:function(){return Boolean(this.$options.previewData)}},methods:{refreshOnlineStatus:function(){void 0===window.navigator.onLine?this.isOnline=!0:this.isOnline=window.navigator.onLine},refresh:function(){var t=this;return Object(o.a)(regeneratorRuntime.mark((function e(){var n,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if((n=Object(k.h)(t.$route)).length){e.next=3;break}return e.abrupt("return");case 3:return t.$loading.start(),r=n.map(function(){var e=Object(o.a)(regeneratorRuntime.mark((function e(n){var p,r,o,component;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return p=[],n.$options.fetch&&n.$options.fetch.length&&p.push(Object(k.q)(n.$options.fetch,t.context)),n.$options.asyncData&&p.push(Object(k.q)(n.$options.asyncData,t.context).then((function(t){for(var e in t)f.default.set(n.$data,e,t[e])}))),e.next=5,Promise.all(p);case 5:p=[],n.$fetch&&p.push(n.$fetch()),r=tt(Object(k.e)(n.$vnode.componentInstance));try{for(r.s();!(o=r.n()).done;)component=o.value,p.push(component.$fetch())}catch(t){r.e(t)}finally{r.f()}return e.abrupt("return",Promise.all(p));case 10:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),e.prev=5,e.next=8,Promise.all(r);case 8:e.next=15;break;case 10:e.prev=10,e.t0=e.catch(5),t.$loading.fail(e.t0),Object(k.k)(e.t0),t.error(e.t0);case 15:t.$loading.finish();case 16:case"end":return e.stop()}}),e,null,[[5,10]])})))()},errorChanged:function(){if(this.nuxt.err){this.$loading&&(this.$loading.fail&&this.$loading.fail(this.nuxt.err),this.$loading.finish&&this.$loading.finish());var t=(M.options||M).layout;"function"==typeof t&&(t=t(this.context)),this.nuxt.errPageReady=!0,this.setLayout(t)}},setLayout:function(t){return t&&nt["_"+t]||(t="default"),this.layoutName=t,this.layout=nt["_"+t],this.layout},loadLayout:function(t){return t&&nt["_"+t]||(t="default"),Promise.resolve(nt["_"+t])}},components:{NuxtLoading:K}};f.default.use(l.a);var at={};(at=function(t,e){if((t=t.default||t).commit)throw new Error("[nuxt] ".concat(e," should export a method that returns a Vuex instance."));return"function"!=typeof t&&(t=Object.assign({},t)),function(t,e){if(t.state&&"function"!=typeof t.state){console.warn("'state' should be a method that returns an object in ".concat(e));var n=Object.assign({},t.state);t=Object.assign({},t,{state:function(){return n}})}return t}(t,e)}(n(477),"store/index.js")).modules=at.modules||{};var it=at instanceof Function?at:function(){return new l.a.Store(Object.assign({strict:!1},at))};n(44),n(67);var ut=function(){return n.e(8).then(n.bind(null,698)).then((function(t){return zt(t.default||t)}))},st=function(){return n.e(9).then(n.bind(null,583)).then((function(t){return zt(t.default||t)}))},ct=function(){return Promise.all([n.e(0),n.e(1),n.e(2),n.e(3),n.e(17)]).then(n.bind(null,704)).then((function(t){return zt(t.default||t)}))},ft=function(){return Promise.all([n.e(0),n.e(1),n.e(2),n.e(3),n.e(18)]).then(n.bind(null,613)).then((function(t){return zt(t.default||t)}))},lt=function(){return Promise.all([n.e(0),n.e(49),n.e(19)]).then(n.bind(null,733)).then((function(t){return zt(t.default||t)}))},ht=function(){return Promise.all([n.e(0),n.e(2),n.e(3),n.e(4),n.e(20)]).then(n.bind(null,582)).then((function(t){return zt(t.default||t)}))},pt=function(){return Promise.resolve().then(n.bind(null,332)).then((function(t){return zt(t.default||t)}))},mt=function(){return n.e(27).then(n.bind(null,732)).then((function(t){return zt(t.default||t)}))},vt=function(){return n.e(28).then(n.bind(null,789)).then((function(t){return zt(t.default||t)}))},gt=function(){return Promise.resolve().then(n.bind(null,235)).then((function(t){return zt(t.default||t)}))},bt=function(){return Promise.resolve().then(n.bind(null,237)).then((function(t){return zt(t.default||t)}))},yt=function(){return Promise.resolve().then(n.bind(null,236)).then((function(t){return zt(t.default||t)}))},wt=function(){return Promise.all([n.e(0),n.e(2),n.e(3),n.e(4),n.e(29)]).then(n.bind(null,620)).then((function(t){return zt(t.default||t)}))},xt=function(){return Promise.all([n.e(0),n.e(1),n.e(2),n.e(3),n.e(30)]).then(n.bind(null,699)).then((function(t){return zt(t.default||t)}))},kt=function(){return Promise.all([n.e(0),n.e(1),n.e(2),n.e(3),n.e(31)]).then(n.bind(null,645)).then((function(t){return zt(t.default||t)}))},_t=function(){return Promise.all([n.e(0),n.e(1),n.e(2),n.e(3),n.e(32)]).then(n.bind(null,646)).then((function(t){return zt(t.default||t)}))},Ot=function(){return Promise.all([n.e(2),n.e(4),n.e(33)]).then(n.bind(null,584)).then((function(t){return zt(t.default||t)}))},$t=function(){return n.e(34).then(n.bind(null,731)).then((function(t){return zt(t.default||t)}))},Ct=function(){return Promise.resolve().then(n.bind(null,124)).then((function(t){return zt(t.default||t)}))},jt=function(){return Promise.all([n.e(0),n.e(1),n.e(10)]).then(n.bind(null,745)).then((function(t){return zt(t.default||t)}))},Et=function(){return Promise.all([n.e(0),n.e(1),n.e(11)]).then(n.bind(null,747)).then((function(t){return zt(t.default||t)}))},St=function(){return Promise.all([n.e(0),n.e(1),n.e(2),n.e(3),n.e(12)]).then(n.bind(null,703)).then((function(t){return zt(t.default||t)}))},Rt=function(){return Promise.all([n.e(1),n.e(13)]).then(n.bind(null,748)).then((function(t){return zt(t.default||t)}))},Pt=function(){return Promise.all([n.e(0),n.e(1),n.e(14)]).then(n.bind(null,749)).then((function(t){return zt(t.default||t)}))},At=function(){return Promise.all([n.e(0),n.e(1),n.e(15)]).then(n.bind(null,746)).then((function(t){return zt(t.default||t)}))},Tt=function(){return Promise.all([n.e(0),n.e(1),n.e(2),n.e(3),n.e(16)]).then(n.bind(null,744)).then((function(t){return zt(t.default||t)}))},Ft=function(){return n.e(35).then(n.bind(null,621)).then((function(t){return zt(t.default||t)}))},Mt=function(){return n.e(36).then(n.bind(null,600)).then((function(t){return zt(t.default||t)}))},Ut=function(){return n.e(37).then(n.bind(null,665)).then((function(t){return zt(t.default||t)}))},qt=function(){return n.e(38).then(n.bind(null,667)).then((function(t){return zt(t.default||t)}))},Dt=function(){return n.e(39).then(n.bind(null,666)).then((function(t){return zt(t.default||t)}))},It=function(){return Promise.all([n.e(1),n.e(21)]).then(n.bind(null,750)).then((function(t){return zt(t.default||t)}))},Kt=function(){return n.e(22).then(n.bind(null,707)).then((function(t){return zt(t.default||t)}))},Lt=function(){return n.e(23).then(n.bind(null,709)).then((function(t){return zt(t.default||t)}))},Nt=function(){return Promise.all([n.e(1),n.e(24)]).then(n.bind(null,705)).then((function(t){return zt(t.default||t)}))},Bt=function(){return n.e(25).then(n.bind(null,706)).then((function(t){return zt(t.default||t)}))},Yt=function(){return n.e(26).then(n.bind(null,708)).then((function(t){return zt(t.default||t)}))};function zt(t){if(!t||!t.functional)return t;var e=Array.isArray(t.props)?t.props:Object.keys(t.props||{});return{render:function(n){var r={},o={};for(var c in this.$attrs)e.includes(c)?o[c]=this.$attrs[c]:r[c]=this.$attrs[c];return n(t,{on:this.$listeners,attrs:r,props:o,scopedSlots:this.$scopedSlots},this.$slots.default)}}}for(var Ht in r)f.default.component(Ht,r[Ht]),f.default.component("Lazy"+Ht,r[Ht]);var Wt=n(156),Vt={theme:{dark:!1,themes:{dark:{primary:"#1976d2",accent:"#424242",secondary:"#ff8f00",info:"#26a69a",warning:"#ffc107",error:"#dd2c00",success:"#00e676"}}}};f.default.use(Wt.a,{});var Jt=function(t){var e="function"==typeof Vt?Vt(t):Vt,n=new Wt.a(e);t.app.vuetify=n,t.$vuetify=n.framework},Gt=n(157),Xt=n.n(Gt),Qt=n(322),Zt=n.n(Qt);function te(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function ee(t){for(var e=1;e=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var c,a=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){u=!0,c=t},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw c}}}}function re(t,a){(null==a||a>t.length)&&(a=t.length);for(var e=0,n=Array(a);e2&&void 0!==arguments[2]?arguments[2]:"common",o=ne(Array.isArray(r)?r:[r]);try{for(o.s();!(n=o.n()).done;){var c=n.value;if(!e)return void delete this.defaults.headers[c][t];this.defaults.headers[c][t]=e}}catch(t){o.e(t)}finally{o.f()}},setToken:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"common",r=t?(e?e+" ":"")+t:null;this.setHeader("Authorization",r,n)},onRequest:function(t){this.interceptors.request.use((function(e){return t(e)||e}))},onResponse:function(t){this.interceptors.response.use((function(e){return t(e)||e}))},onRequestError:function(t){this.interceptors.request.use(void 0,(function(e){return t(e)||Promise.reject(e)}))},onResponseError:function(t){this.interceptors.response.use(void 0,(function(e){return t(e)||Promise.reject(e)}))},onError:function(t){this.onRequestError(t),this.onResponseError(t)},create:function(t){return se(Zt()(t,this.defaults))}},ae=function(){var t=ue[ie];oe["$"+t]=function(){return this[t].apply(this,arguments).then((function(t){return t&&t.data}))}},ie=0,ue=["request","delete","get","head","options","post","put","patch"];ie0&&void 0!==arguments[0]?arguments[0]:"").split("?")[0];return"/"===t.charAt(t.length-1)&&(t=t.slice(0,-1)),t}function Me(t){return"string"==typeof t?t:JSON.stringify(t)}function Ue(t){if("string"==typeof t)try{return JSON.parse(t)}catch(t){}return t}function qe(t,e){if(!e||!t)return t;if(e in t)return t[e];for(var n=Array.isArray(e)?e:(e+"").split("."),r=t;n.length&&r;)r=r[n.shift()];return r}var De=function(){return Object(je.a)((function t(e,n){Object(Ce.a)(this,t),this.ctx=e,this.options=n,this._initState()}),[{key:"setUniversal",value:function(t,e){return Se(e)?this.removeUniversal(t):(this.setState(t,e),this.setCookie(t,e),this.setLocalStorage(t,e),e)}},{key:"getUniversal",value:function(t){var e=this.getState(t);return Se(e)&&(e=this.getCookie(t)),Se(e)&&(e=this.getLocalStorage(t)),e}},{key:"syncUniversal",value:function(t,e){var n=this.getUniversal(t);return Se(n)&&Re(e)&&(n=e),Re(n)&&this.setUniversal(t,n),n}},{key:"removeUniversal",value:function(t){this.removeState(t),this.removeLocalStorage(t),this.removeCookie(t)}},{key:"_initState",value:function(){var t=this;if(f.default.set(this,"_state",{}),this._useVuex=this.options.vuex&&this.ctx.store,this._useVuex){var e={namespaced:!0,state:function(){return t.options.initialState},mutations:{SET:function(t,e){f.default.set(t,e.key,e.value)}}};this.ctx.store.registerModule(this.options.vuex.namespace,e,{preserveState:Boolean(this.ctx.store.state[this.options.vuex.namespace])}),this.state=this.ctx.store.state[this.options.vuex.namespace]}else f.default.set(this,"state",{})}},{key:"setState",value:function(t,e){return"_"===t[0]?f.default.set(this._state,t,e):this._useVuex?this.ctx.store.commit(this.options.vuex.namespace+"/SET",{key:t,value:e}):f.default.set(this.state,t,e),e}},{key:"getState",value:function(t){return"_"!==t[0]?this.state[t]:this._state[t]}},{key:"watchState",value:function(t,e){var n=this;if(this._useVuex)return this.ctx.store.watch((function(e){return qe(e[n.options.vuex.namespace],t)}),e)}},{key:"removeState",value:function(t){this.setState(t,void 0)}},{key:"setLocalStorage",value:function(t,e){if(Se(e))return this.removeLocalStorage(t);if("undefined"!=typeof localStorage&&this.options.localStorage){var n=this.options.localStorage.prefix+t;try{localStorage.setItem(n,Me(e))}catch(t){if(!this.options.ignoreExceptions)throw t}return e}}},{key:"getLocalStorage",value:function(t){if("undefined"!=typeof localStorage&&this.options.localStorage){var e=this.options.localStorage.prefix+t;return Ue(localStorage.getItem(e))}}},{key:"removeLocalStorage",value:function(t){if("undefined"!=typeof localStorage&&this.options.localStorage){var e=this.options.localStorage.prefix+t;localStorage.removeItem(e)}}},{key:"getCookies",value:function(){var t=document.cookie;return Object(Ee.parse)(t||"")||{}}},{key:"setCookie",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(this.options.cookie){var r=this.options.cookie.prefix+t,o=Object.assign({},this.options.cookie.options,n),c=Me(e);Se(e)&&(o.maxAge=-1),"number"==typeof o.expires&&(o.expires=new Date(1*new Date+864e5*o.expires));var f=Object(Ee.serialize)(r,c,o);return document.cookie=f,e}}},{key:"getCookie",value:function(t){if(this.options.cookie){var e=this.options.cookie.prefix+t,n=this.getCookies();return Ue(n[e]?decodeURIComponent(n[e]):void 0)}}},{key:"removeCookie",value:function(t,e){this.setCookie(t,void 0,e)}}])}();function Ie(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,a){if(t){if("string"==typeof t)return Ke(t,a);var e={}.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?Ke(t,a):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var c,a=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){u=!0,c=t},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw c}}}}function Ke(t,a){(null==a||a>t.length)&&(a=t.length);for(var e=0,n=Array(a);e1?n-1:0),o=1;o1&&void 0!==arguments[1]?arguments[1]:{};this.error=t;var n,r=Ie(this._errorListeners);try{for(r.s();!(n=r.n()).done;){(0,n.value)(t,e)}}catch(t){r.e(t)}finally{r.f()}}},{key:"redirect",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(this.options.redirect){var n=this.options.fullPathRedirect?this.ctx.route.fullPath:this.ctx.route.path,r=this.options.redirect[t];if(r){if(this.options.rewriteRedirects&&("login"===t&&Ae(n)&&!Pe(r,n)&&this.$storage.setUniversal("redirect",n),"home"===t)){var o=this.$storage.getUniversal("redirect");this.$storage.setUniversal("redirect",null),Ae(o)&&(r=o)}r=this.callOnRedirect(r,n)||r,Pe(r,n)||(e?window.location.replace(r):this.ctx.redirect(r,this.ctx.query))}}}},{key:"onRedirect",value:function(t){this._redirectListeners.push(t)}},{key:"callOnRedirect",value:function(t,e){var n,r=Ie(this._redirectListeners);try{for(r.s();!(n=r.n()).done;){t=(0,n.value)(t,e)||t}}catch(t){r.e(t)}finally{r.f()}return t}},{key:"hasScope",value:function(t){var e=this.$state.user&&qe(this.$state.user,this.options.scopeKey);return!!e&&(Array.isArray(e)?e.includes(t):Boolean(qe(e,t)))}}]);var t}();n(152).a.auth=function(t){if(!Te(t.route,"auth",!1)){var e=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return[].concat.apply([],t.matched.map((function(t,n){return Object.keys(t.components).map((function(r){return e&&e.push(n),t.components[r]}))})))}(t.route,[]);if(e.length){var n=t.$auth.options.redirect,r=n.login,o=n.callback,c=Te(t.route,"auth","guest"),f=function(e){return Fe(t.route.path)===Fe(e)};t.$auth.$state.loggedIn?(!r||f(r)||c)&&t.$auth.redirect("home"):c||o&&f(o)||t.$auth.redirect("login")}}};var Ne=function(){return Object(je.a)((function t(e,n){Object(Ce.a)(this,t),this.$auth=e,this.name=n._name,this.options=Object.assign({},Be,n)}),[{key:"_setToken",value:function(t){this.options.globalToken&&this.$auth.ctx.app.$axios.setHeader(this.options.tokenName,t)}},{key:"_clearToken",value:function(){this.options.globalToken&&this.$auth.ctx.app.$axios.setHeader(this.options.tokenName,!1)}},{key:"mounted",value:function(){if(this.options.tokenRequired){var t=this.$auth.syncToken(this.name);this._setToken(t)}return this.$auth.fetchUserOnce()}},{key:"login",value:(c=Object(o.a)(regeneratorRuntime.mark((function t(e){var n,r,o,c;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this.options.endpoints.login){t.next=2;break}return t.abrupt("return");case 2:return t.next=4,this.$auth.reset();case 4:return t.next=6,this.$auth.request(e,this.options.endpoints.login,!0);case 6:if(n=t.sent,r=n.response,o=n.result,this.options.tokenRequired&&(c=this.options.tokenType?this.options.tokenType+" "+o:o,this.$auth.setToken(this.name,c),this._setToken(c)),!this.options.autoFetchUser){t.next=13;break}return t.next=13,this.fetchUser();case 13:return t.abrupt("return",r);case 14:case"end":return t.stop()}}),t,this)}))),function(t){return c.apply(this,arguments)})},{key:"setUserToken",value:(r=Object(o.a)(regeneratorRuntime.mark((function t(e){var n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=this.options.tokenType?this.options.tokenType+" "+e:e,this.$auth.setToken(this.name,n),this._setToken(n),t.abrupt("return",this.fetchUser());case 4:case"end":return t.stop()}}),t,this)}))),function(t){return r.apply(this,arguments)})},{key:"fetchUser",value:(n=Object(o.a)(regeneratorRuntime.mark((function t(e){var n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!this.options.tokenRequired||this.$auth.getToken(this.name)){t.next=2;break}return t.abrupt("return");case 2:if(this.options.endpoints.user){t.next=5;break}return this.$auth.setUser({}),t.abrupt("return");case 5:return t.next=7,this.$auth.requestWith(this.name,e,this.options.endpoints.user);case 7:n=t.sent,this.$auth.setUser(n);case 9:case"end":return t.stop()}}),t,this)}))),function(t){return n.apply(this,arguments)})},{key:"logout",value:(e=Object(o.a)(regeneratorRuntime.mark((function t(e){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!this.options.endpoints.logout){t.next=3;break}return t.next=3,this.$auth.requestWith(this.name,e,this.options.endpoints.logout).catch((function(){}));case 3:return t.abrupt("return",this.$auth.reset());case 4:case"end":return t.stop()}}),t,this)}))),function(t){return e.apply(this,arguments)})},{key:"reset",value:(t=Object(o.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this.options.tokenRequired&&this._clearToken(),this.$auth.setUser(!1),this.$auth.setToken(this.name,!1),this.$auth.setRefreshToken(this.name,!1),t.abrupt("return",Promise.resolve());case 5:case"end":return t.stop()}}),t,this)}))),function(){return t.apply(this,arguments)})}]);var t,e,n,r,c}(),Be={tokenRequired:!0,tokenType:"Bearer",globalToken:!0,tokenName:"Authorization",autoFetchUser:!0},Ye=function(t,e){var n=new Le(t,{resetOnError:!1,scopeKey:"scope",rewriteRedirects:!0,fullPathRedirect:!1,watchLoggedIn:!0,redirect:{login:"/login",logout:"/",home:"/offices",callback:"/login"},vuex:{namespace:"auth"},cookie:{prefix:"auth.",options:{path:"/"}},localStorage:{prefix:"auth."},token:{prefix:"_token."},refresh_token:{prefix:"_refresh_token."},defaultStrategy:"local",stratagies:{local:{endpoints:{login:{url:"/auth/login",method:"post",propertyName:"token"},logout:{url:"/auth/logout",method:"post"},user:{url:"/auth/user",method:"get",propertyName:"user"}}}}});return n.registerStrategy("local",new Ne(n,{endpoints:{login:{url:"/api/auth/login",method:"post",propertyName:"token"},logout:{url:"/api/auth/logout",method:"post"},user:{url:"/api/auth/user",method:"get",propertyName:"user"}},_name:"local"})),e("auth",n),t.$auth=n,n.init().catch((function(t){console.error("[ERROR] [AUTH]",t)}))};function ze(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function He(t){for(var e=1;e has been deprecated and will be removed in Nuxt 3, please use instead")),y.a.render(t,e)}})),f.default.component(E.name,E),f.default.component("NChild",E),f.default.component(D.name,D),Object.defineProperty(f.default.prototype,"$nuxt",{get:function(){var t=this.$root?this.$root.$options.$nuxt:null;return t||"undefined"==typeof window?t:window.$nuxt},configurable:!0}),f.default.use(h.a,{keyName:"head",attribute:"data-n-head",ssrAttribute:"data-n-head-ssr",tagIDKeyName:"hid"});var We={name:"page",mode:"out-in",appear:!1,appearClass:"appear",appearActiveClass:"appear-active",appearToClass:"appear-to"},Ve=l.a.Store.prototype.registerModule;function Je(path,t){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=Array.isArray(path)?!!path.reduce((function(t,path){return t&&t[path]}),this.state):path in this.state;return Ve.call(this,path,t,He({preserveState:n},e))}function Ge(t){return Xe.apply(this,arguments)}function Xe(){return Xe=Object(o.a)(regeneratorRuntime.mark((function t(e){var n,r,c,l,h,d,path,m,v=arguments;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return m=function(t,e){if(!t)throw new Error("inject(key, value) has no key provided");if(void 0===e)throw new Error("inject('".concat(t,"', value) has no value provided"));l[t="$"+t]=e,l.context[t]||(l.context[t]=e),r[t]=l[t];var n="__nuxt_"+t+"_installed__";f.default[n]||(f.default[n]=!0,f.default.use((function(){Object.prototype.hasOwnProperty.call(f.default.prototype,t)||Object.defineProperty(f.default.prototype,t,{get:function(){return this.$root.$options[t]}})})))},n=v.length>1&&void 0!==v[1]?v[1]:{},r=it(e),t.next=5,j(0,n);case 5:return c=t.sent,r.$router=c,r.registerModule=Je,l=He({head:{titleTemplate:"БИЗНЕС-ЦЕНТР НА КЛАРЫ ЦЕТКИН",title:"БИЗНЕС-ЦЕНТР НА КЛАРЫ ЦЕТКИН",htmlAttrs:{lang:"en"},meta:[{charset:"utf-8"},{name:"viewport",content:"width=device-width, initial-scale=1"},{hid:"description",name:"description",content:"Юридический адрес не дорого в Кемерово, при аренде офиса или места в коворкинге по адресу Клары-Цеткин 118Б"}],link:[{rel:"icon",type:"image/x-icon",href:"/favicon.ico"}],style:[],script:[]},store:r,router:c,nuxt:{defaultTransition:We,transitions:[We],setTransitions:function(t){return Array.isArray(t)||(t=[t]),t=t.map((function(t){return t=t?"string"==typeof t?Object.assign({},We,{name:t}):Object.assign({},We,t):We})),this.$options.nuxt.transitions=t,t},err:null,errPageReady:!1,dateErr:null,error:function(t){t=t||null,l.context._errored=Boolean(t),t=t?Object(k.p)(t):null;var n=l.nuxt;return this&&(n=this.nuxt||this.$options.nuxt),n.dateErr=Date.now(),n.err=t,n.errPageReady=!1,e&&(e.nuxt.error=t),t}}},ot),r.app=l,h=e?e.next:function(t){return l.router.push(t)},e?d=c.resolve(e.url).route:(path=Object(k.f)(c.options.base,c.options.mode),d=c.resolve(path).route),t.next=14,Object(k.t)(l,{store:r,route:d,next:h,error:l.nuxt.error.bind(l),payload:e?e.payload:void 0,req:e?e.req:void 0,res:e?e.res:void 0,beforeRenderFns:e?e.beforeRenderFns:void 0,beforeSerializeFns:e?e.beforeSerializeFns:void 0,ssrContext:e});case 14:m("config",n),window.__NUXT__&&window.__NUXT__.state&&r.replaceState(window.__NUXT__.state),l.context.enablePreview=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};l.previewData=Object.assign({},t),m("preview",t)},t.next=20;break;case 20:if("function"!=typeof Jt){t.next=23;break}return t.next=23,Jt(l.context,m);case 23:if("function"!=typeof fe){t.next=26;break}return t.next=26,fe(l.context,m);case 26:t.next=29;break;case 29:t.next=32;break;case 32:if("function"!=typeof ye){t.next=35;break}return t.next=35,ye(l.context,m);case 35:t.next=38;break;case 38:t.next=41;break;case 41:t.next=44;break;case 44:if("function"!=typeof Ye){t.next=47;break}return t.next=47,Ye(l.context,m);case 47:return l.context.enablePreview=function(){console.warn("You cannot call enablePreview() outside a plugin.")},t.next=50,new Promise((function(t,e){if(!c.resolve(l.context.route.fullPath).route.matched.length)return t();c.replace(l.context.route.fullPath,t,(function(n){if(!n._isRouter)return e(n);if(2!==n.type)return t();var r=c.afterEach(function(){var e=Object(o.a)(regeneratorRuntime.mark((function e(n,o){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=3,Object(k.j)(n);case 3:l.context.route=e.sent,l.context.params=n.params||{},l.context.query=n.query||{},r(),t();case 8:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}())}))}));case 50:return t.abrupt("return",{store:r,app:l,router:c});case 51:case"end":return t.stop()}}),t)}))),Xe.apply(this,arguments)}}},[[344,47,7,48]]]);