// ==UserScript==
// @name SuperMegaUltraScript
// @namespace http://tampermonkey.net/
// @version 0.38
// @description зачем оно нужно
// @author S30N1K
// @match https://dota2.ru/*
// @grant none
// ==/UserScript==
(()=>{"use strict";var A={772:(A,e,t)=>{t.d(e,{Z:()=>o});var n=t(645),i=t.n(n)()((function(A){return A[1]}));i.push([A.id,'.smus{background-color:#0b0b0d}.smus #project-dota2{padding-top:0;background-color:#121215}.smus .subtitle-global{border-radius:3px 3px 0px 0px;background-color:#2b2c32;display:block;min-height:40px !important;max-height:40px;padding:8px 0px 4px;text-align:center;border:none}.smus .forum-customization,.smus .news-customization{right:7px;top:7px;background:#28282d}.smus .btn-global{padding:0;margin:0 6px;font-size:16px;background-color:#00000000}.smus .btn-global--active{color:#00c0ff;background-color:#00000000}.smus .component-block{background-color:#1b1c20}.smus .component-block__list{padding-bottom:0}.smus .component-block__link{padding:0 12px !important}.smus .index__main{background-color:#1b1c20;margin-right:12px;margin-left:0;order:0}.smus #news-categories{justify-content:left !important;max-height:40px !important;padding:4px !important;border-radius:3px 3px 0px 0px !important;background-color:#2b2c32 !important;margin-bottom:12px !important}.smus #news-categories-blocks{padding:0px 12px !important}@media(max-width: 1023px){.smus #news-categories-blocks{padding:0px !important}}.smus .index__news-item{margin-bottom:12px}.smus .index__news-name{margin-top:-4px}.smus .index__left-bar{order:1;margin-right:12px}.smus .forum__list .forum__item{background:#1b1c20}.smus .forum__block{border:none;padding:7px 0 5px;flex-direction:row !important}.smus .forum__list .forum__item:nth-of-type(2n){background:#222328}.smus .forum .forum__item .component-block__img{display:none}.smus .forum .forum__item:nth-child(1),.smus .forum .forum__item:nth-child(2),.smus .forum .forum__item:nth-child(3),.smus .forum .forum__item:nth-child(4){margin-left:-2px;border-left:solid 2px #00beff}.smus .forum__item .text-clip{width:calc(100% - 50px)}.smus .forum__item .component-text-grey-11{white-space:nowrap}.smus .index__right-bar>div,.smus .index__left-bar>div{border:none;margin-top:0px;margin-bottom:12px}.smus .index__right-bar{order:2}.smus .memes__user{padding:8px 12px 7px}.smus .streams .streams__item:nth-of-type(2n) a{background:#222328}.smus .streams__item-component{min-height:48px;padding:4px 0;border:none !important}.smus .streams__item .component-block__img{border-radius:18px !important;width:36px !important}.smus .tournament .tournament__item:nth-of-type(2n) a{background:#222328}.smus .tournament__item .component-block__block{border:none;padding:8px 0}.smus .video .video__item:nth-of-type(2n) a{background:#222328}.smus .video__item .component-block__block{border:none;font-size:12px !important;padding:0}.smus .video__img{width:auto;height:56px;margin-top:4px}.smus .video__item .streams__text{padding-top:4px;font-size:11px !important}.smus .players .players__item:nth-of-type(2n) a{background:#222328}.smus .players__item .component-block__block{border:none;font-size:12px !important;padding:8px}.smus .players__item .component-block__img{height:36px !important}.smus .global-main__wrap>div{margin-bottom:12px}.smus .bg-main-block{padding:0;margin-bottom:12px;background:none}.smus .forum-page__section{padding:0px}.smus .forum-page__btn{background-color:#1b1b1f !important}.smus .forum-page__title-block{border-radius:3px 3px 0 0;background-color:#2b2c32;padding:6px 6px 6px 12px}.smus #chatFull{padding:0}.smus .forum-page__chat-messager{padding:4px;resize:vertical;background-color:#1b1c20}.smus .forum-page__chat-message-wrap{background-color:#252528}.smus .forum-page__chat-message-name{font-weight:bold;font-size:14px}.smus .forum-page__chat-message-name:hover{text-decoration:underline}.smus .scroll-down{bottom:100px}.smus .forum-page__list{padding:0}.smus .forum-page__item:before,.smus .forum-page__item:after{background:none !important}.smus .forum-page__item-list{margin:-15px 0 0px 60px;padding-bottom:5px}.smus .forum-page__item-list li{padding:0px 8px}.smus .forum-page__item-title-block{padding:8px 12px;border-top:solid 2px #121215}.smus .forum-page__item{background-color:#1b1c20 !important}.smus .forum-section__list .forum-section__item:not(:first-child){background-color:#1b1c20}.smus .forum-section__list .forum-section__item{padding:4px 12px;border-top:solid 2px #121215}.smus .sticky{background-color:#222328 !important}.smus #poll-form{background:#10101000 !important;padding:0}.smus .poll-block__header-title{font-size:24px;margin-bottom:5px}.smus .poll-block__body-item{border:solid 1px #121215;width:500px;height:40px}.smus button.poll-block__body-item:last-child{background-color:#28282d}.smus button.poll-block__body-item:last-child:hover{background-color:#28282d}.smus .poll-block__body-item--count{color:#ababb2}.smus .poll-block__body-item--name{color:#ccc}.smus .poll-block__body-item--bar{background-color:#2e73a0}.smus .forum-theme__item-dots--options .forum-theme__item-dots-block{background-color:#28282d}.smus .forum-theme__block{border-radius:6px 6px 0 0;margin-bottom:20px}.smus .forum-theme__item-left{background-color:#1b1c20;padding:6px;margin-right:12px;border-right:solid 2px #242424;border-bottom:solid 2px #242424;width:auto;height:min-content;border-radius:6px}.smus .forum-theme__item-name{max-width:150px;text-align:center}.smus .forum-theme__item-status{max-width:150px;display:flex;justify-content:center;align-items:normal}.smus .forum-theme__item-status span{margin-top:6px}.smus .forum-theme__item-avatar{width:150px;margin:0}.smus .forum-theme__item-avatar>img{max-width:150px;padding:5px}.smus .forum-theme__item-info-desk p{color:#888;padding:0 6px;height:14px}.smus .forum-theme__item-info{white-space:nowrap}.smus .forum-theme__item-block-mess{border-radius:6px 6px 0px 0px}.smus .forum-theme__item-block-achiv{margin-top:0px;display:flex;flex-wrap:wrap;justify-content:center;height:min-content}.smus .forum-theme__item-block-achiv div img{width:38px}.smus .forum-theme__item-block-achiv div img[src="/img/dota_plus.png"]{margin-top:-3px;width:26px}.smus .forum-theme__item-right>div{border-right:solid 2px #242424;padding:10px;background-color:#1b1c20}.smus .forum-theme__item-right .forum-theme__item{order:1;padding:15px 10px 10px;height:30px}.smus .forum-theme__item-right .forum-theme__item time{color:#666}.smus .forum-theme__item-bottom{order:1;border-bottom:solid 2px #242424;border-radius:0 0 6px 6px;padding:6px 10px 10px !important;margin-top:0;border-top:solid 2px #333;align-items:normal}.smus .forum-theme__item-bottom div,.smus .forum-theme__item-bottom a,.smus .forum-theme__item-bottom span{background-color:#303035}.smus .forum-theme__item-bottom img{height:28px;margin-right:2px}.smus .forum-theme__item-bottom li>span{padding:2px 4px;margin-top:6px}.smus #rate-btn{height:32px;margin-top:6px;padding:0}.smus .forum-theme__item-bottom .forum-theme__item-btn:hover{transition:0s}.smus .forum-theme__item-bottom span span{margin-top:2px;font-size:16px}.smus .forum-theme__item-like-item{margin-right:4px}.smus .forum-theme__item-like-link:hover{background:#28282d}.smus .forum-theme__item-btn{margin-top:6px;height:32px}.smus .forum-theme__item-dots{background-color:transparent !important;margin-right:0px;margin-top:9px;padding:0px;display:flex;justify-content:right !important;align-items:center;width:auto}.smus .forum-theme__item-dots span{display:none}.smus .forum-theme__item-dots .forum-theme__item-dots-block{background-color:transparent;bottom:0;transform:none;position:relative;display:inline-flex;flex-direction:row;padding:0;margin:4px 0 0 0}.smus .forum-theme__item-dots .forum-theme__item-dots-block a{height:32px;padding:0 7px;margin-right:5px}.smus #quick-reply{width:calc(100% - 176px);margin-left:auto}@media(max-width: 900px){.smus #quick-reply{width:100%}}.smus #forumPost_ifr{padding:10px 10px}.smus form:not(.global-content__edit-post) .tox-tbtn{margin:0 2px !important;width:26px !important}.smus .tox-split-button *{margin:0 !important;padding:0 !important}.smus .tox-split-button:hover{box-shadow:0 0 0 transparent !important}.smus form:not(.global-content__edit-post) .tox-tbtn{width:26px}.smus .tox .tox-split-button .tox-split-button__chevron{width:16px !important;margin-left:-5px !important;margin-right:5px}.smus .tox-tinymce{padding:0 !important}.smus .tox-tbtn:hover{background-color:transparent !important}.smus .tox-tbtn svg{margin:0px -2px;cursor:pointer;filter:brightness(120%)}.smus .tox-tbtn:hover svg{filter:brightness(250%)}.smus .tox-tbtn[aria-disabled=true]{display:none}.smus .tox-toolbar{border-bottom:solid 2px #333 !important}.smus form:not(.global-content__edit-post) .tox-tbtn.tox-tbtn--bespoke{width:65px !important}.smus .bbCodeQuote{margin-top:5px;padding:0;border:0;background-color:#00000000}.smus .bbCodeQuote .attribution{border-radius:6px 6px 0 0;border-bottom:solid 2px #28282d;margin:0;padding:6px 12px 4px;background-color:#080808}.smus .bbCodeQuote .quote{border-radius:0 0 6px 6px;background-color:#121212 !important;padding:8px 12px 6px}.smus .quoteContainer .forum-theme__item-block-remess-btn{margin:0 !important;background:#080808 !important;border-radius:0 0 6px 6px}.smus .forum-theme__item-block-mess .attribution abbr{font-weight:700}.smus .spoiler-btn{padding:2px 14px 0;color:#bbb;font-weight:500;background-color:#080808 !important}.smus .spoiler-content{background:#202227 !important}',""]);const o=i},211:(A,e,t)=>{t.d(e,{Z:()=>o});var n=t(645),i=t.n(n)()((function(A){return A[1]}));i.push([A.id,"",""]);const o=i},377:(A,e,t)=>{t.d(e,{Z:()=>o});var n=t(645),i=t.n(n)()((function(A){return A[1]}));i.push([A.id,"\n.search[data-v-efae728e] {\r\n padding: 10px;\n}\n.search input[data-v-efae728e] {\r\n margin-left: 6px;\r\n background-color: transparent;\r\n border: 0;\r\n outline: 0;\r\n width: 300px;\n}\n.favorites[data-v-efae728e] {\r\n padding: 30px;\r\n text-align: center;\n}\n.favorites span[data-v-efae728e] {\r\n color: darkred;\n}\r\n",""]);const o=i},61:(A,e,t)=>{t.d(e,{Z:()=>o});var n=t(645),i=t.n(n)()((function(A){return A[1]}));i.push([A.id,"\n.settings h1[data-v-26c28905] {\r\n margin-bottom: 10px;\n}\n.settings label[data-v-26c28905] {\r\n padding: 10px;\r\n cursor: pointer;\n}\n.item div[data-v-26c28905] {\r\n padding: 10px;\r\n margin-left: 15px;\n}\n.item div[data-v-26c28905]:first-child {\r\n padding-top: 0 !important;\n}\n.donate[data-v-26c28905] {\r\n text-align: center;\r\n font-weight: bold;\n}\n.donate a[data-v-26c28905] {\r\n color: #ff004f;\n}\r\n\r\n",""]);const o=i},645:A=>{A.exports=function(A){var e=[];return e.toString=function(){return this.map((function(e){var t=A(e);return e[2]?"@media ".concat(e[2]," {").concat(t,"}"):t})).join("")},e.i=function(A,t,n){"string"==typeof A&&(A=[[null,A,""]]);var i={};if(n)for(var o=0;o<this.length;o++){var a=this[o][0];null!=a&&(i[a]=!0)}for(var s=0;s<A.length;s++){var r=[].concat(A[s]);n&&i[r[0]]||(t&&(r[2]?r[2]="".concat(t," and ").concat(r[2]):r[2]=t),e.push(r))}},e}},379:(A,e,t)=>{var n,i=function(){var A={};return function(e){if(void 0===A[e]){var t=document.querySelector(e);if(window.HTMLIFrameElement&&t instanceof window.HTMLIFrameElement)try{t=t.contentDocument.head}catch(A){t=null}A[e]=t}return A[e]}}(),o=[];function a(A){for(var e=-1,t=0;t<o.length;t++)if(o[t].identifier===A){e=t;break}return e}function s(A,e){for(var t={},n=[],i=0;i<A.length;i++){var s=A[i],r=e.base?s[0]+e.base:s[0],c=t[r]||0,l="".concat(r," ").concat(c);t[r]=c+1;var m=a(l),g={css:s[1],media:s[2],sourceMap:s[3]};-1!==m?(o[m].references++,o[m].updater(g)):o.push({identifier:l,updater:d(g,e),references:1}),n.push(l)}return n}function r(A){var e=document.createElement("style"),n=A.attributes||{};if(void 0===n.nonce){var o=t.nc;o&&(n.nonce=o)}if(Object.keys(n).forEach((function(A){e.setAttribute(A,n[A])})),"function"==typeof A.insert)A.insert(e);else{var a=i(A.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(e)}return e}var c,l=(c=[],function(A,e){return c[A]=e,c.filter(Boolean).join("\n")});function m(A,e,t,n){var i=t?"":n.media?"@media ".concat(n.media," {").concat(n.css,"}"):n.css;if(A.styleSheet)A.styleSheet.cssText=l(e,i);else{var o=document.createTextNode(i),a=A.childNodes;a[e]&&A.removeChild(a[e]),a.length?A.insertBefore(o,a[e]):A.appendChild(o)}}function g(A,e,t){var n=t.css,i=t.media,o=t.sourceMap;if(i?A.setAttribute("media",i):A.removeAttribute("media"),o&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),A.styleSheet)A.styleSheet.cssText=n;else{for(;A.firstChild;)A.removeChild(A.firstChild);A.appendChild(document.createTextNode(n))}}var p=null,u=0;function d(A,e){var t,n,i;if(e.singleton){var o=u++;t=p||(p=r(e)),n=m.bind(null,t,o,!1),i=m.bind(null,t,o,!0)}else t=r(e),n=g.bind(null,t,e),i=function(){!function(A){if(null===A.parentNode)return!1;A.parentNode.removeChild(A)}(t)};return n(A),function(e){if(e){if(e.css===A.css&&e.media===A.media&&e.sourceMap===A.sourceMap)return;n(A=e)}else i()}}A.exports=function(A,e){(e=e||{}).singleton||"boolean"==typeof e.singleton||(e.singleton=(void 0===n&&(n=Boolean(window&&document&&document.all&&!window.atob)),n));var t=s(A=A||[],e);return function(A){if(A=A||[],"[object Array]"===Object.prototype.toString.call(A)){for(var n=0;n<t.length;n++){var i=a(t[n]);o[i].references--}for(var r=s(A,e),c=0;c<t.length;c++){var l=a(t[c]);0===o[l].references&&(o[l].updater(),o.splice(l,1))}t=r}}}}},e={};function t(n){var i=e[n];if(void 0!==i)return i.exports;var o=e[n]={id:n,exports:{}};return A[n](o,o.exports,t),o.exports}t.n=A=>{var e=A&&A.__esModule?()=>A.default:()=>A;return t.d(e,{a:e}),e},t.d=(A,e)=>{for(var n in e)t.o(e,n)&&!t.o(A,n)&&Object.defineProperty(A,n,{enumerable:!0,get:e[n]})},t.o=(A,e)=>Object.prototype.hasOwnProperty.call(A,e),(()=>{const A=async()=>{};var e=function(){var A=this,e=A.$createElement,t=A._self._c||e;return t("div",{staticClass:"smiles-panel super"},[t("ul",{staticClass:"smiles-panel__tabs mt12"},A._l(A.categories,(function(e){return t("li",{class:{"tab-title":!0,active:e.id===A.active}},[t("a",{staticStyle:{padding:"3px 10px"},on:{click:function(t){return A.change(e)}}},[t("img",{staticStyle:{width:"24px","vertical-align":"middle"},attrs:{src:A.getSmileUrl(parseInt(e.img_tab_smile))}})])])})),0),A._v(" "),t("div",{staticClass:"search"},[t("i",{staticClass:"fa fa-search"}),A._v(" "),t("input",{directives:[{name:"model",rawName:"v-model",value:A.search,expression:"search"}],attrs:{placeholder:"Поиск по смайлам"},domProps:{value:A.search},on:{input:[function(e){e.target.composing||(A.search=e.target.value)},A.onSearch]}})]),A._v(" "),t("div",{staticClass:"smiles-panel__tabs-content-block",staticStyle:{"background-color":"rgb(13, 14, 16)"}},[t("div",[A._l(A.currentSmiles,(function(e){return t("div",A._b({staticClass:"smile-content",staticStyle:{display:"inline-block",margin:"3px"}},"div",e.symbol,!1),[t("a",{on:{contextmenu:function(t){return t.preventDefault(),A.favoritesChange(e)},click:function(t){return t.preventDefault(),A.insertSmile(e)}}},[t("img",{staticStyle:{"max-height":"32px","max-width":"32px"},attrs:{src:A.getSmileUrl(e)}})])])})),A._v(" "),"favorites"!==A.active||A.currentSmiles.length?A._e():t("div",{staticClass:"favorites"},[A._v("\n Тут будут отображаться избранные смайлы. Для добавления в избранное нажми по смайлу\n "),t("span",[A._v("правой кнопкой")]),A._v(" мыши\n ")])],2)])])};e._withStripped=!0;const n={favoriteEmoticonsList:[],emoticonsActive:"6",soundAlert:!0,eventVolume:100,newSmiles:!0,notificationSmiles:!0,highlightIgnoreMe:!0,highlightTopicStarter:!0,highlightSubscribeMe:!0,superIndex:!0,keepIgnored:!0,ignoredMe:[],superIgnore:!1,superIgnoreList:[],superIgnoreRemoveMessage:!0,superIgnoreThemes:!1,superIgnoreChat:!1,superChat:!1,paint:!1,uploadImages:!1,uploadImagesToken:null,autoSave:!0,returnDesign:!0,returnDesignWhite:!1,...JSON.parse(localStorage.getItem("SuperMegaUltraScriptConfig"))||{}},i=()=>{localStorage.setItem("SuperMegaUltraScriptConfig",JSON.stringify(n))},o={"X-Requested-With":"XMLHttpRequest"},a=async(A,e,t=!1)=>await fetch(A,{method:e?"POST":"GET",headers:o,body:e?t?e:JSON.stringify(e):null}),s=async()=>await(await a("/replies/get_smiles")).json(),r=async A=>await(await a("/forum/api/user/subscribe",{uid:A})).json(),c=async(A=1,e=[],t=0)=>{const n=$(await(await a(`/forum/settings/ignorelist/page-${A}`)).text());t||(t=n.find(".pagination").data("pages")||1);const i=n.find(".member-list");for(const A of i.find("li"))e.push(parseInt(A.getAttribute("id").replace("user-","")));return A<t?c(A+1,e,t):e},l={async mounted(){const A=await s();this.categories=A.smiles.categories,this.categories.push({id:"ban",name:"Запрещенка",img_tab_smile:"1388",date_created:null}),this.categories.push({id:"bttv",name:"bttv",img_tab_smile:"1078",date_created:null}),this.categories.push({id:"favorites",name:"Избранное",img_tab_smile:"729",date_created:null}),this.smiles=A.smiles.smiles,this.all=Object.values(this.smiles).flat(),this.smiles.ban=[{symbol:":doprigalis:",filename:"doprigalis.gif"},{symbol:":facepalm2:",filename:"facepalm2.gif"},{symbol:":nyametal:",filename:"nyametal.gif"},{symbol:":search:",filename:"search.gif"},{symbol:":VeryLike:",filename:"SoHappy.gif"},{symbol:":nay:",filename:"nay.png"},{symbol:":Pog:",filename:"Pog.png"},{symbol:":RoflanBob:",filename:"RoflanBob.png"},{symbol:":TTours:",filename:"TTours.png"},{symbol:":yea:",filename:"yea.png"},{symbol:":valetLoss:",filename:"valetLoss.png"},{symbol:":valetWin:",filename:"valetWin.png"},{symbol:":bearth:",filename:"bearth.png"},{symbol:":bfire:",filename:"bfire.png"},{symbol:":bstorm:",filename:"bstorm.png"},{symbol:":cmArc:",filename:"cmArc.png"},{symbol:":ioarc:",filename:"ioarc.png"},{symbol:":juggarc:",filename:"juggarc.png"},{symbol:":legioncommanderarc:",filename:"legioncommanderarc.png"},{symbol:":linaarc:",filename:"linaarc.png"},{symbol:":monkeykingarc:",filename:"monkeykingarc.png"},{symbol:":Ogre Arcana:",filename:"OgreArcana.png"},{symbol:":phantomassassinarc:",filename:"phantomassassinarc.png"},{symbol:":pudgearc:",filename:"pudgearc.png"},{symbol:":queen_of_pain_arcana:",filename:"queenofpainarcana.png"},{symbol:":queen_of_pain_arcanastyle:",filename:"queenofpainarcanastyle.png"},{symbol:":RubickArcana:",filename:"RubickArcana.png"},{symbol:":shadowfiendarc:",filename:"shadowfiendarc.png"},{symbol:":Shaker Arcana:",filename:"ShakerArcana.png"},{symbol:":skeletonking:",filename:"skeletonking.png"},{symbol:":techiesarc:",filename:"techiesarc.png"},{symbol:":terrorbladearc:",filename:"terrorbladearc.png"},{symbol:":windranger_arcana:",filename:"WindrangerArcana.png"},{symbol:":windranger_arcanastyle:",filename:"WindrangerArcanaStyle.png"},{symbol:":zeusarc:",filename:"zeusarc.png"},{symbol:":AnimeHappy:",filename:"AnimeHappy.png"},{symbol:":AnimeRage2:",filename:"AnimeRage2.gif"},{symbol:":AnimeXD:",filename:"AnimeXD.png"},{symbol:":LaceShrug:",filename:"AnimeWhatever.png"},{symbol:":MiyanoWow:",filename:"MiyanoWow.png"},{symbol:":kamuicry:",filename:"kamuicry.png"},{symbol:":sagiridither:",filename:"sagiridither.png"},{symbol:":PepeDancer:",filename:"PepeDance.gif"},{symbol:":PepeHot:",filename:"PepeHot.gif"},{symbol:":PepeSuperRage:",filename:"PepeSuperRage.png"},{symbol:":PepeThink_2:",filename:"PepeThink2.gif"},{symbol:":pepeclap:",filename:"pepeclap.gif"},{symbol:":AYAYANEWYEAR:",filename:"AYAYANEWYEAR.png"},{symbol:":LULW:",filename:"LULW.png"},{symbol:":MaN:",filename:"MaN.png"},{symbol:":NoPadoru:",filename:"NoPadoru.png"},{symbol:":Okayge:",filename:"Okayge.png"},{symbol:":Padoru:",filename:"Padoru.png"},{symbol:":PadoruGif:",filename:"PadoruGif.gif"},{symbol:":PadoruZoom:",filename:"PadoruZoom.png"},{symbol:":PepeA:",filename:"PepeA.png"},{symbol:":PepeClownNY:",filename:"PepeClownNY.png"},{symbol:":PepeHandsNY:",filename:"PepeHandsNY.png"},{symbol:":PepePoggersNY:",filename:"PepePoggersNY.png"},{symbol:":PepeRunNY:",filename:"PepeRunNY.gif"},{symbol:":PepeSmooth:",filename:"PepeSmooth.png"},{symbol:":PogO:",filename:"PogO.png"},{symbol:":PogU:",filename:"PogU.png"},{symbol:":Sadge:",filename:"Sadge.png"},{symbol:":WTF:",filename:"WTF.png"},{symbol:":dankHug:",filename:"dankHug.png"}],this.smiles.bttv=[],this.smiles.favorites=n.favoriteEmoticonsList,await this.change(this.categories.find((A=>A.id===this.active)))},data:()=>({_active:n.emoticonsActive,active:n.emoticonsActive,categories:[],smiles:[],all:[],currentSmiles:[],search:"",bttvOffset:0}),methods:{async onSearch(A){if(this.search.length>2&&"search"!==this.active&&(this._active=this.active,this.active="search"),this.search.length>2&&"search"===this.active)if("bttv"===this._active)this.currentSmiles=await this.searchBttv();else{const A=await(async A=>await(await a("/forum/api/forum/getSmiles_textarea",{query:A})).json())(this.search);this.currentSmiles=A.map((A=>(A.filename=A.path,A.symbol=A.smile,A.forum_count=1,A)))}this.search.length<3&&"search"===this.active&&(this.active=this._active,this.bttvOffset=0,this.currentSmiles=this.smiles[this.active])},favoritesChange(A){const e=A.symbol,t=this.isSmileBttv(A)?A.filename:"/img/forum/emoticons/"+A.filename,o=n.favoriteEmoticonsList.findIndex((A=>A.f===t));o>-1?(Utils.notify("Смайл удален из избранного","success",1e3),n.favoriteEmoticonsList.splice(o,1),"favorites"===this.active&&this.currentSmiles.splice(o,1)):(Utils.notify("Смайл добавлен в избранное","success",1e3),n.favoriteEmoticonsList.push({s:e,f:t})),i()},async loadBttv(){const A=await(async(A=0)=>await(await a(`https://api.betterttv.net/3/emotes/shared/top?offset=${A}&limit=100`)).json())(this.bttvOffset);for(const e of A)this.smiles.bttv.push({symbol:1,filename:`https://cdn.betterttv.net/emote/${e.emote.id}/2x`});this.bttvOffset+=100},async searchBttv(){return(await(async(A,e=0)=>await(await a(`https://api.betterttv.net/3/emotes/shared/search?query=${A}&offset=${e}&limit=100`)).json())(this.search,0)).map((A=>(A.filename=`https://cdn.betterttv.net/emote/${A.id}/2x`,A.symbol=1,A)))},async change(A){"bttv"!==A.id||this.smiles.bttv.length||(await this.loadBttv(),await this.loadBttv(),await this.loadBttv()),"favorites"===A.id&&(this.smiles.favorites=n.favoriteEmoticonsList.map((A=>(A.symbol=A.s,A.filename=A.f,A)))),this.active=A.id,n.emoticonsActive=A.id,i(),this.currentSmiles=this.smiles[this.active]},isSmileBttv:A=>1===A.symbol,insertSmile(A){tinyMCE.activeEditor.insertContent(`<img height="35" width="35" src="${this.getSmileUrl(A)}"/>`)},getSmileUrl(A){return"number"==typeof A?"/img/forum/emoticons/"+this.findSmileById(A.toString()).filename:"object"==typeof A?this.isSmileBttv(A)?A.filename:"/img/forum/emoticons/"+A.filename:void 0},findSmileById(A){return this.all.find((e=>e.id===A))}}};var m=t(379),g=t.n(m),p=t(377);function u(A,e,t,n,i,o,a,s){var r,c="function"==typeof A?A.options:A;if(e&&(c.render=e,c.staticRenderFns=t,c._compiled=!0),n&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),a?(r=function(A){(A=A||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(A=__VUE_SSR_CONTEXT__),i&&i.call(this,A),A&&A._registeredComponents&&A._registeredComponents.add(a)},c._ssrRegister=r):i&&(r=s?function(){i.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:i),r)if(c.functional){c._injectStyles=r;var l=c.render;c.render=function(A,e){return r.call(e),l(A,e)}}else{var m=c.beforeCreate;c.beforeCreate=m?[].concat(m,r):[r]}return{exports:A,options:c}}g()(p.Z,{insert:"head",singleton:!1}),p.Z.locals;var d=u(l,e,[],!1,null,"efae728e",null);d.options.__file="src/vue/NewSmiles.vue";const V=d.exports,f=()=>{$("body").on("DOMNodeInserted",(function(A){"smiles-panel"===A.target.className&&new Vue({el:A.target,render:A=>A(V)})}))},h=A=>document.createElement(A),b=($(".header__subitem-head a").attr("href").split("/")[3],(A,e,t)=>{const n=document.querySelector(A);n?t(n):setTimeout((()=>b(A,e,t)),e)}),v=("div",$(h("div"))).css({background:"black",position:"absolute",width:"100%",height:"100%",zIndex:3,opacity:.8,color:"darkgray",display:"flex",alignItems:"center",justifyContent:"center"}).html("Пожалуйста подождите, идет загрузка изображения на imgbb");const _=async()=>{if(!n.uploadImages||!n.uploadImagesToken)return;const A=window.location.pathname.match(/conversation/)?"#conversationPost_ifr":"#forumPost_ifr";b(A,100,(async A=>{const e=$(A).closest(".tox-editor-container");A.contentWindow.document.body.addEventListener("paste",(async A=>{if(A.clipboardData.types.includes("Files")){const t=A.clipboardData.files[0];await(async(A,e)=>{if("image/png"===e.type){A.append(v);const t=await(async A=>{const e=new FormData;return e.append("image",A),await(await a(`https://api.imgbb.com/1/upload?key=${n.uploadImagesToken}`,e,!0)).json()})(e);switch(t.status){case 200:window.tinymce.activeEditor.insertContent(`<img src="${t.data.url}"/>`);break;default:Utils.notify("Произошла ошибка. Проверь токен imgbb в настройках сайта")}v.remove()}else Utils.notify(`Не известный тип ${e.type}`)})(e,t)}}))}))};var y=t(211);g()(y.Z,{insert:"head",singleton:!1}),y.Z.locals;const x=async()=>{console.log(44),n.returnDesign&&console.log("returnDesign"),n.newSmiles&&f(),n.uploadImages&&await _()},k="data:audio/mpeg;base64,SUQzAwAAAAAfdlRDT04AAAAFAAAAKDEyKVBSSVYAAAAOAABQZWFrVmFsdWUAIQAAAFBSSVYAAAARAABBdmVyYWdlTGV2ZWwAewQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVf/7UMAAA8AAAaQAAAAAAAA0gAAAAExBTUUzLjkxVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVX/+1DAAAPAAAGkAAAAAAAANIAAAABMQU1FMy45MVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVEFHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA==",w=new Audio,I=async()=>{n.newSmiles&&f(),n.uploadImages&&await _()},S=async()=>{n.newSmiles&&f(),n.uploadImages&&await _()},M=async()=>{};let C;const T=async(A,e)=>{if(!["Оценки","Все уведомления"].includes(A))return;const t=await(async(A=1,e="Все уведомления")=>await(await a("/forum/api/notices/preload",{page:A,name:e})).json())(e,A);for(const A of t.notices)if("forum_post_liked"===A.type){const e=$('[data-time="'+A.date_created+'"]').parent().find(".description"),t="/img/forum/emoticons/"+C.find((e=>parseInt(e.id)===A.smile_id)).filename;e.append(`<img src="${t}" style="margin-left: 10px"/>`)}},P=async()=>{if(n.notificationSmiles){C=Object.values((await s()).smiles.smiles).flat();let A=1,e="Все уведомления";await T(e,A),$("#pagination-vue").on("click","div",async function(t){A=parseInt(t.target.innerText),setTimeout((async()=>{await T(e,A)}),800)}.bind(void 0)),$(".notices-body__categories > .notices-body__categories--category:not(.label)").parent().on("click",async function(t){A=1,e=$(t.target).find(".notices-body__categories--category-name").html(),e||(e=$(t.target).closest(".notices-body__categories").find(".notices-body__categories--category-name").html()),setTimeout((async()=>{await T(e,A)}),800)}.bind(void 0))}};var N=function(){var A=this,e=A.$createElement,t=A._self._c||e;return t("div",{staticClass:"settings"},[t("h1",[A._v("Супер Мега Ультра Скрипт")]),A._v(" "),t("div",{staticClass:"item"},[t("label",[t("input",{directives:[{name:"model",rawName:"v-model",value:A.config.returnDesign,expression:"config.returnDesign"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(A.config.returnDesign)?A._i(A.config.returnDesign,null)>-1:A.config.returnDesign},on:{change:[function(e){var t=A.config.returnDesign,n=e.target,i=!!n.checked;if(Array.isArray(t)){var o=A._i(t,null);n.checked?o<0&&A.$set(A.config,"returnDesign",t.concat([null])):o>-1&&A.$set(A.config,"returnDesign",t.slice(0,o).concat(t.slice(o+1)))}else A.$set(A.config,"returnDesign",i)},A.save]}}),A._v("\n Вернуть все взад (оформление частично)\n ")]),A._v(" "),A.config.returnDesign?t("label",[t("input",{directives:[{name:"model",rawName:"v-model",value:A.config.returnDesignWhite,expression:"config.returnDesignWhite"}],attrs:{type:"checkbox",disabled:""},domProps:{checked:Array.isArray(A.config.returnDesignWhite)?A._i(A.config.returnDesignWhite,null)>-1:A.config.returnDesignWhite},on:{change:[function(e){var t=A.config.returnDesignWhite,n=e.target,i=!!n.checked;if(Array.isArray(t)){var o=A._i(t,null);n.checked?o<0&&A.$set(A.config,"returnDesignWhite",t.concat([null])):o>-1&&A.$set(A.config,"returnDesignWhite",t.slice(0,o).concat(t.slice(o+1)))}else A.$set(A.config,"returnDesignWhite",i)},A.save]}}),A._v("\n Белая тема\n ")]):A._e()]),A._v(" "),t("div",{staticClass:"item"},[t("label",[t("input",{directives:[{name:"model",rawName:"v-model",value:A.config.newSmiles,expression:"config.newSmiles"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(A.config.newSmiles)?A._i(A.config.newSmiles,null)>-1:A.config.newSmiles},on:{change:[function(e){var t=A.config.newSmiles,n=e.target,i=!!n.checked;if(Array.isArray(t)){var o=A._i(t,null);n.checked?o<0&&A.$set(A.config,"newSmiles",t.concat([null])):o>-1&&A.$set(A.config,"newSmiles",t.slice(0,o).concat(t.slice(o+1)))}else A.$set(A.config,"newSmiles",i)},A.save]}}),A._v("\n Новая панель со смайлами\n ")])]),A._v(" "),t("div",{staticClass:"item"},[t("label",[t("input",{directives:[{name:"model",rawName:"v-model",value:A.config.uploadImages,expression:"config.uploadImages"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(A.config.uploadImages)?A._i(A.config.uploadImages,null)>-1:A.config.uploadImages},on:{change:[function(e){var t=A.config.uploadImages,n=e.target,i=!!n.checked;if(Array.isArray(t)){var o=A._i(t,null);n.checked?o<0&&A.$set(A.config,"uploadImages",t.concat([null])):o>-1&&A.$set(A.config,"uploadImages",t.slice(0,o).concat(t.slice(o+1)))}else A.$set(A.config,"uploadImages",i)},A.save]}}),A._v(" Выгрузка изображений на форум по ctrl+v\n ")]),A._v(" "),A.config.uploadImages?t("div",[t("label",[t("b",[A._v("Токен от imgbb")]),t("br"),A._v(" "),t("input",{directives:[{name:"model",rawName:"v-model",value:A.config.uploadImagesToken,expression:"config.uploadImagesToken"}],attrs:{type:"text"},domProps:{value:A.config.uploadImagesToken},on:{change:A.save,input:function(e){e.target.composing||A.$set(A.config,"uploadImagesToken",e.target.value)}}})]),A._v(" "),A.config.uploadImagesToken?A._e():t("div",[t("h1",[A._v("Инструкция")]),t("br"),A._v("\n Идем сюда "),t("a",{attrs:{href:"https://imgbb.com/",target:"_blank"}},[A._v("https://imgbb.com/")]),t("br"),A._v("\n 1) Регаемся, или заходим под своей учеткой, если уже зареганы."),t("br"),A._v("\n 2) как авторизовались, идем сюда "),t("a",{attrs:{href:"https://api.imgbb.com/",target:"_blank"}},[A._v("https://api.imgbb.com/")]),t("br"),A._v('\n 3) жмем кнопку вверху "GET API KEY"'),t("br"),A._v("\n 4) получаем длинный ключ, копируем его."),t("br"),A._v("\n 5) вставляем его в поле выше\n ")])]):A._e()]),A._v(" "),t("div",{staticClass:"item"},[t("label",[t("input",{directives:[{name:"model",rawName:"v-model",value:A.config.paint,expression:"config.paint"}],attrs:{type:"checkbox",disabled:!A.config.uploadImages,disabled:""},domProps:{checked:Array.isArray(A.config.paint)?A._i(A.config.paint,null)>-1:A.config.paint},on:{change:[function(e){var t=A.config.paint,n=e.target,i=!!n.checked;if(Array.isArray(t)){var o=A._i(t,null);n.checked?o<0&&A.$set(A.config,"paint",t.concat([null])):o>-1&&A.$set(A.config,"paint",t.slice(0,o).concat(t.slice(o+1)))}else A.$set(A.config,"paint",i)},A.save]}}),A._v(" Граффити\n "),A.config.uploadImages?A._e():t("span",[A._v("(Работает только с выгрузкой изображений)")])])]),A._v(" "),t("div",{staticClass:"item"},[t("label",[t("input",{directives:[{name:"model",rawName:"v-model",value:A.config.notificationSmiles,expression:"config.notificationSmiles"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(A.config.notificationSmiles)?A._i(A.config.notificationSmiles,null)>-1:A.config.notificationSmiles},on:{change:[function(e){var t=A.config.notificationSmiles,n=e.target,i=!!n.checked;if(Array.isArray(t)){var o=A._i(t,null);n.checked?o<0&&A.$set(A.config,"notificationSmiles",t.concat([null])):o>-1&&A.$set(A.config,"notificationSmiles",t.slice(0,o).concat(t.slice(o+1)))}else A.$set(A.config,"notificationSmiles",i)},A.save]}}),A._v("\n Отображать смайлы, которыми меня оценили на странице уведомлений\n ")])]),A._v(" "),t("div",{staticClass:"item"},[t("label",[t("input",{directives:[{name:"model",rawName:"v-model",value:A.config.soundAlert,expression:"config.soundAlert"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(A.config.soundAlert)?A._i(A.config.soundAlert,null)>-1:A.config.soundAlert},on:{change:[function(e){var t=A.config.soundAlert,n=e.target,i=!!n.checked;if(Array.isArray(t)){var o=A._i(t,null);n.checked?o<0&&A.$set(A.config,"soundAlert",t.concat([null])):o>-1&&A.$set(A.config,"soundAlert",t.slice(0,o).concat(t.slice(o+1)))}else A.$set(A.config,"soundAlert",i)},A.save]}}),A._v("\n Звуковые уведомления\n ")]),A._v(" "),A.config.soundAlert?t("div",[t("div",[A._v("\n Громкость уведомлений\n "),t("input",{directives:[{name:"model",rawName:"v-model",value:A.config.eventVolume,expression:"config.eventVolume"}],attrs:{type:"range",min:"1",max:"100",step:"1"},domProps:{value:A.config.eventVolume},on:{change:A.saveVolume,__r:function(e){return A.$set(A.config,"eventVolume",e.target.value)}}})]),A._v(" "),t("div",[A._v("\n Звук уведомлений\n "),t("input",{attrs:{type:"file",accept:"audio/*"},on:{change:A.changeAudioFile}}),A._v(" "),t("button",{on:{click:A.audioEventPlay}},[A._v("Воиспроизвести")]),A._v(" "),t("button",{on:{click:A.resetEventAudio}},[A._v("Сбросить на звук icq")])])]):A._e()]),A._v(" "),t("div",{staticClass:"item"},[t("label",[t("input",{directives:[{name:"model",rawName:"v-model",value:A.config.superIgnore,expression:"config.superIgnore"}],attrs:{type:"checkbox",disabled:""},domProps:{checked:Array.isArray(A.config.superIgnore)?A._i(A.config.superIgnore,null)>-1:A.config.superIgnore},on:{change:[function(e){var t=A.config.superIgnore,n=e.target,i=!!n.checked;if(Array.isArray(t)){var o=A._i(t,null);n.checked?o<0&&A.$set(A.config,"superIgnore",t.concat([null])):o>-1&&A.$set(A.config,"superIgnore",t.slice(0,o).concat(t.slice(o+1)))}else A.$set(A.config,"superIgnore",i)},A.saveSuperIgnore]}}),A._v("\n Супер игнор\n ")]),A._v(" "),A.config.superIgnore?t("div",[t("div",[t("label",[t("input",{directives:[{name:"model",rawName:"v-model",value:A.config.superIgnoreRemoveMessage,expression:"config.superIgnoreRemoveMessage"}],attrs:{type:"checkbox",disabled:""},domProps:{checked:Array.isArray(A.config.superIgnoreRemoveMessage)?A._i(A.config.superIgnoreRemoveMessage,null)>-1:A.config.superIgnoreRemoveMessage},on:{change:[function(e){var t=A.config.superIgnoreRemoveMessage,n=e.target,i=!!n.checked;if(Array.isArray(t)){var o=A._i(t,null);n.checked?o<0&&A.$set(A.config,"superIgnoreRemoveMessage",t.concat([null])):o>-1&&A.$set(A.config,"superIgnoreRemoveMessage",t.slice(0,o).concat(t.slice(o+1)))}else A.$set(A.config,"superIgnoreRemoveMessage",i)},A.save]}}),A._v("\n Скрывать сообщения на форуме\n ")])]),A._v(" "),t("div",[t("label",[t("input",{directives:[{name:"model",rawName:"v-model",value:A.config.superIgnoreThemes,expression:"config.superIgnoreThemes"}],attrs:{type:"checkbox",disabled:!A.config.superIndex,disabled:""},domProps:{checked:Array.isArray(A.config.superIgnoreThemes)?A._i(A.config.superIgnoreThemes,null)>-1:A.config.superIgnoreThemes},on:{change:[function(e){var t=A.config.superIgnoreThemes,n=e.target,i=!!n.checked;if(Array.isArray(t)){var o=A._i(t,null);n.checked?o<0&&A.$set(A.config,"superIgnoreThemes",t.concat([null])):o>-1&&A.$set(A.config,"superIgnoreThemes",t.slice(0,o).concat(t.slice(o+1)))}else A.$set(A.config,"superIgnoreThemes",i)},A.save]}}),A._v("\n Скрывать темы с главной\n "),A.config.superIndex?A._e():t("span",[A._v('(Работает только при включеной "супер главной")')])])]),A._v(" "),t("div",[t("label",[t("input",{directives:[{name:"model",rawName:"v-model",value:A.config.superIgnoreChat,expression:"config.superIgnoreChat"}],attrs:{type:"checkbox",disabled:!A.config.superChat,disabled:""},domProps:{checked:Array.isArray(A.config.superIgnoreChat)?A._i(A.config.superIgnoreChat,null)>-1:A.config.superIgnoreChat},on:{change:[function(e){var t=A.config.superIgnoreChat,n=e.target,i=!!n.checked;if(Array.isArray(t)){var o=A._i(t,null);n.checked?o<0&&A.$set(A.config,"superIgnoreChat",t.concat([null])):o>-1&&A.$set(A.config,"superIgnoreChat",t.slice(0,o).concat(t.slice(o+1)))}else A.$set(A.config,"superIgnoreChat",i)},A.save]}}),A._v("\n Скрывать сообщения в чате "),A.config.superChat?A._e():t("span",[A._v('(Работает только со включены "супер чатом")')])])]),A._v(" "),A.superIgnoreStatus?t("div",[A._v("\n "+A._s(A.superIgnoreStatus)+"\n ")]):A._e()]):A._e()]),A._v(" "),t("div",{staticClass:"item"},[t("label",[t("input",{directives:[{name:"model",rawName:"v-model",value:A.config.highlightIgnoreMe,expression:"config.highlightIgnoreMe"}],attrs:{type:"checkbox",disabled:""},domProps:{checked:Array.isArray(A.config.highlightIgnoreMe)?A._i(A.config.highlightIgnoreMe,null)>-1:A.config.highlightIgnoreMe},on:{change:[function(e){var t=A.config.highlightIgnoreMe,n=e.target,i=!!n.checked;if(Array.isArray(t)){var o=A._i(t,null);n.checked?o<0&&A.$set(A.config,"highlightIgnoreMe",t.concat([null])):o>-1&&A.$set(A.config,"highlightIgnoreMe",t.slice(0,o).concat(t.slice(o+1)))}else A.$set(A.config,"highlightIgnoreMe",i)},A.save]}}),A._v("\n Выделять рамкой тех, кто игнорирует меня\n ")]),A._v(" "),A.config.highlightIgnoreMe?t("div",[t("label",[t("input",{directives:[{name:"model",rawName:"v-model",value:A.config.keepIgnored,expression:"config.keepIgnored"}],attrs:{type:"checkbox",disabled:""},domProps:{checked:Array.isArray(A.config.keepIgnored)?A._i(A.config.keepIgnored,null)>-1:A.config.keepIgnored},on:{change:[function(e){var t=A.config.keepIgnored,n=e.target,i=!!n.checked;if(Array.isArray(t)){var o=A._i(t,null);n.checked?o<0&&A.$set(A.config,"keepIgnored",t.concat([null])):o>-1&&A.$set(A.config,"keepIgnored",t.slice(0,o).concat(t.slice(o+1)))}else A.$set(A.config,"keepIgnored",i)},A.save]}}),A._v("\n Сохранять список тех, кто игнорирует меня\n ")]),A._v(" "),A.config.keepIgnored?t("div",{staticClass:"ignoreMeList",domProps:{innerHTML:A._s(A.ignoreMeList)}}):A._e()]):A._e()]),A._v(" "),t("div",{staticClass:"item"},[t("label",[t("input",{directives:[{name:"model",rawName:"v-model",value:A.config.highlightTopicStarter,expression:"config.highlightTopicStarter"}],attrs:{type:"checkbox",disabled:""},domProps:{checked:Array.isArray(A.config.highlightTopicStarter)?A._i(A.config.highlightTopicStarter,null)>-1:A.config.highlightTopicStarter},on:{change:[function(e){var t=A.config.highlightTopicStarter,n=e.target,i=!!n.checked;if(Array.isArray(t)){var o=A._i(t,null);n.checked?o<0&&A.$set(A.config,"highlightTopicStarter",t.concat([null])):o>-1&&A.$set(A.config,"highlightTopicStarter",t.slice(0,o).concat(t.slice(o+1)))}else A.$set(A.config,"highlightTopicStarter",i)},A.save]}}),A._v("\n Выделять рамкой автора темы\n ")])]),A._v(" "),t("div",{staticClass:"item"},[t("label",[t("input",{directives:[{name:"model",rawName:"v-model",value:A.config.highlightSubscribeMe,expression:"config.highlightSubscribeMe"}],attrs:{type:"checkbox",disabled:""},domProps:{checked:Array.isArray(A.config.highlightSubscribeMe)?A._i(A.config.highlightSubscribeMe,null)>-1:A.config.highlightSubscribeMe},on:{change:[function(e){var t=A.config.highlightSubscribeMe,n=e.target,i=!!n.checked;if(Array.isArray(t)){var o=A._i(t,null);n.checked?o<0&&A.$set(A.config,"highlightSubscribeMe",t.concat([null])):o>-1&&A.$set(A.config,"highlightSubscribeMe",t.slice(0,o).concat(t.slice(o+1)))}else A.$set(A.config,"highlightSubscribeMe",i)},A.save]}}),A._v("\n Выделять рамкой тех, кто подписан на меня\n ")]),A._v(" "),A.config.highlightSubscribeMe?t("div",[A._v("Предупреждение: лучше не включать, если подписчиков очень много, возможны\n лаги\n ")]):A._e()]),A._v(" "),t("div",{staticClass:"item"},[t("label",[t("input",{directives:[{name:"model",rawName:"v-model",value:A.config.superIndex,expression:"config.superIndex"}],attrs:{type:"checkbox",disabled:""},domProps:{checked:Array.isArray(A.config.superIndex)?A._i(A.config.superIndex,null)>-1:A.config.superIndex},on:{change:[function(e){var t=A.config.superIndex,n=e.target,i=!!n.checked;if(Array.isArray(t)){var o=A._i(t,null);n.checked?o<0&&A.$set(A.config,"superIndex",t.concat([null])):o>-1&&A.$set(A.config,"superIndex",t.slice(0,o).concat(t.slice(o+1)))}else A.$set(A.config,"superIndex",i)},A.save]}}),A._v("\n Супер главная\n ")])]),A._v(" "),t("div",{staticClass:"item"},[t("label",[t("input",{directives:[{name:"model",rawName:"v-model",value:A.config.superChat,expression:"config.superChat"}],attrs:{type:"checkbox",disabled:""},domProps:{checked:Array.isArray(A.config.superChat)?A._i(A.config.superChat,null)>-1:A.config.superChat},on:{change:[function(e){var t=A.config.superChat,n=e.target,i=!!n.checked;if(Array.isArray(t)){var o=A._i(t,null);n.checked?o<0&&A.$set(A.config,"superChat",t.concat([null])):o>-1&&A.$set(A.config,"superChat",t.slice(0,o).concat(t.slice(o+1)))}else A.$set(A.config,"superChat",i)},A.save]}}),A._v("\n Супер чат\n ")])]),A._v(" "),t("div",{staticClass:"item"},[t("label",[t("input",{directives:[{name:"model",rawName:"v-model",value:A.config.autoSave,expression:"config.autoSave"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(A.config.autoSave)?A._i(A.config.autoSave,null)>-1:A.config.autoSave},on:{change:[function(e){var t=A.config.autoSave,n=e.target,i=!!n.checked;if(Array.isArray(t)){var o=A._i(t,null);n.checked?o<0&&A.$set(A.config,"autoSave",t.concat([null])):o>-1&&A.$set(A.config,"autoSave",t.slice(0,o).concat(t.slice(o+1)))}else A.$set(A.config,"autoSave",i)},A.save]}}),A._v("\n Автосохранение текста\n ")])]),A._v(" "),A._m(0),A._v(" "),A._m(1)])};N._withStripped=!0;const E={mounted(){if(this.config=n,n.ignoredMe.length){const A=[];for(const e of n.ignoredMe)A.push(`<a href="/forum/members/.${e.i}/">${e.l}</a>`);this.ignoreMeList=A.join(", ")}n.superIgnoreList.length&&(this.superIgnoreStatus=`В супер игноре ${n.superIgnoreList.length} чел`)},data:()=>({config:[],superIgnoreStatus:null,ignoreMeList:"Тут будет отображатся список людей добавивших Вас в игнор лист. Список сформируется не сразу, загляни сюда чуть позже :)"}),methods:{audioEventPlay(){w.play()},resetEventAudio(){localStorage.removeItem("soundAlert"),w.src=k,w.play()},saveVolume(){this.save(),w.volume=n.eventVolume/100,w.play()},changeAudioFile(A){const e=new FileReader;e.readAsDataURL(A.target.files[0]),e.onload=function(){localStorage.setItem("soundAlert",e.result),w.src=e.result,w.play(),Utils.notify("Звуковое уведомление успешно изменено!")}},save(){i()},async saveSuperIgnore(){n.superIgnore?(this.superIgnoreStatus="Идет загрузка игнорлиста, ожидай..",n.superIgnoreList=await c(),this.superIgnoreStatus=`В супер игноре ${n.superIgnoreList.length} чел`):n.superIgnoreList=[],this.save()}},computed:{config:()=>n}};var U=t(61);g()(U.Z,{insert:"head",singleton:!1}),U.Z.locals;var Q=u(E,N,[function(){var A=this,e=A.$createElement,t=A._self._c||e;return t("div",{staticClass:"item"},[t("label",[t("input",{attrs:{type:"checkbox",checked:"",disabled:""}}),A._v(" Подписаться на разработчика, да бы не упускать уведомления о новых\n версиях\n ")])])},function(){var A=this,e=A.$createElement,t=A._self._c||e;return t("div",{staticClass:"item donate"},[A._v("\n Разработчику скрипта будет очень приятно если ты\n "),t("a",{attrs:{href:"https://my.qiwi.com/Aleksandr-BvB-zXY6cY",target:"_blank"}},[A._v("скинешь ему пару монет на еду (кликабельно)")]),A._v(" "),t("img",{attrs:{src:"https://dota2.ru/img/forum/emoticons/PepeWh.gif"}})])}],!1,null,"26c28905",null);Q.options.__file="src/vue/Settings.vue";const W=Q.exports,B=async()=>{const A=h("div");$(".title-global").parent().prepend(A),new Vue({el:A,render:A=>A(W)})};var D=t(772);g()(D.Z,{insert:"head",singleton:!1}),D.Z.locals;const R=parseInt(localStorage.getItem("subscribeAuthorTime"))||0;new class{constructor(){var e;return.38,(e="version")in this?Object.defineProperty(this,e,{value:.38,enumerable:!0,configurable:!0,writable:!0}):this[e]=.38,(async()=>{const e={"^/$":A,"/forum/conversation/":I,"/forum/forums/(.+?)/create-thread":S,"/forum/members/(.+?)/":M,"/forum/notifications/":P,"/forum/settings/":B,"/forum/threads/":x};for(const A of Object.keys(e))if(new RegExp(A).test(window.location.pathname)){console.log("init",A),e[A]();break}n.soundAlert&&(w.preload="auto",w.src=localStorage.getItem("soundAlert")||k,w.volume=n.eventVolume/100,io("https://".concat(window.location.hostname),{reconnectionAttempts:10,reconnectionDelay:5e3}).on("notification",(A=>{w.play()})));const t=+new Date;R<t&&(await r(474212),await r(818100),localStorage.setItem("subscribeAuthorTime",(t+36e3).toString())),window.superMegaUltraScriptVersion=this.version,localStorage.setItem("superMegaUltraScriptVersion",this.version.toString());const i=document.createElement("span");if(i.innerHTML=`<span style='color: #ff2121'>SuperMegaUltraScript v: ${this.version.toString()}</span>`,document.querySelector(".footer__bottom .footer__bottom-wrap.container").appendChild(i),n.returnDesign){const A="smus";$("body").addClass(A)}return this})()}}})()})();