Files
tmail-flutter/3363/main.dart.js_5.part.js
T

1203 lines
65 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 J, A, B, E, F,
C = {
HtmlContentViewerOnWeb$(allowResizeToDocumentSize, contentHtml, direction, heightContent, mailtoDelegate, widthContent) {
return new C.HtmlContentViewerOnWeb(contentHtml, widthContent, heightContent, direction, mailtoDelegate, allowResizeToDocumentSize, null);
},
HtmlContentViewerOnWeb: function HtmlContentViewerOnWeb(t0, t1, t2, t3, t4, t5, t6) {
var _ = this;
_.contentHtml = t0;
_.widthContent = t1;
_.heightContent = t2;
_.direction = t3;
_.mailtoDelegate = t4;
_.allowResizeToDocumentSize = t5;
_.key = t6;
},
_HtmlContentViewerOnWebState: function _HtmlContentViewerOnWebState(t0) {
var _ = this;
_.___HtmlContentViewerOnWebState__actualWidth_A = _.___HtmlContentViewerOnWebState__actualHeight_A = _.___HtmlContentViewerOnWebState__createdViewId_A = $;
_._htmlData = _._webInit = null;
_._html_content_viewer_on_web_widget$_isLoading = true;
_.minHeight = 100;
_.___HtmlContentViewerOnWebState_sizeListener_F = $;
_._iframeLoaded = false;
_._widget = null;
_._debugLifecycleState = t0;
_._framework$_element = null;
},
_HtmlContentViewerOnWebState_initState_closure: function _HtmlContentViewerOnWebState_initState_closure(t0) {
this.$this = t0;
},
_HtmlContentViewerOnWebState_initState__closure: function _HtmlContentViewerOnWebState_initState__closure(t0, t1) {
this.$this = t0;
this.scrollHeightWithBuffer = t1;
},
_HtmlContentViewerOnWebState_initState__closure0: function _HtmlContentViewerOnWebState_initState__closure0(t0) {
this.$this = t0;
},
_HtmlContentViewerOnWebState_initState__closure1: function _HtmlContentViewerOnWebState_initState__closure1(t0, t1) {
this.$this = t0;
this.docWidth = t1;
},
_HtmlContentViewerOnWebState__setUpWeb_closure: function _HtmlContentViewerOnWebState__setUpWeb_closure(t0) {
this.iframe = t0;
},
_HtmlContentViewerOnWebState__setUpWeb_closure0: function _HtmlContentViewerOnWebState__setUpWeb_closure0(t0) {
this.$this = t0;
},
_HtmlContentViewerOnWebState_build_closure: function _HtmlContentViewerOnWebState_build_closure(t0) {
this.$this = t0;
},
_HtmlContentViewerOnWebState_build__closure: function _HtmlContentViewerOnWebState_build__closure(t0) {
this.$this = t0;
},
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;
},
SuggestionEmailAddress0: function SuggestionEmailAddress0(t0, t1) {
this.emailAddress = t0;
this.state = t1;
},
SuggestionEmailState0: function SuggestionEmailState0(t0, t1) {
this.index = t0;
this._core$_name = t1;
},
_SuggestionEmailAddress_Object_EquatableMixin0: function _SuggestionEmailAddress_Object_EquatableMixin0() {
},
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;
},
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;
J = holdersList[1];
A = holdersList[0];
B = holdersList[2];
E = holdersList[9];
F = holdersList[12];
C = hunkHelpers.updateHolder(holdersList[8], C);
D = holdersList[14];
C.HtmlContentViewerOnWeb.prototype = {
createState$0() {
return new C._HtmlContentViewerOnWebState(B._StateLifecycle_0);
}
};
C._HtmlContentViewerOnWebState.prototype = {
initState$0() {
var t1, _this = this;
_this.super$State$initState();
t1 = _this._widget;
_this.___HtmlContentViewerOnWebState__actualHeight_A = t1.heightContent;
_this.___HtmlContentViewerOnWebState__actualWidth_A = t1.widthContent;
_this.___HtmlContentViewerOnWebState__createdViewId_A = _this._getRandString$1(10);
_this._setUpWeb$0();
t1 = window;
t1.toString;
t1 = A._EventStreamSubscription$(t1, "message", new C._HtmlContentViewerOnWebState_initState_closure(_this), false, type$.MessageEvent);
_this.___HtmlContentViewerOnWebState_sizeListener_F !== $ && A.throwUnnamedLateFieldAI();
_this.___HtmlContentViewerOnWebState_sizeListener_F = t1;
},
didUpdateWidget$1(oldWidget) {
var t1, t2, _this = this;
_this.super$State$didUpdateWidget(oldWidget);
t1 = oldWidget.direction;
A.log("_HtmlContentViewerOnWebState::didUpdateWidget():Old-Direction: " + t1.toString$0(0) + " | Current-Direction: " + _this._widget.direction.toString$0(0), B.Level_3);
t2 = _this._widget;
if (t2.contentHtml !== oldWidget.contentHtml || t2.direction !== t1) {
_this.___HtmlContentViewerOnWebState__createdViewId_A = _this._getRandString$1(10);
_this._setUpWeb$0();
}
t1 = _this._widget;
t2 = t1.heightContent;
if (t2 !== oldWidget.heightContent)
_this.___HtmlContentViewerOnWebState__actualHeight_A = t2;
t1 = t1.widthContent;
if (t1 !== oldWidget.widthContent)
_this.___HtmlContentViewerOnWebState__actualWidth_A = t1;
},
_getRandString$1(len) {
var i,
random = $.$get$Random__secureRandom(),
values = J.JSArray_JSArray$allocateGrowable(len, type$.int);
for (i = 0; i < len; ++i)
values[i] = random.nextInt$1(255);
return B.Base64Codec_Base64Encoder_true.get$encoder().convert$1(values);
},
_setUpWeb$0() {
var t4, _this = this,
t1 = _this._widget,
t2 = t1.contentHtml,
t3 = _this.___HtmlContentViewerOnWebState__createdViewId_A;
t3 === $ && A.throwUnnamedLateFieldNI();
t4 = _this.minHeight;
t1 = t1.direction;
t1 = t1 === B.TextDirection_0 ? 'dir="rtl"' : "";
_this._htmlData = ' <!DOCTYPE html>\n <html>\n <head>\n <meta name="viewport" content="width=device-width, initial-scale=1.0">\n <meta http-equiv="Content-Type" content="text/html; charset=utf-8">\n <style>\n .tmail-content {\n min-height: ' + A.S(t4) + "px;\n min-width: 300px;\n overflow: auto;\n }\n .tmail-content::-webkit-scrollbar {\n display: none;\n }\n .tmail-content {\n -ms-overflow-style: none; /* IE and Edge */\n scrollbar-width: none; /* Firefox */\n }\n \n .tmail-tooltip .tooltiptext {\n visibility: hidden;\n max-width: 400px;\n background-color: black;\n color: #fff;\n text-align: center;\n border-radius: 6px;\n padding: 5px 8px 5px 8px;\n white-space: nowrap; \n overflow: hidden;\n text-overflow: ellipsis;\n position: absolute;\n z-index: 1;\n }\n .tmail-tooltip:hover .tooltiptext {\n visibility: visible;\n }\n \n </style>\n </head>\n <body " + t1 + ' style = "overflow-x: hidden">\n <div class="tmail-content">' + t2 + "</div>\n " + (" <script type=\"text/javascript\">\n window.parent.addEventListener('message', handleMessage, false);\n window.addEventListener('load', handleOnLoad);\n window.addEventListener('pagehide', (event) => {\n window.parent.removeEventListener('message', handleMessage, false);\n });\n \n function handleMessage(e) {\n if (e && e.data && e.data.includes(\"toIframe:\")) {\n var data = JSON.parse(e.data);\n if (data[\"view\"].includes(\"" + t3 + '")) {\n if (data["type"].includes("getHeight")) {\n var height = document.body.scrollHeight;\n window.parent.postMessage(JSON.stringify({"view": "' + t3 + '", "type": "toDart: htmlHeight", "height": height}), "*");\n }\n if (data["type"].includes("getWidth")) {\n var width = document.body.scrollWidth;\n window.parent.postMessage(JSON.stringify({"view": "' + t3 + '", "type": "toDart: htmlWidth", "width": width}), "*");\n }\n if (data["type"].includes("execCommand")) {\n if (data["argument"] === null) {\n document.execCommand(data["command"], false);\n } else {\n document.execCommand(data["command"], false, data["argument"]);\n }\n }\n }\n }\n }\n \n function handleOnClickEmailLink(e) {\n var href = this.href;\n window.parent.postMessage(JSON.stringify({"view": "' + t3 + '", "type": "toDart: OpenLink", "url": "" + href}), "*");\n e.preventDefault();\n }\n \n function handleOnLoad() {\n window.parent.postMessage(JSON.stringify({"view": "' + t3 + '", "message": "iframeHasBeenLoaded"}), "*");\n window.parent.postMessage(JSON.stringify({"view": "' + t3 + '", "type": "toIframe: getHeight"}), "*");\n window.parent.postMessage(JSON.stringify({"view": "' + t3 + "\", \"type\": \"toIframe: getWidth\"}), \"*\");\n \n var emailLinks = document.querySelectorAll('a[href^=\"mailto:\"]');\n for(var i=0; i < emailLinks.length; i++){\n emailLinks[i].addEventListener('click', handleOnClickEmailLink);\n }\n }\n </script>\n <script type=\"text/javascript\">\n document.addEventListener('wheel', function(e) {\n e.ctrlKey && e.preventDefault();\n }, {\n passive: false,\n });\n window.addEventListener('keydown', function(e) {\n if (event.metaKey || event.ctrlKey) {\n switch (event.key) {\n case '=':\n case '-':\n event.preventDefault();\n break;\n }\n }\n });\n </script>\n <script>\n const lazyImages = document.querySelectorAll('[lazy]');\n const lazyImageObserver = new IntersectionObserver((entries, observer) => {\n entries.forEach((entry) => {\n if (entry.isIntersecting) {\n const lazyImage = entry.target;\n const src = lazyImage.dataset.src;\n lazyImage.tagName.toLowerCase() === 'img'\n ? lazyImage.src = src\n : lazyImage.style.backgroundImage = \"url('\" + src + \"')\";\n lazyImage.removeAttribute('lazy');\n observer.unobserve(lazyImage);\n }\n });\n });\n \n lazyImages.forEach((lazyImage) => {\n lazyImageObserver.observe(lazyImage);\n });\n </script>\n ") + "\n </body>\n </html> \n ";
t1 = document.createElement("iframe");
t1.toString;
t2 = _this.___HtmlContentViewerOnWebState__actualWidth_A;
t2 === $ && A.throwUnnamedLateFieldNI();
t1.width = B.JSNumber_methods.toString$0(t2);
t2 = _this.___HtmlContentViewerOnWebState__actualHeight_A;
t2 === $ && A.throwUnnamedLateFieldNI();
t1.height = B.JSNumber_methods.toString$0(t2);
t2 = _this._htmlData;
t1.srcdoc = t2 == null ? "" : t2;
t2 = t1.style;
t2.border = "none";
t2 = t1.style;
t2.overflow = "hidden";
t2 = t1.style;
t2.width = "100%";
t2 = t1.style;
t2.height = "100%";
$.$get$platformViewRegistry();
t2 = _this.___HtmlContentViewerOnWebState__createdViewId_A;
$.$get$PlatformViewManager_instance().registerFactory$3$isVisible(t2, new C._HtmlContentViewerOnWebState__setUpWeb_closure(t1), true);
if (_this._framework$_element != null)
_this.setState$1(new C._HtmlContentViewerOnWebState__setUpWeb_closure0(_this));
},
build$1(context) {
return new A.LayoutBuilder(new C._HtmlContentViewerOnWebState_build_closure(this), null);
},
dispose$0() {
this._htmlData = null;
var t1 = this.___HtmlContentViewerOnWebState_sizeListener_F;
t1 === $ && A.throwUnnamedLateFieldNI();
t1.cancel$0(0);
this.super$State$dispose();
}
};
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_empty);
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_empty);
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.SuggestionEmailAddress0.prototype = {
get$props() {
return [this.emailAddress, this.state];
}
};
C.SuggestionEmailState0.prototype = {
_enumToString$0() {
return "SuggestionEmailState." + this._core$_name;
}
};
C._SuggestionEmailAddress_Object_EquatableMixin0.prototype = {};
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_69t13)], 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_ww89, 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 (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_yT31, 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_yT31, 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_yT31, 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_yT31, 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._HtmlContentViewerOnWebState_initState_closure.prototype = {
call$1($event) {
var docHeight, scrollHeightWithBuffer, docWidth, link, _s4_ = "type",
data = B.C_JsonCodec.decode$1(0, new A._AcceptStructuredCloneDart2Js([], []).convertNativeToDart_AcceptStructuredClone$2$mustCopy($event.data, true)),
t1 = J.getInterceptor$asx(data),
t2 = t1.$index(data, "view"),
t3 = this.$this,
t4 = t3.___HtmlContentViewerOnWebState__createdViewId_A;
t4 === $ && A.throwUnnamedLateFieldNI();
if (!J.$eq$(t2, t4))
return;
if (J.$eq$(t1.$index(data, "message"), "iframeHasBeenLoaded"))
t3._iframeLoaded = true;
if (!t3._iframeLoaded)
return;
if (t1.$index(data, _s4_) != null && J.contains$1$asx(t1.$index(data, _s4_), "toDart: htmlHeight")) {
docHeight = t1.$index(data, "height");
if (docHeight == null) {
t2 = t3.___HtmlContentViewerOnWebState__actualHeight_A;
t2 === $ && A.throwUnnamedLateFieldNI();
docHeight = t2;
}
t2 = t3._framework$_element;
if (t2 != null) {
scrollHeightWithBuffer = J.$add$ansx(docHeight, 30);
if (J.$gt$n(scrollHeightWithBuffer, t3.minHeight))
t3.setState$1(new C._HtmlContentViewerOnWebState_initState__closure(t3, scrollHeightWithBuffer));
}
if (t3._framework$_element != null && t3._html_content_viewer_on_web_widget$_isLoading)
t3.setState$1(new C._HtmlContentViewerOnWebState_initState__closure0(t3));
}
if (t1.$index(data, _s4_) != null && J.contains$1$asx(t1.$index(data, _s4_), "toDart: htmlWidth")) {
docWidth = t1.$index(data, "width");
if (docWidth == null) {
t2 = t3.___HtmlContentViewerOnWebState__actualWidth_A;
t2 === $ && A.throwUnnamedLateFieldNI();
docWidth = t2;
}
t2 = t3._framework$_element;
if (t2 != null)
if (J.$gt$n(docWidth, 300) && t3._widget.allowResizeToDocumentSize)
t3.setState$1(new C._HtmlContentViewerOnWebState_initState__closure1(t3, docWidth));
}
if (t1.$index(data, _s4_) != null && J.contains$1$asx(t1.$index(data, _s4_), "toDart: OpenLink")) {
link = t1.$index(data, "url");
if (link != null && t3._framework$_element != null) {
A._asString(link);
if (B.JSString_methods.startsWith$1(link, "mailto:")) {
t1 = t3._widget.mailtoDelegate;
if (t1 != null)
t1.call$1(A.Uri_parse(link, 0, null));
}
}
}
},
$signature: 141
};
C._HtmlContentViewerOnWebState_initState__closure.prototype = {
call$0() {
var t1 = this.$this;
t1.___HtmlContentViewerOnWebState__actualHeight_A = this.scrollHeightWithBuffer;
t1._html_content_viewer_on_web_widget$_isLoading = false;
},
$signature: 0
};
C._HtmlContentViewerOnWebState_initState__closure0.prototype = {
call$0() {
this.$this._html_content_viewer_on_web_widget$_isLoading = false;
},
$signature: 0
};
C._HtmlContentViewerOnWebState_initState__closure1.prototype = {
call$0() {
this.$this.___HtmlContentViewerOnWebState__actualWidth_A = this.docWidth;
},
$signature: 0
};
C._HtmlContentViewerOnWebState__setUpWeb_closure.prototype = {
call$1(viewId) {
return this.iframe;
},
$signature: 388
};
C._HtmlContentViewerOnWebState__setUpWeb_closure0.prototype = {
call$0() {
this.$this._webInit = A.Future_Future$value(true, type$.bool);
},
$signature: 0
};
C._HtmlContentViewerOnWebState_build_closure.prototype = {
call$2(context, constraint) {
var t2, t3,
t1 = this.$this;
t1.minHeight = Math.max(constraint.maxHeight, t1.minHeight);
t2 = A._setArrayType([], type$.JSArray_Widget);
t3 = t1._htmlData;
if ((t3 == null ? null : t3.length !== 0) === false)
t2.push(B.SizedBox_0_0_null_null);
else
t2.push(A.FutureBuilder$(new C._HtmlContentViewerOnWebState_build__closure(t1), t1._webInit, type$.bool));
if (t1._html_content_viewer_on_web_widget$_isLoading)
t2.push(D.Align_ChN);
return new A.Stack(B.AlignmentDirectional_m1_m1, null, B.StackFit_0, B.Clip_1, t2, null);
},
$signature: 132
};
C._HtmlContentViewerOnWebState_build__closure.prototype = {
call$2(context, snapshot) {
var t1, t2, t3, t4;
if (snapshot.data != null) {
t1 = this.$this;
t2 = t1.___HtmlContentViewerOnWebState__actualHeight_A;
t2 === $ && A.throwUnnamedLateFieldNI();
t3 = t1.___HtmlContentViewerOnWebState__actualWidth_A;
t3 === $ && A.throwUnnamedLateFieldNI();
t4 = t1._htmlData;
t1 = t1.___HtmlContentViewerOnWebState__createdViewId_A;
t1 === $ && A.throwUnnamedLateFieldNI();
return new A.SizedBox(t3, t2, new A.HtmlElementView(t1, null, null, new A.ValueKey(t4, type$.ValueKey_nullable_String)), null);
} else
return B.SizedBox_0_0_null_null;
},
$signature: 1749
};
C.LinkBrowserWidget_build_closure.prototype = {
call$2(context, $function) {
return this.$this.child;
},
$signature: 1750
};
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 : D.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: 270
};
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: 601
};
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 t3, _null = null,
t1 = this.$this,
t2 = A._setArrayType([new A.SizedBox(constraint.maxWidth / 2, 52, t1.searchForm, _null), B.Spacer_null], type$.JSArray_Widget);
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: 265
};
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 _mixin = hunkHelpers.mixin,
_inheritMany = hunkHelpers.inheritMany,
_inherit = hunkHelpers.inherit;
_inheritMany(A.StatefulWidget, [C.HtmlContentViewerOnWeb, C.Portal]);
_inheritMany(A.State0, [C._HtmlContentViewerOnWebState, C._PortalState]);
_inheritMany(A.Closure, [C._HtmlContentViewerOnWebState_initState_closure, C._HtmlContentViewerOnWebState__setUpWeb_closure, C.AppGridDashboardItem_build_closure, C.AppDashboardOverlay_build_closure]);
_inheritMany(A.Closure0Args, [C._HtmlContentViewerOnWebState_initState__closure, C._HtmlContentViewerOnWebState_initState__closure0, C._HtmlContentViewerOnWebState_initState__closure1, C._HtmlContentViewerOnWebState__setUpWeb_closure0, C.AppGridDashboardIcon_build_closure, C.AppGridDashboardIcon_build__closure, C.AppGridDashboardItem_build_closure0, C.AppDashboardOverlay_build_closure0, C.DefaultLinkDelegate_build_closure]);
_inheritMany(A.Closure2Args, [C._HtmlContentViewerOnWebState_build_closure, C._HtmlContentViewerOnWebState_build__closure, C.LinkBrowserWidget_build_closure, C.NavigationBarWidget_build_closure]);
_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]);
_inheritMany(A.Object, [C.PortalLink, C.PopupMenuWidgetMixin, C._SuggestionEmailAddress_Object_EquatableMixin0]);
_inherit(C.PortalLinkScope, A.InheritedWidget);
_inherit(C.PortalTheater, A.SingleChildRenderObjectWidget);
_inherit(C.RenderPortalTheater, A.RenderProxyBox);
_inherit(C.SuggestionEmailAddress0, C._SuggestionEmailAddress_Object_EquatableMixin0);
_inherit(C.SuggestionEmailState0, A._Enum);
_mixin(C._SuggestionEmailAddress_Object_EquatableMixin0, A.EquatableMixin);
})();
A._Universe_addRules(init.typeUniverse, JSON.parse('{"HtmlContentViewerOnWeb":{"StatefulWidget":[],"Widget":[],"DiagnosticableTree":[]},"_HtmlContentViewerOnWebState":{"State0":["HtmlContentViewerOnWeb"]},"_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":[]},"SuggestionEmailAddress0":{"EquatableMixin":[]},"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>"),
MessageEvent: findType("MessageEvent"),
PortalLinkOverlay: findType("PortalLinkOverlay"),
ResponsiveUtils: findType("ResponsiveUtils"),
ValueKey_nullable_String: findType("ValueKey<String?>"),
WidgetStatePropertyAll_EdgeInsetsGeometry: findType("WidgetStatePropertyAll<EdgeInsetsGeometry>"),
_LocalizationsScope: findType("_LocalizationsScope"),
bool: findType("bool"),
int: findType("int"),
void: findType("~")
};
})();
(function constants() {
D.SizedBox_qzd0 = new A.SizedBox(30, 30, B.CupertinoActivityIndicator_Rjd, null);
D.Padding_J28 = new A.Padding(B.EdgeInsets_16_16_16_16, D.SizedBox_qzd0, null);
D.Align_ChN = new A.Align(B.Alignment_0_m1, null, null, D.Padding_J28, null);
D.Alignment_1_1 = new A.Alignment(1, 1);
D.Aligned_43h = new A.Aligned(1, null, B.Alignment_1_m1, D.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, D.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_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.SuggestionEmailState_00 = new C.SuggestionEmailState0(0, "valid");
D.SuggestionEmailState_10 = new C.SuggestionEmailState0(1, "duplicated");
D.TextStyle_69t13 = 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_69t15 = 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__, "IqE3Gi8np1Iy+yJMOJby1J+9YIY=");
;