!function(){"use strict";var e={d:function(n,t){for(var o in t)e.o(t,o)&&!e.o(n,o)&&Object.defineProperty(n,o,{enumerable:!0,get:t[o]})},o:function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},r:function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},n={};e.r(n),e.d(n,{trackEvent:function(){return u},usePageViews:function(){return a}});var t=window.lodash,o=window.React,i=window.nisje.router,r=window.gtag;function a(){var e=(0,i.useLocation)();(0,o.useEffect)((function(){r&&r("event","page_view",{page_path:e.pathname})}),[e])}function u(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};r&&((0,t.isEmpty)(n)||(i.event_category=n),(0,t.isEmpty)(o)||(i.event_label=o),r("event",e,i))}(window.nisje=window.nisje||{}).track=n}();