티스토리 수익 글 보기

티스토리 수익 글 보기

import{r as p}from”./user_state-DXSos99w.js”;import{g as w}from”./post_login_action_creator_service-DR2eNAPj.js”;var n,a;function N(){if(a)return n;a=1,t.$inject=[“$scope”,”$window”,”DataService”,”NewrelicService”];const{getActivityState:s,getDaysSinceSyncActivity:c,getPlan:o,setActivityState:l,setDaysSinceSyncActivity:d,setPlan:u}=p,v=w.default,S=768;function t(i,r,f,h){var e=this;e.$scope=i,e.$window=r,e.DataService=f,e.NewrelicService=h,e.$window.addEventListener(“resize”,function(){e._handleWindowResize()}),e._preloadData().then(function(){e._setNewrelicCustomAttributes()})}return t.prototype.handleNavigationToggleButton=function(){this.isNavigationExpanded=!this.isNavigationExpanded},t.prototype._handleWindowResize=function(){this.$window.innerWidth>=S&&(this.isNavigationExpanded=!1,this.$scope.$digest())},t.prototype._preloadData=function(){var i=this;return i.DataService.get(“/user_info”).then(function(r){l(r.activity_state),d(r.days_since_sync_activity),u(r.plan)})},t.prototype._setNewrelicCustomAttributes=function(){var i=v.getSearchParam(“referrer”);i&&this.NewrelicService.setCustomAttribute(“referrer”,i),this.NewrelicService.setCustomAttribute(“activityState”,s()),this.NewrelicService.setCustomAttribute(“daysSinceSyncActivity”,c()),this.NewrelicService.setCustomAttribute(“plan”,o()),this.NewrelicService.setCustomAttribute(“referrerHeader”,this.NewrelicService.getReferrerHeader())},n=t,n}export{N as r}; //# sourceMappingURL=header_controller-6O7ykbuw.js.map