document.write("<script type='text/template'>");
        document.write("<div id='news/news-comments-details.tpl'>&lt;% function getClass(comment) { if (comment.Rating &gt; 0) { return &#39;positive&#39;; } if (comment.Rating &lt; 0) { return &#39;negative&#39;; } return &#39;&#39;; } %&gt; &lt;% var canCommentDisplay = window.user.get(&#39;canComment&#39;) ? &#39;&#39; : &#39;display: none&#39;; var isDeleted = comment.DeleteDate &amp;&amp; true; %&gt; &lt;div class=&quot;comment ui-corner-all level-&lt;%= comment.Level %&gt;&lt;%= isDeleted ? &#39; deleted&#39; : &#39;&#39; %&gt; &lt;%= comment.DescendantsCount &gt; 0 ? &#39;has-children&#39; : &#39;no-children&#39; %&gt; &lt;%= comment.AnyChildrenVisible ? &#39;has-valid-children&#39; : &#39;no-valid-children&#39; %&gt; &lt;%= comment.IsModerator ? &#39;moderator&#39; : &#39;&#39; %&gt;&quot; data-comment-id=&quot;&lt;%= comment.ID %&gt;&quot; data-comment-level=&quot;&lt;%= comment.Level %&gt;&quot; data-parent-id=&quot;&lt;%= comment.ParentCommentId || -1 %&gt;&quot; data-publication-date=&quot;&lt;%= comment.AbsolutePublicationMoment %&gt; &lt;%= comment.IsMine ? &#39;mine&#39; : &#39;&#39; %&gt;&quot; style=&quot;display: none&quot; id=&quot;news-comment-&lt;%= comment.ID %&gt;&quot;&gt; &lt;div class=&quot;comment-inner-container&quot; id=&quot;comment-inner-container-&lt;%= comment.ID %&gt;&quot;&gt; &lt;% if (comment.AuthorClass) { %&gt; &lt;div class=&quot;avatar-container&quot; id=&quot;comment-avatar-container-&lt;%= comment.ID %&gt;&quot;&gt; &lt;div class=&quot;avatar &lt;%= comment.AuthorClass.toLowerCase() %&gt; internal &lt;%= comment.AccountLoginTypeName %&gt;&quot; id=&quot;comment-avatar-&lt;%= comment.ID %&gt;&quot; data-login-type=&quot;&lt;%= comment.AccountLoginTypeName %&gt;&quot;&gt;&amp;nbsp;&lt;/div&gt; &lt;/div&gt; &lt;% } else { %&gt; &lt;div class=&quot;avatar-container&quot; id=&quot;comment-avatar-container-&lt;%= comment.ID %&gt;&quot;&gt; &lt;div class=&quot;avatar &lt;%= comment.AuthorAvatar ? &#39;external&#39; : &#39; unknown internal&#39; %&gt; &lt;%= comment.AccountLoginTypeName %&gt;&quot; id=&quot;comment-avatar-&lt;%= comment.ID %&gt;&quot; data-login-type=&quot;&lt;%= comment.AccountLoginTypeName %&gt;&quot;&gt; &lt;% if (comment.AuthorAvatar) { %&gt; &lt;img src=&quot;&lt;%= comment.AuthorAvatar %&gt;&quot; alt=&quot;&lt;%=comment.AuthorName%&gt;&quot; /&gt; &lt;% } %&gt; &lt;/div&gt; &lt;/div&gt; &lt;% } %&gt; &lt;div class=&quot;under-avatar&quot; id=&quot;comment-under-avatar-&lt;%= comment.ID %&gt;&quot;&gt; &lt;h3&gt; &lt;% if (comment.ProfileLink) { %&gt; &lt;a href=&quot;&lt;%= comment.ProfileLink %&gt;&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt; &lt;% } %&gt; &lt;span class=&quot;name&quot;&gt;&lt;%=comment.AuthorName || $L.anonymousCommentAuthor %&gt;&lt;/span&gt; &lt;% if (comment.ProfileLink) { %&gt; &lt;/a&gt; &lt;% } %&gt; &lt;% if (comment.DescendantsCount &gt; 0) { %&gt; &lt;span class=&quot;actions&quot; id=&quot;comment-actions-&lt;%= comment.ID %&gt;&quot; data-comment-id=&quot;&lt;%= comment.ID %&gt;&quot;&gt; &lt;span class=&quot;children&quot; id=&quot;comment-children-count-&lt;%= comment.ID %&gt;&quot;&gt;&lt;%= comment.DescendantsCount == 0 ? &#39;&#39; : comment.DescendantsCount %&gt;&lt;/span&gt; &lt;span class=&quot;show&quot; title=&quot;&lt;%= $L.showChildComments %&gt;&quot; id=&quot;comment-show-children-&lt;%= comment.ID %&gt;&quot; data-comment-id=&quot;&lt;%= comment.ID %&gt;&quot;&gt;&amp;nbsp;&lt;/span&gt; &lt;span class=&quot;hide&quot; title=&quot;&lt;%= $L.hideChildComments %&gt;&quot; id=&quot;comment-hide-children-&lt;%= comment.ID %&gt;&quot; data-comment-id=&quot;&lt;%= comment.ID %&gt;&quot;&gt;&amp;nbsp;&lt;/span&gt; &lt;/span&gt; &lt;% } %&gt; &lt;% var visibility = !comment.IsRated &amp;&amp; !comment.IsMine &amp;&amp; window.user.get(&#39;loginType&#39;) &amp;&amp; window.user.get(&#39;players&#39;) != undefined ? &#39;&#39; : &#39;disabled&#39;; %&gt; &lt;% if (!isDeleted) { %&gt; &lt;span class=&quot;rating &lt;%= visibility %&gt;&quot; id=&quot;comment-rating-&lt;%= comment.ID %&gt;&quot;&gt;&lt;span class=&quot;value &lt;%= getClass(comment) %&gt;&quot; id=&quot;comment-rating-value-&lt;%= comment.ID %&gt;&quot;&gt;&lt;%=comment.Rating%&gt;&lt;/span&gt; &lt;span title=&quot;&lt;%= $L.likeHint %&gt;&quot; class=&#39;vote-up&#39; id=&quot;comment-vote-up-&lt;%= comment.ID %&gt;&quot; data-comment-id=&quot;&lt;%= comment.ID %&gt;&quot;&gt;&amp;nbsp;&lt;/span&gt; &lt;span title=&quot;&lt;%= $L.dislikeHint %&gt;&quot; class=&quot;vote-down&quot; id=&quot;comment-vote-down-&lt;%= comment.ID %&gt;&quot; data-comment-id=&quot;&lt;%= comment.ID %&gt;&quot;&gt;&amp;nbsp;&lt;/span&gt; &lt;/span&gt; &lt;% } %&gt; &lt;/h3&gt; &lt;span class=&quot;date&quot; id=&quot;comment-publication-date-&lt;%= comment.ID %&gt;&quot; data-comment-date=&quot;&lt;%= comment.AbsolutePublicationMoment.toISOString() %&gt;&quot;&gt;&lt;%= new Date(comment.PublicationMoment).setHours(0,0,0,0) == new Date().setHours(0,0,0,0) ? moment(comment.PublicationMoment).fromNow() : moment(comment.PublicationMoment).format(&#39;HH:mm / DD MMM / YYYY&#39;)%&gt;&lt;/span&gt; &lt;p class=&quot;comment-text&lt;%= isDeleted ? &#39; deleted&#39; : &#39;&#39; %&gt;&quot; id=&quot;comment-text-&lt;%= comment.ID %&gt;&quot;&gt; &lt;% if (!isDeleted) { %&gt; &lt;%= $.wysibb.parseSmileys(Pnz.Comments.Utils.prettifyComment(comment.Text)) %&gt; &lt;% } else { %&gt; &lt;span class=&quot;comment-deleted-info&lt;%= comment.CanRestore ? &#39; can-restore&#39; : &#39;&#39; %&gt;&quot; id=&quot;comment-deleted-info-&lt;%= comment.ID %&gt;&quot; data-can-restore=&quot;&lt;%= comment.CanRestore ? &#39;true&#39; : &#39;false&#39; %&gt;&quot;&gt;&lt;%= $L.commentIsDeleted %&gt;&lt;/span&gt; &lt;% if (comment.CanRestore) { %&gt; &lt;div class=&quot;deleted-comment&quot; id=&quot;deleted-comment-&lt;%= comment.ID %&gt;&quot;&gt;&lt;%= $.wysibb.parseSmileys(Pnz.Comments.Utils.prettifyComment(comment.Text)) %&gt;&lt;/div&gt; &lt;% } %&gt; &lt;% } %&gt; &lt;/p&gt; &lt;% if (!isDeleted &amp;&amp; comment.UserCanAnswer) { %&gt; &lt;div class=&quot;open&quot; data-open=&quot;&lt;%= $L.replyToComment %&gt;&quot; data-close=&quot;&lt;%= $L.hideCommentsForm %&gt;&quot; data-state=&quot;closed&quot; data-comment-id=&quot;&lt;%= comment.ID %&gt;&quot; id=&quot;comment-reply-link-&lt;%= comment.ID %&gt;&quot;&gt;&lt;%= $L.replyToComment %&gt;&lt;/div&gt; &lt;% } %&gt; &lt;% if (comment.CanRemove &amp;&amp; !isDeleted) { %&gt; &lt;div class=&quot;delete&quot; title=&quot;&lt;%= $L.remove %&gt;&quot; data-comment-id=&quot;&lt;%= comment.ID %&gt;&quot; id=&quot;delete-comment-&lt;%= comment.ID %&gt;&quot;&gt;&lt;%= $L.remove %&gt;&lt;/div&gt; &lt;% } %&gt; &lt;% if (comment.CanRestore &amp;&amp; isDeleted) { %&gt; &lt;div class=&quot;restore&quot; title=&quot;&lt;%= $L.recover %&gt;&quot; data-comment-id=&quot;&lt;%= comment.ID %&gt;&quot; id=&quot;restore-comment-&lt;%= comment.ID %&gt;&quot;&gt;&lt;%= $L.recover %&gt;&lt;/div&gt; &lt;% } %&gt; &lt;% if (comment.CanModerate) { %&gt; &lt;a class=&quot;moderate-comments&quot; id=&quot;moderate-comments-&lt;%= comment.ID %&gt;&quot; href=&quot;javascript:void(0)&quot; data-player-id=&quot;&lt;%= comment.PlayerId %&gt;&quot; data-account-login-name=&quot;s&lt;%= comment.AccountLoginName %&gt;&quot; data-account-login-type-id=&quot;&lt;%= comment.AccountLoginTypeID %&gt;&quot;&gt;&lt;%= $L.allUserMessages %&gt;&lt;/a&gt; &lt;% if (comment.AuthorName) { %&gt; &lt;a class=&quot;ban-user&quot; id=&quot;ban-user-&lt;%= comment.ID %&gt;&quot; href=&quot;javascript:void(0)&quot;&gt;&lt;%= $L.addBan %&gt;&lt;/a&gt; &lt;% } %&gt; &lt;% } %&gt; &lt;/div&gt; &lt;div class=&quot;answer&quot; style=&quot;&lt;%= canCommentDisplay %&gt;&quot; id=&quot;comment-answer-&lt;%= comment.ID %&gt;&quot;&gt; &lt;/div&gt; &lt;/div&gt; &lt;div class=&quot;children&quot; id=&quot;comment-children-&lt;%= comment.ID %&gt;&quot;&gt;&lt;/div&gt; &lt;/div&gt;</div>");
        document.write("</script>");document.write("<script type='text/template'>");
        document.write("<div id='news/news-comments-answer.tpl'>&lt;% var ban = window.user.get(&#39;commentBan&#39;); var rendered = false; var manyAuthors = user.loginTitle &amp;&amp; user.loginAvatar &amp;&amp; (user.mrAvatar || user.avatar) &amp;&amp; user.players &amp;&amp; user.players.length &gt; 0; %&gt; &lt;div class=&quot;box comments-form&quot; id=&quot;comment-box-&lt;%= id %&gt;&quot;&gt; &lt;div class=&quot;author &lt;%= user.loginType %&gt;&quot; title=&quot;&lt;%= user.mrName || user.displayName || &#39;&#39; %&gt;&quot;&gt; &lt;% if (manyAuthors) { %&gt; &lt;div class=&quot;authors&quot;&gt; &lt;% } %&gt; &lt;% if ((user.loginTitle &amp;&amp; user.loginAvatar) || (user.avatar &amp;&amp; user.displayName)) { rendered = true; %&gt; &lt;div id=&quot;&lt;%= id %&gt;-social-login&quot; class=&quot;social-login &lt;%= user.loginType %&gt; &lt;%= manyAuthors &amp;&amp; !window.user.get(&#39;usePlayer&#39;) ? &#39;selected&#39; : &#39;&#39; %&gt;&quot; onclick=&quot;window.user.set(&#39;usePlayer&#39;, false)&quot;&gt; &lt;img src=&quot;&lt;%= user.loginAvatar || user.avatar %&gt;&quot; alt=&quot;&lt;%= user.loginTitle || user.displayName %&gt;&quot; title=&quot;&lt;%= user.loginTitle || user.displayName %&gt;&quot; /&gt; &lt;/div&gt; &lt;% } else if (user.mrName &amp;&amp; user.mrAvatar) { rendered = true; %&gt; &lt;div id=&quot;&lt;%= id %&gt;-social-login&quot; class=&quot;social-login &lt;%= user.loginType %&gt; &lt;%= manyAuthors &amp;&amp; !window.user.get(&#39;usePlayer&#39;) ? &#39;selected&#39; : &#39;&#39; %&gt;&quot; onclick=&quot;window.user.set(&#39;usePlayer&#39;, false)&quot;&gt; &lt;img src=&quot;&lt;%= user.mrAvatar %&gt;&quot; alt=&quot;&lt;%= user.mrName %&gt;&quot; title=&quot;&lt;%= user.mrName %&gt;&quot; /&gt; &lt;/div&gt; &lt;% } %&gt; &lt;% if (user.players &amp;&amp; user.players.length &gt; 0 &amp;&amp; user.loginType != &#39;panzar&#39;) { rendered=true; %&gt; &lt;div id=&quot;&lt;%= id %&gt;-player-login&quot; class=&quot;player-login &lt;%= manyAuthors &amp;&amp; window.user.get(&#39;usePlayer&#39;) ? &#39;selected&#39; : &#39;&#39; %&gt;&quot; onclick=&quot;window.user.set(&#39;usePlayer&#39;, true)&quot;&gt; &lt;img src=&quot;&lt;%= user.avatar %&gt;&quot; alt=&quot;&lt;%= user.displayName || &#39;&#39; %&gt;&quot; /&gt; &lt;/div&gt; &lt;% } %&gt; &lt;% if (!rendered) { %&gt; &lt;div class=&quot;avatar unknown&quot; id=&quot;&lt;%= id %&gt;-unknown-login&quot;&gt;&lt;/div&gt; &lt;% } %&gt; &lt;% if (manyAuthors) { %&gt; &lt;/div&gt; &lt;% } %&gt; &lt;% if (user.loginType) { %&gt; &lt;a href=&quot;javascript:window.state.logout()&quot; class=&quot;js-logout&quot;&gt;&lt;%= locale.doLogout %&gt;&lt;/a&gt; &lt;% } %&gt; &lt;/div&gt; &lt;textarea maxlength=&quot;1024&quot; class=&quot;ui-corner-all textarea&quot; id=&quot;comment-reply-area-&lt;%= id %&gt;&quot; data-comment-id=&quot;&lt;%= id %&gt;&quot;&gt;&lt;/textarea&gt; &lt;/div&gt; &lt;div class=&quot;action&quot; id=&quot;comment-reply-container-&lt;%= id %&gt;&quot;&gt; &lt;span class=&quot;open-smileys&quot;&gt;&lt;/span&gt; &lt;button class=&quot;button send js-comment-button-send&quot; id=&quot;comment-send-button-&lt;%= id %&gt;&quot; data-comment-id=&quot;&lt;%= id %&gt;&quot; title=&quot;Ctrl+Enter&quot; disabled&gt;&lt;%= $L.sendComment %&gt;&lt;/button&gt; &lt;/div&gt;</div>");
        document.write("</script>");document.write("<script type='text/template'>");
        document.write("<div id='news/comments-moderation.tpl'>&lt;div class=&quot;dialog form-body&quot; style=&quot;width: 1140px&quot;&gt; &lt;div style=&quot;margin: 0 20px; overflow: auto; max-width: 1080px; position: relative; min-height: 600px; margin-top: 10px&quot; class=&quot;comments-summary&quot;&gt; &lt;/div&gt; &lt;div style=&quot;margin: 40px 0; position: relative;&quot; class=&quot;comments-moderation-actions&quot;&gt; &lt;div style=&quot;position: absolute; left: 21px; top: 4px&quot; class=&quot;selected-count&quot;&gt;&lt;/div&gt; &lt;button type=&quot;button&quot; class=&quot;ui-button button blue select-all&quot;&gt;&lt;%= $L.selectAll %&gt;&lt;/button&gt; &lt;button type=&quot;button&quot; class=&quot;ui-button button blue deselect-all&quot;&gt;&lt;%= $L.selectNone %&gt;&lt;/button&gt; &lt;button type=&quot;button&quot; class=&quot;ui-button button blue recover&quot;&gt;&lt;%= $L.recover %&gt;&lt;/button&gt; &lt;button type=&quot;button&quot; class=&quot;ui-button button red remove&quot;&gt;&lt;%= $L.remove %&gt;&lt;/button&gt; &lt;/div&gt; &lt;/div&gt;</div>");
        document.write("</script>");document.write("<script type='text/template'>");
        document.write("<div id='common/comments-form.tpl'>&lt;% var ban = window.user.get(&#39;commentBan&#39;); var rendered = false; var manyAuthors = user.loginTitle &amp;&amp; user.loginAvatar &amp;&amp; (user.mrAvatar || user.avatar) &amp;&amp; user.players &amp;&amp; user.players.length &gt; 0 &amp;&amp; user.loginType != &#39;steam&#39;; %&gt; &lt;div class=&quot;author &lt;%= user.loginType %&gt;&quot; title=&quot;&lt;%= user.mrName || user.displayName || &#39;&#39; %&gt;&quot;&gt; &lt;% if (manyAuthors) { %&gt; &lt;div class=&quot;authors&quot;&gt; &lt;% } %&gt; &lt;% if ((user.loginTitle &amp;&amp; user.loginAvatar &amp;&amp; user.loginType != &#39;steam&#39; &amp;&amp; user.loginType != &#39;arc&#39;) || (user.avatar &amp;&amp; user.displayName &amp;&amp; user.loginType != &#39;steam&#39; &amp;&amp; user.loginType != &#39;arc&#39;)) { rendered = true; %&gt; &lt;div id=&quot;&lt;%= id %&gt;-social-login&quot; class=&quot;social-login &lt;%= user.loginType %&gt;&quot;&gt; &lt;img src=&quot;&lt;%= user.loginAvatar || user.avatar %&gt;&quot; alt=&quot;&lt;%= user.loginTitle || user.displayName %&gt;&quot; title=&quot;&lt;%= user.loginTitle || user.displayName %&gt;&quot; /&gt; &lt;/div&gt; &lt;% } else if (user.mrName &amp;&amp; user.mrAvatar) { rendered = true; %&gt; &lt;div id=&quot;&lt;%= id %&gt;-social-login&quot; class=&quot;social-login &lt;%= user.loginType %&gt;&quot;&gt; &lt;img src=&quot;&lt;%= user.mrAvatar %&gt;&quot; alt=&quot;&lt;%= user.mrName %&gt;&quot; title=&quot;&lt;%= user.mrName %&gt;&quot; /&gt; &lt;/div&gt; &lt;% } %&gt; &lt;% if (user.players &amp;&amp; user.players.length &gt; 0 &amp;&amp; user.loginType != &#39;panzar&#39;) { rendered=true; %&gt; &lt;div id=&quot;&lt;%= id %&gt;-player-login&quot; class=&quot;player-login&quot;&gt; &lt;img src=&quot;&lt;%= user.avatar %&gt;&quot; alt=&quot;&lt;%= user.displayName || &#39;&#39; %&gt;&quot; /&gt; &lt;/div&gt; &lt;% } %&gt; &lt;% if (!rendered) { %&gt; &lt;div class=&quot;avatar unknown&quot; id=&quot;&lt;%= id %&gt;-unknown-login&quot;&gt;&lt;/div&gt; &lt;% } %&gt; &lt;% if (manyAuthors) { %&gt; &lt;/div&gt; &lt;% } %&gt; &lt;% if (user.loginType) { %&gt; &lt;a href=&quot;javascript:window.state.logout()&quot; class=&quot;js-logout&quot;&gt;&lt;%= locale.doLogout %&gt;&lt;/a&gt; &lt;% } %&gt; &lt;/div&gt; &lt;div class=&quot;message&quot;&gt; &lt;% if (ban) { %&gt; &lt;div class=&quot;ban-message&quot;&gt; &lt;%= locale.bannedWarning.format(ban.reason || locale.bannedNoReason) %&gt; &lt;% if (ban.till) { %&gt; &lt;br/&gt; &lt;%= locale.bannedDuration.format(moment(ban.till).fromNow()) %&gt; &lt;% } %&gt; &lt;/div&gt; &lt;% } else { %&gt; &lt;textarea maxlength=&quot;1024&quot; class=&quot;ui-corner-all textarea&quot; id=&quot;&lt;%= id %&gt;-message-area&quot;&gt;&lt;/textarea&gt; &lt;% } %&gt; &lt;/div&gt; &lt;% if (!ban) { %&gt; &lt;div class=&quot;action&quot;&gt; &lt;div class=&quot;auth-container&quot;&gt; &lt;/div&gt; &lt;span class=&quot;open-smileys&quot; id=&quot;&lt;%= id %&gt;-open-smileys&quot;&gt;&lt;/span&gt; &lt;button class=&quot;send button js-comment-button-send&quot; title=&quot;Ctrl+Enter&quot; disabled id=&quot;&lt;%= id %&gt;-send-comment-button&quot;&gt;&lt;%= locale.sendComment %&gt;&lt;/button&gt; &lt;/div&gt; &lt;% } %&gt;</div>");
        document.write("</script>");document.write("<script type='text/template'>");
        document.write("<div id='common/auth-buttons.tpl'>&lt;% var sn = window.socialNetworks.toJSON(); %&gt; &lt;% if (sn.gpEnabled || sn.vkEnabled || sn.fbEnabled || sn.twEnabled) { %&gt; &lt;div class=&quot;external-auth-welcome&quot;&gt; &lt;%= $L.socialNetworksAuthorize %&gt; &lt;/div&gt; &lt;div class=&quot;external-auth&quot;&gt; &lt;% if (sn.gpEnabled) { %&gt; &lt;span class=&quot;sn-button square gp js-gp-comment-login &lt;%= sn.gpLoaded ? &#39;&#39; : &#39;disabled&#39; %&gt;&quot; title=&quot;Google+&quot; id=&quot;&lt;%= id %&gt;-sn-gp&quot;&gt;&amp;nbsp;&lt;/span&gt; &lt;% } %&gt; &lt;% if (sn.vkEnabled) { %&gt; &lt;span class=&quot;sn-button square vk js-vk-comment-login &lt;%= sn.vkLoaded ? &#39;&#39; : &#39;disabled&#39; %&gt;&quot; title=&quot;VKontakte&quot; id=&quot;&lt;%= id %&gt;-sn-vk&quot;&gt;&amp;nbsp;&lt;/span&gt; &lt;% } %&gt; &lt;% if (sn.fbEnabled) { %&gt; &lt;span class=&quot;sn-button square fb js-fb-comment-login &lt;%= sn.fbLoaded ? &#39;&#39; : &#39;disabled&#39; %&gt;&quot; title=&quot;Facebook&quot; id=&quot;&lt;%= id %&gt;-sn-fb&quot;&gt;&amp;nbsp;&lt;/span&gt; &lt;% } %&gt; &lt;% if (sn.twEnabled) { %&gt; &lt;span class=&quot;sn-button square tw js-tw-comment-login &lt;%= sn.twLoaded ? &#39;&#39; : &#39;disabled&#39; %&gt;&quot; title=&quot;Twitter&quot; id=&quot;&lt;%= id %&gt;-sn-tw&quot;&gt;&amp;nbsp;&lt;/span&gt; &lt;% } %&gt; &lt;/div&gt; &lt;% } %&gt;</div>");
        document.write("</script>");document.write("<script type='text/template'>");
        document.write("<div id='common/comment-ban.tpl'>&lt;div id=&quot;&lt;%=id%&gt;&quot; title=&quot;&lt;%= $L.banCreation %&gt;&quot; class=&quot;chat-ban-dialog&quot;&gt; &lt;div class=&quot;dialog-message-wrapper&quot;&gt;&lt;div id=&quot;&lt;%=id%&gt;-message&quot; class=&quot;dialog-message&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;/div&gt; &lt;div class=&quot;dialog form-body&quot;&gt; &lt;div class=&quot;moderate-user-info&quot;&gt;&lt;span class=&quot;avatar unit-class-pic &lt;%=avatar%&gt;&quot; style=&quot;&lt;%= pic ? &quot;background-image: url(&quot; + pic + &quot;); background-size: 50px;&quot; : &quot;&quot; %&gt;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;name&quot;&gt;&lt;%=name%&gt;&lt;/span&gt;&lt;/div&gt; &lt;div class=&quot;input-wrapper&quot;&gt; &lt;select name=&quot;period&quot; id=&quot;&lt;%=id%&gt;-period&quot; class=&quot;input ui-corner-all grey-text&quot;&gt; &lt;option value=&quot;0&quot; selected=&quot;selected&quot;&gt;&lt;%= $L.banPeriodPrompt %&gt;&lt;/option&gt; &lt;option value=&quot;3&quot;&gt;&lt;%= moment.duration(3, &quot;hours&quot;).humanize() %&gt;&lt;/option&gt; &lt;option value=&quot;24&quot;&gt;&lt;%= moment.duration(24, &quot;hours&quot;).humanize() %&gt;&lt;/option&gt; &lt;option value=&quot;168&quot;&gt;&lt;%= moment.duration(168, &quot;hours&quot;).humanize() %&gt;&lt;/option&gt; &lt;option value=&quot;336&quot;&gt;&lt;%= moment.duration(336, &quot;hours&quot;).humanize() %&gt;&lt;/option&gt; &lt;option value=&quot;-1&quot;&gt;&lt;%= $L.banPeriodOther %&gt;&lt;/option&gt; &lt;/select&gt; &lt;div id=&quot;&lt;%=id%&gt;-period-error-message&quot; class=&quot;error-message&quot;&gt;&lt;/div&gt; &lt;/div&gt; &lt;div class=&quot;input-wrapper&quot; style=&quot;display:none&quot; id=&quot;&lt;%=id%&gt;-custom-period-wrapper&quot;&gt; &lt;input name=&quot;customperiod&quot; id=&quot;&lt;%=id%&gt;-customperiod&quot; class=&quot;input ui-corner-all&quot; maxlength=&quot;6&quot; placeholder=&quot;&lt;%= $L.banPeriodOtherPlaceholder %&gt;&quot;/&gt; &lt;div id=&quot;&lt;%=id%&gt;-custom-period-message&quot; class=&quot;error-message&quot;&gt;&lt;/div&gt; &lt;/div&gt; &lt;div class=&quot;input-wrapper&quot; style=&quot;height: 50px;&quot; id=&quot;&lt;%= id %&gt;-target-selector&quot;&gt; &lt;div style=&quot;text-align: left; height: 20px; margin: 0 80px;&quot;&gt; &lt;input type=&quot;checkbox&quot; id=&quot;&lt;%= id %&gt;-banaccount&quot; name=&quot;&lt;%= id %&gt;-banaccount&quot; /&gt; &lt;label for=&quot;&lt;%= id %&gt;-banaccount&quot;&gt;Забанить аккаунт&lt;/label&gt; &lt;/div&gt; &lt;div style=&quot;text-align: left; height: 20px; margin: 0 80px;&quot;&gt; &lt;input type=&quot;checkbox&quot; id=&quot;&lt;%= id %&gt;-banlogin&quot; name=&quot;&lt;%= id %&gt;-banlogin&quot; /&gt; &lt;label for=&quot;&lt;%= id %&gt;-banlogin&quot;&gt;Забанить логин&lt;/label&gt; &lt;/div&gt; &lt;/div&gt; &lt;div class=&quot;input-wrapper&quot;&gt; &lt;textarea type=&quot;text&quot; name=&quot;note&quot; id=&quot;&lt;%=id%&gt;-note&quot; class=&quot;textarea fixed ui-corner-all gold-text&quot; tabindex=&quot;102&quot; maxlength=&quot;1024&quot; rows=&quot;5&quot; placeholder=&quot;&lt;%= $L.banNote %&gt;&quot;&gt;&lt;/textarea&gt; &lt;div id=&quot;&lt;%=id%&gt;-note-error-message&quot; class=&quot;error-message&quot;&gt;&lt;/div&gt; &lt;/div&gt; &lt;div class=&quot;dialog-button-container&quot;&gt; &lt;button type=&quot;button&quot; id=&quot;&lt;%=id%&gt;-create-button&quot; class=&quot;ui-button button red&quot;&gt;OK&lt;/button&gt; &lt;button type=&quot;button&quot; id=&quot;&lt;%=id%&gt;-close-button&quot; class=&quot;ui-button button blue&quot;&gt;&lt;%= $L.cancel %&gt;&lt;/button&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt;</div>");
        document.write("</script>");