",t.each(e.agent_data,(function(i,n){if(""!=n.value){var o=n.svg_icon;L(n.agent_image)||(o="
!["+n.agent_title+"]("+n.agent_image+")
");var l=function(e,a,c,i,n,o){var l=e.value,h="_blank";if("Whatsapp"==a.channel_type){var r=I(e.value),d="";if(!L(e.pre_set_message)){d=decodeURI(e.pre_set_message);var g=t("title").text();d=(d=L(g)?d.replace(/{title}/g,""):d.replace(/{title}/g,g)).replace(/{url}/g,window.location),d=encodeURIComponent(d)}s?(h="",l="https://wa.me/"+r+"?text="+d):(h="_blank",l=W(e.use_whatsapp_web)?"https://web.whatsapp.com/send?phone="+r+"&text="+d:"https://wa.me/"+r+"?text="+d)}else"WeChat"==a.channel_type?(h="",l="javascript:;"):"Email"==a.channel_type?(h="",l="mailto:"+e.value):"Facebook_Messenger"==a.channel_type?h=s?"":"_blank":"SMS"==a.channel_type?(h="",l="sms:"+e.value):"Telegram"==a.channel_type?(l="https://telegram.me/"+(l=M(e.value,"@")),h="_blank"):"Twitter"==a.channel_type?l="https://twitter.com/"+t.trim(e.value):"Instagram"==a.channel_type?l="https://www.instagram.com/"+t.trim(e.value):"Phone"==a.channel_type?(h="",l="tel:"+t.trim(e.value)):"Skype"==a.channel_type?(h="",l="skype:"+t.trim(e.value)+"?chat"):"Snapchat"==a.channel_type?l="https://www.snapchat.com/add/"+t.trim(e.value):"Vkontakte"==a.channel_type?l="https://vk.me/"+t.trim(e.value):"Linkedin"==a.channel_type?l="personal"==e.link_type?"https://www.linkedin.com/in/"+t.trim(e.value):"https://www.linkedin.com/company/"+t.trim(e.value):"Viber"==a.channel_type?(""!=e.viber_url?l="viber://pa?chatURI="+e.value:(l=M(e.value,"+"),isNaN(l)||(l=l.replace("+",""),navigator.userAgent.match(/(iPod|iPhone|iPad)/)&&(l="+"+l),l="viber://chat?number="+l)),h=""):"TikTok"==a.channel_type&&(l="https://www.tiktok.com/@"+(l=M(t.trim(e.value),"@")),h="");return"
"+n+""+o+""}(n,e,0,0,o,n.agent_title);c+="
"+l+"
"}u+=".agent-info-"+a+"-"+e.channel+".agent-info-"+i+" .chaty-agent-icon img { background-color: "+n.agent_bg_color+"; } ",("Instagram"!=e.channel||"#ffffff"!=n.agent_bg_color&&"#fff"!=n.agent_bg_color)&&(u+=".agent-info-"+a+"-"+e.channel+".agent-info-"+i+" .chaty-agent-icon .color-element { fill: "+n.agent_bg_color+"; } "),u+=".agent-info-"+a+"-"+e.channel+".agent-info-"+i+" .chaty-custom-icon { background-color: "+n.agent_bg_color+"; } "})),c+="