Admin Portal - Profile

This commit is contained in:
hillelcoren 2021-11-07 21:24:30 +00:00
parent 285a9d2da3
commit 05f1f9796c

View File

@ -74727,8 +74727,8 @@
_._debugLifecycleState = t0;
_._framework$_element = null;
},
ReorderableTableRow$: function(children, decoration, key, mainAxisAlignment, mainAxisSize) {
return new U.ReorderableTableRow(decoration, C.Axis_0, mainAxisAlignment, mainAxisSize, C.CrossAxisAlignment_2, null, C.VerticalDirection_1, null, children, key);
ReorderableTableRow$: function(children, key, mainAxisAlignment, mainAxisSize) {
return new U.ReorderableTableRow(null, C.Axis_0, mainAxisAlignment, mainAxisSize, C.CrossAxisAlignment_2, null, C.VerticalDirection_1, null, children, key);
},
ReorderableTableRow: function ReorderableTableRow(t0, t1, t2, t3, t4, t5, t6, t7, t8, t9) {
var _ = this;
@ -185601,7 +185601,7 @@
}
};
B._RenderMergeableMaterialListBody.prototype = {
_mergeable_material$_paintShadows$2: function(canvas, rect) {
_paintShadows$2: function(canvas, rect) {
var t1, t2, _i, boxShadow, t3, result, t4, t5;
for (t1 = this.boxShadows, t2 = t1.length, _i = 0; _i < t2; ++_i) {
boxShadow = t1[_i];
@ -185629,7 +185629,7 @@
t8 = t7._dx;
t7 = t7._dy;
if ((i & 1) === 0)
this._mergeable_material$_paintShadows$2(context.get$canvas(context), new P.Rect(t6, t5, t6 + t8, t5 + t7));
this._paintShadows$2(context.get$canvas(context), new P.Rect(t6, t5, t6 + t8, t5 + t7));
child = t4.ContainerParentDataMixin_nextSibling;
++i;
}
@ -197730,7 +197730,7 @@
throw H.wrapException(H.ReachabilityError$(string$.x60null_c));
}
},
_paintShadows$3: function(canvas, rect, textDirection) {
_box_decoration$_paintShadows$3: function(canvas, rect, textDirection) {
var t2, _i, boxShadow, t3, result, t4,
t1 = this._box_decoration$_decoration.boxShadow;
if (t1 == null)
@ -197790,7 +197790,7 @@
t3 = offset._dy,
rect = new P.Rect(t2, t3, t2 + t1._dx, t3 + t1._dy),
textDirection = configuration.textDirection;
_this._paintShadows$3(canvas, rect, textDirection);
_this._box_decoration$_paintShadows$3(canvas, rect, textDirection);
t1 = _this._box_decoration$_decoration;
t2 = t1.color;
t3 = t2 == null;
@ -386367,7 +386367,7 @@
$.WidgetsBinding__instance.SchedulerBinding__postFrameCallbacks.push(new E._InvoiceEditItemsDesktopState__onFocusChange_closure());
},
build$1: function(_, context) {
var t4, company, invoice, t5, t6, client, t7, precision, lineItems, t8, includedLineItems, productState, productIds, hasTax1, hasTax2, hasTax3, customField1, customField2, customField3, customField4, lastIndex, tableHeaderColor, columnWidths, index, t9, t10, t11, t12, t13, t14, _this = this, _null = null,
var t4, company, invoice, t5, t6, client, t7, precision, lineItems, t8, includedLineItems, productState, productIds, hasTax1, hasTax2, hasTax3, customField1, customField2, customField3, customField4, lastIndex, tableFontColor, tableHeaderColor, columnWidths, index, t9, t10, t11, t12, t13, t14, _this = this, _null = null,
t1 = L.Localizations_of(context, C.Type_AppLocalization_KyD, type$.legacy_AppLocalization),
viewModel = _this._widget.viewModel,
state = viewModel.state,
@ -386427,7 +386427,12 @@
++lastIndex;
if (company.getCustomFieldLabel$1(customField4).length !== 0)
++lastIndex;
tableHeaderColor = J.$index$asx(state.prefState.customColors._map$_map, "invoice_header_background_color");
t4 = state.prefState.customColors._map$_map;
t5 = J.getInterceptor$asx(t4);
tableFontColor = t5.$index(t4, "invoice_header_font_color");
if (tableFontColor == null)
tableFontColor = "";
tableHeaderColor = t5.$index(t4, "invoice_header_background_color");
if (tableHeaderColor == null)
tableHeaderColor = "";
columnWidths = P.LinkedHashMap_LinkedHashMap$_literal([0, new S.FlexColumnWidth(1.3), 1, new S.FlexColumnWidth(2.2), lastIndex, new S.FixedColumnWidth(40)], type$.legacy_int, type$.legacy_TableColumnWidth);
@ -386471,12 +386476,14 @@
t4 = J.$index$asx($.LocalizationsProvider__localizedValues.$index(0, t4), "line_total");
t5.push(new E.TableHeader(t4 == null ? "" : t4, true, false, _null));
t4 = L.Icon$(_this._isReordering ? C.IconData_57706_MaterialIcons_null_false : C.IconData_58919_MaterialIcons_null_false, _null, _null);
t7 = new H.WhereIterable(includedLineItems, new E._InvoiceEditItemsDesktopState_build_closure4(), H._arrayInstanceType(includedLineItems)._eval$1("WhereIterable<1>"));
t5.push(B.IconButton$(C.Alignment_0_0, _null, _null, true, t4, 24, t7.get$length(t7) < 2 ? _null : new E._InvoiceEditItemsDesktopState_build_closure5(_this), C.EdgeInsets_8_8_8_8, _null, _null));
t7 = tableFontColor.length !== 0 ? E.convertHexStringToColor(tableFontColor) : _null;
t8 = new H.WhereIterable(includedLineItems, new E._InvoiceEditItemsDesktopState_build_closure4(), H._arrayInstanceType(includedLineItems)._eval$1("WhereIterable<1>"));
t5.push(B.IconButton$(C.Alignment_0_0, t7, _null, true, t4, 24, t8.get$length(t8) < 2 ? _null : new E._InvoiceEditItemsDesktopState_build_closure5(_this), C.EdgeInsets_8_8_8_8, _null, _null));
if (_this._isReordering) {
t1 = U.ReorderableTableRow$(t5, tableHeaderColor.length !== 0 ? new S.BoxDecoration(E.convertHexStringToColor(tableHeaderColor), _null, _null, _null, _null, _null, C.BoxShape_0) : _null, _null, C.MainAxisAlignment_3, C.MainAxisSize_1);
t4 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_ReorderableTableRow);
for (t5 = type$.JSArray_legacy_Widget, t7 = type$.ValueKey_legacy_String, index = 0; index < J.get$length$asx(lineItems._copy_on_write_list$_list); ++index) {
t1 = tableHeaderColor.length !== 0 ? E.convertHexStringToColor(tableHeaderColor) : _null;
t1 = M.DecoratedBox$(U.ReorderableTableRow$(t5, _null, C.MainAxisAlignment_3, C.MainAxisSize_1), new S.BoxDecoration(t1, _null, _null, _null, _null, _null, C.BoxShape_0), C.DecorationPosition_0);
t5 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_ReorderableTableRow);
for (t4 = type$.JSArray_legacy_Widget, t7 = type$.ValueKey_legacy_String, index = 0; index < J.get$length$asx(lineItems._copy_on_write_list$_list); ++index) {
if (!(J.$index$asx(lineItems._copy_on_write_list$_list, index).typeId === "2" && _this._widget.isTasks))
t8 = J.$index$asx(lineItems._copy_on_write_list$_list, index).typeId !== "2" && !_this._widget.isTasks;
else
@ -386485,7 +386492,7 @@
t8 = "__line_item_" + index + "_" + H.S(J.$index$asx(lineItems._copy_on_write_list$_list, index).createdAt) + "__";
t9 = J.$index$asx(lineItems._copy_on_write_list$_list, index).productKey;
t10 = J.$index$asx(lineItems._copy_on_write_list$_list, index).notes;
t9 = H.setRuntimeTypeInfo([new L.Text(t9, _null, _null, _null, _null, _null, _null, _null, _null, _null), new L.Text(t10, _null, _null, _null, _null, C.TextOverflow_2, _null, 3, _null, _null)], t5);
t9 = H.setRuntimeTypeInfo([new L.Text(t9, _null, _null, _null, _null, _null, _null, _null, _null, _null), new L.Text(t10, _null, _null, _null, _null, C.TextOverflow_2, _null, 2, _null, _null)], t4);
if (company.getCustomFieldLabel$1(customField1).length !== 0) {
t10 = J.$index$asx(lineItems._copy_on_write_list$_list, index).customValue1;
t9.push(new L.Text(t10, _null, _null, _null, _null, _null, _null, _null, _null, _null));
@ -386515,22 +386522,22 @@
t9.push(new L.Text(t10, _null, _null, _null, _null, _null, _null, _null, _null, _null));
}
t10 = Y.formatNumber(J.$index$asx(lineItems._copy_on_write_list$_list, index).cost, context, t6, _null, C.FormatNumberType_4, true, _null, false);
t9.push(new L.Text(t10 == null ? "" : t10, _null, _null, _null, _null, _null, _null, _null, _null, _null));
t9.push(new L.Text(t10 == null ? "" : t10, _null, C.TextAlign_1, _null, _null, _null, _null, _null, _null, _null));
if (!t2 || _this._widget.isTasks) {
t10 = Y.formatNumber(J.$index$asx(lineItems._copy_on_write_list$_list, index).quantity, context, t6, _null, C.FormatNumberType_5, true, _null, false);
t9.push(new L.Text(t10 == null ? "" : t10, _null, _null, _null, _null, _null, _null, _null, _null, _null));
t9.push(new L.Text(t10 == null ? "" : t10, _null, C.TextAlign_1, _null, _null, _null, _null, _null, _null, _null));
}
if (t3) {
t10 = Y.formatNumber(J.$index$asx(lineItems._copy_on_write_list$_list, index).discount, context, t6, _null, C.FormatNumberType_5, true, _null, false);
t9.push(new L.Text(t10 == null ? "" : t10, _null, _null, _null, _null, _null, _null, _null, _null, _null));
t9.push(new L.Text(t10 == null ? "" : t10, _null, C.TextAlign_1, _null, _null, _null, _null, _null, _null, _null));
}
t10 = Y.formatNumber(J.total$2$x(J.$index$asx(lineItems._copy_on_write_list$_list, index), invoice, precision), context, t6, _null, C.FormatNumberType_0, true, _null, false);
t9.push(new L.Text(t10 == null ? "" : t10, _null, C.TextAlign_1, _null, _null, _null, _null, _null, _null, _null));
t9.push(new T.Padding(C.EdgeInsets_0_8_0_8, new L.Icon(C.IconData_57862_MaterialIcons_null_false, _null, _null, _null), _null));
t4.push(U.ReorderableTableRow$(t9, _null, new D.ValueKey(t8, t7), C.MainAxisAlignment_3, C.MainAxisSize_1));
t5.push(U.ReorderableTableRow$(t9, new D.ValueKey(t8, t7), C.MainAxisAlignment_3, C.MainAxisSize_1));
}
}
return Y.FormCard$(new U.ReorderableTable(t4, t1, new E._InvoiceEditItemsDesktopState_build_closure6(viewModel), true, _null), _null, _null, 4, false, _null, false, C.EdgeInsets_12_0_12_0);
return Y.FormCard$(new U.ReorderableTable(t5, t1, new E._InvoiceEditItemsDesktopState_build_closure6(viewModel), true, _null), _null, _null, 4, false, _null, false, C.EdgeInsets_12_0_12_0);
}
t4 = "__datatable_" + H.S(_this._invoice_edit_items_desktop$_updatedAt) + "__";
t7 = type$.ValueKey_legacy_String;
@ -427704,15 +427711,7 @@
};
X.RenderTabluarFlex.prototype = {
set$decoration: function(_, value) {
var t1, _this = this;
if (J.$eq$(value, _this._tabluar_flex$_decoration))
return;
t1 = _this._tabluar_flex$_painter;
if (t1 != null)
t1.dispose$0(0);
_this._tabluar_flex$_painter = null;
_this._tabluar_flex$_decoration = value;
_this.markNeedsPaint$0();
return;
},
set$configuration: function(value) {
if (value.$eq(0, this._tabluar_flex$_configuration))
@ -427721,13 +427720,9 @@
this.markNeedsPaint$0();
},
detach$0: function(_) {
var _this = this,
t1 = _this._tabluar_flex$_painter;
if (t1 != null)
t1.dispose$0(0);
_this._tabluar_flex$_painter = null;
_this.super$_RenderFlex_RenderBox_ContainerRenderObjectMixin$detach(0);
_this.markNeedsPaint$0();
this._tabluar_flex$_painter = null;
this.super$_RenderFlex_RenderBox_ContainerRenderObjectMixin$detach(0);
this.markNeedsPaint$0();
},
_getIntrinsicSize$3$childSize$extent$sizingDirection: function(childSize, extent, sizingDirection) {
var totalFlex, inflexibleSpace, maxFlexFractionSoFar, childParentData, flex, t2, t3, maxGrandchildCrossSize, maxCrossSize, mainSize, crossSize, tabluarFlexChild, grandchildren, i, grandchildCrossSize, spacePerFlex, _this = this, _null = null,
@ -428175,7 +428170,7 @@
t1.forEach$1(0, new X.RenderTabluarFlex_performLayout_closure0(_this));
},
paint$2: function(context, offset) {
var t1, t2, filledConfiguration, _this = this;
var t1, t2, _this = this;
if (!(_this._tabluar_flex$_overflow > 0)) {
_this.defaultPaint$2(context, offset);
return;
@ -428183,18 +428178,6 @@
t1 = _this._box$_size;
if (t1.get$isEmpty(t1))
return;
t1 = _this._tabluar_flex$_decoration;
if (t1 != null) {
if (_this._tabluar_flex$_painter == null)
_this._tabluar_flex$_painter = new S._BoxDecorationPainter(t1, _this.get$markNeedsPaint());
t1 = _this._tabluar_flex$_configuration;
t2 = _this._box$_size;
t2.toString;
filledConfiguration = t1.copyWith$1$size(t2);
t2 = _this._tabluar_flex$_painter;
t2.toString;
t2.paint$3(context.get$canvas(context), offset, filledConfiguration);
}
t1 = _this.get$_needsCompositing();
t2 = _this._box$_size;
context.pushClipRect$4(t1, offset, new P.Rect(0, 0, 0 + t2._dx, 0 + t2._dy), _this.get$defaultPaint());