function show_sticky_chat_widget(t){if(void 0!==t){const s=jQuery("#gsb-buttons-"+t);s.length&&(s.hasClass("open-form")?s.addClass("active").removeClass("open-form").addClass("open-buttons"):s.hasClass("open-whatsapp-popup")?s.addClass("active").removeClass("open-whatsapp-popup").addClass("open-buttons"):s.hasClass("open-wechat-popup")?s.addClass("active").removeClass("open-wechat-popup").addClass("open-buttons"):s.hasClass("active")&&"none"===s.css("display")?(s.show().addClass("open-buttons"),setSCWCookie("gsb-button-view-"+t,!0,2)):s.addClass("active").addClass("open-buttons"))}else{const t=jQuery(".gsb-buttons:eq(0)"),s=t.data("id");t.hasClass("open-form")?t.addClass("active").removeClass("open-form").addClass("open-buttons"):t.hasClass("open-whatsapp-popup")?t.addClass("active").removeClass("open-whatsapp-popup").addClass("open-buttons"):t.hasClass("open-wechat-popup")?t.addClass("active").removeClass("open-wechat-popup").addClass("open-buttons"):t.hasClass("active")&&"none"===t.css("display")?(t.show().addClass("open-buttons"),setSCWCookie("gsb-button-view-"+s,!0,2)):t.addClass("active").addClass("open-buttons")}}function hide_sticky_chat_widget(){jQuery(".gsb-buttons").removeClass("open-buttons")}function show_scw_contact_form(t){if(void 0!==t){var s=jQuery("#gsb-buttons-"+t);s.hasClass("open-buttons")?s.addClass("active").removeClass("open-buttons").addClass("open-form"):s.hasClass("open-whatsapp-popup")?s.addClass("active").removeClass("open-whatsapp-popup").addClass("open-form"):s.hasClass("open-wechat-popup")?s.addClass("active").removeClass("open-wechat-popup").addClass("open-form"):s.hasClass("active")&&"none"===s.css("display")?(s.show().addClass("open-form"),setSCWCookie("gsb-button-view-"+t,!0,2)):s.addClass("active").addClass("open-form")}else{var o=jQuery(".gsb-buttons:eq(0)"),e=o.data("id");o.hasClass("open-buttons")?o.addClass("active").removeClass("open-buttons").addClass("open-form"):o.hasClass("open-whatsapp-popup")?o.addClass("active").removeClass("open-whatsapp-popup").addClass("open-form"):o.hasClass("open-wechat-popup")?o.addClass("active").removeClass("open-wechat-popup").addClass("open-form"):o.hasClass("active")&&"none"===o.css("display")?(o.show().addClass("open-form"),setSCWCookie("gsb-button-view-"+e,!0,2)):o.addClass("active").addClass("open-form")}}function hide_scw_contact_form(){jQuery(".gsb-buttons").removeClass("open-form")}function setSCWCookie(t,s,o){var e=new Date;e.setTime(e.getTime()+36e5*o),document.cookie=t+"="+s+";path=/;expires="+e.toGMTString()}(()=>{function t(s){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(s)}!function(s){"use strict";var o,e=!1,n=!1,i=0,a=!0,b="",l="",r=0;function c(t,s,o){var e=s;s=parseInt(s-parseInt(.15*s))+15;var n,i=0,a=1.2,b=-1.5,l=1,r=0;do{b=Math.round(s*Math.cos(.5*(r-i)*Math.PI/(l+1))),n=Math.round(s*Math.sin(.5*(r-i)*Math.PI/(l+1))),r++,b<0&&(i=--r,a+=.9,l+=1)}while(r<=t);return b*=a,n*=a,n=parseFloat(n)-parseFloat(.15*e),"right"==o&&(b=parseFloat(b)-parseFloat(.15*e)),[b,n]}function g(t,o,n){var i="",a=1==t.contact_form_setting.is_redirect?t.contact_form_setting.redirect_url:"",b=1==t.contact_form_setting.is_redirect_new_tab?"blank":"";i+="<form class='scw-contact-form' id='scw_contact_form_"+o+"' data_target='"+b+"'>",i+="<div class='scw-form-container'>",i+="<div class='scw-form-close'><span class='dashicons dashicons-arrow-down-alt2'></span></div>",i+="<div class='scw-form-title'>"+t.contact_form_setting.form_title+"</div>",i+="<div class='scw-form'>",i+="<div class='scw-form-body'>",s.each(t.contact_form_setting.fields,(function(t,s){if("1"==s.is_visible){var e="",n="";"1"==s.is_required&&(e="is-require",n="<span> *</span>"),i+="<div class='scw-form-field'>","consent_checkbox"!=t&&(i+="<label for='"+o+"contact_form_"+t+"'>"+s.label+n+"</label>"),"message"==t?i+="<textarea id='"+o+"contact_form_"+t+"' data-name='"+t+"' name='scw_form_fields["+t+"]' class='scw-field scw-field-"+t+" "+e+"' placeholder='"+s.placeholder_text+"'></textarea>":"consent_checkbox"==t?(i+="<div class='d-flex consent-check-box'>",i+="<input type='checkbox' name='scw_consent_checkbox' class='scw-field sr-only scw-field-"+t+" "+e+"' data-name='"+t+"' id='"+o+"contact_form_"+t+"'>",i+="<label for='"+o+"contact_form_"+t+"'>"+s.placeholder_text+"</label>",i+="</div>"):i+="<input id='"+o+"contact_form_"+t+"' data-name='"+t+"' type='text' name='scw_form_fields["+t+"]' class='scw-field scw-field-"+t+" "+e+"' placeholder='"+s.placeholder_text+"' autocomplete='off'>","1"==s.is_required&&(i+="<span class='error-msg'>"+s.required_msg+"</span>"),"email"==t&&(i+="<span class='error-msg-valid'>Please enter valid email</span>"),"phone"==t&&(i+="<span class='error-msg-valid'>Please enter valid Phone</span>"),i+="</div>"}})),i+="</div>",i+="<div class='scw-form-btn'>",i+="<button type='submit'>"+t.contact_form_setting.btn_text+"</button>",i+="</div>";var l="",r="";1==t.contact_form_setting.is_close_aftr_submit&&(r="success-close-msg",l="data_close_sec='"+t.contact_form_setting.close_after_sec+"'"),i+="<div class='scw-form-success success-open-msg "+r+"' "+l+">",i+=t.contact_form_setting.success_msg,i+="</div>",i+="</div>",i+="</div>",i+="<input type='hidden' name='action' value='scw_save_form_data'>",i+="<input type='hidden' name='nonce' value='"+gsb_settings.form_data_nonce+"'>",i+="<input type='hidden' name='call_back_url' value='"+a+"'>",i+="<input type='hidden' name='scw_form_fields[page_url]' value='"+window.location.href+"'>",i+="<input type='hidden' name='scw_form_fields[widget_id]' value='"+o+"'>",i+="<input type='hidden' name='scw_form_fields[is_from_mobile]' value='"+e+"'>",i+="</form>";var c="chat-button-link",g="";d(n)&&(g=t.title);var p="<div class='gsb-trigger-contact'><a href='"+t.href+"' data-scb='"+g+"' target='"+t.target+"' class='scb-tooltip "+c+" gsb-social-channel' id='' data-channel='"+t.channel+"'><span class='sr-only'>"+t.title+'</span><span class="chat-button-icon"><svg xmlns="http://www.w3.org/2000/svg" fill="#ffffff" viewBox="0 0 30 30" width="90" height="90"><path d="M7 4c-.256 0-.512.097-.707.293l-2 2a1 1 0 0 0 0 1.414L11.586 15l-7.293 7.293a1 1 0 0 0 0 1.414l2 2a1 1 0 0 0 1.414 0L15 18.414l7.293 7.293a1 1 0 0 0 1.414 0l2-2a1 1 0 0 0 0-1.414L18.414 15l7.293-7.293a1 1 0 0 0 0-1.414l-2-2a1 1 0 0 0-1.414 0L15 11.586 7.707 4.293C7.512 4.097 7.256 4 7 4z"></path></svg></span></a></div>';s("#gsb-buttons-"+o+" .gsb-trigger .gsb-trigger-button").append(p),s("#gsb-buttons-"+o+" .gsb-trigger .gsb-trigger-button a.channel-contact_form span").removeClass(c);var u="<style>";return u+="#gsb-buttons-"+o+" .scw-contact-form .scw-form-btn button { background-color:"+t.contact_form_setting.btn_bg_color+";color:"+t.contact_form_setting.btn_color+" }",u+="#gsb-buttons-"+o+" .scw-contact-form .consent-check-box input:checked + label:before { background-color:"+t.contact_form_setting.btn_bg_color+";border-color:"+t.contact_form_setting.btn_bg_color+";color:"+t.contact_form_setting.btn_color+" }",u+="#gsb-buttons-"+o+" .scw-contact-form .scw-form-btn button:hover { background-color:"+t.contact_form_setting.btn_bg_hover_color+";color:"+t.contact_form_setting.btn_hover_color+" }",u+="</style>",s("head").append(u),i}function p(t,o,n){var i,a=new Date,b=a.getMinutes()<10?"0"+a.getMinutes():a.getMinutes(),l=(a.getHours()<10?"0"+a.getHours():a.getHours())+":"+b;i=e?"https://wa.me/"+t.value:"https://web.whatsapp.com/send";var r="";""==t.whatsapp_popup_setting.user_profile_image&&(r="no-user-profile");var c="";c+='<div class="whatsapp-popup" id="'+t.channel+'_popup">',c+='<div class="whatsapp-popup-header">',c+='<div class="whatsapp-profile">',""!=t.whatsapp_popup_setting.custom_whatsapp_profile?c+='<img src="'+t.whatsapp_popup_setting.custom_whatsapp_profile+'" alt="Profile image">':c+='<svg xmlns="http://www.w3.org/2000/svg" width="32" height="33" viewBox="0 0 32 33" fill="none"> <g filter="url(#filter0_f_9477_7201)"> <path d="M9.95924 25.2858L10.3674 25.5276C12.0818 26.545 14.0475 27.0833 16.052 27.0842H16.0562C22.2122 27.0842 27.2221 22.0753 27.2247 15.919C27.2258 12.9357 26.0652 10.1303 23.9565 8.01998C22.9223 6.97924 21.6919 6.15397 20.3365 5.59195C18.9812 5.02992 17.5278 4.74231 16.0606 4.74576C9.89989 4.74576 4.88975 9.75407 4.88756 15.91C4.88453 18.0121 5.47648 20.0722 6.59498 21.852L6.86071 22.2742L5.73223 26.394L9.95924 25.2858ZM2.50586 29.5857L4.41235 22.6249C3.23657 20.5878 2.618 18.2768 2.61873 15.9091C2.62183 8.50231 8.64941 2.47656 16.0564 2.47656C19.6508 2.47839 23.0245 3.87717 25.5618 6.41629C28.0991 8.95542 29.4952 12.3305 29.4939 15.9199C29.4906 23.3262 23.4621 29.353 16.0562 29.353H16.0504C13.8016 29.3521 11.592 28.788 9.62923 27.7177L2.50586 29.5857Z" fill="#B3B3B3"/> </g> <path d="M2.36719 29.447L4.27368 22.4862C3.09587 20.4442 2.47721 18.1278 2.48005 15.7705C2.48316 8.36364 8.51074 2.33789 15.9177 2.33789C19.5121 2.33972 22.8859 3.73849 25.4232 6.27762C27.9605 8.81675 29.3565 12.1918 29.3552 15.7812C29.3519 23.1875 23.3234 29.2143 15.9175 29.2143H15.9117C13.663 29.2134 11.4533 28.6493 9.49056 27.5791L2.36719 29.447Z" fill="white"/> <path d="M15.715 3.84769C9.17146 3.84769 3.85 9.16696 3.84767 15.7051C3.84445 17.9377 4.47318 20.1257 5.66119 22.016L5.94343 22.4646L4.48888 27.2525L9.23469 25.663L9.66824 25.9199C11.4891 27.0005 13.5769 27.5719 15.7061 27.5731H15.7105C22.249 27.5731 27.5705 22.2532 27.573 15.7146C27.5779 14.1562 27.2737 12.6123 26.6778 11.1722C26.082 9.73214 25.2064 8.42458 24.1017 7.3252C23.0032 6.21981 21.6963 5.34329 20.2567 4.74637C18.8171 4.14946 17.2734 3.844 15.715 3.84769Z" fill="#25D366"/> <path fill-rule="evenodd" clip-rule="evenodd" d="M12.0858 9.60401C11.8138 9.00922 11.5276 8.99717 11.2692 8.98687L10.5736 8.97852C10.3316 8.97852 9.93846 9.0679 9.60608 9.42544C9.27369 9.78297 8.33594 10.6471 8.33594 12.4046C8.33594 14.1622 9.63628 15.8605 9.81747 16.0991C9.99866 16.3377 12.3277 20.0594 16.0162 21.4913C19.0813 22.6813 19.705 22.4446 20.3706 22.3852C21.0361 22.3257 22.5175 21.521 22.8197 20.6869C23.1219 19.8527 23.1221 19.138 23.0315 18.9886C22.9409 18.8391 22.6989 18.7503 22.3357 18.5716C21.9725 18.3928 20.1888 17.5287 19.8562 17.4094C19.5236 17.2901 19.2818 17.2308 19.0396 17.5883C18.7975 17.9459 18.1029 18.7501 17.8911 18.9886C17.6793 19.227 17.4679 19.2569 17.1047 19.0783C16.7416 18.8998 15.5731 18.5224 14.1867 17.3054C13.108 16.3585 12.3799 15.1892 12.1679 14.8318C11.9559 14.4745 12.1454 14.2809 12.3274 14.1029C12.4902 13.9428 12.6901 13.6858 12.8719 13.4773C13.0537 13.2688 13.1135 13.1197 13.2343 12.8817C13.3551 12.6437 13.2949 12.4346 13.2041 12.256C13.1133 12.0774 12.4083 10.3105 12.0858 9.60401Z" fill="white"/> <defs> <filter id="filter0_f_9477_7201" x="1.21611" y="1.18682" width="29.5678" height="29.6889" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"> <feFlood flood-opacity="0" result="BackgroundImageFix"/> <feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/> <feGaussianBlur stdDeviation="0.644873" result="effect1_foregroundBlur_9477_7201"/> </filter> </defs> </svg>',c+="</div>",c+='<div class="whatsapp-popup-title-section">',c+='<div class="whatsapp-popup-title">'+t.whatsapp_popup_setting.whatsapp_popup_title+"</div>",c+='<div class="whatsapp-popup-sub-title">'+t.whatsapp_popup_setting.whatsapp_popup_sub_title+"</div>",c+="</div>",c+='<div class="whatsapp-popup-close-btn"><span class="dashicons dashicons-arrow-down-alt2"></span></div>',c+="</div>",c+='<div class="whatsapp-popup-body">',""!=t.whatsapp_popup_setting.user_profile_image&&(c+="<img src='"+t.whatsapp_popup_setting.user_profile_image+"' class='wp-user-profile-img'>"),""!=t.whatsapp_popup_setting.whatsapp_popup_text&&(c+='<div class="whatsapp-chat '+r+'">',""!=t.whatsapp_popup_setting.user_name_to_display&&(c+='<div class="whatsapp-chat-user-name">'+t.whatsapp_popup_setting.user_name_to_display+"</div>"),c+='<div class="whatsapp-chat-content">'+t.whatsapp_popup_setting.whatsapp_popup_text+"</div>",c+='<div class="whatsapp-chat-time">'+l+"</div>",c+="</div>"),c+="</div>",c+='<form class="whatsapp-popup-form" id="whatsapp_popup_form_'+o+'" method="get" autocomplete="off" target="_blank" action="'+i+'">',c+='<div class="whatsapp-popup-footer">',c+='<label class="sr-only" for="'+o+'_scw_whatsapp_input">Whatsapp chat</label>',c+='<input type="text" name="text" id="'+o+'_scw_whatsapp_input" class="whatsapp-chat-input" value="'+t.whatsapp_message+'">',c+='<div class="whatsapp-form-btn">',c+='<button type="submit" class="whatsapp-send-btn">',c+='<svg viewBox="0 0 24 24" height="24" width="24"  version="1.1" x="0px" y="0px" enable-background="new 0 0 24 24"><title>send</title><path  d="M1.101,21.757L23.8,12.028L1.101,2.3l0.011,7.912l13.623,1.816L1.112,13.845 L1.101,21.757z"></path></svg>',c+='<span class="sr-only">Submit</span>',c+="</button>",c+='<input type="hidden" name="phone" value="'+t.value+'">',c+="</div>",c+="</div>",c+="</form>",c+="</div>";var g="chat-button-link",p="";d(n)&&(p=t.title);var u="<div class='gsb-trigger-whatsapp-popup'><a href='"+t.href+"' data-scb='"+p+"' target='"+t.target+"' class='scb-tooltip "+g+" gsb-social-channel' id='' data-channel='"+t.channel+"'><span class='sr-only'>"+t.title+'</span><span class="chat-button-icon"><svg xmlns="http://www.w3.org/2000/svg" fill="#ffffff" viewBox="0 0 30 30" width="90" height="90"><path d="M7 4c-.256 0-.512.097-.707.293l-2 2a1 1 0 0 0 0 1.414L11.586 15l-7.293 7.293a1 1 0 0 0 0 1.414l2 2a1 1 0 0 0 1.414 0L15 18.414l7.293 7.293a1 1 0 0 0 1.414 0l2-2a1 1 0 0 0 0-1.414L18.414 15l7.293-7.293a1 1 0 0 0 0-1.414l-2-2a1 1 0 0 0-1.414 0L15 11.586 7.707 4.293C7.512 4.097 7.256 4 7 4z"></path></svg></span></a></div>';return s("#gsb-buttons-"+o+" .gsb-trigger .gsb-trigger-button").append(u),s("#gsb-buttons-"+o+" .gsb-trigger .gsb-trigger-button a.channel-whatsapp span").removeClass(g),c}function u(t,o,e){var n="";""!=t.wechat_popup_setting.wechat_qr_popup_heading&&""!=t.value&&(n=": ");var i="";i+='<div class="wechat-popup" id="'+t.channel+'_popup">',i+='<div class="wechat-popup-header">',i+='<div class="wechat-profile">',i+='<svg xmlns="http://www.w3.org/2000/svg" height="512" viewBox="0 0 24 24" width="512" style="color: rgb(255, 255, 255); fill: rgb(255, 255, 255);"><path d="M12.82 9.618c-7.242 3.732-2.425 13.745 6.6 11.13.842.327 1.592.857 2.408 1.25-.21-.7-.436-1.412-.676-2.11 2.8-1.995 3.414-4.818 2.38-7.138-1.616-3.677-6.776-5.183-10.72-3.133zm2.53 3.658c-.21.655-1.156.85-1.615.353-.506-.46-.31-1.424.355-1.63.734-.3 1.582.54 1.26 1.277zm4.78.094h.014c-.257.587-1.14.725-1.575.27-.21-.192-.27-.48-.344-.733.104-.46.42-.937.93-.96.705-.098 1.336.776.975 1.422z"></path><path d="M17.414 8.248c-.436-2.144-1.936-3.955-3.824-5h.027v-.001C6.917-.54-1.425 4.742.187 10.97c.433 1.848 1.71 3.397 3.262 4.43-.3.853-.585 1.706-.855 2.565L5.52 16.4c1.17.377 2.415.56 3.66.52-1.538-4.412 2.407-9.086 8.234-8.67zm-6.077-2.56c.785-.316 1.713.345 1.65 1.2L13 6.89c.008.965-1.275 1.567-1.995.913-.747-.538-.535-1.845.342-2.115zM6.932 7.134c-.172.838-1.29 1.243-1.946.68-.76-.537-.546-1.868.345-2.14.873-.338 1.865.552 1.6 1.46z"></path></svg>',i+="</div>",i+='<div class="wechat-popup-title-section">',i+='<div class="wechat-popup-title">'+t.wechat_popup_setting.wechat_qr_popup_heading+n+t.value+"</div>",i+="</div>",i+='<div class="wechat-popup-close-btn"><span class="dashicons dashicons-arrow-down-alt2"></span></div>',i+="</div>",i+='<div class="wechat-popup-body">',""!=t.wechat_popup_setting.wechat_qr_heading&&(i+='<div class="wechat-popup-qr-heading">'+t.wechat_popup_setting.wechat_qr_heading+":</div>"),i+='<div class="wechat-popup-qr-img">',i+='<img src="'+t.wechat_popup_setting.wechat_qr_img+'" alt="wechat QR code">',i+="</div>",i+="</div>",i+="</div>";var a="chat-button-link",b="";d(e)&&(b=t.title);var l="<div class='gsb-trigger-wechat-popup'><a href='"+t.href+"' data-scb='"+b+"' target='"+t.target+"' class='scb-tooltip "+a+" gsb-social-channel' id='' data-channel='"+t.channel+"'><span class='sr-only'>"+t.title+'</span><span class="chat-button-icon"><svg xmlns="http://www.w3.org/2000/svg" fill="#ffffff" viewBox="0 0 30 30" width="90" height="90"><path d="M7 4c-.256 0-.512.097-.707.293l-2 2a1 1 0 0 0 0 1.414L11.586 15l-7.293 7.293a1 1 0 0 0 0 1.414l2 2a1 1 0 0 0 1.414 0L15 18.414l7.293 7.293a1 1 0 0 0 1.414 0l2-2a1 1 0 0 0 0-1.414L18.414 15l7.293-7.293a1 1 0 0 0 0-1.414l-2-2a1 1 0 0 0-1.414 0L15 11.586 7.707 4.293C7.512 4.097 7.256 4 7 4z"></path></svg></span></a></div>';return s("#gsb-buttons-"+o+" .gsb-trigger .gsb-trigger-button").append(l),s("#gsb-buttons-"+o+" .gsb-trigger .gsb-trigger-button a.channel-wechat span").removeClass(a),i}function d(t){var s=!0,o=f(t);return"first_click"==t.settings.show_cta&&o>1&&"open"==t.settings.default_state&&(s=!1),"first_click"==t.settings.show_cta&&_("gsb-button-click-"+t.id)&&(s=!1),s}function h(t){setTimeout((function(){s("#gsb-buttons-"+t.id+" .scw-greeting-message").addClass("active")}),1e3*parseInt(t.settings.greeting_after))}function m(t){return"custom"==t.settings.position?t.settings.custom_position:t.settings.position}function v(t,o){var e=function(t,o){"whatsapp"!=t.channelName||a||("yes"==t.is_mobile_link?(""!=t.whatsapp_message?t.href="whatsapp://send?phone="+t.value+"&text="+t.whatsapp_message:t.href="whatsapp://send?phone="+t.value,t.target=""):(""!=t.whatsapp_message?t.href="https://wa.me/"+t.value+"?text="+t.whatsapp_message:t.href="https://wa.me/"+t.value,t.target="_blank")),"whatsapp"==t.channelName&&"yes"==t.whatsapp_popup_setting.show_whatsapp_popup&&(t.href="javascript:;",t.target="");var e=function(t,o){var e="";s("#gsb-buttons-"+o).hasClass("view-list")&&(e="channel-"+t.channel+" chat-button-link button-link-"+t.channel+"-"+o,""!=t.custom_class&&(e+=" "+s.trim(t.custom_class)),"instagram"==t.channelName&&"#df0079"==t.bg_hover_color&&(e+=" default-insta-hover"),"instagram"==t.channelName&&"#df0079"==t.bg_color&&(e+=" channel-instagram-base"));var n="<span class='chat-button-icon "+e+" chat-button-"+t.channel+"-"+o+"'>";return""!=t.image_url?n+="<img src='"+t.image_url+"' alt='"+t.title+"' />":n+=t.icon,n+="</span>"}(t,o),n="channel-"+t.channel+" chat-button-link button-link-"+t.channel+"-"+o;"whatsapp"==t.channelName&&(n+=" channel-whats"),"wechat"==t.channelName&&(n+=" channel-wechats"),"instagram"==t.channelName&&"#df0079"==t.bg_hover_color&&(n+=" default-insta-hover");var i="";"instagram"==t.channelName&&"#df0079"==t.bg_color&&(i=" channel-instagram-base");var l="chat-button-"+t.channel+"-"+o;""!=t.custom_class&&(n+=" "+s.trim(t.custom_class)),""!=t.custom_id&&(l=s.trim(t.custom_id)),("instagram"!=t.channelName||"instagram"==t.channelName&&"#df0079"!=t.bg_color)&&(b+="#gsb-buttons-"+o+" .channel-"+t.channel+" {background: "+t.bg_color+"; color: "+t.text_color+"; }"),"twitter"!=t.channelName||"#65BBF2"!=t.bg_color&&"#65bbf2"!=t.bg_color||(b+="#gsb-buttons-"+o+" .channel-"+t.channel+" {background: #000000; color: "+t.text_color+"; }"),("instagram"!=t.channelName||"instagram"==t.channelName&&"#df0079"!=t.bg_hover_color)&&(b+="#gsb-buttons-"+o+" .channel-"+t.channel+":hover, #gsb-buttons-"+o+" .list-channel a:hover .channel-"+t.channel+" {background: "+t.bg_hover_color+"; color: "+t.text_hover_color+"; }"),"twitter"!=t.channelName||"#65BBF2"!=t.bg_hover_color&&"#65bbf2"!=t.bg_hover_color||(b+="#gsb-buttons-"+o+" .channel-"+t.channel+":hover {background: #000000; color: "+t.text_hover_color+"; }"),b+="#gsb-buttons-"+o+" .channel-"+t.channel+" svg {fill: "+t.text_color+"; color: "+t.text_color+"; }",b+="#gsb-buttons-"+o+" .channel-"+t.channel+":hover svg, #gsb-buttons-"+o+" .list-channel a:hover .channel-"+t.channel+" svg {fill: "+t.text_hover_color+"; color: "+t.text_hover_color+"; }","slack"==t.channelName&&"#ffffff"!=t.text_color&&(b+="#gsb-buttons-"+o+" .channel-"+t.channel+":not(:hover) svg path {fill: "+t.text_color+"; }"),"slack"==t.channelName&&"#ffffff"!=t.text_hover_color&&(b+="#gsb-buttons-"+o+" .channel-"+t.channel+":hover svg path {fill: "+t.text_hover_color+"; color: "+t.text_hover_color+"; }");var r="",c=t.title;return s("#gsb-buttons-"+o+" .gsb-button-list").hasClass("menu_view")&&(r="<div class='menu-view-title'>"+t.title+"</div>",c=""),s("#gsb-buttons-"+o).hasClass("view-list")?"<div class='list-channel-container'><div class='chat-button list-channel'><a href='"+t.href+"' data-scb='"+t.title+"' target='"+t.target+"' class='gsb-social-channel' id='"+l+"' data-channel='"+t.channel+"'>"+e+"<div class='list-channel-title'>"+t.title+"</div></a></div></div>":"<div class='chat-button'><a href='"+t.href+"' data-scb='"+c+"' target='"+t.target+"' class='scb-tooltip "+n+" gsb-social-channel "+i+"' id='"+l+"' data-channel='"+t.channel+"'><span class='sr-only'>"+t.title+"</span>"+e+r+"</a></div>"}(t,o);return e}function f(t){var o=0;return t.channels.length&&s.each(t.channels,(function(t,s){w(s)&&o++})),o}function w(t){return"contact_form"==t.channelName&&(t.value="123"),!(""==t.value||!(a&&"yes"==t.for_desktop||!a&&"yes"==t.for_mobile))}function _(t){var s=document.cookie.match("(^|;) ?"+t+"=([^;]*)(;|$)");return s?s[2]:null}function C(t,s,o){var e=new Date;e.setTime(e.getTime()+36e5*o),document.cookie=t+"="+s+";path=/;expires="+e.toGMTString()}s(document).ready((function(){(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|ipad|iris|kindle|Android|Silk|lge |maemo|midp|mmp|netfront|opera m(ob|in)i|palm(os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(navigator.userAgent)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s)|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp(i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac(|\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt(|\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg(g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v)|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v)|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-|)|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(navigator.userAgent.substr(0,4)))&&(a=!1,e=!0),"object"==("undefined"==typeof gsb_settings?"undefined":t(gsb_settings))&&gsb_settings.buttons.length&&(s.each(gsb_settings.buttons,(function(t,e){var a=f(e),r=parseInt(e.settings.icon_size),x=m(e);if(a>0){var k="";"list_view"==e.settings.view&&a>=1&&(k="view-list"),"grid_view"==e.settings.view&&a>=1&&(k="view-grid");var y="<div class='gsb-buttons active has-shadow cta-"+e.settings.show_cta+" "+k+"' id='gsb-buttons-"+e.id+"' data-id='"+e.id+"' data-animation='"+e.settings.animation+"'><div class='gsb-buttons-content'><div class='gsb-button-list "+e.settings.view+"'></div><div class='gsb-trigger'></div></div></div>";s("body").append(y);var z="<div class='gsb-trigger-button'><div class='gsb-trigger-top'><a role='button' href='#' class='chat-button-link'><span class='sr-only'>Contact Us</span>"+e.settings.icon_url+"</a> </div><div class='gsb-trigger-bottom'><a role='button' href='#' class='chat-button-link'><span class='sr-only'>Close</span><span class='chat-button-icon'><svg xmlns='http://www.w3.org/2000/svg' fill='#ffffff' viewBox='0 0 30 30' width='90' height='90' ><path d='M7 4c-.256 0-.512.097-.707.293l-2 2a1 1 0 0 0 0 1.414L11.586 15l-7.293 7.293a1 1 0 0 0 0 1.414l2 2a1 1 0 0 0 1.414 0L15 18.414l7.293 7.293a1 1 0 0 0 1.414 0l2-2a1 1 0 0 0 0-1.414L18.414 15l7.293-7.293a1 1 0 0 0 0-1.414l-2-2a1 1 0 0 0-1.414 0L15 11.586 7.707 4.293C7.512 4.097 7.256 4 7 4z'/></svg></span></a> </div></div>";if(s("#gsb-buttons-"+e.id+" .gsb-trigger").html(z),1==a&&"icon_view"==e.settings.view){var X="";s.each(e.channels,(function(t,o){if(w(o)){if(X=v(o,e.id),"contact_form"==o.channelName){var n=g(o,e.id,e);s("#gsb-buttons-"+e.id).append(n)}if("whatsapp"==o.channelName&&"yes"==o.whatsapp_popup_setting.show_whatsapp_popup){var i=p(o,e.id,e);s("#gsb-buttons-"+e.id).append(i)}if("wechat"==o.channelName&&""!=o.wechat_popup_setting.wechat_qr_img){var a=u(o,e.id,e);s("#gsb-buttons-"+e.id).append(a),b+="#gsb-buttons-"+e.id+" .wechat-popup#"+o.channel+"_popup .wechat-popup-header {background-color: "+o.wechat_popup_setting.wechat_qr_bg_color+"}"}}})),""!=X&&(s("#gsb-buttons-"+e.id+" .gsb-trigger .gsb-trigger-button").append(X),s("#gsb-buttons-"+e.id+" .gsb-trigger-top, #gsb-buttons-"+e.id+" .gsb-trigger-bottom").remove(),s("#gsb-buttons-"+e.id).addClass("single"),s("#gsb-buttons-"+e.id+" .chat-button").hasClass("scb-tooltip")?(s("#gsb-buttons-"+e.id+" .chat-button .scb-tooltip").addClass("cooltipz--visible"),s("#gsb-buttons-"+e.id+" .chat-button .scb-tooltip").attr("data-tooltip-dir","right"==x?"left":"right")):(s("#gsb-buttons-"+e.id+" .chat-button").addClass("cooltipz--visible"),s("#gsb-buttons-"+e.id+" .chat-button").attr("data-tooltip-dir","right"==x?"left":"right")))}else s.each(e.channels,(function(t,o){if(w(o)){var n=v(o,e.id);if(s("#gsb-buttons-"+e.id+" .gsb-button-list").append(n),"contact_form"==o.channelName){var i=g(o,e.id,e);s("#gsb-buttons-"+e.id).append(i)}if("whatsapp"==o.channelName&&"yes"==o.whatsapp_popup_setting.show_whatsapp_popup){var a=p(o,e.id,e);s("#gsb-buttons-"+e.id).append(a)}if("wechat"==o.channelName&&""!=o.wechat_popup_setting.wechat_qr_img){var l=u(o,e.id,e);s("#gsb-buttons-"+e.id).append(l),b+="#gsb-buttons-"+e.id+" .wechat-popup#"+o.channel+"_popup .wechat-popup-header {background-color: "+o.wechat_popup_setting.wechat_qr_bg_color+"}"}}}));if("list_view"==e.settings.view&&a>=1){var I="<div class='channel-list-container'>";""!=e.settings.list_view_subtitle&&(I+="<div class='grid-title-container'><div class='grid-title'>"+e.settings.list_view_subtitle+"</div></div>"),I+="<div class='channel-list'>",I+=s("#gsb-buttons-"+e.id+" .gsb-button-list.list_view").html(),I+="</div>",I+="<div>",s("#gsb-buttons-"+e.id+" .gsb-button-list.list_view").html(I)}if("grid_view"==e.settings.view&&a>=1&&(I="<div class='channel-grid'>",""!=e.settings.list_view_subtitle&&(I+="<div class='grid-title-container'><div class='grid-title'>"+e.settings.list_view_subtitle+"</div></div>"),I+="<div class='channel-grid-container'>",I+=s("#gsb-buttons-"+e.id+" .gsb-button-list.grid_view").html(),I+="</div>",I+="</div>",s("#gsb-buttons-"+e.id+" .gsb-button-list.grid_view").html(I)),"icon_view"!=e.settings.view&&a>=1&&""!=e.settings.list_view_title){var L="";L+="<div class='list_title_container'>",L+="<a href='javascript:;' class='close-view-btn'><span class='dashicons dashicons-arrow-down-alt2'></span></a>",L+="<span class='list_title'>"+e.settings.list_view_title.replace(/(<([^>]+)>)/gi,"")+"</span>",L+="</div>","list_view"==e.settings.view?s("#gsb-buttons-"+e.id+" .gsb-button-list.list_view .channel-list-container").before(L):s("#gsb-buttons-"+e.id+" .gsb-button-list.grid_view .channel-grid").before(L)}var Y="";("open"==e.settings.default_state&&"no"==e.settings.show_close_button&&"icon_view"==e.settings.view||"open"==e.settings.default_state&&"no"==e.settings.show_close_button&&"menu_view"==e.settings.view)&&(Y="has-no-close-button"),s("#gsb-buttons-"+e.id).addClass(Y),"open"==e.settings.default_state&&"yes"==e.settings.show_close_button&&(s("#gsb-buttons-"+e.id).addClass("has-close-button"),s("#gsb-buttons-"+e.id).addClass("has-no-animation")),"open"==e.settings.default_state&&"corner_circle_view"==e.settings.view&&s("#gsb-buttons-"+e.id).addClass("has-no-animation"),"click"==e.settings.default_state&&s("#gsb-buttons-"+e.id).addClass("has-no-tooltip-animation"),b+=".whatsapp-chat.no-user-profile:before { border-top: 0 solid transparent;}",b+=".whatsapp-chat.no-user-profile { border-top-left-radius: 6px;}";var M=0,q=0;if(s("#gsb-buttons-"+e.id).hasClass("has-no-close-button"))b+="#gsb-buttons-"+e.id+".open-buttons .gsb-button-list .chat-button {transition:none !important; display: block;}";else for(q=0;q<a;q++)"corner_circle_view"==e.settings.view?"right"==x?(M=c(q,r,x),b+="#gsb-buttons-"+e.id+" .gsb-button-list.corner_circle_view .chat-button:nth-child("+(q+1)+"){opacity: 0; visibility: hidden; margin-bottom: 0; position: absolute;}",b+="#gsb-buttons-"+e.id+".open-buttons .gsb-button-list.corner_circle_view .chat-button:nth-child("+(q+1)+"){transform: translate("+-1*M[0]+"px, "+-1*M[1]+"px); opacity: 1; visibility: visible; transition: all ease-in-out 250ms, transform 200ms "+150*q+"ms, opacity 200ms "+150*q+"ms}"):(M=c(q,r,x),b+="#gsb-buttons-"+e.id+" .gsb-button-list.corner_circle_view .chat-button:nth-child("+(q+1)+"){opacity: 0; visibility: hidden; margin-bottom: 0; position: absolute;}",b+="#gsb-buttons-"+e.id+".open-buttons .gsb-button-list.corner_circle_view .chat-button:nth-child("+(q+1)+"){transform: translate("+M[0]+"px, "+-1*M[1]+"px); opacity: 1; visibility: visible; transition: all ease-in-out 250ms, transform 200ms "+150*q+"ms, opacity 200ms "+150*q+"ms}"):"vertical"==e.settings.menu_view?"ginger-menu-none"==e.settings.menu_animation?(b+="#gsb-buttons-"+e.id+" .gsb-button-list.icon_view .chat-button:nth-child("+(q+1)+"){-webkit-transform: translateY(-"+(r+8)*(a-q)+"px); transform: translateY(-"+(r+8)*(a-q)+"px)  scale(1); display: none;}",b+="#gsb-buttons-"+e.id+".open-buttons .gsb-button-list.icon_view .chat-button:nth-child("+(q+1)+"){-webkit-transform: translateY(-"+(r+8)*(a-q)+"px); transform: translateY(-"+(r+8)*(a-q)+"px)  scale(1);transition:none !important; display: block;}"):"ginger-menu-slide"==e.settings.menu_animation?(b+="#gsb-buttons-"+e.id+" .gsb-button-list.icon_view .chat-button:nth-child("+(q+1)+"){-webkit-transform: translateY(0px) scale(1); transform: translateY(0px) scale(1); transition-delay: "+.075*(q+1)+"s;}",b+="#gsb-buttons-"+e.id+".open-buttons .gsb-button-list.icon_view .chat-button:nth-child("+(q+1)+"){-webkit-transform: translateY(-"+(r+8)*(a-q)+"px) scale(1); transform: translateY(-"+(r+8)*(a-q)+"px)  scale(1);}"):"ginger-menu-fade"==e.settings.menu_animation?(b+="#gsb-buttons-"+e.id+" .gsb-button-list.icon_view .chat-button:nth-child("+(q+1)+"){-webkit-transform: translateY(-"+(r+8)*(a-q)+"px); transform: translateY(-"+(r+8)*(a-q)+"px)  scale(1); opacity: 0; visibility: hidden; transition-delay: "+.1*(a-q-1)+"s;}",b+="#gsb-buttons-"+e.id+".open-buttons .gsb-button-list.icon_view .chat-button:nth-child("+(q+1)+"){-webkit-transform: translateY(-"+(r+8)*(a-q)+"px); transform: translateY(-"+(r+8)*(a-q)+"px)  scale(1);  opacity: 1; visibility: visible;}"):"ginger-menu-spin"==e.settings.menu_animation?(b+="#gsb-buttons-"+e.id+" .gsb-button-list.icon_view .chat-button:nth-child("+(q+1)+"){-webkit-transform: translateY(-"+(r+8)*(a-q)+"px)  rotate(0deg); transform: translateY(-"+(r+8)*(a-q)+"px)  rotate(0deg); transition-delay: "+.1*(a-q-1)+"s;}",b+="#gsb-buttons-"+e.id+".open-buttons .gsb-button-list.icon_view .chat-button:nth-child("+(q+1)+"){-webkit-transform: translateY(-"+(r+8)*(a-q)+"px) rotate(360deg); transform: translateY(-"+(r+8)*(a-q)+"px) rotate(360deg);}"):"ginger-menu-pop"==e.settings.menu_animation?(b+="#gsb-buttons-"+e.id+" .gsb-button-list.icon_view .chat-button:nth-child("+(q+1)+"){-webkit-transform: translateY(-"+(r+8)*(a-q)+"px) scale(0); transform: translateY(-"+(r+8)*(a-q)+"px) scale(0); transition-delay: "+.075*(a-q-1)+"s;}",b+="#gsb-buttons-"+e.id+".open-buttons .gsb-button-list.icon_view .chat-button:nth-child("+(q+1)+"){-webkit-transform: translateY(-"+(r+8)*(a-q)+"px) scale(1); transform: translateY(-"+(r+8)*(a-q)+"px) scale(1);}"):(b+="#gsb-buttons-"+e.id+" .gsb-button-list.icon_view .chat-button:nth-child("+(q+1)+"){-webkit-transform: translateY(-"+(r+8)*(a-q)+"px); transform: translateY(-"+(r+8)*(a-q)+"px)  scale(1); display: none;}",b+="#gsb-buttons-"+e.id+".open-buttons .gsb-button-list.icon_view .chat-button:nth-child("+(q+1)+"){-webkit-transform: translateY(-"+(r+8)*(a-q)+"px); transform: translateY(-"+(r+8)*(a-q)+"px)  scale(1); display: block;}"):"right"==x?"ginger-menu-none"==e.settings.menu_animation?(b+="#gsb-buttons-"+e.id+" .gsb-button-list.icon_view .chat-button:nth-child("+(q+1)+"){-webkit-transform: translateX(-"+(r+8)*(a-q)+"px); transform: translateX(-"+(r+8)*(a-q)+"px)  scale(1); display: none;}",b+="#gsb-buttons-"+e.id+".open-buttons .gsb-button-list.icon_view .chat-button:nth-child("+(q+1)+"){-webkit-transform: translateX(-"+(r+8)*(a-q)+"px); transform: translateX(-"+(r+8)*(a-q)+"px)  scale(1);transition:none !important; display: block;}"):"ginger-menu-slide"==e.settings.menu_animation?(b+="#gsb-buttons-"+e.id+" .gsb-button-list.icon_view .chat-button:nth-child("+(q+1)+"){-webkit-transform: translateX(0px) scale(1); transform: translateX(0px) scale(1); transition-delay: "+.075*(q+1)+"s;}",b+="#gsb-buttons-"+e.id+".open-buttons .gsb-button-list.icon_view .chat-button:nth-child("+(q+1)+"){-webkit-transform: translateX(-"+(r+8)*(a-q)+"px) scale(1); transform: translateX(-"+(r+8)*(a-q)+"px)  scale(1);}"):"ginger-menu-fade"==e.settings.menu_animation?(b+="#gsb-buttons-"+e.id+" .gsb-button-list.icon_view .chat-button:nth-child("+(q+1)+"){-webkit-transform: translateX(-"+(r+8)*(a-q)+"px); transform: translateX(-"+(r+8)*(a-q)+"px)  scale(1); opacity: 0; visibility: hidden; transition-delay: "+.1*(a-q-1)+"s;}",b+="#gsb-buttons-"+e.id+".open-buttons .gsb-button-list.icon_view .chat-button:nth-child("+(q+1)+"){-webkit-transform: translateX(-"+(r+8)*(a-q)+"px); transform: translateX(-"+(r+8)*(a-q)+"px)  scale(1);  opacity: 1; visibility: visible;}"):"ginger-menu-spin"==e.settings.menu_animation?(b+="#gsb-buttons-"+e.id+" .gsb-button-list.icon_view .chat-button:nth-child("+(q+1)+"){-webkit-transform: translateX(-"+(r+8)*(a-q)+"px)  rotate(0deg); transform: translateX(-"+(r+8)*(a-q)+"px)  rotate(0deg); transition-delay: "+.1*(a-q-1)+"s;}",b+="#gsb-buttons-"+e.id+".open-buttons .gsb-button-list.icon_view .chat-button:nth-child("+(q+1)+"){-webkit-transform: translateX(-"+(r+8)*(a-q)+"px) rotate(360deg); transform: translateX(-"+(r+8)*(a-q)+"px) rotate(360deg);}"):"ginger-menu-pop"==e.settings.menu_animation?(b+="#gsb-buttons-"+e.id+" .gsb-button-list.icon_view .chat-button:nth-child("+(q+1)+"){-webkit-transform: translateX(-"+(r+8)*(a-q)+"px) scale(0); transform: translateX(-"+(r+8)*(a-q)+"px) scale(0); transition-delay: "+.075*(a-q-1)+"s;}",b+="#gsb-buttons-"+e.id+".open-buttons .gsb-button-list.icon_view .chat-button:nth-child("+(q+1)+"){-webkit-transform: translateX(-"+(r+8)*(a-q)+"px) scale(1); transform: translateX(-"+(r+8)*(a-q)+"px) scale(1);}"):(b+="#gsb-buttons-"+e.id+" .gsb-button-list.icon_view .chat-button:nth-child("+(q+1)+"){-webkit-transform: translateX(-"+(r+8)*(a-q)+"px); transform: translateX(-"+(r+8)*(a-q)+"px)  scale(1); display: none;}",b+="#gsb-buttons-"+e.id+".open-buttons .gsb-button-list.icon_view .chat-button:nth-child("+(q+1)+"){-webkit-transform: translateX(-"+(r+8)*(a-q)+"px); transform: translateX(-"+(r+8)*(a-q)+"px)  scale(1); display: block;}"):"ginger-menu-none"==e.settings.menu_animation?(b+="#gsb-buttons-"+e.id+" .gsb-button-list.icon_view .chat-button:nth-child("+(q+1)+"){-webkit-transform: translateX("+(r+8)*(a-q)+"px); transform: translateX("+(r+8)*(a-q)+"px)  scale(1); display: none;}",b+="#gsb-buttons-"+e.id+".open-buttons .gsb-button-list.icon_view .chat-button:nth-child("+(q+1)+"){-webkit-transform: translateX("+(r+8)*(a-q)+"px); transform: translateX("+(r+8)*(a-q)+"px)  scale(1);transition:none !important; display: block;}"):"ginger-menu-slide"==e.settings.menu_animation?(b+="#gsb-buttons-"+e.id+" .gsb-button-list.icon_view .chat-button:nth-child("+(q+1)+"){-webkit-transform: translateX(0px) scale(1); transform: translateX(0px) scale(1); transition-delay: "+.075*(q+1)+"s;}",b+="#gsb-buttons-"+e.id+".open-buttons .gsb-button-list.icon_view .chat-button:nth-child("+(q+1)+"){-webkit-transform: translateX("+(r+8)*(a-q)+"px) scale(1); transform: translateX("+(r+8)*(a-q)+"px)  scale(1);}"):"ginger-menu-fade"==e.settings.menu_animation?(b+="#gsb-buttons-"+e.id+" .gsb-button-list.icon_view .chat-button:nth-child("+(q+1)+"){-webkit-transform: translateX("+(r+8)*(a-q)+"px); transform: translateX("+(r+8)*(a-q)+"px)  scale(1); opacity: 0; visibility: hidden; transition-delay: "+.1*(a-q-1)+"s;}",b+="#gsb-buttons-"+e.id+".open-buttons .gsb-button-list.icon_view .chat-button:nth-child("+(q+1)+"){-webkit-transform: translateX("+(r+8)*(a-q)+"px); transform: translateX("+(r+8)*(a-q)+"px)  scale(1);  opacity: 1; visibility: visible;}"):"ginger-menu-spin"==e.settings.menu_animation?(b+="#gsb-buttons-"+e.id+" .gsb-button-list.icon_view .chat-button:nth-child("+(q+1)+"){-webkit-transform: translateX("+(r+8)*(a-q)+"px)  rotate(0deg); transform: translateX("+(r+8)*(a-q)+"px)  rotate(0deg); transition-delay: "+.1*(a-q-1)+"s;}",b+="#gsb-buttons-"+e.id+".open-buttons .gsb-button-list.icon_view .chat-button:nth-child("+(q+1)+"){-webkit-transform: translateX("+(r+8)*(a-q)+"px) rotate(360deg); transform: translateX("+(r+8)*(a-q)+"px) rotate(360deg);}"):"ginger-menu-pop"==e.settings.menu_animation?(b+="#gsb-buttons-"+e.id+" .gsb-button-list.icon_view .chat-button:nth-child("+(q+1)+"){-webkit-transform: translateX("+(r+8)*(a-q)+"px) scale(0); transform: translateX("+(r+8)*(a-q)+"px) scale(0); transition-delay: "+.075*(a-q-1)+"s;}",b+="#gsb-buttons-"+e.id+".open-buttons .gsb-button-list.icon_view .chat-button:nth-child("+(q+1)+"){-webkit-transform: translateX("+(r+8)*(a-q)+"px) scale(1); transform: translateX("+(r+8)*(a-q)+"px) scale(1);}"):(b+="#gsb-buttons-"+e.id+" .gsb-button-list.icon_view .chat-button:nth-child("+(q+1)+"){-webkit-transform: translateX("+(r+8)*(a-q)+"px); transform: translateX("+(r+8)*(a-q)+"px)  scale(1); display: none;}",b+="#gsb-buttons-"+e.id+".open-buttons .gsb-button-list.icon_view .chat-button:nth-child("+(q+1)+"){-webkit-transform: translateX("+(r+8)*(a-q)+"px); transform: translateX("+(r+8)*(a-q)+"px)  scale(1); display: block;}");b+="#gsb-buttons-"+e.id+".list_view {-webkit-transform: translateY(50px) scale(1); transform: translateY(50px) scale(1); transition-delay: 0.5s; opacity: 0; visibility:hidden;}",b+="#gsb-buttons-"+e.id+".open-buttons .list_view {-webkit-transform: translateY(0px) scale(1); transform: translateY(0px)  scale(1);visibility: visible;opacity: 1;}",b+="#gsb-buttons-"+e.id+".grid_view {-webkit-transform: translateY(50px) scale(1); transform: translateY(50px) scale(1); transition-delay: 0.5s; opacity: 0; visibility:hidden;}",b+="#gsb-buttons-"+e.id+".open-buttons .grid_view {-webkit-transform: translateY(0px) scale(1); transform: translateY(0px)  scale(1);visibility: visible;opacity: 1;}",s("#gsb-buttons-"+e.id+" .gsb-trigger").outerHeight(!0),parseInt(10),b+="#gsb-buttons-"+e.id+" .gsb-button-list.menu_view {-webkit-transform: translateY(0px) scale(1); transform: translateY(0px) scale(1); opacity: 0; visibility:hidden;}",b+="#gsb-buttons-"+e.id+" .gsb-button-list.menu_view .chat-button {opacity: 0; visibility:hidden;}",b+="#gsb-buttons-"+e.id+".open-buttons .gsb-button-list.menu_view .chat-button {opacity: 1; visibility:visible;}",b+="#gsb-buttons-"+e.id+".open-buttons .gsb-button-list.menu_view {-webkit-transform: translateY(-5px) scale(1); transform: translateY(-5px)  scale(1);visibility: visible;opacity: 1;}",b+="#gsb-buttons-"+e.id+".open-buttons.has-no-close-button .gsb-button-list.menu_view {-webkit-transform: translateY(0px) scale(1); transform: translateY(0px)  scale(1);visibility: visible;opacity: 1;}",q=1;var N=0;if("list_view"==e.settings.view&&a>=1||"menu_view"==e.settings.view);else for(q=1,N=0;N<a;q++,N++)"vertical"==e.settings.menu_view?b+="right"==x?"#gsb-buttons-"+e.id+".has-no-close-button:not(.single) .gsb-button-list .chat-button:nth-child("+(N+1)+"){opacity: 1;visibility: visible;pointer-events: auto;right: 0;-webkit-transform: translateY(-"+(r+8)*(a-q)+"px); transform: translateY(-"+(r+8)*(a-q)+"px);transition-delay:-2s;}":"#gsb-buttons-"+e.id+".has-no-close-button:not(.single) .gsb-button-list .chat-button:nth-child("+(N+1)+"){opacity: 1;visibility: visible;pointer-events: auto;left: 0;-webkit-transform: translateY(-"+(r+8)*(a-q)+"px); transform: translateY(-"+(r+8)*(a-q)+"px);transition-delay:-2s;}":b+="right"==x?"#gsb-buttons-"+e.id+".has-no-close-button:not(.single) .gsb-button-list .chat-button:nth-child("+(N+1)+"){opacity: 1;visibility: visible;pointer-events: auto;right: 0;-webkit-transform: translateX(-"+(r+8)*(a-q)+"px); transform: translateX(-"+(r+8)*(a-q)+"px);transition-delay:-2s;}":"#gsb-buttons-"+e.id+".has-no-close-button:not(.single) .gsb-button-list .chat-button:nth-child("+(N+1)+"){opacity: 1;visibility: visible;pointer-events: auto;left: 0;-webkit-transform: translateX("+(r+8)*(a-q)+"px); transform: translateX("+(r+8)*(a-q)+"px);transition-delay:-2s;}";var j=_("gsb-button-click-"+e.id);"open"==e.settings.default_state&&("no"==e.settings.hide_menu_after_close_click?(s("#gsb-buttons-"+e.id).addClass("open-buttons"),j&&s("#gsb-buttons-"+e.id).removeClass("has-close-button")):j?s("#gsb-buttons-"+e.id).removeClass("has-close-button"):s("#gsb-buttons-"+e.id).addClass("open-buttons"))}var B=Math.ceil(2*r/10);if("icon_view"==e.settings.view)b+="#gsb-buttons-"+e.id+" .chat-button, #gsb-buttons-"+e.id+" .gsb-trigger-contact, #gsb-buttons-"+e.id+" .gsb-trigger-whatsapp-popup, #gsb-buttons-"+e.id+" .gsb-trigger-wechat-popup {width: "+(r+8)+"px; height: "+(r+8)+"px; }",b+="#gsb-buttons-"+e.id+" .gsb-trigger {width: "+(r+8)+"px; height: "+(r+8)+"px; }",b+="#gsb-buttons-"+e.id+" .chat-button-link {width: "+r+"px; height: "+r+"px; padding: "+B+"px; }",b+="#gsb-buttons-"+e.id+" .gsb-trigger-button {width: "+r+"px; height: "+r+"px; }",b+="#gsb-buttons-"+e.id+" .gsb-trigger .gsb-trigger-top {width: "+r+"px; height: "+r+"px; }",b+="#gsb-buttons-"+e.id+" .gsb-trigger .gsb-trigger-bottom {width: "+r+"px; height: "+r+"px; }",b+="#gsb-buttons-"+e.id+" .chat-button-icon {width: "+(r-2*B)+"px; height: "+(r-2*B)+"px; }",b+="#gsb-buttons-"+e.id+".single .gsb-trigger-button {width: "+(r+8)+"px; height: "+(r+8)+"px; }";else if("corner_circle_view"==e.settings.view){var D=parseInt(r-parseInt(.15*r));b+="#gsb-buttons-"+e.id+" .chat-button, #gsb-buttons-"+e.id+" .gsb-trigger-contact, #gsb-buttons-"+e.id+" .gsb-trigger-whatsapp-popup, #gsb-buttons-"+e.id+" .gsb-trigger-wechat-popup {width: "+(r+8)+"px; height: "+(r+8)+"px; }",b+="#gsb-buttons-"+e.id+" .gsb-trigger {width: "+(r+8)+"px; height: "+(r+8)+"px; }",b+="#gsb-buttons-"+e.id+" .gsb-button-list .chat-button {width: "+(D+8)+"px; height: "+(D+8)+"px; }",b+="#gsb-buttons-"+e.id+" .gsb-button-list .gsb-trigger {width: "+(r+8)+"px; height: "+(r+8)+"px; }",b+="#gsb-buttons-"+e.id+" .gsb-trigger .chat-button-link {width: "+r+"px; height: "+r+"px; padding: "+B+"px; }",b+="#gsb-buttons-"+e.id+" .gsb-button-list .chat-button-link {width: "+D+"px; height: "+D+"px; padding: "+B+"px; }",b+="#gsb-buttons-"+e.id+" .gsb-trigger-button {width: "+r+"px; height: "+r+"px; }",b+="#gsb-buttons-"+e.id+" .gsb-trigger .gsb-trigger-top {width: "+r+"px; height: "+r+"px; }",b+="#gsb-buttons-"+e.id+" .gsb-trigger .gsb-trigger-bottom {width: "+r+"px; height: "+r+"px; }",b+="#gsb-buttons-"+e.id+" .gsb-button-list .chat-button-icon {width: "+(D-2*B)+"px; height: "+(D-2*B)+"px; }",b+="#gsb-buttons-"+e.id+" .gsb-button-list .chat-button-icon i {font-size: "+(D-2*B)+"px; line-height: "+(D-2*B)+"px; }",b+="#gsb-buttons-"+e.id+" .gsb-trigger .chat-button-icon {width: "+(r-2*B)+"px; height: "+(r-2*B)+"px; }",b+="#gsb-buttons-"+e.id+" .gsb-trigger .chat-button-icon i {font-size: "+(r-2*B)+"px; line-height: "+(r-2*B)+"px; }"}else b+="#gsb-buttons-"+e.id+" .gsb-trigger .chat-button, #gsb-buttons-"+e.id+" .gsb-trigger-contact, #gsb-buttons-"+e.id+" .gsb-trigger-whatsapp-popup, #gsb-buttons-"+e.id+" .gsb-trigger-wechat-popup {width: "+(r+8)+"px; height: "+(r+8)+"px; }",b+="#gsb-buttons-"+e.id+" .gsb-trigger {width: "+(r+8)+"px; height: "+(r+8)+"px; }",b+="#gsb-buttons-"+e.id+" .gsb-trigger-button {width: "+r+"px; height: "+r+"px; }",b+="#gsb-buttons-"+e.id+" .gsb-trigger .gsb-trigger-top {width: "+r+"px; height: "+r+"px; }",b+="#gsb-buttons-"+e.id+" .gsb-trigger .gsb-trigger-bottom {width: "+r+"px; height: "+r+"px; }",b+="#gsb-buttons-"+e.id+" .gsb-trigger .chat-button-link {width: "+r+"px; height: "+r+"px; padding: "+B+"px; }",b+="#gsb-buttons-"+e.id+" .gsb-trigger .chat-button-icon {width: "+(r-2*B)+"px; height: "+(r-2*B)+"px; }";b+="#gsb-buttons-"+e.id+" .gsb-trigger .gsb-trigger-top .chat-button-link {background: "+e.settings.bg_color+"; color: "+e.settings.text_color+";  }",b+="#gsb-buttons-"+e.id+" .gsb-trigger .gsb-trigger-top .chat-button-link svg {fill: "+e.settings.text_color+"; color: "+e.settings.text_color+";  }",b+="#gsb-buttons-"+e.id+" .gsb-trigger .gsb-trigger-bottom .chat-button-link, #gsb-buttons-"+e.id+" .gsb-trigger .gsb-trigger-contact .chat-button-link, #gsb-buttons-"+e.id+" .gsb-trigger .gsb-trigger-whatsapp-popup .chat-button-link, #gsb-buttons-"+e.id+" .gsb-trigger .gsb-trigger-wechat-popup .chat-button-link {background: "+e.settings.bg_color+"; color: "+e.settings.text_color+";  }",b+="#gsb-buttons-"+e.id+" .gsb-trigger .gsb-trigger-bottom .chat-button-link svg, #gsb-buttons-"+e.id+" .gsb-trigger .gsb-trigger-contact .chat-button-link svg, #gsb-buttons-"+e.id+" .gsb-trigger .gsb-trigger-whatsapp-popup .chat-button-link svg, #gsb-buttons-"+e.id+" .gsb-trigger .gsb-trigger-wechat-popup .chat-button-link svg {fill: "+e.settings.text_color+"; color: "+e.settings.text_color+";  }",b+="#gsb-buttons-"+e.id+" .gsb-trigger .gsb-trigger-top .chat-button-link:hover {background: "+e.settings.interaction_bg_color+"; color: "+e.settings.interaction_text_color+";  }",b+="#gsb-buttons-"+e.id+" .gsb-trigger .gsb-trigger-top .chat-button-link:hover svg {fill: "+e.settings.interaction_text_color+"; color: "+e.settings.interaction_text_color+";  }",b+="#gsb-buttons-"+e.id+" .gsb-trigger .gsb-trigger-bottom .chat-button-link:hover, #gsb-buttons-"+e.id+" .gsb-trigger .gsb-trigger-contact .chat-button-link:hover, #gsb-buttons-"+e.id+" .gsb-trigger .gsb-trigger-whatsapp-popup .chat-button-link:hover, #gsb-buttons-"+e.id+" .gsb-trigger .gsb-trigger-wechat-popup .chat-button-link:hover {background: "+e.settings.interaction_bg_color+"; color: "+e.settings.interaction_text_color+";  }",b+="#gsb-buttons-"+e.id+" .gsb-trigger .gsb-trigger-bottom .chat-button-link:hover svg, #gsb-buttons-"+e.id+" .gsb-trigger .gsb-trigger-contact .chat-button-link:hover svg, #gsb-buttons-"+e.id+" .gsb-trigger .gsb-trigger-whatsapp-popup .chat-button-link:hover svg, #gsb-buttons-"+e.id+" .gsb-trigger .gsb-trigger-wechat-popup .chat-button-link:hover svg {fill: "+e.settings.interaction_text_color+"; color: "+e.settings.interaction_text_color+";  }",b+="#gsb-buttons-"+e.id+" .chat-button-link {border-radius: "+e.settings.border_radius+"px; }",b+="#gsb-buttons-"+e.id+" [data-scb][data-tooltip-dir]::after, [data-scb][class*=cooltipz]::after, #gsb-buttons-"+e.id+" .cta-tooltip, #gsb-buttons-"+e.id+" .cta-tooltip p {background-color: "+e.settings.tooltip_settings.bg_color+"; color: "+e.settings.tooltip_settings.text_color+"; border-radius: "+e.settings.tooltip_settings.border_radius+"px; font-size:"+e.settings.tooltip_settings.font_size+"px; line-height: "+e.settings.tooltip_settings.tooltip_height+"px; }",b+="#gsb-buttons-"+e.id+" [data-scb][data-tooltip-dir][data-tooltip-dir=left]::before, [data-scb][data-tooltip-dir].cooltipz--left::before, [data-scb][class*=cooltipz][data-tooltip-dir=left]::before, [data-scb][class*=cooltipz].cooltipz--left::before, #gsb-buttons-"+e.id+" [data-tooltip-dir=left] .cta-tooltip:after {border-left-color: "+e.settings.tooltip_settings.bg_color+"; }",b+="#gsb-buttons-"+e.id+" [data-scb][data-tooltip-dir][data-tooltip-dir=top]::before, [data-scb][data-tooltip-dir].cooltipz--top::before, [data-scb][class*=cooltipz][data-tooltip-dir=top]::before, [data-scb][class*=cooltipz].cooltipz--top::before {border-top-color: "+e.settings.tooltip_settings.bg_color+"; }",b+="#gsb-buttons-"+e.id+" [data-scb][data-tooltip-dir][data-tooltip-dir=right]::before, [data-scb][data-tooltip-dir].cooltipz--right::before, [data-scb][class*=cooltipz][data-tooltip-dir=right]::before, [data-scb][class*=cooltipz].cooltipz--right::before, #gsb-buttons-"+e.id+" [data-tooltip-dir=right] .cta-tooltip:after {border-right-color: "+e.settings.tooltip_settings.bg_color+"; }",b+="#gsb-buttons-"+e.id+" .chat-button-link.has-image .chat-button-icon img, #gsb-buttons-"+e.id+" .custom-icon-img, #gsb-buttons-"+e.id+" .chat-button-link.has-image img {width: "+r+"px; height: "+r+"px; line-height: "+r+"px; border-radius: "+e.settings.border_radius+"px; -moz-border-radius: "+e.settings.border_radius+"px; -webkit-border-radius: "+e.settings.border_radius+"px; }","list_view"==e.settings.view&&a>=1&&""!=e.settings.list_view_title&&(b+="#gsb-buttons-"+e.id+" .gsb-button-list.list_view .list_title_container  {background-color: "+e.settings.list_title_bg+";color: "+e.settings.list_title_color+"; }"),"grid_view"==e.settings.view&&a>=1&&""!=e.settings.list_view_title&&(b+="#gsb-buttons-"+e.id+" .gsb-button-list.grid_view .list_title_container  {background-color: "+e.settings.list_title_bg+";color: "+e.settings.list_title_color+"; }"),"0"==e.settings.tooltip_settings.border_radius&&"0"==e.settings.tooltip_settings.tooltip_height&&"0"==e.settings.tooltip_settings.font_size&&(b+="#gsb-buttons-"+e.id+" [data-scb][data-tooltip-dir][data-tooltip-dir=left]::before, [data-scb][data-tooltip-dir].cooltipz--left::before, [data-scb][class*=cooltipz][data-tooltip-dir=left]::before, [data-scb][class*=cooltipz].cooltipz--left::before, [data-scb][data-tooltip-dir][data-tooltip-dir=right]::before, [data-scb][data-tooltip-dir].cooltipz--right::before, [data-scb][class*=cooltipz][data-tooltip-dir=right]::before, [data-scb][class*=cooltipz].cooltipz--right::before, [data-scb][data-tooltip-dir][data-tooltip-dir=bottom]::before, [data-scb][data-tooltip-dir].cooltipz--bottom::before, [data-scb][class*=cooltipz][data-tooltip-dir=bottom]::before, [data-scb][class*=cooltipz].cooltipz--bottom::before, [data-scb][data-tooltip-dir][data-tooltip-dir=bottom-left]::before, [data-scb][data-tooltip-dir].cooltipz--bottom-left::before, [data-scb][class*=cooltipz][data-tooltip-dir=bottom-left]::before, [data-scb][class*=cooltipz].cooltipz--bottom-left::before, [data-scb][data-tooltip-dir][data-tooltip-dir=bottom-right]::before, [data-scb][data-tooltip-dir].cooltipz--bottom-right::before, [data-scb][class*=cooltipz][data-tooltip-dir=bottom-right]::before, [data-scb][class*=cooltipz].cooltipz--bottom-right::before, [data-scb][data-tooltip-dir][data-tooltip-dir=top]::before, [data-scb][data-tooltip-dir].cooltipz--top::before, [data-scb][class*=cooltipz][data-tooltip-dir=top]::before, [data-scb][class*=cooltipz].cooltipz--top::before, [data-scb][data-tooltip-dir][data-tooltip-dir=top-left]::before, [data-scb][data-tooltip-dir].cooltipz--top-left::before, [data-scb][class*=cooltipz][data-tooltip-dir=top-left]::before, [data-scb][class*=cooltipz].cooltipz--top-left::before, [data-scb][data-tooltip-dir][data-tooltip-dir=top-right]::before, [data-scb][data-tooltip-dir].cooltipz--top-right::before, [data-scb][class*=cooltipz][data-tooltip-dir=top-right]::before, [data-scb][class*=cooltipz].cooltipz--top-right::before { border:0 }"),s("#gsb-buttons-"+e.id).hasClass("single")&&(b+="#gsb-buttons-"+e.id+" .gsb-trigger {padding: 0;}"),b+="#gsb-buttons-"+e.id+" .gsb-trigger .chat-button a:not(."+e.settings.animation+") .gsb-pending-message {top: 3%; right: 3%;}",b+="#gsb-buttons-"+e.id+" .gsb-trigger .chat-button a:not(."+e.settings.animation+") + .gsb-pending-message {top: 3%; right: 3%;}","none"!=e.settings.animation&&"ginger-btn-fade"!=e.settings.animation&&"ginger-btn-pulse"!=e.settings.animation&&"ginger-btn-spin"!=e.settings.animation||(b+="#gsb-buttons-"+e.id+" .gsb-trigger .chat-button a."+e.settings.animation+" .gsb-pending-message {top: 3%; right: 3%;}",b+="#gsb-buttons-"+e.id+" .gsb-trigger .chat-button a."+e.settings.animation+" + .gsb-pending-message {top: 3%; right: 3%;}");var S=function(t){return"vertical"==t.settings.menu_view?"right"==m(t)?"left":"right":"top"}(e);s("#gsb-buttons-"+e.id+" .gsb-button-list a.scb-tooltip").attr("data-tooltip-dir",S),s("#gsb-buttons-"+e.id).addClass(x+"-side"),s("#gsb-buttons-"+e.id).addClass(e.settings.menu_view+"-menu"),"vertical"==e.settings.menu_view?"left"==x?(s("#gsb-buttons-"+e.id+" .gsb-trigger-top").attr("data-tooltip-dir","right"),s("#gsb-buttons-"+e.id+" .gsb-trigger-bottom .chat-button-link").attr("data-tooltip-dir","right")):(s("#gsb-buttons-"+e.id+" .gsb-trigger-top").attr("data-tooltip-dir","left"),s("#gsb-buttons-"+e.id+" .gsb-trigger-bottom .chat-button-link").attr("data-tooltip-dir","left")):(s("#gsb-buttons-"+e.id+" .gsb-trigger-bottom .chat-button-link").attr("data-tooltip-dir","top"),"left"==x?s("#gsb-buttons-"+e.id+" .gsb-trigger-top").attr("data-tooltip-dir","right"):s("#gsb-buttons-"+e.id+" .gsb-trigger-top").attr("data-tooltip-dir","left")),"grid_view"==e.settings.view&&s("#gsb-buttons-"+e.id+" .gsb-button-list.grid_view .channel-grid-container .chat-button .scb-tooltip").attr("data-tooltip-dir","top"),"corner_circle_view"==e.settings.view&&s("#gsb-buttons-"+e.id+" .gsb-button-list.corner_circle_view .chat-button .scb-tooltip").attr("data-tooltip-dir","top");var T=e.settings.call_to_action,H="";""!=T&&(H+="<span class='cta-tooltip'>"+T+"</span>"),s("#gsb-buttons-"+e.id+" .gsb-trigger-top").append(H),d(e)&&s("#gsb-buttons-"+e.id+" .gsb-trigger-top").addClass("cooltipz--visible");var Q=e.settings.font_family;if(""!=Q&&"Arial"!=Q&&"Tahoma"!=Q&&"Verdana"!=Q&&"Helvetica"!=Q&&"Times New Roman"!=Q&&"Trebuchet MS"!=Q&&"Georgia"!=Q&&s("head").append("<link id='#gsb-buttons-"+e.id+"' href='https://fonts.googleapis.com/css?family="+e.settings.font_family+"' rel='stylesheet' type='text/css' >"),""!=Q?(s("#gsb-buttons-"+e.id).css("font-family",Q),s("#gsb-buttons-"+e.id+" button").css("font-family",Q)):s("#gsb-buttons-"+e.id).css("font-family","-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif"),s("#gsb-buttons-"+e.id+" .gsb-button-list").addClass(e.settings.menu_animation),function(t){var o=_("gsb-button-click-"+t.id);if((0==s("#gsb-buttons-"+t.id+" .gsb-button-list .chat-button").length||"yes"==t.settings.has_pending_message)&&!o&&"yes"==t.settings.has_pending_message){s("#gsb-buttons-"+t.id).hasClass("single")?(s("#gsb-buttons-"+t.id+" .gsb-trigger .chat-button a").append("<span class='gsb-pending-message'>"+t.settings.no_of_messages+"</span>"),s("#gsb-buttons-"+t.id+" .gsb-trigger .chat-button a").after("<span class='gsb-pending-message'>"+t.settings.no_of_messages+"</span>")):(s("#gsb-buttons-"+t.id+" .gsb-trigger .gsb-trigger-top a").append("<span class='gsb-pending-message'>"+t.settings.no_of_messages+"</span>"),s("#gsb-buttons-"+t.id+" .gsb-trigger .gsb-trigger-top a").after("<span class='gsb-pending-message'>"+t.settings.no_of_messages+"</span>"));var e=20*t.settings.icon_size/54;s("#gsb-buttons-"+t.id+" .gsb-pending-message").css({width:e+"px",height:e+"px","font-size":parseInt(e/4)+5+"px",color:t.settings.message_text_color,"background-color":t.settings.message_bg_color})}}(e),function(t){_("gsb-button-click-"+t.id)||(s("#gsb-buttons-"+t.id).hasClass("single")?s("#gsb-buttons-"+t.id+" .gsb-trigger .chat-button a").addClass(t.settings.animation):s("#gsb-buttons-"+t.id+" .gsb-trigger .gsb-trigger-top a").addClass(t.settings.animation))}(e),function(t){var o=m(t);if(s("#gsb-buttons-"+t.id).hasClass("single")){var e=s("#gsb-buttons-"+t.id+" .gsb-trigger .chat-button a").attr("data-scb"),n=t.settings.call_to_action;s("#gsb-buttons-"+t.id+" .gsb-trigger .chat-button a").removeAttr("data-tooltip-dir data-scb"),s("#gsb-buttons-"+t.id+" .gsb-trigger .chat-button a").removeClass("scb-tooltip cooltipz--visible"),(s("#gsb-buttons-"+t.id).hasClass("cta-first_click")&&!_("gsb-button-click-"+t.id)||!s("#gsb-buttons-"+t.id).hasClass("cta-first_click"))&&s("#gsb-buttons-"+t.id+".gsb-trigger .chat-button").addClass("scb-tooltip cooltipz--visible"),s("#gsb-buttons-"+t.id+" .gsb-trigger .chat-button.scb-tooltip").attr("data-tooltip-dir","right"==o?"left":"right"),s("#gsb-buttons-"+t.id+" .gsb-trigger .chat-button").attr("data-hover-scb",e);var i="";""!=n&&(i+="<span class='cta-tooltip'>"+n+"</span>"),d(t)&&s("#gsb-buttons-"+t.id+" .gsb-trigger .chat-button").append(i).addClass("cooltipz--visible")}}(e),function(t){var o=_("gsb-greeting-"+t.id),e=t.settings.default_state,n=f(t);if(!o&&(1==n&&"open"!=e||n>1&&"click"==e)&&""!=t.settings.greeting_text&&"yes"==t.settings.show_greeting_message){var i="";i+="<span class='scw-greeting-message'>",i+="<span>"+t.settings.greeting_text+"</span>",i+='<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M18 6L6 18M6 6L18 18" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/> </svg>',i+="</span>",s("#gsb-buttons-"+t.id+" .gsb-buttons-content").append(i)}}(e),function(t){if("yes"==t.triggers.after_seconds&&!_("gsb-button-view-"+t.id)){s("#gsb-buttons-"+t.id).hide();var o=parseInt(t.triggers.seconds);o>0&&setTimeout((function(){s("#gsb-buttons-"+t.id).show(),h(t),C("gsb-button-view-"+t.id,!0,2)}),1e3*o)}}(e),function(t){if("yes"==t.triggers.on_scroll&&!_("gsb-button-view-"+t.id)){s("#gsb-buttons-"+t.id).hide();var o=parseInt(t.triggers.page_scroll);jQuery(window).scroll((function(){o=parseInt(t.triggers.page_scroll);var e=jQuery(document).height()-jQuery(window).height(),n=jQuery(window).scrollTop();0!=n&&n/e*100>=o&&(s("#gsb-buttons-"+t.id).show(),h(t),C("gsb-button-view-"+t.id,!0,2))}))}}(e),function(t){if("yes"==t.triggers.exit_intent){if("yes"==t.triggers.browser&&!_("gsb-button-view-"+t.id)){s("#gsb-buttons-"+t.id).hide();var e=m(t);b="mouseout",l=function(o){null==o.toElement&&null==o.relatedTarget&&(n||(s("#gsb-buttons-"+t.id).show(),s("#gsb-buttons-"+t.id).append("<div class='exit-intent'></div>"),"left"==e?s("#gsb-buttons-"+t.id+" .exit-intent").addClass("left-position"):s("#gsb-buttons-"+t.id+" .exit-intent").addClass("right-position"),s("#gsb-buttons-"+t.id).hasClass("single-btn")||s("#gsb-buttons-"+t.id+" .main-button").trigger("click"),setTimeout((function(){s("#gsb-buttons-"+t.id+" .exit-intent").addClass("active"),setTimeout((function(){s("#gsb-buttons-"+t.id+" .exit-intent").removeClass("active")}),2e3)}),100),h(t),n=!0,C("gsb-button-view-"+t.id,!0,2)))},(a=document).addEventListener?a.addEventListener(b,l,!1):a.attachEvent&&a.attachEvent("on"+b,l)}"yes"==t.triggers.on_inactivity&&(_("gsb-button-view-"+t.id)||(s("#gsb-buttons-"+t.id).hide(),o=setInterval((function(){!function(t){if(i+=1,!_("gsb-button-view-"+t.id)&&(s("#gsb-buttons-"+t.id).hide(),i>59)){if(!n){var e=m(t);s("#gsb-buttons-"+t.id).show(),s("#gsb-buttons-"+t.id).append("<div class='exit-intent'></div>"),"left"==e?s("#gsb-buttons-"+t.id+" .exit-intent").addClass("left-position"):s("#gsb-buttons-"+t.id+" .exit-intent").addClass("right-position"),s("#gsb-buttons-"+t.id).hasClass("single-btn")||s("#gsb-buttons-"+t.id+" .main-button").trigger("click"),setTimeout((function(){s("#gsb-buttons-"+t.id+" .exit-intent").addClass("active"),setTimeout((function(){s("#gsb-buttons-"+t.id+" .exit-intent").removeClass("active")}),2e3)}),100),n=!0,h(t),C("gsb-button-view-"+t.id,!0,2)}window.clearInterval(o)}}(t)}),1e3),s(document).on("mousemove",(function(t){i=0})),s(document).on("keyup",(function(t){i=0}))))}var a,b,l}(e),b+="#gsb-buttons-"+e.id+" .scw-greeting-message {background-color:"+e.settings.greeting_bg_color+";color:"+e.settings.greeting_text_color+";}",b+="#gsb-buttons-"+e.id+" .scw-greeting-message svg {fill:"+e.settings.greeting_text_color+";}",b+="#gsb-buttons-"+e.id+" .scw-greeting-message svg path {stroke:"+e.settings.greeting_text_color+";}",b+="#gsb-buttons-"+e.id+" .scw-greeting-message:after{border-color:"+e.settings.greeting_bg_color+" transparent transparent transparent;}",s("#gab_front_css").remove(),s("head").append("<style id='gab_front_css'>"+b+"</style>"),(_("gsb-button-view-"+e.id)||"0"==e.triggers.page_scroll&&"0"==e.triggers.seconds&&"no"==e.triggers.exit_intent)&&h(e),"right"==x){var P=s("#gsb-buttons-"+e.id+" .gsb-button-list.list_view").outerWidth()+parseInt(s("#gsb-buttons-"+e.id).css("right").replace("px","")),A=s("#gsb-buttons-"+e.id+" .gsb-button-list.grid_view").outerWidth()+parseInt(s("#gsb-buttons-"+e.id).css("right").replace("px",""));s(window).width()<=P&&(l+="#gsb-buttons-"+e.id+".right-side .gsb-button-list.list_view {transform: scale(0.5); transform-origin: bottom right;}"),s(window).width()<=A&&(l+="#gsb-buttons-"+e.id+".right-side .gsb-button-list.grid_view {transform: scale(0.5); transform-origin: bottom right;}")}else P=s("#gsb-buttons-"+e.id+" .gsb-button-list.list_view").outerWidth()+parseInt(s("#gsb-buttons-"+e.id).css("left").replace("px","")),A=s("#gsb-buttons-"+e.id+" .gsb-button-list.grid_view").outerWidth()+parseInt(s("#gsb-buttons-"+e.id).css("left").replace("px","")),s(window).width()<=P&&(l+="#gsb-buttons-"+e.id+".left-side .gsb-button-list.list_view {transform: scale(0.5); transform-origin: bottom left;}"),s(window).width()<=A&&(l+="#gsb-buttons-"+e.id+".left-side .gsb-button-list.grid_view {transform: scale(0.5); transform-origin: bottom left;}");var F=s("#gsb-buttons-"+e.id+" .gsb-trigger").outerHeight(!0);if(l+="#gsb-buttons-"+e.id+".open-form .scw-contact-form, #gsb-buttons-"+e.id+".open-whatsapp-popup .whatsapp-popup, #gsb-buttons-"+e.id+".open-wechat-popup .wechat-popup { bottom:"+F+"px }",l+="#gsb-buttons-"+e.id+".open-buttons:not(.has-no-close-button) .gsb-button-list.menu_view { bottom:"+F+"px }",s("#gsb_custom_css").remove(),s("head").append("<style id='gsb_custom_css'>"+l+"</style>"),s("#gsb-buttons-"+e.id+" .list_title_container").length)var W=s("#gsb-buttons-"+e.id+" .list_title_container").outerHeight(!0);else W=0;var U=s("#gsb-buttons-"+e.id).css("bottom").replace("px",""),Z=parseInt(F)+parseInt(U)+parseInt(W)+parseInt("15");s("#gsb-buttons-"+e.id+" .list_view .channel-list-container").css("max-height","calc(100vh - "+Z+"px)");var R=parseInt(F)+parseInt(U)+parseInt(s("#gsb-buttons-"+e.id+" .whatsapp-popup").outerHeight(!0)),G=parseInt(F)+parseInt(U)+parseInt(s("#gsb-buttons-"+e.id+" .whatsapp-popup .whatsapp-popup-header").outerHeight(!0))+parseInt(s("#gsb-buttons-"+e.id+" .whatsapp-popup .whatsapp-popup-footer").outerHeight(!0))+parseInt(10);R>s(window).height()?(s("#gsb-buttons-"+e.id+" .whatsapp-popup .whatsapp-popup-body").css("max-height","calc(100vh - "+G+"px)"),s("#gsb-buttons-"+e.id+" .whatsapp-popup .whatsapp-popup-body").css("min-height","calc(100vh - "+G+"px)")):s("#gsb-buttons-"+e.id+" .whatsapp-popup .whatsapp-popup-body").css("min-height","270px"),s(window).resize((function(){R>s(window).height()?(s("#gsb-buttons-"+e.id+" .whatsapp-popup .whatsapp-popup-body").css("max-height","calc(100vh - "+G+"px)"),s("#gsb-buttons-"+e.id+" .whatsapp-popup .whatsapp-popup-body").css("min-height","calc(100vh - "+G+"px)")):s("#gsb-buttons-"+e.id+" .whatsapp-popup .whatsapp-popup-body").css("min-height","270px")}));var $=parseInt(F)+parseInt(U)+parseInt(s("#gsb-buttons-"+e.id+" .wechat-popup .wechat-popup-header").outerHeight(!0))+10;s("#gsb-buttons-"+e.id+" .wechat-popup .wechat-popup-body").css("max-height","calc(100vh - "+$+"px)");var E=F+5;s("#gsb-buttons-"+e.id+".view-list .list_view").css("bottom",E+"px"),s("#gsb-buttons-"+e.id+".view-grid .grid_view").css("bottom",E+"px"),s(document).on("click","#gsb-buttons-"+e.id+" .scw-greeting-message svg",(function(t){t.preventDefault(),s("#gsb-buttons-"+e.id+" .scw-greeting-message").remove(),C("gsb-greeting-"+e.id,!0,2)})),s(document).on("mouseenter","#gsb-buttons-"+e.id+".single .gsb-trigger .chat-button",(function(){s("#gsb-buttons-"+e.id+".single").hasClass("cta-first_click")&&!d(e)&&(s("#gsb-buttons-"+e.id+".gsb-trigger .chat-button").addClass("scb-tooltip cooltipz--visible"),s("#gsb-buttons-"+e.id+" .gsb-trigger .chat-button.scb-tooltip").attr("data-tooltip-dir","right"==x?"left":"right"),s("#gsb-buttons-"+e.id+".single .gsb-trigger .chat-button .cta-tooltip").show());var t=s(this).attr("data-hover-scb");s("#gsb-buttons-"+e.id+".single .gsb-trigger .chat-button .cta-tooltip").html(t),s("#gsb-buttons-"+e.id+".single .gsb-trigger .chat-button .cta-tooltip").length||""==t||s(this).append("<span class='cta-tooltip'>"+t+"</span>").addClass("cooltipz--visible")})),s(document).on("mouseleave","#gsb-buttons-"+e.id+".single .gsb-trigger .chat-button",(function(){s("#gsb-buttons-"+e.id+".single").hasClass("cta-first_click")&&!d(e)&&s("#gsb-buttons-"+e.id+".single .gsb-trigger .chat-button .cta-tooltip").hide(),s("#gsb-buttons-"+e.id+".single .gsb-trigger .chat-button .cta-tooltip").html(e.settings.call_to_action),""==e.settings.call_to_action&&""!=s(this).attr("data-hover-scb")&&(s(".cta-tooltip").remove(),s(this).removeClass("cooltipz--visible"))})),s(document).on("touch click","body",(function(){(s("#gsb-buttons-"+e.id).hasClass("view-grid")&&s("#gsb-buttons-"+e.id).hasClass("open-buttons")||s("#gsb-buttons-"+e.id).hasClass("view-list")&&s("#gsb-buttons-"+e.id).hasClass("open-buttons"))&&(s("#gsb-buttons-"+e.id).removeClass("open-buttons"),C("gsb-greeting-"+e.id,!0,2),s("#gsb-buttons-"+e.id+" .scw-greeting-message").remove()),s("#gsb-buttons-"+e.id).hasClass("open-whatsapp-popup")&&s("#gsb-buttons-"+e.id).hasClass("has-no-close-remove")&&s("#gsb-buttons-"+e.id).removeClass("open-whatsapp-popup has-no-close-remove").addClass("open-buttons has-no-close-button"),s("#gsb-buttons-"+e.id).hasClass("open-form")&&s("#gsb-buttons-"+e.id).hasClass("has-no-close-remove")&&s("#gsb-buttons-"+e.id).removeClass("open-form has-no-close-remove").addClass("open-buttons has-no-close-button"),s("#gsb-buttons-"+e.id).hasClass("open-wechat-popup")&&s("#gsb-buttons-"+e.id).hasClass("has-no-close-remove")&&s("#gsb-buttons-"+e.id).removeClass("open-wechat-popup has-no-close-remove").addClass("open-buttons has-no-close-button"),s("#gsb-buttons-"+e.id).hasClass("open-whatsapp-popup")&&s("#gsb-buttons-"+e.id).removeClass("open-whatsapp-popup"),s("#gsb-buttons-"+e.id).hasClass("open-form")&&s("#gsb-buttons-"+e.id).removeClass("open-form"),s("#gsb-buttons-"+e.id).hasClass("open-wechat-popup")&&s("#gsb-buttons-"+e.id).removeClass("open-wechat-popup")}))})),s(".chat-button-icon img").each((function(){s(this).closest(".chat-button-link").addClass("has-image")})),s(document).on("submit",".scw-contact-form",(function(t){t.preventDefault(),s(this).closest(".scw-contact-form").find(".scw-form-field").removeClass("has-error"),s(this).closest(".scw-contact-form").find(".scw-form-field").removeClass("has-error-valid");var o=s(this).closest(".scw-contact-form").attr("data_target");r=s(this).closest(".scw-contact-form").find(".scw-form-success.success-close-msg").length>0?1:0;var e=3;1==r&&(e=s(this).closest(".scw-contact-form").find(".scw-form-success.success-close-msg").attr("data_close_sec"));var n=0,i=s(this).closest(".gsb-buttons").attr("id");if(s.each(s(this).closest(".scw-contact-form").find(".scw-form-field .scw-field"),(function(){s(this).hasClass("is-require")&&""==s(this).val()&&(n+=1,s(this).closest(".scw-form-field").addClass("has-error")),s(this).hasClass("is-require")&&!s(this).is(":checked")&&"checkbox"===s(this).prop("type")&&(n+=1,s(this).closest(".scw-form-field").addClass("has-error")),""!=s(this).val()&&"email"==s(this).data("name")&&(/^([a-zA-Z0-9_.+-])+\@(([a-zA-Z0-9-])+\.)+([a-zA-Z0-9]{2,4})+$/.test(s(this).val())||(n+=1,s(this).closest(".scw-form-field").addClass("has-error-valid"))),""!=s(this).val()&&"phone"==s(this).data("name")&&(/^[0-9]*$/.test(s(this).val())||(n+=1,s(this).closest(".scw-form-field").addClass("has-error-valid")))})),0!=n&&(s(this).closest(".scw-contact-form").find(".scw-form-field.has-error-valid:first input").focus(),s(this).closest(".scw-contact-form").find(".scw-form-field.has-error:first input").focus()),0==n){s(this).find(":submit").prop("disabled",!0);var a=s(this).closest(".scw-contact-form").attr("id");s.ajax({url:gsb_settings.ajax_url,data:s("#"+a).serialize(),dateType:"json",type:"post",success:function(t){1==(t=s.parseJSON(t)).status?(s("#"+i+" .scw-contact-form").addClass("success-msg"),s("#"+i+" .scw-contact-form").removeClass("has-error"),s("#"+i+" .scw-contact-form .scw-form-success").text(t.message),s("#"+i+" .scw-contact-form .scw-field").val(""),s("#"+i+" .scw-contact-form .consent-check-box input").prop("checked",!1),s("#"+i+" .scw-contact-form .scw-form-btn button").prop("disabled",!1),1==r&&setTimeout((function(){s("#"+i).closest(".gsb-buttons").hasClass("open-form")&&s("#"+i).closest(".gsb-buttons").hasClass("has-no-close-remove")&&s("#"+i).closest(".gsb-buttons").removeClass("open-form has-no-close-remove").addClass("open-buttons has-no-close-button"),s("#"+i).hasClass("open-form")&&s("#"+i).removeClass("open-form")}),1e3*e),""!=t.data.URL&&("blank"==o?window.open(t.data.URL,"_blank"):window.location.href=t.data.URL)):0==t.status&&(s("#"+i+" .scw-contact-form .scw-form-btn button").prop("disabled",!1),s("#"+i+" .scw-contact-form").addClass("success-msg has-error"),s("#"+i+" .scw-contact-form .scw-field").each((function(o,e){var n=s(this).attr("name").replace("scw_form_fields[","");n=n.replace("]",""),s.inArray(n,t.has_error)>=0?s(this).closest(".scw-form-field").addClass("has-error"):s.inArray(n,t.has_error_valid)>=0&&s(this).closest(".scw-form-field").addClass("has-error-valid")})),s("#"+i+" .scw-contact-form .scw-form-success").text(t.message))}})}})),s(document).on("keyup",".scw-field-phone",(function(){var t=s(this).val();t.match(/^[0-9]+$/)||s(this).val(t.replace(/\D/g,""))})),s(document).on("touch click",".gsb-buttons .gsb-trigger .gsb-trigger-top a",(function(){C("gsb-button-click-"+s(this).closest(".gsb-buttons").data("id"),!0,2),s(this).closest(".gsb-buttons").hasClass("cta-first_click")&&(s(this).closest("div[data-scb]").attr("data-scb",""),s(this).closest(".gsb-buttons").find(".cta-tooltip").remove())})),s(document).on("touch click",".gsb-buttons .gsb-trigger .gsb-trigger-top a, .gsb-buttons .gsb-trigger .chat-button a",(function(){C("gsb-button-click-"+s(this).closest(".gsb-buttons").data("id"),!0,2),s(this).closest(".gsb-buttons").hasClass("cta-first_click")&&(s(this).closest("div[data-scb]").attr("data-scb",""),s(this).closest(".gsb-buttons").find(".cta-tooltip").remove())})),s(document).on("touch click",".gsb-buttons .gsb-trigger .gsb-trigger-top a, .gsb-buttons .gsb-trigger .gsb-trigger-bottom a",(function(){var t=s(this).closest(".gsb-buttons").data("id");s("#gsb-buttons-"+t+" .gsb-pending-message").remove(),C("gsb-greeting-"+t,!0,2),s("#gsb-buttons-"+t+" .scw-greeting-message").remove()})),s(document).on("touch click",".gsb-buttons .gsb-trigger .gsb-trigger-bottom a",(function(){C("gsb-button-click-"+s(this).closest(".gsb-buttons").data("id"),!0,2),s(this).closest(".gsb-buttons").hasClass("cta-first_click")&&(s(this).closest("div[data-scb]").attr("data-scb",""),s(this).closest(".gsb-buttons").find(".cta-tooltip").remove())})),s(document).on("mouseenter",".gsb-buttons .gsb-trigger a",(function(){var t=s(this).closest(".gsb-buttons").data("id"),o=s(this).closest(".gsb-buttons").data("animation");s("#gsb-buttons-"+t+" .gsb-trigger .gsb-trigger-top a").removeClass(o),s("#gsb-buttons-"+t+" .gsb-trigger .chat-button a").removeClass(o)})),s(document).on("touch click",".gsb-buttons:not(.single) .gsb-trigger .gsb-trigger-top a",(function(t){t.preventDefault();var o=s(this).closest(".gsb-buttons").data("id");s(this).closest(".gsb-buttons").removeClass("open-form"),s(this).closest(".gsb-buttons").removeClass("open-whatsapp-popup"),s(this).closest(".gsb-buttons").removeClass("open-wechat-popup"),s("#gsb-buttons-"+o+" .scw-contact-form .scw-form-field").removeClass("has-error"),s(this).closest("#gsb-buttons-"+o).find(".scw-contact-form").removeClass("success"),s(this).closest("#gsb-buttons-"+o).find(".scw-contact-form").removeClass("success-msg"),s(this).closest("#gsb-buttons-"+o).find(".scw-contact-form").removeClass("has-error"),s(this).closest("#gsb-buttons-"+o).removeClass("has-no-animation"),s(this).closest("#gsb-buttons-"+o).removeClass("has-no-tooltip-animation"),s(this).closest(".gsb-buttons").addClass("open-buttons")})),s(document).on("touch click",".gsb-buttons.single .gsb-trigger .chat-button a",(function(){var t=s(this).closest(".gsb-buttons").data("id");(s("#gsb-buttons-"+t+".single .gsb-trigger .gsb-trigger-contact").length||s("#gsb-buttons-"+t+".single .gsb-trigger .gsb-trigger-whatsapp-popup").length||s("#gsb-buttons-"+t+".single .gsb-trigger .gsb-trigger-wechat-popup").length)&&s("#gsb-buttons-"+t+".single .gsb-trigger .chat-button").removeClass("cooltipz--visible")})),s(document).on("touch click",".gsb-buttons .gsb-trigger .gsb-trigger-contact a",(function(t){t.preventDefault();var o=s(this).closest(".gsb-buttons").data("id");s(this).closest(".gsb-buttons").removeClass("open-form"),s("#gsb-buttons-"+o+" .scw-contact-form .scw-form-field").removeClass("has-error"),s(this).closest(".gsb-buttons").addClass("open-buttons"),s(this).closest(".gsb-buttons").hasClass("has-no-close-remove")&&(s(this).closest(".gsb-buttons").addClass("has-no-close-button"),s(this).closest(".gsb-buttons").removeClass("has-no-close-remove")),C("gsb-greeting-"+o,!0,2),s("#gsb-buttons-"+o+" .scw-greeting-message").remove(),s("#gsb-buttons-"+o).hasClass("cta-first_click")&&!_("gsb-button-click-"+o)&&s("#gsb-buttons-"+o+".single .gsb-trigger .chat-button").addClass("cooltipz--visible"),s("#gsb-buttons-"+o).hasClass("cta-all_time")&&s("#gsb-buttons-"+o+".single .gsb-trigger .chat-button").addClass("cooltipz--visible")})),s(document).on("touch click",".gsb-buttons .gsb-trigger .gsb-trigger-whatsapp-popup a",(function(t){t.preventDefault();var o=s(this).closest(".gsb-buttons").data("id");s(this).closest(".gsb-buttons").removeClass("open-whatsapp-popup"),s(this).closest(".gsb-buttons").addClass("open-buttons"),s(this).closest(".gsb-buttons").hasClass("has-no-close-remove")&&(s(this).closest(".gsb-buttons").addClass("has-no-close-button"),s(this).closest(".gsb-buttons").removeClass("has-no-close-remove")),C("gsb-greeting-"+o,!0,2),s("#gsb-buttons-"+o+" .scw-greeting-message").remove(),s("#gsb-buttons-"+o).hasClass("cta-first_click")&&!_("gsb-button-click-"+o)&&s("#gsb-buttons-"+o+".single .gsb-trigger .chat-button").addClass("cooltipz--visible"),s("#gsb-buttons-"+o).hasClass("cta-all_time")&&s("#gsb-buttons-"+o+".single .gsb-trigger .chat-button").addClass("cooltipz--visible")})),s(document).on("touch click",".gsb-buttons .gsb-trigger .gsb-trigger-wechat-popup a",(function(t){t.preventDefault();var o=s(this).closest(".gsb-buttons").data("id");s(this).closest(".gsb-buttons").removeClass("open-wechat-popup"),s(this).closest(".gsb-buttons").addClass("open-buttons"),s(this).closest(".gsb-buttons").hasClass("has-no-close-remove")&&(s(this).closest(".gsb-buttons").removeClass("has-no-close-remove"),s(this).closest(".gsb-buttons").addClass("has-no-close-button")),C("gsb-greeting-"+o,!0,2),s("#gsb-buttons-"+o+" .scw-greeting-message").remove(),s("#gsb-buttons-"+o).hasClass("cta-first_click")&&!_("gsb-button-click-"+o)&&s("#gsb-buttons-"+o+".single .gsb-trigger .chat-button").addClass("cooltipz--visible"),s("#gsb-buttons-"+o).hasClass("cta-all_time")&&s("#gsb-buttons-"+o+".single .gsb-trigger .chat-button").addClass("cooltipz--visible")})),s(document).on("touch click",".gsb-buttons .scw-contact-form .scw-form-close",(function(t){t.preventDefault();var o=s(this).closest(".gsb-buttons").data("id");s(this).closest("#gsb-buttons-"+o).removeClass("open-form"),s("#gsb-buttons-"+o+" .scw-contact-form .scw-form-field").removeClass("has-error"),s(this).closest("#gsb-buttons-"+o+".has-no-close-button").addClass("open-buttons"),s(this).closest(".gsb-buttons").hasClass("has-no-close-remove")&&(s(this).closest(".gsb-buttons").addClass("has-no-close-button"),s(this).closest(".gsb-buttons").removeClass("has-no-close-remove")),s("#gsb-buttons-"+o).hasClass("cta-all_time")&&s("#gsb-buttons-"+o+".single .gsb-trigger .chat-button").addClass("cooltipz--visible")})),s(document).on("touch click",".gsb-buttons .whatsapp-popup .whatsapp-popup-close-btn",(function(t){t.preventDefault();var o=s(this).closest(".gsb-buttons").data("id");s(this).closest("#gsb-buttons-"+o).removeClass("open-whatsapp-popup"),s(this).closest("#gsb-buttons-"+o+".has-no-close-button").addClass("open-buttons"),s(this).closest(".gsb-buttons").hasClass("has-no-close-remove")&&(s(this).closest(".gsb-buttons").addClass("has-no-close-button"),s(this).closest(".gsb-buttons").removeClass("has-no-close-remove")),s("#gsb-buttons-"+o).hasClass("cta-all_time")&&s("#gsb-buttons-"+o+".single .gsb-trigger .chat-button").addClass("cooltipz--visible")})),s(document).on("touch click",".gsb-buttons .wechat-popup .wechat-popup-close-btn",(function(t){t.preventDefault();var o=s(this).closest(".gsb-buttons").data("id");s(this).closest(".gsb-buttons").hasClass("has-no-close-remove")&&(s(this).closest(".gsb-buttons").removeClass("has-no-close-remove"),s(this).closest(".gsb-buttons").addClass("has-no-close-button")),s(this).closest("#gsb-buttons-"+o).removeClass("open-wechat-popup"),s(this).closest("#gsb-buttons-"+o+".has-no-close-button").addClass("open-buttons"),s("#gsb-buttons-"+o).hasClass("cta-all_time")&&s("#gsb-buttons-"+o+".single .gsb-trigger .chat-button").addClass("cooltipz--visible")})),s(document).on("touch click",".gsb-buttons .close-view-btn",(function(t){t.preventDefault(),s(this).closest(".gsb-buttons").removeClass("open-buttons")})),s(document).on("touch click",".gsb-buttons:not(.single) .gsb-trigger .gsb-trigger-bottom a",(function(t){t.preventDefault(),s(this).closest(".gsb-buttons").removeClass("has-no-animation"),s(this).closest(".gsb-buttons").removeClass("open-buttons")})),s(document).on("touch click",".gsb-buttons:not(.single) .gsb-button-list:not(.list_view) .chat-button .channel-contact_form , .gsb-buttons.single .gsb-button-list:not(.list_view) + .gsb-trigger .chat-button .channel-contact_form",(function(){s(this).closest(".gsb-buttons").find(".gsb-button-list .chat-button").length,s(this).closest(".gsb-buttons").hasClass("open-form")?(s(this).closest(".gsb-buttons").addClass("open-buttons"),s(this).closest(".gsb-buttons").removeClass("open-form")):(s(this).closest(".gsb-buttons").hasClass("has-no-close-button")&&(s(this).closest(".gsb-buttons").addClass("has-no-close-remove"),s(this).closest(".gsb-buttons").removeClass("has-no-close-button")),s(this).closest(".gsb-buttons").removeClass("open-buttons"),s(this).closest(".gsb-buttons").addClass("open-form"),s(this).closest(".gsb-buttons").find(".scw-contact-form").removeClass("success"),s(this).closest(".gsb-buttons").find(".scw-contact-form").removeClass("success-msg"),s(this).closest(".gsb-buttons").find(".scw-contact-form").removeClass("has-error"))})),s(document).on("touch click",".gsb-buttons:not(.single) .list_view .gsb-social-channel",(function(){s(this).closest(".gsb-buttons").find(".gsb-button-list .chat-button").length;var t=s(this).data("channel"),o=s(this).closest(".gsb-buttons").data("id");"contact_form"==t&&(s(this).closest(".gsb-buttons").hasClass("open-form")?(s(this).closest(".gsb-buttons").addClass("open-buttons"),s(this).closest(".gsb-buttons").removeClass("open-form")):(s(this).closest(".gsb-buttons").removeClass("open-buttons"),s(this).closest(".gsb-buttons").addClass("open-form"),s(this).closest("#gsb-buttons-"+o).find(".scw-contact-form").removeClass("success"),s(this).closest("#gsb-buttons-"+o).find(".scw-contact-form").removeClass("success-msg"),s(this).closest("#gsb-buttons-"+o).find(".scw-contact-form").removeClass("has-error")))})),s(document).on("touch click",".gsb-buttons:not(.single) .gsb-button-list:not(.list_view) .chat-button .channel-whats , .gsb-buttons.single .gsb-button-list:not(.list_view) + .gsb-trigger .chat-button .channel-whats",(function(){s(this).closest(".gsb-buttons").find(".gsb-button-list .chat-button").length;var t=s(this).data("channel");s(this).closest(".gsb-buttons").find("#"+t+"_popup").length&&(s(this).closest(".gsb-buttons").hasClass("open-whatsapp-popup")?(s(this).closest(".gsb-buttons").addClass("open-buttons"),s(this).closest(".gsb-buttons").removeClass("open-whatsapp-popup"),s(".whatsapp-popup").removeClass("active"),s("#"+t+"_popup").removeClass("active")):(s(this).closest(".gsb-buttons").hasClass("has-no-close-button")&&(s(this).closest(".gsb-buttons").addClass("has-no-close-remove"),s(this).closest(".gsb-buttons").removeClass("has-no-close-button")),s(this).closest(".gsb-buttons").removeClass("open-buttons"),s(this).closest(".gsb-buttons").addClass("open-whatsapp-popup"),s(".whatsapp-popup").removeClass("active"),s("#"+t+"_popup").addClass("active")))})),s(document).on("touch click",".gsb-buttons:not(.single) .list_view .gsb-social-channel",(function(){s(this).closest(".gsb-buttons").find(".gsb-button-list .chat-button").length;var t=s(this).data("channel");"whatsapp"==t.replace(/_\d+$/,"")&&s(this).closest(".gsb-buttons").find("#"+t+"_popup").length&&(s(this).closest(".gsb-buttons").hasClass("open-whatsapp-popup")?(s(this).closest(".gsb-buttons").addClass("open-buttons"),s(this).closest(".gsb-buttons").removeClass("open-whatsapp-popup"),s(".whatsapp-popup").removeClass("active"),s("#"+t+"_popup").removeClass("active")):(s(this).closest(".gsb-buttons").removeClass("open-buttons"),s(this).closest(".gsb-buttons").addClass("open-whatsapp-popup"),s(".whatsapp-popup").removeClass("active"),s("#"+t+"_popup").addClass("active")))})),s(document).on("touch click",".gsb-buttons:not(.single) .gsb-button-list:not(.list_view) .chat-button .channel-wechats , .gsb-buttons.single .gsb-button-list:not(.list_view) + .gsb-trigger .chat-button .channel-wechats",(function(){s(this).closest(".gsb-buttons").find(".gsb-button-list .chat-button").length;var t=s(this).data("channel");s(this).closest(".gsb-buttons").find("#"+t+"_popup").length&&(s(this).closest(".gsb-buttons").hasClass("open-wechat-popup")?(s(this).closest(".gsb-buttons").addClass("open-buttons"),s(this).closest(".gsb-buttons").removeClass("open-wechat-popup"),s(".wechat-popup").removeClass("active"),s("#"+t+"_popup").removeClass("active")):(s(this).closest(".gsb-buttons").hasClass("has-no-close-button")&&(s(this).closest(".gsb-buttons").addClass("has-no-close-remove"),s(this).closest(".gsb-buttons").removeClass("has-no-close-button")),s(this).closest(".gsb-buttons").removeClass("open-buttons"),s(this).closest(".gsb-buttons").addClass("open-wechat-popup"),s(".wechat-popup").removeClass("active"),s("#"+t+"_popup").addClass("active")))})),s(document).on("touch click",".gsb-buttons:not(.single) .list_view .gsb-social-channel",(function(){s(this).closest(".gsb-buttons").find(".gsb-button-list .chat-button").length;var t=s(this).data("channel");"wechat"==t.replace(/_\d+$/,"")&&s(this).closest(".gsb-buttons").find("#"+t+"_popup").length&&(s(this).closest(".gsb-buttons").hasClass("open-wechat-popup")?(s(this).closest(".gsb-buttons").addClass("open-buttons"),s(this).closest(".gsb-buttons").removeClass("open-wechat-popup"),s(".wechat-popup").removeClass("active"),s("#"+t+"_popup").removeClass("active")):(s(this).closest(".gsb-buttons").removeClass("open-buttons"),s(this).closest(".gsb-buttons").addClass("open-wechat-popup"),s(".wechat-popup").removeClass("active"),s("#"+t+"_popup").addClass("active")))})),s(document).on("touch click",".gsb-buttons .gsb-button-list, .gsb-buttons .gsb-trigger-button, .gsb-buttons .whatsapp-popup, .gsb-buttons .scw-contact-form, .gsb-buttons .wechat-popup",(function(t){t.stopPropagation()})),s(document).on("touch click",".gsb-buttons .chat-button a",(function(){var t=s(this).closest(".gsb-buttons").data("id");s("#gsb-buttons-"+t+" .gsb-pending-message").remove(),C("gsb-greeting-"+t,!0,2),s("#gsb-buttons-"+t+" .scw-greeting-message").remove()})),s(document).on("touch click",".gsb-buttons.open-buttons .list_title_container .close-view-btn",(function(){var t=s(this).closest(".gsb-buttons").data("id");s("#gsb-buttons-"+t+" .gsb-pending-message").remove(),C("gsb-button-click-"+t,!0,2)}))),s(document).on("click",".show-scw-contact-form",(function(t){t.preventDefault(),t.stopPropagation(),show_scw_contact_form(s(this).data("widget"))})),s(document).on("click",".hide-scw-contact-form",(function(t){t.preventDefault(),t.stopPropagation(),hide_scw_contact_form()})),s(document).on("click",".show-sticky-chat-widget",(function(t){t.preventDefault(),t.stopPropagation(),show_sticky_chat_widget(s(this).data("widget"))})),s(document).on("click",".hide-sticky-chat-widget",(function(t){t.preventDefault(),t.stopPropagation(),hide_sticky_chat_widget()}))})),s(window).resize((function(){!function(){if(s(".ginger-front-buttons").length&&s(".sticky-button-list").length&&s(".sticky-button-list .channel-btn").length&&s(".ginger-front-buttons .cta-button").length){s(".sticky-button-list .button-list").attr("style",""),s(".sticky-button-list .button-list").removeClass("has-grid-layout");var t=parseInt(gsb_settings.icon_size)+parseInt(gsb_settings.bottom);if(s(".sticky-button-list .button-list .channel-btn").length>2&&(t+=parseInt(s(".sticky-button-list .button-list .channel-btn").length)*(parseInt(gsb_settings.icon_size)+5))>=s(window).height()){var o=Math.floor(Math.sqrt(parseInt(s(".sticky-button-list .button-list .channel-btn").length)));o=(parseInt(gsb_settings.icon_size)+5)*o,s(".sticky-button-list .button-list").height(o),o=Math.ceil(Math.sqrt(parseInt(s(".sticky-button-list .button-list .channel-btn").length))),o=(parseInt(gsb_settings.icon_size)+5)*o,s(".sticky-button-list .button-list").width(o),s(".sticky-button-list .button-list").addClass("has-grid-layout"),s(".sticky-button-list .button-list").css("bottom",parseInt(gsb_settings.icon_size)+5+"px"),s(".sticky-button-list .button-list .ginger-social-channel").attr("data-ginger-tooltip-location","top")}}}()}))}(jQuery)})();