Admin Portal - Profile

This commit is contained in:
hillelcoren 2022-12-12 12:06:30 +00:00
parent 620475d90f
commit 18f7c6c52a

View File

@ -112174,16 +112174,18 @@
this.viewModel = t0; this.viewModel = t0;
this.key = t1; this.key = t1;
}, },
_AccountManagementState: function _AccountManagementState(t0, t1, t2, t3, t4, t5) { _AccountManagementState: function _AccountManagementState(t0, t1, t2, t3, t4, t5, t6, t7) {
var _ = this; var _ = this;
_._account_management$_controller = _._account_management$_focusNode = null; _._account_management$_controller = _._account_management$_focusNode = null;
_._account_management$_debouncer = t0; _._account_management$_debouncer = t0;
_._trackingIdController = t1; _._trackingIdController = t1;
_._account_management$_controllers = t2; _._account_management$_matomoUrl = t2;
_.SingleTickerProviderStateMixin__ticker = t3; _._account_management$_matomoId = t3;
_.SingleTickerProviderStateMixin__tickerModeNotifier = t4; _._account_management$_controllers = t4;
_.SingleTickerProviderStateMixin__ticker = t5;
_.SingleTickerProviderStateMixin__tickerModeNotifier = t6;
_._widget = null; _._widget = null;
_._debugLifecycleState = t5; _._debugLifecycleState = t7;
_._framework$_element = null; _._framework$_element = null;
}, },
_AccountManagementState_didChangeDependencies_closure: function _AccountManagementState_didChangeDependencies_closure(t0) { _AccountManagementState_didChangeDependencies_closure: function _AccountManagementState_didChangeDependencies_closure(t0) {
@ -471701,7 +471703,8 @@
}; };
A.AccountManagement.prototype = { A.AccountManagement.prototype = {
createState$0() { createState$0() {
return new A._AccountManagementState(new A.Debouncer(500), new A.TextEditingController(B.TextEditingValue_li8, $.$get$ChangeNotifier__emptyListeners()), A._setArrayType([], type$.JSArray_legacy_TextEditingController), null, null, B._StateLifecycle_0); var t1 = $.$get$ChangeNotifier__emptyListeners();
return new A._AccountManagementState(new A.Debouncer(500), new A.TextEditingController(B.TextEditingValue_li8, t1), new A.TextEditingController(B.TextEditingValue_li8, t1), new A.TextEditingController(B.TextEditingValue_li8, t1), A._setArrayType([], type$.JSArray_legacy_TextEditingController), null, null, B._StateLifecycle_0);
} }
}; };
A._AccountManagementState.prototype = { A._AccountManagementState.prototype = {
@ -471724,12 +471727,17 @@
t2[0].call$1(new A.UpdateSettingsTab(t1)); t2[0].call$1(new A.UpdateSettingsTab(t1));
}, },
didChangeDependencies$0() { didChangeDependencies$0() {
var _this = this, var company, _this = this,
t1 = _this._trackingIdController, t1 = _this._trackingIdController,
t2 = A._setArrayType([t1], type$.JSArray_legacy_TextEditingController); t2 = _this._account_management$_matomoId,
_this._account_management$_controllers = t2; t3 = _this._account_management$_matomoUrl,
B.JSArray_methods.forEach$1(t2, new A._AccountManagementState_didChangeDependencies_closure(_this)); t4 = A._setArrayType([t1, t2, t3], type$.JSArray_legacy_TextEditingController);
t1.set$text(0, _this._widget.viewModel.company.googleAnalyticsKey); _this._account_management$_controllers = t4;
B.JSArray_methods.forEach$1(t4, new A._AccountManagementState_didChangeDependencies_closure(_this));
company = _this._widget.viewModel.company;
t1.set$text(0, company.googleAnalyticsKey);
t2.set$text(0, company.matomoId);
t3.set$text(0, company.matomoUrl);
B.JSArray_methods.forEach$1(_this._account_management$_controllers, new A._AccountManagementState_didChangeDependencies_closure0(_this)); B.JSArray_methods.forEach$1(_this._account_management$_controllers, new A._AccountManagementState_didChangeDependencies_closure0(_this));
_this.super$State$didChangeDependencies(); _this.super$State$didChangeDependencies();
}, },
@ -471750,6 +471758,8 @@
build$1(context) { build$1(context) {
var t4, t5, t6, t7, t8, t9, t10, t11, t12, t13, t14, t15, _this = this, _null = null, _s6_ = ":count", var t4, t5, t6, t7, t8, t9, t10, t11, t12, t13, t14, t15, _this = this, _null = null, _s6_ = ":count",
_s28_ = "google_analytics_tracking_id", _s28_ = "google_analytics_tracking_id",
_s10_ = "matomo_url",
_s9_ = "matomo_id",
t1 = A.Localizations_of(context, B.Type_AppLocalization_KyD, type$.legacy_AppLocalization), t1 = A.Localizations_of(context, B.Type_AppLocalization_KyD, type$.legacy_AppLocalization),
viewModel = _this._widget.viewModel, viewModel = _this._widget.viewModel,
state = viewModel.state, state = viewModel.state,
@ -471789,18 +471799,25 @@
t8 = J.$index$asx(t4.$index(0, t5), _s28_); t8 = J.$index$asx(t4.$index(0, t5), _s28_);
if (t8 == null) if (t8 == null)
t8 = J.$index$asx(t4.$index(0, "en"), _s28_); t8 = J.$index$asx(t4.$index(0, "en"), _s28_);
t8 = A._setArrayType([A.FormCard$(_null, A._setArrayType([new A.LearnMoreUrl(A.DecoratedFormField$(false, _null, false, _this._trackingIdController, _null, true, _null, _null, _null, _null, false, false, _null, B.TextInputType_0_null_null, t8, _null, _null, false, _null, _null, _null, true, _null, _null, B.TextAlign_4, _null), "https://support.google.com/analytics/answer/1037249?hl=en", _null, _null)], t14), _null, _null, false, _null, false, _null)], t14); t8 = A.FormCard$(_null, A._setArrayType([new A.LearnMoreUrl(A.DecoratedFormField$(false, _null, false, _this._trackingIdController, _null, true, _null, _null, _null, _null, false, false, _null, B.TextInputType_0_null_null, t8, _null, _null, false, _null, _null, _null, true, _null, _null, B.TextAlign_4, _null), "https://support.google.com/analytics/answer/1037249?hl=en", _null, _null)], t14), _null, _null, false, _null, false, _null);
t9 = J.$index$asx(t4.$index(0, t5), _s10_);
if (t9 == null)
t9 = J.$index$asx(t4.$index(0, "en"), _s10_);
t9 = A.DecoratedFormField$(false, _null, false, _this._account_management$_matomoUrl, _null, true, _null, _null, _null, _null, false, false, _null, B.TextInputType_6_null_null, t9, _null, _null, false, _null, _null, _null, true, _null, _null, B.TextAlign_4, _null);
t15 = J.$index$asx(t4.$index(0, t5), _s9_);
if (t15 == null)
t15 = J.$index$asx(t4.$index(0, "en"), _s9_);
t15 = A._setArrayType([t8, A.FormCard$(_null, A._setArrayType([t9, A.DecoratedFormField$(false, _null, false, _this._account_management$_matomoId, _null, true, _null, _null, _null, _null, false, false, _null, B.TextInputType_0_null_null, t15, _null, _null, false, _null, _null, _null, true, _null, _null, B.TextAlign_4, _null)], t14), _null, _null, false, _null, true, _null)], t14);
t9 = J.$index$asx(t4.$index(0, t5), "password_timeout"); t9 = J.$index$asx(t4.$index(0, t5), "password_timeout");
t8 = t9 == null ? "" : t9;
t8 = A.AppDropdownButton$(_null, "", true, t2, _null, t8, new A._AccountManagementState_build_closure0(viewModel, company), _null, false, company.passwordTimeout, t3);
t9 = J.$index$asx(t4.$index(0, t5), "web_session_timeout");
if (t9 == null) if (t9 == null)
t9 = ""; t9 = "";
t9 = A.AppDropdownButton$(_null, "", true, t2, _null, t9, new A._AccountManagementState_build_closure0(viewModel, company), _null, false, company.passwordTimeout, t3); t3 = A.AppDropdownButton$(_null, "", true, t2, _null, t9, new A._AccountManagementState_build_closure1(viewModel, company), _null, false, company.sessionTimeout, t3);
t15 = J.$index$asx(t4.$index(0, t5), "web_session_timeout");
if (t15 == null)
t15 = "";
t3 = A.AppDropdownButton$(_null, "", true, t2, _null, t15, new A._AccountManagementState_build_closure1(viewModel, company), _null, false, company.sessionTimeout, t3);
t5 = J.$index$asx(t4.$index(0, t5), "require_password_with_social_login"); t5 = J.$index$asx(t4.$index(0, t5), "require_password_with_social_login");
t2 = t5 == null ? "" : t5; t2 = t5 == null ? "" : t5;
return A.EditScaffold$(_null, t13, new A.AppTabForm(t11, t12, A._setArrayType([new A._AccountOverview(viewModel, _null), new A.ScrollableListView(t1, _null, _null, true, false, _null), new A.ScrollableListView(t8, _null, _null, true, false, _null), new A.ScrollableListView(A._setArrayType([A.FormCard$(_null, A._setArrayType([t9, t3, A.BoolDropdownButton$(_null, _null, _null, _null, t2, _null, new A._AccountManagementState_build_closure2(viewModel, company), company.oauthPasswordRequired)], t14), _null, _null, false, _null, false, _null)], t14), _null, _null, true, false, _null)], t14), t10, _null, _null), _null, _null, _null, false, _null, _null, t7, _null, t6); return A.EditScaffold$(_null, t13, new A.AppTabForm(t11, t12, A._setArrayType([new A._AccountOverview(viewModel, _null), new A.ScrollableListView(t1, _null, _null, true, false, _null), new A.ScrollableListView(t15, _null, _null, true, false, _null), new A.ScrollableListView(A._setArrayType([A.FormCard$(_null, A._setArrayType([t8, t3, A.BoolDropdownButton$(_null, _null, _null, _null, t2, _null, new A._AccountManagementState_build_closure2(viewModel, company), company.oauthPasswordRequired)], t14), _null, _null, false, _null, false, _null)], t14), _null, _null, true, false, _null)], t14), t10, _null, _null), _null, _null, _null, false, _null, _null, t7, _null, t6);
} }
}; };
A._AccountManagementState_didChangeDependencies_closure.prototype = { A._AccountManagementState_didChangeDependencies_closure.prototype = {
@ -471817,8 +471834,13 @@
}; };
A._AccountManagementState__onChanged_closure.prototype = { A._AccountManagementState__onChanged_closure.prototype = {
call$1(b) { call$1(b) {
var t1 = J.trim$0$s(this.$this._trackingIdController._change_notifier$_value.text); var t1 = this.$this,
b.get$_company_model$_$this()._googleAnalyticsKey = t1; t2 = J.trim$0$s(t1._trackingIdController._change_notifier$_value.text);
b.get$_company_model$_$this()._googleAnalyticsKey = t2;
t2 = J.trim$0$s(t1._account_management$_matomoId._change_notifier$_value.text);
b.get$_company_model$_$this()._matomoId = t2;
t1 = J.trim$0$s(t1._account_management$_matomoUrl._change_notifier$_value.text);
b.get$_company_model$_$this()._matomoUrl = t1;
return b; return b;
}, },
$signature: 25 $signature: 25