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