!function(t,o){"use strict";ElementsKit_Helper.registerWidget("elementskit-hotspot.default",(function(o){var i=o.find(".ekit-location-on-click > .ekit-location_indicator, .ekit-location-on-hover.click > .ekit-location_indicator"),e=o.find(".ekit-location-on-hover:not(.click) > .ekit-location_indicator"),s=o.find(".ekit-location");function l(){let o=t(this).find(".ekit-location_outer"),i=t(this).find(".ekit-location_indicator"),e=i.width()/2+t(this).find(".ekit-hotspot-vertical-line").height(),s=i.width()+t(this).find(".ekit-hotspot-horizontal-line").height(),l=i.width()+t(this).find(".ekit-hotspot-horizontal-line").width();if(!o.length)return;let n=function(t){const o=window.innerWidth;let i=t.parents(".ekit-location-groups").data("breakpoints");if(void 0!==i)return o<=i.mobile?"mobile":o<=i.tablet?"tablet":"desktop"}(t(this)),h=t(this).data("directions");if(h&&(t(this).removeClass((function(t,o){return(o.match(/ekit_hotspot_follow_line_\w+/g)||[]).join(" ")})),h?.[n]?t(this).addClass(`${h[n]}`):t(this).addClass(`${h?.desktop}`)),t(this).hasClass("ekit_hotspot_follow_line_top")?o.css({bottom:s,top:"auto"}):t(this).hasClass("ekit_hotspot_follow_line_bottom")?o.css({top:s,bottom:"auto"}):t(this).hasClass("ekit_hotspot_follow_line_right_top")||t(this).hasClass("ekit_hotspot_follow_line_left_top")?o.css("bottom",e):t(this).hasClass("ekit_hotspot_follow_line_right_bottom")||t(this).hasClass("ekit_hotspot_follow_line_left_bottom")?o.css("top",e):t(this).hasClass("ekit_hotspot_follow_line_right")?(o.css("top",-(o.height()/2-i.width()/2)),o.css("left",l)):t(this).hasClass("ekit_hotspot_follow_line_left")&&(o.css("top",-(o.height()/2-i.width()/2)),o.css("right",l)),o.offset().left<0)t(window).width()<=480&&t(this).find(".ekit-location_outer").css({"max-width":t(window).width(),"min-width":t(window).width()-40}),t(this).find(".ekit-location_outer").css("margin-left",Math.abs(o.offset().left));else if(o.offset().left>0)if(t(window).width()<=480&&o.width()>t(window).width())t(this).find(".ekit-location_outer").css({"max-width":t(window).width(),"min-width":t(window).width()-40}),t(this).find(".ekit-location_outer").css("left",-Math.abs(o.offset().left));else if(o.offset().left+o.width()>t(window).width()){let i=Math.abs(o.offset().left+o.width()-t(window).width());t(this).find(".ekit-location_outer").css("left",-i)}}t(window).load((function(){let i;t(window).width()<=480&&s.hasClass("hotspot-following-line-style")&&t(window).width()<=480&&(s.removeClass("ekit_hotspot_follow_line_top ekit_hotspot_follow_line_bottom ekit_hotspot_follow_line_right_top ekit_hotspot_follow_line_right_bottom ekit_hotspot_follow_line_left_bottom ekit_hotspot_follow_line_right ekit_hotspot_follow_line_left ekit_hotspot_follow_line_left_top"),s.removeClass("hotspot-following-line-style").addClass("hotspot-following-line-straight ekit_hotspot_follow_line_top")),o.find(".ekit-location_outer").each((function(){t(this).offset().top<0&&t(this).parents(".ekit-location-on-hover").addClass("bottom"),t(this).parent().hasClass("auto")&&t(this).offset().top<0&&t(this).parent().removeClass("ekit_hotspot_follow_line_top").addClass("ekit_hotspot_follow_line_bottom")})),setTimeout((function(){s.each(l)}),1e3),t(window).on("resize",(function(){clearTimeout(i),i=setTimeout((function(){s.each(l)}),250)}))})),i.on("click",(function(){o.find(".ekit-all-activated").length||t(this).parent().siblings().removeClass("active"),t(this).parent().toggleClass("active").removeClass("ekit-all-activated")})),e.on("mouseenter",(function(){s.removeClass("active")}))}))}(jQuery,window.elementorFrontend);