1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[4425],{449:function(t,e,i){i.r(e),i.d(e,{default:function(){return d}});var n=i(4575),a=i.n(n),s=i(3913),r=i.n(s),l=i(9713),o=i.n(l),h=i(7041),d=function(){function t(e){var i=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=n.targetAttribute,r=void 0===s?"data-image-swapper-target":s,l=n.sourceAttribute,d=void 0===l?"data-image-swapper-source":l,u=n.dynamicClassName,c=void 0===u?"image-swapper__image":u,m=n.resetDelay,g=void 0===m?1500:m,f=n.animationDuration,v=void 0===f?1e3:f;a()(this,t),o()(this,"listenerBoss",void 0),o()(this,"lastLinkHoverIndex",null),o()(this,"lastZIndex",2),o()(this,"targetElA",void 0),o()(this,"targetElB",void 0),o()(this,"lastTargetEl",void 0),o()(this,"resetTimerId",null),o()(this,"animationDuration",1e3),o()(this,"fadeOutAnimation",null),o()(this,"fadeInAnimation",null),this.animationDuration=v;var A=e.querySelectorAll("[".concat(d,"]"));if(A.length){var p=e.querySelector("[".concat(r,"]"));p&&(this.targetElA=document.createElement("div"),this.targetElA.classList.add(c),p.appendChild(this.targetElA),this.targetElA.style.zIndex=String(1),this.targetElB=document.createElement("div"),this.targetElB.classList.add(c),p.appendChild(this.targetElB),this.targetElB.style.zIndex=String(2),this.listenerBoss=new h.Z,A.forEach((function(t,e){var n=t.parentElement.querySelector(":scope > a");n&&(i.listenerBoss.register(n,"mouseenter",(function(){clearTimeout(i.resetTimerId),e!==i.lastLinkHoverIndex&&(i.lastLinkHoverIndex=e,i.setADynamicImage(t.innerHTML))})),i.listenerBoss.register(n,"mouseleave",(function(){i.resetTimerId=setTimeout((function(){i.reset()}),g)})))})))}}return r()(t,[{key:"setADynamicImage",value:function(t){var e=this.lastZIndex%2==0?this.targetElA:this.targetElB;this.lastZIndex++,e.innerHTML="",e.style.zIndex=String(this.lastZIndex),e.innerHTML=t,this.wrapUpTheAnimations(),this.fadeInAnimation=e.animate([{opacity:0},{opacity:1}],{duration:this.animationDuration,easing:"ease"}),this.lastTargetEl=e}},{key:"reset",value:function(){this.lastLinkHoverIndex=null;var t=this.lastTargetEl,e=this.lastTargetEl.isEqualNode(this.targetElA)?this.targetElB:this.targetElA;e.innerHTML="",e.style.zIndex="1",this.lastZIndex=this.lastZIndex%2+2,t.style.zIndex=String(this.lastZIndex),this.wrapUpTheAnimations(),this.fadeOutAnimation=t.animate([{opacity:1},{opacity:0}],{duration:this.animationDuration,easing:"ease"}),this.fadeOutAnimation.addEventListener("finish",(function(){t.innerHTML=""}),{once:!0,passive:!0})}},{key:"wrapUpTheAnimations",value:function(){this.fadeInAnimation&&(this.fadeInAnimation.cancel(),this.fadeInAnimation=null),this.fadeOutAnimation&&(this.fadeOutAnimation.finish(),this.fadeOutAnimation=null)}}]),t}()}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.