/* This includes 11 files: build/evo_generic.bmin.js, src/evo_modal_window.js, src/evo_images.js, src/evo_user_crop.js, src/evo_user_report.js, src/evo_user_contact_groups.js, src/evo_rest_api.js, src/evo_item_flag.js, src/evo_links.js, src/evo_forms.js, ajax.js */ function evo_prevent_key_enter(e){jQuery(e).keypress(function(e){if(13==e.keyCode)return!1})}function link_attachment_window(e,t,n,o,i,r){openModalWindow('',"90%","80%",!0,evo_link_attachment_window_config.window_title,"",!0);var a={action:"link_attachment",link_owner_type:e,link_owner_ID:t,crumb_link:evo_link_attachment_window_config.crumb_link,root:void 0===n?"":n,path:void 0===o?"":o,fm_highlight:void 0===i?"":i,prefix:void 0===r?"":r};return jQuery.ajax({type:"POST",url:htsrv_url+"async.php",data:a,success:function(e){openModalWindow(e,"90%","80%",!0,evo_link_attachment_window_config.window_title,"")}}),!1}"undefined"==typeof evoFadeBg&&(evoFadeBg=function evoFadeBg(selector,bgs,options){var origBg=jQuery(selector).css("backgroundColor"),speed=options&&options.speed||'"slow"',toEval="jQuery(selector).animate({ backgroundColor: ";for(e in bgs)"string"==typeof bgs[e]&&(toEval+='"'+bgs[e]+'"}, '+speed+" ).animate({ backgroundColor: ");toEval+="origBg }, "+speed+', "", function(){jQuery( this ).css( "backgroundColor", "" );});',eval(toEval)}),"undefined"==typeof evoFadeSuccess&&(evoFadeSuccess=function(e){evoFadeBg(e,new Array("#ddff00","#bbff00"))}),jQuery(document).ready(function(){if("undefined"!=typeof evo_init_scroll_to_top&&(window.offset=400,offset_opacity=1200,scroll_top_duration=700,$slide_top=jQuery(".slide-top"),jQuery(window).scroll(function(){jQuery(this).scrollTop()>offset?$slide_top.addClass("slide-top-visible"):$slide_top.removeClass("slide-top-visible")}),$slide_top.on("click",function(e){e.preventDefault(),jQuery("body, html").animate({scrollTop:0},scroll_top_duration)})),"undefined"!=typeof evo_init_datepicker&&jQuery(evo_init_datepicker.selector).datepicker(evo_init_datepicker.config),"undefined"!=typeof evo_link_position_config&&(window.displayInlineReminder=evo_link_position_config.display_inline_reminder,window.deferInlineReminder=evo_link_position_config.defer_inline_reminder,jQuery(document).on("change",evo_link_position_config.selector,{url:evo_link_position_config.url,crumb:evo_link_position_config.crumb},function(e){"inline"==this.value&&window.displayInlineReminder&&!window.deferInlineReminder&&(alert(evo_link_position_config.alert_msg),window.displayInlineReminder=!1),evo_link_change_position(this,e.data.url,e.data.crumb)})),"undefined"!=typeof evo_itemform_renderers__click&&jQuery("#itemform_renderers .dropdown-menu").on("click",function(e){e.stopPropagation()}),"undefined"!=typeof evo_commentform_renderers__click&&jQuery("#commentform_renderers .dropdown-menu").on("click",function(e){e.stopPropagation()}),"undefined"!=typeof evo_init_comment_reply_config&&(jQuery(document).on("click","a.comment_reply",function(){var e=jQuery(this).attr("rel");jQuery("a.comment_reply_current").remove(),jQuery("input[name=reply_ID]").remove(),jQuery("a.comment_reply").removeClass("active").html(evo_init_comment_reply_config.reply_button_msg);var t=''+evo_init_comment_reply_config.link_back_specific_comment_msg+"",n='';return jQuery("#evo_comment_form_id_"+evo_init_comment_reply_config.item_ID).prepend(t+n),jQuery(this).addClass("active").html(evo_init_comment_reply_config.link_back_current_comment_msg),jQuery(window).scrollTop(jQuery("#evo_comment_form_id_"+evo_init_comment_reply_config.item_ID).offset().top-30),!1}),jQuery(document).on("click","a.comment_reply_current",function(){var e=jQuery(this).attr("rel");return jQuery(window).scrollTop(jQuery("a#c"+e).offset().top-10),!1})),"undefined"!=typeof evo_disp_download_delay_config&&(window.b2evo_download_timer=evo_disp_download_delay_config,window.downloadInterval=setInterval(function(){jQuery("#download_timer").html(window.b2evo_download_timer),0==window.b2evo_download_timer&&(clearInterval(window.downloadInterval),jQuery("#download_help_url").show()),window.b2evo_download_timer--},1e3),jQuery("#download_timer_js").show()),"undefined"!=typeof evo_skin_bootstrap_forum__quote_button_click&&jQuery(".quote_button").click(function(){var e=jQuery("form[id^=evo_comment_form_id_]");return 0==e.length||(e.attr("action",jQuery(this).attr("href")),e.submit(),!1)}),"undefined"!=typeof evo_ajax_form_config)for(var t=Object.values(evo_ajax_form_config),n=0;n'+n+": "+e.responseText+""),window["ajax_form_loading_number_"+i.form_number]<3&&setTimeout(function(){jQuery(".loader_ajax_form",o).next().remove(),window[r]()},1e3)}})};var e="check_and_show_"+i.form_number;window[e]=function(e){if(!window["request_sent_"+i.form_number]){var t=null!=typeof e&&e;(t=t||jQuery(window).scrollTop()>=window["ajax_form_offset_"+i.form_number]-jQuery(window).height()-20)&&(window["request_sent_"+i.form_number]=!0,window[r]())}},jQuery(window).scroll(function(){window[e]()}),jQuery(window).resize(function(){window[e]()}),window[e](i.load_ajax_form_on_page_load)}();if("undefined"!=typeof evo_thread_form_config&&(window.check_multiple_recipients=function(){1"+e[evo_thread_form_config.username_display]+''},evo_thread_form_config.token_input_config.resultsFormatter=function(e){var t=e.login;return null!=e.fullname&&void 0!==e.fullname&&(t+="
"+e.fullname),"
  • "+e.avatar+"
    "+t+"
  • "},evo_thread_form_config.token_input_config.onAdd=function(){window.check_multiple_recipients()},evo_thread_form_config.token_input_config.onDelete=function(){window.check_multiple_recipients()},evo_thread_form_config.token_input_config.onReady=function(){evo_thread_form_config.thrd_recipients_has_error&&jQuery(".token-input-list-facebook").addClass("token-input-list-error"),jQuery("#thrd_recipients").removeAttr("required")},jQuery("#thrd_recipients").tokenInput(restapi_url+"users/recipients",evo_thread_form_config.token_input_config),window.check_multiple_recipients()),"undefined"!=typeof evo_comment_form_preview_button_config&&jQuery("input[type=submit].preview.btn-info").val(evo_comment_form_preview_button_config.button_value),"undefined"!=typeof evo_user_func__callback_filter_userlist&&(jQuery("#country").change(function(){jQuery(this),jQuery.ajax({type:"POST",url:htsrv_url+"anon_async.php",data:"action=get_regions_option_list&ctry_id="+jQuery(this).val(),success:function(e){jQuery("#region").html(ajax_debug_clear(e)),1'+e+"")},window.field_type_error_clear=function(){jQuery("select#new_field_type").removeClass("field_error").next().find("span.field_error").remove()},jQuery("span[rel^=add_ufdf_]").show(),jQuery(document).on("click","span[rel^=add_ufdf_]",function(){var o=jQuery(this),e=o.attr("rel").replace(/^add_ufdf_(\d+)$/,"$1"),t=i.params;jQuery.ajax({type:"POST",url:htsrv_url+"anon_async.php",data:"action=get_user_new_field&user_id="+i.user_ID+"&field_id="+e+t,success:function(e){if("[0]"==(e=ajax_debug_clear(e)))window.field_type_error(i.msg_field_already_added);else{if(e=window.replace_form_params(e),0==parseInt(e.replace(/^\[(\d+)\](.*)/,"$1")))return window.field_type_error(i.msg_field_already_added),!1;var t=o.parent().parent().parent();t.after(e.replace(/^\[\d+\](.*)/,"$1")).next().find("span[rel^=add_ufdf_]").show();var n=t.next().find("input[id^=uf_add_]");"on"==n.attr("autocomplete")&&bind_autocomplete(n),n.focus()}}})}),jQuery(document).on("mouseover","span[rel^=add_ufdf_]",function(){jQuery(this).parent().prev().focus(),jQuery(this).css("z-index",jQuery(this).parent().prev().css("z-index"))}),jQuery(document).on("mouseout","span[rel^=add_ufdf_]",function(){var e=jQuery(this).parent().prev();if(e.is(":focus"))return!1;e.blur()});var n='[id^="ffield_organizations_"]',o=i.max_organizations,r=0;jQuery(document).on("click","span.add_org",function(){var t=jQuery(this),e=i.params;e+="undefined"!=typeof remove_obj_after_org_adding?"&first_org=1":"",jQuery.ajax({type:"POST",url:htsrv_url+"anon_async.php",data:"action=get_user_new_org"+e,success:function(e){e=window.replace_form_params(ajax_debug_clear(e),"ffield_organizations_"+r),t.closest(n).after(e),"undefined"!=typeof remove_obj_after_org_adding&&(remove_obj_after_org_adding.remove(),delete remove_obj_after_org_adding),jQuery(n).length>=o&&jQuery("span.add_org").hide(),1').submit()}),"undefined"!=typeof evo_status_dropdown_button_config){var i=Object.values(evo_status_dropdown_button_config);for(n=0;n
    '),jQuery("head").append(""),jQuery("#p-container").css("width",e.outerWidth()-2);var n=parseInt(e.css("margin-left"));0]+$/g;t.val().length&&null==t.val().match(r)||n.val().length&&null==n.val().match(r)?(i=u.msg_illegal_char,t[0].setCustomValidity(t.val().match(r)?"":i),n[0].setCustomValidity(n.val().match(r)?"":i),o.html(u.error_icon+" "+i)):0=r.user_minpwdlen?e.hide():e.show());var t=jQuery(".pass_check_diff");t.length&&jQuery("#edited_user_pass1").val()==jQuery(" #edited_user_pass2").val()&&t.hide();var n=jQuery(this).parent().find(".pass_check_new");n.length&&(""==jQuery(this).val()?n.show():n.hide());var o=jQuery(this).parent().find(".pass_check_twice");o.length&&(""==jQuery(this).val()?o.show():o.hide());var i=jQuery(this).parent().find(".pass_check_warning");jQuery.trim(jQuery(this).val())!=jQuery(this).val()?i.length||jQuery(this).parent().append(''+r.msg_pwd_trim_warning+""):i.length&&i.remove(),user_pass_clear_style("#edited_user_pass1, #edited_user_pass2")})}}),jQuery(document).ready(function(){if("undefined"!=typeof evo_init_login_validator_config){var e=evo_init_login_validator_config,n=e.login_icon_load,o=(e.login_icon_available,e.login_icon_exists),i=e.login_icon_error,r=e.login_text_empty,a=(e.login_text_available,e.login_text_exists),s=jQuery("#register_form input#"+e.login_id);s.change(function(){var t=jQuery("#login_status_msg");""==jQuery(this).val()?(jQuery("#login_status").html(""),t.html(r).attr("class","notes")):(jQuery("#login_status").html(n),jQuery.ajax({type:"POST",url:e.login_htsrv_url+"anon_async.php",data:"action=validate_login&login="+jQuery(this).val(),success:function(e){"exists"==(e=ajax_debug_clear(e))?(jQuery("#login_status").html(""),t.html(o+" "+a).attr("class","red"),s[0].setCustomValidity(a)):"available"==e?(jQuery("#login_status").html(""),t.html(""),s[0].setCustomValidity("")):(jQuery("#login_status").html(""),t.html(i.replace("$error_msg$",e.replace(/(<([^>]+)>)/gi,""))+" "+e).attr("class","red"),s[0].setCustomValidity(e.replace(/(<([^>]+)>)/gi,"")))}}))})}}),jQuery(document).ready(function(){"undefined"!=typeof evo_skin_bootstrap_forums__post_list_header&&jQuery("#evo_workflow_status_filter").change(function(){var e=location.href.replace(/([\?&])((status|redir)=[^&]*(&|$))+/,"$1"),t=jQuery(this).val();""!==t&&(e+=(-1==e.indexOf("?")?"?":"&")+"status="+t+"&redir=no"),location.href=e.replace("?&","?").replace(/\?$/,"")})}),jQuery(document).ready(function(){"undefined"!=typeof evo_autocomplete_login_config&&(jQuery("input.autocomplete_login").on("added",function(){jQuery("input.autocomplete_login").each(function(){if(!jQuery(this).hasClass("tt-input")&&!jQuery(this).hasClass("tt-hint")){var t="";t=jQuery(this).hasClass("only_assignees")?restapi_url+evo_autocomplete_login_config.url:restapi_url+"users/logins",jQuery(this).data("status")&&(t+="&status="+jQuery(this).data("status")),jQuery(this).typeahead(null,{displayKey:"login",source:function(e,o){jQuery.ajax({type:"GET",dataType:"JSON",url:t,data:{q:e},success:function(e){var t=new Array;for(var n in e.list)t.push({login:e.list[n]});o(t)}})}})}})}),jQuery("input.autocomplete_login").trigger("added"),evo_prevent_key_enter(evo_autocomplete_login_config.selector))}),jQuery(document).ready(function(){"undefined"!=typeof evo_widget_poll_initialize&&(jQuery('.evo_poll__selector input[type="checkbox"]').on("click",function(){var e=jQuery(this).closest(".evo_poll__table"),t=jQuery(".evo_poll__selector input:checked",e).length>=e.data("max-answers");jQuery(".evo_poll__selector input[type=checkbox]:not(:checked)",e).prop("disabled",t)}),jQuery(".evo_poll__table").each(function(){var e=jQuery(this);e.width()>e.parent().width()&&(jQuery(".evo_poll__title",e).css("white-space","normal"),jQuery(".evo_poll__title label",e).css({width:Math.floor(e.parent().width()/2)+"px","word-wrap":"break-word"}))}))}),jQuery(document).ready(function(){if("undefined"!=typeof evo_init_checklist_lines_config){var _=evo_init_checklist_lines_config;window.toggle_add_checklist_line_input=function(e,t){var n=jQuery(".add_checklist_line_input",e),o=jQuery(".checklist_add_btn"),i=jQuery(".checklist_close_btn");null==t&&(t=0===jQuery(".add_checklist_line_input",e).is(":visible").length),1==t?(o.html(_.button_label_add),n.show(),i.show(),n.focus()):0==t&&(o.html(_.button_label_add_an_item),n.hide(),i.hide())},window.update_checklist_line=function(r,e){jQuery.ajax({type:"POST",url:htsrv_url+"action.php",data:{mname:"collections",action:"checklist_line",item_ID:_.item_ID,check_ID:e,check_label:r.val(),check_checked:r.checked,crumb_collections_checklist_line:_.crumb_checklist_line},dataType:"json",success:function(e){if("add"==e.status){var t=r.closest("div.checklist_wrapper"),n=jQuery(".checklist_lines",t),o=_.checklist_line_template;if(o=(o=o.replace(/\$checklist_line_ID\$/g,e.check_ID)).replace(/\$checklist_line_label\$/g,e.check_label),o=jQuery(o),n.append(o),window.dragndrop_checklist_lines(o),r.hasClass("add_checklist_line_input")){r.val("");var i=r.get(0);i.setAttribute("style","height:"+i.scrollHeight+"px;overflow-y:hidden;"),i.style.height="auto",i.style.height=i.scrollHeight+"px",r.focus()}}else"update"==e.status&&r.closest(".checklist_line_label").html(e.check_label)},error:function(){console.error("Add/update checklist line request error.")}})},window.toggle_checklist_line=function(e,t){jQuery.ajax({type:"POST",url:htsrv_url+"action.php",data:{mname:"collections",action:"checklist_line",item_action:"toggle_check",item_ID:_.item_ID,check_ID:t,check_checked:jQuery(e).is(":checked"),crumb_collections_checklist_line:_.crumb_checklist_line},dataType:"json",success:function(e){},error:function(){console.error("Add/update checklist line request error.")}})},window.delete_checklist_line=function(t,e){jQuery.ajax({type:"POST",url:htsrv_url+"action.php",data:{mname:"collections",action:"checklist_line",item_action:"delete",item_ID:_.item_ID,check_ID:e,crumb_collections_checklist_line:_.crumb_checklist_line},dataType:"json",success:function(e){"delete"==e.status&&jQuery(t).closest(".checklist_line").remove()},error:function(){console.error("Delete checklist line request error.")}})},window.reorder_checklist_lines=function(e){var n=[];jQuery(".checklist_line",e).each(function(e,t){n.push(jQuery("input",t).val())}),jQuery.ajax({type:"POST",url:htsrv_url+"action.php",data:{mname:"collections",action:"checklist_line",item_action:"reorder",item_ID:_.item_ID,item_order:n,crumb_collections_checklist_line:_.crumb_checklist_line},dataType:"json",success:function(e){},error:function(){console.error("Delete checklist line request error.")}})},window.dragndrop_checklist_lines=function(e){jQuery(e).draggable({axis:"y",helper:"original",scroll:!0,scrollSensitivity:100,zIndex:999,opacity:.8,cursor:"move",cancel:"input,textarea,button,select,option,a",stop:function(){jQuery(this).removeAttr("style")}}).addClass("draggable_checklist_line"),jQuery(e).droppable({accept:".draggable_checklist_line",hoverClass:"droppable-hover",greedy:!0,tolerance:"pointer",delay:1e3,drop:function(e,t){var n=jQuery(this).closest(".checklist_lines");jQuery(this).after(t.draggable),window.reorder_checklist_lines(n)}})},jQuery(".checklist_add_btn").on("click",function(){var e=jQuery(this).closest("div.checklist_wrapper"),t=jQuery("textarea.add_checklist_line_input",e);t.is(":visible")?window.update_checklist_line(t):window.toggle_add_checklist_line_input(e,!0)}),jQuery(".checklist_close_btn").on("click",function(){var e=jQuery(this).closest("div.checklist_wrapper");window.toggle_add_checklist_line_input(e,!1)}),jQuery(document).on("click",".checklist_lines label .checklist_line_label",function(e){var t=jQuery(this),n=t.html(),o=t.closest(".checklist_line"),i=jQuery('input[type="checkbox"]',o),r=o.closest("div.checklist_wrapper");if(e.preventDefault(),0===t.has("textarea.checklist_line_input").length){window.toggle_add_checklist_line_input(r,!1);var a=jQuery(_.checklist_line_input_template),s=jQuery("textarea.checklist_line_input",a);s.attr("id","checklist_line_input_"+i.val()),s.attr("name","checklist_line_input_"+i.val()),s.val(n),s.data("checkId",i.val()),s.data("content",n),t.html(s);var l=s.get(0);l.setAttribute("style","height:"+l.scrollHeight+"px;overflow-y:hidden;"),l.style.height="auto",l.style.height=l.scrollHeight+"px",s.focus()}}),jQuery(document).on("blur",".checklist_lines .checklist_line_label .checklist_line_input",function(e){var t=jQuery(this),n=t.data("content"),o=t.closest(".checklist_line_label");setTimeout(function(){o.html(n)},10)}),jQuery(document).on("keypress",".checklist_line_input",function(e){var t=jQuery(this);13==e.keyCode&&(e.preventDefault(),t.val().length&&window.update_checklist_line(t,t.data("checkId")))}),jQuery(document).on("change",'.checklist_lines .checklist_line input[type="checkbox"]',function(e){var t=jQuery(this);window.toggle_checklist_line(t,t.val())}),jQuery(document).on("click",".checklist_lines .checklist_line .checklist_line_delete",function(e){var t=jQuery(this),n=t.closest(".checklist_line"),o=jQuery('input[type="checkbox"]',n),i=n.closest("div.checklist_wrapper");return window.toggle_add_checklist_line_input(i,!1),window.delete_checklist_line(t,o.val()),!1}),jQuery(document).on("input","textarea.checklist_line_input",function(e){this.style.height="auto",this.style.height=this.scrollHeight+"px"}),window.dragndrop_checklist_lines(".checklist_lines .checklist_line, .checklist_droparea")}}),jQuery(document).ready(function(){if("undefined"!=typeof evo_plugin_auto_anchors_settings){jQuery("h1, h2, h3, h4, h5, h6").each(function(){if(jQuery(this).attr("id")&&jQuery(this).hasClass("evo_auto_anchor_header")){var e=location.href.replace(/#.+$/,"")+"#"+jQuery(this).attr("id");jQuery(this).append(' ')}});var t=jQuery("#evo_toolbar").length?jQuery("#evo_toolbar").height():0;jQuery(".evo_auto_anchor_link").on("click",function(){var e=jQuery(this).attr("href");return jQuery("html,body").animate({scrollTop:jQuery(this).offset().top-t-evo_plugin_auto_anchors_settings.offset_scroll},function(){window.history.pushState("","",e)}),!1})}}),jQuery(document).ready(function(){if("undefined"!=typeof evo_init_custom_tags_toolbar_config)for(var e=Object.values(evo_init_custom_tags_toolbar_config),t=0;t'},window[i+"tagAddTag"]=function(e){""!=window[i+"tagButtons"][e].tagEnd&&(window[i+"tagOpenTags"][window[i+"tagOpenTags"].length]=e,document.getElementById(window[i+"tagButtons"][e].id).style.fontWeight="bold")},window[i+"tagRemoveTag"]=function(e){for(n=0,o=window[i+"tagOpenTags"].length;n',e+=r.toolbar_group_after,jQuery("."+i+"toolbar").html(e)},window[i+"tagInsertTag"]=function(e,t){var n=b2evo_Callbacks.trigger_callback("get_selected_text_for_"+e.id),o=!1;null!=n&&0!=n||(document.selection?(e.focus(),n=document.selection.createRange().text,o=!0):!e.selectionStart&&"0"!=e.selectionStart||(n=e.selectionStart!=e.selectionEnd)),n?textarea_wrap_selection(e,window[i+"tagButtons"][t].tagStart,window[i+"tagButtons"][t].tagEnd,0):window[i+"tagCheckOpenTags"](t)&&""!=window[i+"tagButtons"][t].tagEnd?(textarea_wrap_selection(e,"",window[i+"tagButtons"][t].tagEnd,0),window[i+"tagRemoveTag"](t)):(textarea_wrap_selection(e,window[i+"tagButtons"][t].tagStart,"",0),window[i+"tagAddTag"](t)),o&&e.focus()},window[i+"tagToolbar"]()}()}}),jQuery(document).ready(function(){if("undefined"!=typeof evo_plugin_table_contents_settings){var n=jQuery("#evo_toolbar").length?jQuery("#evo_toolbar").height():0;jQuery(".evo_plugin__table_of_contents a").on("click",function(){var e=jQuery("#"+jQuery(this).data("anchor"));if(0==e.length||!e.prop("tagName").match(/^h[1-6]$/i))return!0;var t=jQuery(this).attr("href");return jQuery("html,body").animate({scrollTop:e.offset().top-n-evo_plugin_table_contents_settings.offset_scroll},function(){window.history.pushState("","",t)}),!1})}}),jQuery(document).ready(function(){if(window.evo_init_shortlinks_toolbar=function(n){window.shortlinks_toolbar=function(e){var t=n.toolbar_title_before+e+n.toolbar_title_after+n.toolbar_group_before+''+n.toolbar_group_after;jQuery("."+n.js_prefix+n.plugin_code+"_toolbar").html(t)},window.shortlinks_toolbar(n.toolbar_title)},"undefined"!=typeof evo_init_shortlinks_toolbar_config){for(var e=Object.values(evo_init_shortlinks_toolbar_config),t=0;t'}n+=r.toolbar_group_after,jQuery("."+t+r.plugin_code+"_toolbar").html(n)},window.insert_inline=function(){switch(a){case"Item":if(!o&&!i)return alert(evo_js_lang_alert_before_insert_item),!1;break;case"Comment":if(!o)return alert(evo_js_lang_alert_before_insert_comment),!1;break;case"EmailCampaign":if(!o)return alert(evo_js_lang_alert_before_insert_emailcampaign),!1;break;case"Message":if(!o&&!i)return alert(evo_js_lang_alert_before_insert_message),!1}"undefined"!=typeof tinyMCE&&void 0!==tinyMCE.activeEditor&&tinyMCE.activeEditor?(tinyMCE.execCommand("mceFocus",!1,tinyMCE.activeEditor.id),tinyMCE.execCommand("evo_view_edit_inline",!1,tinyMCE.activeEditor.id)):(openModalWindow('',"80%","",!0,evo_js_lang_select_image_insert,"",!0),jQuery.ajax({type:"POST",url:r.insert_inline_url,success:function(e){var t,n;n=null==i?(t=a,o):(t="temporary",i),openModalWindow(e,"90%","80%",!0,"Select image","","","","","",function(){evo_link_refresh_list(t,n,"refresh"),evo_link_fix_wrapper_height()})}}))},window.inline_toolbar(r.toolbar_title,r.prefix)},"undefined"!=typeof evo_init_inlines_toolbar_config){for(var e=Object.values(evo_init_inlines_toolbar_config),t=0;t ","","",-1,"last"),window[i.js_prefix+"markdown_btns"][window[i.js_prefix+"markdown_btns"].length]=new markdown_btn(i.js_prefix+"mrkdwn_codespan","codespan",i.btn_title_codespan,"`","`","",-1),window[i.js_prefix+"markdown_btns"][window[i.js_prefix+"markdown_btns"].length]=new markdown_btn(i.js_prefix+"mrkdwn_preblock","preblock",i.btn_title_preblock,"\n\t","","",-1,"last"),window[i.js_prefix+"markdown_btns"][window[i.js_prefix+"markdown_btns"].length]=new markdown_btn(i.js_prefix+"mrkdwn_codeblock","codeblock",i.btn_title_codeblock,"\n```\n","\n```\n","",-1,"last"),window[i.js_prefix+"markdown_btns"][window[i.js_prefix+"markdown_btns"].length]=new markdown_btn(i.js_prefix+"mrkdwn_hr","hr",i.btn_title_hr,"\n---\n","","",-1),window[i.js_prefix+"markdown_btns"][window[i.js_prefix+"markdown_btns"].length]=new markdown_btn(i.js_prefix+"mrkdwn_br","
    ",i.btn_title_br," \n","","",-1),window[i.js_prefix+"markdown_get_btn"]=function(e,t){var n="";return e.id==window[i.js_prefix+"mrkdwn_img"]?n+='':e.id==i.js_prefix+"mrkdwn_link"?n+='':n+='',n},window[i.js_prefix+"markdown_add_tag"]=function(e){""!=window[i.js_prefix+"markdown_btns"][e].tag_end&&(window[i.js_prefix+"markdown_open_tags"][window[i.js_prefix+"markdown_open_tags"].length]=e,document.getElementById(window[i.js_prefix+"markdown_btns"][e].id).value="/"+document.getElementById(window[i.js_prefix+"markdown_btns"][e].id).value)},window[i.js_prefix+"markdown_remove_tag"]=function(e){for(n=0;n'+i.toolbar_group_after,jQuery("."+i.js_prefix+i.plugin_code+"_toolbar").html(t)},window[i.js_prefix+"markdown_insert_tag"]=function(e,t){var n=b2evo_Callbacks.trigger_callback("get_selected_text_for_"+e.id),o=!1;null==n&&(document.selection?(e.focus(),n=document.selection.createRange().text,o=!0):!e.selectionStart&&"0"!=e.selectionStart||(n=e.selectionStart!=e.selectionEnd)),n?textarea_wrap_selection(e,window[i.js_prefix+"markdown_btns"][t].tag_start,window[i.js_prefix+"markdown_btns"][t].tag_end,0):window[i.js_prefix+"markdown_check_open_tags"](t)&&""!=window[i.js_prefix+"markdown_btns"][t].tag_end?(textarea_wrap_selection(e,"",window[i.js_prefix+"markdown_btns"][t].tag_end,0),window[i.js_prefix+"markdown_remove_tag"](t)):(textarea_wrap_selection(e,window[i.js_prefix+"markdown_btns"][t].tag_start,"",0),window[i.js_prefix+"markdown_add_tag"](t)),o&&e.focus()},window[i.js_prefix+"markdown_insert_lnkimg"]=function(e,t){var n=prompt(i.prompt_url+":","http://");if(n){n="["+prompt(i.prompt_text+":","")+"]("+n;var o=prompt(i.prompt_title+":","");""!=o&&(n+=' "'+o+'"'),n+=")",void 0!==t&&"img"==t&&(n="!"+n),textarea_wrap_selection(e,n,"",1)}},window[i.js_prefix+"markdown_toolbar"](i.toolbar_title+": ")},"undefined"!=typeof evo_init_markdown_toolbar_config){for(var e=Object.values(evo_init_markdown_toolbar_config),n=0;n'+o.toolbar_group_after;jQuery("."+t+o.plugin_code+"_toolbar").html(n)},window.polls_load_window=function(e){return openModalWindow('
    ',"auto","",!0,o.modal_window_title,["Insert Poll"],!0),polls_load_polls(e),!1},window.polls_api_request=function(e,t,n){jQuery.ajax({url:restapi_url+e}).then(n,function(e){polls_api_print_error(t,e)})},window.polls_api_print_error=function(e,t){if("string"!=typeof t&&void 0===t.code&&(t=void 0===t.responseJSON?t.statusText:t.responseJSON),void 0===t.code)var n='

    Unknown error: '+t+"

    ";else n='

    '+t.message+"

    ",o.debug&&(n+="
    Code: "+t.code+"
    Status: "+t.data.status+"
    ");jQuery(e).html(n)},window.polls_load_polls=function(i){i=i||"",polls_api_request("polls","#poll_wrapper",function(e){var t='
    ';for(var n in t+="",t+="
    ",jQuery("#poll_wrapper").html(t),jQuery(document).on("click","#"+i+"polls_list a[data-poll-id]",function(){"undefined"!=typeof tinyMCE&&void 0!==tinyMCE.activeEditor&&tinyMCE.activeEditor&&tinyMCE.execCommand("mceFocus",!1,tinyMCE.activeEditor.id);var e=jQuery(this).data("prefix")?jQuery(this).data("prefix"):"";return textarea_wrap_selection(window[e+"b2evoCanvas"],"[poll:"+jQuery(this).data("pollId")+"]","",0),closeModalWindow(),!1})})},window.polls_toolbar(o.toolbar_title,o.prefix)},"undefined"!=typeof evo_init_polls_toolbar_config){for(var e=Object.values(evo_init_polls_toolbar_config),t=0;t'}t+=r.toolbar_group_after,jQuery("."+r.js_prefix+r.plugin_code+"_toolbar").html(t)},window[r.js_prefix+"shortcodes_insert_tag"]=function(e,t){"undefined"!=typeof tinyMCE&&void 0!==tinyMCE.activeEditor&&tinyMCE.activeEditor&&tinyMCE.execCommand("mceFocus",!1,tinyMCE.activeEditor.id),textarea_wrap_selection(e,window[r.js_prefix+"shortcodes_buttons"][t].tag,"",0)},window[r.js_prefix+"shortcodes_toolbar"](r.toolbar_title+": ")},"undefined"!=typeof evo_init_shortcodes_toolbar_config){for(var e=Object.values(evo_init_shortcodes_toolbar_config),t=0;t',"",r.btn_title_teaserbreak,""),window[r.js_prefix+"widescroll_toolbar"]=function(e){for(var t=r.toolbar_title_before+e+r.toolbar_title_after+r.toolbar_group_before,n=0,o=window[r.js_prefix+"widescroll_buttons"].length;n'}t+=r.toolbar_group_after,jQuery("."+r.js_prefix+r.plugin_code+"_toolbar").html(t)},window[r.js_prefix+"widescroll_insert_tag"]=function(e,t){"undefined"!=typeof tinyMCE&&void 0!==tinyMCE.activeEditor&&tinyMCE.activeEditor&&tinyMCE.execCommand("mceFocus",!1,tinyMCE.activeEditor.id),textarea_wrap_selection(e,window[r.js_prefix+"widescroll_buttons"][t].tag_open,window[r.js_prefix+"widescroll_buttons"][t].tag_close,0)},window[r.js_prefix+"widescroll_toolbar"](r.toolbar_title+": ")}}),jQuery(document).ready(function(){"undefined"!=typeof evo_plugin_videoplug_config&&(jQuery(evo_plugin_videoplug_config.youtube_lazyload_selector).each(function(){var e=jQuery(this),t=new Image;t.src="https://img.youtube.com/vi/"+e.data("embed")+"/sddefault.jpg",t.addEventListener("load",function(){e.append(t)})}),jQuery(evo_plugin_videoplug_config.youtube_lazyload_selector).click(function(){var e=document.createElement("iframe");e.setAttribute("frameborder","0"),e.setAttribute("allowfullscreen",""),e.setAttribute("allow","accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture"),e.setAttribute("src","https://www.youtube.com/embed/"+jQuery(this).data("embed")+"?rel=0&showinfo=0&autoplay=1"),jQuery(this).html(e)}))}),jQuery(document).ready(function(){if("undefined"!=typeof evo_init_editable_column_config)for(var keys=Object.keys(evo_init_editable_column_config),i=0;i\s*([^<]+)\s*'+n.responseText+""))}})}()}),jQuery(document).ready(function(){if("undefined"!=typeof evo_regional_config){window.check_regional_required_fields=function(e){jQuery("#"+e+"_rgn_ID, #"+e+"_subrg_ID, #"+e+"_city_ID").each(function(){void 0!==jQuery(this).attr("required")||!0===jQuery(this).data("required")?(1',"90%","",!0,p.confirm_ban_delete_title,[p.perform_selected_operations_msg,"btn-danger","#antispam_ban"],!0,!1,"modal_window_frame_ban");var t=jQuery(".modal-footer button:submit").not("[data-dismiss=modal]");t.on("click",function(){addSpinner(this)}),jQuery("#modal_window_frame_ban").on("load",function(){t.hasClass("btn-spinner")&&(t.removeClass("btn-spinner"),t.css("width","-=24px"))})},window.refreshAfterBan=function(e){for(var t=String(e).split(","),n=0;n");n.html(e);var o=0;for(var i in _){var r=n.find("#"+_[i]);0!==r.length&&(r.remove(),n.find(".hidden_comment:first").removeClass("hidden_comment"),o+=1)}_.length=0,jQuery("#comments_container").html(n.html());var a=jQuery("#comments_container [id^=comment_]");for(var i in c=a?a.length:0,t)switch(t[i]){case"published":jQuery("#"+i).css("backgroundColor","#339900");break;case"deprecated":jQuery("#"+i).css("backgroundColor","#656565");break;case"deleted":jQuery("#"+i).css("backgroundColor","#fcc")}var s=jQuery("#new_badge").val();if("0"==s)jQuery("#comments_block").effect("blind",{},200),jQuery("#comments_block").remove();else{var l=parseInt(s)-o;jQuery("#badge").text(l)}},window.refreshComments=function(e){t||(t=!0,jQuery.ajax({type:"POST",url:htsrv_url+"async.php",data:{blogid:p.blog_ID,action:"refresh_comments",request_from:e,crumb_comment:p.crumb_comment},success:function(e){processResult(ajax_debug_clear(e),f),jQuery("#comments_container").slideDown("fast"),jQuery(".vote_spam").show(),t=!1},error:function(e){e&&""!=e.statusText&&evoAlert(e.statusText),t=!1}}))},window.startRefreshComments=function(e,t,n,o){"dashboard"==e||"coll_settings"==e?jQuery("#comments_container").slideUp("fast",refreshComments(e)):jQuery("#comments_container").fadeTo("slow",.1,function(){refresh_item_comments(t,n,o)})},window.endRefreshComments=function(e){jQuery("#comments_container").html(e),jQuery("#comments_container").fadeTo("slow",1),jQuery(".vote_spam").show()},window.get_current_page=function(){return isDefined(jQuery("#currentpage"))&&isDefined(jQuery("#currentpage").attr("value"))?jQuery("#currentpage").attr("value"):1},window.get_limit=function(){var e=jQuery("select[name$=_per_page]");return isDefined(e)?e.val():0},window.get_show_statuses=function(){return jQuery("#only_moderation")&&jQuery("#only_moderation").is(":checked")?"#only_moderation#":jQuery("#only_valid")&&jQuery("#only_valid").is(":checked")?"#only_valid#":"#all#"},window.get_expiry_status=function(){var e="active";return jQuery("#show_expiry_all")&&jQuery("#show_expiry_all").prop("checked")&&(e="all"),e},window.get_itemid=function(){var e=jQuery("#comments_container").attr("value");return isDefined(e)||(e=-1),e},window.refresh_item_comments=function(e,t,n){var o=get_show_statuses(),i=get_expiry_status();isDefined(t)||(t=get_current_page()),isDefined(e)||(e=-1),void 0===n&&(n="feedback"),jQuery.ajax({type:"POST",url:htsrv_url+"async.php",data:{blogid:p.blog_ID,action:"refresh_comments",request_from:p.request_from,itemid:e,statuses:o,expiry_status:i,currentpage:t,comment_type:n},success:function(e){endRefreshComments(ajax_debug_clear(e)),show_modifieds()},error:function(e){e&&""!=e.statusText&&evoAlert(e.statusText)}})},window.decrease_comments_number=function(e){var t=parseInt(jQuery("#badge").text());t&&(t-=e,jQuery("#badge").text(t))},window.updateCommentsList=function(e){c-=1,decrease_comments_number(1),jQuery("#"+e).remove(),jQuery(".hidden_comment:first").removeClass("hidden_comment"),t&&_.push(e),jQuery(".dashboard_post:visible").removeClass("dashboard_post_odd dashboard_post_even"),jQuery(".dashboard_post:visible:even").addClass("dashboard_post_even"),jQuery(".dashboard_post:visible:odd").addClass("dashboard_post_odd"),c<6&&refreshComments("dashboard")},window.update_moderation_buttons=function(e,t,n){var o=p.button_class_group+" ";void 0!==e&&(o=e+" "+o),e=o+p.button_class_text,jQuery(e).removeClass("first-child last-child btn_next_status"),jQuery(e+".btn_raise_status_"+t).addClass("btn_next_status"),jQuery(e+".btn_lower_status_"+n).addClass("btn_next_status"),jQuery(e+":visible:first").addClass("first-child"),jQuery(e+":visible:last").addClass("last-child")}}}),jQuery(document).ready(function(){if("undefined"!=typeof evo_user_funcs_config){var n=evo_user_funcs_config;window.userfield_criteria_autocomplete=function(e){if(0"),e.open=!0}return t&&(e.onComplete=t),n.each(function(){c.data(this,B,c.extend({},c.data(this,B)||o,e)),c(this).addClass(W)}),(c.isFunction(e.open)&&e.open.call(n)||e.open)&&K(n[0]),n}).init=function(){f=c(e),_=r().attr({id:B,class:R?z+"IE":""}),a=r("Overlay").hide(),d=r("Wrapper"),u=r("Content").append(h=r("LoadedContent","width:0; height:0; overflow:hidden"),g=r("LoadingOverlay").add(r("LoadingGraphic")),m=r("Title"),$infoBar=r("InfoBar").append($nav=r("Navigation").append(b=r("Previous"),w=r("Current"),v=r("Next")),$voting=r("Voting"),y=r("Slideshow"),s=r("Close"),$open=r("Open"))),d.append(u),i=r(!1,"position:absolute; width:9999px; visibility:hidden; display:none"),c("body").prepend(a,_.append(d,i)),$voting.data("voting_positions_done",0),previous_title="",u.children().on("mouseenter",function(){c(this).addClass("hover")}).on("mouseleave",function(){c(this).removeClass("hover")}).addClass("hover"),x=u.outerHeight(!0)-u.height(),C=u.outerWidth(!0)-u.width(),I=h.outerHeight(!0),D=h.outerWidth(!0),T=I,S=s.height()+4,_.css({"padding-bottom":x,"padding-right":C}).hide(),v.on("click",function(){H.next()}),b.on("click",function(){H.prev()}),s.on("click",function(){H.close()}),$open.on("click",function(){H.close()}),j=v.add(b).add(w).add(y),u.children().removeClass("hover"),a.on("click",function(){k.overlayClose&&H.close()}),c(l).bind("keydown."+z,function(e){var t=e.keyCode;A&&k.escKey&&27===t&&(e.preventDefault(),H.close()),A&&k.arrowKey&&p[1]&&(37===t?(e.preventDefault(),b.trigger("click")):39===t&&(e.preventDefault(),v.trigger("click")))})},H.remove=function(){_.add(a).remove(),c("."+W).removeData(B).removeClass(W)},H.position=function(e,t){var n=null==Q.pw||k.w>Q.pw?k.w:Q.pw,o=null==Q.ph||k.h>Q.ph?k.h:Q.ph,i=c("#colorbox .voting_wrapper");parseInt(u.css("border-bottom")),$infoBar.css({minHeight:S+"px"}),I=n<=700&&$voting.is(":visible")?(i.addClass("compact"),2*T-3):(i.removeClass("compact"),T);var r=0,a=0;function s(e){u[0].style.width=e.style.width,g[0].style.height=g[1].style.height=u[0].style.height=e.style.height}f.unbind("resize."+z),_.hide(),k.fixed?_.css({position:"fixed"}):(r=f.scrollTop(),a=f.scrollLeft(),_.css({position:"absolute"})),!1!==k.right?a+=Math.max(f.width()-n-D-C-N(k.right,"x"),0):!1!==k.left?a+=N(k.left,"x"):a+=Math.round(Math.max(f.width()-n-D-C,0)/2),!1!==k.bottom?r+=Math.max(l.documentElement.clientHeight-o-I-x-N(k.bottom,"y"),0):!1!==k.top?r+=N(k.top,"y"):r+=Math.round(Math.max(l.documentElement.clientHeight-o-I-x,0)/2),_.show(),e=_.width()===n+D&&_.height()===o+I?0:e||0,d[0].style.width=d[0].style.height="9999px",_.dequeue().animate({width:n+D,height:o+I,top:r,left:a},{duration:e,complete:function(){s(this),q=!1,d[0].style.width=n+D+C+"px",d[0].style.height=o+I+x+"px",t&&t(),setTimeout(function(){f.bind("resize."+z,H.position)},1),H.resizeVoting(),d.parent().width()<380?y.hide():y.show()},step:function(){s(this)}})},H.resize=function(e){if(A){if((e=e||{}).width&&(k.w=N(e.width,"x")-D-C),e.innerWidth&&(k.w=N(e.innerWidth,"x")),h.css({width:k.w}),e.height&&(k.h=N(e.height,"y")-I-x),e.innerHeight&&(k.h=N(e.innerHeight,"y")),!e.innerHeight&&!e.height){var t=h.wrapInner("
    ").children();k.h=t.outerHeight(),t.replaceWith(t.children())}h.css({height:k.h}),Q.pw=k.w,Q.ph=k.h,H.position("none"===k.transition?0:k.speed)}},H.prep=function(e){if(A){var t,l="none"===k.transition?0:k.speed;h.remove(),(h=r("LoadedContent").append(e)).hide().appendTo(i.show()).css({width:(k.w=k.w||h.width(),k.w=k.mw&&k.mwk.w?k.minWidth:k.w,Q.pw=null==Q.pw||k.w>Q.pw?k.w:Q.pw,Q.pw),overflow:k.scrolling?"auto":"hidden"}).css({height:(k.h=k.h||h.height(),k.h=k.mh&&k.mhk.h?k.minHeight:k.h,Q.ph=null==Q.ph||k.h>Q.ph?k.h:Q.ph,Q.ph)}).prependTo(u),i.hide(),c(M).css({float:"none"}),t=function(){var e,t,n,o,i,r,a=p.length;function s(){R&&_[0].style.removeProperty("filter")}A&&(r=function(){clearTimeout($),g.hide(),X("cbox_complete",k.onComplete)},R&&M&&h.fadeIn(100),m.add(h).show(),1")[0].src=o),V(t)&&(c("")[0].src=t))):j.hide(),k.iframe?(i=c("