Admin Portal - Profile

This commit is contained in:
hillelcoren 2022-11-10 14:10:04 +00:00
parent 3d8d0c1145
commit 6703dd1f51

View File

@ -120179,12 +120179,14 @@
return; return;
} }
if (user.oauthProvider.length !== 0) if (user.oauthProvider.length !== 0)
if (!skipOAuth) { if (!skipOAuth)
user.oauthProvider === "google"; if (user.oauthProvider !== "apple") {
user.oauthProvider === "apple"; user.oauthProvider === "google";
user.toString; user.toString;
t1 = false; t1 = false;
} else } else
t1 = true;
else
t1 = true; t1 = true;
else else
t1 = true; t1 = true;
@ -418337,7 +418339,7 @@
}; };
A.EditScaffold.prototype = { A.EditScaffold.prototype = {
build$1(context) { build$1(context) {
var t3, t4, t5, account, t6, t7, isEnabled, t8, t9, upgradeMessage, t10, isCancelEnabled, showUpgradeBanner, textStyle, showOverflow, t11, t12, t13, t14, t15, _this = this, _null = null, var t3, t4, t5, account, t6, t7, t8, t9, isEnabled, t10, t11, upgradeMessage, t12, isCancelEnabled, showUpgradeBanner, textStyle, showOverflow, t13, t14, t15, t16, _this = this, _null = null,
_s24_ = "start_free_trial_message", _s24_ = "start_free_trial_message",
_s2_ = "en", _s2_ = "en",
_s21_ = "free_trial_ends_today", _s21_ = "free_trial_ends_today",
@ -418354,55 +418356,53 @@
account = t3[t5].userCompany.account; account = t3[t5].userCompany.account;
t6 = A.Localizations_of(context, B.Type_AppLocalization_KyD, type$.legacy_AppLocalization); t6 = A.Localizations_of(context, B.Type_AppLocalization_KyD, type$.legacy_AppLocalization);
t1.bannerClick = null; t1.bannerClick = null;
if (A.getLayout(context) === B.AppLayout_mobile || !B.JSString_methods.startsWith$1(t4.currentRoute, "/settings") || t4.get$isEditing() || t4.settingsUIState.isChanged) t7 = t2.isSaving;
if (!t2.isSaving) { t8 = !t7;
t7 = _this.entity; if (t8) {
t7 = t7 == null ? _null : t7.get$isEditable(); t9 = _this.entity;
t7 = t7 !== false; t9 = t9 == null ? _null : t9.get$isEditable();
isEnabled = t7; isEnabled = t9 !== false;
} else } else
isEnabled = false;
else
isEnabled = false; isEnabled = false;
t7 = t3[t5].userCompany; t9 = t3[t5].userCompany;
if (t7.isOwner) { if (t9.isOwner) {
t7 = t7.account; t9 = t9.account;
if (t7.trialStarted.length === 0 && t7.plan === "" && !A.supportsInAppPurchase()) { if (t9.trialStarted.length === 0 && t9.plan === "" && !A.supportsInAppPurchase()) {
t6.toString; t6.toString;
t7 = $.$get$LocalizationsProvider__localizedValues(); t9 = $.$get$LocalizationsProvider__localizedValues();
t8 = t6.localeCode; t10 = t6.localeCode;
t9 = J.$index$asx(t7.$index(0, t8), _s24_); t11 = J.$index$asx(t9.$index(0, t10), _s24_);
if (t9 == null) if (t11 == null)
t9 = J.$index$asx(t7.$index(0, _s2_), _s24_); t11 = J.$index$asx(t9.$index(0, _s2_), _s24_);
upgradeMessage = t9; upgradeMessage = t11;
} else { } else {
t6.toString; t6.toString;
t7 = $.$get$LocalizationsProvider__localizedValues(); t9 = $.$get$LocalizationsProvider__localizedValues();
t8 = t6.localeCode; t10 = t6.localeCode;
t9 = J.$index$asx(t7.$index(0, t8), "upgrade_to_paid_plan"); t11 = J.$index$asx(t9.$index(0, t10), "upgrade_to_paid_plan");
if (t9 == null) if (t11 == null)
t9 = ""; t11 = "";
upgradeMessage = t9; upgradeMessage = t11;
} }
} else { } else {
t6.toString; t6.toString;
t7 = $.$get$LocalizationsProvider__localizedValues(); t9 = $.$get$LocalizationsProvider__localizedValues();
t8 = t6.localeCode; t10 = t6.localeCode;
t9 = J.$index$asx(t7.$index(0, t8), "owner_upgrade_to_paid_plan"); t11 = J.$index$asx(t9.$index(0, t10), "owner_upgrade_to_paid_plan");
upgradeMessage = t9 == null ? "" : t9; upgradeMessage = t11 == null ? "" : t11;
} }
t9 = account.trialDaysLeft; t11 = account.trialDaysLeft;
if (t9 > 0) if (t11 > 0)
if (t9 <= 1) { if (t11 <= 1) {
t6.toString; t6.toString;
t9 = J.$index$asx(t7.$index(0, t8), _s21_); t11 = J.$index$asx(t9.$index(0, t10), _s21_);
upgradeMessage = t9 == null ? J.$index$asx(t7.$index(0, _s2_), _s21_) : t9; upgradeMessage = t11 == null ? J.$index$asx(t9.$index(0, _s2_), _s21_) : t11;
} else { } else {
t6.toString; t6.toString;
t10 = J.$index$asx(t7.$index(0, t8), _s23_); t12 = J.$index$asx(t9.$index(0, t10), _s23_);
if (t10 == null) if (t12 == null)
t10 = J.$index$asx(t7.$index(0, _s2_), _s23_); t12 = J.$index$asx(t9.$index(0, _s2_), _s23_);
upgradeMessage = J.replaceFirst$2$s(t10, ":count", B.JSInt_methods.toString$0(t9)); upgradeMessage = J.replaceFirst$2$s(t12, ":count", B.JSInt_methods.toString$0(t11));
} }
if (!(!t2.get$isHosted() || t3[t5].userCompany.account.plan === "enterprise" || t3[t5].userCompany.account.plan === "pro") || t3[t5].userCompany.account.trialDaysLeft > 0) if (!(!t2.get$isHosted() || t3[t5].userCompany.account.plan === "enterprise" || t3[t5].userCompany.account.plan === "pro") || t3[t5].userCompany.account.trialDaysLeft > 0)
if (B.JSArray_methods.contains$1(B.List_m5d, t4.get$baseSubRoute())) { if (B.JSArray_methods.contains$1(B.List_m5d, t4.get$baseSubRoute())) {
@ -418423,31 +418423,33 @@
if (B.JSString_methods.contains$1("/transaction/edit", t4.get$baseRoute()) && t3[t5].bankAccountState.list._list.length === 0) { if (B.JSString_methods.contains$1("/transaction/edit", t4.get$baseRoute()) && t3[t5].bankAccountState.list._list.length === 0) {
if (!t2.get$isHosted() || t3[t5].userCompany.account.plan === "enterprise") { if (!t2.get$isHosted() || t3[t5].userCompany.account.plan === "enterprise") {
t6.toString; t6.toString;
t4 = J.$index$asx(t7.$index(0, t8), _s34_); t4 = J.$index$asx(t9.$index(0, t10), _s34_);
upgradeMessage = t4 == null ? J.$index$asx(t7.$index(0, _s2_), _s34_) : t4; upgradeMessage = t4 == null ? J.$index$asx(t9.$index(0, _s2_), _s34_) : t4;
t1.bannerClick = new A.EditScaffold_build_closure(store); t1.bannerClick = new A.EditScaffold_build_closure(store);
} else } else
upgradeMessage = t6.get$upgradeToConnectBankAccount(); upgradeMessage = t6.get$upgradeToConnectBankAccount();
showUpgradeBanner = true; showUpgradeBanner = true;
} }
t4 = type$.JSArray_legacy_EntityAction; t4 = type$.JSArray_legacy_EntityAction;
t7 = A._setArrayType([], t4); t9 = A._setArrayType([], t4);
if (A.getLayout(context) === B.AppLayout_desktop) if (A.getLayout(context) === B.AppLayout_desktop)
t8 = isEnabled && _this.onSavePressed != null || isCancelEnabled; t10 = isEnabled && _this.onSavePressed != null || isCancelEnabled;
else else
t8 = false; t10 = false;
if (t8) if (t10)
t7.push(B.EntityAction_cancel); t9.push(B.EntityAction_cancel);
t7.push(B.EntityAction_save); t9.push(B.EntityAction_save);
t8 = _this.actions; t10 = _this.actions;
t9 = t8 == null; t11 = t10 == null;
t4 = t9 ? A._setArrayType([], t4) : t8; t4 = t11 ? A._setArrayType([], t4) : t10;
B.JSArray_methods.addAll$1(t7, new A.WhereIterable(t4, new A.EditScaffold_build_closure0(), A._arrayInstanceType(t4)._eval$1("WhereIterable<1>"))); B.JSArray_methods.addAll$1(t9, new A.WhereIterable(t4, new A.EditScaffold_build_closure0(), A._arrayInstanceType(t4)._eval$1("WhereIterable<1>")));
textStyle = A.Theme_of(context).textTheme.bodyMedium.copyWith$1$color(t2.get$headerTextColor()); textStyle = A.Theme_of(context).textTheme.bodyMedium.copyWith$1$color(t2.get$headerTextColor());
showOverflow = A.getLayout(context) === B.AppLayout_desktop && t2.get$isFullScreen(); showOverflow = A.getLayout(context) === B.AppLayout_desktop && t2.get$isFullScreen();
if (t2.get$companies().length === 0) if (t2.get$companies().length === 0)
t1 = new A.LoadingIndicator(_null, false, _null); t1 = new A.LoadingIndicator(_null, false, _null);
else { else {
t4 = type$.JSArray_legacy_Widget;
t12 = A._setArrayType([], t4);
if (showUpgradeBanner) if (showUpgradeBanner)
if (t3[t5].userCompany.isOwner) if (t3[t5].userCompany.isOwner)
t3 = !A.isApple() || A.supportsInAppPurchase(); t3 = !A.isApple() || A.supportsInAppPurchase();
@ -418456,72 +418458,71 @@
else else
t3 = false; t3 = false;
if (t3) if (t3)
t1 = A.Column$(A._setArrayType([A.InkWell$(false, _null, true, new A.IconMessage(upgradeMessage, _null, B.Color_4293880832, _null, _null), _null, true, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, new A.EditScaffold_build_closure1(t1, context, t2), _null, _null, _null, _null, _null, _null, _null), A.Expanded$(_this.body, 1)], type$.JSArray_legacy_Widget), B.CrossAxisAlignment_2, _null, B.MainAxisAlignment_0, B.MainAxisSize_1, B.VerticalDirection_1); t12.push(A.InkWell$(false, _null, true, new A.IconMessage(upgradeMessage, _null, B.Color_4293880832, _null, _null), _null, true, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, new A.EditScaffold_build_closure1(t1, context, t2), _null, _null, _null, _null, _null, _null, _null));
else { t12.push(A.Expanded$(_this.body, 1));
t1 = t2.isSaving && A.getLayout(context) === B.AppLayout_desktop; t1 = A._setArrayType([A.Column$(t12, B.CrossAxisAlignment_2, _null, B.MainAxisAlignment_0, B.MainAxisSize_1, B.VerticalDirection_1)], t4);
t3 = _this.body; if (t7)
t1 = t1 ? new A.Stack(B.Alignment_0_m1, _null, B.StackFit_0, B.Clip_1, A._setArrayType([t3, A.LinearProgressIndicator$()], type$.JSArray_legacy_Widget), _null) : t3; t1.push(A.LinearProgressIndicator$());
} t1 = new A.Stack(B.Alignment_0_m1, _null, B.StackFit_0, B.Clip_1, t1, _null);
} }
t3 = A.getLayout(context) === B.AppLayout_desktop ? new A.MenuDrawerBuilder(_null) : _null; t3 = A.getLayout(context) === B.AppLayout_desktop ? new A.MenuDrawerBuilder(_null) : _null;
t4 = A.getLayout(context); t4 = A.getLayout(context);
t5 = type$.JSArray_legacy_Widget; t5 = type$.JSArray_legacy_Widget;
t10 = A._setArrayType([], t5); t12 = A._setArrayType([], t5);
t11 = _this.title; t13 = _this.title;
if (showOverflow) if (showOverflow)
t10.push(A.Text$(t11, _null, _null, _null, _null, _null, _null, _null, _null, _null)); t12.push(A.Text$(t13, _null, _null, _null, _null, _null, _null, _null, _null, _null));
else else
t10.push(new A.Flexible(1, B.FlexFit_1, A.Text$(t11, _null, _null, _null, _null, _null, _null, _null, _null, _null), _null)); t12.push(new A.Flexible(1, B.FlexFit_1, A.Text$(t13, _null, _null, _null, _null, _null, _null, _null, _null, _null), _null));
t10.push(new A.SizedBox(16, _null, _null, _null)); t12.push(new A.SizedBox(16, _null, _null, _null));
if (A.getLayout(context) === B.AppLayout_desktop) if (A.getLayout(context) === B.AppLayout_desktop)
if (_this.isFullscreen) { if (_this.isFullscreen) {
t11 = _this.entity; t13 = _this.entity;
t11 = t11 != null && !t11.get$isNew(); t13 = t13 != null && !t13.get$isNew();
} else } else
t11 = false; t13 = false;
else else
t11 = false; t13 = false;
if (t11) { if (t13) {
t11 = _this.entity; t13 = _this.entity;
B.JSArray_methods.addAll$1(t10, A._setArrayType([A.EntityStatusChip$(t2.getEntity$2(t11.get$entityType(), t11.get$id(t11)), false, 105), new A.SizedBox(8, _null, _null, _null)], t5)); B.JSArray_methods.addAll$1(t12, A._setArrayType([A.EntityStatusChip$(t2.getEntity$2(t13.get$entityType(), t13.get$id(t13)), false, 105), new A.SizedBox(8, _null, _null, _null)], t5));
} }
if (showOverflow) { if (showOverflow) {
t11 = type$.MappedListIterable_of_legacy_EntityAction_and_legacy_OutlinedButton; t13 = type$.MappedListIterable_of_legacy_EntityAction_and_legacy_OutlinedButton;
t10.push(A.Expanded$(new A.Align(B.Alignment_1_0, _null, _null, A.FocusTraversalGroup$(A.OverflowView$flexible(new A.EditScaffold_build_closure2(_this, t6, textStyle, t2, t7), A.List_List$of(new A.MappedListIterable(t7, new A.EditScaffold_build_closure3(_this, t6, t2, context, textStyle, store), t11), true, t11._eval$1("ListIterable.E")), 8), false, _null), _null), 1)); t12.push(A.Expanded$(new A.Align(B.Alignment_1_0, _null, _null, A.FocusTraversalGroup$(A.OverflowView$flexible(new A.EditScaffold_build_closure2(_this, t6, textStyle, t2, t9), A.List_List$of(new A.MappedListIterable(t9, new A.EditScaffold_build_closure3(_this, t6, t2, context, textStyle, store), t13), true, t13._eval$1("ListIterable.E")), 8), false, _null), _null), 1));
} }
t7 = A.Row$(t10, B.CrossAxisAlignment_2, B.MainAxisAlignment_3, B.MainAxisSize_1, _null); t9 = A.Row$(t12, B.CrossAxisAlignment_2, B.MainAxisAlignment_3, B.MainAxisSize_1, _null);
if (showOverflow) if (showOverflow)
t2 = A._setArrayType([], t5); t2 = A._setArrayType([], t5);
else { else {
t10 = A._setArrayType([], t5); t12 = A._setArrayType([], t5);
t11 = t2.isSaving; if (t7 && A.getLayout(context) === B.AppLayout_mobile)
if (t11 && A.getLayout(context) === B.AppLayout_mobile) t12.push(new A.Padding(B.EdgeInsets_0_0_20_0, A.Center$(new A.SizedBox(26, 26, A.CircularProgressIndicator$(_null, B.Color_4294967295, _null, _null, _null, 4, _null, _null), _null), _null, _null), _null));
t10.push(new A.Padding(B.EdgeInsets_0_0_20_0, A.Center$(new A.SizedBox(26, 26, A.CircularProgressIndicator$(_null, B.Color_4294967295, _null, _null, _null, 4, _null, _null), _null), _null, _null), _null));
else if (A.getLayout(context) === B.AppLayout_desktop) { else if (A.getLayout(context) === B.AppLayout_desktop) {
t12 = t11 ? _null : new A.EditScaffold_build_closure4(_this, context, store); t13 = t7 ? _null : new A.EditScaffold_build_closure4(_this, context, store);
t13 = A.getEntityActionIcon(B.EntityAction_cancel); t14 = A.getEntityActionIcon(B.EntityAction_cancel);
t14 = t6.get$cancel(t6); t15 = t6.get$cancel(t6);
t15 = t11 ? _null : textStyle; t16 = t7 ? _null : textStyle;
t12 = A.OutlinedButton$(new A.ConstrainedBox(new A.BoxConstraints(60, 1 / 0, 0, 1 / 0), new A.IconText(t14, t13, t15, _null, false, _null), _null), _null, t12, _null); t13 = A.OutlinedButton$(new A.ConstrainedBox(new A.BoxConstraints(60, 1 / 0, 0, 1 / 0), new A.IconText(t15, t14, t16, _null, false, _null), _null), _null, t13, _null);
t2 = A.ButtonStyle$(_null, _null, new A.MaterialStatePropertyAll(t2.prefState.get$colorThemeModel().colorSuccess, type$.MaterialStatePropertyAll_legacy_Color), _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null); t2 = isEnabled ? A.ButtonStyle$(_null, _null, new A.MaterialStatePropertyAll(t2.prefState.get$colorThemeModel().colorSuccess, type$.MaterialStatePropertyAll_legacy_Color), _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null) : _null;
t13 = t11 || _this.onSavePressed == null ? _null : new A.EditScaffold_build_closure5(_this, context); t8 = !isEnabled || !t8 || _this.onSavePressed == null ? _null : new A.EditScaffold_build_closure5(_this, context);
t14 = A.getEntityActionIcon(B.EntityAction_save); t14 = A.getEntityActionIcon(B.EntityAction_save);
t6 = t6.get$save(t6); t6 = t6.get$save(t6);
t11 = t11 ? _null : textStyle.copyWith$1$color(B.Color_4294967295); t7 = t7 ? _null : textStyle.copyWith$1$color(B.Color_4294967295);
t10.push(A.Row$(A._setArrayType([t12, new A.SizedBox(8, _null, _null, _null), A.OutlinedButton$(new A.ConstrainedBox(new A.BoxConstraints(60, 1 / 0, 0, 1 / 0), new A.IconText(t6, t14, t11, _null, false, _null), _null), _null, t13, t2), new A.SizedBox(16, _null, _null, _null)], t5), B.CrossAxisAlignment_2, B.MainAxisAlignment_0, B.MainAxisSize_1, _null)); t12.push(A.Row$(A._setArrayType([t13, new A.SizedBox(8, _null, _null, _null), A.OutlinedButton$(new A.ConstrainedBox(new A.BoxConstraints(60, 1 / 0, 0, 1 / 0), new A.IconText(t6, t14, t7, _null, false, _null), _null), _null, t8, t2), new A.SizedBox(16, _null, _null, _null)], t5), B.CrossAxisAlignment_2, B.MainAxisAlignment_0, B.MainAxisSize_1, _null));
} else { } else {
t2 = isEnabled && _this.onSavePressed != null; t2 = isEnabled && _this.onSavePressed != null;
t6 = t6.get$cancel(t6); t6 = t6.get$cancel(t6);
t5 = _this.onSavePressed == null ? _null : new A.EditScaffold_build_closure6(_this); t5 = _this.onSavePressed == null ? _null : new A.EditScaffold_build_closure6(_this);
t11 = A.getLayout(context) === B.AppLayout_mobile ? _null : new A.EditScaffold_build_closure7(_this, store); t7 = A.getLayout(context) === B.AppLayout_mobile ? _null : new A.EditScaffold_build_closure7(_this, store);
t10.push(A.SaveCancelButtons$(t6, isCancelEnabled, t2, true, t11, t5, _this.saveLabel)); t12.push(A.SaveCancelButtons$(t6, isCancelEnabled, t2, true, t7, t5, _this.saveLabel));
} }
if (!t9 && t8.length !== 0 && _this.onActionPressed != null) if (!t11 && t10.length !== 0 && _this.onActionPressed != null)
t10.push(A.PopupMenuButton$(_null, _null, isEnabled, A.Icon$(B.IconData_58372_MaterialIcons_null_false, _null, _null), _null, new A.EditScaffold_build_closure8(_this), new A.EditScaffold_build_closure9(_this, context), B.EdgeInsets_8_8_8_8, _null, type$.legacy_EntityAction)); t12.push(A.PopupMenuButton$(_null, _null, isEnabled, A.Icon$(B.IconData_58372_MaterialIcons_null_false, _null, _null), _null, new A.EditScaffold_build_closure8(_this), new A.EditScaffold_build_closure9(_this, context), B.EdgeInsets_8_8_8_8, _null, type$.legacy_EntityAction));
t2 = t10; t2 = t12;
} }
t5 = _this.isFullscreen && A.getLayout(context) === B.AppLayout_desktop ? _null : _this.appBarBottom; t5 = _this.isFullscreen && A.getLayout(context) === B.AppLayout_desktop ? _null : _this.appBarBottom;
return new A.WillPopScope(A.FocusTraversalGroup$(A.Scaffold$(A.AppBar$(t2, _null, t4 === B.AppLayout_mobile, _null, _null, t5, 1, _null, false, _null, false, _null, _null, _null, _null, _null, true, _null, _null, _null, _null, _null, _null, t7, _null, _null, _null, 1, _null), _null, t1, _this.bottomNavigationBar, t3, _null, _this.floatingActionButton, B.C__EndDockedFabLocation), true, _null), new A.EditScaffold_build_closure10(), _null); return new A.WillPopScope(A.FocusTraversalGroup$(A.Scaffold$(A.AppBar$(t2, _null, t4 === B.AppLayout_mobile, _null, _null, t5, 1, _null, false, _null, false, _null, _null, _null, _null, _null, true, _null, _null, _null, _null, _null, _null, t9, _null, _null, _null, 1, _null), _null, t1, _this.bottomNavigationBar, t3, _null, _this.floatingActionButton, B.C__EndDockedFabLocation), true, _null), new A.EditScaffold_build_closure10(), _null);
}, },
get$body(receiver) { get$body(receiver) {
return this.body; return this.body;
@ -431193,7 +431194,7 @@
t2 = t8; t2 = t8;
} else } else
t2 = new A.Padding(B.EdgeInsets_0_20_0_8, A.Center$(new A.HelpText(t5.get$upgradeToConnectBankAccount(), _null), _null, _null), _null); t2 = new A.Padding(B.EdgeInsets_0_20_0_8, A.Center$(new A.HelpText(t5.get$upgradeToConnectBankAccount(), _null), _null, _null), _null);
t9.push(new A.Padding(B.EdgeInsets_16_0_16_0, t2, _null)); t9.push(new A.Padding(B.EdgeInsets_16_8_16_10, t2, _null));
} }
t9.push(A.Expanded$(new A.BankAccountListBuilder(_null), 1)); t9.push(A.Expanded$(new A.BankAccountListBuilder(_null), 1));
t2 = A.Column$(t9, B.CrossAxisAlignment_2, _null, B.MainAxisAlignment_0, B.MainAxisSize_1, B.VerticalDirection_1); t2 = A.Column$(t9, B.CrossAxisAlignment_2, _null, B.MainAxisAlignment_0, B.MainAxisSize_1, B.VerticalDirection_1);
@ -431382,6 +431383,7 @@
var t1 = this.store.__Store__dispatchers_F; var t1 = this.store.__Store__dispatchers_F;
t1 === $ && A.throwUnnamedLateFieldNI(); t1 === $ && A.throwUnnamedLateFieldNI();
t1[0].call$1(new A.StopSaving()); t1[0].call$1(new A.StopSaving());
t1[0].call$1(new A.RefreshData(null, false, false, false));
A.showToast(this.localization.get$refreshComplete()); A.showToast(this.localization.get$refreshComplete());
}, },
$signature: 6 $signature: 6
@ -473038,7 +473040,6 @@
_s17_ = "city_state_postal", _s17_ = "city_state_postal",
_s17_0 = "postal_city_state", _s17_0 = "postal_city_state",
_s8_ = "quantity", _s8_ = "quantity",
_s3_ = "tax",
_s8_0 = "discount", _s8_0 = "discount",
_s10_ = "line_total", _s10_ = "line_total",
_s16_ = "gross_line_total", _s16_ = "gross_line_total",
@ -473314,7 +473315,7 @@
t2.push("unit_cost"); t2.push("unit_cost");
t13 = company.numberOfItemTaxRates > 0; t13 = company.numberOfItemTaxRates > 0;
if (t13) if (t13)
t2.push(_s3_); B.JSArray_methods.addAll$1(t2, A._setArrayType(["tax", "tax_amount"], t4));
t14 = company.enableProductDiscount; t14 = company.enableProductDiscount;
if (t14) if (t14)
t2.push(_s8_0); t2.push(_s8_0);
@ -473331,7 +473332,7 @@
if (t14) if (t14)
t15.push(_s8_0); t15.push(_s8_0);
if (t13) if (t13)
t15.push(_s3_); t15.push("tax");
t15.push(_s10_); t15.push(_s10_);
t11 = A.List_List$of(new A.MappedListIterable(t15, new A._InvoiceDesignState_build_closure54(), t9), true, t10); t11 = A.List_List$of(new A.MappedListIterable(t15, new A._InvoiceDesignState_build_closure54(), t9), true, t10);
t15 = settings.getFieldsForSection$1(_s15_1); t15 = settings.getFieldsForSection$1(_s15_1);
@ -473339,7 +473340,7 @@
if (company.isModuleEnabled$1(B.EntityType_task)) { if (company.isModuleEnabled$1(B.EntityType_task)) {
t2 = A._setArrayType(["service", "description", "hours", "rate"], t4); t2 = A._setArrayType(["service", "description", "hours", "rate"], t4);
if (t13) if (t13)
t2.push(_s3_); B.JSArray_methods.addAll$1(t2, A._setArrayType(["tax", "tax_amount"], t4));
if (t14) if (t14)
t2.push(_s8_0); t2.push(_s8_0);
t2.push(_s10_); t2.push(_s10_);
@ -473353,7 +473354,7 @@
if (t14) if (t14)
t11.push(_s8_0); t11.push(_s8_0);
if (t13) if (t13)
t11.push(_s3_); t11.push("tax");
t11.push(_s10_); t11.push(_s10_);
t11 = A.List_List$of(new A.MappedListIterable(t11, new A._InvoiceDesignState_build_closure57(), t9), true, t10); t11 = A.List_List$of(new A.MappedListIterable(t11, new A._InvoiceDesignState_build_closure57(), t9), true, t10);
t13 = settings.getFieldsForSection$1(_s12_); t13 = settings.getFieldsForSection$1(_s12_);
@ -528421,6 +528422,7 @@
B.EdgeInsets_16_2_16_16 = new A.EdgeInsets(16, 2, 16, 16); B.EdgeInsets_16_2_16_16 = new A.EdgeInsets(16, 2, 16, 16);
B.EdgeInsets_16_4_16_4 = new A.EdgeInsets(16, 4, 16, 4); B.EdgeInsets_16_4_16_4 = new A.EdgeInsets(16, 4, 16, 4);
B.EdgeInsets_16_8_0_0 = new A.EdgeInsets(16, 8, 0, 0); B.EdgeInsets_16_8_0_0 = new A.EdgeInsets(16, 8, 0, 0);
B.EdgeInsets_16_8_16_10 = new A.EdgeInsets(16, 8, 16, 10);
B.EdgeInsets_16_8_16_2 = new A.EdgeInsets(16, 8, 16, 2); B.EdgeInsets_16_8_16_2 = new A.EdgeInsets(16, 8, 16, 2);
B.EdgeInsets_16_8_16_8 = new A.EdgeInsets(16, 8, 16, 8); B.EdgeInsets_16_8_16_8 = new A.EdgeInsets(16, 8, 16, 8);
B.EdgeInsets_17_8_17_8 = new A.EdgeInsets(17, 8, 17, 8); B.EdgeInsets_17_8_17_8 = new A.EdgeInsets(17, 8, 17, 8);