File: /home/clinicamaciel/www/wp-content/plugins/vc-extensions-bundle/avatarwithpopup/js/init.min.js
function detectIE(){var a=window.navigator.userAgent,b=a.indexOf("MSIE ");if(b>0)return parseInt(a.substring(b+5,a.indexOf(".",b)),10);var c=a.indexOf("Trident/");if(c>0){var d=a.indexOf("rv:");return parseInt(a.substring(d+3,a.indexOf(".",d)),10)}var e=a.indexOf("Edge/");return e>0?parseInt(a.substring(e+5,a.indexOf(".",e)),10):!1}jQuery(document).ready(function(a){a(".cq-avatarwithpopup").each(function(b,c){function w(){-1==u?(a(".cq-avatarwithpopup-popup",d).removeClass("cardOuttop").addClass("hotspotanimate cardIntop"),u=1):(a(".cq-avatarwithpopup-popup",d).removeClass("cardIntop hotspotanimate").addClass("cardOuttop hotspotanimate"),u=-1)}var d=a(this),e=a(this).data("avatartype"),f=a(this).data("avatarimage"),g=parseInt(a(this).data("avatarsize")),h=a(this).data("iconcolor"),i=a(this).data("iconbgcolor"),j=a(this).data("iconsize"),k=a(this).data("popupcolor"),m=(a(this).data("backgroundimage"),a(this).data("triggerby")),n=parseInt(a(this).data("delaytime")),o=a(this).data("avatarshape"),p=parseInt(a(this).data("elementheight")),q=a(this).data("avatartextcolor"),r=a(this).data("contentsize");""!=p&&p>0&&a(".cq-avatarwithpopup-insidecontainer",d).css("height",p),detectIE()&&a(".cq-avatarwithpopup-popup",d).addClass("isIE"),""!=r&&a(".cq-avatarwithpopup-popup",d).css("font-size",r),a(".cq-avatarwithpopup-icon",d).css({color:h,"background-color":i}),""!=q&&a(".cq-avatarwithpopup-avatartitle, .cq-avatarwithpopup-avatarlabel",d).css({color:q}),!a(".cq-avatarwithpopup-avatartitle",d)[0]&&a(".cq-avatarwithpopup-avatarlabel",d)[0]&&a(".cq-avatarwithpopup-avatarlabelcontainer",d).css("margin-top","12px"),""!=k&&a(".cq-avatarwithpopup-title, .cq-avatarwithpopup-title h4, .cq-avatarwithpopup-content",d).css("color",k),""!=g&&g>0&&a(".cq-avatarwithpopup-avatar, .cq-avatarwithpopup-icon, .cq-avatarwithpopup-avatarimage",d).css({width:g,height:g,"line-height":g+"px"}),""!=j&&j&&a(".cq-avatarwithpopup-icon",d).css({"font-size":j}),"avatar-roundlarge"==o?a(".cq-avatarwithpopup-avatar, .cq-avatarwithpopup-icon, .cq-avatarwithpopup-avatarimage",d).css("border-radius","16px"):"avatar-square"==o?a(".cq-avatarwithpopup-avatar, .cq-avatarwithpopup-icon, .cq-avatarwithpopup-avatarimage",d).css("border-radius","0"):"avatar-roundsmall"==o?a(".cq-avatarwithpopup-avatar, .cq-avatarwithpopup-icon, .cq-avatarwithpopup-avatarimage",d).css("border-radius","8px"):a(".cq-avatarwithpopup-avatar, .cq-avatarwithpopup-icon, .cq-avatarwithpopup-avatarimage",d).css("border-radius","50%"),a(".cq-avatarwithpopup-insidecontainer",d).perfectScrollbar(),"image"==e&&""!=f&&a(".cq-avatarwithpopup-avatar",d).css({background:"url("+f+") no-repeat center center","background-size":"cover"});var v,s=-1,t=0,u=-1;"bydefault"==m?(a(".cq-avatarwithpopup-avatar",d).parent().is("a")||a(".cq-avatarwithpopup-avatar",d).css("cursor","default"),setTimeout(function(){a(".cq-avatarwithpopup-popup",d).removeClass("cardOuttop").addClass("hotspotanimate cardIntop")},600)):"hover1"==m?d.on("mouseover",function(b){clearTimeout(v),a(".cq-avatarwithpopup-popup",d).removeClass("cardOuttop").addClass("hotspotanimate cardIntop")}).on("mouseleave",function(b){clearTimeout(v),v=setTimeout(function(){a(".cq-avatarwithpopup-popup",d).removeClass("cardIntop hotspotanimate").addClass("cardOuttop hotspotanimate")},800)}):"hover2"==m?d.on("mouseover",function(b){a(".cq-avatarwithpopup-popup",d).removeClass("cardOuttop").addClass("hotspotanimate cardIntop")}):"slideshow"==m?(t=setInterval(w,1e3*n),d.on("mouseover",function(b){a(".cq-avatarwithpopup-popup",d).removeClass("cardOuttop").addClass("hotspotanimate cardIntop"),clearInterval(t)}).on("mouseleave",function(a){clearInterval(t),t=setInterval(w,1e3*n)})):d.on("click",function(b){-1==s?(a(".cq-avatarwithpopup-popup",d).removeClass("cardOuttop").addClass("hotspotanimate cardIntop"),s=1):(a(".cq-avatarwithpopup-popup",d).removeClass("cardIntop hotspotanimate").addClass("cardOuttop hotspotanimate"),s=-1),b.preventDefault()})})});