(self["webpackJsonp@lyrio/ui"]=self["webpackJsonp@lyrio/ui"]||[]).push([[177],{1724:function(e,t,a){"use strict";a.r(t);var r=a(50),i=a(79),n=a(926),h=a(822),s=a(823),l=a(775),o=function(){function e(t,a){if(Object(r.a)(this,e),Object(s.b)(t,s.a.URL_CHANGE_TRACKER),history.pushState&&window.addEventListener){var i={shouldTrackUrlChange:this.shouldTrackUrlChange,trackReplaceState:!1,fieldsObj:{},hitFilter:null};this.opts=Object(l.a)(i,a),this.tracker=t,this.path=c(),this.pushStateOverride=this.pushStateOverride.bind(this),this.replaceStateOverride=this.replaceStateOverride.bind(this),this.handlePopState=this.handlePopState.bind(this),n.a.add(history,"pushState",this.pushStateOverride),n.a.add(history,"replaceState",this.replaceStateOverride),window.addEventListener("popstate",this.handlePopState)}}return Object(i.a)(e,[{key:"pushStateOverride",value:function(e){var t=this;return function(){e.apply(void 0,arguments),t.handleUrlChange(!0)}}},{key:"replaceStateOverride",value:function(e){var t=this;return function(){e.apply(void 0,arguments),t.handleUrlChange(!1)}}},{key:"handlePopState",value:function(){this.handleUrlChange(!0)}},{key:"handleUrlChange",value:function(e){var t=this;setTimeout((function(){var a=t.path,r=c();if(a!=r&&t.opts.shouldTrackUrlChange.call(t,r,a)&&(t.path=r,t.tracker.set({page:r,title:document.title}),e||t.opts.trackReplaceState)){t.tracker.send("pageview",Object(l.c)({transport:"beacon"},t.opts.fieldsObj,t.tracker,t.opts.hitFilter))}}),0)}},{key:"shouldTrackUrlChange",value:function(e,t){return!(!e||!t)}},{key:"remove",value:function(){n.a.remove(history,"pushState",this.pushStateOverride),n.a.remove(history,"replaceState",this.replaceStateOverride),window.removeEventListener("popstate",this.handlePopState)}}]),e}();function c(){return location.pathname+location.search}Object(h.a)("urlChangeTracker",o)}}]);
//# sourceMappingURL=177.f35d370e.chunk.js.map