Admin Portal - Profile

This commit is contained in:
hillelcoren 2022-03-04 06:03:27 +00:00
parent 0b06bbd4a0
commit 47d1325632

View File

@ -94474,7 +94474,7 @@
productReport_closure4: function productReport_closure4() { productReport_closure4: function productReport_closure4() {
}, },
profitAndLossReport(userCompany, reportsUIState, clientMap, paymentMap, expenseMap, expenseCategoryMap, vendorMap, userMap, staticState) { profitAndLossReport(userCompany, reportsUIState, clientMap, paymentMap, expenseMap, expenseCategoryMap, vendorMap, userMap, staticState) {
var t2, columns, t3, t4, t5, t6, payment, t7, client, vendor, skip, row, t8, t9, t10, value, t11, t12, expense, value0, value1, t13, t14, _null = null, var t2, columns, t3, t4, t5, t6, t7, t8, payment, t9, client, vendor, skip, row, t10, t11, t12, t13, scope, value, t14, expense, value0, t15, value1, t16, _null = null,
_s15_ = "profit_and_loss", _s15_ = "profit_and_loss",
data = A._setArrayType([], type$.JSArray_legacy_List_legacy_ReportElement), data = A._setArrayType([], type$.JSArray_legacy_List_legacy_ReportElement),
t1 = userCompany.settings, t1 = userCompany.settings,
@ -94488,23 +94488,27 @@
columns = A.BuiltList_BuiltList$from(A.List_List$of(t1, true, t1.$ti._eval$1("Iterable.E")), t2); columns = A.BuiltList_BuiltList$from(A.List_List$of(t1, true, t1.$ti._eval$1("Iterable.E")), t2);
} else } else
columns = A.BuiltList_BuiltList$from(defaultColumns, t2); columns = A.BuiltList_BuiltList$from(defaultColumns, t2);
for (t1 = paymentMap.get$keys(paymentMap), t1 = t1.get$iterator(t1), t2 = columns._list, t3 = A._arrayInstanceType(t2), t4 = t3._eval$1("ArrayIterator<1>"), t5 = type$.JSArray_legacy_ReportElement, t6 = paymentMap._map$_map; t1.moveNext$0();) { for (t1 = paymentMap.get$keys(paymentMap), t1 = t1.get$iterator(t1), t2 = columns._list, t3 = A._arrayInstanceType(t2), t4 = t3._eval$1("ArrayIterator<1>"), t5 = type$.nullable_AppLocalization, t6 = type$._LocalizationsScope, t7 = type$.JSArray_legacy_ReportElement, t8 = paymentMap._map$_map; t1.moveNext$0();) {
payment = t6.$index(0, t1.get$current(t1)); payment = t8.$index(0, t1.get$current(t1));
t7 = payment.clientId; t9 = payment.clientId;
client = clientMap._map$_map.$index(0, t7); client = clientMap._map$_map.$index(0, t9);
if (client == null) if (client == null)
client = A.ClientEntity_ClientEntity(_null, _null, _null, _null); client = A.ClientEntity_ClientEntity(_null, _null, _null, _null);
t7 = payment.vendorId; t9 = payment.vendorId;
vendor = vendorMap._map$_map.$index(0, t7); vendor = vendorMap._map$_map.$index(0, t9);
if (vendor == null) if (vendor == null)
vendor = A.VendorEntity_VendorEntity(_null, _null, _null); vendor = A.VendorEntity_VendorEntity(_null, _null, _null);
skip = payment.isDeleted || client.isDeleted; skip = payment.isDeleted || client.isDeleted;
row = A._setArrayType([], t5); row = A._setArrayType([], t7);
for (t7 = new J.ArrayIterator(t2, t2.length, t4), t8 = payment.id, t9 = payment.currencyId; t7.moveNext$0();) { for (t9 = new J.ArrayIterator(t2, t2.length, t4), t10 = payment.id, t11 = payment.currencyId; t9.moveNext$0();) {
t10 = t7.__interceptors$_current; t12 = t9.__interceptors$_current;
switch (t10) { switch (t12) {
case B.ProfitAndLossReportFields_12: case B.ProfitAndLossReportFields_12:
value = B.EntityType_payment; t13 = $.$get$navigatorKey();
t13.toString;
scope = $.WidgetsBinding__instance.WidgetsBinding__buildOwner._globalKeyRegistry.$index(0, t13).dependOnInheritedWidgetOfExactType$1$0(t6);
t13 = J.$index$asx($.LocalizationsProvider__localizedValues.$index(0, (scope == null ? _null : t5._as(J.$index$asx(scope.localizationsState._typeToResources, B.Type_AppLocalization_KyD))).localeCode), "payment");
value = t13 == null ? "" : t13;
break; break;
case B.ProfitAndLossReportFields_0: case B.ProfitAndLossReportFields_0:
value = client.displayName; value = client.displayName;
@ -94522,10 +94526,10 @@
value = client.state; value = client.state;
break; break;
case B.ProfitAndLossReportFields_5: case B.ProfitAndLossReportFields_5:
t11 = staticState.countryMap; t13 = staticState.countryMap;
t12 = client.countryId; t14 = client.countryId;
t12 = t11._map$_map.$index(0, t12); t14 = t13._map$_map.$index(0, t14);
value = t12 == null ? _null : t12.name; value = t14 == null ? _null : t14.name;
if (value == null) if (value == null)
value = ""; value = "";
break; break;
@ -94545,10 +94549,10 @@
value = vendor.state; value = vendor.state;
break; break;
case B.ProfitAndLossReportFields_11: case B.ProfitAndLossReportFields_11:
t11 = staticState.countryMap; t13 = staticState.countryMap;
t12 = vendor.countryId; t14 = vendor.countryId;
t12 = t11._map$_map.$index(0, t12); t14 = t13._map$_map.$index(0, t14);
value = t12 == null ? _null : t12.name; value = t14 == null ? _null : t14.name;
if (value == null) if (value == null)
value = ""; value = "";
break; break;
@ -94564,42 +94568,46 @@
default: default:
value = ""; value = "";
} }
if (!A.ReportResult_matchField(A.EnumUtils_parse(t10), _null, reportsUIState, userCompany, value)) if (!A.ReportResult_matchField(A.EnumUtils_parse(t12), _null, reportsUIState, userCompany, value))
skip = true; skip = true;
t10 = J.getInterceptor$(value); t12 = J.getInterceptor$(value);
if (t10.get$runtimeType(value) === B.Type_EntityType_6qb) { if (t12.get$runtimeType(value) === B.Type_EntityType_6qb) {
t10 = payment.get$entityType(); t12 = payment.get$entityType();
row.push(new A.ReportEntityTypeValue(payment.get$entityType(), t10, t8)); row.push(new A.ReportEntityTypeValue(payment.get$entityType(), t12, t10));
} else if (t10.get$runtimeType(value) === B.Type_bool_lhE) } else if (t12.get$runtimeType(value) === B.Type_bool_lhE)
row.push(new A.ReportBoolValue(value, payment.get$entityType(), t8)); row.push(new A.ReportBoolValue(value, payment.get$entityType(), t10));
else if (t10.get$runtimeType(value) === B.Type_double_K1J || t10.get$runtimeType(value) === B.Type_int_tHn) else if (t12.get$runtimeType(value) === B.Type_double_K1J || t12.get$runtimeType(value) === B.Type_int_tHn)
row.push(new A.ReportNumberValue(value, _null, t9, _null, payment.get$entityType(), t8)); row.push(new A.ReportNumberValue(value, _null, t11, _null, payment.get$entityType(), t10));
else else
row.push(new A.ReportStringValue(value, payment.get$entityType(), t8)); row.push(new A.ReportStringValue(value, payment.get$entityType(), t10));
} }
if (!skip) if (!skip)
data.push(row); data.push(row);
} }
for (t1 = expenseMap.get$keys(expenseMap), t1 = t1.get$iterator(t1), t6 = expenseMap._map$_map; t1.moveNext$0();) { for (t1 = expenseMap.get$keys(expenseMap), t1 = t1.get$iterator(t1), t8 = expenseMap._map$_map; t1.moveNext$0();) {
expense = t6.$index(0, t1.get$current(t1)); expense = t8.$index(0, t1.get$current(t1));
t7 = expense.clientId; t9 = expense.clientId;
client = clientMap._map$_map.$index(0, t7); client = clientMap._map$_map.$index(0, t9);
if (client == null) if (client == null)
client = A.ClientEntity_ClientEntity(_null, _null, _null, _null); client = A.ClientEntity_ClientEntity(_null, _null, _null, _null);
t7 = expense.vendorId; t9 = expense.vendorId;
vendor = vendorMap._map$_map.$index(0, t7); vendor = vendorMap._map$_map.$index(0, t9);
if (vendor == null) if (vendor == null)
vendor = A.VendorEntity_VendorEntity(_null, _null, _null); vendor = A.VendorEntity_VendorEntity(_null, _null, _null);
if (!expense.isDeleted) if (!expense.isDeleted)
skip = client.isDeleted === true; skip = client.isDeleted === true;
else else
skip = true; skip = true;
row = A._setArrayType([], t5); row = A._setArrayType([], t7);
for (t7 = new J.ArrayIterator(t2, t2.length, t4), t8 = expense.id, t9 = expense.entityType, t10 = expense.categoryId, value = expense.date, value0 = -expense.amount, t11 = expense.currencyId; t7.moveNext$0();) { for (t9 = new J.ArrayIterator(t2, t2.length, t4), t10 = expense.id, t11 = expense.entityType, t12 = expense.categoryId, value = expense.date, value0 = -expense.amount, t13 = expense.currencyId; t9.moveNext$0();) {
t12 = t7.__interceptors$_current; t14 = t9.__interceptors$_current;
switch (t12) { switch (t14) {
case B.ProfitAndLossReportFields_12: case B.ProfitAndLossReportFields_12:
value1 = B.EntityType_expense; t15 = $.$get$navigatorKey();
t15.toString;
scope = $.WidgetsBinding__instance.WidgetsBinding__buildOwner._globalKeyRegistry.$index(0, t15).dependOnInheritedWidgetOfExactType$1$0(t6);
t15 = J.$index$asx($.LocalizationsProvider__localizedValues.$index(0, (scope == null ? _null : t5._as(J.$index$asx(scope.localizationsState._typeToResources, B.Type_AppLocalization_KyD))).localeCode), "expense");
value1 = t15 == null ? "" : t15;
break; break;
case B.ProfitAndLossReportFields_0: case B.ProfitAndLossReportFields_0:
value1 = client.displayName; value1 = client.displayName;
@ -94617,10 +94625,10 @@
value1 = client.state; value1 = client.state;
break; break;
case B.ProfitAndLossReportFields_5: case B.ProfitAndLossReportFields_5:
t13 = staticState.countryMap; t15 = staticState.countryMap;
t14 = client.countryId; t16 = client.countryId;
t14 = t13._map$_map.$index(0, t14); t16 = t15._map$_map.$index(0, t16);
value1 = t14 == null ? _null : t14.name; value1 = t16 == null ? _null : t16.name;
if (value1 == null) if (value1 == null)
value1 = ""; value1 = "";
break; break;
@ -94640,9 +94648,9 @@
value1 = vendor.state; value1 = vendor.state;
break; break;
case B.ProfitAndLossReportFields_11: case B.ProfitAndLossReportFields_11:
t13 = staticState.countryMap; t15 = staticState.countryMap;
t14 = vendor.countryId; t16 = vendor.countryId;
value1 = t13._map$_map.$index(0, t14); value1 = t15._map$_map.$index(0, t16);
break; break;
case B.ProfitAndLossReportFields_13: case B.ProfitAndLossReportFields_13:
value1 = value0; value1 = value0;
@ -94651,25 +94659,25 @@
value1 = value; value1 = value;
break; break;
case B.ProfitAndLossReportFields_15: case B.ProfitAndLossReportFields_15:
t13 = expenseCategoryMap._map$_map.$index(0, t10); t15 = expenseCategoryMap._map$_map.$index(0, t12);
value1 = t13 == null ? _null : t13.name; value1 = t15 == null ? _null : t15.name;
if (value1 == null) if (value1 == null)
value1 = ""; value1 = "";
break; break;
default: default:
value1 = ""; value1 = "";
} }
if (!A.ReportResult_matchField(A.EnumUtils_parse(t12), _null, reportsUIState, userCompany, value1)) if (!A.ReportResult_matchField(A.EnumUtils_parse(t14), _null, reportsUIState, userCompany, value1))
skip = true; skip = true;
t12 = J.getInterceptor$(value1); t14 = J.getInterceptor$(value1);
if (t12.get$runtimeType(value1) === B.Type_EntityType_6qb) if (t14.get$runtimeType(value1) === B.Type_EntityType_6qb)
row.push(new A.ReportEntityTypeValue(t9, t9, t8)); row.push(new A.ReportEntityTypeValue(t11, t11, t10));
else if (t12.get$runtimeType(value1) === B.Type_bool_lhE) else if (t14.get$runtimeType(value1) === B.Type_bool_lhE)
row.push(new A.ReportBoolValue(value1, t9, t8)); row.push(new A.ReportBoolValue(value1, t11, t10));
else if (t12.get$runtimeType(value1) === B.Type_double_K1J || t12.get$runtimeType(value1) === B.Type_int_tHn) else if (t14.get$runtimeType(value1) === B.Type_double_K1J || t14.get$runtimeType(value1) === B.Type_int_tHn)
row.push(new A.ReportNumberValue(value1, _null, t11, _null, t9, t8)); row.push(new A.ReportNumberValue(value1, _null, t13, _null, t11, t10));
else else
row.push(new A.ReportStringValue(value1, t9, t8)); row.push(new A.ReportStringValue(value1, t11, t10));
} }
if (!skip) if (!skip)
data.push(row); data.push(row);
@ -105918,34 +105926,35 @@
return B.PhotoViewScaleState_0; return B.PhotoViewScaleState_0;
} }
}, },
PhotoView: function PhotoView(t0, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12, t13, t14, t15, t16, t17, t18, t19, t20, t21, t22, t23, t24, t25) { PhotoView: function PhotoView(t0, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12, t13, t14, t15, t16, t17, t18, t19, t20, t21, t22, t23, t24, t25, t26) {
var _ = this; var _ = this;
_.imageProvider = t0; _.imageProvider = t0;
_.loadingBuilder = t1; _.loadingBuilder = t1;
_.errorBuilder = t2; _.errorBuilder = t2;
_.backgroundDecoration = t3; _.backgroundDecoration = t3;
_.gaplessPlayback = t4; _.wantKeepAlive = t4;
_.heroAttributes = t5; _.gaplessPlayback = t5;
_.customSize = t6; _.heroAttributes = t6;
_.scaleStateChangedCallback = t7; _.customSize = t7;
_.enableRotation = t8; _.scaleStateChangedCallback = t8;
_.child = t9; _.enableRotation = t9;
_.childSize = t10; _.child = t10;
_.maxScale = t11; _.childSize = t11;
_.minScale = t12; _.maxScale = t12;
_.initialScale = t13; _.minScale = t13;
_.controller = t14; _.initialScale = t14;
_.scaleStateController = t15; _.controller = t15;
_.basePosition = t16; _.scaleStateController = t16;
_.scaleStateCycle = t17; _.basePosition = t17;
_.onTapUp = t18; _.scaleStateCycle = t18;
_.onTapDown = t19; _.onTapUp = t19;
_.onScaleEnd = t20; _.onTapDown = t20;
_.gestureDetectorBehavior = t21; _.onScaleEnd = t21;
_.tightMode = t22; _.gestureDetectorBehavior = t22;
_.filterQuality = t23; _.tightMode = t23;
_.disableGestures = t24; _.filterQuality = t24;
_.key = t25; _.disableGestures = t25;
_.key = t26;
}, },
_PhotoViewState: function _PhotoViewState(t0, t1) { _PhotoViewState: function _PhotoViewState(t0, t1) {
var _ = this; var _ = this;
@ -425241,7 +425250,8 @@
return new A.LayoutBuilder(new A._PhotoViewState_build_closure(this), null); return new A.LayoutBuilder(new A._PhotoViewState_build_closure(this), null);
}, },
get$wantKeepAlive() { get$wantKeepAlive() {
return true; this._widget.toString;
return false;
} }
}; };
A._PhotoViewState_build_closure.prototype = { A._PhotoViewState_build_closure.prototype = {
@ -425281,7 +425291,7 @@
A.__PhotoViewState_State_AutomaticKeepAliveClientMixin.prototype = { A.__PhotoViewState_State_AutomaticKeepAliveClientMixin.prototype = {
initState$0() { initState$0() {
this.super$State$initState(); this.super$State$initState();
this._ensureKeepAlive$0(); this._widget.toString;
}, },
deactivate$0() { deactivate$0() {
var t1 = this.AutomaticKeepAliveClientMixin__keepAliveHandle; var t1 = this.AutomaticKeepAliveClientMixin__keepAliveHandle;
@ -425334,7 +425344,7 @@
t5 = pageOption.initialScale; t5 = pageOption.initialScale;
t6 = pageOption.minScale; t6 = pageOption.minScale;
t7 = pageOption.maxScale; t7 = pageOption.maxScale;
return A.ClipRect$(new A.PhotoView(t1, t3, _null, t2, false, t4, _null, this.get$scaleStateChangedCallback(), false, _null, _null, t7, t6, t5, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, new A.ObjectKey(index)), _null); return A.ClipRect$(new A.PhotoView(t1, t3, _null, t2, false, false, t4, _null, this.get$scaleStateChangedCallback(), false, _null, _null, t7, t6, t5, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, new A.ObjectKey(index)), _null);
}, },
_buildPageOption$2(context, index) { _buildPageOption$2(context, index) {
var t1 = this._widget.builder.call$2(context, index); var t1 = this._widget.builder.call$2(context, index);
@ -425579,37 +425589,6 @@
} }
}; };
A.PhotoViewCoreState.prototype = { A.PhotoViewCoreState.prototype = {
get$_scaleAnimationController() {
var result, t1, _this = this, _null = null,
value = _this.__PhotoViewCoreState__scaleAnimationController;
if (value === $) {
result = A.AnimationController$(_null, _null, _null, 1, _null, _this);
result.didRegisterListener$0();
t1 = result.AnimationLocalListenersMixin__listeners;
t1._isDirty = true;
t1._observer_list$_list.push(_this.get$handleScaleAnimation());
result.addStatusListener$1(_this.get$onAnimationStatus());
A._lateInitializeOnceCheck(_this.__PhotoViewCoreState__scaleAnimationController, "_scaleAnimationController");
_this.__PhotoViewCoreState__scaleAnimationController = result;
value = result;
}
return value;
},
get$_positionAnimationController() {
var result, t1, _this = this, _null = null,
value = _this.__PhotoViewCoreState__positionAnimationController;
if (value === $) {
result = A.AnimationController$(_null, _null, _null, 1, _null, _this);
result.didRegisterListener$0();
t1 = result.AnimationLocalListenersMixin__listeners;
t1._isDirty = true;
t1._observer_list$_list.push(_this.get$handlePositionAnimate());
A._lateInitializeOnceCheck(_this.__PhotoViewCoreState__positionAnimationController, "_positionAnimationController");
_this.__PhotoViewCoreState__positionAnimationController = result;
value = result;
}
return value;
},
get$_rotationAnimationController() { get$_rotationAnimationController() {
var result, t1, _this = this, _null = null, var result, t1, _this = this, _null = null,
value = _this.__PhotoViewCoreState__rotationAnimationController; value = _this.__PhotoViewCoreState__rotationAnimationController;
@ -425651,8 +425630,8 @@
_this._rotationBefore = _this._widget.controller._valueNotifier._ignorable_change_notifier$_value.rotation; _this._rotationBefore = _this._widget.controller._valueNotifier._ignorable_change_notifier$_value.rotation;
_this._scaleBefore = _this.get$scale(_this); _this._scaleBefore = _this.get$scale(_this);
_this._normalizedPosition = details.focalPoint.$sub(0, _this._widget.controller._valueNotifier._ignorable_change_notifier$_value.position); _this._normalizedPosition = details.focalPoint.$sub(0, _this._widget.controller._valueNotifier._ignorable_change_notifier$_value.position);
_this.get$_scaleAnimationController().stop$0(0); A._lateReadCheck(_this.__PhotoViewCoreState__scaleAnimationController, "_scaleAnimationController").stop$0(0);
_this.get$_positionAnimationController().stop$0(0); A._lateReadCheck(_this.__PhotoViewCoreState__positionAnimationController, "_positionAnimationController").stop$0(0);
_this.get$_rotationAnimationController().stop$0(0); _this.get$_rotationAnimationController().stop$0(0);
}, },
onScaleUpdate$1(details) { onScaleUpdate$1(details) {
@ -425704,16 +425683,18 @@
_this.animatePosition$2(_position, _this.clampPosition$1$position(_position.$add(0, t1.$div(0, magnitude).$mul(0, 100)))); _this.animatePosition$2(_position, _this.clampPosition$1$position(_position.$add(0, t1.$div(0, magnitude).$mul(0, 100))));
}, },
animateScale$2(from, to) { animateScale$2(from, to) {
var t1 = type$.Tween_double; var _s25_ = "_scaleAnimationController",
this._scaleAnimation = new A._AnimatedEvaluation(this.get$_scaleAnimationController(), new A.Tween(from, to, t1), t1._eval$1("_AnimatedEvaluation<Animatable.T>")); t1 = type$.Tween_double;
t1 = this.get$_scaleAnimationController(); this._scaleAnimation = new A._AnimatedEvaluation(A._lateReadCheck(this.__PhotoViewCoreState__scaleAnimationController, _s25_), new A.Tween(from, to, t1), t1._eval$1("_AnimatedEvaluation<Animatable.T>"));
t1 = A._lateReadCheck(this.__PhotoViewCoreState__scaleAnimationController, _s25_);
t1.set$value(0, 0); t1.set$value(0, 0);
t1.fling$1$velocity(0.4); t1.fling$1$velocity(0.4);
}, },
animatePosition$2(from, to) { animatePosition$2(from, to) {
var t1 = type$.Tween_Offset; var _s28_ = "_positionAnimationController",
this._photo_view_core$_positionAnimation = new A._AnimatedEvaluation(this.get$_positionAnimationController(), new A.Tween(from, to, t1), t1._eval$1("_AnimatedEvaluation<Animatable.T>")); t1 = type$.Tween_Offset;
t1 = this.get$_positionAnimationController(); this._photo_view_core$_positionAnimation = new A._AnimatedEvaluation(A._lateReadCheck(this.__PhotoViewCoreState__positionAnimationController, _s28_), new A.Tween(from, to, t1), t1._eval$1("_AnimatedEvaluation<Animatable.T>"));
t1 = A._lateReadCheck(this.__PhotoViewCoreState__positionAnimationController, _s28_);
t1.set$value(0, 0); t1.set$value(0, 0);
t1.fling$1$velocity(0.4); t1.fling$1$velocity(0.4);
}, },
@ -425724,7 +425705,7 @@
_this._widget.scaleStateController.setInvisibly$1(B.PhotoViewScaleState_0); _this._widget.scaleStateController.setInvisibly$1(B.PhotoViewScaleState_0);
}, },
initState$0() { initState$0() {
var t1, _this = this; var t1, t2, _this = this, _null = null;
_this.super$State$initState(); _this.super$State$initState();
t1 = _this._widget.controller._valueNotifier._ignorableListeners; t1 = _this._widget.controller._valueNotifier._ignorableListeners;
t1._isDirty = true; t1._isDirty = true;
@ -425734,6 +425715,21 @@
t1._observer_list$_list.push(_this.get$_blindScaleStateListener()); t1._observer_list$_list.push(_this.get$_blindScaleStateListener());
_this.PhotoViewControllerDelegate__animateScale = _this.get$animateOnScaleStateUpdate(); _this.PhotoViewControllerDelegate__animateScale = _this.get$animateOnScaleStateUpdate();
_this.__PhotoViewCoreState_cachedScaleBoundaries = _this._widget.scaleBoundaries; _this.__PhotoViewCoreState_cachedScaleBoundaries = _this._widget.scaleBoundaries;
t1 = A.AnimationController$(_null, _null, _null, 1, _null, _this);
t1.didRegisterListener$0();
t2 = t1.AnimationLocalListenersMixin__listeners;
t2._isDirty = true;
t2._observer_list$_list.push(_this.get$handleScaleAnimation());
t1.addStatusListener$1(_this.get$onAnimationStatus());
A._lateWriteOnceCheck(_this.__PhotoViewCoreState__scaleAnimationController, "_scaleAnimationController");
_this.__PhotoViewCoreState__scaleAnimationController = t1;
t1 = A.AnimationController$(_null, _null, _null, 1, _null, _this);
t1.didRegisterListener$0();
t2 = t1.AnimationLocalListenersMixin__listeners;
t2._isDirty = true;
t2._observer_list$_list.push(_this.get$handlePositionAnimate());
A._lateWriteOnceCheck(_this.__PhotoViewCoreState__positionAnimationController, "_positionAnimationController");
_this.__PhotoViewCoreState__positionAnimationController = t1;
}, },
animateOnScaleStateUpdate$2(prevScale, nextScale) { animateOnScaleStateUpdate$2(prevScale, nextScale) {
var t1, t2, _this = this; var t1, t2, _this = this;
@ -425747,10 +425743,11 @@
t2.fling$1$velocity(0.4); t2.fling$1$velocity(0.4);
}, },
dispose$0(_) { dispose$0(_) {
var _this = this; var _this = this,
_this.get$_scaleAnimationController().removeStatusListener$1(_this.get$onAnimationStatus()); _s25_ = "_scaleAnimationController";
_this.get$_scaleAnimationController().dispose$0(0); A._lateReadCheck(_this.__PhotoViewCoreState__scaleAnimationController, _s25_).removeStatusListener$1(_this.get$onAnimationStatus());
_this.get$_positionAnimationController().dispose$0(0); A._lateReadCheck(_this.__PhotoViewCoreState__scaleAnimationController, _s25_).dispose$0(0);
A._lateReadCheck(_this.__PhotoViewCoreState__positionAnimationController, "_positionAnimationController").dispose$0(0);
_this.get$_rotationAnimationController().dispose$0(0); _this.get$_rotationAnimationController().dispose$0(0);
_this.super$_PhotoViewCoreState_State_TickerProviderStateMixin_PhotoViewControllerDelegate$dispose(0); _this.super$_PhotoViewCoreState_State_TickerProviderStateMixin_PhotoViewControllerDelegate$dispose(0);
}, },
@ -426067,21 +426064,12 @@
}; };
A.PhotoViewDefaultLoading.prototype = { A.PhotoViewDefaultLoading.prototype = {
build$1(_, context) { build$1(_, context) {
var t2, value, _null = null, var _null = null,
t1 = this.event; t1 = this.event,
if (t1 != null) t2 = t1 == null,
t2 = t1.expectedTotalBytes != null; expectedBytes = t2 ? _null : t1.expectedTotalBytes,
else loadedBytes = t2 ? _null : t1.cumulativeBytesLoaded;
t2 = true; return A.Center$(A.Container$(_null, A.CircularProgressIndicator$(_null, _null, _null, _null, _null, 4, loadedBytes != null && expectedBytes != null ? loadedBytes / expectedBytes : _null, _null), B.Clip_0, _null, _null, _null, _null, 20, _null, _null, _null, _null, _null, 20), _null, _null);
if (t2)
value = 0;
else {
t2 = t1.cumulativeBytesLoaded;
t1 = t1.expectedTotalBytes;
t1.toString;
value = t2 / t1;
}
return A.Center$(A.Container$(_null, A.CircularProgressIndicator$(_null, _null, _null, _null, _null, 4, value, _null), B.Clip_0, _null, _null, _null, _null, 20, _null, _null, _null, _null, _null, 20), _null, _null);
} }
}; };
A.PhotoViewScaleState.prototype = { A.PhotoViewScaleState.prototype = {