PageSourceSearch

https://geopard.tech/wp-content/cache/perfmatters/geopard.tech/min…6908.qcld-wp-chatbot-front.min.js?ver=8.7.9

js geopard.tech collected 2026-10-01 11:46:13 UTC 28,697 bytes, 64 lines download raw bytes

1jQuery(function($){var wpChatBotVar=wp_chatbot_obj;var LoadwpwBotPlugin=0;var textEditorHandler=0;if(typeof(openingHourIsFn)!='undefined'){var openingHourIs=openingHourIsFn}else{var openingHourIs=0}
2window.wpbotSyncSlimScrollBar=function($inner){$inner=($inner&&$inner.jquery)?$inner:$('.wp-chatbot-ball-inner');$inner.each(function(){var el=this;var $el=$(el);var $wrap=$el.parent();if(!$wrap.hasClass('slimScrollDiv')){return}
3var $bar=$wrap.children('.slimScrollBar');var $rail=$wrap.children('.slimScrollRail');if(!$bar.length){return}
4if(el.scrollHeight<=el.clientHeight+2){$wrap.addClass('wpbot-no-scroll');$bar.stop(!0,!0).hide().css({opacity:0});$rail.stop(!0,!0).hide();return}
5$wrap.removeClass('wpbot-no-scroll');var barH=Math.max(($el.outerHeight()/el.scrollHeight)*$el.outerHeight(),30);barH=Math.min(barH,$el.outerHeight());var maxTop=Math.max(0,$el.outerHeight()-barH);var ratio=el.scrollHeight>el.clientHeight?el.scrollTop/(el.scrollHeight-el.clientHeight):1;$bar.css({height:barH+'px',top:(ratio*maxTop)+'px',display:'block',opacity:0.4});clearTimeout($bar.data('wpbotBarHideTimer'));$bar.data('wpbotBarHideTimer',setTimeout(function(){if(!$bar.is(':hover')){$bar.fadeOut('slow')}},1000))})};wpChatBotVar.exit_intent_handler=0;wpChatBotVar.scroll_open_handler=0;wpChatBotVar.auto_open_handler=0;wpChatBotVar.re_target_handler=0;$(document).ready(function(){if(typeof(wpbot_clear_cache)!=="undefined"&&wpbot_clear_cache!=''){wpwKits.reset();LoadwpwBotPlugin=0}
6var botimage=jQuery('#wp-chatbot-ball').find('img').attr('qcld_agent');var wpbotIconVideo=wpChatBotVar.icon_video||'';var wpbotVideoDelay=parseInt(wpChatBotVar.icon_video_delay,10)||0;if(wpbotIconVideo!==''){var $wpbotVidEl=$('#wp-chatbot-ball-icon-video');if($wpbotVidEl.length){if(wpbotVideoDelay>0){$wpbotVidEl.hide();setTimeout(function(){$wpbotVidEl.show();if($wpbotVidEl.is('video')){try{$wpbotVidEl[0].play()}catch(e){}}},wpbotVideoDelay*1000)}else{if($wpbotVidEl.is('video')){try{$wpbotVidEl[0].play()}catch(e){}}}}}
7if($('#wp-chatbot-shortcode-template-container').length==0&&$('#wp-chatbot-chat-app-shortcode-container').length==0){$('#wp-chatbot-ball-wrapper').css({'display':'block',});$('#wp-chatbot-chat-container').css({'right':wpChatBotVar.wp_chatbot_position_x+'px','bottom':wpChatBotVar.wp_chatbot_position_y+'px'})
8setTimeout(function(){$('.fb_dialog').css({'right':parseInt(55+parseInt(wpChatBotVar.wp_chatbot_position_x))+'px','bottom':parseInt(17+parseInt(wpChatBotVar.wp_chatbot_position_y))+'px','visibility':'visible'})},3000);if(wpChatBotVar.disable_icon_animation==1){$('.wp-chatbot-ball').addClass('wp-chatbot-animation-deactive')}else{$('.wp-chatbot-ball').addClass('wp-chatbot-animation-active');var itemHide=function(){$('.wp-chatbot-animation-active .wp-chatbot-ball-animation-switch').fadeOut(1000)};setTimeout(function(){itemHide()},1000);$('.wp-chatbot-animation-active').click(function(){$('.wp-chatbot-animation-active .wp-chatbot-ball-animation-switch').fadeIn(100);setTimeout(function(){itemHide()},1000)})}
9var widowH=$(window).height();var widowW=$(window).width();if(widowW>767){var ballConH=parseInt(widowH*0.5)+parseInt(114);$(window).resize(function(){var widowH=$(window).height();var ballConH=parseInt(widowH*0.5)+parseInt(114)})};$(document).on('click','#wp-chatbot-ball',function(event){if($('.active-chat-board').length>0){if(wpChatBotVar.template=='template-06'||wpChatBotVar.template=='template-07'){$('#wp-chatbot-ball').show()}
10$('#wp-chatbot-ball').removeClass('wpbot_chatopen_iconanimation');$('#wp-chatbot-ball').addClass('wpbot_chatclose_iconanimation');$('#wp-chatbot-ball').find('img#wp-chatbot-ball-icon-img').attr('src',botimage);if(wpbotIconVideo!==''){$('#wp-chatbot-ball-icon-video').show();$('#wp-chatbot-ball').find('img#wp-chatbot-ball-icon-img').hide();$('#wp-chatbot-ball').find('img.wpbot-close-icon-overlay').hide()}else{$('#wp-chatbot-ball').find('img#wp-chatbot-ball-icon-img').show()}
11$('.wp-chatbot-ball').css('background','#ffffff')}else{$('#wp-chatbot-ball').removeClass('wpbot_chatclose_iconanimation');$('#wp-chatbot-ball').addClass('wpbot_chatopen_iconanimation');if(wpbotIconVideo!==''){$('#wp-chatbot-ball-icon-video').hide();$('#wp-chatbot-ball').find('img#wp-chatbot-ball-icon-img').attr('src',wpChatBotVar.imgurl+'wpbot-close-icon.png').show()}else{$('#wp-chatbot-ball').find('img').attr('src',wpChatBotVar.imgurl+'wpbot-close-icon.png')}}
12var $boardContainer=$("#wp-chatbot-board-container");var animationDuration=280;var isOpening=!$boardContainer.hasClass('active-chat-board');$boardContainer.removeClass('wp-chatbot-open-anim wp-chatbot-close-anim');if(isOpening){$boardContainer.addClass('active-chat-board');void $boardContainer[0].offsetWidth;$boardContainer.addClass('wp-chatbot-open-anim');wpwbot_board_action();setTimeout(function(){$boardContainer.removeClass('wp-chatbot-open-anim')},360)}else{void $boardContainer[0].offsetWidth;$boardContainer.addClass('wp-chatbot-close-anim');setTimeout(function(){$boardContainer.removeClass('active-chat-board wp-chatbot-close-anim');wpwbot_board_action()},animationDuration)}});if(wpChatBotVar.enable_meta_title==1&&wpChatBotVar.meta_label!=""){var MetaTitleInterval;var orginalTitle=document.title;$(document).on("mouseover",'body',function(e){document.title=orginalTitle;clearInterval(MetaTitleInterval)})}
13if(wpChatBotVar.enable_exit_intent==1){window.addEventListener("mouseout",function(e){e=e?e:window.event;if(e.target.tagName.toLowerCase()=="input")
14return;var vpWidth=Math.max(document.documentElement.clientWidth,window.innerWidth||0);if(e.clientX>=(vpWidth-50))
15return;if(e.clientY>=50)
16return;var from=e.relatedTarget||e.toElement;if(!from)
17var exitIntentOpen=!0;if($.cookie('exit_intent')=='yes'&&wpChatBotVar.exit_intent_once==1){exitIntentOpen=!1}
18if($('.active-chat-board').length==0&&exitIntentOpen==!0){if(wpChatBotVar.exit_intent_handler==0){$("#wp-chatbot-board-container").addClass('active-chat-board');wpChatBotVar.exit_intent_handler++;wpChatBotVar.re_target_handler=1;wpwbot_board_action();if(localStorage.getItem('shopper')){var shopper=localStorage.getItem('shopper')}else{var shopper=wpChatBotVar.shopper_demo_name}
19setTimeout(function(){if(localStorage.getItem("wpwHitory")){showing_proactive_msg(wpChatBotVar.ret_greet+' '+shopper+', '+wpChatBotVar.exit_intent_msg)}else{showing_proactive_double_msg(wpChatBotVar.ret_greet+' '+shopper+', '+wpChatBotVar.exit_intent_msg)}
20$.cookie('exit_intent','yes');proactive_retargeting_sound();window_focus_change_meta_title()},1000)}}})}
21if(wpChatBotVar.enable_scroll_open==1){$(document).on('scroll',function(event){var OpenScroll=!0;if($.cookie('scroll_open')=='yes'&&wpChatBotVar.scroll_open_once==1){OpenScroll=!1}
22if($('.active-chat-board').length==0&&OpenScroll==!0){if(wpChatBotVar.scroll_open_handler==0){var scrollOpenVal=parseInt(($(document).height()*wpChatBotVar.scroll_open_percent)/100);if($(window).scrollTop()+$(window).height()>scrollOpenVal){$("#wp-chatbot-board-container").addClass('active-chat-board');wpChatBotVar.scroll_open_handler++;wpChatBotVar.re_target_handler=2;wpwbot_board_action();if(localStorage.getItem('shopper')){var shopper=localStorage.getItem('shopper')}else{var shopper=wpChatBotVar.shopper_demo_name}
23setTimeout(function(){if(localStorage.getItem("wpwHitory")){showing_proactive_msg(wpChatBotVar.ret_greet+' '+shopper+', '+wpChatBotVar.scroll_open_msg)}else{showing_proactive_double_msg(wpChatBotVar.ret_greet+' '+shopper+', '+wpChatBotVar.scroll_open_msg)}
24$.cookie('scroll_open','yes');proactive_retargeting_sound();window_focus_change_meta_title()},1000)}}}})}
25if(wpChatBotVar.enable_auto_open==1){var autoOpen=!0;if($.cookie('auto_open')=='yes'&&wpChatBotVar.auto_open_once==1){autoOpen=!1}
26if(wpChatBotVar.auto_open_handler==0&&autoOpen==!0){setTimeout(function(e){if($('.active-chat-board').length==0){$("#wp-chatbot-board-container").addClass('active-chat-board');wpChatBotVar.auto_open_handler++;wpChatBotVar.re_target_handler=3;wpwbot_board_action();if(localStorage.getItem('shopper')){var shopper=localStorage.getItem('shopper')}else{var shopper=wpChatBotVar.shopper_demo_name}
27setTimeout(function(){if(localStorage.getItem("wpwHitory")){showing_proactive_msg(wpChatBotVar.ret_greet+' '+shopper+', '+wpChatBotVar.auto_open_msg)}else{showing_proactive_double_msg(wpChatBotVar.ret_greet+' '+shopper+', '+wpChatBotVar.auto_open_msg)}
28$.cookie('auto_open','yes');proactive_retargeting_sound();window_focus_change_meta_title()},1000)}},parseInt(wpChatBotVar.auto_open_time*1000))}}
29if(wpChatBotVar.enable_ret_user_show==1&&localStorage.getItem("wpwHitory")&&$.cookie('return_user')!='yes'){$.cookie('return_user','yes');var data={'action':'qcld_wb_chatbot_only_cart'};jQuery.post(wpChatBotVar.ajax_url,data,function(response){if(response.items>0){if($('.active-chat-board').length==0){setTimeout(function(){$("#wp-chatbot-board-container").addClass('active-chat-board');wpwbot_board_action();showing_proactive_msg(wpChatBotVar.checkout_msg);setTimeout(function(){showing_proactive_msg(response.html);window_focus_change_meta_title()},2000)},1000)}}})}else{$.cookie('return_user','yes')}
30if(wpChatBotVar.enable_inactive_time_show==1&&localStorage.getItem("wpwHitory")){var timeoutID;function setup(){this.addEventListener("mousemove",resetTimer,!1);this.addEventListener("mousedown",resetTimer,!1);this.addEventListener("keypress",resetTimer,!1);this.addEventListener("DOMMouseScroll",resetTimer,!1);this.addEventListener("mousewheel",resetTimer,!1);this.addEventListener("touchmove",resetTimer,!1);this.addEventListener("MSPointerMove",resetTimer,!1);startTimer()}
31setup();function startTimer(){timeoutID=window.setTimeout(goInactive,parseInt(wpChatBotVar.inactive_time*1000))}
32function resetTimer(e){window.clearTimeout(timeoutID);goActive()}
33function goInactive(){if(wpChatBotVar.ret_inactive_user_once==1&&$.cookie('return_inactive_user')!='yes'){$.cookie('return_inactive_user','yes');var data={'action':'qcld_wb_chatbot_only_cart'};jQuery.post(wpChatBotVar.ajax_url,data,function(response){if(response.items>0){if($('.active-chat-board').length==0){setTimeout(function(){$('#wp-chatbot-ball').removeClass('wpbot_chatclose_iconanimation');$('#wp-chatbot-ball').addClass('wpbot_chatopen_iconanimation');if(wpbotIconVideo!==''){$('#wp-chatbot-ball-icon-video').hide();$('#wp-chatbot-ball').find('img#wp-chatbot-ball-icon-img').attr('src',wpChatBotVar.imgurl+'wpbot-close-icon.png').show()}else{$('#wp-chatbot-ball').find('img').attr('src',wpChatBotVar.imgurl+'wpbot-close-icon.png')}
34$("#wp-chatbot-board-container").addClass('active-chat-board');wpwbot_board_action();showing_proactive_msg(wpChatBotVar.checkout_msg);setTimeout(function(){showing_proactive_msg(response.html);window_focus_change_meta_title()},2000)},2000)}}})}else{$.cookie('return_inactive_user','yes')}}
35function goActive(){startTimer()}}
36function proactive_retargeting_sound(){if(wpChatBotVar.enable_ret_sound==1){var promise=document.querySelector('#wp-chatbot-proactive-audio').play();if(promise!==undefined){promise.then(function(success){}).catch(function(error){})}}}
37function window_focus_change_meta_title(){if(wpChatBotVar.enable_meta_title==1&&wpChatBotVar.meta_label!=""&&openingHourIs==0){var showInactive=0;MetaTitleInterval=setInterval(function(){if(showInactive==0){document.title=wpChatBotVar.meta_label;showInactive=1}else{document.title=orginalTitle;showInactive=0}},1000)}}
38function wpwbot_board_action(){var currentW=$(window).width();var isBoardOpen=$('#wp-chatbot-board-container').hasClass('active-chat-board');if(currentW<=480&&wpChatBotVar.mobile_full_screen==1&&isBoardOpen){if($('#wp-chatbot-mobile-close').length<=0){$('.wp-ch
38atbot-board-container').append('<div id="wp-chatbot-mobile-close">X</div>')}
39$('.wp-chatbot-ball-inner').slimScroll({height:'100hv',start:'bottom'});wpbotSyncSlimScrollBar($('.wp-chatbot-ball-inner'));$('#wp-chatbot-chat-container').addClass('wp-chatbot-mobile-fs-open').css({'bottom':'0','left':'0','right':'0','width':'100%','max-width':'100%'});$('#wp-chatbot-board-container').css({'width':'100%','max-width':'100%'});$('#wp-chatbot-ball').hide();var widowH=$(window).height();var headerH=$('.wp-chatbot-header').outerHeight();var footerH=$('.wp-chatbot-footer').outerHeight();var AppContentInner=widowH-footerH-headerH;$('.wp-chatbot-ball-inner').css({'height':AppContentInner+'px'})
40$('.wp-chatbot-ball-inner').css({'max-height':AppContentInner+'px'})
41$(this).hide()}else{if(!isBoardOpen){$('#wp-chatbot-chat-container').removeClass('wp-chatbot-mobile-fs-open')}
42$('.wp-chatbot-ball-inner').slimScroll({height:'55hv',start:'bottom'});wpbotSyncSlimScrollBar($('.wp-chatbot-ball-inner'))}
43if(LoadwpwBotPlugin==0){$.wpwbot({obj:wpChatBotVar,editor_handler:textEditorHandler,preLoadingTime:wpChatBotVar.botpreloadingtime});LoadwpwBotPlugin++;var data={'action':'qcld_wb_chatbot_session_count','nonce':wpChatBotVar.session_nonce};jQuery.post(wpChatBotVar.ajax_url,data,function(response){})}
44$('.wp-chatbot-product-container').removeClass('active-chatbot-product-details');if($('.active-chat-board').length!=0){$('#wp-chatbot-notification-container').removeClass('wp-chatbot-notification-container-sliding');$('#wp-chatbot-notification-container').addClass('wp-chatbot-notification-container-disable')}else{if(!sessionStorage.getItem('wpChatbotNotification')){$('#wp-chatbot-notification-container').removeClass('wp-chatbot-notification-container-disable');$('#wp-chatbot-notification-container').addClass('wp-chatbot-notification-container-sliding')}}
45if($('.active-chat-board').length>0){$('#wp-chatbot-integration-container').show()}else{$('#wp-chatbot-integration-container').hide()}}
46function showing_proactive_msg(msg){var enableleReactions=globalwpw.settings.obj.skip_chat_reactions_menu;var eanleeReport=globalwpw.settings.obj.enable_chat_report_menu;var enableshare=globalwpw.settings.obj.enable_chat_share_menu;var likeTxt=globalwpw.settings.obj.qlcd_wp_chatbot_like_text;var disLikeTxt=globalwpw.settings.obj.qlcd_wp_chatbot_dislike_text;var reportTxt=globalwpw.settings.obj.qlcd_wp_chatbot_report_text;var sharetTxt=globalwpw.settings.obj.qlcd_wp_chatbot_share_text;console.log(globalwpw.settings);console.log(enableleReactions);if(localStorage.getItem("wpwHitory")&&!$('.wp-chatbot-operation-option[data-option="chat"]').parent().hasClass('wp-chatbot-operation-active')){$('.wp-chatbot-messages-wrapper').html(localStorage.getItem("wpwHitory"));$('.wp-chatbot-operation-option').each(function(){if($(this).attr('data-option')=='chat'){$(this).parent().addClass('wp-chatbot-operation-active')}else{$(this).parent().removeClass('wp-chatbot-operation-active')}})}
47var msgContent='<li class="wp-chatbot-msg">'+'<div class="wp-chatbot-avatar">'+'<img src="'+wpChatBotVar.agent_image_path+'" alt="">'+'</div>'+'<div class="wp-chatbot-agent">'+wpChatBotVar.agent+'</div>'+'<div class="wp-chatbot-paragraph"><img class="wp-chatbot-comment-loader" src="'+wpChatBotVar.image_path+'comment.gif" alt="Typing..." /></div>'+'<div class="qcld-like-dislike-icon">'+(enableleReactions==1?'<a href="#" title="'+(disLikeTxt?.en_US||'Dislike')+'"><i class="dashicons dashicons-thumbs-down"></i></a>'+'<a href="#" title="'+(likeTxt?.en_US||'Like')+'"><i class="dashicons dashicons-thumbs-up" ></i></a>':'')+(eanleeReport==1?'<a href="#" title="'+(reportTxt?.en_US||'Report')+'"><i class="dashicons dashicons-admin-comments"></i></a>':'')+(enableshare==1?'<div class="qcld-share">'+'<a href="#" class="share-toggle" title="'+(sharetTxt?.en_US||'Share')+'"><i class="dashicons dashicons-share" aria-hidden="true"></i></a>'+'<div class="share-menu" style="display:none;">'+'<a href="#" class="share-fb"><i class="dashicons dashicons-facebook"></i></a>'+'<a href="#" class="share-wa"><i class="dashicons dashicons-whatsapp"></i></a>'+'<a href="#" class="share-x"><i class="dashicons dashicons-twitter"></i></a>'+'<a href="#" class="share-email"><i class="dashicons dashicons-email-alt"></i></a>'+'</div>'+'</div>
47':'')+'</div>'+'</li>';$('#wp-chatbot-messages-container').append(msgContent);$('.wp-chatbot-ball-inner').animate({scrollTop:$('.wp-chatbot-messages-wrapper').prop("scrollHeight")},'slow',function(){wpbotSyncSlimScrollBar($('.wp-chatbot-ball-inner'))});setTimeout(function(){$('#wp-chatbot-messages-container li:last .wp-chatbot-paragraph').html(msg).css({'background-color':wpChatBotVar.proactive_bg_color});$('.wp-chatbot-ball-inner').animate({scrollTop:$('.wp-chatbot-messages-wrapper').prop("scrollHeight")},'slow',function(){wpbotSyncSlimScrollBar($('.wp-chatbot-ball-inner'))})},2000)}
48function showing_proactive_double_msg(secondMsg){var enableleReactions=globalwpw.settings.obj.skip_chat_reactions_menu;var eanleeReport=globalwpw.settings.obj.enable_chat_report_menu;var enableshare=globalwpw.settings.obj.enable_chat_share_menu;var likeTxt=globalwpw.settings.obj.qlcd_wp_chatbot_like_text;var disLikeTxt=globalwpw.settings.obj.qlcd_wp_chatbot_dislike_text;var reportTxt=globalwpw.settings.obj.qlcd_wp_chatbot_report_text;var sharetTxt=globalwpw.settings.obj.qlcd_wp_chatbot_share_text;console.log(globalwpw.settings);console.log(enableleReactions);if(localStorage.getItem("wpwHitory")){$('.wp-chatbot-messages-wrapper').html(localStorage.getItem("wpwHitory"));$('.wp-chatbot-operation-option').each(function(){if($(this).attr('data-option')=='chat'){$(this).parent().addClass('wp-chatbot-operation-active')}else{$(this).parent().removeClass('wp-chatbot-operation-active')}})}
49var fristMsg="<strong>"+wpChatBotVar.agent+" </strong> "+wpChatBotVar.agent_join[0];var msgContent='<li class="wp-chatbot-msg">'+'<div class="wp-chatbot-avatar">'+'<img src="'+wpChatBotVar.agent_image_path+'" alt="">'+'</div>'+'<div class="wp-chatbot-agent">'+wpChatBotVar.agent+'</div>'+'<div class="wp-chatbot-paragraph"><img class="wp-chatbot-comment-loader" src="'+wpChatBotVar.image_path+'comment.gif" alt="Typing..." /></div>'+'<div class="qcld-like-dislike-icon">'+(enableleReactions==1?'<a href="#" title="'+(disLikeTxt?.en_US||'Dislike')+'"><i class="dashicons dashicons-thumbs-down"></i></a>'+'<a href="#" title="'+(likeTxt?.en_US||'Like')+'"><i class="dashicons dashicons-thumbs-up"></i></a>':'')+(eanleeReport==1?'<a href="#" title="'+(reportTxt?.en_US||'Report')+'"><i class="dashicons dashicons-admin-comments"></i></a>':'')+(enableshare==1?'<div class="qcld-share">'+'<a href="#" class="share-toggle" title="'+(sharetTxt?.en_US||'Share')+'"><i class="dashicons dashicons-share"></i></a>'+'<div class="share-menu" style="display:none;">'+'<a href="#" class="share-fb"><i class="dashicons dashicons-facebook"></i></a>'+'<a href="#" class="share-wa"><i class="dashicons dashicons-whatsapp"></i></a>'+'<a href="#" class="share-x"><i class="dashicons dashicons-twitter"></i></a>'+'<a href="#" class="share-email"><i class="dashicons dashicons-email-alt"></i></a>'+'</div>'+'</div>':'')+'</div>'+'</li>';$('#wp-chatbot-messages-container').append(msgContent);$('.wp-chatbot-ball-inner').animate({scrollTop:$('.wp-chatbot-messages-wrapper').prop("scrollHeight")},'slow',function(){wpbotSyncSlimScrollBar($('.wp-chatbot-ball-inner'))});setTimeout(function(){$('#wp-chatbot-messages-container li:last .wp-chatbot-paragraph').html(fristMsg);$('#wp-chatbot-messages-container').append(msgContent);$('.wp-chatbot-ball-inner').animate({scrollTop:$('.wp-chatbot-messages-wrapper').prop("scrollHeight")},'slow',function(){wpbotSyncSlimScrollBar($('.wp-chatbot-ball-inner'))});setTimeout(function(){$('#wp-chatbot-messages-container li:last .wp-chatbot-paragraph').html(secondMsg).css({'background-color':wpChatBotVar.proactive_bg_color});$('.wp-chatbot-ball-inner').animate({scrollTop:$('.wp-chatbot-messages-wrapper').prop("scrollHeight")},'slow',function(){wpbotSyncSlimScrollBar($('.wp-chatbot-ball-inner'))})},2000)},2000)}
50$(document).on('click','#wp-chatbot-mobile-close, #wp-chatbot-desktop-close',function(event){var $boardContainer=$("#wp-chatbot-board-container");if($boardContainer.hasClass('active-chat-board')){$boardContainer.removeClass('wp-chatbot-open-anim wp-chatbot-expand-anim wp-chatbot-collapse-
50anim');void $boardContainer[0].offsetWidth;$boardContainer.addClass('wp-chatbot-close-anim');setTimeout(function(){$boardContainer.removeClass('active-chat-board wp-chatbot-close-anim')},280)}
51$("#wp-chatbot-notification-container").removeClass('wp-chatbot-notification-container-disable').addClass('wp-chatbot-notification-container-sliding');$('#wp-chatbot-chat-container').removeClass('wp-chatbot-mobile-fs-open').css({'right':wpChatBotVar.wp_chatbot_position_x+'px','bottom':wpChatBotVar.wp_chatbot_position_y+'px','top':'auto','left':'auto','width':'','max-width':''});$('#wp-chatbot-board-container').css({'width':'','max-width':''});if(wpbotIconVideo!==''){$('#wp-chatbot-ball').find('img#wp-chatbot-ball-icon-img').attr('src',botimage).hide();$('#wp-chatbot-ball-icon-video').show()}else{$('#wp-chatbot-ball').find('img').attr('src',botimage)}
52$('.wp-chatbot-ball').css('background','#ffffff');$('#wp-chatbot-ball').show();if($('.active-chat-board').length>0){$('#wp-chatbot-integration-container').show()}else{$('#wp-chatbot-integration-container').hide()}});function wpbotSyncExpandIconState(){var $boardContainer=$('#wp-chatbot-board-container');var isExpanded=$boardContainer.hasClass('wp-chatbot-expanded');$('#wp-chatbot-desktop-expand').attr('title',isExpanded?'Collapse':'Expand').find('span').removeClass('dashicons dashicons-fullscreen-exit-alt').addClass('dashicons '+(isExpanded?'dashicons-editor-contract':'dashicons-editor-expand'))}
53wpbotSyncExpandIconState();$(document).on('click','#wp-chatbot-desktop-expand',function(event){event.preventDefault();var $boardContainer=$('#wp-chatbot-board-container');$boardContainer.removeClass('wp-chatbot-open-anim wp-chatbot-expand-anim wp-chatbot-collapse-anim wp-chatbot-close-anim');$boardContainer.toggleClass('wp-chatbot-expanded');wpbotSyncExpandIconState();setTimeout(function(){var $inner=$boardContainer.find('.wp-chatbot-ball-inner');if(!$inner.length||!$inner[0]){return}
54var computedH=window.getComputedStyle($inner[0]).height;if(computedH){$inner.slimScroll({height:computedH,start:'bottom'});wpbotSyncSlimScrollBar($inner)}},40)});$("#qcld-wp-chatbot-shortcode-style-css").attr("disabled","disabled");if($('#wp-chatbot-notification-container').length>0){if(sessionStorage.getItem('wpChatbotNotification')&&sessionStorage.getItem('wpChatbotNotification')=='removed'){$('#wp-chatbot-notification-container').addClass('wp-chatbot-notification-container-disable')}else{$('#wp-chatbot-notification-container').addClass('wp-chatbot-notification-container-sliding');if($.cookie("shopper")){var shopper=$.cookie("shopper");var welcomeMsg=wpChatBotVar.welcome_back[0]+' <strong>'+shopper+'!</strong>'}else{var welcomeMsg=wpChatBotVar.welcome[0]+' <strong>'+wpChatBotVar.host+'!</strong>'}
55$('.wp-chatbot-notification-welcome').html(welcomeMsg);var notifications=wpChatBotVar.notifications;if(notifications.length>1){var totalNotMsg=wpChatBotVar.notifications.length;var notMsgIndex=0;var intervalTime=parseInt(wpChatBotVar.notification_interval)*1000;var notificationInterval=setInterval(function(e){notMsgIndex++;
55if(totalNotMsg<=notMsgIndex){notMsgIndex=0}
56$('.wp-chatbot-notification-message').css({'opacity':1}).html(notifications[notMsgIndex])},intervalTime)}
57$(".wp-chatbot-notification-close").click(function(){$('#wp-chatbot-notification-container').addClass('wp-chatbot-notification-container-disable');sessionStorage.setItem('wpChatbotNotification','removed')})}}}else if($('#wp-chatbot-shortcode-template-container').length>0){$('#wp-chatbot-chat-container').css({'display':'none'});$('#wp-chatbot-ball').hide();$('.wp-chatbot-ball-inner').slimScroll({height:'60hv',start:'bottom'});wpbotSyncSlimScrollBar($('.wp-chatbot-ball-inner'));var recentViewHeight=$('.wp-chatbot-container').outerHeight();if($('.chatbot-shortcode-template-02').length==0){$('.wp-chatbot-cart-body').slimScroll({height:'200px',start:'top'});$('.wp-chatbot-widget .wp-chatbot-products').slimScroll({height:'435px',start:'top'})}
58$("#qcld-wp-chatbot-style-css").attr("disabled","disabled");if(LoadwpwBotPlugin==0){$.wpwbot({obj:wpChatBotVar,editor_handler:textEditorHandler});LoadwpwBotPlugin++;var data={'action':'qcld_wb_chatbot_session_count','nonce':wpChatBotVar.session_nonce};jQuery.post(wpChatBotVar.ajax_url,data,function(response){})}}else if($('#wp-chatbot-chat-app-shortcode-container').length>0){textEditorHandler=1;setTimeout(function(){var widowH=$(window).height();var footerH=$('.wp-chatbot-footer').outerHeight();var AppContentInner=widowH-footerH;$('#wp-chatbot-chat-app-shortcode-container .wp-chatbot-ball-inner').css({'height':AppContentInner+'px'})},300);$(window).resize(function(){setTimeout(function(){var widowH=$(window).height();var footerH=$('.wp-chatbot-footer').outerHeight();var AppContentInner=widowH-footerH;$('#wp-chatbot-chat-app-shortcode-container .wp-chatbot-ball-inner').css({'height':AppContentInner+'px'})},300)});$('#wp-chatbot-ball').hide();$("#qcld-wp-chatbot-shortcode-style-css").attr("disabled","disabled");$("#wp-chatbot-board-container").addClass('active-chat-board');$('.wp-chatbot-ball-inner').slimScroll({height:'55hv',start:'bottom'}).parent();wpbotSyncSlimScrollBar($('.wp-chatbot-ball-inner'));if(LoadwpwBotPlugin==0){$.wpwbot({obj:wpChatBotVar,editor_handler:textEditorHandler});LoadwpwBotPlugin++;var data={'action':'qcld_wb_chatbot_session_count','nonce':wpChatBotVar.session_nonce};jQuery.post(wpChatBotVar.ajax_url,data,function(response){})}
59$('#wp-chatbot-cart-short-code').hide();$('#wp-chatbot-checkout-short-code').hide();$(document).on('click','.wp-chatbot-cart-link',function(event){$('.wp-chatbot-messages-wrapper').hide();$('#wp-chatbot-checkout-short-code').hide();$('#wp-chatbot-cart-short-code').show();event.preventDefault();$('#wp-chatbot-cart-short-code').html('<img class="wp-chatbot-comment-loader" src="'+wpChatBotVar.image_path+'comment.gif" alt="..." />');var data={'action':'qcld_wb_chatbot_cart_page'};jQuery.post(wpChatBotVar.ajax_url,data,function(response){$("#wp-chatbot-cart-short-code").html(response)})});$(document).on('click','.wp-chatbot-checkout-link, .checkout-button',function(event){event.preventDefault();$('.wp-chatbot-messages-wrapper').hide();$('#wp-chatbot-cart-short-code').hide();$('#wp-chatbot-checkout-short-code').show();$('#wp-chatbot-checkout-short-code').html('<img class="wp-chatbot-comment-loader" src="'+wpChatBotVar.image_path+'comment.gif" alt="..." />');var data={'action':'qcld_wb_chatbot_checkout_page'};jQuery.post(wpChatBotVar.ajax_url,data,function(response){if(response.status=='yes'){window.location.href=response.html}else{$("#wp-chatbot-checkout-short-code").html(response.html)}})});$(document).on('click','#wp-chatbot-chat-app-shortcode-container .wpcommerce-cart-form a',function(e){e.preventDefault()})}
60$(document).on('change',"#wp-chatbot-product-variable select ",function(){var variations=JSON.parse($("#wp-chatbot-variation-data").attr('data-product-variation'));var item_conditions=[];var totalAttr=$("#wp-chatbot-product-variable select").length;var i=1;$("#wp-chatbot-product-variable select").each(function(index,element){var myVal=$(this).find('option:selected').val();if(myVal!=""){item_conditions.push({'left':'item["variation_data"]["'+$(this).attr('name')+'"][0]','right':myVal})}});var newVariation=[];for(var a=0;variations.length>a;a++){var item=variations[a];var item_condition="";for(var i=0;item_conditions.length>i;i++){if(i>0){item_condition+=' && '+'"'+eval(item_conditions[i].left).toLowerCase()+'"'+'=='+'"'+item_conditions[i].right.toLowerCase()+'"'}else{item_condition+='"'+eval(item_conditions[i].left).toLowerCase()+'"'+'=='+'"'+item_conditions[i].right.toLowerCase()+'"'}}
61if(eval(item_condition)){newVariation[0]=item}}
62if(newVariation.length>0){$('#wp-chatbot-variation-add-to-cart').attr('variation_id',newVariation[0].variation_id);var priceSets="";if(newVariation[0].variation_data._sale_price[0]!=""){priceSets+='<strike>'+wpChatBotVar.currency_symbol+newVariation[0].variation_data._regular_price[0]+'</strike>  <strong>'+wpChatBotVar.currency_symbol+newVariation[0].variation_data._sale_price[0]+'</strong>'}else{priceSets+='<strong>'+wpChatBotVar.currency_symbol+newVariation[0].variation_data._regular_price[0]+'</strong>'}
63$('#wp-chatbot-product-price').html(priceSets)}});if($('.active-chat-board').length>0){$('#wp-chatbot-integration-container').show()}else{$('#wp-chatbot-integration-container').hide()}
64if(wpChatBotVar.enable_skype==1){$(document).on('click','.inetegration-skype-btn',function(e){$('#wp-chatbot-board-container').removeClass('active-chat-board');$('#wp-chatbot-integration-container').hide()})}})})

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.