diff --git a/public/main.profile.dart.js b/public/main.profile.dart.js index 29abb3c24a78..79ab409b6853 100644 --- a/public/main.profile.dart.js +++ b/public/main.profile.dart.js @@ -19389,8 +19389,8 @@ var _ = this; _.action = t0; _.uiState = t1; - _.next = t2; - _.store = t3; + _.store = t2; + _.next = t3; }, _viewSettings___closure: function _viewSettings___closure() { }, @@ -22825,9 +22825,9 @@ _viewReports_closure: function _viewReports_closure() { }, _viewReports__closure: function _viewReports__closure(t0, t1, t2) { - this.next = t0; - this.action = t1; - this.store = t2; + this.store = t0; + this.next = t1; + this.action = t2; }, _viewReports___closure: function _viewReports___closure() { }, @@ -309564,8 +309564,8 @@ t4 = t2.uiState.selectedCompanyIndex; if (J.$index$asx(t3._list, t4).get$isStale() || t2.staticState.get$isStale()) J.$index$asx(t1.get$_dispatchers(), 0).call$1(new M.RefreshData(null, false, false, false)); - this.next.call$1(this.action); J.$index$asx(t1.get$_dispatchers(), 0).call$1(new Q.UpdateCurrentRoute(_s10_)); + this.next.call$1(this.action); if (t1.get$_store$_state().prefState.appLayout === C.AppLayout_mobile) $.$get$navigatorKey().get$currentState().pushNamedAndRemoveUntil$1$2(_s10_, new R._createViewDashboard___closure(), type$.legacy_Object); }, @@ -332029,7 +332029,7 @@ t1.toString; t1 = $.WidgetsBinding__instance.WidgetsBinding__buildOwner._globalKeyRegistry.$index(0, t1); dynamicAction.toString; - M.checkForChanges(new R._viewReports__closure(next, dynamicAction, store), t1, false, store); + M.checkForChanges(new R._viewReports__closure(store, next, dynamicAction), t1, false, store); }, "call*": "call$3", $requiredArgCount: 3, @@ -332037,11 +332037,10 @@ }; R._viewReports__closure.prototype = { call$0: function() { - var t1, - _s8_ = "/reports"; - this.next.call$1(this.action); - t1 = this.store; + var _s8_ = "/reports", + t1 = this.store; J.$index$asx(t1.get$_dispatchers(), 0).call$1(new Q.UpdateCurrentRoute(_s8_)); + this.next.call$1(this.action); if (t1.get$_store$_state().prefState.appLayout === C.AppLayout_mobile) $.$get$navigatorKey().get$currentState().pushNamedAndRemoveUntil$1$2(_s8_, new R._viewReports___closure(), type$.legacy_Object); }, @@ -332382,7 +332381,7 @@ uiState = store.get$_store$_state().uiState; t1 = $.$get$navigatorKey(); t1.toString; - M.checkForChanges(new D._viewSettings__closure(dynamicAction, uiState, next, store), $.WidgetsBinding__instance.WidgetsBinding__buildOwner._globalKeyRegistry.$index(0, t1), dynamicAction.force, store); + M.checkForChanges(new D._viewSettings__closure(dynamicAction, uiState, store, next), $.WidgetsBinding__instance.WidgetsBinding__buildOwner._globalKeyRegistry.$index(0, t1), dynamicAction.force, store); }, "call*": "call$3", $requiredArgCount: 3, @@ -332390,7 +332389,7 @@ }; D._viewSettings__closure.prototype = { call$0: function() { - var route, t4, t5, _this = this, + var route, t4, t5, t6, _this = this, t1 = _this.action, t2 = t1.section, t3 = t2 == null; @@ -332400,15 +332399,15 @@ t2 = _this.uiState; route = t2.get$mainRoute() === "settings" ? "/settings/company_details" : "/settings" + ("/" + t2.settingsUIState.section); } + t2 = _this.store; + t4 = t2.get$_store$_state(); + t5 = t4.userCompanyStates; + t6 = t4.uiState.selectedCompanyIndex; + if (J.$index$asx(t5._list, t6).get$isStale() || t4.staticState.get$isStale()) + J.$index$asx(t2.get$_dispatchers(), 0).call$1(new M.RefreshData(null, false, false, false)); + J.$index$asx(t2.get$_dispatchers(), 0).call$1(new Q.UpdateCurrentRoute(route)); _this.next.call$1(t1); - t1 = _this.store; - t2 = t1.get$_store$_state(); - t4 = t2.userCompanyStates; - t5 = t2.uiState.selectedCompanyIndex; - if (J.$index$asx(t4._list, t5).get$isStale() || t2.staticState.get$isStale()) - J.$index$asx(t1.get$_dispatchers(), 0).call$1(new M.RefreshData(null, false, false, false)); - J.$index$asx(t1.get$_dispatchers(), 0).call$1(new Q.UpdateCurrentRoute(route)); - if (t1.get$_store$_state().prefState.appLayout === C.AppLayout_mobile) { + if (t2.get$_store$_state().prefState.appLayout === C.AppLayout_mobile) { t1 = type$.legacy_Object; if (t3) $.$get$navigatorKey().get$currentState().pushNamedAndRemoveUntil$1$2("/settings", new D._viewSettings___closure(), t1);