/*! elementor-pro - v3.3.0 - 06-06-2021 */
(self.webpackChunkelementor_pro=self.webpackChunkelementor_pro||[]).push([[888],{9556:(t,e,o)=>{"use strict";var n=o(7971);o(7394)(e,"__esModule",{value:!0}),e.default=void 0,o(5942),o(4828),o(1954);var i=n(o(1959)),s=n(o(9041)),l=n(o(6700)),a=n(o(4263)),r=n(o(7371)),h=n(o(8537)),p=function(t){(0,r.default)(Hotspot,t);var e=(0,h.default)(Hotspot);function Hotspot(){return(0,i.default)(this,Hotspot),e.apply(this,arguments)}return(0,s.default)(Hotspot,[{key:"getDefaultSettings",value:function getDefaultSettings(){return{selectors:{hotspot:".e-hotspot",tooltip:".e-hotspot__tooltip"}}}},{key:"getDefaultElements",value:function getDefaultElements(){var t=this.getSettings("selectors");return{$hotspot:this.$element.find(t.hotspot),$hotspotsExcludesLinks:this.$element.find(t.hotspot).filter(":not(.e-hotspot--link)"),$tooltip:this.$element.find(t.tooltip)}}},{key:"bindEvents",value:function bindEvents(){var t=this,e=this.getCurrentDeviceSetting("tooltip_trigger"),o="mouseenter"===e?"mouseleave mouseenter":e;"none"!==o&&this.elements.$hotspotsExcludesLinks.on(o,(function(e){return t.onHotspotTriggerEvent(e)}))}},{key:"onDeviceModeChange",value:function onDeviceModeChange(){this.elements.$hotspotsExcludesLinks.off(),this.bindEvents()}},{key:"onHotspotTriggerEvent",value:function onHotspotTriggerEvent(t){var e=jQuery(t.target),o=e.closest(".e-hotspot__button").length,n="mouseleave"===t.type&&(e.is(".e-hotspot--tooltip-position")||e.parents(".e-hotspot--tooltip-position").length);if(o||n){var i=jQuery(t.currentTarget);this.elements.$hotspot.not(i).removeClass("e-hotspot--active"),i.toggleClass("e-hotspot--active")}}},{key:"editorAddSequencedAnimation",value:function editorAddSequencedAnimation(){this.elements.$hotspot.toggleClass("e-hotspot--sequenced","yes"===this.getElementSettings("hotspot_sequenced_animation"))}},{key:"hotspotSequencedAnimation",value:function hotspotSequencedAnimation(){var t=this,e=this.getElementSettings();if("no"!==e.hotspot_sequenced_animation){var o=elementorModules.utils.Scroll.scrollObserver({callback:function callback(n){n.isInViewport&&(o.unobserve(t.$element[0]),t.elements.$hotspot.each((function(o,n){if(0!==o){var i=e.hotspot_sequenced_animation_duration,s=o*((i?i.size:1e3)/t.elements.$hotspot.length);n.style.animationDelay=s+"ms"}})))}});o.observe(this.$element[0])}}},{key:"setTooltipPositionControl",value:function setTooltipPositionControl(){var t=this.getElementSettings();void 0!==t.tooltip_animation&&t.tooltip_animation.match(/^e-hotspot--(slide|fade)-direction/)&&(this.elements.$tooltip.removeClass("e-hotspot--tooltip-animation-from-left e-hotspot--tooltip-animation-from-top e-hotspot--tooltip-animation-from-right e-hotspot--tooltip-animation-from-bottom"),this.elements.$tooltip.addClass("e-hotspot--tooltip-animation-from-"+t.tooltip_position))}},{key:"onInit",value:function onInit(){for(var t,e=this,o=arguments.length,n=new Array(o),i=0;i<o;i++)n[i]=arguments[i];(t=(0,l.default)((0,a.default)(Hotspot.prototype),"onInit",this)).call.apply(t,[this].concat(n)),this.hotspotSequencedAnimation(),this.setTooltipPositionControl(),window.elementor&&elementor.listenTo(elementor.channels.deviceMode,"change",(function(){return e.onDeviceModeChange()}))}},{key:"onElementChange",value:function onElementChange(t){t.startsWith("tooltip_position")&&this.setTooltipPositionControl(),t.startsWith("hotspot_sequenced_animation")&&this.editorAddSequencedAnimation()}}]),Hotspot}(elementorModules.frontend.handlers.Base);e.default=p},5942:(t,e,o)=>{"use strict";var n=o(5772),i=o(6078),s=o(465),l="startsWith",a="".startsWith;n(n.P+n.F*o(6570)(l),"String",{startsWith:function startsWith(t){var e=s(this,t,l),o=i(Math.min(arguments.length>1?arguments[1]:void 0,e.length)),n=String(t);return a?a.call(e,n,o):e.slice(o,o+n.length)===n}})}}]);