"use strict";exports.id=119,exports.ids=[119],exports.modules={96140:(t,e,n)=>{n.r(e),n.d(e,{form:()=>i,link:()=>o});var r=n(29082);function o(t,e,n,o){var i=this;return t&&(t instanceof Element?[t]:"toArray"in t?t.toArray():t).forEach(function(t){t.addEventListener("click",function(u){var c,a,s=e instanceof Function?e(t):e,l=n instanceof Function?n(t):n,f=t.getAttribute("href")||t.getAttributeNS("http://www.w3.org/1999/xlink","href")||t.getAttribute("xlink:href")||(null===(c=t.getElementsByTagName("a")[0])||void 0===c?void 0:c.getAttribute("href")),h=(0,r.FJ)(i.track(s,l,null!=o?o:{}),null!==(a=i.settings.timeout)&&void 0!==a?a:500);"_blank"===t.target&&f||u.ctrlKey||u.shiftKey||u.metaKey||u.button&&1==u.button||!f||(u.preventDefault?u.preventDefault():u.returnValue=!1,h.catch(console.error).then(function(){window.location.href=f}).catch(console.error))},!1)}),this}function i(t,e,n,o){var i=this;return t&&(t instanceof HTMLFormElement&&(t=[t]),t.forEach(function(t){if(!(t instanceof Element))throw TypeError("Must pass HTMLElement to trackForm/trackSubmit.");var u=function(u){u.preventDefault?u.preventDefault():u.returnValue=!1;var c,a=e instanceof Function?e(t):e,s=n instanceof Function?n(t):n;(0,r.FJ)(i.track(a,s,null!=o?o:{}),null!==(c=i.settings.timeout)&&void 0!==c?c:500).catch(console.error).then(function(){t.submit()}).catch(console.error)},c=window.jQuery||window.Zepto;c?c(t).submit(u):t.addEventListener("submit",u,!1)})),this}}};
//# sourceMappingURL=auto-track.js.map