(window.webpackJsonp=window.webpackJsonp||[]).push([[89,2],{1336:function(e,t,o){"use strict";o(725)},1337:function(e,t,o){var n=o(13)(!1);n.push([e.i,".adminPanel[data-v-51700e9c]{margin-top:20px;padding:20px;color:#fff;background-color:#ff3cac;background-image:linear-gradient(225deg,#ff3cac,#784ba0 50%,#2b86c5)!important}.adminPanel .header[data-v-51700e9c]{width:100%;line-height:30px;height:40px;border-bottom:1px solid hsla(0,0%,100%,.1);font-weight:100;font-size:24px;display:inline-block}.adminPanel .header svg[data-v-51700e9c]{margin-right:10px}.adminPanel button[data-v-51700e9c]{cursor:pointer;font-size:16px;float:left;font-weight:400;opacity:.8;transition:.3s;padding:5px 10px;border:none;color:#000;margin-right:10px;box-shadow:3px 3px 5px 1px rgba(0,0,0,.1);margin-top:10px;background:hsla(0,0%,100%,.6)}.adminPanel button[data-v-51700e9c]:hover{transition:.3s;background:hsla(0,0%,100%,.9)}.adminPanel .headerStatus[data-v-51700e9c]{width:100%;line-height:40px;height:40px;border-bottom:1px solid hsla(0,0%,100%,.1);font-weight:100;font-size:18px;margin-top:20px}.adminPanel .status button[data-v-51700e9c]{color:#fff;outline:none}.adminPanel .status button[data-v-51700e9c]:first-child{color:#000}.adminPanel .status .yellow[data-v-51700e9c]{background:#ffcb00}.adminPanel .status .red[data-v-51700e9c]{background:#e20000}.adminPanel .status .green[data-v-51700e9c]{background:green}.adminPanel .status .border[data-v-51700e9c]{border-bottom:2px solid #353535}.adminPanel .move[data-v-51700e9c]{margin-top:10px;display:inline-block}.adminPanel .move select[data-v-51700e9c]{font-size:16px;font-weight:400;opacity:.8;padding:5px 10px;border:none;color:#000;margin-right:10px;box-shadow:3px 3px 5px 1px rgba(0,0,0,.1);background:hsla(0,0%,100%,.6);float:left}.adminPanel .move select[data-v-51700e9c]:hover{opacity:1}.adminPanel .move button[data-v-51700e9c]{margin-top:0}.adminPanel .blockUser button[data-v-51700e9c]{margin-top:10px;margin-left:10px}.adminPanel .blockUser input[data-v-51700e9c]{float:left;font-size:16px;font-weight:400;opacity:.8;transition:.3s;padding:5px 10px;border:none;color:#000;width:60%;margin-right:10px;box-shadow:3px 3px 5px 1px rgba(0,0,0,.1);background:hsla(0,0%,100%,.6)}.adminPanel .blockUser input[data-v-51700e9c]:first-child{width:30%!important}.adminPanel .blockUser .time[data-v-51700e9c]{float:left;background:hsla(0,0%,100%,.2);height:30px;margin-top:10px}.adminPanel .blockUser .time input[data-v-51700e9c]{width:50px}.adminPanel .blockUser .time .eTime[data-v-51700e9c]{float:left;font-size:14px;font-weight:400;opacity:.8;transition:.3s;padding:3px 5px;margin-top:4px;border:none;color:#000;margin-right:10px;cursor:pointer;box-shadow:3px 3px 5px 1px rgba(0,0,0,.1);background:hsla(0,0%,100%,.6)}.adminPanel .blockUser .time .eSelected[data-v-51700e9c]{opacity:1;background:#fff}",""]),e.exports=n},1338:function(e,t,o){"use strict";o(726)},1339:function(e,t,o){var n=o(13)(!1);n.push([e.i,".ql-editor{padding-bottom:10px;min-height:140px}.ql-container{min-height:100px}.ql-container.ql-snow{border:1px solid #fff!important}",""]),e.exports=n},1340:function(e,t,o){"use strict";o(727)},1341:function(e,t,o){var n=o(13)(!1);n.push([e.i,"[data-tooltip][data-v-075e39a6]{position:relative;margin:0}[data-tooltip][data-v-075e39a6]:after{content:attr(data-tooltip);position:absolute;width:130px;margin-left:-60px;text-align:center;background:#3babf5;color:#fff;padding:.5em;font-size:16px;transition:.2s;box-shadow:2px 2px 5px rgba(0,0,0,.3);pointer-events:none;opacity:0;font-weight:lighter}[data-tooltip][data-v-075e39a6]:hover:after{opacity:1;margin-top:-40px}.content[data-v-075e39a6]{width:1200px;display:inline-block;margin:0 calc(50% - 600px)}.content .left[data-v-075e39a6]{width:830px;float:left}.news[data-v-075e39a6]{width:100%}.heads[data-v-075e39a6]{width:calc(100% - 40px);padding-left:40px;color:#fff;height:100px;overflow:hidden;background:url(/assets/image/page_headers/forum/topic_top.jpg);background-size:cover;background-position-y:center}.heads .name[data-v-075e39a6]{font-weight:600;font-size:20px}.heads .name .isClosed[data-v-075e39a6]{color:#cfcfcf}.heads .infos[data-v-075e39a6]{margin-top:10px;color:#c7c7c7;font-size:16px}.heads .infos svg[data-v-075e39a6]{margin-left:20px}.heads .infos svg[data-v-075e39a6]:first-child{margin:0}.heads .infos .notify[data-v-075e39a6]{color:#000;background:hsla(0,0%,100%,.5);float:right;padding:3px 8px;margin-right:5px;border-radius:5px;cursor:pointer}.heads .infos .notify[data-v-075e39a6]:hover{background:hsla(0,0%,100%,.9)}.heads .tag[data-v-075e39a6]{font-size:12px;font-weight:400;padding:2px 5px;color:#fff;vertical-align:middle;margin-right:10px;box-shadow:3px 3px 5px 1px rgba(0,0,0,.1)}.heads .yellow[data-v-075e39a6]{background:#ffcb00}.heads .red[data-v-075e39a6]{background:#e20000}.heads .green[data-v-075e39a6]{background:green}.message[data-v-075e39a6]{width:100%;margin-top:30px}.message .userInfo[data-v-075e39a6]{background:#f3f3f3;display:inline-block;width:100%;height:80px;border-bottom:1px solid #e0e0e0}.message .userInfo .avatar[data-v-075e39a6]{margin-top:10px;margin-left:20px;width:60px;height:60px;border-radius:50%;overflow:hidden;float:left;display:block;box-shadow:3px 3px 5px 1px rgba(0,0,0,.05)}.message .userInfo .avatar img[data-v-075e39a6]{width:100%;height:100%}.message .userInfo .names[data-v-075e39a6]{float:left;margin-left:20px;margin-top:16px}.message .userInfo .names .n[data-v-075e39a6]{display:inline-block}.message .userInfo .names .name[data-v-075e39a6]{font-size:20px;font-weight:600;color:#202020;float:left}.message .userInfo .names .author[data-v-075e39a6]{color:#c49600;padding:0 5px;background-color:#fff491}.message .confirmed[data-v-075e39a6]{width:25px;height:25px;vertical-align:middle;margin-top:-4px}.message .userInfo .icons[data-v-075e39a6]{float:right;width:50px;height:50px;text-align:center;margin-right:20px;margin-top:15px;line-height:60px;border-radius:50%;cursor:pointer;transition:.3s}.message .userInfo .icons svg[data-v-075e39a6]{font-size:23px;color:#9c9c9c}.message .userInfo .icons .check[data-v-075e39a6]{color:#1dc22b}.message .userInfo .icons[data-v-075e39a6]:hover{transition:.3s;background:#dfdfdf;box-shadow:1px 1px 5px rgba(35,35,35,.2)}.message .userInfo .date[data-v-075e39a6]{font-size:15px}.message .text[data-v-075e39a6]{padding:10px 20px 0;font-size:16px;display:inline-block;position:relative}.message .images[data-v-075e39a6]{margin-left:20px;padding-top:20px}.message .images img[data-v-075e39a6]{max-width:100%}.message .interactions[data-v-075e39a6]{margin:10px 20px 0;width:calc(100% - 80px);display:inline-block;border-top:1px solid #d8d8d8;padding-bottom:5px}.message .interactions .button[data-v-075e39a6]{font-size:21px;line-height:10px;font-weight:500;float:left;margin-top:8px;padding:10px;cursor:pointer}.message .interactions .button svg[data-v-075e39a6]{font-size:27px;color:#75bef1;margin-right:3px;line-height:-17px;vertical-align:text-bottom}.message .interactions .button .liked[data-v-075e39a6]{color:#0095ff}.message .interactions .button[data-v-075e39a6]:hover{background:#cde6f7}.message .interactions .likes[data-v-075e39a6]{margin-top:11px;float:left}.message .interactions .likes img[data-v-075e39a6]{width:40px;height:40px;float:left;border-radius:50%;position:absolute;border:2px solid #fff;margin-left:20px;transition:.3s}.message .interactions .likes .three[data-v-075e39a6]{margin-left:60px}.message .interactions .likes .second[data-v-075e39a6]{margin-left:40px}.message .interactions .likes:hover .second[data-v-075e39a6]{transition:.3s;margin-left:60px}.message .interactions .likes:hover .three[data-v-075e39a6]{transition:.4s;margin-left:100px}.tree[data-v-075e39a6]{margin-top:15px;font-size:17px;font-weight:200}.tree svg[data-v-075e39a6]{margin:0 5px;font-size:15px}.tree a[data-v-075e39a6],.tree svg[data-v-075e39a6]{color:#fff}.tree svg[data-v-075e39a6]:first-child{margin:0}.sendMessage[data-v-075e39a6]{margin-top:30px;position:relative}.sendMessage .preview[data-v-075e39a6]{width:calc(100% - 40px);padding:10px 20px;font-size:20px;font-weight:400;background:#f3f4f5}.sendMessage .preview img[data-v-075e39a6]{height:150px;margin:3px 0}.sendMessage .preview button[data-v-075e39a6]{margin-left:-21px;border:none;background:#c7c7c7;width:25px;height:25px;color:#fff;border-radius:50%;cursor:pointer}.sendMessage .textarea[data-v-075e39a6]{width:100%}.sendMessage .textarea textarea[data-v-075e39a6]{width:calc(100% - 40px);height:100%;border:none;resize:none;outline:none;font-size:16px;padding:20px}.sendMessage .interactions[data-v-075e39a6]{bottom:10px;width:calc(100% - 30px);margin:0 15px;padding:15px 0;min-height:50px}.sendMessage .watch[data-v-075e39a6]{color:#b9b9b9;font-size:15px;border:none;float:left;background:none;padding:0 10px}.sendMessage .interactions .sendAnswer[data-v-075e39a6],.sendMessage .watch[data-v-075e39a6]{height:100%;line-height:40px;outline:none;cursor:pointer;transition:.2s}.sendMessage .interactions .sendAnswer[data-v-075e39a6]{float:right;padding:0 30px;background:#5bb7ed;width:150px;border-radius:15px;color:#fff;font-size:20px;border:none;text-shadow:0 2px 8px #fff}.sendMessage .interactions button[data-v-075e39a6]:last-child:hover{background:#5b9aed;transition:.1s}.sendMessage .interactions .sendAnswer img[data-v-075e39a6]{width:30px;margin-top:5px}.error[data-v-075e39a6]{width:calc(100% - 40px);padding:20px;background:#faebef;margin-top:30px;font-size:20px;display:inline-block;color:#e24c4b;border-radius:10px;box-shadow:1px 1px 5px 0 rgba(87,22,22,.25);text-shadow:0 2px 8px #e24c4b}.error .icon[data-v-075e39a6]{width:70px;text-align:center;float:left}.error .icon img[data-v-075e39a6]{width:80%}.error .text[data-v-075e39a6]{float:left;width:calc(100% - 170px);margin-left:25px;margin-top:20px;position:relative;word-wrap:anywhere}.locked[data-v-075e39a6]{background:#faf5eb;color:#e28f4b}.forums[data-v-075e39a6]{margin-top:30px;background:#fff;box-shadow:1px 1px 5px 0 rgba(0,0,0,.25)}.list_name[data-v-075e39a6]{width:calc(100% - 20px);font-size:18px;font-weight:800;padding-left:20px;height:50px;line-height:50px;color:#222;border-bottom:1px solid #d6d6d6}.forum[data-v-075e39a6]{width:calc(100% - 10px);height:80px;padding:10px 5px;border-bottom:1px solid #e0e0e0;background:#fff}.forum .icon[data-v-075e39a6]{width:60px;height:60px;background:#a2e0f0;border-radius:50%;margin-left:10px;margin-top:10px;float:left;text-align:center}.forum .icon img[data-v-075e39a6]{width:70%;margin-top:10px}.forum .description[data-v-075e39a6]{float:left;width:calc(100% - 290px);margin-top:17px;margin-left:20px;padding-right:10px}.forum .description .name[data-v-075e39a6]{font-size:20px;font-weight:400;color:#000}.forum .description .more[data-v-075e39a6]{font-size:16px;font-weight:400;color:#3d3d3d}.forum .number[data-v-075e39a6]{float:right;width:130px;margin-top:20px;text-align:right;padding-right:20px}.forum .number .num[data-v-075e39a6]{font-weight:400;font-size:20px}.forum .number .name[data-v-075e39a6]{font-weight:600;font-size:15px;color:#3d3d3d}.moderPanel[data-v-075e39a6]{color:#fff;padding:20px;margin-top:30px;overflow:hidden;background:url(/assets/image/page_headers/forum/moder_panel.png);background-size:cover;background-position-y:center}.moderPanel .name[data-v-075e39a6]{height:40px;line-height:40px;font-size:20px;border-bottom:1px solid hsla(0,0%,100%,.3)}.groups[data-v-075e39a6]{border-radius:4px;font-size:16px;float:left;margin-left:5px;margin-top:1px;padding:0 3px}@media (max-width:800px){.heads[data-v-075e39a6]{height:auto!important;padding:20px}.message .userInfo[data-v-075e39a6]{height:auto;padding-bottom:15px}.sendMessage .textarea[data-v-075e39a6]{padding-bottom:110px}.sendMessage .watch[data-v-075e39a6]{width:calc(100% - 20px);height:100%;height:35px;text-align:center;padding-top:10px;padding-bottom:10px}.sendMessage .interactions[data-v-075e39a6]{height:100px}.sendMessage .interactions .sendAnswer[data-v-075e39a6]{width:100%;height:40px}.sendMessage .interactions .sendAnswerMob[data-v-075e39a6]{margin-top:30px;height:50px}}.info_groupd[data-v-075e39a6]{background:#fff;position:absolute;margin-top:5px;box-shadow:2px 2px 10px rgba(0,0,0,.25882);padding:10px;font-weight:400;z-index:9999}.info_groupd b[data-v-075e39a6]{font-weight:1000;font-size:20px}",""]),e.exports=n},1489:function(e,t,o){"use strict";o.r(t);var n=o(4),r=(o(27),o(48),o(16),o(20),o(26)),c=o(354),d={name:"moderPanel",props:{topic:Object},data:function(){return{move:{selected:{forum:-1,section:-1,theme:-1},forums:null,themes:null},deleteConfirmation:!1,blockUser:{login:"",reason:"",time:1,eTime:0},deleteLast:{login:"",time:1}}},created:function(){this.loadForums()},computed:{auth:function(){return this.$store.state.auth},isAuthenticated:function(){return this.$store.getters.authenticated},API:function(){return r.a}},methods:{deleteLastMess:function(){var e=this;console.log("deleteLast"),this.$axios.post(r.a+"forum.topic.moder.deleteLastTime",{login:this.auth.login,access_token:this.auth.accessToken,user_login:this.deleteLast.login,minutes:this.deleteLast.time}).then((function(t){console.log(t.data),"success"==t.data.type?(e.$notify.success({message:"Все сообщения пользователя удалены"}),e.deleteLast.login="",e.deleteLast.time=1):("11"==t.data.error&&e.$notify.error({title:"Упс",message:"Такое право только в управляющего и выше"}),"10"==t.data.error&&e.$notify.error({title:"Упс",message:"Такого юзера не существует"}))}))},blockUserF:function(){var e=this;this.$axios.post(r.a+"forum.topic.moder.blockUser",{login:this.auth.login,access_token:this.auth.accessToken,topic_id:this.topic.id,block_login:this.blockUser.login,time:this.blockUser.time,eTime:this.blockUser.eTime,reason:this.blockUser.reason}).then((function(t){"success"==t.data.type?(e.$notify.success({message:"Пользователь заблокирован."}),e.blockUser.login="",e.blockUser.reason="",e.blockUser.time=1,e.blockUser.eTime=0):"11"==t.data.error&&e.$notify.error({title:"Упс",message:"Такого юзера не существует"})}))},changeTag:function(e){var t=this;this.$axios.post(r.a+"forum.topic.moder.tag",{login:this.auth.login,access_token:this.auth.accessToken,tag_id:e,topic_id:this.topic.id}).then((function(e){"success"==e.data.type?(t.$notify.success({message:"Статус изменен"}),t.$parent.loadTopic()):e.data.error}))},lockTopic:function(){var e=this;this.$axios.post(r.a+"forum.topic.moder.close",{login:this.auth.login,access_token:this.auth.accessToken,topic_id:this.topic.id}).then((function(t){"success"==t.data.type?(e.$notify.success({title:"Ляяпс!",message:"И тема закрыта!"}),e.$parent.loadTopic()):(console.log(t.data),t.data.error)}))},visibleTopic:function(){var e=this;this.$axios.post(r.a+"forum.topic.moder.visible",{login:this.auth.login,access_token:this.auth.accessToken,topic_id:this.topic.id}).then((function(t){"success"==t.data.type?(e.$notify.success({title:"Ляяпс!",message:"И тема скрыта!"}),e.$parent.loadTopic()):(console.log(t.data),t.data.error)}))},fixTopic:function(){var e=this;this.$axios.post(r.a+"forum.topic.moder.fix",{login:this.auth.login,access_token:this.auth.accessToken,topic_id:this.topic.id}).then((function(t){"success"==t.data.type?(e.$notify.success({title:"Ляяпс!",message:"И тема закреплена!"}),e.$parent.loadTopic()):(console.log(t.data),t.data.error)}))},deleteTopic:function(){var e=this;this.$axios.post(r.a+"forum.topic.moder.delete",{login:this.auth.login,access_token:this.auth.accessToken,topic_id:this.topic.id}).then((function(t){"success"==t.data.type?(e.$notify.success({title:"Ляяпс!",message:"И тема удалена!"}),e.$router.push("/forum/topics/"+e.topic.theme_id)):(console.log(t.data),"10"==t.data.error&&e.$notify.error({title:"Упс",message:"Нет прав"}))}))},loadForums:function(){var e=this;this.$axios.get(r.a+"forum.forums?type=1").then((function(t){"success"==t.data.type&&(e.move.forums=t.data.forums)}))},loadTheme:function(){var e=this;this.move.selected.section<0||this.$axios.get(r.a+"forum.forums.sections.themes?type=3§ion_id="+this.move.selected.section).then((function(t){"success"==t.data.type&&(e.move.themes=t.data.themes)}))},changeTopicTheme:function(){var e=this;this.$axios.post(r.a+"forum.topic.moder.move",{login:this.auth.login,access_token:this.auth.accessToken,topic_id:this.topic.id,newTheme_id:this.move.selected.theme}).then((function(t){"success"==t.data.type?(e.$notify.success({title:"Ляяпс!",message:"И тема перемещена!"}),e.$router.app.refresh()):(console.log(t.data),"10"==t.data.error?e.$notify.error({title:"Упс",message:"Нет прав"}):"5"==t.data.error?e.$notify.error({title:"Упс",message:"Раздел"}):"6"==t.data.error&&e.$notify.error({title:"Упс",message:"Не указан подраздел"}))}))}}},l=(o(1336),o(8)),f=Object(l.a)(d,(function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"section adminPanel"},[o("div",{staticClass:"header"},[o("fa",{attrs:{icon:["fas","crown"]}}),e._v(" Модер-панель\n ")],1),e._v(" "),o("button",{on:{click:function(t){return e.lockTopic()}}},[e.topic.isLocked?o("span",[o("fa",{attrs:{icon:["fas","lock-open"]}}),e._v(" Открыть тему")],1):o("span",[o("fa",{attrs:{icon:["fas","lock"]}}),e._v(" Закрыть тему")],1)]),e._v(" "),o("button",{on:{click:function(t){return e.visibleTopic()}}},[e.topic.isVisible?o("span",[o("fa",{attrs:{icon:["fas","eye-slash"]}}),e._v(" Скрыть тему")],1):o("span",[o("fa",{attrs:{icon:["fas","eye"]}}),e._v(" Раскрыть тему")],1)]),e._v(" "),o("button",{on:{click:function(t){return e.fixTopic()}}},[e.topic.isFixed?o("span",[o("fa",{attrs:{icon:["fas","anchor"]}}),e._v(" Открепить тему")],1):o("span",[o("fa",{attrs:{icon:["fas","anchor"]}}),e._v(" Закрепить тему")],1)]),e._v(" "),e.deleteConfirmation?e._e():o("button",{on:{click:function(t){e.deleteConfirmation=!0}}},[o("fa",{attrs:{icon:["fas","trash"]}}),e._v(" Удалить тему")],1),e._v(" "),e.deleteConfirmation?o("div",{staticClass:"confirmation"},[o("button",{on:{click:function(t){e.deleteConfirmation=!1}}},[e._v("Отменить")]),e._v(" "),o("button",{on:{click:function(t){return e.deleteTopic()}}},[o("fa",{attrs:{icon:["fas","check"]}}),e._v(" Точно удалить")],1)]):e._e(),e._v(" "),o("div",{staticClass:"header headerStatus"},[o("fa",{attrs:{icon:["fas","toggle-on"]}}),e._v(" Установить статус\n ")],1),e._v(" "),o("div",{staticClass:"status"},[o("button",{class:{border:e.topic.tag<1},on:{click:function(t){return e.changeTag(0)}}},[e.topic.tag<1?o("fa",{attrs:{icon:["fas","check"]}}):e._e(),e._v(" Без статуса")],1),e._v(" "),o("button",{class:{yellow:!0,border:1==e.topic.tag},on:{click:function(t){return e.changeTag(1)}}},[1==e.topic.tag?o("fa",{attrs:{icon:["fas","check"]}}):e._e(),e._v(" На рассмотрении")],1),e._v(" "),o("button",{class:{green:!0,border:2==e.topic.tag},on:{click:function(t){return e.changeTag(2)}}},[2==e.topic.tag?o("fa",{attrs:{icon:["fas","check"]}}):e._e(),e._v(" Рассмотрено")],1),e._v(" "),o("button",{class:{red:!0,border:3==e.topic.tag},on:{click:function(t){return e.changeTag(3)}}},[3==e.topic.tag?o("fa",{attrs:{icon:["fas","check"]}}):e._e(),e._v(" Отказано")],1)]),e._v(" "),o("div",{staticClass:"header headerStatus"},[o("fa",{attrs:{icon:["fas","suitcase-rolling"]}}),e._v(" Переместить тему\n ")],1),e._v(" "),o("br"),e._v(" "),o("div",{staticClass:"move"},[o("select",{directives:[{name:"model",rawName:"v-model",value:e.move.selected.forum,expression:"move.selected.forum"}],on:{change:function(t){var o=Array.prototype.filter.call(t.target.options,(function(e){return e.selected})).map((function(e){return"_value"in e?e._value:e.value}));e.$set(e.move.selected,"forum",t.target.multiple?o:o[0])}}},[o("option",{attrs:{disabled:""},domProps:{value:-1}},[e._v("Выберите раздел форума")]),e._v(" "),e._l(e.move.forums,(function(t,n){return o("option",{key:n,domProps:{value:t.id}},[e._v("\n "+e._s(t.name)+"\n ")])}))],2),e._v(" "),e._l(e.move.forums,(function(i,t){return o("span",{key:i.id},[i.id==e.move.selected.forum?o("span",[o("select",{directives:[{name:"model",rawName:"v-model",value:e.move.selected.section,expression:"move.selected.section"}],on:{click:function(t){return e.loadTheme()},change:function(t){var o=Array.prototype.filter.call(t.target.options,(function(e){return e.selected})).map((function(e){return"_value"in e?e._value:e.value}));e.$set(e.move.selected,"section",t.target.multiple?o:o[0])}}},[o("option",{attrs:{disabled:""},domProps:{value:-1}},[e._v("Выберите секцию")]),e._v(" "),e._l(e.move.forums[t].sections,(function(section){return o("option",{key:section.id,domProps:{value:section.id}},[e._v("\n "+e._s(section.name)+"\n ")])}))],2)]):e._e()])})),e._v(" "),null!=e.move.themes?o("select",{directives:[{name:"model",rawName:"v-model",value:e.move.selected.theme,expression:"move.selected.theme"}],on:{change:function(t){var o=Array.prototype.filter.call(t.target.options,(function(e){return e.selected})).map((function(e){return"_value"in e?e._value:e.value}));e.$set(e.move.selected,"theme",t.target.multiple?o:o[0])}}},[o("option",{attrs:{disabled:""},domProps:{value:-1}},[e._v("Выберите раздел")]),e._v(" "),e._l(e.move.themes,(function(t){return o("option",{key:t.id,domProps:{value:t.id}},[e._v("\n "+e._s(t.name)+"\n ")])}))],2):e._e(),e._v(" "),e.topic.id>0&&e.move.selected.theme>0?o("button",{on:{click:function(t){return e.changeTopicTheme()}}},[e._v("Переместить")]):e._e()],2),e._v(" "),o("div",{staticClass:"header headerStatus"},[o("fa",{attrs:{icon:["fas","user-lock"]}}),e._v(" Блокировка пользователя\n ")],1),e._v(" "),o("div",{staticClass:"move blockUser"},[o("input",{directives:[{name:"model",rawName:"v-model",value:e.blockUser.login,expression:"blockUser.login"}],attrs:{type:"text",placeholder:"Ник"},domProps:{value:e.blockUser.login},on:{input:function(t){t.target.composing||e.$set(e.blockUser,"login",t.target.value)}}}),e._v(" "),o("input",{directives:[{name:"model",rawName:"v-model",value:e.blockUser.reason,expression:"blockUser.reason"}],attrs:{type:"text",placeholder:"Причина"},domProps:{value:e.blockUser.reason},on:{input:function(t){t.target.composing||e.$set(e.blockUser,"reason",t.target.value)}}}),e._v(" "),o("div",{staticClass:"time"},[0!=e.blockUser.eTime?o("input",{directives:[{name:"model",rawName:"v-model",value:e.blockUser.time,expression:"blockUser.time"}],attrs:{type:"number",placeholder:"Время"},domProps:{value:e.blockUser.time},on:{input:function(t){t.target.composing||e.$set(e.blockUser,"time",t.target.value)}}}):e._e(),e._v(" "),o("div",{class:{eTime:!0,eSelected:0==e.blockUser.eTime},on:{click:function(t){e.blockUser.eTime=0}}},[e._v("навсегда")]),e._v(" "),o("div",{class:{eTime:!0,eSelected:1==e.blockUser.eTime},on:{click:function(t){e.blockUser.eTime=1}}},[e._v("час")]),e._v(" "),o("div",{class:{eTime:!0,eSelected:2==e.blockUser.eTime},on:{click:function(t){e.blockUser.eTime=2}}},[e._v("сутки")]),e._v(" "),o("div",{class:{eTime:!0,eSelected:3==e.blockUser.eTime},on:{click:function(t){e.blockUser.eTime=3}}},[e._v("неделя")]),e._v(" "),o("div",{class:{eTime:!0,eSelected:4==e.blockUser.eTime},on:{click:function(t){e.blockUser.eTime=4}}},[e._v("месяц")])]),e._v(" "),o("button",{on:{click:function(t){return e.blockUserF()}}},[e._v("Заблокировать")])]),e._v(" "),o("div",{staticClass:"header headerStatus"},[o("fa",{attrs:{icon:["fas","user-lock"]}}),e._v(" Удаление всех последних сообщений\n ")],1),e._v(" "),o("div",{staticClass:"move blockUser"},[o("input",{directives:[{name:"model",rawName:"v-model",value:e.deleteLast.login,expression:"deleteLast.login"}],attrs:{type:"text",placeholder:"Ник(учитывая регистр)"},domProps:{value:e.deleteLast.login},on:{input:function(t){t.target.composing||e.$set(e.deleteLast,"login",t.target.value)}}}),e._v(" "),o("input",{directives:[{name:"model",rawName:"v-model",value:e.deleteLast.time,expression:"deleteLast.time"}],attrs:{type:"number",placeholder:"Время в минутах"},domProps:{value:e.deleteLast.time},on:{input:function(t){t.target.composing||e.$set(e.deleteLast,"time",t.target.value)}}}),e._v(" "),o("button",{on:{click:function(t){return e.deleteLastMess()}}},[e._v("Удалить все последние сообщения")])])])}),[],!1,null,"51700e9c",null).exports,h=o(359),m=o.n(h),v={asyncData:function(e){return Object(n.a)(regeneratorRuntime.mark((function t(){var o,n,c,d,l,f,h,m,v;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o=e.route.path.split("/topic/")[1],n=o.split("-")[0],c="",d="",l="",f="",h="",null==o&&e.redirect("/forum"),t.next=10,e.$axios.$get(r.a+"forum.topic?type=2&id=".concat(n));case 10:return m=t.sent,t.next=13,e.$axios.$get(r.a+"forum.topic.messages?topic_id=".concat(n));case 13:return v=t.sent,o!=n+"-"+m.topic[0].url&&e.redirect("/404"),"error"!=m.type&&Object.keys(m.topic).length>0?(c=m.topic[0],h=m.styles,f=v.messages,d=m.theme_info[0],l=m.section_info[0]):e.redirect("/404"),t.abrupt("return",{url:o,topic:c,messages:f,theme_info:d,section_info:l,styles:h,preview:null,imgBanner:null,editable:-1,userInfo:null,response_answer:!1,hover_team_info:!1,isGoogle:!0});case 17:case"end":return t.stop()}}),t)})))()},head:function(){var e="";return"ru"!=this.$i18n.locale&&(e={name:"robots",content:"noindex"}),{title:this.topic.name+" - "+this.theme_info.name+" - "+this.$t("forum_name")+" - CubixWorld.net",meta:[{hid:"description",name:"description",content:this.topic.name+this.$t("forum_topic_meta_description")},{hid:"keywords",name:"keywords",content:this.$t("forum_topic_meta_keywords")},e]}},mounted:function(){return Object(n.a)(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([o.e(3),o.e(4)]).then(o.bind(null,1477));case 2:t=e.sent,(0,t.default)();case 5:case"end":return e.stop()}}),e)})))()},computed:{auth:function(){return this.$store.state.auth},isAuthenticated:function(){return this.$store.getters.authenticated},API:function(){return r.a}},data:function(){return{watch:!0,watchThisTopic:!1,content:"",content_edit:"",style:"",editorOption:{theme:"snow",placeholder:this.$t("forum_topic_answer_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"]]}}}}},created:function(){var e=this;this.loadTopic(),this.$bus.$on("auth",(function(){e.loadTopic()}))},methods:{millsToDate:function(e){return this.$moment.locale("ru"),this.$moment(e).format("lll")},blockUser:function(e){this.$refs.moderPanel.blockUser.login=e},sendAnswer:function(e){var t=this;return Object(n.a)(regeneratorRuntime.mark((function o(){var n,c;return regeneratorRuntime.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(o.prev=0,n="",!t.isGoogle){o.next=6;break}return o.next=5,t.$recaptcha.execute("register");case 5:n=o.sent;case 6:"",null!=t.$cookies.get("referral")&&t.$cookies.get("referral"),c="",null!=e&&(c=e),t.response_answer=!0,t.$axios.post(r.a+"forum.sendAnswer",{login:t.auth.login,access_token:t.auth.accessToken,content:t.content,topic_id:t.topic.id,watch:t.watch,recaptcha_v3:n,hcaptcha_token:c,isGoogle:t.isGoogle}).then((function(e){if(t.isGoogle||(t.$refs.hcaptcha.reset(),t.isGoogle=!0),"success"==e.data.type)t.response_answer=!1,t.loadMessages(),t.content="",t.watch&&(t.watchThisTopic=!0);else{if("222"==e.data.error)return t.isGoogle=!1,void t.$notify.error({message:t.$t("forum_topic_methods_sendAnswer_error222")});if(t.response_answer=!1,"9"==e.data.error){var time="";time=0==e.data.time?t.$t("forum_topic_methods_sendAnswer_error9_allTime"):t.$t("forum_topic_methods_sendAnswer_error9_toTime")+" "+t.millsToDate(e.data.time),t.$notify.error({title:t.$t("forum_topic_methods_sendAnswer_error9_title"),message:t.$t("forum_topic_methods_sendAnswer_error9_message")+" "+e.data.reason+" "+time})}else"12"==e.data.error?t.$notify.error({message:t.$t("forum_topic_methods_sendAnswer_error12")}):"13"==e.data.error?t.$notify.error({message:t.$t("forum_topic_methods_sendAnswer_error13")}):"14"==e.data.error?t.$notify.error({message:t.$t("forum_topic_methods_sendAnswer_error14")}):"17"==e.data.error?t.$notify.error({message:t.$t("forum_topic_methods_sendAnswer_error17")}):"95"==e.data.error&&t.$notify.error({message:t.$t("forum_topic_methods_sendAnswer_error95")})}})),o.next=17;break;case 14:o.prev=14,o.t0=o.catch(0),console.log("catch error ",o.t0);case 17:case"end":return o.stop()}}),o,null,[[0,14]])})))()},editMessage:function(e){var t=this;this.$axios.post(r.a+"forum.editMessage",{login:this.auth.login,access_token:this.auth.accessToken,content:this.content_edit,message_id:e}).then((function(e){"success"==e.data.type?(t.$notify.success({message:t.$t("forum_topic_methods_editMessage_success")}),t.loadMessages(),t.editable=-1,t.content_edit=""):"12"==e.data.error?t.$notify.error({message:t.$t("forum_topic_methods_editMessage_error12")}):"13"==e.data.error?t.$notify.error({message:t.$t("forum_topic_methods_editMessage_error13")}):"14"==e.data.error&&t.$notify.error({message:t.$t("forum_topic_methods_editMessage_error14")})}))},deleteMessage:function(e){var t=this;this.$axios.post(r.a+"forum.deleteMessage",{login:this.auth.login,access_token:this.auth.accessToken,message_id:e}).then((function(e){"success"==e.data.type?(t.$notify.success({message:t.$t("forum_topic_methods_deleteMessage_success")}),t.loadMessages()):"12"==e.data.error&&t.$notify.error({message:t.$t("forum_topic_methods_deleteMessage_error12")})}))},like:function(e){var t=this;this.$axios.get(r.a+"forum.like?login="+this.auth.login+"&access_token="+this.auth.accessToken+"&message_id="+e).then((function(e){console.log(e.data),"success"==e.data.type&&t.loadMessages()}))},subNotify:function(){var e=this;this.$axios.get(r.a+"forum.notify?login="+this.auth.login+"&access_token="+this.auth.accessToken+"&topic_id="+this.topic.id).then((function(t){"success"==t.data.type&&(console.log(t.data),1==t.data.status?e.watchThisTopic=!0:2==t.data.status&&(e.watchThisTopic=!1))}))},loadTopic:function(){var e=this;this.isAuthenticated&&this.$axios.get(r.a+"forum.topic?type=2&id="+this.topic.id+"&login="+this.auth.login+"&access_token="+this.auth.accessToken).then((function(t){console.log(t.data),"success"==t.data.type&&(e.watchThisTopic=t.data.notify,null!=t.data.userInfo&&(e.topic=t.data.topic[0],e.userInfo=t.data.userInfo))}))},loadMessages:function(){var e=this;this.$axios.get(r.a+"forum.topic.messages?topic_id="+this.topic.id).then((function(t){console.log(t.data),"success"==t.data.type&&(e.messages=t.data.messages)}))},uploadFunction:function(e){var t=this;this.selectedFile=e.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("type",2),this.$axios.post(r.a+"forum.images.upload",form,{headers:{"Content-Type":"multipart/form-data"}}).then((function(e){console.log("success"),console.log(e);var o=t.$refs.quillEdit.quill.getSelection();t.$refs.quillEdit.quill.insertEmbed(o.index,"image","https://static.cubixworld.net/forum/"+e.data.id)})).catch((function(e){console.log("error")}))}},components:{RightPanel:c.default,ModerPanel:f,VueHcaptcha:m.a}},_=(o(1338),o(1340),Object(l.a)(v,(function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",[o("div",{staticClass:"content"},[o("div",{staticClass:"left"},[o("div",{staticClass:"whitePage heads"},[o("div",{staticClass:"tree"},[o("nuxt-link",{attrs:{to:e.localePath("/")}},[o("fa",{attrs:{icon:["fas","home"]}}),e._v("\n "+e._s(e.$t("forum_section_crumbz_main"))+"\n ")],1),e._v(" "),o("fa",{attrs:{icon:["fas","angle-right"]}}),e._v(" "),o("nuxt-link",{attrs:{to:e.localePath("/forum")}},[e._v("\n "+e._s(e.$t("forum_section_crumbz_forum"))+"\n ")]),e._v(" "),o("fa",{attrs:{icon:["fas","angle-right"]}}),e._v(" "),o("nuxt-link",{attrs:{to:e.localePath("/forum/section/"+e.section_info.url)}},[e._v("\n "+e._s(e.section_info.name)+"\n ")]),e._v(" "),o("fa",{attrs:{icon:["fas","angle-right"]}}),e._v(" "),o("nuxt-link",{attrs:{to:e.localePath("/forum/topics/"+e.theme_info.id+"-"+e.theme_info.url)}},[e._v("\n "+e._s(e.theme_info.name)+"\n ")]),e._v(" "),o("fa",{attrs:{icon:["fas","angle-right"]}})],1),e._v(" "),o("div",{staticClass:"name"},[e.topic.isLocked?o("span",{staticClass:"isClosed",attrs:{"data-tooltip":e.$t("forum_status_locked")}},[o("fa",{attrs:{icon:["fas","lock"]}})],1):e._e(),e._v(" "),e.topic.isVisible?e._e():o("span",{staticClass:"isClosed",attrs:{"data-tooltip":e.$t("forum_status_hidden")}},[o("fa",{attrs:{icon:["fas","eye-slash"]}})],1),e._v(" "),e.topic.isFixed?o("span",{staticClass:"isClosed",attrs:{"data-tooltip":e.$t("forum_status_fixed")}},[o("fa",{attrs:{icon:["fas","paperclip"]}})],1):e._e(),e._v(" "),o("span",{class:{tag:e.topic.tag>0,yellow:1==e.topic.tag,green:2==e.topic.tag,red:3==e.topic.tag}},[1==e.topic.tag?o("span",[e._v(e._s(e.$t("forum_topicStatus1")))]):e._e(),e._v(" "),2==e.topic.tag?o("span",[e._v(e._s(e.$t("forum_topicStatus2")))]):e._e(),e._v(" "),3==e.topic.tag?o("span",[e._v(e._s(e.$t("forum_topicStatus3")))]):e._e()]),e._v("\n\n "+e._s(e.topic.name)+"\n ")]),e._v(" "),o("div",{staticClass:"infos"},[o("fa",{attrs:{icon:["fas","user"]}}),e._v("\n "+e._s(e.topic.creator_login)+"\n "),o("fa",{attrs:{icon:["fas","clock"]}}),e._v("\n "+e._s(e.millsToDate(e.topic.date))+"\n "),o("fa",{attrs:{icon:["fas","eye"]}}),e._v("\n "+e._s(e.topic.views)+"\n "),e.isAuthenticated?o("span",{staticClass:"notify",on:{click:function(t){return e.subNotify()}}},[o("fa",{attrs:{icon:["fas","bell"]}}),e._v(" "),e.watchThisTopic?o("span",[e._v(e._s(e.$t("forum_topic_noWatchThisTopic")))]):o("b",[e._v(e._s(e.$t("forum_topic_watchThisTopic")))])],1):e._e()],1)]),e._v(" "),null!=e.userInfo?o("ModerPanel",{ref:"moderPanel",attrs:{topic:e.topic,id:"mod"}}):e._e(),e._v(" "),e._l(e.messages,(function(t,n){return o("div",{key:t.id,staticClass:"whitePage message"},[o("div",{staticClass:"userInfo"},[o("nuxt-link",{staticClass:"avatar",attrs:{to:e.localePath("/profile/"+t.creator_login)}},[o("img",{attrs:{alt:t.creator_login,title:t.creator_login,src:t.creator_avatar_url}})]),e._v(" "),o("div",{staticClass:"names"},[o("div",{staticClass:"n"},[o("a",{staticClass:"name",attrs:{href:"/profile/"+t.creator_login,target:"_blank"}},[t.creator_isConfirmed?o("img",{staticClass:"confirmed",attrs:{src:"/assets/image/icons/confirmed.svg"}}):e._e(),e._v(" "+e._s(t.creator_login))]),e._v(" "),o("div",{class:"groups "+t.creator_group_eng+"_color"},[e._v(e._s(t.creator_group_rus))]),e._v(" "),""==t.creator_group_rus?o("div",{staticClass:"user_group"},[1==Object.keys(t.team).length?o("div",e._l(t.team,(function(t){return o("div",{key:t.id,staticClass:"groups team_tag_color",staticStyle:{"margin-right":"10px"}},[e._v("\n "+e._s(t.group_name)+" "+e._s(e.$t("user_projectTeam_servers_on"))+" "+e._s(t.server_name)+"\n ")])})),0):e._e(),e._v(" "),Object.keys(t.team).length>1?o("div",[o("div",{staticClass:"user_group team_tag_color tagm",on:{mouseover:function(t){e.hover_team_info=!0},mouseleave:function(t){e.hover_team_info=!1}}},[o("fa",{staticClass:"inf_svg",attrs:{icon:["fas","info-circle"]}}),e._v(" "+e._s(e.$t("user_projectTeam"))+"\n "),o("transition",{attrs:{name:"fade"}},[e.hover_team_info?o("div",{staticClass:"info_groupd"},[o("b",[e._v(e._s(e.$t("user_projectTeam_servers"))+":")]),e._v(" "),e._l(t.team,(function(t){return o("div",{key:t.id,staticStyle:{"margin-right":"10px"}},[e._v("\n "+e._s(t.group_name)+" "+e._s(e.$t("user_projectTeam_servers_on"))+" "+e._s(t.server_name)+"\n ")])}))],2):e._e()])],1)]):e._e()]):e._e(),e._v(" "),Object.keys(t.donate).length>0?o("div",{staticClass:"user_group"},[1==Object.keys(t.donate).length&&0==Object.keys(t.team).length?o("div",e._l(t.donate,(function(t){return o("div",{key:t.id,staticClass:"groups donate_tag_color",staticStyle:{"margin-right":"10px"}},[o("img",{attrs:{src:"/assets/image/icons/cabinet/groups/"+t.group_pex+".png",alt:t.group_name}}),e._v("\n "+e._s(t.group_name)+" "+e._s(e.$t("user_projectTeam_servers_on"))+" "+e._s(t.server_name)+"\n ")])})),0):e._e(),e._v(" "),Object.keys(t.donate).length>1&&0==Object.keys(t.team).length?o("div",[o("div",{staticClass:"user_group donate_tag_color tagm",on:{mouseover:function(t){e.hover_team_info=!0},mouseleave:function(t){e.hover_team_info=!1}}},[o("fa",{staticClass:"inf_svg",attrs:{icon:["fas","info-circle"]}}),e._v(" "+e._s(e.$t("user_donater"))+"\n "),o("transition",{attrs:{name:"fade"}},[e.hover_team_info?o("div",{staticClass:"info_groupd"},[o("b",[e._v(e._s(e.$t("user_projectTeam_servers"))+":")]),e._v(" "),e._l(t.donate,(function(t){return o("div",{key:t.id,staticStyle:{"margin-right":"10px"}},[e._v("\n "+e._s(t.group_name)+" "+e._s(e.$t("user_projectTeam_servers_on"))+" "+e._s(t.server_name)+"\n ")])}))],2):e._e()])],1)]):e._e()]):e._e(),e._v(" "),t.creator==e.topic.creator?o("div",{staticClass:"user_group author"},[e._v(e._s(e.$t("forum_author")))]):e._e()]),e._v(" "),o("div",{staticClass:"date"},[e._v(e._s(e.millsToDate(t.date)))])]),e._v(" "),t.creator_login==e.auth.login?o("div",{staticClass:"icons",on:{click:function(o){e.editable==t.id?e.editMessage(t.id):(e.content_edit=t.text,e.editable=t.id)}}},[e.editable!=t.id?o("fa",{attrs:{icon:["fas","edit"]}}):e._e(),e._v(" "),e.editable==t.id?o("fa",{staticClass:"check",attrs:{icon:["fas","check"]}}):e._e()],1):e._e(),e._v(" "),(t.creator_login==e.auth.login||e.userInfo)&&n>0?o("div",{staticClass:"icons",on:{click:function(o){return e.deleteMessage(t.id)}}},[o("fa",{attrs:{icon:["fas","trash"]}})],1):e._e(),e._v(" "),e.userInfo?o("div",{directives:[{name:"scroll-to",rawName:"v-scroll-to",value:"#mod",expression:"'#mod'"}],staticClass:"icons",on:{click:function(o){return e.blockUser(t.creator_login)}}},[o("fa",{attrs:{icon:["fas","user-lock"]}})],1):e._e()],1),e._v(" "),e.editable!=t.id?o("div",{staticClass:"text",domProps:{innerHTML:e._s(t.text+e.style+e.styles)}}):o("div",{staticClass:"textarea"},[o("client-only",[o("input",{attrs:{type:"file",id:"file",hidden:""},on:{change:e.uploadFunction}}),e._v(" "),o("quill-editor",{ref:"quillEdit",refInFor:!0,attrs:{options:e.editorOption},model:{value:e.content_edit,callback:function(t){e.content_edit=t},expression:"content_edit"}})],1)],1),e._v(" "),o("div",{staticClass:"images"},e._l(t.imagesList,(function(i,t){return o("div",{key:t},[o("a",{attrs:{href:e.API+"forum.loadFullImage?time="+i.time,target:"_blank"}},[o("img",{attrs:{src:e.API+"forum.loadImage?time="+i.time,alt:e.$t("forum_connectedImage")}})])])})),0),e._v(" "),o("div",{staticClass:"interactions"},[o("div",{staticClass:"button",on:{click:function(o){return e.like(t.id)}}},[o("fa",{class:{liked:Object.values(JSON.parse(t.likes)).includes(e.auth.login)},attrs:{icon:["fas","heart"]}}),e._v(" \n "+e._s(Object.keys(JSON.parse(t.likes)).length)+"\n ")],1),e._v(" "),Object.keys(JSON.parse(t.likes)).length>0?o("div",{staticClass:"likes"},e._l(JSON.parse(t.likes),(function(t,n,r){return o("nuxt-link",{key:r,attrs:{to:e.localePath("/profile/"+t)}},[r<3?o("img",{directives:[{name:"tooltip",rawName:"v-tooltip",value:t,expression:"ava"}],class:{first:0==r,second:1==r,three:2==r},attrs:{src:e.API+"account.load.avatar?login="+t}}):e._e()])})),1):e._e()])])})),e._v(" "),e.isAuthenticated?o("div",[!e.topic.isLocked&&e.topic.canAnswer||e.userInfo||!e.topic.isLocked&&e.topic.creator_login==e.auth.login?o("div",{staticClass:"whitePage sendMessage"},[o("div",{staticClass:"textarea"},[o("client-only",[o("input",{attrs:{type:"file",id:"file",hidden:""},on:{change:e.uploadFunction}}),e._v(" "),o("quill-editor",{ref:"quillEdit",attrs:{options:e.editorOption},model:{value:e.content,callback:function(t){e.content=t},expression:"content"}})],1)],1),e._v(" "),o("div",{staticClass:"interactions"},[e.watchThisTopic?e._e():o("div",{staticClass:"watch"},[o("input",{directives:[{name:"model",rawName:"v-model",value:e.watch,expression:"watch"}],attrs:{type:"checkbox",id:"watch"},domProps:{checked:Array.isArray(e.watch)?e._i(e.watch,null)>-1:e.watch},on:{change:function(t){var o=e.watch,n=t.target,r=!!n.checked;if(Array.isArray(o)){var c=e._i(o,null);n.checked?c<0&&(e.watch=o.concat([null])):c>-1&&(e.watch=o.slice(0,c).concat(o.slice(c+1)))}else e.watch=r}}}),e._v(" "),o("label",{attrs:{for:"watch"}},[e._v(e._s(e.$t("forum_topic_subscribe")))])]),e._v(" "),!e.response_answer&&e.isGoogle?o("button",{class:{sendAnswer:!0,sendAnswerMob:e.watchThisTopic},on:{click:function(t){return e.sendAnswer()}}},[e._v("\n "+e._s(e.$t("forum_topic_button_send"))+"\n ")]):e.response_answer&&e.isGoogle?o("button",{staticClass:"sendAnswer"},[o("img",{staticClass:"loading_icon_button",attrs:{src:"/assets/image/icons/reuse.svg"}})]):e._e(),e._v(" "),e.isGoogle?e._e():o("vue-hcaptcha",{ref:"hcaptcha",staticClass:"captcha",attrs:{sitekey:"1a6cb275-7f4a-48a8-82ae-3575cd4818de"},on:{verify:e.sendAnswer}})],1)]):o("div",{staticClass:"error locked"},[e._m(0),e._v(" "),o("div",{staticClass:"text"},[e.topic.isLocker?o("span",[e._v(e._s(e.$t("forum_topic_closed")))]):e._e(),e._v("\n "+e._s(e.$t("forum_topic_cannot_send"))+"\n ")])])]):e._e(),e._v(" "),e.isAuthenticated?e._e():o("div",{staticClass:"error"},[e._m(1),e._v(" "),o("div",{staticClass:"text"},[e._v(e._s(e.$t("forum_topic_cannot_send_auth")))])])],2),e._v(" "),o("RightPanel")],1)])}),[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"icon"},[t("img",{attrs:{src:"/assets/image/icons/padlock.svg"}})])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"icon"},[t("img",{attrs:{src:"/assets/image/icons/warning.svg"}})])}],!1,null,"075e39a6",null));t.default=_.exports},359:function(e,t){e.exports=function(e){var t={};function o(n){if(t[n])return t[n].exports;var r=t[n]={i:n,l:!1,exports:{}};return e[n].call(r.exports,r,r.exports,o),r.l=!0,r.exports}return o.m=e,o.c=t,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)o.d(n,r,function(t){return e[t]}.bind(null,r));return n},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(object,e){return Object.prototype.hasOwnProperty.call(object,e)},o.p="",o(o.s="1c25")}({"1c25":function(e,t,o){"use strict";o.r(t);o("e754");var n=o("56d7"),r=o.n(n);for(var c in n)["default"].indexOf(c)<0&&function(e){o.d(t,e,(function(){return n[e]}))}(c);t.default=r.a},"2be6":function(e,t,o){"use strict";function n(e,t,o,n,r,c,d,l){var f,h="function"==typeof e?e.options:e;if(t&&(h.render=t,h.staticRenderFns=o,h._compiled=!0),n&&(h.functional=!0),c&&(h._scopeId="data-v-"+c),d?(f=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._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 m=h.render;h.render=function(e,t){return f.call(t),m(e,t)}}else{var v=h.beforeCreate;h.beforeCreate=v?[].concat(v,f):[f]}return{exports:e,options:h}}o.d(t,"a",(function(){return n}))},"407a":function(e,t,o){"use strict";o.r(t);var n=o("502d"),r=o("fa1f");for(var c in r)["default"].indexOf(c)<0&&function(e){o.d(t,e,(function(){return r[e]}))}(c);var d=o("2be6"),component=Object(d.a)(r.default,n.a,n.b,!1,null,null,null);t.default=component.exports},4141:function(e,t){!function(e){var t="currentScript",o=e.getElementsByTagName("script");t in e||Object.defineProperty(e,t,{get:function(){try{throw new Error}catch(t){var i,e=(/.*at [^\(]*\((.*):.+:.+\)$/gi.exec(t.stack)||[!1])[1];for(i in o)if(o[i].src==e||"interactive"==o[i].readyState)return o[i];return null}}})}(document)},"502d":function(e,t,o){"use strict";o.d(t,"a",(function(){return n})),o.d(t,"b",(function(){return r}));var n=function(){var e=this.$createElement;return(this._self._c||e)("div",{attrs:{id:"hcap-script"}})},r=[]},"56d7":function(e,t,o){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.install=c;var n,r=(n=o("407a"))&&n.__esModule?n:{default:n};function c(e){c.installed||(c.installed=!0,e.component("vuehcaptcha",r.default),e.component("VueHcaptcha",r.default))}var d={install:c},l=null;"undefined"!=typeof window?l=window.Vue:void 0!==e&&(l=e.Vue),l&&l.use(d);var f=r.default;t.default=f}).call(this,o("7d15"))},"7d15":function(e,t){var g;g=function(){return this}();try{g=g||new Function("return this")()}catch(e){"object"==typeof window&&(g=window)}e.exports=g},cada:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o("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,n.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 e={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&&(e["challenge-container"]=this.challengeContainer),this.widgetId=this.hcaptcha.render(this.$el,e),this.rqdata&&this.hcaptcha.setData(this.widgetId,{rqdata:this.rqdata}),this.onRendered()},execute:function(){var e=this;this.widgetId?(this.hcaptcha.execute(this.widgetId),this.onExecuted()):this.renderedCb=function(){e.renderedCb=null,e.execute()}},executeAsync:function(){var e,t=this;if(this.widgetId)return this.onExecuted(),this.hcaptcha.execute(this.widgetId,{async:!0});var o=new Promise((function(t){e=t}));return this.renderedCb=function(){t.renderedCb=null,e()},o.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(e){this.$emit("error",e),this.reset()},onVerify:function(){var e=this.hcaptcha.getResponse(this.widgetId),t=this.hcaptcha.getRespKey(this.widgetId);this.$emit("verify",e,t)},onExpired:function(){this.$emit("expired")},onChallengeExpired:function(){this.$emit("challengeExpired")},onOpen:function(){this.$emit("opened")},onClose:function(){this.$emit("closed")}}};t.default=r},dfcd:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SCRIPT_ID=void 0,t.addQueryParamIfDefined=h,t.getScriptSrc=f,t.loadApiEndpointIfNotAlready=function(e){if(window.hcaptcha)return r(),l;if(document.getElementById(n))return l;window._hcaptchaOnLoad=r;var t=f(e),script=document.createElement("script");return script.id=n,script.src=t,script.async=!0,script.defer=!0,script.onerror=function(e){console.error("Failed to load api: "+t,e),c("Failed to load api.js")},document.head.appendChild(script),l};var n="hcaptcha-api-script-id";t.SCRIPT_ID=n;var r,c,d="_hcaptchaOnLoad",l=new Promise((function(e,t){r=e,c=t}));function f(e){var t=e.apiEndpoint;return t=h(t,"render","explicit"),t=h(t,"onload",d),t=h(t,"recaptchacompat",!1===e.reCaptchaCompat?"off":null),t=h(t,"hl",e.language),t=h(t,"sentry",e.sentry),t=h(t,"endpoint",e.endpoint),t=h(t,"assethost",e.assethost),t=h(t,"imghost",e.imghost),t=h(t,"reportapi",e.reportapi)}function h(e,t,o){if(null!=o){var link=e.includes("?")?"&":"?";return e+link+t+"="+encodeURIComponent(o)}return e}},e754:function(e,t,o){"use strict";var i;"undefined"!=typeof window&&(o("4141"),(i=window.document.currentScript)&&(i=i.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(o.p=i[1]))},fa1f:function(e,t,o){"use strict";o.r(t);var n=o("cada"),r=o.n(n);for(var c in n)["default"].indexOf(c)<0&&function(e){o.d(t,e,(function(){return n[e]}))}(c);t.default=r.a}})},725:function(e,t,o){var content=o(1337);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[e.i,content,""]]),content.locals&&(e.exports=content.locals);(0,o(14).default)("648b7834",content,!0,{sourceMap:!1})},726:function(e,t,o){var content=o(1339);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[e.i,content,""]]),content.locals&&(e.exports=content.locals);(0,o(14).default)("105f7448",content,!0,{sourceMap:!1})},727:function(e,t,o){var content=o(1341);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[e.i,content,""]]),content.locals&&(e.exports=content.locals);(0,o(14).default)("d243f238",content,!0,{sourceMap:!1})}}]);