// source --> https://investir-et-devenir-libre.com/wp-content/plugins/RunClickPlugin/assets/js/App.min.js?ver=5.8.3 !function(t){t(document).ready(function(){a.init()});var a={data:{first_time:!0,last_log_ID:0,no_activity:0,logged_in:!1,sender:"",win_is_active:0,g_hangout_box_visible:!1},init:function(){var e=!1;if(window.onfocus=function(){a.data.win_is_active=1},window.onblur=function(){a.data.win_is_active=0},1==g_hangout.is_admin){var n="action=g_hangout_ajax_callback&f_chat_user_name="+g_hangout.username+"&f_chat_user_email="+g_hangout.email+"&f_chat_is_admin=true";t.sc_POST("login",n,function(t){e=!1,t.error?a.display_error(t.error):a.login(t.name,t.gravatar,!0)}),t(document).on("click",".g-hangout-users .user",function(){var e=t(this).attr("data-receiver-id"),n=t(this).attr("data-visitor-id");return a.open_new_tab(e,n,!0),!1}),t("ul.g-hangout-tabs").each(function(){var a,e=t(this).find("li");e.addClass("active"),e.not(a).each(function(){t(t(this).attr("href")).hide()}),t(document).on("click",".g-hangout-tab-content",function(){t("ul.g-hangout-tabs li.active").removeClass("new-msg")}),t(this).on("click","li a",function(n){t("ul.g-hangout-tabs li").removeClass("active new-msg"),t(".g-hangout-tab-content").removeClass("active"),a=t(this).parent(),e=t(t(this).attr("href")),a.addClass("active"),e.addClass("active"),t(".sc-cnv-wrap").scrollTop(1e4),e.find(".f-chat-line").focus(),n.preventDefault()}),t(this).on("click","li .close",function(a){var e=t(this).prev().attr("data-receiver-id");t("ul.g-hangout-tabs li").removeClass("active new-msg"),t(".g-hangout-tab-content").removeClass("active"),t(".console-tab").addClass("active"),t("#Console").addClass("active"),t("#Tab_"+e).remove(),t("#Receiver_"+e).remove(),a.preventDefault()})}),t(".g-hangout-login-btn").click(function(){var e=t(this);a.data.current_status=t(this).attr("data-status"),"online"==a.data.current_status?t.sc_POST("offline","action=g_hangout_ajax_callback",function(){t('.user[data-user-type="1"]').fadeOut(1e3),a.get_online_users(),e.attr("data-status","offline").html(' '+g_hangout.tr_offline),a.data.current_status="offline",t("#Chat_console").removeClass("sc-online").addClass("sc-offline"),a.play_sound("offline")}):"offline"==a.data.current_status&&t.sc_POST("online","action=g_hangout_ajax_callback",function(){a.get_online_users(),t('.user[data-user-type="ME"]').show(),e.attr("data-status","online").html(' '+g_hangout.tr_online),a.data.current_status="online",t("#Chat_console").removeClass("sc-offline").addClass("sc-online"),a.play_sound("online")})}),t(document).on("click",".g-hangout-refresh",function(){receiver_ID=t(this).parent().parent().parent().parent().attr("data-receiver-id"),visitor_ID=t("#User_"+receiver_ID).attr("data-visitor-id"),a.get_user_info(visitor_ID,receiver_ID)})}g_hangout.is_admin||(t("#SC_send_form_btn").click(function(){t("#SC_contact_form").submit()}),t("#SC_contact_form").submit(function(){return t(".g-hangout-notification").fadeIn(100).removeClass("error success").html(g_hangout.tr_sending+"..."),t.sc_POST("send_contact_from",t(this).serialize(),function(e){e.error?t(".g-hangout-notification").addClass("error").html(e.error):(t(".g-hangout-notification").addClass("success").html(e.message).delay(1500).fadeOut(500),t(".g-hangout-header-title").html(e.message).delay(4e3).queue(function(a){t(this).html(g_hangout.tr_offline_header),a()}),t('#SC_contact_form input[type="text"], #SC_contact_form textarea').val(""),setTimeout(a.hide_chatbox,2700))}),!1}),t("#SC_start_chat_btn").click(function(){t("#SC_login_form").submit()}),t("#SC_login_form input").keydown(function(a){13==a.keyCode&&t("#SC_login_form").submit()}),t("#SC_login_form").submit(function(){return e?!1:(e=!0,t.sc_POST("login",t(this).serialize(),function(t){e=!1,t.error?a.display_error(t.error):a.login(t.name,t.gravatar,!0)}),!1)}),1==g_hangout.use_css_anim?setTimeout(a.animate_chatbox,500*g_hangout.delay):setTimeout(a.animate_chatbox,1e3*g_hangout.delay)),t(document).on("keydown",".f-chat-line",function(a){13!=a.keyCode||a.shiftKey||(a.preventDefault(),t(this).parent().submit(),t(this).val(""),t(this).trigger("autosize"))}),t(document).on("submit","#Reply_form",function(){var n=t(this).find(".f-receiver-id").val(),o=t.trim(t(this).find(".f-chat-line").val()),i=t(this).serialize(),s=t(".f-chat-line");if(0==o.length)return!1;if(e)return!1;e=!0;var r="t"+Math.round(1e6*Math.random()),_={ID:r,author:a.data.name,gravatar:a.data.gravatar,receiver_ID:n,chat_line:o.replace(//g,">")};return s.addClass("g-hangout-sending"),s.attr("disabled","disabled"),a.add_chat_line(t.extend({},_)),t.sc_POST("send_chat_msg",i,function(n){e=!1;var o="";t(".f-chat-line").val("").removeClass("g-hangout-sending"),t("div.chat-"+r).remove(),s.attr("disabled",!1),n.error?(a.display_error(n.error),t("#Reply_form .f-chat-line").attr("disabled","disabled").addClass("g-hangout-error"),"undefined"!=typeof n.error_type&&(o=n.error_type)):(_.ID=n.insert_ID,a.add_chat_line(t.extend({},_))),t("#Reply_form").attr("data-error_type",o)}),!1}),t(document).on("click",".g-hangout-btn-logout",function(e){return t(this).hide(),setTimeout(function(){t(".g-hangout-btn-logout").show()},3e3),a.get_chat_lines(e),!1}),t.sc_GET("is_user_logged_in","action=g_hangout_ajax_callback",function(t){var e=!0;g_hangout.is_admin||1!=g_hangout.is_op||(e=!1),t.logged&&e&&a.login(t.user.name,t.user.email,!1)}),function o(){a.get_online_users(o)}(),function i(){a.get_chat_lines(i)}()},login:function(e,n,o){a.data.name=e,a.data.gravatar=n,a.data.logged_in=!0,1==g_hangout.is_admin?(t(".g-hangout-login-btn").attr("data-status","online").html(' '+g_hangout.tr_online),t("#Chat_console").addClass("sc-online")):(a.open_chatbox(),1==o?t(".g-hangout-wrapper").fadeOut(function(){t(".g-hangout-notification").html("").hide(),t("#Conversation").fadeIn(),t(".f-chat-line").focus().autosize(),t(".sc-cnv-wrap").scrollTop(1e4)}):(t(".g-hangout-wrapper").hide(),"on"==t.cookie("g_hangout_chatbox_status")&&(delay=1==g_hangout.use_css_anim?500*g_hangout.delay:1e3*g_hangout.delay,setTimeout(function(){t("#Conversation").show(),t(".f-chat-line").autosize(),t(".sc-cnv-wrap").scrollTop(1e4)},delay),a.data.g_hangout_box_visible=!0))),a.data.first_time=!1},render:function(t,a){var e=[];switch(t){case"login_top_bar":e=['','',a.name,'',a.tr_logout,""];break;case"chat_line":e=['
',a.time,'
','
',a.author,':
',a.chat_line,'
'];break;case"user":if(1==a.type)var n=a.ID;else var n=a.visitor_ID;e=['
',a.name," (",a.email,")",a.tagline,"
"];break;case"new_tab_title":e=['
  • ',a.ID,'
  • '];break;case"new_tab_content":if(a.user_info)var o=a.user_info;else var o='Refresh';e=['
    ',o,'
    ']}return e.join("")},open_new_tab:function(e,n,o){user_type=t('.g-hangout-users a[data-visitor-id="'+n+'"]').attr("data-user-type");var i=new Array;return i.ID=e,i.visitor_ID=n,i.custom_class="",i.user_info="1"!=user_type&&n?g_hangout.tr_loading+"...":"",0==t(".g-hangout-tabs li#Tab_"+e).length&&((1==t(".g-hangout-tabs .console-tab.active").length||o)&&(t(".g-hangout-tabs li").removeClass("active"),t(".g-hangout-tab-content").removeClass("active"),i.custom_class="active "),t(".g-hangout-tabs").append(a.render("new_tab_title",i)),t(".g-hangout-tab-contents").append(a.render("new_tab_content",i)),t("#Receiver_"+e+" .f-chat-line").focus()),a.get_user_info(n,e),!1},get_user_info:function(e,n){a.data.receiver_ID=n,t.sc_GET("user_info","action=g_hangout_ajax_callback&ID="+e,function(t){"null"!=t.device_name&&(a.data.user_info=t.device_name+" "+t.device_version+" - "+t.platform+", "+t.ip_address+'   '+g_hangout.tr_chat_logs+"",a.update_user_info())})},update_user_info:function(){t("#Receiver_"+a.data.receiver_ID+" .g-hangout-user-agent").html(a.data.user_info)},add_chat_line:function(e){if(1==g_hangout.is_admin){if(e.author==g_hangout.username&&e.receiver_ID==g_hangout.username?a.data.sender=g_hangout.username:e.receiver_ID==g_hangout.username?a.data.sender=e.author:e.author==g_hangout.username?a.data.sender=e.receiver_ID:"__OP__"==e.receiver_ID&&(a.data.sender=e.author),a.data.sender){var n=t("#User_"+a.data.sender).attr("data-visitor-id");a.open_new_tab(a.data.sender,n),a.update_user_info()}t("#Tab_"+e.author+":not(.active)").addClass("new-msg")}var o=new Date;e.time&&o.setUTCHours(e.time.hours,e.time.minutes),e.time=(o.getHours()<10?"0":"")+o.getHours()+":"+(o.getMinutes()<10?"0":"")+o.getMinutes();var i=a.render("chat_line",e);if(exists=t(".sc-cnv-wrap .chat-"+e.ID),exists.length&&exists.remove(),a.data.last_log_ID||t(".sc-cnv-wrap .sc-lead").remove(),1==g_hangout.is_admin)var s=t("#Receiver_"+a.data.sender+" .sc-cnv-wrap");else var s=t(".sc-cnv-wrap");if("t"!=e.ID.toString().charAt(0)){var r=s.find(".chat-"+(+e.ID-1));r.length?r.after(i):s.append(i)}else s.append(i);t(".sc-cnv-wrap").scrollTop(1e5),a.data.last_user=e.author},get_chat_lines:function(e){return a.data.logged_in||0!=g_hangout.is_admin?void t.sc_GET("get_chat_lines",{last_log_ID:a.data.last_log_ID,action:"g_hangout_ajax_callback",sender:a.data.sender},function(n){"admin_not_authed"==t("#Reply_form").attr("data-error_type")&&"undefined"!=typeof n.admin_not_authed&&0==n.admin_not_authed&&(t("#Reply_form .f-chat-line").removeAttr("disabled").removeClass("g-hangout-error"),a.hide_error());for(var o=0;o'+s+"

    "),t("#People_list .g-hangout-users").html(o.join("")),setTimeout(e,15e3)}}):setTimeout(e,15e3)},animate_chatbox:function(){var e=t("#g_hangout_box"),n=t("#g_hangout_box .g-hangout-header"),o=e.innerHeight(),i=n.innerHeight();e.css("bottom","-"+o+"px"),e.css("visibility","visible"),1==g_hangout.use_css_anim?(e.css("bottom","-"+(o-i)+"px").addClass("g-hangout-animated g-hangout-bounce-in-up"),n.click(function(){t.removeCookie("g_hangout_chatbox_status"),o=e.innerHeight(),i=n.innerHeight(),0==a.data.g_hangout_box_visible?(o=e.innerHeight(),i=n.innerHeight(),e.css("bottom",0).addClass("g-hangout-css-anim"),setTimeout(function(){window.innerWidth>480&&(t("#f_chat_user_name").length?t("#f_chat_user_name, .f-chat-line").focus():t("#f_chat_user_email, .f-chat-line").focus())},500),1==a.data.logged_in&&(t("#Conversation").show(),setTimeout(function(){t(".f-chat-line").focus().autosize()},500)),t.cookie("g_hangout_chatbox_status","on",{expires:1}),a.data.g_hangout_box_visible=!0):(e.css("bottom","-"+(o-i)+"px"),t.cookie("g_hangout_chatbox_status","off",{expires:1}),a.data.g_hangout_box_visible=!1)})):(e.stop().animate({bottom:"+="+i},{duration:900,easing:"easeOutBack"}),n.click(function(){t("#Conversation").show(),t.removeCookie("g_hangout_chatbox_status"),o=e.innerHeight(),i=n.innerHeight(),0==a.data.g_hangout_box_visible?(e.stop().animate({bottom:0},{duration:200,easing:"easeOutExpo",complete:function(){window.innerWidth>480&&(t("#f_chat_user_name").length?t("#f_chat_user_name, .f-chat-line").focus():t("#f_chat_user_email, .f-chat-line").focus())}}),t.cookie("g_hangout_chatbox_status","on",{expires:1}),a.data.g_hangout_box_visible=!0):(t.cookie("g_hangout_chatbox_status","off",{expires:1}),e.stop().animate({bottom:"-"+(o-i)},{duration:190,easing:"easeOutExpo"}),t.cookie("g_hangout_chatbox_status","off",{expires:1}),a.data.g_hangout_box_visible=!1)}))},open_chatbox:function(){var a=t("#g_hangout_box");t("#Reply_form .f-chat-line").removeAttr("disabled").removeClass("g-hangout-error"),1==g_hangout.use_css_anim?a.css("bottom",0):(a.stop().animate({bottom:0},{duration:200,easing:"easeOutExpo"}),t("#f_chat_user_name, .f-chat-line").focus())},hide_chatbox:function(){var e=t("#g_hangout_box"),n=t("#g_hangout_box .g-hangout-header");g_hangout_box_h=e.innerHeight(),g_hangout_header_h=n.innerHeight(),1==g_hangout.use_css_anim?e.css("bottom","-"+(g_hangout_box_h-g_hangout_header_h)+"px"):e.stop().animate({bottom:"-"+(g_hangout_box_h-g_hangout_header_h)},{duration:190,easing:"easeOutExpo"}),a.data.g_hangout_box_visible=!1},add_source:function(a,e){t("").attr("src",e).appendTo(a)},play_sound:function(e){var n=t("