mirror of
https://github.com/linagora/tmail-flutter.git
synced 2026-12-06 16:04:20 +00:00
947 lines
49 KiB
JavaScript
947 lines
49 KiB
JavaScript
// Generated by dart2js (NullSafetyMode.sound, trust primitives, omit checks, lax runtime type, csp, intern-composite-values), the Dart to JavaScript compiler version: 3.4.3.
|
|
((s, d, e) => {
|
|
s[d] = s[d] || {};
|
|
s[d][e] = s[d][e] || [];
|
|
s[d][e].push({p: "main.dart.js_5", e: "beginPart"});
|
|
})(self, "$__dart_deferred_initializers__", "eventLog");
|
|
$__dart_deferred_initializers__.current = function(hunkHelpers, init, holdersList, $) {
|
|
var A, B, E, F,
|
|
C = {
|
|
ElevatedButton_ElevatedButton$icon(icon, label, onPressed, style) {
|
|
var _null = null;
|
|
return new C._ElevatedButtonWithIcon(onPressed, _null, _null, _null, style, B.Clip_0, _null, false, _null, true, new C._ElevatedButtonWithIconChild(label, icon, style, B.IconAlignment_0, _null), _null);
|
|
},
|
|
_ElevatedButtonWithIcon: function _ElevatedButtonWithIcon(t0, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11) {
|
|
var _ = this;
|
|
_.onPressed = t0;
|
|
_.onLongPress = t1;
|
|
_.onHover = t2;
|
|
_.onFocusChange = t3;
|
|
_.style = t4;
|
|
_.clipBehavior = t5;
|
|
_.focusNode = t6;
|
|
_.autofocus = t7;
|
|
_.statesController = t8;
|
|
_.isSemanticButton = t9;
|
|
_.child = t10;
|
|
_.key = t11;
|
|
},
|
|
_ElevatedButtonWithIconChild: function _ElevatedButtonWithIconChild(t0, t1, t2, t3, t4) {
|
|
var _ = this;
|
|
_.label = t0;
|
|
_.icon = t1;
|
|
_.buttonStyle = t2;
|
|
_.iconAlignment = t3;
|
|
_.key = t4;
|
|
},
|
|
Portal$(child) {
|
|
return new C.Portal(child, null);
|
|
},
|
|
Portal: function Portal(t0, t1) {
|
|
this.child = t0;
|
|
this.key = t1;
|
|
},
|
|
_PortalState: function _PortalState(t0, t1) {
|
|
var _ = this;
|
|
_._portal$_portalLink = t0;
|
|
_._widget = null;
|
|
_._debugLifecycleState = t1;
|
|
_._framework$_element = null;
|
|
},
|
|
PortalLink: function PortalLink(t0) {
|
|
this.theater = null;
|
|
this.overlays = t0;
|
|
},
|
|
PortalLinkScope: function PortalLinkScope(t0, t1, t2, t3, t4) {
|
|
var _ = this;
|
|
_.debugName = t0;
|
|
_.portalLink = t1;
|
|
_.portalLabels = t2;
|
|
_.child = t3;
|
|
_.key = t4;
|
|
},
|
|
PortalTheater: function PortalTheater(t0, t1, t2, t3) {
|
|
var _ = this;
|
|
_.debugName = t0;
|
|
_._portal_theater$_portalLink = t1;
|
|
_.child = t2;
|
|
_.key = t3;
|
|
},
|
|
RenderPortalTheater: function RenderPortalTheater(t0, t1, t2, t3, t4) {
|
|
var _ = this;
|
|
_.debugName = t0;
|
|
_._portal_theater$_portalLink = t1;
|
|
_.RenderObjectWithChildMixin__child = t2;
|
|
_._layoutCacheStorage = t3;
|
|
_._computingThisDryBaseline = _._computingThisDryLayout = false;
|
|
_._box$_size = null;
|
|
_._debugActivePointers = 0;
|
|
_._object$_debugDisposed = false;
|
|
_.parentData = null;
|
|
_._object$_depth = 0;
|
|
_.debugCreator = _._object$_parent = null;
|
|
_._debugDoingThisLayout = _._debugDoingThisResize = false;
|
|
_._debugCanParentUseSize = null;
|
|
_._debugMutationsLocked = false;
|
|
_._object$_owner = null;
|
|
_._needsLayout = true;
|
|
_._relayoutBoundary = null;
|
|
_._doingThisLayoutWithCallback = false;
|
|
_._constraints = null;
|
|
_._debugDoingThisPaint = false;
|
|
_.__RenderObject__wasRepaintBoundary_A = $;
|
|
_._layerHandle = t4;
|
|
_._needsCompositingBitsUpdate = false;
|
|
_.__RenderObject__needsCompositing_A = $;
|
|
_._needsPaint = true;
|
|
_._needsCompositedLayerUpdate = false;
|
|
_._cachedSemanticsConfiguration = null;
|
|
_._needsSemanticsUpdate = true;
|
|
_._semantics = null;
|
|
},
|
|
PopupMenuWidgetMixin: function PopupMenuWidgetMixin() {
|
|
},
|
|
LinkBrowserWidget: function LinkBrowserWidget(t0, t1, t2) {
|
|
this.uri = t0;
|
|
this.child = t1;
|
|
this.key = t2;
|
|
},
|
|
LinkBrowserWidget_build_closure: function LinkBrowserWidget_build_closure(t0) {
|
|
this.$this = t0;
|
|
},
|
|
MaterialTextButton$(borderRadius, customStyle, label, labelColor, labelSize, labelWeight, onLongPress, onTap, overflow, padding, softWrap) {
|
|
return new C.MaterialTextButton(label, onTap, onLongPress, borderRadius, labelColor, labelSize, labelWeight, customStyle, padding, overflow, softWrap, null);
|
|
},
|
|
MaterialTextButton: function MaterialTextButton(t0, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11) {
|
|
var _ = this;
|
|
_.label = t0;
|
|
_.onTap = t1;
|
|
_.onLongPress = t2;
|
|
_.borderRadius = t3;
|
|
_.labelColor = t4;
|
|
_.labelSize = t5;
|
|
_.labelWeight = t6;
|
|
_.customStyle = t7;
|
|
_.padding = t8;
|
|
_.overflow = t9;
|
|
_.softWrap = t10;
|
|
_.key = t11;
|
|
},
|
|
UserInformationWidget$(border, onSubtitleClick, padding, subtitle, titlePadding, userName) {
|
|
return new C.UserInformationWidget(userName, subtitle, onSubtitleClick, padding, border, null);
|
|
},
|
|
UserInformationWidget: function UserInformationWidget(t0, t1, t2, t3, t4, t5) {
|
|
var _ = this;
|
|
_.userName = t0;
|
|
_.subtitle = t1;
|
|
_.onSubtitleClick = t2;
|
|
_.padding = t3;
|
|
_.border = t4;
|
|
_.key = t5;
|
|
},
|
|
AppGridDashboardIcon: function AppGridDashboardIcon(t0, t1, t2, t3) {
|
|
var _ = this;
|
|
_.imagePaths = t0;
|
|
_.appGridController = t1;
|
|
_.onShowAppDashboardAction = t2;
|
|
_.key = t3;
|
|
},
|
|
AppGridDashboardIcon_build_closure: function AppGridDashboardIcon_build_closure(t0, t1) {
|
|
this.$this = t0;
|
|
this.context = t1;
|
|
},
|
|
AppGridDashboardIcon_build__closure: function AppGridDashboardIcon_build__closure(t0) {
|
|
this.$this = t0;
|
|
},
|
|
AppGridDashboardItem: function AppGridDashboardItem(t0, t1, t2) {
|
|
this.app = t0;
|
|
this._app_grid_dashboard_item$_imagePaths = t1;
|
|
this.key = t2;
|
|
},
|
|
AppGridDashboardItem_build_closure0: function AppGridDashboardItem_build_closure0(t0) {
|
|
this.$this = t0;
|
|
},
|
|
AppGridDashboardItem_build_closure: function AppGridDashboardItem_build_closure() {
|
|
},
|
|
AppDashboardOverlay: function AppDashboardOverlay(t0, t1) {
|
|
this._linagoraApplications = t0;
|
|
this.key = t1;
|
|
},
|
|
AppDashboardOverlay_build_closure0: function AppDashboardOverlay_build_closure0() {
|
|
},
|
|
AppDashboardOverlay_build_closure: function AppDashboardOverlay_build_closure() {
|
|
},
|
|
NavigationBarWidget$(appGridController, avatarUserName, contactSupportCapability, imagePaths, onShowAppDashboardAction, onTapApplicationLogoAction, onTapAvatarAction, onTapContactSupportAction, searchForm) {
|
|
return new C.NavigationBarWidget(imagePaths, avatarUserName, contactSupportCapability, searchForm, appGridController, onTapApplicationLogoAction, onShowAppDashboardAction, onTapAvatarAction, onTapContactSupportAction, null);
|
|
},
|
|
NavigationBarWidget: function NavigationBarWidget(t0, t1, t2, t3, t4, t5, t6, t7, t8, t9) {
|
|
var _ = this;
|
|
_.imagePaths = t0;
|
|
_.avatarUserName = t1;
|
|
_.contactSupportCapability = t2;
|
|
_.searchForm = t3;
|
|
_.appGridController = t4;
|
|
_.onTapApplicationLogoAction = t5;
|
|
_.onShowAppDashboardAction = t6;
|
|
_.onTapAvatarAction = t7;
|
|
_.onTapContactSupportAction = t8;
|
|
_.key = t9;
|
|
},
|
|
NavigationBarWidget_build_closure: function NavigationBarWidget_build_closure(t0) {
|
|
this.$this = t0;
|
|
},
|
|
NavigationBarWidget_build__closure: function NavigationBarWidget_build__closure(t0) {
|
|
this.$this = t0;
|
|
},
|
|
NavigationBarWidget_build_closure0: function NavigationBarWidget_build_closure0(t0) {
|
|
this.$this = t0;
|
|
},
|
|
VacationNotificationMessageWidget$(actionEndNow, actionGotoVacationSetting, fromAccountDashBoard, leadingIcon, margin, padding, vacationResponse) {
|
|
return new C.VacationNotificationMessageWidget(vacationResponse, actionEndNow, actionGotoVacationSetting, margin, padding, leadingIcon, fromAccountDashBoard, null);
|
|
},
|
|
VacationNotificationMessageWidget: function VacationNotificationMessageWidget(t0, t1, t2, t3, t4, t5, t6, t7) {
|
|
var _ = this;
|
|
_.vacationResponse = t0;
|
|
_.actionEndNow = t1;
|
|
_.actionGotoVacationSetting = t2;
|
|
_.margin = t3;
|
|
_.padding = t4;
|
|
_.leadingIcon = t5;
|
|
_.fromAccountDashBoard = t6;
|
|
_.key = t7;
|
|
},
|
|
DefaultLinkDelegate_create(link) {
|
|
return new C.DefaultLinkDelegate(link, null);
|
|
},
|
|
Link: function Link(t0, t1, t2) {
|
|
this.builder = t0;
|
|
this.uri = t1;
|
|
this.key = t2;
|
|
},
|
|
DefaultLinkDelegate: function DefaultLinkDelegate(t0, t1) {
|
|
this.link = t0;
|
|
this.key = t1;
|
|
},
|
|
DefaultLinkDelegate_build_closure: function DefaultLinkDelegate_build_closure(t0, t1) {
|
|
this.$this = t0;
|
|
this.context = t1;
|
|
},
|
|
buildSVGIconButton(icon, iconColor, iconSize, onTap, onTapDown, padding, tooltip) {
|
|
var _null = null,
|
|
t1 = padding == null ? B.EdgeInsets_8_8_8_8 : padding,
|
|
t2 = A.ColorNullableExtension_asFilter(iconColor),
|
|
iconWidget = new A.Padding(t1, A.SvgPicture$asset(icon, B.Alignment_0_0, t2, B.BoxFit_0, iconSize, _null, _null, iconSize), _null);
|
|
return A.Material$(B.Duration_200000, true, _null, A.InkWell$(false, _null, true, tooltip != null ? A.Tooltip$(iconWidget, _null, tooltip) : iconWidget, B.CircleBorder_0, true, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, onTap, _null, onTapDown, _null, _null, _null, _null, _null), B.Clip_0, B.Color_0, 0, _null, _null, _null, _null, _null, B.MaterialType_0);
|
|
},
|
|
UsernameExtension_get_firstCharacter(_this) {
|
|
var t1 = _this.value;
|
|
return t1.length !== 0 ? t1[0].toUpperCase() : "";
|
|
},
|
|
VacationResponseExtension_get_vacationResponderIsReady(_this) {
|
|
var t1, t2, startDate;
|
|
if (_this.isEnabled === true) {
|
|
t1 = Date.now();
|
|
t2 = _this.fromDate;
|
|
startDate = t2 == null ? null : t2.value.toLocal$0();
|
|
if (startDate != null) {
|
|
t2 = startDate._core$_value;
|
|
t1 = t2 < t1 || t2 === t1;
|
|
} else
|
|
t1 = false;
|
|
if (t1)
|
|
return true;
|
|
else
|
|
return false;
|
|
}
|
|
return false;
|
|
},
|
|
VacationResponseExtension_get_vacationResponderIsWaiting(_this) {
|
|
var t1, t2, startDate;
|
|
if (_this.isEnabled === true) {
|
|
t1 = Date.now();
|
|
t2 = _this.fromDate;
|
|
startDate = t2 == null ? null : t2.value.toLocal$0();
|
|
if (startDate != null && startDate._core$_value > t1)
|
|
return true;
|
|
else
|
|
return false;
|
|
}
|
|
return false;
|
|
},
|
|
VacationResponseExtension_get_vacationResponderIsStopped(_this) {
|
|
var t1, t2, endDate;
|
|
if (_this.isEnabled === true) {
|
|
t1 = Date.now();
|
|
t2 = _this.toDate;
|
|
endDate = t2 == null ? null : t2.value.toLocal$0();
|
|
if (endDate != null && endDate._core$_value < t1)
|
|
return true;
|
|
else
|
|
return false;
|
|
}
|
|
return false;
|
|
},
|
|
VacationResponseExtension_getNotificationMessage(_this, context) {
|
|
var t1, _null = null,
|
|
_s15_ = "MMM d, y h:mm a";
|
|
if (C.VacationResponseExtension_get_vacationResponderIsReady(_this) && !C.VacationResponseExtension_get_vacationResponderIsStopped(_this)) {
|
|
A.Localizations_of(context, B.Type_AppLocalizations_CTL, type$.AppLocalizations).toString;
|
|
return A.Intl__message("Your vacation responder is enabled.", _null, "yourVacationResponderIsEnabled", _null, _null);
|
|
} else if (C.VacationResponseExtension_get_vacationResponderIsWaiting(_this)) {
|
|
A.Localizations_of(context, B.Type_AppLocalizations_CTL, type$.AppLocalizations).toString;
|
|
t1 = A.UTCDateExtension_formatDateToLocal(_this.fromDate, context.dependOnInheritedWidgetOfExactType$1$0(type$._LocalizationsScope).localizationsState._localizations$_locale._rawToString$1("-"), _s15_);
|
|
return A.Intl__message("Your vacation responder will be activated on " + t1, _null, "messageEnableVacationResponderAutomatically", A._setArrayType([t1], type$.JSArray_Object), _null);
|
|
} else if (C.VacationResponseExtension_get_vacationResponderIsStopped(_this)) {
|
|
A.Localizations_of(context, B.Type_AppLocalizations_CTL, type$.AppLocalizations).toString;
|
|
t1 = A.UTCDateExtension_formatDateToLocal(_this.toDate, context.dependOnInheritedWidgetOfExactType$1$0(type$._LocalizationsScope).localizationsState._localizations$_locale._rawToString$1("-"), _s15_);
|
|
return A.Intl__message("Your vacation responder stopped on " + t1, _null, "messageDisableVacationResponderAutomatically", A._setArrayType([t1], type$.JSArray_Object), _null);
|
|
} else
|
|
return "";
|
|
},
|
|
AppConfig_appGridDashboardAvailable() {
|
|
if ($.$get$dotenv().maybeGet$2$fallback("APP_GRID_AVAILABLE", "unsupported") === "supported")
|
|
return true;
|
|
return false;
|
|
}
|
|
},
|
|
D;
|
|
A = holdersList[0];
|
|
B = holdersList[2];
|
|
E = holdersList[10];
|
|
F = holdersList[15];
|
|
C = hunkHelpers.updateHolder(holdersList[9], C);
|
|
D = holdersList[17];
|
|
C._ElevatedButtonWithIcon.prototype = {
|
|
defaultStyleOf$1(context) {
|
|
var buttonStyle, t1, defaultFontSize, scaledPadding;
|
|
A.Theme_of(context);
|
|
buttonStyle = this.super$ElevatedButton$defaultStyleOf(context);
|
|
t1 = buttonStyle.get$textStyle();
|
|
if (t1 == null)
|
|
defaultFontSize = null;
|
|
else {
|
|
t1 = t1.resolve$1(B.Set_empty0);
|
|
t1 = t1 == null ? null : t1.fontSize;
|
|
defaultFontSize = t1;
|
|
}
|
|
if (defaultFontSize == null)
|
|
defaultFontSize = 14;
|
|
t1 = A.MediaQuery__maybeOf(context, B._MediaQueryAspect_4);
|
|
t1 = t1 == null ? null : t1.get$textScaler();
|
|
scaledPadding = A.ButtonStyleButton_scaledPadding(B.EdgeInsetsDirectional_16_0_24_0, D.EdgeInsetsDirectional_8_0_12_0, D.EdgeInsetsDirectional_4_0_6_0, (t1 == null ? B._LinearTextScaler_1 : t1).scale$1(0, defaultFontSize) / 14);
|
|
return buttonStyle.copyWith$1$padding(new A.WidgetStatePropertyAll(scaledPadding, type$.WidgetStatePropertyAll_EdgeInsetsGeometry));
|
|
}
|
|
};
|
|
C._ElevatedButtonWithIconChild.prototype = {
|
|
build$1(context) {
|
|
var defaultFontSize, t2, t3, t4, _this = this, _null = null,
|
|
t1 = _this.buttonStyle.textStyle;
|
|
if (t1 == null)
|
|
t1 = _null;
|
|
else {
|
|
t1 = t1.resolve$1(B.Set_empty0);
|
|
t1 = t1 == null ? _null : t1.fontSize;
|
|
}
|
|
defaultFontSize = t1;
|
|
if (defaultFontSize == null)
|
|
defaultFontSize = 14;
|
|
t1 = A.MediaQuery__maybeOf(context, B._MediaQueryAspect_4);
|
|
t1 = t1 == null ? _null : t1.get$textScaler();
|
|
t1 = A.lerpDouble(8, 4, A.clampDouble((t1 == null ? B._LinearTextScaler_1 : t1).scale$1(0, defaultFontSize) / 14, 1, 2) - 1);
|
|
t1.toString;
|
|
t2 = type$.JSArray_Widget;
|
|
t3 = _this.icon;
|
|
t4 = _this.label;
|
|
return A.Row$(_this.iconAlignment === B.IconAlignment_0 ? A._setArrayType([t3, new A.SizedBox(t1, _null, _null, _null), new A.Flexible(1, B.FlexFit_1, t4, _null)], t2) : A._setArrayType([new A.Flexible(1, B.FlexFit_1, t4, _null), new A.SizedBox(t1, _null, _null, _null), t3], t2), B.CrossAxisAlignment_2, _null, B.MainAxisAlignment_0, B.MainAxisSize_0, _null);
|
|
}
|
|
};
|
|
C.Portal.prototype = {
|
|
createState$0() {
|
|
return new C._PortalState(new C.PortalLink(A.LinkedHashSet_LinkedHashSet$_empty(type$.PortalLinkOverlay)), B._StateLifecycle_0);
|
|
}
|
|
};
|
|
C._PortalState.prototype = {
|
|
build$1(context) {
|
|
var _null = null,
|
|
t1 = this._portal$_portalLink;
|
|
return new C.PortalLinkScope(_null, t1, B.List__PortalMainLabel, new C.PortalTheater(_null, t1, this._widget.child, _null), _null);
|
|
}
|
|
};
|
|
C.PortalLink.prototype = {
|
|
get$constraints() {
|
|
var t1 = this.theater;
|
|
return t1 == null ? null : type$.BoxConstraints._as(A.RenderObject.prototype.get$constraints.call(t1));
|
|
},
|
|
toString$0(_) {
|
|
return "PortalLink#" + A.shortHash(this);
|
|
}
|
|
};
|
|
C.PortalLinkScope.prototype = {
|
|
updateShouldNotify$1(oldWidget) {
|
|
return oldWidget.portalLink !== this.portalLink || !A.listEquals0(oldWidget.portalLabels, this.portalLabels);
|
|
},
|
|
linkEquals$1(other) {
|
|
return this.portalLink === other.portalLink;
|
|
}
|
|
};
|
|
C.PortalTheater.prototype = {
|
|
createRenderObject$1(context) {
|
|
var t1 = new C.RenderPortalTheater(this.debugName, this._portal_theater$_portalLink, null, new A._LayoutCacheStorage(), A.LayerHandle$(type$.ContainerLayer));
|
|
t1.RenderObject$0();
|
|
t1.set$child(null);
|
|
return t1._portal_theater$_portalLink.theater = t1;
|
|
},
|
|
updateRenderObject$2(context, renderObject) {
|
|
var t1, t2;
|
|
renderObject.debugName = this.debugName;
|
|
t1 = this._portal_theater$_portalLink;
|
|
t2 = renderObject._portal_theater$_portalLink;
|
|
if (t2 !== t1) {
|
|
t2.theater = null;
|
|
renderObject._portal_theater$_portalLink = t1;
|
|
t1.theater = renderObject;
|
|
}
|
|
}
|
|
};
|
|
C.RenderPortalTheater.prototype = {
|
|
markNeedsLayout$0() {
|
|
var t1, t2, t3;
|
|
for (t1 = this._portal_theater$_portalLink.overlays, t1 = A._LinkedHashSetIterator$(t1, t1._collection$_modifications, A._instanceType(t1)._precomputed1), t2 = t1.$ti._precomputed1; t1.moveNext$0();) {
|
|
t3 = t1._collection$_current;
|
|
(t3 == null ? t2._as(t3) : t3).overlay.markNeedsLayout$0();
|
|
}
|
|
this.super$RenderBox$markNeedsLayout();
|
|
},
|
|
paint$2(context, offset) {
|
|
var i;
|
|
this.super$RenderProxyBoxMixin$paint(context, offset);
|
|
for (i = this._portal_theater$_portalLink.overlays._collection$_length - 1; i >= 0; --i)
|
|
context.paintChild$2(this._portal_theater$_portalLink.overlays.elementAt$1(0, i).overlay, offset);
|
|
},
|
|
hitTestChildren$2$position(result, position) {
|
|
var t1, t2, t3;
|
|
for (t1 = this._portal_theater$_portalLink.overlays, t1 = A._LinkedHashSetIterator$(t1, t1._collection$_modifications, A._instanceType(t1)._precomputed1), t2 = t1.$ti._precomputed1; t1.moveNext$0();) {
|
|
t3 = t1._collection$_current;
|
|
if ((t3 == null ? t2._as(t3) : t3).overlay.hitTest$2$position(result, position))
|
|
return true;
|
|
}
|
|
return this.super$RenderProxyBoxMixin$hitTestChildren(result, position);
|
|
}
|
|
};
|
|
C.PopupMenuWidgetMixin.prototype = {
|
|
popupItem$5$colorIcon$onCallbackAction$styleName(iconAction, nameAction, colorIcon, onCallbackAction, styleName) {
|
|
var _null = null,
|
|
t1 = A.SvgPicture$asset(iconAction, B.Alignment_0_0, A.ColorNullableExtension_asFilter(colorIcon), B.BoxFit_0, 20, _null, _null, 20);
|
|
return A.InkWell$(false, _null, true, new A.Padding(B.EdgeInsets_20_16_20_16, new A.SizedBox(_null, _null, A.Row$(A._setArrayType([t1, B.SizedBox_12_null_null_null, A.Expanded$(A.Text$(nameAction, _null, _null, _null, _null, _null, _null, _null, _null, styleName, _null, _null, _null, _null, _null), 1)], type$.JSArray_Widget), B.CrossAxisAlignment_2, _null, B.MainAxisAlignment_0, B.MainAxisSize_1, _null), _null), _null), _null, true, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, onCallbackAction, _null, _null, _null, _null, _null, _null, _null);
|
|
}
|
|
};
|
|
C.LinkBrowserWidget.prototype = {
|
|
build$1(context) {
|
|
return new C.Link(new C.LinkBrowserWidget_build_closure(this), this.uri, null);
|
|
}
|
|
};
|
|
C.MaterialTextButton.prototype = {
|
|
build$1(context) {
|
|
var t3, _this = this, _null = null,
|
|
t1 = A.BorderRadius$circular(_this.borderRadius),
|
|
t2 = _this.customStyle;
|
|
if (t2 == null) {
|
|
t2 = _this.labelColor;
|
|
if (t2 == null)
|
|
t2 = B.Color_4278221567;
|
|
t3 = _this.labelWeight;
|
|
if (t3 == null)
|
|
t3 = B.FontWeight_3_400;
|
|
t3 = A.TextStyle$(_null, _null, t2, _null, _null, _null, _null, _null, _null, _null, _null, _this.labelSize, _null, _null, t3, _null, _null, true, _null, _null, _null, _null, _null, _null, _null, _null);
|
|
t2 = t3;
|
|
}
|
|
return A.Material$(B.Duration_200000, true, _null, A.InkWell$(false, _null, true, new A.Padding(_this.padding, A.Text$(_this.label, _null, _null, _null, _this.overflow, _null, _null, _this.softWrap, _null, t2, _null, _null, _null, _null, _null), _null), new A.RoundedRectangleBorder(t1, B.BorderSide_Q1M), true, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _this.onLongPress, _this.onTap, _null, _null, _null, _null, _null, _null, _null), B.Clip_0, B.Color_0, 0, _null, _null, _null, _null, _null, B.MaterialType_0);
|
|
}
|
|
};
|
|
C.UserInformationWidget.prototype = {
|
|
build$1(context) {
|
|
var t2, t3, t4, t5, _this = this, _null = null,
|
|
t1 = _this.padding;
|
|
if (t1 == null)
|
|
t1 = D.EdgeInsetsDirectional_16_16_4_16;
|
|
t2 = new A.AvatarBuilder();
|
|
t3 = _this.userName;
|
|
t4 = t3 == null;
|
|
t5 = t4 ? _null : C.UsernameExtension_get_firstCharacter(t3);
|
|
t2._avatar_builder$_text = t5 == null ? "" : t5;
|
|
t2._bgColor = B.Color_4294967295;
|
|
t2._textColor = B.Color_4278190080;
|
|
t2._boxShadows = A._setArrayType([D.BoxShadow_NMc], type$.JSArray_BoxShadow);
|
|
t2._avatar_builder$_size = 48;
|
|
t2 = t2.build$0();
|
|
t3 = t4 ? _null : t3.value;
|
|
t4 = type$.JSArray_Widget;
|
|
t3 = A._setArrayType([A.SelectableText$(t3 == null ? "" : t3, 1, D.TextStyle_69t9)], t4);
|
|
if (_this.subtitle != null) {
|
|
t5 = A.Matrix4_Matrix4$translationValues(-8, 0, 0);
|
|
A.Localizations_of(context, B.Type_AppLocalizations_CTL, type$.AppLocalizations).toString;
|
|
t3.push(new A.Padding(D.EdgeInsetsDirectional_0_10_0_0, A.Transform$(_null, C.MaterialTextButton$(20, F.TextStyle_OkG0, A.Intl__message("Manage account", _null, "manage_account", _null, _null), _null, 15, _null, _null, _this.onSubtitleClick, _null, B.EdgeInsetsDirectional_8_8_8_8, _null), _null, t5, true), _null));
|
|
}
|
|
return A.Container$(_null, A.Row$(A._setArrayType([t2, D.SizedBox_16_null_null_null, A.Expanded$(A.Column$(t3, B.CrossAxisAlignment_0, B.MainAxisAlignment_0, B.MainAxisSize_1, B.VerticalDirection_1), 1), D.SizedBox_16_null_null_null], t4), B.CrossAxisAlignment_2, _null, B.MainAxisAlignment_0, B.MainAxisSize_1, _null), B.Clip_0, _null, _null, new A.BoxDecoration(_null, _null, _this.border, _null, _null, _null, _null, B.BoxShape_0), _null, _null, _null, _null, t1, _null, _null, _null);
|
|
}
|
|
};
|
|
C.AppGridDashboardIcon.prototype = {
|
|
build$1(context) {
|
|
return new A.Obx(new C.AppGridDashboardIcon_build_closure(this, context), null);
|
|
}
|
|
};
|
|
C.AppGridDashboardItem.prototype = {
|
|
build$1(context) {
|
|
var t4, _null = null,
|
|
t1 = this.app,
|
|
t2 = A._setArrayType([], type$.JSArray_Widget),
|
|
t3 = t1.iconName;
|
|
if ((t3 == null ? _null : t3.length !== 0) === true) {
|
|
t3.toString;
|
|
t4 = "configurations/icons/" + t3;
|
|
if (B.JSString_methods.endsWith$1(t3, "svg"))
|
|
t3 = A.SvgPicture$asset(t4, B.Alignment_0_0, _null, B.BoxFit_0, 42, _null, _null, 42);
|
|
else
|
|
t3 = new A.Image(A.ResizeImage_resizeIfNeeded(_null, _null, new A.AssetImage(t4, _null, _null)), _null, 42, 42, B.BoxFit_0, _null);
|
|
t2.push(t3);
|
|
} else {
|
|
t3 = t1.publicIconUri;
|
|
if (t3 != null)
|
|
t2.push(A.Image$network(t3.toString$0(0), new C.AppGridDashboardItem_build_closure(), B.BoxFit_0, 42, 42));
|
|
}
|
|
t3 = A.Theme_of(context).textTheme.bodySmall;
|
|
t3 = t3 == null ? _null : t3.copyWith$3$color$fontSize$fontWeight(B.Color_4278190080, 12, B.FontWeight_3_400);
|
|
t2.push(new A.Padding(B.EdgeInsets_0_8_0_0, A.Text$(t1.appName, _null, _null, 1, B.TextOverflow_2, _null, _null, _null, _null, t3, B.TextAlign_2, _null, _null, _null, _null), _null));
|
|
return new C.LinkBrowserWidget(t1.appUri, A.Material$(B.Duration_200000, true, _null, A.InkWell$(false, B.BorderRadius_ww80, true, A.Container$(_null, A.Column$(t2, B.CrossAxisAlignment_2, B.MainAxisAlignment_0, B.MainAxisSize_1, B.VerticalDirection_1), B.Clip_0, _null, _null, _null, _null, _null, _null, _null, B.EdgeInsets_0_8_0_8, _null, _null, 80), _null, true, _null, _null, _null, B.Color_2581915884, _null, _null, _null, _null, _null, _null, _null, new C.AppGridDashboardItem_build_closure0(this), _null, _null, _null, _null, _null, _null, _null), B.Clip_0, B.Color_0, 0, _null, _null, _null, _null, _null, B.MaterialType_0), _null);
|
|
}
|
|
};
|
|
C.AppDashboardOverlay.prototype = {
|
|
build$1(context) {
|
|
var _null = null,
|
|
t1 = this.get$_widthAppGrid(),
|
|
t2 = A.BorderRadius$circular(24),
|
|
t3 = $.$get$AppGridDashboardStyle_cardShadow(),
|
|
t4 = this._linagoraApplications.apps,
|
|
t5 = A._arrayInstanceType(t4)._eval$1("MappedListIterable<1,AppGridDashboardItem>");
|
|
return A.GestureDetector$(_null, A.Container$(_null, A.Wrap$(B.WrapAlignment_0, A.List_List$of(new A.MappedListIterable(t4, new C.AppDashboardOverlay_build_closure(), t5), true, t5._eval$1("ListIterable.E")), B.WrapCrossAlignment_0, B.WrapAlignment_0, 0, 0), B.Clip_0, _null, _null, new A.BoxDecoration(B.Color_4294967295, _null, _null, t2, t3, _null, _null, B.BoxShape_0), _null, _null, _null, _null, D.EdgeInsetsDirectional_10_14_10_14, _null, _null, t1), B.DragStartBehavior_1, false, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, new C.AppDashboardOverlay_build_closure0(), _null, _null, _null, _null, _null, _null, _null, false, B.Offset_7BT);
|
|
},
|
|
get$_widthAppGrid() {
|
|
var t1 = this._linagoraApplications.apps.length;
|
|
if (t1 >= 3)
|
|
return 240 + D.EdgeInsetsDirectional_10_14_10_14.get$horizontal();
|
|
else if (t1 === 2)
|
|
return 160 + D.EdgeInsetsDirectional_10_14_10_14.get$horizontal();
|
|
else
|
|
return 80 + D.EdgeInsetsDirectional_10_14_10_14.get$horizontal();
|
|
}
|
|
};
|
|
C.NavigationBarWidget.prototype = {
|
|
build$1(context) {
|
|
var t3, _this = this, _null = null,
|
|
t1 = type$.JSArray_Widget,
|
|
t2 = A._setArrayType([new A.SizedBox(226, _null, A.Row$(A._setArrayType([E.ApplicationLogoWidthTextWidget$(_null, _this.onTapApplicationLogoAction), B.Spacer_null], t1), B.CrossAxisAlignment_2, _null, B.MainAxisAlignment_0, B.MainAxisSize_0, _null), _null)], t1);
|
|
if (_this.searchForm != null)
|
|
t2.push(A.Expanded$(new A.LayoutBuilder(new C.NavigationBarWidget_build_closure(_this), _null), 1));
|
|
else {
|
|
t1 = A._setArrayType([B.Spacer_null], t1);
|
|
if (_this.contactSupportCapability != null) {
|
|
A.Localizations_of(context, B.Type_AppLocalizations_CTL, type$.AppLocalizations).toString;
|
|
t1.push(A.TMailButtonWidget_TMailButtonWidget$fromIcon(B.Color_0, 20, _null, "assets/images/ic_help.svg", B.Color_4287405231, _null, _null, B.EdgeInsetsDirectional_0_0_8_0, 1 / 0, _null, new C.NavigationBarWidget_build_closure0(_this), _null, A.Intl__message("Get help or report a bug", _null, "getHelpOrReportABug", _null, _null)));
|
|
}
|
|
if (C.AppConfig_appGridDashboardAvailable() && _this.appGridController != null) {
|
|
t3 = _this.appGridController;
|
|
t3.toString;
|
|
t1.push(new A.Padding(B.EdgeInsetsDirectional_0_0_16_0, new C.AppGridDashboardIcon(_this.imagePaths, t3, _this.onShowAppDashboardAction, _null), _null));
|
|
}
|
|
t3 = new A.AvatarBuilder();
|
|
t3._avatar_builder$_text = _this.avatarUserName;
|
|
t3._bgColor = B.Color_4294967295;
|
|
t3._textColor = B.Color_4278190080;
|
|
t3._avatar_builder$_context = context;
|
|
t3._avatar_builder$_size = 48;
|
|
t3._onTapAvatarActionWithPositionClick = _this.onTapAvatarAction;
|
|
t3._boxShadows = A._setArrayType([D.BoxShadow_NMc], type$.JSArray_BoxShadow);
|
|
t1.push(t3.build$0());
|
|
B.JSArray_methods.addAll$1(t2, t1);
|
|
}
|
|
return A.Container$(_null, A.Row$(t2, B.CrossAxisAlignment_2, _null, B.MainAxisAlignment_0, B.MainAxisSize_1, _null), B.Clip_0, B.Color_4294967295, _null, _null, _null, 80, _null, _null, D.EdgeInsetsDirectional_30_0_30_0, _null, _null, _null);
|
|
}
|
|
};
|
|
C.VacationNotificationMessageWidget.prototype = {
|
|
build$1(context) {
|
|
var t2, t3, t4, t5, t6, t7, t8, _this = this, _null = null,
|
|
t1 = _this.padding;
|
|
if (t1 == null)
|
|
t1 = D.EdgeInsets_12_5_12_5;
|
|
t2 = A.BorderRadius$circular(8);
|
|
$.$get$Get();
|
|
t3 = $.GetInstance__getInstance;
|
|
if (t3 == null)
|
|
t3 = $.GetInstance__getInstance = B.C_GetInstance;
|
|
t3 = t3.find$1$1$tag(0, _null, type$.ResponsiveUtils);
|
|
t4 = _this._buildBodyForMobile$1(context);
|
|
t5 = _this.fromAccountDashBoard;
|
|
t6 = t5 ? _this._buildBodyForDesktop$1(context) : _this._buildBodyForMobile$1(context);
|
|
t5 = t5 ? _this._buildBodyForDesktop$1(context) : _this._buildBodyForMobile$1(context);
|
|
t7 = _this._buildBodyForDesktop$1(context);
|
|
t8 = _this._buildBodyForDesktop$1(context);
|
|
return A.Container$(_null, A.ResponsiveWidget$(t7, _this._buildBodyForDesktop$1(context), t5, t4, t3, t8, t6), B.Clip_0, _null, _null, new A.BoxDecoration(D.Color_4294964674, _null, _null, t2, _null, _null, _null, B.BoxShape_0), _null, _null, _null, _this.margin, t1, _null, _null, 1 / 0);
|
|
},
|
|
_buildBodyForDesktop$1(context) {
|
|
var t3, t4, _this = this, _null = null,
|
|
_s16_ = "Vacation setting",
|
|
_s15_ = "vacationSetting",
|
|
t1 = A._setArrayType([], type$.JSArray_Widget),
|
|
t2 = _this.leadingIcon;
|
|
if (t2 != null)
|
|
t1.push(t2);
|
|
t2 = _this.vacationResponse;
|
|
t3 = C.VacationResponseExtension_getNotificationMessage(t2, context);
|
|
t2 = C.VacationResponseExtension_getNotificationMessage(t2, context);
|
|
t1.push(A.Expanded$(A.Tooltip$(A.Text$(t2, _null, _null, 1, B.TextOverflow_2, _null, _null, _null, _null, A.TextStyle$(_null, _null, B.Color_4278190080, _null, _null, _null, _null, _null, _null, _null, _null, 16, _null, _null, B.FontWeight_3_400, _null, _null, true, _null, _null, _null, _null, _null, _null, _null, _null), _null, _null, _null, _null, _null), _null, t3), 1));
|
|
t2 = _this.actionEndNow;
|
|
if (t2 != null) {
|
|
t3 = type$.AppLocalizations;
|
|
A.Localizations_of(context, B.Type_AppLocalizations_CTL, t3).toString;
|
|
t4 = A.Intl__message("End now", _null, "endNow", _null, _null);
|
|
A.Localizations_of(context, B.Type_AppLocalizations_CTL, t3).toString;
|
|
t1.push(A.TMailButtonWidget_TMailButtonWidget$fromText(B.Color_0, 10, _null, _null, 1 / 0, 1, 180, 0, _null, t2, D.EdgeInsets_8_5_8_5, t4, _null, B.TextStyle_yT32, A.Intl__message("End now", _null, "endNow", _null, _null), _null));
|
|
}
|
|
t2 = _this.actionGotoVacationSetting;
|
|
if (t2 != null) {
|
|
t3 = type$.AppLocalizations;
|
|
A.Localizations_of(context, B.Type_AppLocalizations_CTL, t3).toString;
|
|
t4 = A.Intl__message(_s16_, _null, _s15_, _null, _null);
|
|
A.Localizations_of(context, B.Type_AppLocalizations_CTL, t3).toString;
|
|
t1.push(A.TMailButtonWidget_TMailButtonWidget$fromText(B.Color_0, 10, _null, _null, 1 / 0, 1, 310, 0, _null, t2, D.EdgeInsets_8_5_8_5, t4, _null, B.TextStyle_yT32, A.Intl__message(_s16_, _null, _s15_, _null, _null), _null));
|
|
}
|
|
return A.Row$(t1, B.CrossAxisAlignment_2, _null, B.MainAxisAlignment_0, B.MainAxisSize_1, _null);
|
|
},
|
|
_buildBodyForMobile$1(context) {
|
|
var t4, t5, _this = this, _null = null,
|
|
_s16_ = "Vacation setting",
|
|
_s15_ = "vacationSetting",
|
|
t1 = type$.JSArray_Widget,
|
|
t2 = A._setArrayType([], t1),
|
|
t3 = _this.leadingIcon;
|
|
if (t3 != null)
|
|
t2.push(t3);
|
|
t3 = _this.vacationResponse;
|
|
t4 = C.VacationResponseExtension_getNotificationMessage(t3, context);
|
|
t3 = C.VacationResponseExtension_getNotificationMessage(t3, context);
|
|
t2.push(A.Tooltip$(A.Text$(t3, _null, _null, 1, B.TextOverflow_2, _null, _null, _null, _null, A.TextStyle$(_null, _null, B.Color_4278190080, _null, _null, _null, _null, _null, _null, _null, _null, 16, _null, _null, B.FontWeight_3_400, _null, _null, true, _null, _null, _null, _null, _null, _null, _null, _null), B.TextAlign_2, _null, _null, _null, _null), _null, t4));
|
|
t1 = A._setArrayType([], t1);
|
|
t3 = _this.actionEndNow;
|
|
if (t3 != null) {
|
|
t4 = type$.AppLocalizations;
|
|
A.Localizations_of(context, B.Type_AppLocalizations_CTL, t4).toString;
|
|
t5 = A.Intl__message("End now", _null, "endNow", _null, _null);
|
|
A.Localizations_of(context, B.Type_AppLocalizations_CTL, t4).toString;
|
|
t1.push(new A.Flexible(1, B.FlexFit_1, A.TMailButtonWidget_TMailButtonWidget$fromText(B.Color_0, 10, _null, _null, 1 / 0, 1, 180, 0, _null, t3, D.EdgeInsets_8_5_8_5, t5, _null, B.TextStyle_yT32, A.Intl__message("End now", _null, "endNow", _null, _null), _null), _null));
|
|
}
|
|
t3 = _this.actionGotoVacationSetting;
|
|
if (t3 != null) {
|
|
t4 = type$.AppLocalizations;
|
|
A.Localizations_of(context, B.Type_AppLocalizations_CTL, t4).toString;
|
|
t5 = A.Intl__message(_s16_, _null, _s15_, _null, _null);
|
|
A.Localizations_of(context, B.Type_AppLocalizations_CTL, t4).toString;
|
|
t1.push(new A.Flexible(1, B.FlexFit_1, A.TMailButtonWidget_TMailButtonWidget$fromText(B.Color_0, 10, _null, _null, 1 / 0, 1, 180, 0, _null, t3, D.EdgeInsets_8_5_8_5, t5, _null, B.TextStyle_yT32, A.Intl__message(_s16_, _null, _s15_, _null, _null), _null), _null));
|
|
}
|
|
t2.push(A.Row$(t1, B.CrossAxisAlignment_2, _null, B.MainAxisAlignment_2, B.MainAxisSize_1, _null));
|
|
return A.Column$(t2, B.CrossAxisAlignment_2, B.MainAxisAlignment_2, B.MainAxisSize_0, B.VerticalDirection_1);
|
|
}
|
|
};
|
|
C.Link.prototype = {
|
|
get$isDisabled() {
|
|
return false;
|
|
},
|
|
get$_effectiveDelegate() {
|
|
var t1 = $.$get$UrlLauncherPlatform__instance().get$linkDelegate();
|
|
return t1 == null ? C.link_DefaultLinkDelegate_create$closure() : t1;
|
|
},
|
|
build$1(context) {
|
|
return this._effectiveDelegate$1(this);
|
|
},
|
|
$isLinkInfo: 1,
|
|
_effectiveDelegate$1(arg0) {
|
|
return this.get$_effectiveDelegate().call$1(arg0);
|
|
}
|
|
};
|
|
C.DefaultLinkDelegate.prototype = {
|
|
get$_useWebView() {
|
|
return false;
|
|
},
|
|
_followLink$1(context) {
|
|
return this._followLink$body$DefaultLinkDelegate(context);
|
|
},
|
|
_followLink$body$DefaultLinkDelegate(context) {
|
|
var $async$goto = 0,
|
|
$async$completer = A._makeAsyncAwaitCompleter(type$.void),
|
|
$async$returnValue, $async$self = this, url;
|
|
var $async$_followLink$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
|
|
if ($async$errorCode === 1)
|
|
return A._asyncRethrow($async$result, $async$completer);
|
|
while (true)
|
|
switch ($async$goto) {
|
|
case 0:
|
|
// Function start
|
|
url = $async$self.link.uri;
|
|
$async$goto = !url.get$hasScheme() ? 3 : 4;
|
|
break;
|
|
case 3:
|
|
// then
|
|
$async$goto = 5;
|
|
return A._asyncAwait(A.pushRouteNameToFramework(context, url.toString$0(0)), $async$_followLink$1);
|
|
case 5:
|
|
// returning from await.
|
|
// goto return
|
|
$async$goto = 1;
|
|
break;
|
|
case 4:
|
|
// join
|
|
$async$goto = 9;
|
|
return A._asyncAwait(A.canLaunchUrl(url), $async$_followLink$1);
|
|
case 9:
|
|
// returning from await.
|
|
$async$goto = $async$result ? 6 : 8;
|
|
break;
|
|
case 6:
|
|
// then
|
|
$async$goto = 10;
|
|
return A._asyncAwait(A.launchUrl(url, $async$self.get$_useWebView() ? B.LaunchMode_1 : B.LaunchMode_2, null), $async$_followLink$1);
|
|
case 10:
|
|
// returning from await.
|
|
// goto join
|
|
$async$goto = 7;
|
|
break;
|
|
case 8:
|
|
// else
|
|
A.FlutterError_reportError(new A.FlutterErrorDetails("Could not launch link " + url.toString$0(0), A.StackTrace_current(), "url_launcher", A.ErrorDescription$("during launching a link"), null, null, false));
|
|
case 7:
|
|
// join
|
|
case 1:
|
|
// return
|
|
return A._asyncReturn($async$returnValue, $async$completer);
|
|
}
|
|
});
|
|
return A._asyncStartSync($async$_followLink$1, $async$completer);
|
|
},
|
|
build$1(context) {
|
|
return this.link.builder.call$2(context, new C.DefaultLinkDelegate_build_closure(this, context));
|
|
}
|
|
};
|
|
var typesOffset = hunkHelpers.updateTypes(["bool(PortalLinkScope)", "AppGridDashboardItem(LinagoraApp)", "DefaultLinkDelegate(LinkInfo)"]);
|
|
C.LinkBrowserWidget_build_closure.prototype = {
|
|
call$2(context, $function) {
|
|
return this.$this.child;
|
|
},
|
|
$signature: 1787
|
|
};
|
|
C.AppGridDashboardIcon_build_closure.prototype = {
|
|
call$0() {
|
|
var t3, t4, t5, _null = null,
|
|
t1 = this.$this,
|
|
t2 = t1.appGridController,
|
|
isAppGridOpen = t2.isAppGridDashboardOverlayOpen.get$value(0);
|
|
t2 = A.GestureDetector$(B.HitTestBehavior_1, _null, B.DragStartBehavior_1, false, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, t2.get$toggleAppGridDashboard(), _null, _null, _null, _null, _null, _null, _null, false, B.Offset_7BT);
|
|
t3 = this.context;
|
|
t4 = type$._LocalizationsScope;
|
|
t5 = A.Bidi_isRtlLanguage(t3.dependOnInheritedWidgetOfExactType$1$0(t4).localizationsState._localizations$_locale.get$languageCode(0)) ? B.Alignment_m1_m1 : B.Alignment_1_m1;
|
|
t3 = A.Bidi_isRtlLanguage(t3.dependOnInheritedWidgetOfExactType$1$0(t4).localizationsState._localizations$_locale.get$languageCode(0)) ? B.Alignment_m1_1 : B.Alignment_1_1;
|
|
return A.PortalTarget$(B.C_Filled, A.PortalTarget$(new A.Aligned(_null, _null, t5, t3, B.Alignment_0_0, B.C_AxisFlag, B.C_AxisFlag, B.Offset_0_0, _null), A.TMailButtonWidget_TMailButtonWidget$fromIcon(B.Color_0, 20, _null, "assets/images/ic_app_dashboard.svg", _null, 30, _null, _null, 1 / 0, _null, t1.onShowAppDashboardAction, B.EdgeInsets_6_6_6_6, _null), new A.Obx(new C.AppGridDashboardIcon_build__closure(t1), _null), isAppGridOpen), t2, isAppGridOpen);
|
|
},
|
|
$signature: 374
|
|
};
|
|
C.AppGridDashboardIcon_build__closure.prototype = {
|
|
call$0() {
|
|
var listApps = this.$this.appGridController.linagoraApplications.get$value(0);
|
|
if ((listApps == null ? null : listApps.apps.length !== 0) === true) {
|
|
listApps.toString;
|
|
return new C.AppDashboardOverlay(listApps, null);
|
|
}
|
|
return B.SizedBox_0_0_null_null;
|
|
},
|
|
$signature: 3
|
|
};
|
|
C.AppGridDashboardItem_build_closure0.prototype = {
|
|
call$0() {
|
|
return A.AppUtils_launchLink(this.$this.app.appUri.toString$0(0));
|
|
},
|
|
$signature: 0
|
|
};
|
|
C.AppGridDashboardItem_build_closure.prototype = {
|
|
call$3(_, error, stackTrace) {
|
|
var _null = null;
|
|
return A.Container$(_null, _null, B.Clip_0, B.Color_4285887861, _null, _null, _null, 42, _null, _null, _null, _null, _null, 42);
|
|
},
|
|
$signature: 636
|
|
};
|
|
C.AppDashboardOverlay_build_closure0.prototype = {
|
|
call$0() {
|
|
var t1 = $.WidgetsBinding__instance.WidgetsBinding__buildOwner.focusManager._primaryFocus;
|
|
return t1 == null ? null : t1.unfocus$0();
|
|
},
|
|
$signature: 0
|
|
};
|
|
C.AppDashboardOverlay_build_closure.prototype = {
|
|
call$1(app) {
|
|
var t1;
|
|
$.$get$Get();
|
|
t1 = $.GetInstance__getInstance;
|
|
if (t1 == null)
|
|
t1 = $.GetInstance__getInstance = B.C_GetInstance;
|
|
return new C.AppGridDashboardItem(app, t1.find$1$1$tag(0, null, type$.ImagePaths), null);
|
|
},
|
|
$signature: typesOffset + 1
|
|
};
|
|
C.NavigationBarWidget_build_closure.prototype = {
|
|
call$2(context, constraint) {
|
|
var _null = null,
|
|
t1 = this.$this,
|
|
t2 = A._setArrayType([new A.SizedBox(constraint.maxWidth / 2, 52, t1.searchForm, _null), B.Spacer_null], type$.JSArray_Widget),
|
|
t3 = t1.contactSupportCapability;
|
|
if ((t3 == null ? _null : t3.get$isAvailable()) === true) {
|
|
A.Localizations_of(context, B.Type_AppLocalizations_CTL, type$.AppLocalizations).toString;
|
|
t2.push(A.TMailButtonWidget_TMailButtonWidget$fromIcon(B.Color_0, 20, _null, "assets/images/ic_help.svg", B.Color_4287405231, _null, _null, B.EdgeInsetsDirectional_0_0_8_0, 1 / 0, _null, new C.NavigationBarWidget_build__closure(t1), _null, A.Intl__message("Get help or report a bug", _null, "getHelpOrReportABug", _null, _null)));
|
|
}
|
|
if (C.AppConfig_appGridDashboardAvailable() && t1.appGridController != null) {
|
|
t3 = t1.appGridController;
|
|
t3.toString;
|
|
t2.push(new A.Padding(B.EdgeInsetsDirectional_0_0_16_0, new C.AppGridDashboardIcon(t1.imagePaths, t3, t1.onShowAppDashboardAction, _null), _null));
|
|
}
|
|
t3 = new A.AvatarBuilder();
|
|
t3._avatar_builder$_text = t1.avatarUserName;
|
|
t3._bgColor = B.Color_4294967295;
|
|
t3._textColor = B.Color_4278190080;
|
|
t3._avatar_builder$_context = context;
|
|
t3._avatar_builder$_size = 48;
|
|
t3._onTapAvatarActionWithPositionClick = t1.onTapAvatarAction;
|
|
t3._boxShadows = A._setArrayType([D.BoxShadow_NMc], type$.JSArray_BoxShadow);
|
|
t2.push(t3.build$0());
|
|
return A.Row$(t2, B.CrossAxisAlignment_2, _null, B.MainAxisAlignment_0, B.MainAxisSize_1, _null);
|
|
},
|
|
$signature: 373
|
|
};
|
|
C.NavigationBarWidget_build__closure.prototype = {
|
|
call$0() {
|
|
var t1 = this.$this,
|
|
t2 = t1.onTapContactSupportAction;
|
|
if (t2 == null)
|
|
t1 = null;
|
|
else {
|
|
t1 = t1.contactSupportCapability;
|
|
t1.toString;
|
|
t1 = t2.call$1(t1);
|
|
}
|
|
return t1;
|
|
},
|
|
$signature: 0
|
|
};
|
|
C.NavigationBarWidget_build_closure0.prototype = {
|
|
call$0() {
|
|
var t1 = this.$this,
|
|
t2 = t1.onTapContactSupportAction;
|
|
if (t2 == null)
|
|
t1 = null;
|
|
else {
|
|
t1 = t1.contactSupportCapability;
|
|
t1.toString;
|
|
t1 = t2.call$1(t1);
|
|
}
|
|
return t1;
|
|
},
|
|
$signature: 0
|
|
};
|
|
C.DefaultLinkDelegate_build_closure.prototype = {
|
|
call$0() {
|
|
return this.$this._followLink$1(this.context);
|
|
},
|
|
$signature: 6
|
|
};
|
|
(function installTearOffs() {
|
|
var _instance_1_u = hunkHelpers._instance_1u,
|
|
_static_1 = hunkHelpers._static_1;
|
|
_instance_1_u(C.PortalLinkScope.prototype, "get$linkEquals", "linkEquals$1", 0);
|
|
_static_1(C, "link_DefaultLinkDelegate_create$closure", "DefaultLinkDelegate_create", 2);
|
|
})();
|
|
(function inheritance() {
|
|
var _inherit = hunkHelpers.inherit,
|
|
_inheritMany = hunkHelpers.inheritMany;
|
|
_inherit(C._ElevatedButtonWithIcon, A.ElevatedButton);
|
|
_inheritMany(A.StatelessWidget, [C._ElevatedButtonWithIconChild, C.LinkBrowserWidget, C.MaterialTextButton, C.UserInformationWidget, C.AppGridDashboardIcon, C.AppGridDashboardItem, C.AppDashboardOverlay, C.NavigationBarWidget, C.VacationNotificationMessageWidget, C.Link, C.DefaultLinkDelegate]);
|
|
_inherit(C.Portal, A.StatefulWidget);
|
|
_inherit(C._PortalState, A.State0);
|
|
_inheritMany(A.Object, [C.PortalLink, C.PopupMenuWidgetMixin]);
|
|
_inherit(C.PortalLinkScope, A.InheritedWidget);
|
|
_inherit(C.PortalTheater, A.SingleChildRenderObjectWidget);
|
|
_inherit(C.RenderPortalTheater, A.RenderProxyBox);
|
|
_inheritMany(A.Closure2Args, [C.LinkBrowserWidget_build_closure, C.NavigationBarWidget_build_closure]);
|
|
_inheritMany(A.Closure0Args, [C.AppGridDashboardIcon_build_closure, C.AppGridDashboardIcon_build__closure, C.AppGridDashboardItem_build_closure0, C.AppDashboardOverlay_build_closure0, C.NavigationBarWidget_build__closure, C.NavigationBarWidget_build_closure0, C.DefaultLinkDelegate_build_closure]);
|
|
_inheritMany(A.Closure, [C.AppGridDashboardItem_build_closure, C.AppDashboardOverlay_build_closure]);
|
|
})();
|
|
A._Universe_addRules(init.typeUniverse, JSON.parse('{"_ElevatedButtonWithIcon":{"StatefulWidget":[],"Widget":[],"DiagnosticableTree":[]},"_ElevatedButtonWithIconChild":{"StatelessWidget":[],"Widget":[],"DiagnosticableTree":[]},"Portal":{"StatefulWidget":[],"Widget":[],"DiagnosticableTree":[]},"_PortalState":{"State0":["Portal"]},"PortalLinkScope":{"InheritedWidget":[],"ProxyWidget":[],"Widget":[],"DiagnosticableTree":[]},"PortalTheater":{"SingleChildRenderObjectWidget":[],"RenderObjectWidget":[],"Widget":[],"DiagnosticableTree":[]},"RenderPortalTheater":{"RenderBox":[],"RenderObjectWithChildMixin":["RenderBox"],"RenderObject":[],"DiagnosticableTree":[],"HitTestTarget":[]},"LinkBrowserWidget":{"StatelessWidget":[],"Widget":[],"DiagnosticableTree":[]},"MaterialTextButton":{"StatelessWidget":[],"Widget":[],"DiagnosticableTree":[]},"UserInformationWidget":{"StatelessWidget":[],"Widget":[],"DiagnosticableTree":[]},"AppGridDashboardIcon":{"StatelessWidget":[],"Widget":[],"DiagnosticableTree":[]},"AppGridDashboardItem":{"StatelessWidget":[],"Widget":[],"DiagnosticableTree":[]},"AppDashboardOverlay":{"StatelessWidget":[],"Widget":[],"DiagnosticableTree":[]},"NavigationBarWidget":{"StatelessWidget":[],"Widget":[],"DiagnosticableTree":[]},"VacationNotificationMessageWidget":{"StatelessWidget":[],"Widget":[],"DiagnosticableTree":[]},"DefaultLinkDelegate":{"StatelessWidget":[],"Widget":[],"DiagnosticableTree":[]},"Link":{"StatelessWidget":[],"Widget":[],"DiagnosticableTree":[],"LinkInfo":[]}}'));
|
|
var type$ = (function rtii() {
|
|
var findType = A.findType;
|
|
return {
|
|
AppLocalizations: findType("AppLocalizations"),
|
|
BoxConstraints: findType("BoxConstraints"),
|
|
ContainerLayer: findType("ContainerLayer0"),
|
|
ImagePaths: findType("ImagePaths"),
|
|
JSArray_BoxShadow: findType("JSArray<BoxShadow>"),
|
|
JSArray_Object: findType("JSArray<Object>"),
|
|
JSArray_Widget: findType("JSArray<Widget>"),
|
|
PortalLinkOverlay: findType("PortalLinkOverlay"),
|
|
ResponsiveUtils: findType("ResponsiveUtils"),
|
|
WidgetStatePropertyAll_EdgeInsetsGeometry: findType("WidgetStatePropertyAll<EdgeInsetsGeometry>"),
|
|
_LocalizationsScope: findType("_LocalizationsScope"),
|
|
void: findType("~")
|
|
};
|
|
})();
|
|
(function constants() {
|
|
D.Aligned_43h = new A.Aligned(1, null, B.Alignment_1_m1, B.Alignment_1_1, B.Alignment_0_0, B.C_AxisFlag, B.C_AxisFlag, B.Offset_0_0, null);
|
|
D.Aligned_wEo = new A.Aligned(1, null, B.Alignment_1_m1, B.Alignment_1_1, B.Alignment_0_0, B.C_AxisFlag, B.C_AxisFlag, B.Offset_0_0, D.Aligned_43h);
|
|
D.Color_4294914887 = new A.Color(4294914887);
|
|
D.Color_4294964674 = new A.Color(4294964674);
|
|
D.Offset_UrS1 = new A.Offset(0, 0.5);
|
|
D.BoxShadow_NMc = new A.BoxShadow(1, B.BlurStyle_0, B.Color_335544320, D.Offset_UrS1, 1);
|
|
D.Color_1555612108 = new A.Color(1555612108);
|
|
D.Color_4291217096 = new A.Color(4291217096);
|
|
D.Divider_0 = new A.Divider(1, null, null, null, D.Color_4291217096, null);
|
|
D.EdgeInsetsDirectional_0_10_0_0 = new A.EdgeInsetsDirectional(0, 10, 0, 0);
|
|
D.EdgeInsetsDirectional_0_24_0_24 = new A.EdgeInsetsDirectional(0, 24, 0, 24);
|
|
D.EdgeInsetsDirectional_0_8_0_8 = new A.EdgeInsetsDirectional(0, 8, 0, 8);
|
|
D.EdgeInsetsDirectional_10_14_10_14 = new A.EdgeInsetsDirectional(10, 14, 10, 14);
|
|
D.EdgeInsetsDirectional_12_0_16_0 = new A.EdgeInsetsDirectional(12, 0, 16, 0);
|
|
D.EdgeInsetsDirectional_12_8_12_0 = new A.EdgeInsetsDirectional(12, 8, 12, 0);
|
|
D.EdgeInsetsDirectional_16_0_0_0 = new A.EdgeInsetsDirectional(16, 0, 0, 0);
|
|
D.EdgeInsetsDirectional_16_16_0_16 = new A.EdgeInsetsDirectional(16, 16, 0, 16);
|
|
D.EdgeInsetsDirectional_16_16_4_16 = new A.EdgeInsetsDirectional(16, 16, 4, 16);
|
|
D.EdgeInsetsDirectional_30_0_30_0 = new A.EdgeInsetsDirectional(30, 0, 30, 0);
|
|
D.EdgeInsetsDirectional_4_0_6_0 = new A.EdgeInsetsDirectional(4, 0, 6, 0);
|
|
D.EdgeInsetsDirectional_8_0_12_0 = new A.EdgeInsetsDirectional(8, 0, 12, 0);
|
|
D.EdgeInsetsDirectional_8_0_4_0 = new A.EdgeInsetsDirectional(8, 0, 4, 0);
|
|
D.EdgeInsets_0_0_16_0 = new A.EdgeInsets(0, 0, 16, 0);
|
|
D.EdgeInsets_0_5_0_5 = new A.EdgeInsets(0, 5, 0, 5);
|
|
D.EdgeInsets_0_6_0_0 = new A.EdgeInsets(0, 6, 0, 0);
|
|
D.EdgeInsets_12_5_12_5 = new A.EdgeInsets(12, 5, 12, 5);
|
|
D.EdgeInsets_16_12_16_12 = new A.EdgeInsets(16, 12, 16, 12);
|
|
D.EdgeInsets_32_16_32_16 = new A.EdgeInsets(32, 16, 32, 16);
|
|
D.EdgeInsets_8_5_8_5 = new A.EdgeInsets(8, 5, 8, 5);
|
|
D.PageStorageKey_mailbox_list = new A.PageStorageKey("mailbox_list", A.findType("PageStorageKey<String>"));
|
|
D.SizedBox_16_null_null_null = new A.SizedBox(16, null, null, null);
|
|
D.SizedBox_24_null_null_null = new A.SizedBox(24, null, null, null);
|
|
D.TextStyle_69t9 = new A.TextStyle(true, B.Color_4278190080, null, null, null, null, 17, B.FontWeight_5_600, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null);
|
|
D.TextStyle_69t12 = new A.TextStyle(true, B.Color_4278190080, null, null, null, null, 20, B.FontWeight_4_500, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null);
|
|
D.TextStyle_e3y0 = new A.TextStyle(true, B.Color_4286680217, null, null, null, null, 16, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null);
|
|
})();
|
|
(function lazyInitializers() {
|
|
var _lazyFinal = hunkHelpers.lazyFinal;
|
|
_lazyFinal($, "AppGridDashboardStyle_cardShadow", "$get$AppGridDashboardStyle_cardShadow", () => A._setArrayType([A.BoxShadow$(20, B.BlurStyle_0, B.Color_4278190080.withOpacity$1(0.15), B.Offset_0_0, 0)], type$.JSArray_BoxShadow));
|
|
})();
|
|
};
|
|
;
|
|
((d, h) => {
|
|
d[h] = d.current;
|
|
d.eventLog.push({p: "main.dart.js_5", e: "endPart", h: h});
|
|
})($__dart_deferred_initializers__, "jg7hR5roKOowj8wHZztbnToZAII=");
|
|
; |