mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Admin Portal - Profile
This commit is contained in:
parent
0b06bbd4a0
commit
47d1325632
276
public/main.profile.dart.js
vendored
276
public/main.profile.dart.js
vendored
@ -94474,7 +94474,7 @@
|
||||
productReport_closure4: function productReport_closure4() {
|
||||
},
|
||||
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",
|
||||
data = A._setArrayType([], type$.JSArray_legacy_List_legacy_ReportElement),
|
||||
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);
|
||||
} else
|
||||
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();) {
|
||||
payment = t6.$index(0, t1.get$current(t1));
|
||||
t7 = payment.clientId;
|
||||
client = clientMap._map$_map.$index(0, t7);
|
||||
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 = t8.$index(0, t1.get$current(t1));
|
||||
t9 = payment.clientId;
|
||||
client = clientMap._map$_map.$index(0, t9);
|
||||
if (client == null)
|
||||
client = A.ClientEntity_ClientEntity(_null, _null, _null, _null);
|
||||
t7 = payment.vendorId;
|
||||
vendor = vendorMap._map$_map.$index(0, t7);
|
||||
t9 = payment.vendorId;
|
||||
vendor = vendorMap._map$_map.$index(0, t9);
|
||||
if (vendor == null)
|
||||
vendor = A.VendorEntity_VendorEntity(_null, _null, _null);
|
||||
skip = payment.isDeleted || client.isDeleted;
|
||||
row = A._setArrayType([], t5);
|
||||
for (t7 = new J.ArrayIterator(t2, t2.length, t4), t8 = payment.id, t9 = payment.currencyId; t7.moveNext$0();) {
|
||||
t10 = t7.__interceptors$_current;
|
||||
switch (t10) {
|
||||
row = A._setArrayType([], t7);
|
||||
for (t9 = new J.ArrayIterator(t2, t2.length, t4), t10 = payment.id, t11 = payment.currencyId; t9.moveNext$0();) {
|
||||
t12 = t9.__interceptors$_current;
|
||||
switch (t12) {
|
||||
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;
|
||||
case B.ProfitAndLossReportFields_0:
|
||||
value = client.displayName;
|
||||
@ -94522,10 +94526,10 @@
|
||||
value = client.state;
|
||||
break;
|
||||
case B.ProfitAndLossReportFields_5:
|
||||
t11 = staticState.countryMap;
|
||||
t12 = client.countryId;
|
||||
t12 = t11._map$_map.$index(0, t12);
|
||||
value = t12 == null ? _null : t12.name;
|
||||
t13 = staticState.countryMap;
|
||||
t14 = client.countryId;
|
||||
t14 = t13._map$_map.$index(0, t14);
|
||||
value = t14 == null ? _null : t14.name;
|
||||
if (value == null)
|
||||
value = "";
|
||||
break;
|
||||
@ -94545,10 +94549,10 @@
|
||||
value = vendor.state;
|
||||
break;
|
||||
case B.ProfitAndLossReportFields_11:
|
||||
t11 = staticState.countryMap;
|
||||
t12 = vendor.countryId;
|
||||
t12 = t11._map$_map.$index(0, t12);
|
||||
value = t12 == null ? _null : t12.name;
|
||||
t13 = staticState.countryMap;
|
||||
t14 = vendor.countryId;
|
||||
t14 = t13._map$_map.$index(0, t14);
|
||||
value = t14 == null ? _null : t14.name;
|
||||
if (value == null)
|
||||
value = "";
|
||||
break;
|
||||
@ -94564,42 +94568,46 @@
|
||||
default:
|
||||
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;
|
||||
t10 = J.getInterceptor$(value);
|
||||
if (t10.get$runtimeType(value) === B.Type_EntityType_6qb) {
|
||||
t10 = payment.get$entityType();
|
||||
row.push(new A.ReportEntityTypeValue(payment.get$entityType(), t10, t8));
|
||||
} else if (t10.get$runtimeType(value) === B.Type_bool_lhE)
|
||||
row.push(new A.ReportBoolValue(value, payment.get$entityType(), t8));
|
||||
else if (t10.get$runtimeType(value) === B.Type_double_K1J || t10.get$runtimeType(value) === B.Type_int_tHn)
|
||||
row.push(new A.ReportNumberValue(value, _null, t9, _null, payment.get$entityType(), t8));
|
||||
t12 = J.getInterceptor$(value);
|
||||
if (t12.get$runtimeType(value) === B.Type_EntityType_6qb) {
|
||||
t12 = payment.get$entityType();
|
||||
row.push(new A.ReportEntityTypeValue(payment.get$entityType(), t12, t10));
|
||||
} else if (t12.get$runtimeType(value) === B.Type_bool_lhE)
|
||||
row.push(new A.ReportBoolValue(value, payment.get$entityType(), t10));
|
||||
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, t11, _null, payment.get$entityType(), t10));
|
||||
else
|
||||
row.push(new A.ReportStringValue(value, payment.get$entityType(), t8));
|
||||
row.push(new A.ReportStringValue(value, payment.get$entityType(), t10));
|
||||
}
|
||||
if (!skip)
|
||||
data.push(row);
|
||||
}
|
||||
for (t1 = expenseMap.get$keys(expenseMap), t1 = t1.get$iterator(t1), t6 = expenseMap._map$_map; t1.moveNext$0();) {
|
||||
expense = t6.$index(0, t1.get$current(t1));
|
||||
t7 = expense.clientId;
|
||||
client = clientMap._map$_map.$index(0, t7);
|
||||
for (t1 = expenseMap.get$keys(expenseMap), t1 = t1.get$iterator(t1), t8 = expenseMap._map$_map; t1.moveNext$0();) {
|
||||
expense = t8.$index(0, t1.get$current(t1));
|
||||
t9 = expense.clientId;
|
||||
client = clientMap._map$_map.$index(0, t9);
|
||||
if (client == null)
|
||||
client = A.ClientEntity_ClientEntity(_null, _null, _null, _null);
|
||||
t7 = expense.vendorId;
|
||||
vendor = vendorMap._map$_map.$index(0, t7);
|
||||
t9 = expense.vendorId;
|
||||
vendor = vendorMap._map$_map.$index(0, t9);
|
||||
if (vendor == null)
|
||||
vendor = A.VendorEntity_VendorEntity(_null, _null, _null);
|
||||
if (!expense.isDeleted)
|
||||
skip = client.isDeleted === true;
|
||||
else
|
||||
skip = true;
|
||||
row = A._setArrayType([], t5);
|
||||
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();) {
|
||||
t12 = t7.__interceptors$_current;
|
||||
switch (t12) {
|
||||
row = A._setArrayType([], t7);
|
||||
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();) {
|
||||
t14 = t9.__interceptors$_current;
|
||||
switch (t14) {
|
||||
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;
|
||||
case B.ProfitAndLossReportFields_0:
|
||||
value1 = client.displayName;
|
||||
@ -94617,10 +94625,10 @@
|
||||
value1 = client.state;
|
||||
break;
|
||||
case B.ProfitAndLossReportFields_5:
|
||||
t13 = staticState.countryMap;
|
||||
t14 = client.countryId;
|
||||
t14 = t13._map$_map.$index(0, t14);
|
||||
value1 = t14 == null ? _null : t14.name;
|
||||
t15 = staticState.countryMap;
|
||||
t16 = client.countryId;
|
||||
t16 = t15._map$_map.$index(0, t16);
|
||||
value1 = t16 == null ? _null : t16.name;
|
||||
if (value1 == null)
|
||||
value1 = "";
|
||||
break;
|
||||
@ -94640,9 +94648,9 @@
|
||||
value1 = vendor.state;
|
||||
break;
|
||||
case B.ProfitAndLossReportFields_11:
|
||||
t13 = staticState.countryMap;
|
||||
t14 = vendor.countryId;
|
||||
value1 = t13._map$_map.$index(0, t14);
|
||||
t15 = staticState.countryMap;
|
||||
t16 = vendor.countryId;
|
||||
value1 = t15._map$_map.$index(0, t16);
|
||||
break;
|
||||
case B.ProfitAndLossReportFields_13:
|
||||
value1 = value0;
|
||||
@ -94651,25 +94659,25 @@
|
||||
value1 = value;
|
||||
break;
|
||||
case B.ProfitAndLossReportFields_15:
|
||||
t13 = expenseCategoryMap._map$_map.$index(0, t10);
|
||||
value1 = t13 == null ? _null : t13.name;
|
||||
t15 = expenseCategoryMap._map$_map.$index(0, t12);
|
||||
value1 = t15 == null ? _null : t15.name;
|
||||
if (value1 == null)
|
||||
value1 = "";
|
||||
break;
|
||||
default:
|
||||
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;
|
||||
t12 = J.getInterceptor$(value1);
|
||||
if (t12.get$runtimeType(value1) === B.Type_EntityType_6qb)
|
||||
row.push(new A.ReportEntityTypeValue(t9, t9, t8));
|
||||
else if (t12.get$runtimeType(value1) === B.Type_bool_lhE)
|
||||
row.push(new A.ReportBoolValue(value1, t9, t8));
|
||||
else if (t12.get$runtimeType(value1) === B.Type_double_K1J || t12.get$runtimeType(value1) === B.Type_int_tHn)
|
||||
row.push(new A.ReportNumberValue(value1, _null, t11, _null, t9, t8));
|
||||
t14 = J.getInterceptor$(value1);
|
||||
if (t14.get$runtimeType(value1) === B.Type_EntityType_6qb)
|
||||
row.push(new A.ReportEntityTypeValue(t11, t11, t10));
|
||||
else if (t14.get$runtimeType(value1) === B.Type_bool_lhE)
|
||||
row.push(new A.ReportBoolValue(value1, t11, t10));
|
||||
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, t13, _null, t11, t10));
|
||||
else
|
||||
row.push(new A.ReportStringValue(value1, t9, t8));
|
||||
row.push(new A.ReportStringValue(value1, t11, t10));
|
||||
}
|
||||
if (!skip)
|
||||
data.push(row);
|
||||
@ -105918,34 +105926,35 @@
|
||||
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;
|
||||
_.imageProvider = t0;
|
||||
_.loadingBuilder = t1;
|
||||
_.errorBuilder = t2;
|
||||
_.backgroundDecoration = t3;
|
||||
_.gaplessPlayback = t4;
|
||||
_.heroAttributes = t5;
|
||||
_.customSize = t6;
|
||||
_.scaleStateChangedCallback = t7;
|
||||
_.enableRotation = t8;
|
||||
_.child = t9;
|
||||
_.childSize = t10;
|
||||
_.maxScale = t11;
|
||||
_.minScale = t12;
|
||||
_.initialScale = t13;
|
||||
_.controller = t14;
|
||||
_.scaleStateController = t15;
|
||||
_.basePosition = t16;
|
||||
_.scaleStateCycle = t17;
|
||||
_.onTapUp = t18;
|
||||
_.onTapDown = t19;
|
||||
_.onScaleEnd = t20;
|
||||
_.gestureDetectorBehavior = t21;
|
||||
_.tightMode = t22;
|
||||
_.filterQuality = t23;
|
||||
_.disableGestures = t24;
|
||||
_.key = t25;
|
||||
_.wantKeepAlive = t4;
|
||||
_.gaplessPlayback = t5;
|
||||
_.heroAttributes = t6;
|
||||
_.customSize = t7;
|
||||
_.scaleStateChangedCallback = t8;
|
||||
_.enableRotation = t9;
|
||||
_.child = t10;
|
||||
_.childSize = t11;
|
||||
_.maxScale = t12;
|
||||
_.minScale = t13;
|
||||
_.initialScale = t14;
|
||||
_.controller = t15;
|
||||
_.scaleStateController = t16;
|
||||
_.basePosition = t17;
|
||||
_.scaleStateCycle = t18;
|
||||
_.onTapUp = t19;
|
||||
_.onTapDown = t20;
|
||||
_.onScaleEnd = t21;
|
||||
_.gestureDetectorBehavior = t22;
|
||||
_.tightMode = t23;
|
||||
_.filterQuality = t24;
|
||||
_.disableGestures = t25;
|
||||
_.key = t26;
|
||||
},
|
||||
_PhotoViewState: function _PhotoViewState(t0, t1) {
|
||||
var _ = this;
|
||||
@ -425241,7 +425250,8 @@
|
||||
return new A.LayoutBuilder(new A._PhotoViewState_build_closure(this), null);
|
||||
},
|
||||
get$wantKeepAlive() {
|
||||
return true;
|
||||
this._widget.toString;
|
||||
return false;
|
||||
}
|
||||
};
|
||||
A._PhotoViewState_build_closure.prototype = {
|
||||
@ -425281,7 +425291,7 @@
|
||||
A.__PhotoViewState_State_AutomaticKeepAliveClientMixin.prototype = {
|
||||
initState$0() {
|
||||
this.super$State$initState();
|
||||
this._ensureKeepAlive$0();
|
||||
this._widget.toString;
|
||||
},
|
||||
deactivate$0() {
|
||||
var t1 = this.AutomaticKeepAliveClientMixin__keepAliveHandle;
|
||||
@ -425334,7 +425344,7 @@
|
||||
t5 = pageOption.initialScale;
|
||||
t6 = pageOption.minScale;
|
||||
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) {
|
||||
var t1 = this._widget.builder.call$2(context, index);
|
||||
@ -425579,37 +425589,6 @@
|
||||
}
|
||||
};
|
||||
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() {
|
||||
var result, t1, _this = this, _null = null,
|
||||
value = _this.__PhotoViewCoreState__rotationAnimationController;
|
||||
@ -425651,8 +425630,8 @@
|
||||
_this._rotationBefore = _this._widget.controller._valueNotifier._ignorable_change_notifier$_value.rotation;
|
||||
_this._scaleBefore = _this.get$scale(_this);
|
||||
_this._normalizedPosition = details.focalPoint.$sub(0, _this._widget.controller._valueNotifier._ignorable_change_notifier$_value.position);
|
||||
_this.get$_scaleAnimationController().stop$0(0);
|
||||
_this.get$_positionAnimationController().stop$0(0);
|
||||
A._lateReadCheck(_this.__PhotoViewCoreState__scaleAnimationController, "_scaleAnimationController").stop$0(0);
|
||||
A._lateReadCheck(_this.__PhotoViewCoreState__positionAnimationController, "_positionAnimationController").stop$0(0);
|
||||
_this.get$_rotationAnimationController().stop$0(0);
|
||||
},
|
||||
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))));
|
||||
},
|
||||
animateScale$2(from, to) {
|
||||
var t1 = type$.Tween_double;
|
||||
this._scaleAnimation = new A._AnimatedEvaluation(this.get$_scaleAnimationController(), new A.Tween(from, to, t1), t1._eval$1("_AnimatedEvaluation<Animatable.T>"));
|
||||
t1 = this.get$_scaleAnimationController();
|
||||
var _s25_ = "_scaleAnimationController",
|
||||
t1 = type$.Tween_double;
|
||||
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.fling$1$velocity(0.4);
|
||||
},
|
||||
animatePosition$2(from, to) {
|
||||
var t1 = type$.Tween_Offset;
|
||||
this._photo_view_core$_positionAnimation = new A._AnimatedEvaluation(this.get$_positionAnimationController(), new A.Tween(from, to, t1), t1._eval$1("_AnimatedEvaluation<Animatable.T>"));
|
||||
t1 = this.get$_positionAnimationController();
|
||||
var _s28_ = "_positionAnimationController",
|
||||
t1 = type$.Tween_Offset;
|
||||
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.fling$1$velocity(0.4);
|
||||
},
|
||||
@ -425724,7 +425705,7 @@
|
||||
_this._widget.scaleStateController.setInvisibly$1(B.PhotoViewScaleState_0);
|
||||
},
|
||||
initState$0() {
|
||||
var t1, _this = this;
|
||||
var t1, t2, _this = this, _null = null;
|
||||
_this.super$State$initState();
|
||||
t1 = _this._widget.controller._valueNotifier._ignorableListeners;
|
||||
t1._isDirty = true;
|
||||
@ -425734,6 +425715,21 @@
|
||||
t1._observer_list$_list.push(_this.get$_blindScaleStateListener());
|
||||
_this.PhotoViewControllerDelegate__animateScale = _this.get$animateOnScaleStateUpdate();
|
||||
_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) {
|
||||
var t1, t2, _this = this;
|
||||
@ -425747,10 +425743,11 @@
|
||||
t2.fling$1$velocity(0.4);
|
||||
},
|
||||
dispose$0(_) {
|
||||
var _this = this;
|
||||
_this.get$_scaleAnimationController().removeStatusListener$1(_this.get$onAnimationStatus());
|
||||
_this.get$_scaleAnimationController().dispose$0(0);
|
||||
_this.get$_positionAnimationController().dispose$0(0);
|
||||
var _this = this,
|
||||
_s25_ = "_scaleAnimationController";
|
||||
A._lateReadCheck(_this.__PhotoViewCoreState__scaleAnimationController, _s25_).removeStatusListener$1(_this.get$onAnimationStatus());
|
||||
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.super$_PhotoViewCoreState_State_TickerProviderStateMixin_PhotoViewControllerDelegate$dispose(0);
|
||||
},
|
||||
@ -426067,21 +426064,12 @@
|
||||
};
|
||||
A.PhotoViewDefaultLoading.prototype = {
|
||||
build$1(_, context) {
|
||||
var t2, value, _null = null,
|
||||
t1 = this.event;
|
||||
if (t1 != null)
|
||||
t2 = t1.expectedTotalBytes != null;
|
||||
else
|
||||
t2 = true;
|
||||
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);
|
||||
var _null = null,
|
||||
t1 = this.event,
|
||||
t2 = t1 == null,
|
||||
expectedBytes = t2 ? _null : t1.expectedTotalBytes,
|
||||
loadedBytes = t2 ? _null : t1.cumulativeBytesLoaded;
|
||||
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);
|
||||
}
|
||||
};
|
||||
A.PhotoViewScaleState.prototype = {
|
||||
|
Loading…
x
Reference in New Issue
Block a user