(window.webpackJsonp=window.webpackJsonp||[]).push([[106,2],{1045:function(t,e,n){"use strict";n(585)},1046:function(t,e,n){var r=n(13)(!1);r.push([t.i,".whitePage[data-v-77602944]{overflow:hidden}.header[data-v-77602944]{background-image:url(/assets/image/page_headers/online/header.png);width:830px;height:303px}.header .name[data-v-77602944]{font-size:55px;margin-left:80px;padding-top:120px;font-weight:1000;color:#313131;line-height:45px}.stats[data-v-77602944]{width:80%;margin:60px 10%;padding:20px 0;background:#fff;box-shadow:0 6px 30px rgba(0,0,0,.06);border-radius:20px;display:flex;transition:.2s}.stats .stat[data-v-77602944]{text-align:center;font-weight:200;width:33.33%;padding:10px 0;color:#828282}.stats .stat .num[data-v-77602944]{font-size:30px;font-weight:1000;color:#333;padding-bottom:5px}.stats .stat[data-v-77602944]:nth-child(2){border-right:1px solid #d8d8d8;border-left:1px solid #d8d8d8}.stats[data-v-77602944]:hover{transition:.2s;box-shadow:0 6px 30px rgba(0,0,0,.16)}.bar-chart[data-v-77602944]{width:calc(100% - 40px);padding:20px}.center_text[data-v-77602944]{font-size:35px;text-align:center;font-weight:1000;color:#4f4f4f;margin-top:30px}@media (max-width:700px){.stats[data-v-77602944]{width:90%;margin:60px 5%}}@media (max-width:600px){.stats[data-v-77602944]{display:block}.stats .stat[data-v-77602944]{width:100%}.stats .stat[data-v-77602944]:nth-child(2){border-right:unset;border-left:unset;border-top:1px solid #d8d8d8;border-bottom:1px solid #d8d8d8}.bar-chart[data-v-77602944]{width:100%!important;padding:0!important}.header .name[data-v-77602944]{font-size:35px;margin-left:80px}}",""]),t.exports=r},1491:function(t,e,n){"use strict";n.r(e);var r=n(4),o=(n(27),n(223),n(26)),d={extends:n(801).a,props:{labels:{type:Array,default:null},data:{type:Array,default:null},options:{type:Object,default:null}},mounted:function(){this.gradient=this.$refs.canvas.getContext("2d").createLinearGradient(0,0,0,450),this.gradient.addColorStop(0,"rgba(183, 33,255, 1)"),this.gradient.addColorStop(1,"rgba(33, 212, 253, 0.6)"),this.gradient2=this.$refs.canvas.getContext("2d").createLinearGradient(0,0,0,450),this.gradient2.addColorStop(0,"rgba(183, 33,255, 0.3)"),this.gradient2.addColorStop(1,"rgba(33, 212, 253, 0.1)");var data={labels:this.labels,datasets:[{label:"",borderColor:this.gradient,pointBackgroundColor:"white",borderWidth:2,pointBorderColor:"violet",backgroundColor:this.gradient2,data:this.data}]};this.renderChart(data,this.options),console.log(this.$refs.canvas)}},c={head:function(){return{title:this.$t("onlinePage_meta_title")+" - CubixWorld.net",meta:[{hid:"description",name:"description",content:this.$t("onlinePage_meta_description")},{hid:"keywords",name:"keywords",content:this.$t("onlinePage_meta_keywords")}].concat(this.$nuxtI18nHead({addSeoAttributes:!0}).meta),link:this.$nuxtI18nHead({addSeoAttributes:!0}).link,htmlAttrs:this.$nuxtI18nHead({addSeoAttributes:!0}).htmlAttrs}},asyncData:function(t){return Object(r.a)(regeneratorRuntime.mark((function e(){var n,r,d,c;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.$axios.$get(o.a+"monitoring.all");case 2:return n=e.sent,r=n.online_day,d=n.online_week,c=n.online_month,e.abrupt("return",{servers_all:n,day:r,week:d,month:c});case 7:case"end":return e.stop()}}),e)})))()},data:function(){return{optionsDay:{maintainAspectRatio:!1,responsive:!0,legend:{display:!1},elements:{point:{radius:0}},scales:{xAxes:[{type:"time",time:{minUnit:"hour"},ticks:{maxTicksLimit:16}}]}},options:{maintainAspectRatio:!1,responsive:!0,legend:{display:!1},elements:{point:{radius:0}},scales:{xAxes:[{type:"time",time:{minUnit:"day"},ticks:{maxTicksLimit:16}}]}},servers:null}},components:{RightPanel:n(354).default,LineChart:d},computed:{auth:function(){return this.$store.state.auth},isAuthenticated:function(){return this.$store.getters.authenticated},API:function(){return o.a}},created:function(){var t=this;this.loadServers(),this.idInterval=setInterval((function(){t.loadServers()}),5e3)},beforeDestroy:function(){clearInterval(this.idInterval)},methods:{loadServers:function(){var t=this;this.$axios.get(o.a+"monitoring.all").then((function(e){"success"==e.data.type&&(t.servers_all=e.data)}))},millsToDate:function(t,e){return this.$moment.locale("ru"),this.$moment(t).format(e)}}},l=(n(1045),n(8)),component=Object(l.a)(c,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("div",{staticClass:"content"},[n("div",{staticClass:"left"},[n("div",{staticClass:"whitePage"},[n("div",{staticClass:"header"},[n("div",{staticClass:"name",domProps:{innerHTML:t._s(t.$t("onlinePage_name"))}})]),t._v(" "),n("div",{staticClass:"stats"},[n("div",{staticClass:"stat"},[n("div",{staticClass:"num"},[t._v(t._s(t.servers_all.current_online))]),t._v(" "),n("span",{domProps:{innerHTML:t._s(t.$t("onlinePage_currentOnline"))}})]),t._v(" "),n("div",{staticClass:"stat"},[n("div",{staticClass:"num"},[t._v(t._s(t.servers_all.record_online_day))]),t._v(" "),n("span",{domProps:{innerHTML:t._s(t.$t("onlinePage_recordDay"))}}),t._v("\n "+t._s(t.millsToDate(t.servers_all.record_online_day_time,"LT"))+"\n ")]),t._v(" "),n("div",{staticClass:"stat"},[n("div",{staticClass:"num"},[t._v(t._s(t.servers_all.record_online_absolute))]),t._v("\n "+t._s(t.$t("onlinePage_absoluteRecord"))),n("br"),t._v(t._s(t.millsToDate(t.servers_all.record_online_absolute_time,"lll"))+"\n ")])]),t._v(" "),n("div",{staticClass:"center_text"},[t._v(t._s(t.$t("onlinePage_24h")))]),t._v(" "),n("div",{staticClass:"bar-chart"},[n("LineChart",{attrs:{labels:t.day.date,data:t.day.online,options:t.optionsDay}})],1),t._v(" "),n("div",{staticClass:"center_text"},[t._v(t._s(t.$t("onlinePage_week")))]),t._v(" "),n("div",{staticClass:"bar-chart"},[n("LineChart",{attrs:{labels:t.week.date,data:t.week.online,options:t.options}})],1),t._v(" "),n("div",{staticClass:"center_text"},[t._v(t._s(t.$t("onlinePage_month")))]),t._v(" "),n("div",{staticClass:"bar-chart"},[n("LineChart",{attrs:{labels:t.month.date,data:t.month.online,options:t.options}})],1)])]),t._v(" "),n("RightPanel")],1)])}),[],!1,null,"77602944",null);e.default=component.exports},359:function(t,e){t.exports=function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(object,t){return Object.prototype.hasOwnProperty.call(object,t)},n.p="",n(n.s="1c25")}({"1c25":function(t,e,n){"use strict";n.r(e);n("e754");var r=n("56d7"),o=n.n(r);for(var d in r)["default"].indexOf(d)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(d);e.default=o.a},"2be6":function(t,e,n){"use strict";function r(t,e,n,r,o,d,c,l){var h,f="function"==typeof t?t.options:t;if(e&&(f.render=e,f.staticRenderFns=n,f._compiled=!0),r&&(f.functional=!0),d&&(f._scopeId="data-v-"+d),c?(h=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),o&&o.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(c)},f._ssrRegister=h):o&&(h=l?function(){o.call(this,(f.functional?this.parent:this).$root.$options.shadowRoot)}:o),h)if(f.functional){f._injectStyles=h;var v=f.render;f.render=function(t,e){return h.call(e),v(t,e)}}else{var m=f.beforeCreate;f.beforeCreate=m?[].concat(m,h):[h]}return{exports:t,options:f}}n.d(e,"a",(function(){return r}))},"407a":function(t,e,n){"use strict";n.r(e);var r=n("502d"),o=n("fa1f");for(var d in o)["default"].indexOf(d)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(d);var c=n("2be6"),component=Object(c.a)(o.default,r.a,r.b,!1,null,null,null);e.default=component.exports},4141:function(t,e){!function(t){var e="currentScript",n=t.getElementsByTagName("script");e in t||Object.defineProperty(t,e,{get:function(){try{throw new Error}catch(e){var i,t=(/.*at [^\(]*\((.*):.+:.+\)$/gi.exec(e.stack)||[!1])[1];for(i in n)if(n[i].src==t||"interactive"==n[i].readyState)return n[i];return null}}})}(document)},"502d":function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return o}));var r=function(){var t=this.$createElement;return(this._self._c||t)("div",{attrs:{id:"hcap-script"}})},o=[]},"56d7":function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.install=d;var r,o=(r=n("407a"))&&r.__esModule?r:{default:r};function d(t){d.installed||(d.installed=!0,t.component("vuehcaptcha",o.default),t.component("VueHcaptcha",o.default))}var c={install:d},l=null;"undefined"!=typeof window?l=window.Vue:void 0!==t&&(l=t.Vue),l&&l.use(c);var h=o.default;e.default=h}).call(this,n("7d15"))},"7d15":function(t,e){var g;g=function(){return this}();try{g=g||new Function("return this")()}catch(t){"object"==typeof window&&(g=window)}t.exports=g},cada:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n("dfcd"),o={name:"VueHcaptcha",props:{sitekey:{type:String,required:!0},theme:{type:String,default:void 0},size:{type:String,default:void 0},tabindex:{type:String,default:void 0},language:{type:String,default:void 0},reCaptchaCompat:{type:Boolean,default:!0},challengeContainer:{type:String,default:void 0},rqdata:{type:String,default:void 0},sentry:{type:Boolean,default:!0},apiEndpoint:{type:String,default:"https://hcaptcha.com/1/api.js"},endpoint:{type:String,default:void 0},reportapi:{type:String,default:void 0},assethost:{type:String,default:void 0},imghost:{type:String,default:void 0}},data:function(){return{widgetId:null,hcaptcha:null,renderedCb:null}},mounted:function(){return(0,r.loadApiEndpointIfNotAlready)(this.$props).then(this.onApiLoaded).catch(this.onError)},unmounted:function(){this.teardown()},destroyed:function(){this.teardown()},methods:{teardown:function(){this.widgetId&&(this.hcaptcha.reset(this.widgetId),this.hcaptcha.remove(this.widgetId))},onApiLoaded:function(){this.hcaptcha=window.hcaptcha;var t={sitekey:this.sitekey,theme:this.theme,size:this.size,tabindex:this.tabindex,callback:this.onVerify,"expired-callback":this.onExpired,"chalexpired-callback":this.onChallengeExpired,"error-callback":this.onError,"open-callback":this.onOpen,"close-callback":this.onClose};this.challengeContainer&&(t["challenge-container"]=this.challengeContainer),this.widgetId=this.hcaptcha.render(this.$el,t),this.rqdata&&this.hcaptcha.setData(this.widgetId,{rqdata:this.rqdata}),this.onRendered()},execute:function(){var t=this;this.widgetId?(this.hcaptcha.execute(this.widgetId),this.onExecuted()):this.renderedCb=function(){t.renderedCb=null,t.execute()}},executeAsync:function(){var t,e=this;if(this.widgetId)return this.onExecuted(),this.hcaptcha.execute(this.widgetId,{async:!0});var n=new Promise((function(e){t=e}));return this.renderedCb=function(){e.renderedCb=null,t()},n.then(this.executeAsync)},reset:function(){this.widgetId?(this.hcaptcha.reset(this.widgetId),this.onReset()):this.$emit("error","Element is not rendered yet and thus cannot reset it. Wait for `rendered` event to safely call reset.")},onRendered:function(){this.$emit("rendered"),this.renderedCb&&this.renderedCb()},onExecuted:function(){this.$emit("executed")},onReset:function(){this.$emit("reset")},onError:function(t){this.$emit("error",t),this.reset()},onVerify:function(){var t=this.hcaptcha.getResponse(this.widgetId),e=this.hcaptcha.getRespKey(this.widgetId);this.$emit("verify",t,e)},onExpired:function(){this.$emit("expired")},onChallengeExpired:function(){this.$emit("challengeExpired")},onOpen:function(){this.$emit("opened")},onClose:function(){this.$emit("closed")}}};e.default=o},dfcd:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SCRIPT_ID=void 0,e.addQueryParamIfDefined=f,e.getScriptSrc=h,e.loadApiEndpointIfNotAlready=function(t){if(window.hcaptcha)return o(),l;if(document.getElementById(r))return l;window._hcaptchaOnLoad=o;var e=h(t),script=document.createElement("script");return script.id=r,script.src=e,script.async=!0,script.defer=!0,script.onerror=function(t){console.error("Failed to load api: "+e,t),d("Failed to load api.js")},document.head.appendChild(script),l};var r="hcaptcha-api-script-id";e.SCRIPT_ID=r;var o,d,c="_hcaptchaOnLoad",l=new Promise((function(t,e){o=t,d=e}));function h(t){var e=t.apiEndpoint;return e=f(e,"render","explicit"),e=f(e,"onload",c),e=f(e,"recaptchacompat",!1===t.reCaptchaCompat?"off":null),e=f(e,"hl",t.language),e=f(e,"sentry",t.sentry),e=f(e,"endpoint",t.endpoint),e=f(e,"assethost",t.assethost),e=f(e,"imghost",t.imghost),e=f(e,"reportapi",t.reportapi)}function f(t,e,n){if(null!=n){var link=t.includes("?")?"&":"?";return t+link+e+"="+encodeURIComponent(n)}return t}},e754:function(t,e,n){"use strict";var i;"undefined"!=typeof window&&(n("4141"),(i=window.document.currentScript)&&(i=i.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(n.p=i[1]))},fa1f:function(t,e,n){"use strict";n.r(e);var r=n("cada"),o=n.n(r);for(var d in r)["default"].indexOf(d)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(d);e.default=o.a}})},585:function(t,e,n){var content=n(1046);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(14).default)("1ba97908",content,!0,{sourceMap:!1})}}]);