"use strict";(self.webpackChunkmarketing_with_google_verification_tag=self.webpackChunkmarketing_with_google_verification_tag||[]).push([[248],{6130:(t,e,n)=>{n.r(e),n.d(e,{form:()=>o,link:()=>i});var r=n(9483);function i(t,e,n,i){var o=this;return t?((t instanceof Element?[t]:"toArray"in t?t.toArray():t).forEach((function(t){t.addEventListener("click",(function(a){var u,c,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===(u=t.getElementsByTagName("a")[0])||void 0===u?void 0:u.getAttribute("href")),h=(0,r.s)(o.track(s,l,null!=i?i:{}),null!==(c=o.settings.timeout)&&void 0!==c?c:500);(function(t,e){return!("_blank"!==t.target||!e)})(t,f)||function(t){var e=t;return!!(e.ctrlKey||e.shiftKey||e.metaKey||e.button&&1==e.button)}(a)||f&&(a.preventDefault?a.preventDefault():a.returnValue=!1,h.catch(console.error).then((function(){window.location.href=f})).catch(console.error))}),!1)})),this):this}function o(t,e,n,i){var o=this;return t?(t instanceof HTMLFormElement&&(t=[t]),t.forEach((function(t){if(!(t instanceof Element))throw new TypeError("Must pass HTMLElement to trackForm/trackSubmit.");var a=function(a){var u;a.preventDefault?a.preventDefault():a.returnValue=!1;var c=e instanceof Function?e(t):e,s=n instanceof Function?n(t):n;(0,r.s)(o.track(c,s,null!=i?i:{}),null!==(u=o.settings.timeout)&&void 0!==u?u:500).catch(console.error).then((function(){t.submit()})).catch(console.error)},u=window.jQuery||window.Zepto;u?u(t).submit(a):t.addEventListener("submit",a,!1)})),this):this}}}]);