(self.webpackChunkwebhelp=self.webpackChunkwebhelp||[]).push([["image-map"],{1322:(e,t,n)=>{!function(e){"use strict";function t(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}e=e&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e;var n="load",r="usemap",a="coords",o=function(){function e(t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.selector=t instanceof Array?t:document.querySelectorAll(t),"complete"!==document.readyState?window.addEventListener(n,this.update.bind(this)):this.update(),window.addEventListener("resize",this.debounce(this.update,r).bind(this))}var o,i,u;return o=e,i=[{key:"update",value:function(){for(var e=this.selector,t=0;t<e.length;t++){var a=e[t];if(void 0===a.getAttribute(r))return;var o=a.cloneNode();o.addEventListener(n,this.handleImageLoad(a.offsetWidth,a.offsetHeight)),o.src=a.src}}},{key:"debounce",value:function(e){var t,n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500;return function(){for(var a=arguments.length,o=new Array(a),i=0;i<a;i++)o[i]=arguments[i];window.clearTimeout(t),t=window.setTimeout(function(t){return e.apply(t,o)},r,n)}}},{key:"handleImageLoad",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(o){for(var i=o.target.width,u=o.target.height,c=o.target.getAttribute(r).replace(/^#/,""),l=document.querySelectorAll(e.genAreaSelector(c)),d=function(e){var r=l[e],o=(r.dataset[a]=r.dataset[a]||r.getAttribute(a)).split(","),c=o.map(function(e,r){return Number(r%2==0?o[r]/i*t:o[r]/u*n)});r.setAttribute(a,c.toString())},s=0;s<l.length;s++)d(s)}}}],u=[{key:"genAreaSelector",value:function(e){return'map[name="'.concat(e,'"] area')}}],i&&t(o.prototype,i),u&&t(o,u),e}();function i(e,t){return new o(e,t)}i.VERSION="2.0.1",void 0!==e&&e.fn&&(e.fn.imageMap=function(e){return new i(this.toArray(),e)})}(n(4796))}}]);
//