(window.webpackJsonp=window.webpackJsonp||[]).push([[47,2,7,19],{1225:function(t,e,n){"use strict";n(665)},1226:function(t,e,n){var o=n(14)(!1);o.push([t.i,".fixEditor .ql-toolbar{position:fixed;z-index:100;background:#ccc;top:0}",""]),t.exports=o},1227:function(t,e,n){"use strict";n(666)},1228:function(t,e,n){var o=n(14)(!1);o.push([t.i,".headPage[data-v-3cc8221e]{width:calc(100% - 160px);padding:50px 80px 30px;text-align:center;font-weight:1000;height:auto;color:#424242;font-size:50px;background:#fff;overflow:hidden;line-height:5px;box-shadow:1px 1px 5px 0 rgba(0,0,0,.25)}.headPage small[data-v-3cc8221e]{display:block;line-height:20px;margin-top:30px;font-size:16px;font-weight:400}.setInfo[data-v-3cc8221e]{width:100%;text-align:center;color:#424242;margin-top:20px;background:#fff;overflow:hidden;padding-top:10px;box-shadow:1px 1px 5px 0 rgba(0,0,0,.25)}.setInfo small[data-v-3cc8221e]{font-weight:600}.setInfo .name[data-v-3cc8221e],.setInfo .tags[data-v-3cc8221e]{width:calc(100% - 45px);margin:10px;float:left}.setInfo .name input[data-v-3cc8221e]{width:100%;height:40px;font-size:15px;padding:0 10px}.setInfo .name select[data-v-3cc8221e]{width:calc(100% + 25px);height:40px;font-size:15px;padding:0 10px}.setInfo .mods[data-v-3cc8221e]{width:100%}.setInfo .mods .mod[data-v-3cc8221e]{padding:3px;border-radius:5px;background:rgba(0,0,0,.05);display:inline-block;margin:3px;cursor:pointer}.setInfo .mods .mod[data-v-3cc8221e]:hover{background:rgba(0,0,0,.2)}.setInfo .mods .mod img[data-v-3cc8221e]{width:20px;vertical-align:text-bottom}.setInfo .mods .mod_selected[data-v-3cc8221e]{background:#b3ddff;padding:10px;margin:10px 0}.posts[data-v-3cc8221e]{width:100%;margin-top:30px}.textarea[data-v-3cc8221e]{background:#fff;margin-top:30px;box-shadow:1px 1px 5px 0 rgba(0,0,0,.25);position:relative}.textarea .fixTop[data-v-3cc8221e]{position:absolute;left:-29px;top:1px;width:30px;height:30px;text-align:center;line-height:30px;box-shadow:-3px 3px 2px 0 rgba(0,0,0,.15);background:#fff;color:grey;cursor:pointer}.setInfo .preview[data-v-3cc8221e]{width:calc(100% - 40px);padding:10px 20px;font-size:20px;font-weight:400;background:#f3f4f5}.setInfo .preview img[data-v-3cc8221e]{height:250px;margin:3px 0}.setInfo .preview button[data-v-3cc8221e]{width:140px;margin-left:-21px;border:none;background:#c7c7c7;width:25px;height:25px;color:#fff;border-radius:50%;cursor:pointer}.setInfo .interactions[data-v-3cc8221e]{width:100%;text-align:center;margin-top:10px}.setInfo .interactions .addImg[data-v-3cc8221e]:first-child{height:100%;color:#b9b9b9;font-size:15px;line-height:100px;height:100px;border:none;outline:none;width:200px;background:none;padding:0 30px;cursor:pointer;transition:.2s;margin:0 auto;display:inline-block}.setInfo .interactions .addImg:first-child svg[data-v-3cc8221e]{font-size:17px}.setInfo .interactions .addImg[data-v-3cc8221e]:first-child:hover{background:#f1f1f1;transition:.1s}",""]),t.exports=o},1229:function(t,e,n){"use strict";n(667)},1230:function(t,e,n){var o=n(14)(!1);o.push([t.i,'.bg-gradient1 span[data-v-3cc8221e],.bg-gradient1[data-v-3cc8221e]:before{background:#52a0fd;background:linear-gradient(90deg,#52a0fd 0,#00e2fa 80%,#00e2fa)}.bg-gradient2 span[data-v-3cc8221e],.bg-gradient2[data-v-3cc8221e]:before{background:#44ea76;background:linear-gradient(90deg,#44ea76 0,#39fad7 80%,#39fad7)}.bg-gradient3 span[data-v-3cc8221e],.bg-gradient3[data-v-3cc8221e]:before{background:#fa6c9f;background:linear-gradient(90deg,#fa6c9f 0,#ffe140 80%,#ffe140)}.bg-gradient4 span[data-v-3cc8221e],.bg-gradient4[data-v-3cc8221e]:before{background:#b721ff;background:linear-gradient(90deg,#b721ff 0,#21d4fd 80%,#21d4fd)}.bg-gradient5 span[data-v-3cc8221e],.bg-gradient5[data-v-3cc8221e]:before{background:#f52da8;background:linear-gradient(90deg,#f52da8 0,#fc9fdd 80%,#fc9fdd)}.bg-gradient-dark-1 span[data-v-3cc8221e],.bg-gradient-dark-1[data-v-3cc8221e]:before{background:#0b64cf;background:linear-gradient(90deg,#0b64cf 0,#07b2c5 80%,#07b2c5)}.bg-gradient-dark-2 span[data-v-3cc8221e],.bg-gradient-dark-2[data-v-3cc8221e]:before{background:#0dd148;background:linear-gradient(90deg,#0dd148 0,#08c2a0 80%,#08c2a0)}.bg-gradient-dark-3 span[data-v-3cc8221e],.bg-gradient-dark-3[data-v-3cc8221e]:before{background:#e77d1a;background:linear-gradient(90deg,#e77d1a 0,#bb340b 80%,#bb340b)}.bg-gradient-dark-4 span[data-v-3cc8221e],.bg-gradient-dark-4[data-v-3cc8221e]:before{background-image:linear-gradient(225deg,#ff3cac,#784ba0 50%,#2b86c5)}.bg-gradient-dark-5 span[data-v-3cc8221e],.bg-gradient-dark-5[data-v-3cc8221e]:before{background:#d30985;background:linear-gradient(90deg,#d30985 0,#e235a9 80%,#e235a9)}.button[data-v-3cc8221e]{display:inline-block;font-family:"Montserrat",Helvetica,Arial,sans-serif;letter-spacing:.03em;text-transform:uppercase;color:#fff;position:relative;margin-top:30px;cursor:pointer;border-radius:10px}.button[data-v-3cc8221e]:before{content:"";height:40px;position:absolute;bottom:-5px;left:30px;right:30px;z-index:-1;filter:blur(20px) brightness(.95)}.button[data-v-3cc8221e]:before,.button span[data-v-3cc8221e]{display:inline-block;transform-style:preserve-3d;transition:all .3s ease-out}.button span[data-v-3cc8221e]{padding:15px 40px;position:relative;z-index:2;will-change:transform,filter;border-radius:1px}.button[data-v-3cc8221e]:active,.button[data-v-3cc8221e]:focus,.button[data-v-3cc8221e]:hover{color:#fff}.button:hover span[data-v-3cc8221e]{filter:brightness(1.05) contrast(1.05);transform:scale(.95)}.button[data-v-3cc8221e]:hover:before{bottom:0;filter:blur(10px) brightness(.95)}.button.onClickEffect[data-v-3cc8221e]:before{opacity:0;bottom:10px}.button.onClickEffect[data-v-3cc8221e]:hover:before{bottom:-7px;opacity:1;filter:blur(20px)}.button.onClickEffect:hover span[data-v-3cc8221e]{transform:scale(1.04)}.button.onClickEffect:hover:active span[data-v-3cc8221e]{filter:brightness(1) contrast(1);transform:scale(1);transition:all .15s ease-out}.button.onClickEffect[data-v-3cc8221e]:hover:active:before{bottom:0;filter:blur(10px) brightness(.95);transition:all .2s ease-out}',""]),t.exports=o},1575:function(t,e,n){"use strict";n.r(e);var o=n(4),r=(n(20),n(26),n(43)),c=n(415),d=n(413),l={asyncData:function(t){return Object(o.a)(regeneratorRuntime.mark((function e(){var n,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.$axios.$get(r.b+"articles.categories?type=1");case 2:return n=e.sent,e.next=5,t.$axios.$get(r.b+"servers.modList");case 5:return o=e.sent,e.abrupt("return",{categories:n.categories,modlist:o.servers});case 7:case"end":return e.stop()}}),e)})))()},head:function(){return{title:"Написание статьи - CubixWorld.net",meta:[{name:"robots",content:"noindex"}]}},mounted:function(){return Object(o.a)(regeneratorRuntime.mark((function t(){var e;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Promise.all([n.e(3),n.e(4)]).then(n.bind(null,1492));case 2:e=t.sent,(0,e.default)();case 5:case"end":return t.stop()}}),t)})))()},data:function(){return{new_name:"",new_tags:"",editor:null,selected_cat:1,fixEd:!1,main_image_id:null,main_image_name:null,content:"
",selected_mod:-1,editorOption:{theme:"snow",placeholder:"Начните оформлять вашу статью :)",modules:{imageResize:{},toolbar:{handlers:{image:function(){document.getElementById("file").click()}},container:[["bold","italic","underline","strike"],[{list:"ordered"},{list:"bullet"}],[{script:"sub"},{script:"super"}],[{indent:"-1"},{indent:"+1"}],[{direction:"rtl"}],[{header:[2,3,4,5,6,!1]}],[{color:[]},{background:[]}],["clean"],["video","image"]]}}}}},computed:{auth:function(){return this.$store.state.auth},isAuthenticated:function(){return this.$store.getters.authenticated},API:function(){return r.a}},components:{RightPanel:n(351).default,Post:d.a,Header:c.default},created:function(){0},methods:{uploadFunction:function(t){var e=this;this.selectedFile=t.target.files[0];var form=new FormData;form.append("file",this.selectedFile),form.append("login",this.auth.login),form.append("access_token",this.auth.accessToken),form.append("name",this.selectedFile.name),this.$axios.post(r.a+"articles.images.upload",form,{headers:{"Content-Type":"multipart/form-data"}}).then((function(t){console.log("success"),console.log(t);var n=e.$refs.quillEdit.quill.getSelection();e.$refs.quillEdit.quill.insertEmbed(n.index,"image","https://static.cubixworld.net/articles/"+t.data.name)})).catch((function(t){console.log("error")}))},createArticle:function(){var t=this;this.response_answer=!0,this.$axios.post(r.a+"articles.create",{login:this.auth.login,access_token:this.auth.accessToken,name:this.new_name,content:this.content,category_id:this.selected_cat,tags:this.new_tags,image_name:this.main_image_name,mod_id:this.selected_mod}).then((function(e){console.log(e.data),"success"==e.data.type?(t.response_answer=!1,t.$notify.success({title:"Уря!",message:"Статья отправлена на проверку."}),console.log(e.data),window.location.href="/articles/"+e.data.url):(t.response_answer=!1,"10"==e.data.error?t.$notify.error({title:"Упс",message:"Название не может быть меньше 5 символов"}):"11"==e.data.error?t.$notify.error({title:"Упс",message:"Название не может быть больше 100 символов"}):"12"==e.data.error?t.$notify.error({title:"Упс",message:"Видимо в названии не присутствует ни одной русской буквы, исправьте, пожалуйста"}):"13"==e.data.error?t.$notify.error({title:"Упс",message:"Длина содержимого не может быть меньше 10 символов"}):"14"==e.data.error?t.$notify.error({title:"Упс",message:"Длина содержимого слишком большая. Максимум 200.000 символов"}):"21"==e.data.error?t.$notify.error({title:"Упс",message:"Вы указали меньше 5 ключевых слов"}):"22"==e.data.error?t.$notify.error({title:"Упс",message:"Вы указали больше 25 ключевых слов"}):"23"==e.data.error?t.$notify.error({title:"Будущая ссылка статьи уже существует.",message:"Попробуйте модифицировать название"}):"24"==e.data.error&&t.$notify.error({title:"Статья с таким же названием уже существует.",message:"Попробуйте модифицировать название"}))}))},uploadImage:function(t){var e=this,n=t.target.files[0],u=r.a+"articles.images.upload";if(null!=n){var o=new FormData;o.append("login",this.auth.login),o.append("access_token",this.auth.accessToken),o.append("file",n);var c={method:"POST",headers:{"content-type":"multipart/form-data"},data:o,url:u};this.$axios(c).then((function(t){e.$refs.fileImage;if(null==t.data.message)if("success"===t.data.type)e.$notify.success({title:"Ура!",message:"Изображение загружено!"}),e.main_image_id=t.data.id,e.main_image_name=t.data.name,console.log(t.data);else switch(t.data.error){case 0:e.$notify.error({title:"Ошибка загрузки",message:"Ключ авторизации неверный"});break;case 10:e.$notify.error({title:"Ошибка загрузки",message:"Вы пытаетесь загрузить файл с запрещенным форматом"});break;case 11:e.$notify.error({title:"Ошибка загрузки",message:"Запрещено загружать изображения размером более 3 МБ"});break;case 12:e.$notify.error({title:"Ошибка загрузки",message:"Разрешение изображения слишком мелкое"});break;case 13:e.$notify.error({title:"Ошибка загрузки",message:"Разрешение аватара слишком большое. Максимальный размер - 5000х5000 пикселей"});case 14:e.$notify.error({title:"Ошибка загрузки",message:"Такого сообщения нет"});case 15:e.$notify.error({title:"Ошибка прав загрузки",message:"Обратитесь к администрации, пожалуйста"})}else e.$notify.error({title:"Ошибка",message:t.data.message})})).catch((function(t){console.log(t)}))}else console.log("ФАЙЛ НЕ ВЫБРАН")}}},f=(n(1225),n(1227),n(1229),n(8)),component=Object(f.a)(l,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("div",{staticClass:"content"},[t.isAuthenticated?n("div",{staticClass:"left"},[t._m(0),t._v(" "),n("div",{staticClass:"setInfo"},[t._m(1),t._v(" "),n("div",{staticClass:"name"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.new_name,expression:"new_name"}],attrs:{type:"text",placeholder:"Придумайте уникальное название"},domProps:{value:t.new_name},on:{input:function(e){e.target.composing||(t.new_name=e.target.value)}}})])]),t._v(" "),n("div",{staticClass:"setInfo"},[t._v("\n Категория"),n("br"),t._v(" "),n("small",[t._v("Через запятую, минимум 5 слов, максимум 25")]),t._v(" "),n("div",{staticClass:"name tags"},[n("select",{directives:[{name:"model",rawName:"v-model",value:t.selected_cat,expression:"selected_cat"}],on:{change:function(e){var n=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.selected_cat=e.target.multiple?n:n[0]}}},t._l(t.categories,(function(e){return n("option",{key:e.id,domProps:{value:e.id}},[t._v("\n "+t._s(e.name)+"\n ")])})),0)])]),t._v(" "),n("div",{staticClass:"setInfo"},[t._v("\n Выбор мода"),n("br"),t._v(" "),n("small",[t._v("Выберите мод, для которого вы хотите написать гайд")]),t._v(" "),-1==t.selected_mod?n("div",{staticClass:"mods"},[t._l(t.modlist,(function(e){return n("div",{key:e.id,staticClass:"mod",on:{click:function(n){t.selected_mod=e.id}}},[n("img",{attrs:{src:"/assets/image/icons/server_describe/mods/"+e.id+".png",alt:e.name}}),t._v("\n "+t._s(e.name)+"\n ")])})),t._v(" "),n("div",{staticClass:"mod",on:{click:function(e){t.selected_mod=-2}}},[n("b",[t._v("Здесь нету нужного мода или статья не о моде")])])],2):n("div",{staticClass:"mods"},[t._l(t.modlist,(function(e){return n("div",{directives:[{name:"show",rawName:"v-show",value:e.id==t.selected_mod,expression:"mod.id==selected_mod"}],key:e.id,staticClass:"mod mod_selected",on:{click:function(e){t.selected_mod=-1}}},[n("img",{attrs:{src:"/assets/image/icons/server_describe/mods/"+e.id+".png",alt:e.name}}),t._v("\n "+t._s(e.name)+"\n ")])})),t._v(" "),n("div",{staticClass:"mod",on:{click:function(e){t.selected_mod=-1}}},[n("b",[t._v("Здесь нету нужного мода или статья не о моде")])])],2)]),t._v(" "),n("div",{staticClass:"setInfo"},[t._v("\n Ключевые слова"),n("br"),t._v(" "),n("small",[t._v("Через запятую, минимум 5 слов, максимум 25")]),t._v(" "),n("div",{staticClass:"name tags"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.new_tags,expression:"new_tags"}],attrs:{type:"text",placeholder:"Придумайте уникальные ключевые слова"},domProps:{value:t.new_tags},on:{input:function(e){e.target.composing||(t.new_tags=e.target.value)}}})])]),t._v("\n "+t._s(t.selected_mod)+"\n "),n("div",{staticClass:"setInfo"},[t._m(2),t._v(" "),null!=t.main_image_id?n("div",{staticClass:"preview"},[t._v("\n Прикрепленное изображение"),n("br"),t._v(" "),n("img",{attrs:{src:"https://static.cubixworld.net/articles/"+t.main_image_id}}),t._v(" "),n("button",{on:{click:function(e){t.main_image_id=null}}},[n("fa",{attrs:{icon:["fas","times"]}})],1)]):t._e(),t._v(" "),null==t.main_image_id?n("div",{staticClass:"interactions"},[n("label",{staticClass:"addImg",attrs:{for:"file-input"}},[n("fa",{attrs:{icon:["fas","camera"]}}),t._v("\n Добавить изображение\n ")],1),t._v(" "),n("input",{ref:"fileBanner",staticClass:"customSelect",staticStyle:{display:"none"},attrs:{id:"file-input",type:"file",accept:"image/*"},on:{change:function(e){return t.uploadImage(e)}}})]):t._e()]),t._v(" "),n("div",{staticClass:"textarea"},[n("div",{staticClass:"fixTop",on:{click:function(e){t.fixEd?t.fixEd=!1:t.fixEd=!0}}},[n("fa",{attrs:{icon:["fas",t.fixEd?"angle-down":"angle-up"]}})],1),t._v(" "),n("client-only",[n("input",{attrs:{type:"file",id:"file",hidden:""},on:{change:t.uploadFunction}}),t._v(" "),n("quill-editor",{ref:"quillEdit",class:{fixEditor:t.fixEd},attrs:{options:t.editorOption},model:{value:t.content,callback:function(e){t.content=e},expression:"content"}})],1)],1),t._v(" "),n("a",{staticClass:"button bg-gradient2 bg-gradient-dark-2",on:{click:function(e){return t.createArticle()}}},[n("span",[t._v("Отправить на проверку")])])]):n("div",{staticClass:"left"},[n("div",{staticClass:"headPage"},[t._v("\n Авторизуйтесь, пожалуйста.\n ")])]),t._v(" "),n("RightPanel",{attrs:{articles:!0,articles_categories:t.categories}})],1)])}),[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"headPage"},[t._v("\n Написание статьи"),n("br"),t._v(" "),n("small",[t._v("\n За хорошо написанную статью и правильное оформление автор получает награждение. Внимание! Не стоит копировать тексты с других сайтов, они будут отклонены, разрешается только уникально написанный текст."),n("br"),t._v("\n Подробнее об оплате(реальными деньгами) и постоянном сотрудничестве можете узнать, написав в телеграм: "),n("b",[t._v("@cubixworld_vacancies")])])])},function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"blockName"},[t._v("\n Главная информация о статье"),n("br"),t._v(" "),n("small",[t._v('Название должно быть четкое. Если это гайд по моду, то так и пишем "Гайд по моду НазваниеМода", если гайд по конкретно предмету, то "Действие Название_Предмета из мода Название_Мода"')])])},function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"blockName"},[t._v("\n Главное изображение"),n("br"),t._v(" "),n("small",[t._v("Если статья о каком-то моде или конкретном предмете - должен быть 16:9 красивый скриншот, желательно с шейдерами.")])])}],!1,null,"3cc8221e",null);e.default=component.exports},348:function(t,e,n){var content=n(353);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(15).default)("bd25ec8c",content,!0,{sourceMap:!1})},352:function(t,e,n){"use strict";n(348)},353:function(t,e,n){var o=n(14)(!1);o.push([t.i,".socials[data-v-0e781a7e]{display:inline-block;margin:10px 0}.social[data-v-0e781a7e]{width:45px;height:45px;border-radius:5px;float:left;margin-left:10px;text-align:center;opacity:.6;border:none;outline:none;cursor:pointer}.social[data-v-0e781a7e]:hover{opacity:1}.vk[data-v-0e781a7e]{background:#9cd1ff}.odnoklassniki[data-v-0e781a7e]{background:#ffd290}.telegram[data-v-0e781a7e]{background:#9fe0ff}.facebook[data-v-0e781a7e]{background:#a3c0ff}.twitter[data-v-0e781a7e]{background:#bdeaff}.viber[data-v-0e781a7e]{background:#c5bcff}.whatsapp[data-v-0e781a7e]{background:#a6ffb7}.social img[data-v-0e781a7e]{width:30px;height:30px;margin:7px 0}",""]),t.exports=o},354:function(t,e,n){"use strict";n.r(e);var o=n(43),r={props:{url:String,title:String,description:String},data:function(){return{country:null,socials:[],show:!1}},computed:{auth:function(){return this.$store.state.auth},isAuthenticated:function(){return this.$store.getters.authenticated},API:function(){return o.a}},created:function(){this.loadCountry()},methods:{loadCountry:function(){var t=this;this.$axios.get("https://api.country.is/").then((function(e){t.country=e.data.country,null!=t.country&&"UA"!=t.country?(t.socials.push("vk"),t.socials.push("odnoklassniki"),t.socials.push("twitter"),t.socials.push("telegram"),t.socials.push("viber"),t.socials.push("whatsapp")):null!=t.country&&"UA"==t.country&&(t.socials.push("facebook"),t.socials.push("twitter"),t.socials.push("telegram"),t.socials.push("viber"),t.socials.push("whatsapp"))}))},sendStat:function(t){this.$axios.get(o.a+"social.sharing?login="+this.auth.login+"&access_token="+this.auth.accessToken+"&social_name="+t).then((function(t){console.log(t.data)}))}}},c=(n(352),n(8)),component=Object(c.a)(r,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[t.show?n("div",{staticClass:"socials"},t._l(t.socials,(function(s){return n("ShareNetwork",{key:s,attrs:{network:s,url:"https://download.kalataka.ru"+t.url,title:t.title,description:t.description,hashtags:"cubixworld, cubixworld.net"}},[n("div",{class:"social "+s,style:"vk"==s?"margin-left:0":"",on:{click:function(e){return t.sendStat(s)}}},[n("img",{directives:[{name:"lazy-load",rawName:"v-lazy-load"}],attrs:{src:"/assets/image/icons/socials/"+s+".svg",alt:t.$t("socialSharing_share")+" "+s}})])])})),1):n("div",{staticClass:"socials"},t._l(t.socials,(function(s){return n("button",{key:s+"ss",class:"social "+s,style:"vk"==s?"margin-left:0":"",on:{click:function(e){t.show=!0}}},[n("img",{directives:[{name:"lazy-load",rawName:"v-lazy-load"}],attrs:{src:"/assets/image/icons/socials/"+s+".svg",alt:t.$t("socialSharing_share")+" "+s}})])})),0)])}),[],!1,null,"0e781a7e",null);e.default=component.exports},356:function(t,e){t.exports=function(t){var e={};function n(o){if(e[o])return e[o].exports;var r=e[o]={i:o,l:!1,exports:{}};return t[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=e,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},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 o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(o,r,function(e){return t[e]}.bind(null,r));return o},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 o=n("56d7"),r=n.n(o);for(var c in o)["default"].indexOf(c)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(c);e.default=r.a},"2be6":function(t,e,n){"use strict";function o(t,e,n,o,r,c,d,l){var f,h="function"==typeof t?t.options:t;if(e&&(h.render=e,h.staticRenderFns=n,h._compiled=!0),o&&(h.functional=!0),c&&(h._scopeId="data-v-"+c),d?(f=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__),r&&r.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(d)},h._ssrRegister=f):r&&(f=l?function(){r.call(this,(h.functional?this.parent:this).$root.$options.shadowRoot)}:r),f)if(h.functional){h._injectStyles=f;var v=h.render;h.render=function(t,e){return f.call(e),v(t,e)}}else{var m=h.beforeCreate;h.beforeCreate=m?[].concat(m,f):[f]}return{exports:t,options:h}}n.d(e,"a",(function(){return o}))},"407a":function(t,e,n){"use strict";n.r(e);var o=n("502d"),r=n("fa1f");for(var c in r)["default"].indexOf(c)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(c);var d=n("2be6"),component=Object(d.a)(r.default,o.a,o.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 o})),n.d(e,"b",(function(){return r}));var o=function(){var t=this.$createElement;return(this._self._c||t)("div",{attrs:{id:"hcap-script"}})},r=[]},"56d7":function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.install=c;var o,r=(o=n("407a"))&&o.__esModule?o:{default:o};function c(t){c.installed||(c.installed=!0,t.component("vuehcaptcha",r.default),t.component("VueHcaptcha",r.default))}var d={install:c},l=null;"undefined"!=typeof window?l=window.Vue:void 0!==t&&(l=t.Vue),l&&l.use(d);var f=r.default;e.default=f}).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 o=n("dfcd"),r={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,o.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=r},dfcd:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SCRIPT_ID=void 0,e.addQueryParamIfDefined=h,e.getScriptSrc=f,e.loadApiEndpointIfNotAlready=function(t){if(window.hcaptcha)return r(),l;if(document.getElementById(o))return l;window._hcaptchaOnLoad=r;var e=f(t),script=document.createElement("script");return script.id=o,script.src=e,script.async=!0,script.defer=!0,script.onerror=function(t){console.error("Failed to load api: "+e,t),c("Failed to load api.js")},document.head.appendChild(script),l};var o="hcaptcha-api-script-id";e.SCRIPT_ID=o;var r,c,d="_hcaptchaOnLoad",l=new Promise((function(t,e){r=t,c=e}));function f(t){var e=t.apiEndpoint;return e=h(e,"render","explicit"),e=h(e,"onload",d),e=h(e,"recaptchacompat",!1===t.reCaptchaCompat?"off":null),e=h(e,"hl",t.language),e=h(e,"sentry",t.sentry),e=h(e,"endpoint",t.endpoint),e=h(e,"assethost",t.assethost),e=h(e,"imghost",t.imghost),e=h(e,"reportapi",t.reportapi)}function h(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 o=n("cada"),r=n.n(o);for(var c in o)["default"].indexOf(c)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(c);e.default=r.a}})},388:function(t,e,n){var content=n(403);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(15).default)("99716bb0",content,!0,{sourceMap:!1})},389:function(t,e,n){var content=n(405);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(15).default)("d8e98cd8",content,!0,{sourceMap:!1})},402:function(t,e,n){"use strict";n(388)},403:function(t,e,n){var o=n(14)(!1);o.push([t.i,".heads[data-v-312b1e11]{width:100%;font-family:Arial,Helvetica,sans-serif}.header[data-v-312b1e11]{width:100%;background:#fff;box-shadow:1px 1px 5px 0 rgba(0,0,0,.25)}.header .text[data-v-312b1e11]{font-size:40px;width:94%;padding:10px 3%;color:#181818}.header .text h1[data-v-312b1e11]{font-size:23px;font-weight:800}.header .text p[data-v-312b1e11]{font-size:16px;font-weight:500}.buttons[data-v-312b1e11]{width:94%;padding:0 3% 10px}.buttons .typeName[data-v-312b1e11]{width:100%;font-size:16px;margin-top:5px;font-weight:600;display:inline-block}.buttons .types[data-v-312b1e11]{width:100%;margin-top:5px;padding-bottom:7px;border-bottom:1px solid #ececec}.buttons .types[data-v-312b1e11]:last-child{border-bottom:none;padding-bottom:0}.buttons .types a[data-v-312b1e11]{padding:1px 6px;border-radius:3px;color:#0348c9;background:#cff5ff;display:inline-block;margin-right:5px;margin-top:5px;font-size:13px;border:1px solid #9ec8f0}.buttons .types a[data-v-312b1e11]:hover{box-shadow:1px 1px 5px 0 rgba(0,0,0,.2)}@media (max-width:600px){.header .text[data-v-312b1e11]{font-size:30px;padding-top:110px;width:100%}.header .text .small[data-v-312b1e11]{padding:10px 20px;font-size:18px}}@media (max-width:400px){.header .text[data-v-312b1e11]{padding-top:60px!important}}",""]),t.exports=o},404:function(t,e,n){"use strict";n(389)},405:function(t,e,n){var o=n(14)(!1);o.push([t.i,".post[data-v-48dd0985]{width:calc(33.33% - 20px);margin:20px 10px 0;float:left;background:#fff;transition:.2s;box-shadow:1px 1px 5px 0 rgba(0,0,0,.25)}.post[data-v-48dd0985]:hover{transition:.2s;box-shadow:1px 1px 15px 0 rgba(0,0,0,.35)}.post .namePost[data-v-48dd0985]{width:100%;padding:10px 0;height:45px;font-size:20px;text-align:center;font-weight:700;color:#656565;display:block}.post img[data-v-48dd0985]{width:100%}.post .postInfo[data-v-48dd0985]{height:50px;margin-top:-5px}.post .postInfo .info[data-v-48dd0985]{padding:0 10px;line-height:30px;height:30px;margin-top:10px;border-right:1px solid #e0e0e0;float:left;font-size:18px;font-weight:600}.post .postInfo a[data-v-48dd0985]{font-weight:200}.post .postInfo .info span[data-v-48dd0985]{font-weight:lighter}.post .postInfo .info[data-v-48dd0985]:last-child{border-right:0}.post .postInfo .button_more[data-v-48dd0985]{width:33.33%;float:left;text-align:center;overflow:hidden;height:50px;line-height:50px;color:#fff;font-size:18px;font-weight:lighter;background:#8a2be2;cursor:pointer}.post .postInfo .button_more[data-v-48dd0985]:hover{background:#711ebe}.imgurl[data-v-48dd0985]{display:block;height:200px;overflow:hidden}.imgurl img[data-v-48dd0985]{min-height:200px}.post .categ[data-v-48dd0985]{text-align:center;font-weight:300;padding-bottom:10px}@media (max-width:1150px){.post[data-v-48dd0985]{width:100%;margin:20px 0 0;float:left}}",""]),t.exports=o},413:function(t,e,n){"use strict";var o=n(43),r={props:{post:Object,admin:Boolean,smaller:Boolean},data:function(){return{}},created:function(){0},computed:{auth:function(){return this.$store.state.auth},isAuthenticated:function(){return this.$store.getters.authenticated},API:function(){return o.a}},methods:{millsToDate:function(t){return this.$moment.locale("ru"),this.$moment(t).format("LL")},publish:function(t){var e=this;this.$axios.post(o.a+"articles.publish",{login:this.auth.login,access_token:this.auth.accessToken,article_id:t}).then((function(t){"success"==t.data.type?(e.$notify.success({title:"Ура",message:"Статья опубликована!"}),e.$parent.loadUnpublishedArticles()):"10"==t.data.error&&e.$notify.error({title:"Упс",message:"У тебя нету прав на это :)"})}))},deletePublish:function(t){var e=this;this.$axios.post(o.a+"articles.delete",{login:this.auth.login,access_token:this.auth.accessToken,article_id:t}).then((function(t){"success"==t.data.type?(e.$notify.success({title:"Ура",message:"Статья удалена!"}),e.$parent.loadUnpublishedArticles()):"10"==t.data.error&&e.$notify.error({title:"Упс",message:"У тебя нету прав на это :)"})}))}}},c=(n(404),n(8)),component=Object(c.a)(r,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:{post:!0}},[n("nuxt-link",{staticClass:"namePost",attrs:{to:t.localePath("/articles/"+t.post.url)}},[t._v("\n "+t._s(t.post.hasOwnProperty("name_"+t.$i18n.locale)?t.post["name_"+t.$i18n.locale]:t.post.name)+"\n ")]),t._v(" "),n("div",{staticClass:"categ"},[t._v(t._s(t.post.category_name))]),t._v(" "),n("nuxt-link",{staticClass:"imgurl",attrs:{to:t.localePath("/articles/"+t.post.url)}},[t.post.date<1664226e6?n("img",{directives:[{name:"lazy-load",rawName:"v-lazy-load"}],attrs:{src:t.API+"articles.loadImage?article_id="+t.post.id,alt:t.post.hasOwnProperty("name_"+t.$i18n.locale)?t.post["name_"+t.$i18n.locale]:t.post.name}}):n("img",{directives:[{name:"lazy-load",rawName:"v-lazy-load"}],attrs:{src:"https://static.cubixworld.net/articles/"+t.post.image,alt:t.post.hasOwnProperty("name_"+t.$i18n.locale)?t.post["name_"+t.$i18n.locale]:t.post.name}})]),t._v(" "),t.admin?n("div",{staticClass:"postInfo"},[t.admin?n("nuxt-link",{staticClass:"button_more",attrs:{to:t.localePath("/articles/"+t.post.url)}},[t._v("Подробнее")]):t._e(),t._v(" "),t.admin?n("a",{staticClass:"button_more",on:{click:function(e){return t.publish(t.post.id)}}},[t._v("Опубликовать")]):t._e(),t._v(" "),t.admin?n("a",{staticClass:"button_more",on:{click:function(e){return t.deletePublish(t.post.id)}}},[t._v("Удалить навсегда")]):t._e()],1):t._e()],1)}),[],!1,null,"48dd0985",null);e.a=component.exports},415:function(t,e,n){"use strict";n.r(e);var o=n(354),r={props:{categories:Object,versions:Object,categoryPage:Boolean,cats:Object},created:function(){0},components:{SocialSharing:o.default},methods:{}},c=(n(402),n(8)),component=Object(c.a)(r,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"heads"},[n("div",{staticClass:"header"},[n("div",{staticClass:"text"},[t.categoryPage?n("span",[n("h1",[t._v(t._s(t.cats.page_name))]),t._v(" "),t.cats.hasOwnProperty("description_"+t.$i18n.locale)?n("p",[t._v(t._s(t.cats["description_"+t.$i18n.locale]))]):n("p",[t._v(t._s(t.cats.description))])]):n("span",[n("h1",[t._v(t._s(t.$t("mods_header1_h1")))]),t._v(" "),n("p",[t._v(t._s(t.$t("mods_header1_p")))])]),t._v(" "),t.cats.isVersion&&t.categoryPage?n("span",[n("h1",[t._v(t._s(t.$t("mods_header2_h1"))+" "+t._s(t.cats.name))]),t._v(" "),n("p",[t._v(t._s(t.$t("mods_header2_p"))+" "+t._s(t.cats.name)+". "+t._s(t.$t("mods_header2_p2")))])]):t._e()]),t._v(" "),n("div",{staticClass:"buttons"},[n("div",{staticClass:"typeName"},[t._v(t._s(t.$t("mods_header_versions")))]),t._v(" "),n("div",{staticClass:"types"},[n("nuxt-link",{attrs:{to:t.localePath("/mods")}},[t._v(t._s(t.$t("mods_header_all")))]),t._v(" "),t._l(t.versions,(function(e){return n("nuxt-link",{key:e.id,class:{selectedButton:t.categoryPage&&t.cats.isVersion&&e.id==t.cats.id},attrs:{to:t.localePath(e.id==t.cats.id&&t.cats.isVersion?"/mods":"/mods/"+e.url)}},[t._v("\n\t\t\t\t\t"+t._s(e.name)+"\n\t\t\t\t")])}))],2),t._v(" "),n("div",{staticClass:"typeName"},[t._v(t._s(t.$t("mods_header_categories")))]),t._v(" "),n("div",{staticClass:"types"},[n("nuxt-link",{attrs:{to:t.localePath("/mods")}},[t._v(t._s(t.$t("mods_header_all")))]),t._v(" "),t._l(t.categories,(function(e){return n("nuxt-link",{key:e.id,class:{selectedButton:t.categoryPage&&!t.cats.isVersion&&e.id==t.cats.id},attrs:{to:t.localePath(e.id!=t.cats.id||t.cats.isVersion?"/mods/"+e.url:"/mods")}},[t._v("\n\t\t\t\t\t"+t._s(e.hasOwnProperty("name_"+t.$i18n.locale)?e["name_"+t.$i18n.locale]:e.name)+"\n\t\t\t\t")])}))],2),t._v(" "),n("div",{staticClass:"typeName"},[t._v(t._s(t.$t("mods_header_share")))]),t._v(" "),n("SocialSharing",{attrs:{url:t.categoryPage?"/mods/"+t.cats.url:"/mods",title:(t.cats.isVersion?t.$t("mods_header_share_title1")+" "+t.cats.name:t.cats.page_name+" Minecraft")+" "+t.$t("mods_header_share_title2")+" cubixworld.net",description:t.cats.description}})],1)])])}),[],!1,null,"312b1e11",null);e.default=component.exports},665:function(t,e,n){var content=n(1226);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(15).default)("3b8652f7",content,!0,{sourceMap:!1})},666:function(t,e,n){var content=n(1228);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(15).default)("54155668",content,!0,{sourceMap:!1})},667:function(t,e,n){var content=n(1230);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(15).default)("71b0a11a",content,!0,{sourceMap:!1})}}]);