1"use strict";(self.webpackChunk_mvps_genesis_quickstart_theme=self.webpackChunk_mvps_genesis_quickstart_theme||[]).push([[6685],{6685:(t,e,n)=>{n.d(e,{default:()=>h});var s=n(1093);function i(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var s=n.call(t,e||"default");if("object"!=typeof s)return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function o(t,e,n){(function(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")})(t,e),e.set(t,n)}function l(t,e){return t.get(r(t,e))}function r(t,e,n){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:n;throw new TypeError("Private element is not present on this object")}var a=new WeakMap;const h=class{constructor(t){let{dropdownElement:e=".g-tooltip__dropdown",labelElement:n=".g-tooltip__label",openClass:h="g-tooltip--open"}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};var d,m,c;o(this,a,void 0),i(this,"element",void 0),i(this,"labelElement",void 0),i(this,"dropdownElement",void 0),i(this,"openClass",void 0),d=a,m=this,c=new s.A(this),d.set(r(d,m),c),this.element=l(a,this).isElement("tooltipElement",t),this.labelElement=l(a,this).isElement("labelElement",n,{container:this.element}),this.dropdownElement=l(a,this).isElement("dropdownElement",e,{container:this.element}),this.openClass=l(a,this).isString("openClass",h),this.bindEvents()}bindEvents(){this.labelElement.addEventListener("mouseover",(()=>this.handleDropdownPosition())),this.labelElement.addEventListener("touchstart",(()=>this.toggle())),document.addEventListener("touchstart",(t=>{if("function"!=typeof t.target.closest)return;const e=t.target.closest(".js-tooltip"),n=document.getElementsByClassName(this.openClass);for(const t of n){if(t===e)return;t.classList.remove(this.openClass)}}))}handleDropdownPosition(){const t=this.labelElement.getBoundingClientRect(),e=this.dropdownElement.getBoundingClientRect(),n=t.x+t.width,s=e.x+e.width;e.x<0?(this.dropdownElement.style.left="0",this.dropdownElement.style.transform="translateX(".concat(8-t.x,"px)")):s>window.outerWidth&&(this.dropdownElement.style.right="0",this.dropdownElement.style.transform="translateX(".concat(window.outerWidth-n-8,"px)"))}toggle(){this.element.classList.contains(this.openClass)?this.close():this.open()}open(){this.element.classList.add(this.openClass),this.handleDropdownPosition()}close(){this.element.classList.remove(this.openClass)}}}}]); 2//# sourceMappingURL=6685.3b326be274180a90d495.chunk.js.map
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.