1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-09-20 08:21:34 +02:00

Admin Portal - Profile

This commit is contained in:
hillelcoren 2023-03-03 12:14:57 +00:00
parent 0143bf92ba
commit 37de95d24a

View File

@ -463521,7 +463521,7 @@
};
A._LoginState_build_closure17.prototype = {
call$0() {
A.launchUrl(A.Uri_parse("https://status.invoiceninja.com/", 0, null));
A.launchUrl(A.Uri_parse("https://status.invoiceninja.com", 0, null));
},
$signature: 1
};
@ -468268,7 +468268,7 @@
};
A.ClientOverview.prototype = {
build$1(context) {
var statics, t3, fields, t4, t5, t6, t7, group, contact, t8, user, tokenMap, gatewayMap, linkMap, t9, t10, t11, t12, t13, t14, t15, _this = this, _null = null,
var statics, t3, fields, t4, t5, t6, t7, group, contact, t8, user, tokenMap, gatewayMap, linkMap, availableCredits, unappliedPayments, t9, t10, t11, t12, t13, t14, t15, t16, _this = this, _null = null,
t1 = A.Localizations_of(context, B.Type_AppLocalization_KyD, type$.legacy_AppLocalization),
t2 = _this.viewModel,
client = t2.client,
@ -468329,104 +468329,78 @@
t3 = client.customValue4;
if (t3.length !== 0)
fields.$indexSet(0, company.getCustomFieldLabel$1("client4"), A.formatCustomValue(context, "client4", t3));
t3 = t1.get$paidToDate();
t3 = $.$get$memoizedGetClientAvailableCredits();
t7 = client.id;
t8 = A.formatNumber(client.paidToDate, context, t7, _null, B.FormatNumberType_0, true, _null, _null, false);
t8 = A.EntityHeader$(client, t3, t1.get$balanceDue(), A.formatNumber(client.balance, context, t7, _null, B.FormatNumberType_0, true, _null, _null, false), _null, _null, t8);
t8 = t2.userCompanyStates;
t2 = t2.uiState.selectedCompanyIndex;
t8 = t8._list;
availableCredits = t3.call$2(t7, t8[t2].creditState.map);
unappliedPayments = $.$get$memoizedGetClientUnappliedPayments().call$2(t7, t8[t2].paymentState.map);
t3 = t1.get$paidToDate();
t9 = A.formatNumber(client.paidToDate, context, t7, _null, B.FormatNumberType_0, true, _null, _null, false);
t10 = type$.JSArray_legacy_Widget;
t9 = A._setArrayType([A.EntityHeader$(client, t3, t1.get$balanceDue(), A.formatNumber(client.balance, context, t7, _null, B.FormatNumberType_0, true, _null, _null, false), _null, _null, t9), new A.ListDivider(_null)], t10);
t3 = availableCredits === 0;
if (!t3 || unappliedPayments !== 0) {
t11 = A._setArrayType([], t10);
if (!t3)
t11.push(A.Text$(B.JSString_methods.$add(t1.get$credit() + ": ", A.formatNumber(availableCredits, context, t7, _null, B.FormatNumberType_0, true, _null, _null, false)), _null, _null, _null, _null, _null, _null, _null, _null, _null));
if (unappliedPayments !== 0)
t11.push(A.Text$(B.JSString_methods.$add(t1.get$payments() + ": ", A.formatNumber(unappliedPayments, context, t7, _null, B.FormatNumberType_0, true, _null, _null, false)), _null, _null, _null, _null, _null, _null, _null, _null, _null));
B.JSArray_methods.addAll$1(t9, A._setArrayType([new A.Padding(B.EdgeInsets_20_12_20_12, A.Column$(t11, B.CrossAxisAlignment_0, _null, B.MainAxisAlignment_0, B.MainAxisSize_1, B.VerticalDirection_1), _null), new A.ListDivider(_null)], t10));
}
t3 = contact.link;
t9 = type$.JSArray_legacy_Widget;
t3 = A._setArrayType([t8, new A.ListDivider(_null), new A.Padding(B.EdgeInsets_20_16_20_16, new A.PortalLinks(t3 + "?silent=true", t3, client, _null, _null), _null), new A.ListDivider(_null)], t9);
t8 = client.privateNotes;
if (t8.length !== 0)
B.JSArray_methods.addAll$1(t3, A._setArrayType([new A.IconMessage(t8, B.IconData_58286_MaterialIcons_null_false, _null, _null, _null), new A.ListDivider(_null)], t9));
t9.push(new A.Padding(B.EdgeInsets_20_16_20_16, new A.PortalLinks(t3 + "?silent=true", t3, client, _null, _null), _null));
t9.push(new A.ListDivider(_null));
t3 = client.privateNotes;
if (t3.length !== 0)
B.JSArray_methods.addAll$1(t9, A._setArrayType([new A.IconMessage(t3, B.IconData_58286_MaterialIcons_null_false, _null, _null, _null), new A.ListDivider(_null)], t10));
if (t5)
t3.push(A.EntityListTile$(group, _this.isFilter, _null));
for (t5 = A.LinkedHashMapKeyIterator$(tokenMap, tokenMap._modifications, tokenMap.$ti._precomputed1), t8 = t1.localeCode; t5.moveNext$0();) {
t10 = t5.__js_helper$_current;
t11 = J.$index$asx($.$get$LocalizationsProvider__localizedValues().$index(0, t8), "gateway");
if (t11 == null)
t11 = "";
t12 = gatewayMap.$index(0, t10).label;
t13 = tokenMap.$index(0, t10);
t13.toString;
t14 = A._arrayInstanceType(t13)._eval$1("MappedListIterable<1,TokenMeta*>");
t14 = A.Column$(A.List_List$of(new A.MappedListIterable(t13, new A.ClientOverview_build_closure0(), t14), true, t14._eval$1("ListIterable.E")), B.CrossAxisAlignment_2, _null, B.MainAxisAlignment_0, B.MainAxisSize_0, B.VerticalDirection_1);
t13 = linkMap.containsKey$1(0, t10) ? new A.ClientOverview_build_closure1(linkMap, t10) : _null;
t15 = A.IconButton$(_null, _null, _null, _null, A.Icon$(B.IconData_58497_MaterialIcons_null_false, _null, _null), _null, new A.ClientOverview_build_closure2(), _null, _null, _null, _null);
t10 = linkMap.containsKey$1(0, t10) ? new A.IgnorePointer(true, _null, A.IconButton$(_null, _null, _null, _null, A.Icon$(B.IconData_58460_MaterialIcons_null_true, _null, _null), _null, new A.ClientOverview_build_closure3(), _null, _null, _null, _null), _null) : _null;
B.JSArray_methods.addAll$1(t3, A._setArrayType([A.ListTile$(false, _null, _null, _null, true, _null, _null, false, _null, new A.IgnorePointer(true, _null, t15, _null), _null, _null, t13, false, _null, _null, _null, t14, _null, new A.Text(t11 + " \u203a " + t12, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null), t10, _null), new A.ListDivider(_null)], t9));
t9.push(A.EntityListTile$(group, _this.isFilter, _null));
for (t3 = A.LinkedHashMapKeyIterator$(tokenMap, tokenMap._modifications, tokenMap.$ti._precomputed1), t5 = t1.localeCode; t3.moveNext$0();) {
t11 = t3.__js_helper$_current;
t12 = J.$index$asx($.$get$LocalizationsProvider__localizedValues().$index(0, t5), "gateway");
if (t12 == null)
t12 = "";
t13 = gatewayMap.$index(0, t11).label;
t14 = tokenMap.$index(0, t11);
t14.toString;
t15 = A._arrayInstanceType(t14)._eval$1("MappedListIterable<1,TokenMeta*>");
t15 = A.Column$(A.List_List$of(new A.MappedListIterable(t14, new A.ClientOverview_build_closure0(), t15), true, t15._eval$1("ListIterable.E")), B.CrossAxisAlignment_2, _null, B.MainAxisAlignment_0, B.MainAxisSize_0, B.VerticalDirection_1);
t14 = linkMap.containsKey$1(0, t11) ? new A.ClientOverview_build_closure1(linkMap, t11) : _null;
t16 = A.IconButton$(_null, _null, _null, _null, A.Icon$(B.IconData_58497_MaterialIcons_null_false, _null, _null), _null, new A.ClientOverview_build_closure2(), _null, _null, _null, _null);
t11 = linkMap.containsKey$1(0, t11) ? new A.IgnorePointer(true, _null, A.IconButton$(_null, _null, _null, _null, A.Icon$(B.IconData_58460_MaterialIcons_null_true, _null, _null), _null, new A.ClientOverview_build_closure3(), _null, _null, _null, _null), _null) : _null;
B.JSArray_methods.addAll$1(t9, A._setArrayType([A.ListTile$(false, _null, _null, _null, true, _null, _null, false, _null, new A.IgnorePointer(true, _null, t16, _null), _null, _null, t14, false, _null, _null, _null, t15, _null, new A.Text(t12 + " \u203a " + t13, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null), t11, _null), new A.ListDivider(_null)], t10));
}
if (t6 && t4.length !== 0)
t3.push(A.EntityListTile$(user, _this.isFilter, _null));
t3.push(new A.FieldGrid(fields, _null));
if (company.isModuleEnabled$1(B.EntityType_invoice)) {
t4 = t1.get$invoices();
t5 = $.$get$memoizedInvoiceStatsForClient();
t6 = t2.userCompanyStates;
t8 = t2.uiState.selectedCompanyIndex;
t3.push(new A.EntitiesListTile(client, B.EntityType_invoice, t4, t5.call$2(t7, t6._list[t8].invoiceState.map).present$2(t1.get$active(t1), t1.get$archived()), _this.isFilter, false, _null));
}
if (company.isModuleEnabled$1(B.EntityType_task)) {
t4 = t1.get$tasks();
t5 = $.$get$memoizedTaskStatsForClient();
t6 = t2.userCompanyStates;
t8 = t2.uiState.selectedCompanyIndex;
t3.push(new A.EntitiesListTile(client, B.EntityType_task, t4, t5.call$2(t7, t6._list[t8].taskState.map).present$2(t1.get$active(t1), t1.get$archived()), _this.isFilter, false, _null));
}
if (company.isModuleEnabled$1(B.EntityType_expense)) {
t4 = t1.get$expenses();
t5 = $.$get$memoizedExpenseStatsForClient();
t6 = t2.userCompanyStates;
t8 = t2.uiState.selectedCompanyIndex;
t3.push(new A.EntitiesListTile(client, B.EntityType_expense, t4, t5.call$2(t7, t6._list[t8].expenseState.map).present$2(t1.get$active(t1), t1.get$archived()), _this.isFilter, false, _null));
}
t9.push(A.EntityListTile$(user, _this.isFilter, _null));
t9.push(new A.FieldGrid(fields, _null));
if (company.isModuleEnabled$1(B.EntityType_invoice))
t9.push(new A.EntitiesListTile(client, B.EntityType_invoice, t1.get$invoices(), $.$get$memoizedInvoiceStatsForClient().call$2(t7, t8[t2].invoiceState.map).present$2(t1.get$active(t1), t1.get$archived()), _this.isFilter, false, _null));
if (company.isModuleEnabled$1(B.EntityType_task))
t9.push(new A.EntitiesListTile(client, B.EntityType_task, t1.get$tasks(), $.$get$memoizedTaskStatsForClient().call$2(t7, t8[t2].taskState.map).present$2(t1.get$active(t1), t1.get$archived()), _this.isFilter, false, _null));
if (company.isModuleEnabled$1(B.EntityType_expense))
t9.push(new A.EntitiesListTile(client, B.EntityType_expense, t1.get$expenses(), $.$get$memoizedExpenseStatsForClient().call$2(t7, t8[t2].expenseState.map).present$2(t1.get$active(t1), t1.get$archived()), _this.isFilter, false, _null));
if (company.isModuleEnabled$1(B.EntityType_payment)) {
t4 = t1.get$payments();
t5 = $.$get$memoizedPaymentStatsForClient();
t6 = t2.userCompanyStates;
t8 = t2.uiState.selectedCompanyIndex;
t8 = t6._list[t8];
t3.push(new A.EntitiesListTile(client, B.EntityType_payment, t4, t5.call$3(t7, t8.paymentState.map, t8.invoiceState.map).present$2(t1.get$active(t1), t1.get$archived()), _this.isFilter, false, _null));
}
if (company.isModuleEnabled$1(B.EntityType_quote)) {
t4 = t1.get$quotes(t1);
t5 = $.$get$memoizedQuoteStatsForClient();
t6 = t2.userCompanyStates;
t8 = t2.uiState.selectedCompanyIndex;
t3.push(new A.EntitiesListTile(client, B.EntityType_quote, t4, t5.call$2(t7, t6._list[t8].quoteState.map).present$2(t1.get$active(t1), t1.get$archived()), _this.isFilter, false, _null));
}
if (company.isModuleEnabled$1(B.EntityType_credit)) {
t4 = t1.get$credits();
t5 = $.$get$memoizedCreditStatsForClient();
t6 = t2.userCompanyStates;
t8 = t2.uiState.selectedCompanyIndex;
t3.push(new A.EntitiesListTile(client, B.EntityType_credit, t4, t5.call$2(t7, t6._list[t8].creditState.map).present$2(t1.get$active(t1), t1.get$archived()), _this.isFilter, false, _null));
}
if (company.isModuleEnabled$1(B.EntityType_project)) {
t4 = t1.get$projects();
t5 = $.$get$memoizedProjectStatsForClient();
t6 = t2.userCompanyStates;
t8 = t2.uiState.selectedCompanyIndex;
t3.push(new A.EntitiesListTile(client, B.EntityType_project, t4, t5.call$2(t7, t6._list[t8].projectState.map).present$2(t1.get$active(t1), t1.get$archived()), _this.isFilter, false, _null));
}
if (company.isModuleEnabled$1(B.EntityType_recurringInvoice)) {
t4 = t1.get$recurringInvoices();
t5 = $.$get$memoizedRecurringInvoiceStatsForClient();
t6 = t2.userCompanyStates;
t8 = t2.uiState.selectedCompanyIndex;
t3.push(new A.EntitiesListTile(client, B.EntityType_recurringInvoice, t4, t5.call$2(t7, t6._list[t8].recurringInvoiceState.map).present$2(t1.get$active(t1), t1.get$archived()), _this.isFilter, false, _null));
}
if (company.isModuleEnabled$1(B.EntityType_recurringExpense)) {
t4 = t1.get$recurringExpenses();
t5 = $.$get$memoizedRecurringExpenseStatsForClient();
t6 = t2.userCompanyStates;
t2 = t2.uiState.selectedCompanyIndex;
t3.push(new A.EntitiesListTile(client, B.EntityType_recurringExpense, t4, t5.call$2(t7, t6._list[t2].recurringExpenseState.map).present$2(t1.get$active(t1), t1.get$archived()), _this.isFilter, false, _null));
t3 = t1.get$payments();
t4 = $.$get$memoizedPaymentStatsForClient();
t5 = t8[t2];
t9.push(new A.EntitiesListTile(client, B.EntityType_payment, t3, t4.call$3(t7, t5.paymentState.map, t5.invoiceState.map).present$2(t1.get$active(t1), t1.get$archived()), _this.isFilter, false, _null));
}
if (company.isModuleEnabled$1(B.EntityType_quote))
t9.push(new A.EntitiesListTile(client, B.EntityType_quote, t1.get$quotes(t1), $.$get$memoizedQuoteStatsForClient().call$2(t7, t8[t2].quoteState.map).present$2(t1.get$active(t1), t1.get$archived()), _this.isFilter, false, _null));
if (company.isModuleEnabled$1(B.EntityType_credit))
t9.push(new A.EntitiesListTile(client, B.EntityType_credit, t1.get$credits(), $.$get$memoizedCreditStatsForClient().call$2(t7, t8[t2].creditState.map).present$2(t1.get$active(t1), t1.get$archived()), _this.isFilter, false, _null));
if (company.isModuleEnabled$1(B.EntityType_project))
t9.push(new A.EntitiesListTile(client, B.EntityType_project, t1.get$projects(), $.$get$memoizedProjectStatsForClient().call$2(t7, t8[t2].projectState.map).present$2(t1.get$active(t1), t1.get$archived()), _this.isFilter, false, _null));
if (company.isModuleEnabled$1(B.EntityType_recurringInvoice))
t9.push(new A.EntitiesListTile(client, B.EntityType_recurringInvoice, t1.get$recurringInvoices(), $.$get$memoizedRecurringInvoiceStatsForClient().call$2(t7, t8[t2].recurringInvoiceState.map).present$2(t1.get$active(t1), t1.get$archived()), _this.isFilter, false, _null));
if (company.isModuleEnabled$1(B.EntityType_recurringExpense))
t9.push(new A.EntitiesListTile(client, B.EntityType_recurringExpense, t1.get$recurringExpenses(), $.$get$memoizedRecurringExpenseStatsForClient().call$2(t7, t8[t2].recurringExpenseState.map).present$2(t1.get$active(t1), t1.get$archived()), _this.isFilter, false, _null));
t1 = client.publicNotes;
if (t1.length !== 0)
B.JSArray_methods.addAll$1(t3, A._setArrayType([new A.IconMessage(t1, _null, _null, _null, _null), new A.ListDivider(_null)], t9));
return new A.ScrollableListView(t3, _null, _null, _null, false, _null);
B.JSArray_methods.addAll$1(t9, A._setArrayType([new A.IconMessage(t1, _null, _null, _null, _null), new A.ListDivider(_null)], t10));
return new A.ScrollableListView(t9, _null, _null, _null, false, _null);
}
};
A.ClientOverview_build_closure.prototype = {
@ -573540,6 +573514,7 @@
B.EdgeInsets_20_0_20_3 = new A.EdgeInsets(20, 0, 20, 3);
B.EdgeInsets_20_0_20_8 = new A.EdgeInsets(20, 0, 20, 8);
B.EdgeInsets_20_10_56_8 = new A.EdgeInsets(20, 10, 56, 8);
B.EdgeInsets_20_12_20_12 = new A.EdgeInsets(20, 12, 20, 12);
B.EdgeInsets_20_16_20_16 = new A.EdgeInsets(20, 16, 20, 16);
B.EdgeInsets_20_20_0_0 = new A.EdgeInsets(20, 20, 0, 0);
B.EdgeInsets_20_20_20_20 = new A.EdgeInsets(20, 20, 20, 20);