mirror of
https://github.com/linagora/tmail-flutter.git
synced 2026-12-06 16:04:20 +00:00
983 lines
55 KiB
JavaScript
983 lines
55 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_4", e: "beginPart"});
|
|
})(self, "$__dart_deferred_initializers__", "eventLog");
|
|
$__dart_deferred_initializers__.current = function(hunkHelpers, init, holdersList, $) {
|
|
var J, A, C, E,
|
|
B = {
|
|
HtmlContentViewerOnWeb$(allowResizeToDocumentSize, contentHtml, direction, heightContent, mailtoDelegate, widthContent) {
|
|
return new B.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;
|
|
},
|
|
PopupMenuItemWidget$(icon, $name, onTapCallback) {
|
|
return new B.PopupMenuItemWidget(onTapCallback, icon, $name, null);
|
|
},
|
|
PopupMenuItemWidget: function PopupMenuItemWidget(t0, t1, t2, t3) {
|
|
var _ = this;
|
|
_.onTapCallback = t0;
|
|
_.icon = t1;
|
|
_.name = t2;
|
|
_.key = t3;
|
|
},
|
|
PopupMenuItemWidget_build_closure: function PopupMenuItemWidget_build_closure(t0) {
|
|
this.$this = t0;
|
|
},
|
|
ElevatedButton_ElevatedButton$icon(icon, label, onPressed, style) {
|
|
var _null = null;
|
|
return new B._ElevatedButtonWithIcon(onPressed, _null, _null, _null, style, C.Clip_0, _null, false, _null, true, new B._ElevatedButtonWithIconChild(label, icon, style, C.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;
|
|
},
|
|
PopupMenuDivider: function PopupMenuDivider(t0) {
|
|
this.key = t0;
|
|
},
|
|
_PopupMenuDividerState: function _PopupMenuDividerState(t0) {
|
|
this._widget = null;
|
|
this._debugLifecycleState = t0;
|
|
this._framework$_element = null;
|
|
},
|
|
Portal$(child) {
|
|
return new B.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() {
|
|
},
|
|
ApplicationVersionWidget$(applicationManager) {
|
|
return new B.ApplicationVersionWidget(applicationManager, null);
|
|
},
|
|
ApplicationVersionWidget: function ApplicationVersionWidget(t0, t1) {
|
|
this.applicationManager = t0;
|
|
this.key = t1;
|
|
},
|
|
_ApplicationVersionWidgetState: function _ApplicationVersionWidgetState(t0) {
|
|
var _ = this;
|
|
_._widget = _._versionStream = null;
|
|
_._debugLifecycleState = t0;
|
|
_._framework$_element = null;
|
|
},
|
|
_ApplicationVersionWidgetState_build_closure: function _ApplicationVersionWidgetState_build_closure(t0) {
|
|
this.$this = t0;
|
|
},
|
|
MaterialTextButton$(borderRadius, customStyle, label, labelColor, labelSize, labelWeight, onLongPress, onTap, overflow, padding, softWrap) {
|
|
return new B.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 B.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;
|
|
},
|
|
UserSettingPopupMenuMixin: function UserSettingPopupMenuMixin() {
|
|
},
|
|
UserSettingPopupMenuMixin__settingAction_closure: function UserSettingPopupMenuMixin__settingAction_closure(t0) {
|
|
this.onCallBack = t0;
|
|
},
|
|
UserSettingPopupMenuMixin__logoutAction_closure: function UserSettingPopupMenuMixin__logoutAction_closure(t0) {
|
|
this.onCallBack = t0;
|
|
},
|
|
VacationNotificationMessageWidget$(actionEndNow, actionGotoVacationSetting, fromAccountDashBoard, leadingIcon, margin, padding, vacationResponse) {
|
|
return new B.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;
|
|
},
|
|
buildSVGIconButton(icon, iconColor, iconSize, onTap, onTapDown, padding, tooltip) {
|
|
var _null = null,
|
|
t1 = padding == null ? C.EdgeInsets_8_8_8_8 : padding,
|
|
t2 = A.ColorNullableExtension_asFilter(iconColor),
|
|
iconWidget = new A.Padding(t1, A.SvgPicture$asset(icon, C.Alignment_0_0, t2, C.BoxFit_0, iconSize, _null, _null, iconSize), _null);
|
|
return A.Material$(C.Duration_200000, true, _null, A.InkWell$(false, _null, true, tooltip != null ? A.Tooltip$(iconWidget, tooltip) : iconWidget, C.CircleBorder_0, true, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, onTap, _null, onTapDown, _null, _null, _null, _null, _null), C.Clip_0, C.Color_0, 0, _null, _null, _null, _null, _null, C.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 (B.VacationResponseExtension_get_vacationResponderIsReady(_this) && !B.VacationResponseExtension_get_vacationResponderIsStopped(_this)) {
|
|
A.Localizations_of(context, C.Type_AppLocalizations_CTL, type$.AppLocalizations).toString;
|
|
return A.Intl__message("Your vacation responder is enabled.", _null, "yourVacationResponderIsEnabled", _null, _null);
|
|
} else if (B.VacationResponseExtension_get_vacationResponderIsWaiting(_this)) {
|
|
A.Localizations_of(context, C.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 (B.VacationResponseExtension_get_vacationResponderIsStopped(_this)) {
|
|
A.Localizations_of(context, C.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 "";
|
|
}
|
|
},
|
|
D;
|
|
J = holdersList[1];
|
|
A = holdersList[0];
|
|
C = holdersList[2];
|
|
E = holdersList[11];
|
|
B = hunkHelpers.updateHolder(holdersList[8], B);
|
|
D = holdersList[13];
|
|
B.HtmlContentViewerOnWeb.prototype = {
|
|
createState$0() {
|
|
return new B._HtmlContentViewerOnWebState(C._StateLifecycle_0);
|
|
}
|
|
};
|
|
B._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 B._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), C.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 C.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 === C.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('click', handleOnClickLink, true);\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 handleOnClickLink(e) {\n let link = e.target;\n let textContent = e.target.textContent;\n if (link && isValidMailtoLink(link)) {\n window.parent.postMessage(JSON.stringify({"view": "' + t3 + '", "type": "toDart: OpenLink", "url": "" + link}), "*");\n e.preventDefault();\n } else if (textContent && isValidMailtoLink(textContent)) {\n window.parent.postMessage(JSON.stringify({"view": "' + t3 + '", "type": "toDart: OpenLink", "url": "" + textContent}), "*");\n e.preventDefault();\n }\n }\n \n function isValidMailtoLink(string) {\n let url;\n \n try {\n url = new URL(string);\n } catch (_) {\n return false; \n }\n \n return url.protocol === "mailto:";\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 </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 = C.JSNumber_methods.toString$0(t2);
|
|
t2 = _this.___HtmlContentViewerOnWebState__actualHeight_A;
|
|
t2 === $ && A.throwUnnamedLateFieldNI();
|
|
t1.height = C.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 B._HtmlContentViewerOnWebState__setUpWeb_closure(t1), true);
|
|
if (_this._framework$_element != null)
|
|
_this.setState$1(new B._HtmlContentViewerOnWebState__setUpWeb_closure0(_this));
|
|
},
|
|
build$1(context) {
|
|
return new A.LayoutBuilder(new B._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();
|
|
}
|
|
};
|
|
B.PopupMenuItemWidget.prototype = {
|
|
build$1(context) {
|
|
var _null = null,
|
|
t1 = A._setArrayType([A.SvgPicture$asset(this.icon, C.Alignment_0_0, A.ColorNullableExtension_asFilter(_null), C.BoxFit_0, 20, _null, _null, 20), C.SizedBox_12_null_null_null, A.Expanded$(A.Text$(this.name, _null, _null, _null, _null, _null, _null, _null, _null, D.TextStyle_69t11, _null, _null, _null, _null, _null), 1)], type$.JSArray_Widget);
|
|
return A.InkWell$(false, _null, true, new A.Padding(D.EdgeInsets_20_16_20_16, new A.SizedBox(_null, _null, A.Row$(t1, C.CrossAxisAlignment_2, _null, C.MainAxisAlignment_0, C.MainAxisSize_1, _null), _null), _null), _null, true, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, new B.PopupMenuItemWidget_build_closure(this), _null, _null, _null, _null, _null, _null, _null);
|
|
}
|
|
};
|
|
B._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(C.Set_empty0);
|
|
t1 = t1 == null ? null : t1.fontSize;
|
|
defaultFontSize = t1;
|
|
}
|
|
if (defaultFontSize == null)
|
|
defaultFontSize = 14;
|
|
t1 = A.MediaQuery__maybeOf(context, C._MediaQueryAspect_4);
|
|
t1 = t1 == null ? null : t1.get$textScaler();
|
|
scaledPadding = A.ButtonStyleButton_scaledPadding(C.EdgeInsetsDirectional_16_0_24_0, D.EdgeInsetsDirectional_8_0_12_0, D.EdgeInsetsDirectional_4_0_6_0, (t1 == null ? C._LinearTextScaler_1 : t1).scale$1(0, defaultFontSize) / 14);
|
|
return buttonStyle.copyWith$1$padding(new A.WidgetStatePropertyAll(scaledPadding, type$.WidgetStatePropertyAll_EdgeInsetsGeometry));
|
|
}
|
|
};
|
|
B._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(C.Set_empty0);
|
|
t1 = t1 == null ? _null : t1.fontSize;
|
|
}
|
|
defaultFontSize = t1;
|
|
if (defaultFontSize == null)
|
|
defaultFontSize = 14;
|
|
t1 = A.MediaQuery__maybeOf(context, C._MediaQueryAspect_4);
|
|
t1 = t1 == null ? _null : t1.get$textScaler();
|
|
t1 = A.lerpDouble(8, 4, A.clampDouble((t1 == null ? C._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 === C.IconAlignment_0 ? A._setArrayType([t3, new A.SizedBox(t1, _null, _null, _null), new A.Flexible(1, C.FlexFit_1, t4, _null)], t2) : A._setArrayType([new A.Flexible(1, C.FlexFit_1, t4, _null), new A.SizedBox(t1, _null, _null, _null), t3], t2), C.CrossAxisAlignment_2, _null, C.MainAxisAlignment_0, C.MainAxisSize_0, _null);
|
|
}
|
|
};
|
|
B.PopupMenuDivider.prototype = {
|
|
createState$0() {
|
|
return new B._PopupMenuDividerState(C._StateLifecycle_0);
|
|
}
|
|
};
|
|
B._PopupMenuDividerState.prototype = {
|
|
build$1(context) {
|
|
this._widget.toString;
|
|
return A.Divider$(null, null, 0.5, null);
|
|
}
|
|
};
|
|
B.Portal.prototype = {
|
|
createState$0() {
|
|
return new B._PortalState(new B.PortalLink(A.LinkedHashSet_LinkedHashSet$_empty(type$.PortalLinkOverlay)), C._StateLifecycle_0);
|
|
}
|
|
};
|
|
B._PortalState.prototype = {
|
|
build$1(context) {
|
|
var _null = null,
|
|
t1 = this._portal$_portalLink;
|
|
return new B.PortalLinkScope(_null, t1, C.List__PortalMainLabel, new B.PortalTheater(_null, t1, this._widget.child, _null), _null);
|
|
}
|
|
};
|
|
B.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);
|
|
}
|
|
};
|
|
B.PortalLinkScope.prototype = {
|
|
updateShouldNotify$1(oldWidget) {
|
|
return oldWidget.portalLink !== this.portalLink || !A.listEquals0(oldWidget.portalLabels, this.portalLabels);
|
|
},
|
|
linkEquals$1(other) {
|
|
return this.portalLink === other.portalLink;
|
|
}
|
|
};
|
|
B.PortalTheater.prototype = {
|
|
createRenderObject$1(context) {
|
|
var t1 = new B.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;
|
|
}
|
|
}
|
|
};
|
|
B.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);
|
|
}
|
|
};
|
|
B.PopupMenuWidgetMixin.prototype = {
|
|
popupItem$5$colorIcon$onCallbackAction$styleName(iconAction, nameAction, colorIcon, onCallbackAction, styleName) {
|
|
var _null = null,
|
|
t1 = A.SvgPicture$asset(iconAction, C.Alignment_0_0, A.ColorNullableExtension_asFilter(colorIcon), C.BoxFit_0, 20, _null, _null, 20);
|
|
return A.InkWell$(false, _null, true, new A.Padding(D.EdgeInsets_20_16_20_16, new A.SizedBox(_null, _null, A.Row$(A._setArrayType([t1, C.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), C.CrossAxisAlignment_2, _null, C.MainAxisAlignment_0, C.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);
|
|
}
|
|
};
|
|
B.ApplicationVersionWidget.prototype = {
|
|
createState$0() {
|
|
return new B._ApplicationVersionWidgetState(C._StateLifecycle_0);
|
|
}
|
|
};
|
|
B._ApplicationVersionWidgetState.prototype = {
|
|
initState$0() {
|
|
this.super$State$initState();
|
|
this._versionStream = this._widget.applicationManager.getVersion$0();
|
|
},
|
|
build$1(context) {
|
|
return A.FutureBuilder$(new B._ApplicationVersionWidgetState_build_closure(this), this._versionStream, type$.String);
|
|
},
|
|
dispose$0() {
|
|
this._versionStream = null;
|
|
this.super$State$dispose();
|
|
}
|
|
};
|
|
B.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 = C.Color_4278221567;
|
|
t3 = _this.labelWeight;
|
|
if (t3 == null)
|
|
t3 = C.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$(C.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, C.BorderSide_Q1M), true, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _this.onLongPress, _this.onTap, _null, _null, _null, _null, _null, _null, _null), C.Clip_0, C.Color_0, 0, _null, _null, _null, _null, _null, C.MaterialType_0);
|
|
}
|
|
};
|
|
B.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 : B.UsernameExtension_get_firstCharacter(t3);
|
|
t2._avatar_builder$_text = t5 == null ? "" : t5;
|
|
t2._bgColor = C.Color_4294967295;
|
|
t2._textColor = C.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_69t7)], t4);
|
|
if (_this.subtitle != null) {
|
|
t5 = A.Matrix4_Matrix4$translationValues(-8, 0, 0);
|
|
A.Localizations_of(context, C.Type_AppLocalizations_CTL, type$.AppLocalizations).toString;
|
|
t3.push(new A.Padding(D.EdgeInsetsDirectional_0_10_0_0, A.Transform$(_null, B.MaterialTextButton$(20, E.TextStyle_OkG0, A.Intl__message("Manage account", _null, "manage_account", _null, _null), _null, 15, _null, _null, _this.onSubtitleClick, _null, C.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, C.CrossAxisAlignment_0, C.MainAxisAlignment_0, C.MainAxisSize_1, C.VerticalDirection_1), 1), D.SizedBox_16_null_null_null], t4), C.CrossAxisAlignment_2, _null, C.MainAxisAlignment_0, C.MainAxisSize_1, _null), C.Clip_0, _null, _null, new A.BoxDecoration(_null, _null, _this.border, _null, _null, _null, _null, C.BoxShape_0), _null, _null, _null, _null, t1, _null, _null, _null);
|
|
}
|
|
};
|
|
B.UserSettingPopupMenuMixin.prototype = {
|
|
popupMenuUserSettingActionTile$4$onLogoutAction$onSettingAction(context, userName, onLogoutAction, onSettingAction) {
|
|
var _null = null,
|
|
t1 = type$.JSArray_PopupMenuEntry_dynamic,
|
|
t2 = A._setArrayType([], t1);
|
|
if (userName != null)
|
|
t2.push(A.PopupMenuItem$(new A.SizedBox(300, _null, A.ListTile$(C.EdgeInsets_20_0_20_0, _null, _null, _null, A.SelectableText$(userName.value, 1, C.TextStyle_8aB3), _null), _null), false, 48, _null, C.EdgeInsets_0_0_0_0, _null, type$.dynamic));
|
|
if (onSettingAction != null)
|
|
C.JSArray_methods.addAll$1(t2, A._setArrayType([D.PopupMenuDivider_null, A.PopupMenuItem$(this._settingAction$2(context, onSettingAction), true, 48, _null, C.EdgeInsets_0_0_0_0, _null, type$.dynamic), D.PopupMenuDivider_null], t1));
|
|
C.JSArray_methods.addAll$1(t2, A._setArrayType([D.PopupMenuDivider_null, A.PopupMenuItem$(this._logoutAction$2(context, onLogoutAction), true, 48, _null, C.EdgeInsets_0_0_0_0, _null, type$.dynamic)], t1));
|
|
return t2;
|
|
},
|
|
popupMenuUserSettingActionTile$3$onLogoutAction(context, userName, onLogoutAction) {
|
|
return this.popupMenuUserSettingActionTile$4$onLogoutAction$onSettingAction(context, userName, onLogoutAction, null);
|
|
},
|
|
_settingAction$2(context, onCallBack) {
|
|
A.Localizations_of(context, C.Type_AppLocalizations_CTL, type$.AppLocalizations).toString;
|
|
return B.PopupMenuItemWidget$("assets/images/ic_setting.svg", A.Intl__message("Manage account", null, "manage_account", null, null), new B.UserSettingPopupMenuMixin__settingAction_closure(onCallBack));
|
|
},
|
|
_logoutAction$2(context, onCallBack) {
|
|
A.Localizations_of(context, C.Type_AppLocalizations_CTL, type$.AppLocalizations).toString;
|
|
return B.PopupMenuItemWidget$("assets/images/ic_logout.svg", A.Intl__message("Sign out", null, "sign_out", null, null), new B.UserSettingPopupMenuMixin__logoutAction_closure(onCallBack));
|
|
}
|
|
};
|
|
B.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 = C.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), C.Clip_0, _null, _null, new A.BoxDecoration(D.Color_4294964674, _null, _null, t2, _null, _null, _null, C.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 = B.VacationResponseExtension_getNotificationMessage(t2, context);
|
|
t2 = B.VacationResponseExtension_getNotificationMessage(t2, context);
|
|
t1.push(A.Expanded$(A.Tooltip$(A.Text$(t2, _null, _null, 1, C.TextOverflow_2, _null, _null, _null, _null, A.TextStyle$(_null, _null, C.Color_4278190080, _null, _null, _null, _null, _null, _null, _null, _null, 16, _null, _null, C.FontWeight_3_400, _null, _null, true, _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, C.Type_AppLocalizations_CTL, t3).toString;
|
|
t4 = A.Intl__message("End now", _null, "endNow", _null, _null);
|
|
A.Localizations_of(context, C.Type_AppLocalizations_CTL, t3).toString;
|
|
t1.push(A.TMailButtonWidget_TMailButtonWidget$fromText(C.Color_0, 10, _null, _null, 1, 180, _null, t2, D.EdgeInsets_8_5_8_5, t4, _null, C.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, C.Type_AppLocalizations_CTL, t3).toString;
|
|
t4 = A.Intl__message(_s16_, _null, _s15_, _null, _null);
|
|
A.Localizations_of(context, C.Type_AppLocalizations_CTL, t3).toString;
|
|
t1.push(A.TMailButtonWidget_TMailButtonWidget$fromText(C.Color_0, 10, _null, _null, 1, 310, _null, t2, D.EdgeInsets_8_5_8_5, t4, _null, C.TextStyle_yT32, A.Intl__message(_s16_, _null, _s15_, _null, _null), _null));
|
|
}
|
|
return A.Row$(t1, C.CrossAxisAlignment_2, _null, C.MainAxisAlignment_0, C.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 = B.VacationResponseExtension_getNotificationMessage(t3, context);
|
|
t3 = B.VacationResponseExtension_getNotificationMessage(t3, context);
|
|
t2.push(A.Tooltip$(A.Text$(t3, _null, _null, 1, C.TextOverflow_2, _null, _null, _null, _null, A.TextStyle$(_null, _null, C.Color_4278190080, _null, _null, _null, _null, _null, _null, _null, _null, 16, _null, _null, C.FontWeight_3_400, _null, _null, true, _null, _null, _null, _null, _null, _null, _null, _null), C.TextAlign_2, _null, _null, _null, _null), t4));
|
|
t1 = A._setArrayType([], t1);
|
|
t3 = _this.actionEndNow;
|
|
if (t3 != null) {
|
|
t4 = type$.AppLocalizations;
|
|
A.Localizations_of(context, C.Type_AppLocalizations_CTL, t4).toString;
|
|
t5 = A.Intl__message("End now", _null, "endNow", _null, _null);
|
|
A.Localizations_of(context, C.Type_AppLocalizations_CTL, t4).toString;
|
|
t1.push(new A.Flexible(1, C.FlexFit_1, A.TMailButtonWidget_TMailButtonWidget$fromText(C.Color_0, 10, _null, _null, 1, 180, _null, t3, D.EdgeInsets_8_5_8_5, t5, _null, C.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, C.Type_AppLocalizations_CTL, t4).toString;
|
|
t5 = A.Intl__message(_s16_, _null, _s15_, _null, _null);
|
|
A.Localizations_of(context, C.Type_AppLocalizations_CTL, t4).toString;
|
|
t1.push(new A.Flexible(1, C.FlexFit_1, A.TMailButtonWidget_TMailButtonWidget$fromText(C.Color_0, 10, _null, _null, 1, 180, _null, t3, D.EdgeInsets_8_5_8_5, t5, _null, C.TextStyle_yT32, A.Intl__message(_s16_, _null, _s15_, _null, _null), _null), _null));
|
|
}
|
|
t2.push(A.Row$(t1, C.CrossAxisAlignment_2, _null, C.MainAxisAlignment_2, C.MainAxisSize_1, _null));
|
|
return A.Column$(t2, C.CrossAxisAlignment_2, C.MainAxisAlignment_2, C.MainAxisSize_0, C.VerticalDirection_1);
|
|
}
|
|
};
|
|
var typesOffset = hunkHelpers.updateTypes(["bool(PortalLinkScope)"]);
|
|
B._HtmlContentViewerOnWebState_initState_closure.prototype = {
|
|
call$1($event) {
|
|
var docHeight, scrollHeightWithBuffer, docWidth, link, _s4_ = "type",
|
|
data = C.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 B._HtmlContentViewerOnWebState_initState__closure(t3, scrollHeightWithBuffer));
|
|
}
|
|
if (t3._framework$_element != null && t3._html_content_viewer_on_web_widget$_isLoading)
|
|
t3.setState$1(new B._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 B._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 (C.JSString_methods.startsWith$1(link, "mailto:")) {
|
|
t1 = t3._widget.mailtoDelegate;
|
|
if (t1 != null)
|
|
t1.call$1(A.Uri_parse(link, 0, null));
|
|
}
|
|
}
|
|
}
|
|
},
|
|
$signature: 167
|
|
};
|
|
B._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
|
|
};
|
|
B._HtmlContentViewerOnWebState_initState__closure0.prototype = {
|
|
call$0() {
|
|
this.$this._html_content_viewer_on_web_widget$_isLoading = false;
|
|
},
|
|
$signature: 0
|
|
};
|
|
B._HtmlContentViewerOnWebState_initState__closure1.prototype = {
|
|
call$0() {
|
|
this.$this.___HtmlContentViewerOnWebState__actualWidth_A = this.docWidth;
|
|
},
|
|
$signature: 0
|
|
};
|
|
B._HtmlContentViewerOnWebState__setUpWeb_closure.prototype = {
|
|
call$1(viewId) {
|
|
return this.iframe;
|
|
},
|
|
$signature: 377
|
|
};
|
|
B._HtmlContentViewerOnWebState__setUpWeb_closure0.prototype = {
|
|
call$0() {
|
|
this.$this._webInit = A.Future_Future$value(true, type$.bool);
|
|
},
|
|
$signature: 0
|
|
};
|
|
B._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(C.SizedBox_0_0_null_null);
|
|
else
|
|
t2.push(A.FutureBuilder$(new B._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(C.AlignmentDirectional_m1_m1, null, C.StackFit_0, C.Clip_1, t2, null);
|
|
},
|
|
$signature: 185
|
|
};
|
|
B._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 C.SizedBox_0_0_null_null;
|
|
},
|
|
$signature: 1745
|
|
};
|
|
B.PopupMenuItemWidget_build_closure.prototype = {
|
|
call$0() {
|
|
return this.$this.onTapCallback.call$0();
|
|
},
|
|
$signature: 0
|
|
};
|
|
B._ApplicationVersionWidgetState_build_closure.prototype = {
|
|
call$2(context, snapshot) {
|
|
var t2, _null = null,
|
|
t1 = snapshot.data;
|
|
if (t1 != null) {
|
|
t2 = this.$this;
|
|
t2._widget.toString;
|
|
t1 = A.S(t1);
|
|
t2._widget.toString;
|
|
t2 = A.Theme_of(context).textTheme.labelMedium;
|
|
t2 = t2 == null ? _null : t2.copyWith$3$color$fontSize$fontWeight(C.Color_4285364357, 13, C.FontWeight_4_500);
|
|
return new A.Padding(C.EdgeInsets_0_8_0_0, A.Text$("v." + t1, _null, _null, _null, _null, _null, _null, _null, _null, t2, C.TextAlign_2, _null, _null, _null, _null), _null);
|
|
} else
|
|
return C.SizedBox_0_0_null_null;
|
|
},
|
|
$signature: 1746
|
|
};
|
|
B.UserSettingPopupMenuMixin__settingAction_closure.prototype = {
|
|
call$0() {
|
|
var t1 = this.onCallBack.call$0();
|
|
return t1;
|
|
},
|
|
$signature: 86
|
|
};
|
|
B.UserSettingPopupMenuMixin__logoutAction_closure.prototype = {
|
|
call$0() {
|
|
var t1 = this.onCallBack.call$0();
|
|
return t1;
|
|
},
|
|
$signature: 86
|
|
};
|
|
(function installTearOffs() {
|
|
var _instance_1_u = hunkHelpers._instance_1u;
|
|
_instance_1_u(B.PortalLinkScope.prototype, "get$linkEquals", "linkEquals$1", 0);
|
|
})();
|
|
(function inheritance() {
|
|
var _inheritMany = hunkHelpers.inheritMany,
|
|
_inherit = hunkHelpers.inherit;
|
|
_inheritMany(A.StatefulWidget, [B.HtmlContentViewerOnWeb, B.Portal, B.ApplicationVersionWidget]);
|
|
_inheritMany(A.State0, [B._HtmlContentViewerOnWebState, B._PopupMenuDividerState, B._PortalState, B._ApplicationVersionWidgetState]);
|
|
_inheritMany(A.Closure, [B._HtmlContentViewerOnWebState_initState_closure, B._HtmlContentViewerOnWebState__setUpWeb_closure]);
|
|
_inheritMany(A.Closure0Args, [B._HtmlContentViewerOnWebState_initState__closure, B._HtmlContentViewerOnWebState_initState__closure0, B._HtmlContentViewerOnWebState_initState__closure1, B._HtmlContentViewerOnWebState__setUpWeb_closure0, B.PopupMenuItemWidget_build_closure, B.UserSettingPopupMenuMixin__settingAction_closure, B.UserSettingPopupMenuMixin__logoutAction_closure]);
|
|
_inheritMany(A.Closure2Args, [B._HtmlContentViewerOnWebState_build_closure, B._HtmlContentViewerOnWebState_build__closure, B._ApplicationVersionWidgetState_build_closure]);
|
|
_inheritMany(A.StatelessWidget, [B.PopupMenuItemWidget, B._ElevatedButtonWithIconChild, B.MaterialTextButton, B.UserInformationWidget, B.VacationNotificationMessageWidget]);
|
|
_inherit(B._ElevatedButtonWithIcon, A.ElevatedButton);
|
|
_inherit(B.PopupMenuDivider, A.PopupMenuEntry);
|
|
_inheritMany(A.Object, [B.PortalLink, B.PopupMenuWidgetMixin, B.UserSettingPopupMenuMixin]);
|
|
_inherit(B.PortalLinkScope, A.InheritedWidget);
|
|
_inherit(B.PortalTheater, A.SingleChildRenderObjectWidget);
|
|
_inherit(B.RenderPortalTheater, A.RenderProxyBox);
|
|
})();
|
|
A._Universe_addRules(init.typeUniverse, JSON.parse('{"HtmlContentViewerOnWeb":{"StatefulWidget":[],"Widget":[],"DiagnosticableTree":[]},"_HtmlContentViewerOnWebState":{"State0":["HtmlContentViewerOnWeb"]},"PopupMenuItemWidget":{"StatelessWidget":[],"Widget":[],"DiagnosticableTree":[]},"_ElevatedButtonWithIcon":{"StatefulWidget":[],"Widget":[],"DiagnosticableTree":[]},"_ElevatedButtonWithIconChild":{"StatelessWidget":[],"Widget":[],"DiagnosticableTree":[]},"PopupMenuDivider":{"PopupMenuEntry":["0&"],"StatefulWidget":[],"Widget":[],"DiagnosticableTree":[]},"_PopupMenuDividerState":{"State0":["PopupMenuDivider"]},"Portal":{"StatefulWidget":[],"Widget":[],"DiagnosticableTree":[]},"_PortalState":{"State0":["Portal"]},"PortalLinkScope":{"InheritedWidget":[],"ProxyWidget":[],"Widget":[],"DiagnosticableTree":[]},"PortalTheater":{"SingleChildRenderObjectWidget":[],"RenderObjectWidget":[],"Widget":[],"DiagnosticableTree":[]},"RenderPortalTheater":{"RenderBox":[],"RenderObjectWithChildMixin":["RenderBox"],"RenderObject":[],"DiagnosticableTree":[],"HitTestTarget":[]},"ApplicationVersionWidget":{"StatefulWidget":[],"Widget":[],"DiagnosticableTree":[]},"_ApplicationVersionWidgetState":{"State0":["ApplicationVersionWidget"]},"MaterialTextButton":{"StatelessWidget":[],"Widget":[],"DiagnosticableTree":[]},"UserInformationWidget":{"StatelessWidget":[],"Widget":[],"DiagnosticableTree":[]},"VacationNotificationMessageWidget":{"StatelessWidget":[],"Widget":[],"DiagnosticableTree":[]}}'));
|
|
var type$ = (function rtii() {
|
|
var findType = A.findType;
|
|
return {
|
|
AppLocalizations: findType("AppLocalizations"),
|
|
BoxConstraints: findType("BoxConstraints"),
|
|
ContainerLayer: findType("ContainerLayer0"),
|
|
JSArray_BoxShadow: findType("JSArray<BoxShadow>"),
|
|
JSArray_Object: findType("JSArray<Object>"),
|
|
JSArray_PopupMenuEntry_dynamic: findType("JSArray<PopupMenuEntry<@>>"),
|
|
JSArray_Widget: findType("JSArray<Widget>"),
|
|
MessageEvent: findType("MessageEvent"),
|
|
PortalLinkOverlay: findType("PortalLinkOverlay"),
|
|
ResponsiveUtils: findType("ResponsiveUtils"),
|
|
String: findType("String"),
|
|
ValueKey_nullable_String: findType("ValueKey<String?>"),
|
|
WidgetStatePropertyAll_EdgeInsetsGeometry: findType("WidgetStatePropertyAll<EdgeInsetsGeometry>"),
|
|
_LocalizationsScope: findType("_LocalizationsScope"),
|
|
bool: findType("bool"),
|
|
dynamic: findType("@"),
|
|
int: findType("int")
|
|
};
|
|
})();
|
|
(function constants() {
|
|
D.SizedBox_qzd0 = new A.SizedBox(30, 30, C.CupertinoActivityIndicator_Rjd, null);
|
|
D.Padding_J28 = new A.Padding(C.EdgeInsets_16_16_16_16, D.SizedBox_qzd0, null);
|
|
D.Align_ChN = new A.Align(C.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, C.Alignment_1_m1, D.Alignment_1_1, C.Alignment_0_0, C.C_AxisFlag, C.C_AxisFlag, C.Offset_0_0, null);
|
|
D.Aligned_wEo = new A.Aligned(1, null, C.Alignment_1_m1, D.Alignment_1_1, C.Alignment_0_0, C.C_AxisFlag, C.C_AxisFlag, C.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, C.BlurStyle_0, C.Color_335544320, D.Offset_UrS1, 1);
|
|
D.Color_1555612108 = new A.Color(1555612108);
|
|
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_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_4_16 = new A.EdgeInsetsDirectional(16, 16, 4, 16);
|
|
D.EdgeInsetsDirectional_28_0_0_0 = new A.EdgeInsetsDirectional(28, 0, 0, 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_20_16_20_16 = new A.EdgeInsets(20, 16, 20, 16);
|
|
D.EdgeInsets_32_0_32_0 = new A.EdgeInsets(32, 0, 32, 0);
|
|
D.EdgeInsets_32_12_32_12 = new A.EdgeInsets(32, 12, 32, 12);
|
|
D.EdgeInsets_32_16_32_16 = new A.EdgeInsets(32, 16, 32, 16);
|
|
D.EdgeInsets_32_8_32_8 = new A.EdgeInsets(32, 8, 32, 8);
|
|
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.PopupMenuDivider_null = new B.PopupMenuDivider(null);
|
|
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_69t11 = new A.TextStyle(true, C.Color_4278190080, null, null, null, null, 15, C.FontWeight_4_500, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null);
|
|
D.TextStyle_69t7 = new A.TextStyle(true, C.Color_4278190080, null, null, null, null, 17, C.FontWeight_5_600, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null);
|
|
D.TextStyle_69t10 = new A.TextStyle(true, C.Color_4278190080, null, null, null, null, 20, C.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, C.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);
|
|
D.TextStyle_yql = new A.TextStyle(true, C.Color_4285364357, null, null, null, null, 13, C.FontWeight_3_400, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null);
|
|
})();
|
|
};
|
|
;
|
|
((d, h) => {
|
|
d[h] = d.current;
|
|
d.eventLog.push({p: "main.dart.js_4", e: "endPart", h: h});
|
|
})($__dart_deferred_initializers__, "AmaBAbtVg8ATiTSyUTaf5BJGg4I=");
|
|
; |