mirror of
https://github.com/linagora/tmail-flutter.git
synced 2026-12-06 16:04:20 +00:00
4705 lines
220 KiB
JavaScript
4705 lines
220 KiB
JavaScript
// Generated by dart2js (NullSafetyMode.sound, trust primitives, omit checks, lax runtime type, csp, deferred-serialization, intern-composite-values), the Dart to JavaScript compiler version: 3.0.6.
|
|
self.$__dart_deferred_initializers__ = self.$__dart_deferred_initializers__ || Object.create(null);
|
|
$__dart_deferred_initializers__.current = function(hunkHelpers, init, holdersList, $) {
|
|
var B = {
|
|
CapitalizeExtension_get_capitalizeFirstEach(_this) {
|
|
var t1 = A.RegExp_RegExp(" +", true, false, false);
|
|
return new A.MappedListIterable(A._setArrayType(A.stringReplaceAllUnchecked(_this, t1, " ").split(" "), type$.JSArray_String), new B.CapitalizeExtension_get_capitalizeFirstEach_closure(), type$.MappedListIterable_String_String).join$1(0, " ");
|
|
},
|
|
CapitalizeExtension_get_capitalizeFirstEach_closure: function CapitalizeExtension_get_capitalizeFirstEach_closure() {
|
|
},
|
|
HtmlContentViewerOnWeb$(allowResizeToDocumentSize, contentHtml, controller, direction, heightContent, mailtoDelegate, widthContent) {
|
|
return new B.HtmlContentViewerOnWeb(contentHtml, widthContent, heightContent, controller, direction, mailtoDelegate, allowResizeToDocumentSize, null);
|
|
},
|
|
HtmlContentViewerOnWeb: function HtmlContentViewerOnWeb(t0, t1, t2, t3, t4, t5, t6, t7) {
|
|
var _ = this;
|
|
_.contentHtml = t0;
|
|
_.widthContent = t1;
|
|
_.heightContent = t2;
|
|
_.controller = t3;
|
|
_.direction = t4;
|
|
_.mailtoDelegate = t5;
|
|
_.allowResizeToDocumentSize = t6;
|
|
_.key = t7;
|
|
},
|
|
_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;
|
|
_._widget = null;
|
|
_._debugLifecycleState = t0;
|
|
_._framework$_element = null;
|
|
},
|
|
_HtmlContentViewerOnWebState__setUpWeb_closure: function _HtmlContentViewerOnWebState__setUpWeb_closure(t0) {
|
|
this.$this = t0;
|
|
},
|
|
_HtmlContentViewerOnWebState__setUpWeb__closure: function _HtmlContentViewerOnWebState__setUpWeb__closure(t0) {
|
|
this.$this = t0;
|
|
},
|
|
_HtmlContentViewerOnWebState__setUpWeb___closure: function _HtmlContentViewerOnWebState__setUpWeb___closure(t0, t1) {
|
|
this.$this = t0;
|
|
this.scrollHeightWithBuffer = t1;
|
|
},
|
|
_HtmlContentViewerOnWebState__setUpWeb___closure0: function _HtmlContentViewerOnWebState__setUpWeb___closure0(t0) {
|
|
this.$this = t0;
|
|
},
|
|
_HtmlContentViewerOnWebState__setUpWeb___closure1: function _HtmlContentViewerOnWebState__setUpWeb___closure1(t0, t1) {
|
|
this.$this = t0;
|
|
this.docWidth = t1;
|
|
},
|
|
_HtmlContentViewerOnWebState__setUpWeb_closure0: function _HtmlContentViewerOnWebState__setUpWeb_closure0(t0) {
|
|
this.iframe = t0;
|
|
},
|
|
_HtmlContentViewerOnWebState__setUpWeb_closure1: function _HtmlContentViewerOnWebState__setUpWeb_closure1(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;
|
|
},
|
|
HtmlViewerControllerForWeb: function HtmlViewerControllerForWeb() {
|
|
},
|
|
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;
|
|
},
|
|
Chip$(avatar, backgroundColor, deleteIcon, label, labelPadding, labelStyle, materialTapTargetSize, onDeleted, padding, shape) {
|
|
return new B.Chip(avatar, label, labelStyle, labelPadding, shape, backgroundColor, padding, deleteIcon, onDeleted, materialTapTargetSize, null);
|
|
},
|
|
_RenderChip__boxRect(box) {
|
|
var t1, t2, t3;
|
|
if (box == null)
|
|
t1 = C.Rect_0_0_0_0;
|
|
else {
|
|
t1 = box.parentData;
|
|
t1.toString;
|
|
t1 = type$.BoxParentData._as(t1).offset;
|
|
t2 = box._box$_size;
|
|
t2.toString;
|
|
t3 = t1._dx;
|
|
t1 = t1._dy;
|
|
t2 = new A.Rect(t3, t1, t3 + t2._dx, t1 + t2._dy);
|
|
t1 = t2;
|
|
}
|
|
return t1;
|
|
},
|
|
_hitIsOnDeleteIcon(chipSize, deleteButtonSize, padding, tapPosition, textDirection) {
|
|
var adjustedPosition, t2, accessibleDeleteButtonWidth,
|
|
t1 = chipSize._dx - padding.get$horizontal();
|
|
padding.get$_top(padding);
|
|
padding.get$_bottom(padding);
|
|
adjustedPosition = tapPosition.$sub(0, new A.Offset(padding.left, padding.top));
|
|
t2 = deleteButtonSize._dx;
|
|
accessibleDeleteButtonWidth = Math.min(t1 * 0.499, Math.max(t2, 24 + t2 / 2));
|
|
switch (textDirection.index) {
|
|
case 1:
|
|
return adjustedPosition._dx >= t1 - accessibleDeleteButtonWidth;
|
|
case 0:
|
|
return adjustedPosition._dx <= accessibleDeleteButtonWidth;
|
|
}
|
|
},
|
|
Chip: function Chip(t0, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10) {
|
|
var _ = this;
|
|
_.avatar = t0;
|
|
_.label = t1;
|
|
_.labelStyle = t2;
|
|
_.labelPadding = t3;
|
|
_.shape = t4;
|
|
_.backgroundColor = t5;
|
|
_.padding = t6;
|
|
_.deleteIcon = t7;
|
|
_.onDeleted = t8;
|
|
_.materialTapTargetSize = t9;
|
|
_.key = t10;
|
|
},
|
|
RawChip: function RawChip(t0, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12, t13, t14, t15, t16, t17, t18, t19, t20, t21, t22) {
|
|
var _ = this;
|
|
_.avatar = t0;
|
|
_.label = t1;
|
|
_.labelStyle = t2;
|
|
_.labelPadding = t3;
|
|
_.deleteIcon = t4;
|
|
_.onDeleted = t5;
|
|
_.deleteIconColor = t6;
|
|
_.deleteButtonTooltipMessage = t7;
|
|
_.side = t8;
|
|
_.shape = t9;
|
|
_.clipBehavior = t10;
|
|
_.focusNode = t11;
|
|
_.autofocus = t12;
|
|
_.backgroundColor = t13;
|
|
_.padding = t14;
|
|
_.visualDensity = t15;
|
|
_.materialTapTargetSize = t16;
|
|
_.elevation = t17;
|
|
_.shadowColor = t18;
|
|
_.surfaceTintColor = t19;
|
|
_.useDeleteButtonTooltip = t20;
|
|
_.tapEnabled = t21;
|
|
_.key = t22;
|
|
},
|
|
_RawChipState: function _RawChipState(t0, t1, t2, t3) {
|
|
var _ = this;
|
|
_.___RawChipState_selectionFade_A = _.___RawChipState_enableAnimation_A = _.___RawChipState_deleteDrawerAnimation_A = _.___RawChipState_avatarDrawerAnimation_A = _.___RawChipState_checkmarkAnimation_A = _.___RawChipState_enableController_A = _.___RawChipState_deleteDrawerController_A = _.___RawChipState_avatarDrawerController_A = _.___RawChipState_selectController_A = $;
|
|
_._isTapping = false;
|
|
_.TickerProviderStateMixin__tickers = t0;
|
|
_.TickerProviderStateMixin__tickerModeNotifier = t1;
|
|
_.MaterialStateMixin_materialStates = t2;
|
|
_._widget = null;
|
|
_._debugLifecycleState = t3;
|
|
_._framework$_element = null;
|
|
},
|
|
_RawChipState__handleTapDown_closure: function _RawChipState__handleTapDown_closure(t0) {
|
|
this.$this = t0;
|
|
},
|
|
_RawChipState__handleTapCancel_closure: function _RawChipState__handleTapCancel_closure(t0) {
|
|
this.$this = t0;
|
|
},
|
|
_RawChipState__handleTap_closure: function _RawChipState__handleTap_closure(t0) {
|
|
this.$this = t0;
|
|
},
|
|
_RawChipState_didUpdateWidget_closure: function _RawChipState_didUpdateWidget_closure(t0) {
|
|
this.$this = t0;
|
|
},
|
|
_RawChipState_didUpdateWidget_closure0: function _RawChipState_didUpdateWidget_closure0(t0) {
|
|
this.$this = t0;
|
|
},
|
|
_RawChipState_build_closure: function _RawChipState_build_closure(t0, t1, t2, t3, t4) {
|
|
var _ = this;
|
|
_.$this = t0;
|
|
_.resolvedShape = t1;
|
|
_.theme = t2;
|
|
_.chipTheme = t3;
|
|
_.chipDefaults = t4;
|
|
},
|
|
_ChipRedirectingHitDetectionWidget: function _ChipRedirectingHitDetectionWidget(t0, t1, t2) {
|
|
this.constraints = t0;
|
|
this.child = t1;
|
|
this.key = t2;
|
|
},
|
|
_RenderChipRedirectingHitDetection: function _RenderChipRedirectingHitDetection(t0, t1, t2) {
|
|
var _ = this;
|
|
_._additionalConstraints = t0;
|
|
_.RenderObjectWithChildMixin__child = t1;
|
|
_._cachedDryLayoutSizes = _._cachedIntrinsicDimensions = null;
|
|
_._computingThisDryLayout = false;
|
|
_._cachedBaselines = _._box$_size = null;
|
|
_._debugActivePointers = 0;
|
|
_._object$_debugDisposed = false;
|
|
_.debugCreator = _.parentData = null;
|
|
_._debugDoingThisLayout = _._debugDoingThisResize = false;
|
|
_._debugCanParentUseSize = null;
|
|
_._debugMutationsLocked = false;
|
|
_._needsLayout = true;
|
|
_._relayoutBoundary = null;
|
|
_._doingThisLayoutWithCallback = false;
|
|
_._constraints = null;
|
|
_._debugDoingThisPaint = false;
|
|
_.__RenderObject__wasRepaintBoundary_A = $;
|
|
_._layerHandle = t2;
|
|
_._needsCompositingBitsUpdate = false;
|
|
_.__RenderObject__needsCompositing_A = $;
|
|
_._needsPaint = true;
|
|
_._needsCompositedLayerUpdate = false;
|
|
_._cachedSemanticsConfiguration = null;
|
|
_._needsSemanticsUpdate = true;
|
|
_._semantics = null;
|
|
_._depth = 0;
|
|
_._node$_parent = _._owner = null;
|
|
},
|
|
_RenderChipRedirectingHitDetection_hitTest_closure: function _RenderChipRedirectingHitDetection_hitTest_closure(t0, t1) {
|
|
this.$this = t0;
|
|
this.offset = t1;
|
|
},
|
|
_ChipRenderWidget: function _ChipRenderWidget(t0, t1, t2, t3, t4, t5, t6, t7, t8) {
|
|
var _ = this;
|
|
_.theme = t0;
|
|
_.value = t1;
|
|
_.isEnabled = t2;
|
|
_.checkmarkAnimation = t3;
|
|
_.avatarDrawerAnimation = t4;
|
|
_.deleteDrawerAnimation = t5;
|
|
_.enableAnimation = t6;
|
|
_.avatarBorder = t7;
|
|
_.key = t8;
|
|
},
|
|
_ChipSlot: function _ChipSlot(t0, t1) {
|
|
this.index = t0;
|
|
this._core$_name = t1;
|
|
},
|
|
_ChipRenderTheme: function _ChipRenderTheme(t0, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10) {
|
|
var _ = this;
|
|
_.avatar = t0;
|
|
_.label = t1;
|
|
_.deleteIcon = t2;
|
|
_.brightness = t3;
|
|
_.padding = t4;
|
|
_.visualDensity = t5;
|
|
_.labelPadding = t6;
|
|
_.showAvatar = t7;
|
|
_.showCheckmark = t8;
|
|
_.checkmarkColor = t9;
|
|
_.canTapBody = t10;
|
|
},
|
|
_RenderChip: function _RenderChip(t0, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10) {
|
|
var _ = this;
|
|
_.value = t0;
|
|
_.isEnabled = t1;
|
|
_.___RenderChip__pressRect_A = _.___RenderChip__deleteButtonRect_A = $;
|
|
_.checkmarkAnimation = t2;
|
|
_.avatarDrawerAnimation = t3;
|
|
_.deleteDrawerAnimation = t4;
|
|
_.enableAnimation = t5;
|
|
_.avatarBorder = t6;
|
|
_._chip$_theme = t7;
|
|
_._chip$_textDirection = t8;
|
|
_.SlottedContainerRenderObjectMixin__slotToChild = t9;
|
|
_._cachedDryLayoutSizes = _._cachedIntrinsicDimensions = null;
|
|
_._computingThisDryLayout = false;
|
|
_._cachedBaselines = _._box$_size = null;
|
|
_._debugActivePointers = 0;
|
|
_._object$_debugDisposed = false;
|
|
_.debugCreator = _.parentData = null;
|
|
_._debugDoingThisLayout = _._debugDoingThisResize = false;
|
|
_._debugCanParentUseSize = null;
|
|
_._debugMutationsLocked = false;
|
|
_._needsLayout = true;
|
|
_._relayoutBoundary = null;
|
|
_._doingThisLayoutWithCallback = false;
|
|
_._constraints = null;
|
|
_._debugDoingThisPaint = false;
|
|
_.__RenderObject__wasRepaintBoundary_A = $;
|
|
_._layerHandle = t10;
|
|
_._needsCompositingBitsUpdate = false;
|
|
_.__RenderObject__needsCompositing_A = $;
|
|
_._needsPaint = true;
|
|
_._needsCompositedLayerUpdate = false;
|
|
_._cachedSemanticsConfiguration = null;
|
|
_._needsSemanticsUpdate = true;
|
|
_._semantics = null;
|
|
_._depth = 0;
|
|
_._node$_parent = _._owner = null;
|
|
},
|
|
_RenderChip_hitTest_closure: function _RenderChip_hitTest_closure(t0, t1) {
|
|
this.center = t0;
|
|
this.hitTestChild = t1;
|
|
},
|
|
_RenderChip_performLayout_centerLayout: function _RenderChip_performLayout_centerLayout(t0, t1) {
|
|
this.$this = t0;
|
|
this.sizes = t1;
|
|
},
|
|
_RenderChip__paintAvatar_paintWithOverlay: function _RenderChip__paintAvatar_paintWithOverlay(t0) {
|
|
this.$this = t0;
|
|
},
|
|
_RenderChip__paintChild_closure: function _RenderChip__paintChild_closure(t0) {
|
|
this.child = t0;
|
|
},
|
|
_ChipSizes: function _ChipSizes(t0, t1, t2, t3, t4, t5, t6) {
|
|
var _ = this;
|
|
_.size = t0;
|
|
_.overall = t1;
|
|
_.content = t2;
|
|
_.avatar = t3;
|
|
_.label = t4;
|
|
_.deleteIcon = t5;
|
|
_.densityAdjustment = t6;
|
|
},
|
|
_UnconstrainedInkSplashFactory: function _UnconstrainedInkSplashFactory(t0) {
|
|
this.parentFactory = t0;
|
|
},
|
|
__ChipRenderWidget_RenderObjectWidget_SlottedMultiChildRenderObjectWidgetMixin: function __ChipRenderWidget_RenderObjectWidget_SlottedMultiChildRenderObjectWidgetMixin() {
|
|
},
|
|
__RawChipState_State_MaterialStateMixin: function __RawChipState_State_MaterialStateMixin() {
|
|
},
|
|
__RawChipState_State_MaterialStateMixin_TickerProviderStateMixin: function __RawChipState_State_MaterialStateMixin_TickerProviderStateMixin() {
|
|
},
|
|
__RenderChip_RenderBox_SlottedContainerRenderObjectMixin: function __RenderChip_RenderBox_SlottedContainerRenderObjectMixin() {
|
|
},
|
|
Drawer$(child, elevation) {
|
|
return new B.Drawer(elevation, child, null);
|
|
},
|
|
Drawer: function Drawer(t0, t1, t2) {
|
|
this.elevation = t0;
|
|
this.child = t1;
|
|
this.key = t2;
|
|
},
|
|
_DrawerDefaultsM2: function _DrawerDefaultsM2(t0, t1, t2, t3, t4, t5, t6, t7, t8) {
|
|
var _ = this;
|
|
_.context = t0;
|
|
_.backgroundColor = t1;
|
|
_.scrimColor = t2;
|
|
_.elevation = t3;
|
|
_.shadowColor = t4;
|
|
_.surfaceTintColor = t5;
|
|
_.shape = t6;
|
|
_.endShape = t7;
|
|
_.width = t8;
|
|
},
|
|
Ink$(child, decoration, padding) {
|
|
return new B.Ink(child, padding, decoration, null);
|
|
},
|
|
Ink: function Ink(t0, t1, t2, t3) {
|
|
var _ = this;
|
|
_.child = t0;
|
|
_.padding = t1;
|
|
_.decoration = t2;
|
|
_.key = t3;
|
|
},
|
|
_InkState: function _InkState(t0, t1) {
|
|
var _ = this;
|
|
_._boxKey = t0;
|
|
_._widget = _._ink = null;
|
|
_._debugLifecycleState = t1;
|
|
_._framework$_element = null;
|
|
},
|
|
InkDecoration: function InkDecoration(t0, t1, t2, t3) {
|
|
var _ = this;
|
|
_._ink_decoration$_decoration = _._ink_decoration$_painter = null;
|
|
_._ink_decoration$_isVisible = true;
|
|
_._ink_decoration$_configuration = t0;
|
|
_._material$_controller = t1;
|
|
_.referenceBox = t2;
|
|
_.onRemoved = t3;
|
|
_._material$_debugDisposed = false;
|
|
},
|
|
ListTile$(contentPadding, leading, onTap, subtitle, title, trailing) {
|
|
return new B.ListTile(leading, title, subtitle, trailing, contentPadding, onTap, null);
|
|
},
|
|
_RenderListTile__layoutBox(box, constraints) {
|
|
var t1;
|
|
if (box == null)
|
|
return C.Size_0_0;
|
|
box.layout$2$parentUsesSize(constraints, true);
|
|
t1 = box._box$_size;
|
|
t1.toString;
|
|
return t1;
|
|
},
|
|
ListTileTitleAlignment: function ListTileTitleAlignment(t0, t1) {
|
|
this.index = t0;
|
|
this._core$_name = t1;
|
|
},
|
|
ListTile: function ListTile(t0, t1, t2, t3, t4, t5, t6) {
|
|
var _ = this;
|
|
_.leading = t0;
|
|
_.title = t1;
|
|
_.subtitle = t2;
|
|
_.trailing = t3;
|
|
_.contentPadding = t4;
|
|
_.onTap = t5;
|
|
_.key = t6;
|
|
},
|
|
ListTile_build_resolveColor: function ListTile_build_resolveColor(t0) {
|
|
this.states = t0;
|
|
},
|
|
_IndividualOverrides: function _IndividualOverrides(t0, t1, t2, t3) {
|
|
var _ = this;
|
|
_.explicitColor = t0;
|
|
_.enabledColor = t1;
|
|
_.selectedColor = t2;
|
|
_.disabledColor = t3;
|
|
},
|
|
_ListTileSlot: function _ListTileSlot(t0, t1) {
|
|
this.index = t0;
|
|
this._core$_name = t1;
|
|
},
|
|
_ListTile: function _ListTile(t0, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12, t13, t14) {
|
|
var _ = this;
|
|
_.leading = t0;
|
|
_.title = t1;
|
|
_.subtitle = t2;
|
|
_.trailing = t3;
|
|
_.isThreeLine = t4;
|
|
_.isDense = t5;
|
|
_.visualDensity = t6;
|
|
_.textDirection = t7;
|
|
_.titleBaselineType = t8;
|
|
_.subtitleBaselineType = t9;
|
|
_.horizontalTitleGap = t10;
|
|
_.minVerticalPadding = t11;
|
|
_.minLeadingWidth = t12;
|
|
_.titleAlignment = t13;
|
|
_.key = t14;
|
|
},
|
|
_RenderListTile: function _RenderListTile(t0, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11) {
|
|
var _ = this;
|
|
_._isDense = t0;
|
|
_._visualDensity = t1;
|
|
_._isThreeLine = t2;
|
|
_._list_tile$_textDirection = t3;
|
|
_._titleBaselineType = t4;
|
|
_._subtitleBaselineType = t5;
|
|
_._horizontalTitleGap = t6;
|
|
_._minVerticalPadding = t7;
|
|
_._minLeadingWidth = t8;
|
|
_._titleAlignment = t9;
|
|
_.SlottedContainerRenderObjectMixin__slotToChild = t10;
|
|
_._cachedDryLayoutSizes = _._cachedIntrinsicDimensions = null;
|
|
_._computingThisDryLayout = false;
|
|
_._cachedBaselines = _._box$_size = null;
|
|
_._debugActivePointers = 0;
|
|
_._object$_debugDisposed = false;
|
|
_.debugCreator = _.parentData = null;
|
|
_._debugDoingThisLayout = _._debugDoingThisResize = false;
|
|
_._debugCanParentUseSize = null;
|
|
_._debugMutationsLocked = false;
|
|
_._needsLayout = true;
|
|
_._relayoutBoundary = null;
|
|
_._doingThisLayoutWithCallback = false;
|
|
_._constraints = null;
|
|
_._debugDoingThisPaint = false;
|
|
_.__RenderObject__wasRepaintBoundary_A = $;
|
|
_._layerHandle = t11;
|
|
_._needsCompositingBitsUpdate = false;
|
|
_.__RenderObject__needsCompositing_A = $;
|
|
_._needsPaint = true;
|
|
_._needsCompositedLayerUpdate = false;
|
|
_._cachedSemanticsConfiguration = null;
|
|
_._needsSemanticsUpdate = true;
|
|
_._semantics = null;
|
|
_._depth = 0;
|
|
_._node$_parent = _._owner = null;
|
|
},
|
|
_RenderListTile_paint_doPaint: function _RenderListTile_paint_doPaint(t0, t1) {
|
|
this.context = t0;
|
|
this.offset = t1;
|
|
},
|
|
_RenderListTile_hitTestChildren_closure: function _RenderListTile_hitTestChildren_closure(t0, t1, t2) {
|
|
this.position = t0;
|
|
this.parentData = t1;
|
|
this.child = t2;
|
|
},
|
|
_LisTileDefaultsM2: function _LisTileDefaultsM2(t0, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12, t13, t14, t15, t16, t17, t18, t19) {
|
|
var _ = this;
|
|
_.context = t0;
|
|
_.___LisTileDefaultsM2__textTheme_FI = _.___LisTileDefaultsM2__theme_FI = $;
|
|
_.dense = t1;
|
|
_.shape = t2;
|
|
_.style = t3;
|
|
_.selectedColor = t4;
|
|
_.iconColor = t5;
|
|
_.textColor = t6;
|
|
_.titleTextStyle = t7;
|
|
_.subtitleTextStyle = t8;
|
|
_.leadingAndTrailingTextStyle = t9;
|
|
_.contentPadding = t10;
|
|
_.tileColor = t11;
|
|
_.selectedTileColor = t12;
|
|
_.horizontalTitleGap = t13;
|
|
_.minVerticalPadding = t14;
|
|
_.minLeadingWidth = t15;
|
|
_.enableFeedback = t16;
|
|
_.mouseCursor = t17;
|
|
_.visualDensity = t18;
|
|
_.titleAlignment = t19;
|
|
},
|
|
__ListTile_RenderObjectWidget_SlottedMultiChildRenderObjectWidgetMixin: function __ListTile_RenderObjectWidget_SlottedMultiChildRenderObjectWidgetMixin() {
|
|
},
|
|
__RenderListTile_RenderBox_SlottedContainerRenderObjectMixin: function __RenderListTile_RenderBox_SlottedContainerRenderObjectMixin() {
|
|
},
|
|
PopupMenuDivider: function PopupMenuDivider(t0) {
|
|
this.key = t0;
|
|
},
|
|
_PopupMenuDividerState: function _PopupMenuDividerState(t0) {
|
|
this._widget = null;
|
|
this._debugLifecycleState = t0;
|
|
this._framework$_element = null;
|
|
},
|
|
AnimatedSwitcher$(child, duration, switchInCurve) {
|
|
return new B.AnimatedSwitcher(child, duration, switchInCurve, null);
|
|
},
|
|
AnimatedSwitcher_defaultTransitionBuilder(child, animation) {
|
|
return new A.FadeTransition(animation, false, child, new A.ValueKey(child.key, type$.ValueKey_nullable_Key));
|
|
},
|
|
AnimatedSwitcher_defaultLayoutBuilder(currentChild, previousChildren) {
|
|
var t1 = A.List_List$of(previousChildren, true, type$.Widget);
|
|
if (currentChild != null)
|
|
t1.push(currentChild);
|
|
return new A.Stack(C.Alignment_0_0, null, C.StackFit_0, C.Clip_1, t1, null);
|
|
},
|
|
_ChildEntry: function _ChildEntry(t0, t1, t2, t3) {
|
|
var _ = this;
|
|
_.controller = t0;
|
|
_.animation = t1;
|
|
_.transition = t2;
|
|
_.widgetChild = t3;
|
|
},
|
|
AnimatedSwitcher: function AnimatedSwitcher(t0, t1, t2, t3) {
|
|
var _ = this;
|
|
_.child = t0;
|
|
_.duration = t1;
|
|
_.switchInCurve = t2;
|
|
_.key = t3;
|
|
},
|
|
_AnimatedSwitcherState: function _AnimatedSwitcherState(t0, t1, t2, t3, t4) {
|
|
var _ = this;
|
|
_._currentEntry = null;
|
|
_._outgoingEntries = t0;
|
|
_._outgoingWidgets = t1;
|
|
_._childNumber = 0;
|
|
_.TickerProviderStateMixin__tickers = t2;
|
|
_.TickerProviderStateMixin__tickerModeNotifier = t3;
|
|
_._widget = null;
|
|
_._debugLifecycleState = t4;
|
|
_._framework$_element = null;
|
|
},
|
|
_AnimatedSwitcherState__newEntry_closure: function _AnimatedSwitcherState__newEntry_closure(t0, t1, t2) {
|
|
this.$this = t0;
|
|
this.entry = t1;
|
|
this.controller = t2;
|
|
},
|
|
_AnimatedSwitcherState__newEntry__closure: function _AnimatedSwitcherState__newEntry__closure(t0, t1) {
|
|
this.$this = t0;
|
|
this.entry = t1;
|
|
},
|
|
_AnimatedSwitcherState__rebuildOutgoingWidgetsIfNeeded_closure: function _AnimatedSwitcherState__rebuildOutgoingWidgetsIfNeeded_closure() {
|
|
},
|
|
_AnimatedSwitcherState_build_closure: function _AnimatedSwitcherState_build_closure(t0) {
|
|
this.$this = t0;
|
|
},
|
|
__AnimatedSwitcherState_State_TickerProviderStateMixin: function __AnimatedSwitcherState_State_TickerProviderStateMixin() {
|
|
},
|
|
StreamBuilderBase: function StreamBuilderBase() {
|
|
},
|
|
_StreamBuilderBaseState: function _StreamBuilderBaseState(t0, t1) {
|
|
var _ = this;
|
|
_._async0$_subscription = null;
|
|
_.___StreamBuilderBaseState__summary_A = $;
|
|
_._widget = null;
|
|
_._debugLifecycleState = t0;
|
|
_._framework$_element = null;
|
|
_.$ti = t1;
|
|
},
|
|
_StreamBuilderBaseState__subscribe_closure: function _StreamBuilderBaseState__subscribe_closure(t0) {
|
|
this.$this = t0;
|
|
},
|
|
_StreamBuilderBaseState__subscribe__closure1: function _StreamBuilderBaseState__subscribe__closure1(t0, t1) {
|
|
this.$this = t0;
|
|
this.data = t1;
|
|
},
|
|
_StreamBuilderBaseState__subscribe_closure1: function _StreamBuilderBaseState__subscribe_closure1(t0) {
|
|
this.$this = t0;
|
|
},
|
|
_StreamBuilderBaseState__subscribe__closure: function _StreamBuilderBaseState__subscribe__closure(t0, t1, t2) {
|
|
this.$this = t0;
|
|
this.error = t1;
|
|
this.stackTrace = t2;
|
|
},
|
|
_StreamBuilderBaseState__subscribe_closure0: function _StreamBuilderBaseState__subscribe_closure0(t0) {
|
|
this.$this = t0;
|
|
},
|
|
_StreamBuilderBaseState__subscribe__closure0: function _StreamBuilderBaseState__subscribe__closure0(t0) {
|
|
this.$this = t0;
|
|
},
|
|
StreamBuilder: function StreamBuilder(t0, t1, t2, t3, t4) {
|
|
var _ = this;
|
|
_.builder = t0;
|
|
_.initialData = t1;
|
|
_.stream = t2;
|
|
_.key = t3;
|
|
_.$ti = t4;
|
|
},
|
|
SizeChangedLayoutNotification: function SizeChangedLayoutNotification() {
|
|
},
|
|
SizeChangedLayoutNotifier: function SizeChangedLayoutNotifier(t0, t1) {
|
|
this.child = t0;
|
|
this.key = t1;
|
|
},
|
|
SizeChangedLayoutNotifier_createRenderObject_closure: function SizeChangedLayoutNotifier_createRenderObject_closure(t0) {
|
|
this.context = t0;
|
|
},
|
|
_RenderSizeChangedWithCallback: function _RenderSizeChangedWithCallback(t0, t1, t2) {
|
|
var _ = this;
|
|
_.onLayoutChangedCallback = t0;
|
|
_._oldSize = null;
|
|
_.RenderObjectWithChildMixin__child = t1;
|
|
_._cachedDryLayoutSizes = _._cachedIntrinsicDimensions = null;
|
|
_._computingThisDryLayout = false;
|
|
_._cachedBaselines = _._box$_size = null;
|
|
_._debugActivePointers = 0;
|
|
_._object$_debugDisposed = false;
|
|
_.debugCreator = _.parentData = null;
|
|
_._debugDoingThisLayout = _._debugDoingThisResize = false;
|
|
_._debugCanParentUseSize = null;
|
|
_._debugMutationsLocked = false;
|
|
_._needsLayout = true;
|
|
_._relayoutBoundary = null;
|
|
_._doingThisLayoutWithCallback = false;
|
|
_._constraints = null;
|
|
_._debugDoingThisPaint = false;
|
|
_.__RenderObject__wasRepaintBoundary_A = $;
|
|
_._layerHandle = t2;
|
|
_._needsCompositingBitsUpdate = false;
|
|
_.__RenderObject__needsCompositing_A = $;
|
|
_._needsPaint = true;
|
|
_._needsCompositedLayerUpdate = false;
|
|
_._cachedSemanticsConfiguration = null;
|
|
_._needsSemanticsUpdate = true;
|
|
_._semantics = null;
|
|
_._depth = 0;
|
|
_._node$_parent = _._owner = null;
|
|
},
|
|
Visibility_of(context) {
|
|
var t1, ancestor, isVisible, t2, _box_0 = {};
|
|
_box_0.ancestorContext = context;
|
|
t1 = type$._VisibilityScope;
|
|
ancestor = context.getElementForInheritedWidgetOfExactType$1$0(t1);
|
|
isVisible = true;
|
|
while (true) {
|
|
if (!(isVisible && ancestor != null))
|
|
break;
|
|
isVisible = t1._as(context.dependOnInheritedElement$1(ancestor)).isVisible;
|
|
ancestor.visitAncestorElements$1(new B.Visibility_of_closure(_box_0));
|
|
t2 = _box_0.ancestorContext._inheritedElements;
|
|
ancestor = t2 == null ? null : t2.$index(0, A.createRuntimeType(t1));
|
|
}
|
|
return isVisible;
|
|
},
|
|
Visibility_of_closure: function Visibility_of_closure(t0) {
|
|
this._box_0 = t0;
|
|
},
|
|
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) {
|
|
var _ = this;
|
|
_.debugName = t0;
|
|
_._portal_theater$_portalLink = t1;
|
|
_.RenderObjectWithChildMixin__child = t2;
|
|
_._cachedDryLayoutSizes = _._cachedIntrinsicDimensions = null;
|
|
_._computingThisDryLayout = false;
|
|
_._cachedBaselines = _._box$_size = null;
|
|
_._debugActivePointers = 0;
|
|
_._object$_debugDisposed = false;
|
|
_.debugCreator = _.parentData = null;
|
|
_._debugDoingThisLayout = _._debugDoingThisResize = false;
|
|
_._debugCanParentUseSize = null;
|
|
_._debugMutationsLocked = false;
|
|
_._needsLayout = true;
|
|
_._relayoutBoundary = null;
|
|
_._doingThisLayoutWithCallback = false;
|
|
_._constraints = null;
|
|
_._debugDoingThisPaint = false;
|
|
_.__RenderObject__wasRepaintBoundary_A = $;
|
|
_._layerHandle = t3;
|
|
_._needsCompositingBitsUpdate = false;
|
|
_.__RenderObject__needsCompositing_A = $;
|
|
_._needsPaint = true;
|
|
_._needsCompositedLayerUpdate = false;
|
|
_._cachedSemanticsConfiguration = null;
|
|
_._needsSemanticsUpdate = true;
|
|
_._semantics = null;
|
|
_._depth = 0;
|
|
_._node$_parent = _._owner = null;
|
|
},
|
|
ListEmailAddressExtension_emailAddressToListString(_this, expandMode, isFullEmailAddress, limitAddress) {
|
|
var t1, address;
|
|
if (_this != null) {
|
|
t1 = A._instanceType(_this)._eval$1("EfficientLengthMappedIterable<SetBase.E,String>");
|
|
if (expandMode === C.ExpandMode_1)
|
|
return A.List_List$of(new A.EfficientLengthMappedIterable(_this, new B.ListEmailAddressExtension_emailAddressToListString_closure(isFullEmailAddress), t1), true, t1._eval$1("Iterable.E"));
|
|
else {
|
|
address = A.List_List$of(new A.EfficientLengthMappedIterable(_this, new B.ListEmailAddressExtension_emailAddressToListString_closure0(isFullEmailAddress), t1), true, t1._eval$1("Iterable.E"));
|
|
return address.length > limitAddress ? C.JSArray_methods.sublist$2(address, 0, limitAddress) : address;
|
|
}
|
|
}
|
|
return A._setArrayType([], type$.JSArray_String);
|
|
},
|
|
ListEmailAddressExtension_listEmailAddressToString(_this, isFullEmailAddress) {
|
|
var listEmail = B.ListEmailAddressExtension_emailAddressToListString(_this, C.ExpandMode_1, true, 1);
|
|
return listEmail.length !== 0 ? C.JSArray_methods.join$1(listEmail, ", ") : "";
|
|
},
|
|
ListEmailAddressExtension_emailAddressToListString_closure: function ListEmailAddressExtension_emailAddressToListString_closure(t0) {
|
|
this.isFullEmailAddress = t0;
|
|
},
|
|
ListEmailAddressExtension_emailAddressToListString_closure0: function ListEmailAddressExtension_emailAddressToListString_closure0(t0) {
|
|
this.isFullEmailAddress = t0;
|
|
},
|
|
SuggestionsBoxController: function SuggestionsBoxController(t0) {
|
|
this.context = t0;
|
|
this.overlayEntry = null;
|
|
this._isOpened = false;
|
|
},
|
|
TagEditor$(autoDisposeFocusNode, autofocus, backgroundColor, borderRadius, controller, cursorColor, debounceDuration, enableBorder, enableBorderColor, findSuggestions, focusNode, focusedBorderColor, hasAddButton, inputDecoration, key, keyboardType, $length, minTextFieldWidth, onDeleteTagAction, onFocusTagAction, onSelectOptionAction, onSubmitted, onTagChanged, onTapOutside, padding, resetTextOnSubmitted, suggestionBoxWidth, suggestionBuilder, suggestionMargin, suggestionPadding, suggestionsBoxBackgroundColor, suggestionsBoxElevation, suggestionsBoxMaxHeight, suggestionsBoxRadius, tagBuilder, tagSpacing, textInputAction, textStyle, useDefaultHighlight, $T) {
|
|
return new B.TagEditor($length, minTextFieldWidth, tagSpacing, tagBuilder, false, onTagChanged, true, onSubmitted, focusNode, onDeleteTagAction, onFocusTagAction, enableBorder, controller, textStyle, inputDecoration, keyboardType, textInputAction, autofocus, cursorColor, backgroundColor, focusedBorderColor, enableBorderColor, borderRadius, padding, autoDisposeFocusNode, onTapOutside, suggestionsBoxMaxHeight, suggestionsBoxElevation, suggestionBuilder, findSuggestions, onSelectOptionAction, suggestionsBoxBackgroundColor, suggestionsBoxRadius, debounceDuration, suggestionMargin, suggestionPadding, useDefaultHighlight, suggestionBoxWidth, key, $T._eval$1("TagEditor<0>"));
|
|
},
|
|
TagEditor: function TagEditor(t0, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12, t13, t14, t15, t16, t17, t18, t19, t20, t21, t22, t23, t24, t25, t26, t27, t28, t29, t30, t31, t32, t33, t34, t35, t36, t37, t38, t39) {
|
|
var _ = this;
|
|
_.length = t0;
|
|
_.minTextFieldWidth = t1;
|
|
_.tagSpacing = t2;
|
|
_.tagBuilder = t3;
|
|
_.hasAddButton = t4;
|
|
_.onTagChanged = t5;
|
|
_.resetTextOnSubmitted = t6;
|
|
_.onSubmitted = t7;
|
|
_.focusNode = t8;
|
|
_.onDeleteTagAction = t9;
|
|
_.onFocusTagAction = t10;
|
|
_.enableBorder = t11;
|
|
_.controller = t12;
|
|
_.textStyle = t13;
|
|
_.inputDecoration = t14;
|
|
_.keyboardType = t15;
|
|
_.textInputAction = t16;
|
|
_.autofocus = t17;
|
|
_.cursorColor = t18;
|
|
_.backgroundColor = t19;
|
|
_.focusedBorderColor = t20;
|
|
_.enableBorderColor = t21;
|
|
_.borderRadius = t22;
|
|
_.padding = t23;
|
|
_.autoDisposeFocusNode = t24;
|
|
_.onTapOutside = t25;
|
|
_.suggestionsBoxMaxHeight = t26;
|
|
_.suggestionsBoxElevation = t27;
|
|
_.suggestionBuilder = t28;
|
|
_.findSuggestions = t29;
|
|
_.onSelectOptionAction = t30;
|
|
_.suggestionsBoxBackgroundColor = t31;
|
|
_.suggestionsBoxRadius = t32;
|
|
_.debounceDuration = t33;
|
|
_.suggestionMargin = t34;
|
|
_.suggestionPadding = t35;
|
|
_.useDefaultHighlight = t36;
|
|
_.suggestionBoxWidth = t37;
|
|
_.key = t38;
|
|
_.$ti = t39;
|
|
},
|
|
TagsEditorState: function TagsEditorState(t0, t1, t2, t3, t4) {
|
|
var _ = this;
|
|
_.__TagsEditorState__textDirection_A = _.__TagsEditorState__textFieldController_A = $;
|
|
_._previousText = "";
|
|
_._tag_editor$_isFocused = false;
|
|
_.__TagsEditorState__focusNodeKeyboard_A = _.__TagsEditorState__focusNode_A = $;
|
|
_._suggestionsBoxController = _._suggestionsStreamController = null;
|
|
_._tag_editor$_layerLink = t0;
|
|
_._tag_editor$_suggestions = null;
|
|
_._countBackspacePressed = _._searchId = 0;
|
|
_._deBouncer = null;
|
|
_._tag_editor$_highlightedOptionIndex = t1;
|
|
_._validationSuggestionItemNotifier = t2;
|
|
_._widget = null;
|
|
_._debugLifecycleState = t3;
|
|
_._framework$_element = null;
|
|
_.$ti = t4;
|
|
},
|
|
TagsEditorState__initializeSuggestionBox_closure: function TagsEditorState__initializeSuggestionBox_closure(t0) {
|
|
this.$this = t0;
|
|
},
|
|
TagsEditorState__onFocusChanged_closure: function TagsEditorState__onFocusChanged_closure(t0) {
|
|
this.$this = t0;
|
|
},
|
|
TagsEditorState__createOverlayEntry_closure: function TagsEditorState__createOverlayEntry_closure(t0) {
|
|
this.$this = t0;
|
|
},
|
|
TagsEditorState__createOverlayEntry__closure: function TagsEditorState__createOverlayEntry__closure(t0, t1, t2, t3, t4) {
|
|
var _ = this;
|
|
_._box_0 = t0;
|
|
_.$this = t1;
|
|
_.size = t2;
|
|
_.compositedTransformFollowerOffset = t3;
|
|
_.showTop = t4;
|
|
},
|
|
TagsEditorState__createOverlayEntry___closure: function TagsEditorState__createOverlayEntry___closure(t0, t1) {
|
|
this.$this = t0;
|
|
this.snapshot = t1;
|
|
},
|
|
TagsEditorState__onSearchChanged_closure: function TagsEditorState__onSearchChanged_closure(t0, t1) {
|
|
this.$this = t0;
|
|
this.results = t1;
|
|
},
|
|
TagsEditorState__scrollToVisible_closure: function TagsEditorState__scrollToVisible_closure(t0) {
|
|
this.$this = t0;
|
|
},
|
|
TagsEditorState__scrollToVisible__closure: function TagsEditorState__scrollToVisible__closure(t0) {
|
|
this.$this = t0;
|
|
},
|
|
TagsEditorState_build_closure0: function TagsEditorState_build_closure0(t0) {
|
|
this.$this = t0;
|
|
},
|
|
TagsEditorState_build_closure: function TagsEditorState_build_closure(t0) {
|
|
this.$this = t0;
|
|
},
|
|
TagsEditorState_build__closure0: function TagsEditorState_build__closure0(t0, t1) {
|
|
this.$this = t0;
|
|
this.directionByText = t1;
|
|
},
|
|
TagsEditorState_build_closure1: function TagsEditorState_build_closure1(t0) {
|
|
this.$this = t0;
|
|
},
|
|
TagsEditorState_build__closure: function TagsEditorState_build__closure(t0) {
|
|
this.$this = t0;
|
|
},
|
|
TagEditorLayoutDelegate__isOverflow(childWidth, parentWidth, spacing, tagSizes) {
|
|
return childWidth + C.JSArray_methods.fold$2(tagSizes, 0, new B.TagEditorLayoutDelegate__isOverflow_closure()) + spacing * Math.max(tagSizes.length - 1, 0) > parentWidth;
|
|
},
|
|
TagEditorLayoutDelegate: function TagEditorLayoutDelegate(t0, t1, t2, t3) {
|
|
var _ = this;
|
|
_.length = t0;
|
|
_.minTextFieldWidth = t1;
|
|
_.spacing = t2;
|
|
_.parentSize = t3;
|
|
_._debugChildrenNeedingLayout = _._idToChild = null;
|
|
},
|
|
TagEditorLayoutDelegate__isOverflow_closure: function TagEditorLayoutDelegate__isOverflow_closure() {
|
|
},
|
|
TagEditorLayoutDelegate_performLayout_closure: function TagEditorLayoutDelegate_performLayout_closure() {
|
|
},
|
|
TagLayout: function TagLayout(t0, t1, t2) {
|
|
this.delegate = t0;
|
|
this.children = t1;
|
|
this.key = t2;
|
|
},
|
|
TagRenderLayoutBox: function TagRenderLayoutBox(t0, t1, t2, t3, t4) {
|
|
var _ = this;
|
|
_._custom_layout$_delegate = t0;
|
|
_.ContainerRenderObjectMixin__childCount = t1;
|
|
_.ContainerRenderObjectMixin__firstChild = t2;
|
|
_.ContainerRenderObjectMixin__lastChild = t3;
|
|
_._cachedDryLayoutSizes = _._cachedIntrinsicDimensions = null;
|
|
_._computingThisDryLayout = false;
|
|
_._cachedBaselines = _._box$_size = null;
|
|
_._debugActivePointers = 0;
|
|
_._object$_debugDisposed = false;
|
|
_.debugCreator = _.parentData = null;
|
|
_._debugDoingThisLayout = _._debugDoingThisResize = false;
|
|
_._debugCanParentUseSize = null;
|
|
_._debugMutationsLocked = false;
|
|
_._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;
|
|
_._depth = 0;
|
|
_._node$_parent = _._owner = null;
|
|
},
|
|
ValidationSuggestionItem: function ValidationSuggestionItem(t0, t1, t2) {
|
|
this.notifier = t0;
|
|
this.child = t1;
|
|
this.key = t2;
|
|
},
|
|
PopupMenuWidgetMixin: function PopupMenuWidgetMixin() {
|
|
},
|
|
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, userProfile) {
|
|
return new B.UserInformationWidget(userProfile, subtitle, onSubtitleClick, padding, border, null);
|
|
},
|
|
UserInformationWidget: function UserInformationWidget(t0, t1, t2, t3, t4, t5) {
|
|
var _ = this;
|
|
_.userProfile = 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;
|
|
},
|
|
VacationNotificationMessageWidget__buildBodyForDesktop_closure: function VacationNotificationMessageWidget__buildBodyForDesktop_closure(t0) {
|
|
this.$this = t0;
|
|
},
|
|
VacationNotificationMessageWidget__buildBodyForDesktop_closure0: function VacationNotificationMessageWidget__buildBodyForDesktop_closure0(t0) {
|
|
this.$this = t0;
|
|
},
|
|
VacationNotificationMessageWidget__buildBodyForMobile_closure: function VacationNotificationMessageWidget__buildBodyForMobile_closure(t0) {
|
|
this.$this = t0;
|
|
},
|
|
VacationNotificationMessageWidget__buildBodyForMobile_closure0: function VacationNotificationMessageWidget__buildBodyForMobile_closure0(t0) {
|
|
this.$this = t0;
|
|
},
|
|
buildSVGIconButton(icon, iconColor, iconSize, onTap, onTapDown, padding, tooltip) {
|
|
var _null = null,
|
|
t1 = padding == null ? C.EdgeInsets_8_8_8_8 : padding,
|
|
iconWidget = new A.Padding(t1, A.SvgPicture$asset(icon, C.Alignment_0_0, A.ColorNullableExtension_asFilter(iconColor), C.BoxFit_0, iconSize, _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_Umb, 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);
|
|
},
|
|
Divider$(color, endIndent, height, indent) {
|
|
return new A.Divider(height, null, indent, endIndent, color, null);
|
|
},
|
|
EmailAddressExtension_asFullString(_this) {
|
|
var t3, t4,
|
|
t1 = _this.name,
|
|
t2 = t1 == null;
|
|
if ((t2 ? "" : t1).length !== 0) {
|
|
t3 = _this.email;
|
|
t4 = t3 == null;
|
|
if ((t4 ? "" : t3).length !== 0) {
|
|
t1 = B.CapitalizeExtension_get_capitalizeFirstEach(t2 ? "" : t1);
|
|
t2 = t4 ? "" : t3;
|
|
return t1 + " <" + t2 + ">";
|
|
}
|
|
return B.CapitalizeExtension_get_capitalizeFirstEach(t2 ? "" : t1);
|
|
} else {
|
|
t1 = _this.email;
|
|
t2 = t1 == null;
|
|
if ((t2 ? "" : t1).length !== 0)
|
|
return t2 ? "" : t1;
|
|
}
|
|
return "";
|
|
},
|
|
UTCDateExtension_formatDateToLocal(_this, locale, pattern) {
|
|
if (_this != null)
|
|
return A.DateFormat$(pattern, locale).format$1(_this.value.toLocal$0());
|
|
else
|
|
return "";
|
|
},
|
|
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._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._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._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_swi, 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_swi, type$.AppLocalizations).toString;
|
|
t1 = B.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_swi, type$.AppLocalizations).toString;
|
|
t1 = B.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 "";
|
|
}
|
|
},
|
|
C, A, J, D, E;
|
|
B = hunkHelpers.updateHolder(holdersList[10], B);
|
|
C = holdersList[2];
|
|
A = holdersList[0];
|
|
J = holdersList[1];
|
|
D = holdersList[18];
|
|
E = holdersList[16];
|
|
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._widget.toString;
|
|
_this._setUpWeb$0();
|
|
},
|
|
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._widget.toString;
|
|
_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,
|
|
t1 = $.$get$Random__secureRandom(),
|
|
values = J.JSArray_JSArray$allocateGrowable(len, type$.int);
|
|
for (i = 0; i < len; ++i)
|
|
values[i] = t1.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 \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 </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%";
|
|
A._EventStreamSubscription$(t1, "load", new B._HtmlContentViewerOnWebState__setUpWeb_closure(_this), false, type$._ElementEventStreamImpl_Event._precomputed1);
|
|
$.$get$platformViewRegistry();
|
|
t2 = _this.___HtmlContentViewerOnWebState_createdViewId_A;
|
|
$.$get$platformViewManager().registerFactory$3$isVisible(t2, new B._HtmlContentViewerOnWebState__setUpWeb_closure0(t1), true);
|
|
if (_this._framework$_element != null)
|
|
_this.setState$1(new B._HtmlContentViewerOnWebState__setUpWeb_closure1(_this));
|
|
},
|
|
build$1(context) {
|
|
return new A.LayoutBuilder(new B._HtmlContentViewerOnWebState_build_closure(this), null);
|
|
}
|
|
};
|
|
B.HtmlViewerControllerForWeb.prototype = {};
|
|
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, 20), C.SizedBox_12_null_null_null, A.Expanded$(A.Text$(this.name, _null, _null, _null, _null, _null, _null, _null, _null, D.TextStyle_oHY11, _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, 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.Chip.prototype = {
|
|
build$1(context) {
|
|
var _this = this, _null = null,
|
|
t1 = _this.deleteIcon;
|
|
if (t1 == null)
|
|
t1 = D.Icon_0;
|
|
return new B.RawChip(_this.avatar, _this.label, _this.labelStyle, _this.labelPadding, t1, _this.onDeleted, _null, _null, _null, _this.shape, C.Clip_0, _null, false, _this.backgroundColor, _this.padding, _null, _this.materialTapTargetSize, _null, _null, _null, true, false, _null);
|
|
}
|
|
};
|
|
B.RawChip.prototype = {
|
|
createState$0() {
|
|
return new B._RawChipState(null, null, A.LinkedHashSet_LinkedHashSet$_empty(type$.MaterialState), C._StateLifecycle_0);
|
|
}
|
|
};
|
|
B._RawChipState.prototype = {
|
|
get$canTap() {
|
|
this._widget.toString;
|
|
return false;
|
|
},
|
|
initState$0() {
|
|
var t1, _this = this, _null = null;
|
|
_this.super$State$initState();
|
|
_this._widget.toString;
|
|
_this.removeMaterialState$1(C.MaterialState_6);
|
|
_this._widget.toString;
|
|
_this.removeMaterialState$1(C.MaterialState_4);
|
|
_this._widget.toString;
|
|
t1 = A.AnimationController$(C.AnimationBehavior_0, _null, D.Duration_195000, 0, _null, 1, 0, _this);
|
|
_this.___RawChipState_selectController_A = t1;
|
|
_this.___RawChipState_selectionFade_A = A.CurvedAnimation$(C.Cubic_ifx, t1, _null);
|
|
_this.___RawChipState_avatarDrawerController_A = A.AnimationController$(C.AnimationBehavior_0, _null, C.Duration_150000, 0, _null, 1, _this._widget.avatar != null || false ? 1 : 0, _this);
|
|
_this.___RawChipState_deleteDrawerController_A = A.AnimationController$(C.AnimationBehavior_0, _null, C.Duration_150000, 0, _null, 1, _this._widget.onDeleted != null ? 1 : 0, _this);
|
|
_this._widget.toString;
|
|
_this.___RawChipState_enableController_A = A.AnimationController$(C.AnimationBehavior_0, _null, C.Duration_75000, 0, _null, 1, 1, _this);
|
|
_this.___RawChipState_checkmarkAnimation_A = A.CurvedAnimation$(new A.Interval(0.23076923076923073, 1, C.Cubic_ifx), _this.___RawChipState_selectController_A, new A.Interval(0.7435897435897436, 1, C.Cubic_ifx));
|
|
_this.___RawChipState_deleteDrawerAnimation_A = A.CurvedAnimation$(C.Cubic_ifx, _this.___RawChipState_deleteDrawerController_A, _null);
|
|
_this.___RawChipState_avatarDrawerAnimation_A = A.CurvedAnimation$(C.Cubic_ifx, _this.___RawChipState_avatarDrawerController_A, new A.Interval(0.4871794871794872, 1, C.Cubic_ifx));
|
|
_this.___RawChipState_enableAnimation_A = A.CurvedAnimation$(C.Cubic_ifx, _this.___RawChipState_enableController_A, _null);
|
|
},
|
|
dispose$0() {
|
|
var _this = this,
|
|
t1 = _this.___RawChipState_selectController_A;
|
|
t1 === $ && A.throwUnnamedLateFieldNI();
|
|
t1.dispose$0();
|
|
t1 = _this.___RawChipState_avatarDrawerController_A;
|
|
t1 === $ && A.throwUnnamedLateFieldNI();
|
|
t1.dispose$0();
|
|
t1 = _this.___RawChipState_deleteDrawerController_A;
|
|
t1 === $ && A.throwUnnamedLateFieldNI();
|
|
t1.dispose$0();
|
|
t1 = _this.___RawChipState_enableController_A;
|
|
t1 === $ && A.throwUnnamedLateFieldNI();
|
|
t1.dispose$0();
|
|
_this.super$__RawChipState_State_MaterialStateMixin_TickerProviderStateMixin$dispose();
|
|
},
|
|
_handleTapDown$1(details) {
|
|
var _this = this;
|
|
if (!_this.get$canTap())
|
|
return;
|
|
_this.addMaterialState$1(C.MaterialState_2);
|
|
_this.setState$1(new B._RawChipState__handleTapDown_closure(_this));
|
|
},
|
|
_handleTapCancel$0() {
|
|
var _this = this;
|
|
if (!_this.get$canTap())
|
|
return;
|
|
_this.removeMaterialState$1(C.MaterialState_2);
|
|
_this.setState$1(new B._RawChipState__handleTapCancel_closure(_this));
|
|
},
|
|
_handleTap$0() {
|
|
var _this = this;
|
|
if (!_this.get$canTap())
|
|
return;
|
|
_this.removeMaterialState$1(C.MaterialState_2);
|
|
_this.setState$1(new B._RawChipState__handleTap_closure(_this));
|
|
_this._widget.toString;
|
|
},
|
|
_chip$_getBackgroundColor$3(theme, chipTheme, chipDefaults) {
|
|
var t2, t3, _this = this,
|
|
t1 = _this._widget;
|
|
t1.toString;
|
|
t2 = chipTheme.disabledColor;
|
|
if (t2 == null)
|
|
t2 = theme.disabledColor;
|
|
t1 = t1.backgroundColor;
|
|
t3 = _this.___RawChipState_enableController_A;
|
|
t3 === $ && A.throwUnnamedLateFieldNI();
|
|
t3 = new A.ColorTween(t2, t1).transform$1(0, t3.get$value(t3));
|
|
_this._widget.toString;
|
|
t1 = chipTheme.selectedColor;
|
|
if (t1 == null)
|
|
t1 = theme.chipTheme.selectedColor;
|
|
if (t1 == null)
|
|
t1 = chipDefaults.get$selectedColor();
|
|
t2 = _this.___RawChipState_selectionFade_A;
|
|
t2 === $ && A.throwUnnamedLateFieldNI();
|
|
return new A.ColorTween(t3, t1).transform$1(0, t2.get$value(t2));
|
|
},
|
|
didUpdateWidget$1(oldWidget) {
|
|
var t1, _this = this;
|
|
_this.super$State$didUpdateWidget(oldWidget);
|
|
t1 = _this._widget;
|
|
if (J.$eq$(oldWidget.avatar, t1.avatar)) {
|
|
_this._widget.toString;
|
|
t1 = false;
|
|
} else
|
|
t1 = true;
|
|
if (t1)
|
|
_this.setState$1(new B._RawChipState_didUpdateWidget_closure(_this));
|
|
t1 = _this._widget;
|
|
if (!J.$eq$(oldWidget.onDeleted, t1.onDeleted))
|
|
_this.setState$1(new B._RawChipState_didUpdateWidget_closure0(_this));
|
|
},
|
|
_wrapWithTooltip$3$child$enabled$tooltip(child, enabled, tooltip) {
|
|
if (!enabled || tooltip == null)
|
|
return child;
|
|
return A.Tooltip$(child, tooltip);
|
|
},
|
|
_buildDeleteIcon$4(context, theme, chipTheme, chipDefaults) {
|
|
var t2, t3, t4, t5, t6, _this = this, _null = null,
|
|
t1 = _this._widget;
|
|
if (t1.onDeleted == null)
|
|
return _null;
|
|
t1 = t1.deleteButtonTooltipMessage;
|
|
t2 = A.Localizations_of(context, C.Type_MaterialLocalizations_flR, type$.MaterialLocalizations);
|
|
t2.toString;
|
|
t1 = t2.get$deleteButtonTooltip();
|
|
t2 = _this._widget;
|
|
t3 = t2.onDeleted;
|
|
t2 = t2.padding;
|
|
t2 = t2 == null ? _null : t2.get$_top(t2) + t2.get$_bottom(t2);
|
|
if (t2 == null)
|
|
t2 = 0;
|
|
t4 = A.Theme_of(context);
|
|
t5 = _this._widget.onDeleted;
|
|
t6 = chipTheme.deleteIconColor;
|
|
if (t6 == null)
|
|
t6 = theme.chipTheme.deleteIconColor;
|
|
if (t6 == null)
|
|
t6 = chipDefaults.get$deleteIconColor();
|
|
t6 = theme.iconTheme.copyWith$1$color(t6);
|
|
t1 = _this._wrapWithTooltip$3$child$enabled$tooltip(A.InkWell$(false, _null, true, A.IconTheme$(_this._widget.deleteIcon, t6, _null), _null, true, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, t5, _null, _null, _null, (32 + t2) * 0.45, _null, new B._UnconstrainedInkSplashFactory(t4.splashFactory), _null), t3 != null, t1);
|
|
return new A.Semantics(A.SemanticsProperties$(_null, _null, _null, _null, _null, true, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null), true, false, false, t1, _null);
|
|
},
|
|
build$1(context) {
|
|
var theme, chipTheme, brightness, t2, t3, primaryColor, t4, t5, t6, backgroundColor, deleteIconColor, disabledColor, selectedColor, secondarySelectedColor, secondaryLabelStyle, chipDefaults, textDirection, resolvedSide, resolvedShape, elevation, pressElevation, shadowColor, surfaceTintColor, checkmarkColor, showCheckmark, padding, labelStyle, labelPadding, iconTheme, effectiveLabelStyle, resolvedLabelStyle, avatar, t7, t8, t9, t10, t11, t12, t13, t14, t15, t16, t17, t18, t19, t20, t21, result, densityAdjustment, constraints, _this = this, _null = null,
|
|
t1 = A.MediaQuery__maybeOf(context, C._MediaQueryAspect_3);
|
|
t1 = t1 == null ? _null : t1.textScaleFactor;
|
|
t1 = A.EdgeInsets_lerp(C.EdgeInsets_8_0_8_0, C.EdgeInsets_4_0_4_0, A.clampDouble((t1 == null ? 1 : t1) - 1, 0, 1));
|
|
t1.toString;
|
|
theme = A.Theme_of(context);
|
|
context.dependOnInheritedWidgetOfExactType$1$0(type$.ChipTheme);
|
|
chipTheme = A.Theme_of(context).chipTheme;
|
|
brightness = chipTheme.brightness;
|
|
if (brightness == null)
|
|
brightness = theme.colorScheme.brightness;
|
|
_this._widget.toString;
|
|
t2 = brightness === C.Brightness_0 ? C.Color_4284809178 : theme.primaryColor;
|
|
t3 = theme.textTheme.bodyLarge;
|
|
t3.toString;
|
|
primaryColor = brightness === C.Brightness_1 ? C.Color_4278190080 : C.Color_4294967295;
|
|
t4 = primaryColor.value;
|
|
t5 = t4 >>> 16 & 255;
|
|
t6 = t4 >>> 8 & 255;
|
|
t4 &= 255;
|
|
backgroundColor = A.Color$fromARGB(31, t5, t6, t4);
|
|
deleteIconColor = A.Color$fromARGB(222, t5, t6, t4);
|
|
disabledColor = A.Color$fromARGB(12, t5, t6, t4);
|
|
selectedColor = A.Color$fromARGB(61, t5, t6, t4);
|
|
secondarySelectedColor = A.Color$fromARGB(61, t2.get$value(t2) >>> 16 & 255, t2.get$value(t2) >>> 8 & 255, t2.get$value(t2) & 255);
|
|
secondaryLabelStyle = t3.copyWith$1$color(A.Color$fromARGB(222, t2.get$value(t2) >>> 16 & 255, t2.get$value(t2) >>> 8 & 255, t2.get$value(t2) & 255));
|
|
t4 = A.ChipThemeData$(backgroundColor, brightness, _null, deleteIconColor, disabledColor, 0, _null, _null, t3.copyWith$1$color(A.Color$fromARGB(222, t5, t6, t4)), C.EdgeInsets_4_4_4_4, 8, secondaryLabelStyle, secondarySelectedColor, selectedColor, C.Color_4278190080, C.Color_4278190080, _null, true, _null, _null);
|
|
chipDefaults = t4;
|
|
textDirection = A.Directionality_maybeOf(context);
|
|
t2 = _this.MaterialStateMixin_materialStates;
|
|
t3 = type$.nullable_BorderSide;
|
|
t4 = A.MaterialStateProperty_resolveAs(_this._widget.side, t2, t3);
|
|
resolvedSide = t4 == null ? A.MaterialStateProperty_resolveAs(chipTheme.side, t2, t3) : t4;
|
|
if (resolvedSide == null)
|
|
resolvedSide = A.MaterialStateProperty_resolveAs(chipDefaults.side, t2, t3);
|
|
t3 = type$.nullable_OutlinedBorder;
|
|
t4 = A.MaterialStateProperty_resolveAs(_this._widget.shape, t2, t3);
|
|
if (t4 == null)
|
|
t4 = A.MaterialStateProperty_resolveAs(chipTheme.shape, t2, t3);
|
|
resolvedShape = t4 == null ? A.MaterialStateProperty_resolveAs(chipDefaults.shape, t2, t3) : t4;
|
|
resolvedShape = (resolvedShape == null ? C.StadiumBorder_Sik : resolvedShape).copyWith$1$side(resolvedSide);
|
|
t3 = _this._widget;
|
|
t3.toString;
|
|
t4 = chipTheme.elevation;
|
|
elevation = t4 == null ? chipDefaults.elevation : t4;
|
|
if (elevation == null)
|
|
elevation = 0;
|
|
t4 = chipTheme.pressElevation;
|
|
pressElevation = t4 == null ? chipDefaults.pressElevation : t4;
|
|
if (pressElevation == null)
|
|
pressElevation = 0;
|
|
shadowColor = chipTheme.shadowColor;
|
|
if (shadowColor == null)
|
|
shadowColor = chipDefaults.shadowColor;
|
|
surfaceTintColor = chipTheme.surfaceTintColor;
|
|
if (surfaceTintColor == null)
|
|
surfaceTintColor = chipDefaults.surfaceTintColor;
|
|
checkmarkColor = chipTheme.checkmarkColor;
|
|
if (checkmarkColor == null)
|
|
checkmarkColor = chipDefaults.checkmarkColor;
|
|
showCheckmark = true;
|
|
t4 = t3.padding;
|
|
padding = t4 == null ? chipTheme.padding : t4;
|
|
if (padding == null) {
|
|
t4 = chipDefaults.padding;
|
|
t4.toString;
|
|
padding = t4;
|
|
}
|
|
labelStyle = chipTheme.labelStyle;
|
|
if (labelStyle == null) {
|
|
t4 = chipDefaults.labelStyle;
|
|
t4.toString;
|
|
labelStyle = t4;
|
|
}
|
|
t4 = t3.labelPadding;
|
|
labelPadding = t4;
|
|
iconTheme = chipTheme.iconTheme;
|
|
if (iconTheme == null)
|
|
iconTheme = chipDefaults.iconTheme;
|
|
effectiveLabelStyle = labelStyle.merge$1(t3.labelStyle);
|
|
resolvedLabelStyle = effectiveLabelStyle.copyWith$1$color(A.MaterialStateProperty_resolveAs(effectiveLabelStyle.color, t2, type$.nullable_Color));
|
|
t1 = iconTheme != null && _this._widget.avatar != null;
|
|
t2 = _this._widget;
|
|
if (t1) {
|
|
t1 = t2.avatar;
|
|
t1.toString;
|
|
avatar = A.IconTheme$(t1, iconTheme, _null);
|
|
} else
|
|
avatar = t2.avatar;
|
|
t1 = _this.get$canTap() && _this._isTapping ? pressElevation : elevation;
|
|
t2 = _this._widget;
|
|
t2 = t2.clipBehavior;
|
|
t3 = _this.updateMaterialState$1(C.MaterialState_1);
|
|
t4 = _this._widget.focusNode;
|
|
t5 = _this.get$canTap() ? _this.get$_handleTap() : _null;
|
|
t6 = _this.get$canTap() ? _this.get$_handleTapDown() : _null;
|
|
t7 = _this.get$canTap() ? _this.get$_handleTapCancel() : _null;
|
|
t8 = _this.get$canTap() ? _this.updateMaterialState$1(C.MaterialState_0) : _null;
|
|
t9 = _this.___RawChipState_selectController_A;
|
|
t9 === $ && A.throwUnnamedLateFieldNI();
|
|
t10 = _this.___RawChipState_enableController_A;
|
|
t10 === $ && A.throwUnnamedLateFieldNI();
|
|
t10 = A._setArrayType([t9, t10], type$.JSArray_Listenable);
|
|
t9 = _this._widget;
|
|
t9 = A.DefaultTextStyle$(t9.label, _null, 1, C.TextOverflow_1, false, resolvedLabelStyle, C.TextAlign_4, _null, C.TextWidthBasis_0);
|
|
t11 = B.AnimatedSwitcher$(avatar, C.Duration_150000, C.Cubic_ifx);
|
|
t12 = B.AnimatedSwitcher$(_this._buildDeleteIcon$4(context, theme, chipTheme, chipDefaults), C.Duration_150000, C.Cubic_ifx);
|
|
t13 = padding.resolve$1(textDirection);
|
|
_this._widget.toString;
|
|
t14 = theme.visualDensity;
|
|
t15 = labelPadding.resolve$1(textDirection);
|
|
t16 = _this._widget.avatar;
|
|
t17 = _this.get$canTap();
|
|
_this._widget.toString;
|
|
t18 = _this.___RawChipState_checkmarkAnimation_A;
|
|
t18 === $ && A.throwUnnamedLateFieldNI();
|
|
t19 = _this.___RawChipState_enableAnimation_A;
|
|
t19 === $ && A.throwUnnamedLateFieldNI();
|
|
t20 = _this.___RawChipState_avatarDrawerAnimation_A;
|
|
t20 === $ && A.throwUnnamedLateFieldNI();
|
|
t21 = _this.___RawChipState_deleteDrawerAnimation_A;
|
|
t21 === $ && A.throwUnnamedLateFieldNI();
|
|
result = A.Material$(C.Duration_75000, true, _null, A.InkWell$(false, _null, true, A.AnimatedBuilder$(new A._MergingListenable(t10), new B._RawChipState_build_closure(_this, resolvedShape, theme, chipTheme, chipDefaults), _this._wrapWithTooltip$3$child$enabled$tooltip(new B._ChipRenderWidget(new B._ChipRenderTheme(t11, t9, t12, brightness, t13, t14, t15, t16 != null, showCheckmark, checkmarkColor, t17), false, true, t18, t20, t21, t19, C.CircleBorder_Umb, _null), false, _null)), resolvedShape, true, _null, t4, _null, _null, _null, _null, _null, t3, _null, t8, _null, t5, t7, t6, _null, _null, _null, _null, _null), t2, _null, t1, _null, shadowColor, resolvedShape, surfaceTintColor, _null, C.MaterialType_0);
|
|
_this._widget.toString;
|
|
densityAdjustment = new A.Offset(t14.horizontal, t14.vertical).$mul(0, 4);
|
|
t1 = _this._widget.materialTapTargetSize;
|
|
switch ((t1 == null ? theme.materialTapTargetSize : t1).index) {
|
|
case 0:
|
|
constraints = new A.BoxConstraints(48 + densityAdjustment._dx, 1 / 0, 48 + densityAdjustment._dy, 1 / 0);
|
|
break;
|
|
case 1:
|
|
constraints = C.BoxConstraints_mlX0;
|
|
break;
|
|
default:
|
|
constraints = _null;
|
|
}
|
|
t1 = A.Center$(result, 1, 1);
|
|
return new A.Semantics(A.SemanticsProperties$(_null, _null, _null, _null, _null, false, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, false, _null, _null, _null, _null, _null, _null, _null, _null), true, false, false, new B._ChipRedirectingHitDetectionWidget(constraints, t1, _null), _null);
|
|
}
|
|
};
|
|
B._ChipRedirectingHitDetectionWidget.prototype = {
|
|
createRenderObject$1(context) {
|
|
var t1 = new B._RenderChipRedirectingHitDetection(this.constraints, null, A.LayerHandle$(type$.ContainerLayer));
|
|
t1.RenderObject$0();
|
|
t1.set$child(null);
|
|
return t1;
|
|
},
|
|
updateRenderObject$2(context, renderObject) {
|
|
renderObject.set$additionalConstraints(this.constraints);
|
|
}
|
|
};
|
|
B._RenderChipRedirectingHitDetection.prototype = {
|
|
hitTest$2$position(result, position) {
|
|
var offset;
|
|
if (!this._box$_size.contains$1(0, position))
|
|
return false;
|
|
offset = new A.Offset(position._dx, this._box$_size._dy / 2);
|
|
return result.addWithRawTransform$3$hitTest$position$transform(new B._RenderChipRedirectingHitDetection_hitTest_closure(this, offset), position, A.MatrixUtils_forceToPoint(offset));
|
|
}
|
|
};
|
|
B._ChipRenderWidget.prototype = {
|
|
get$slots() {
|
|
return D.List_6UD;
|
|
},
|
|
childForSlot$1(slot) {
|
|
switch (slot.index) {
|
|
case 0:
|
|
return this.theme.label;
|
|
case 1:
|
|
return this.theme.avatar;
|
|
case 2:
|
|
return this.theme.deleteIcon;
|
|
}
|
|
},
|
|
updateRenderObject$2(context, renderObject) {
|
|
var t1, _this = this;
|
|
renderObject.set$theme(_this.theme);
|
|
t1 = context.dependOnInheritedWidgetOfExactType$1$0(type$.Directionality);
|
|
t1.toString;
|
|
renderObject.set$textDirection(t1.textDirection);
|
|
renderObject.value = false;
|
|
renderObject.isEnabled = true;
|
|
renderObject.checkmarkAnimation = _this.checkmarkAnimation;
|
|
renderObject.avatarDrawerAnimation = _this.avatarDrawerAnimation;
|
|
renderObject.deleteDrawerAnimation = _this.deleteDrawerAnimation;
|
|
renderObject.enableAnimation = _this.enableAnimation;
|
|
renderObject.avatarBorder = _this.avatarBorder;
|
|
},
|
|
createRenderObject$1(context) {
|
|
var t2, t3, _this = this,
|
|
t1 = context.dependOnInheritedWidgetOfExactType$1$0(type$.Directionality);
|
|
t1.toString;
|
|
t1 = new B._RenderChip(false, true, _this.checkmarkAnimation, _this.avatarDrawerAnimation, _this.deleteDrawerAnimation, _this.enableAnimation, _this.avatarBorder, _this.theme, t1.textDirection, A.LinkedHashMap_LinkedHashMap$_empty(type$._ChipSlot, type$.RenderBox), A.LayerHandle$(type$.ContainerLayer));
|
|
t1.RenderObject$0();
|
|
t2 = t1.get$markNeedsPaint();
|
|
t1.checkmarkAnimation.parent.addListener$1(0, t2);
|
|
t3 = t1.get$markNeedsLayout();
|
|
t1.avatarDrawerAnimation.parent.addListener$1(0, t3);
|
|
t1.deleteDrawerAnimation.parent.addListener$1(0, t3);
|
|
t1.enableAnimation.parent.addListener$1(0, t2);
|
|
return t1;
|
|
}
|
|
};
|
|
B._ChipSlot.prototype = {
|
|
_enumToString$0() {
|
|
return "_ChipSlot." + this._core$_name;
|
|
}
|
|
};
|
|
B._ChipRenderTheme.prototype = {
|
|
$eq(_, other) {
|
|
var _this = this;
|
|
if (other == null)
|
|
return false;
|
|
if (_this === other)
|
|
return true;
|
|
if (J.get$runtimeType$(other) !== A.getRuntimeTypeOfDartObject(_this))
|
|
return false;
|
|
return other instanceof B._ChipRenderTheme && other.avatar.super$Object$$eq(0, _this.avatar) && other.label.super$Object$$eq(0, _this.label) && other.deleteIcon.super$Object$$eq(0, _this.deleteIcon) && other.brightness === _this.brightness && other.padding.$eq(0, _this.padding) && other.labelPadding.$eq(0, _this.labelPadding) && other.showAvatar === _this.showAvatar && J.$eq$(other.checkmarkColor, _this.checkmarkColor) && other.canTapBody === _this.canTapBody;
|
|
},
|
|
get$hashCode(_) {
|
|
var _this = this;
|
|
return A.Object_hash(_this.avatar, _this.label, _this.deleteIcon, _this.brightness, _this.padding, _this.labelPadding, _this.showAvatar, true, _this.checkmarkColor, _this.canTapBody, C.C_SentinelValue, C.C_SentinelValue, C.C_SentinelValue, C.C_SentinelValue, C.C_SentinelValue, C.C_SentinelValue, C.C_SentinelValue, C.C_SentinelValue, C.C_SentinelValue, C.C_SentinelValue);
|
|
}
|
|
};
|
|
B._RenderChip.prototype = {
|
|
set$theme(value) {
|
|
if (this._chip$_theme.$eq(0, value))
|
|
return;
|
|
this._chip$_theme = value;
|
|
this.markNeedsLayout$0();
|
|
},
|
|
set$textDirection(value) {
|
|
if (this._chip$_textDirection === value)
|
|
return;
|
|
this._chip$_textDirection = value;
|
|
this.markNeedsLayout$0();
|
|
},
|
|
get$children(_) {
|
|
var t3,
|
|
t1 = A._setArrayType([], type$.JSArray_RenderBox),
|
|
t2 = this.SlottedContainerRenderObjectMixin__slotToChild;
|
|
if (t2.$index(0, D._ChipSlot_1) != null) {
|
|
t3 = t2.$index(0, D._ChipSlot_1);
|
|
t3.toString;
|
|
t1.push(t3);
|
|
}
|
|
if (t2.$index(0, D._ChipSlot_0) != null) {
|
|
t3 = t2.$index(0, D._ChipSlot_0);
|
|
t3.toString;
|
|
t1.push(t3);
|
|
}
|
|
if (t2.$index(0, D._ChipSlot_2) != null) {
|
|
t2 = t2.$index(0, D._ChipSlot_2);
|
|
t2.toString;
|
|
t1.push(t2);
|
|
}
|
|
return t1;
|
|
},
|
|
get$sizedByParent() {
|
|
return false;
|
|
},
|
|
computeMinIntrinsicWidth$1(height) {
|
|
var t5,
|
|
t1 = this._chip$_theme.padding.get$horizontal(),
|
|
t2 = this._chip$_theme.labelPadding.get$horizontal(),
|
|
t3 = this.SlottedContainerRenderObjectMixin__slotToChild,
|
|
t4 = t3.$index(0, D._ChipSlot_1);
|
|
t4 = t4 == null ? 0 : t4._computeIntrinsicDimension$3(C._IntrinsicDimension_0, height, t4.get$computeMinIntrinsicWidth());
|
|
t5 = t3.$index(0, D._ChipSlot_0);
|
|
t5 = t5 == null ? 0 : t5._computeIntrinsicDimension$3(C._IntrinsicDimension_0, height, t5.get$computeMinIntrinsicWidth());
|
|
t3 = t3.$index(0, D._ChipSlot_2);
|
|
t3 = t3 == null ? 0 : t3._computeIntrinsicDimension$3(C._IntrinsicDimension_0, height, t3.get$computeMinIntrinsicWidth());
|
|
return t1 + t2 + t4 + t5 + t3;
|
|
},
|
|
computeMaxIntrinsicWidth$1(height) {
|
|
var t5,
|
|
t1 = this._chip$_theme.padding.get$horizontal(),
|
|
t2 = this._chip$_theme.labelPadding.get$horizontal(),
|
|
t3 = this.SlottedContainerRenderObjectMixin__slotToChild,
|
|
t4 = t3.$index(0, D._ChipSlot_1);
|
|
t4 = t4 == null ? 0 : t4._computeIntrinsicDimension$3(C._IntrinsicDimension_1, height, t4.get$computeMaxIntrinsicWidth());
|
|
t5 = t3.$index(0, D._ChipSlot_0);
|
|
t5 = t5 == null ? 0 : t5._computeIntrinsicDimension$3(C._IntrinsicDimension_1, height, t5.get$computeMaxIntrinsicWidth());
|
|
t3 = t3.$index(0, D._ChipSlot_2);
|
|
t3 = t3 == null ? 0 : t3._computeIntrinsicDimension$3(C._IntrinsicDimension_1, height, t3.get$computeMaxIntrinsicWidth());
|
|
return t1 + t2 + t4 + t5 + t3;
|
|
},
|
|
computeMinIntrinsicHeight$1(width) {
|
|
var t3, t4, t5,
|
|
t1 = this._chip$_theme.padding,
|
|
t2 = t1.get$_top(t1);
|
|
t1 = t1.get$_bottom(t1);
|
|
t3 = this._chip$_theme.labelPadding;
|
|
t4 = t3.get$_top(t3);
|
|
t3 = t3.get$_bottom(t3);
|
|
t5 = this.SlottedContainerRenderObjectMixin__slotToChild.$index(0, D._ChipSlot_0);
|
|
t5 = t5 == null ? 0 : t5._computeIntrinsicDimension$3(C._IntrinsicDimension_2, width, t5.get$computeMinIntrinsicHeight());
|
|
return Math.max(32, t2 + t1 + (t4 + t3) + t5);
|
|
},
|
|
computeMaxIntrinsicHeight$1(width) {
|
|
return this.computeMinIntrinsicHeight$1(width);
|
|
},
|
|
computeDistanceToActualBaseline$1(baseline) {
|
|
return this.SlottedContainerRenderObjectMixin__slotToChild.$index(0, D._ChipSlot_0).getDistanceToActualBaseline$1(baseline);
|
|
},
|
|
_layoutLabel$5(contentConstraints, iconSizes, size, rawSize, layoutChild) {
|
|
var maxWidth, updatedSize, t2, t3, t4, _this = this,
|
|
t1 = contentConstraints.maxWidth;
|
|
if (isFinite(t1)) {
|
|
maxWidth = Math.max(0, t1 - iconSizes - _this._chip$_theme.labelPadding.get$horizontal() - _this._chip$_theme.padding.get$horizontal());
|
|
t1 = _this.SlottedContainerRenderObjectMixin__slotToChild.$index(0, D._ChipSlot_0);
|
|
t1.toString;
|
|
updatedSize = layoutChild.call$2(t1, new A.BoxConstraints(0, maxWidth, rawSize._dy, size._dy));
|
|
t1 = updatedSize._dx;
|
|
t2 = _this._chip$_theme.labelPadding.get$horizontal();
|
|
t3 = updatedSize._dy;
|
|
t4 = _this._chip$_theme.labelPadding;
|
|
return new A.Size(t1 + t2, t3 + (t4.get$_top(t4) + t4.get$_bottom(t4)));
|
|
}
|
|
t1 = _this.SlottedContainerRenderObjectMixin__slotToChild.$index(0, D._ChipSlot_0);
|
|
t1.toString;
|
|
updatedSize = layoutChild.call$2(t1, new A.BoxConstraints(0, size._dx, rawSize._dy, size._dy));
|
|
t1 = updatedSize._dx;
|
|
t2 = _this._chip$_theme.labelPadding.get$horizontal();
|
|
t3 = updatedSize._dy;
|
|
t4 = _this._chip$_theme.labelPadding;
|
|
return new A.Size(t1 + t2, t3 + (t4.get$_top(t4) + t4.get$_bottom(t4)));
|
|
},
|
|
_layoutAvatar$3(contentConstraints, contentSize, layoutChild) {
|
|
var avatarBoxSize, t2, avatarWidth,
|
|
requestedSize = Math.max(0, contentSize),
|
|
avatarConstraints = A.BoxConstraints$tightFor(requestedSize, requestedSize),
|
|
t1 = this.SlottedContainerRenderObjectMixin__slotToChild.$index(0, D._ChipSlot_1);
|
|
t1.toString;
|
|
avatarBoxSize = layoutChild.call$2(t1, avatarConstraints);
|
|
t1 = this._chip$_theme;
|
|
t2 = this.avatarDrawerAnimation;
|
|
avatarWidth = t1.showAvatar ? 0 + t2.get$value(t2) * avatarBoxSize._dx : 0 + t2.get$value(t2) * contentSize;
|
|
return new A.Size(avatarWidth, 0 + avatarBoxSize._dy);
|
|
},
|
|
_layoutDeleteIcon$3(contentConstraints, contentSize, layoutChild) {
|
|
var boxSize,
|
|
requestedSize = Math.max(0, contentSize),
|
|
deleteIconConstraints = A.BoxConstraints$tightFor(requestedSize, requestedSize),
|
|
t1 = this.SlottedContainerRenderObjectMixin__slotToChild.$index(0, D._ChipSlot_2);
|
|
t1.toString;
|
|
boxSize = layoutChild.call$2(t1, deleteIconConstraints);
|
|
t1 = this.deleteDrawerAnimation;
|
|
if (t1.get$status(t1) === C.AnimationStatus_0)
|
|
return new A.Size(0, contentSize);
|
|
t1 = this.deleteDrawerAnimation;
|
|
return new A.Size(0 + t1.get$value(t1) * boxSize._dx, 0 + boxSize._dy);
|
|
},
|
|
hitTest$2$position(result, position) {
|
|
var t1, t2, t3, t4, hitIsOnDeleteIcon, hitTestChild, center, _this = this;
|
|
if (!_this._box$_size.contains$1(0, position))
|
|
return false;
|
|
t1 = _this.SlottedContainerRenderObjectMixin__slotToChild;
|
|
if (t1.$index(0, D._ChipSlot_2) != null) {
|
|
t2 = _this._chip$_theme;
|
|
t3 = _this._box$_size;
|
|
t3.toString;
|
|
t4 = t1.$index(0, D._ChipSlot_2)._box$_size;
|
|
t4.toString;
|
|
hitIsOnDeleteIcon = B._hitIsOnDeleteIcon(t3, t4, t2.padding, position, _this._chip$_textDirection);
|
|
} else
|
|
hitIsOnDeleteIcon = false;
|
|
if (hitIsOnDeleteIcon) {
|
|
t2 = t1.$index(0, D._ChipSlot_2);
|
|
if (t2 == null)
|
|
t2 = t1.$index(0, D._ChipSlot_0);
|
|
hitTestChild = t2 == null ? t1.$index(0, D._ChipSlot_1) : t2;
|
|
} else {
|
|
t2 = t1.$index(0, D._ChipSlot_0);
|
|
hitTestChild = t2 == null ? t1.$index(0, D._ChipSlot_1) : t2;
|
|
}
|
|
if (hitTestChild != null) {
|
|
center = hitTestChild._box$_size.center$1(C.Offset_0_0);
|
|
return result.addWithRawTransform$3$hitTest$position$transform(new B._RenderChip_hitTest_closure(center, hitTestChild), position, A.MatrixUtils_forceToPoint(center));
|
|
}
|
|
return false;
|
|
},
|
|
computeDryLayout$1(constraints) {
|
|
return this._chip$_computeSizes$2(constraints, A.layout_helper_ChildLayoutHelper_dryLayoutChild$closure()).size;
|
|
},
|
|
_chip$_computeSizes$2(constraints, layoutChild) {
|
|
var rawLabelSize, t2, t3, t4, t5, t6, contentSize, avatarSize, deleteIconSize, labelSize, overallSize, _this = this,
|
|
contentConstraints = new A.BoxConstraints(0, constraints.maxWidth, 0, constraints.maxHeight),
|
|
t1 = _this._chip$_theme.visualDensity,
|
|
densityAdjustment = new A.Offset(0, new A.Offset(t1.horizontal, t1.vertical).$mul(0, 4)._dy / 2);
|
|
t1 = _this.SlottedContainerRenderObjectMixin__slotToChild.$index(0, D._ChipSlot_0);
|
|
t1.toString;
|
|
rawLabelSize = layoutChild.call$2(t1, contentConstraints);
|
|
t1 = _this._chip$_theme.padding;
|
|
t2 = t1.get$_top(t1);
|
|
t1 = t1.get$_bottom(t1);
|
|
t3 = _this._chip$_theme.labelPadding;
|
|
t4 = t3.get$_top(t3);
|
|
t3 = t3.get$_bottom(t3);
|
|
t5 = rawLabelSize._dy;
|
|
t6 = _this._chip$_theme.labelPadding;
|
|
contentSize = Math.max(32 - (t2 + t1) + (t4 + t3), t5 + (t6.get$_top(t6) + t6.get$_bottom(t6)));
|
|
avatarSize = _this._layoutAvatar$3(contentConstraints, contentSize, layoutChild);
|
|
deleteIconSize = _this._layoutDeleteIcon$3(contentConstraints, contentSize, layoutChild);
|
|
t6 = avatarSize._dx;
|
|
t5 = deleteIconSize._dx;
|
|
labelSize = _this._layoutLabel$5(contentConstraints, t6 + t5, new A.Size(rawLabelSize._dx, contentSize), rawLabelSize, layoutChild);
|
|
overallSize = new A.Size(t6 + labelSize._dx + t5, contentSize).$add(0, densityAdjustment);
|
|
t5 = _this._chip$_theme.padding.get$horizontal();
|
|
t6 = _this._chip$_theme.padding;
|
|
return new B._ChipSizes(constraints.constrain$1(new A.Size(overallSize._dx + t5, overallSize._dy + (t6.get$_top(t6) + t6.get$_bottom(t6)))), overallSize, contentSize, avatarSize, labelSize, deleteIconSize, densityAdjustment);
|
|
},
|
|
performLayout$0() {
|
|
var t3, avatarOffset, start, labelOffset, t4, t5, deleteIconOffset, t6, t7, _this = this,
|
|
t1 = type$.BoxConstraints,
|
|
sizes = _this._chip$_computeSizes$2(t1._as(A.RenderObject.prototype.get$constraints.call(_this)), A.layout_helper_ChildLayoutHelper_layoutChild$closure()),
|
|
t2 = sizes.overall,
|
|
right = t2._dx,
|
|
centerLayout = new B._RenderChip_performLayout_centerLayout(_this, sizes);
|
|
switch (_this._chip$_textDirection.index) {
|
|
case 0:
|
|
t3 = sizes.avatar;
|
|
avatarOffset = centerLayout.call$2(t3, right);
|
|
start = right - t3._dx;
|
|
t3 = sizes.label;
|
|
labelOffset = centerLayout.call$2(t3, start);
|
|
t4 = _this.deleteDrawerAnimation;
|
|
if (t4.get$status(t4) !== C.AnimationStatus_0) {
|
|
t4 = sizes.deleteIcon;
|
|
t5 = _this._chip$_theme.padding;
|
|
_this.___RenderChip__deleteButtonRect_A = new A.Rect(0, 0, 0 + (t4._dx + t5.right), 0 + (t2._dy + (t5.get$_top(t5) + t5.get$_bottom(t5))));
|
|
deleteIconOffset = centerLayout.call$2(t4, start - t3._dx);
|
|
} else {
|
|
_this.___RenderChip__deleteButtonRect_A = C.Rect_0_0_0_0;
|
|
deleteIconOffset = C.Offset_0_0;
|
|
}
|
|
t3 = _this._chip$_theme;
|
|
if (t3.canTapBody) {
|
|
t4 = _this.___RenderChip__deleteButtonRect_A;
|
|
t4 === $ && A.throwUnnamedLateFieldNI();
|
|
t4 = t4.right - t4.left;
|
|
t3 = t3.padding.get$horizontal();
|
|
t5 = _this._chip$_theme.padding;
|
|
_this.___RenderChip__pressRect_A = new A.Rect(t4, 0, t4 + (right - t4 + t3), 0 + (t2._dy + (t5.get$_top(t5) + t5.get$_bottom(t5))));
|
|
} else
|
|
_this.___RenderChip__pressRect_A = C.Rect_0_0_0_0;
|
|
break;
|
|
case 1:
|
|
t3 = sizes.avatar;
|
|
t4 = _this.SlottedContainerRenderObjectMixin__slotToChild;
|
|
t5 = t4.$index(0, D._ChipSlot_1);
|
|
if (t5 == null)
|
|
t5 = C.Size_0_0;
|
|
else {
|
|
t5 = t5._box$_size;
|
|
t5.toString;
|
|
}
|
|
t6 = t3._dx;
|
|
avatarOffset = centerLayout.call$2(t3, 0 - t5._dx + t6);
|
|
start = 0 + t6;
|
|
t3 = sizes.label;
|
|
labelOffset = centerLayout.call$2(t3, start);
|
|
start += t3._dx;
|
|
if (_this._chip$_theme.canTapBody) {
|
|
t3 = _this.deleteDrawerAnimation;
|
|
t3 = t3.get$status(t3);
|
|
t5 = _this._chip$_theme.padding;
|
|
t3 = t3 !== C.AnimationStatus_0 ? start + t5.left : right + t5.get$horizontal();
|
|
t5 = _this._chip$_theme.padding;
|
|
_this.___RenderChip__pressRect_A = new A.Rect(0, 0, 0 + t3, 0 + (t2._dy + (t5.get$_top(t5) + t5.get$_bottom(t5))));
|
|
} else
|
|
_this.___RenderChip__pressRect_A = C.Rect_0_0_0_0;
|
|
t3 = t4.$index(0, D._ChipSlot_2);
|
|
if (t3 == null)
|
|
t3 = C.Size_0_0;
|
|
else {
|
|
t3 = t3._box$_size;
|
|
t3.toString;
|
|
}
|
|
t4 = sizes.deleteIcon;
|
|
t5 = t4._dx;
|
|
start -= t3._dx - t5;
|
|
t3 = _this.deleteDrawerAnimation;
|
|
if (t3.get$status(t3) !== C.AnimationStatus_0) {
|
|
deleteIconOffset = centerLayout.call$2(t4, start);
|
|
t3 = _this._chip$_theme.padding;
|
|
t4 = start + t3.left;
|
|
_this.___RenderChip__deleteButtonRect_A = new A.Rect(t4, 0, t4 + (t5 + t3.right), 0 + (t2._dy + (t3.get$_top(t3) + t3.get$_bottom(t3))));
|
|
} else {
|
|
_this.___RenderChip__deleteButtonRect_A = C.Rect_0_0_0_0;
|
|
deleteIconOffset = C.Offset_0_0;
|
|
}
|
|
break;
|
|
default:
|
|
avatarOffset = C.Offset_0_0;
|
|
labelOffset = C.Offset_0_0;
|
|
deleteIconOffset = C.Offset_0_0;
|
|
}
|
|
t3 = _this._chip$_theme.labelPadding;
|
|
t4 = t3.get$_top(t3);
|
|
t3 = t3.get$_bottom(t3);
|
|
t5 = _this.SlottedContainerRenderObjectMixin__slotToChild;
|
|
t6 = t5.$index(0, D._ChipSlot_0);
|
|
if (t6 == null)
|
|
t6 = C.Size_0_0;
|
|
else {
|
|
t6 = t6._box$_size;
|
|
t6.toString;
|
|
}
|
|
labelOffset = labelOffset.$add(0, new A.Offset(0, (sizes.label._dy - (t4 + t3) - t6._dy) / 2));
|
|
t6 = t5.$index(0, D._ChipSlot_1).parentData;
|
|
t6.toString;
|
|
t3 = type$.BoxParentData;
|
|
t3._as(t6);
|
|
t4 = _this._chip$_theme.padding;
|
|
t6.offset = new A.Offset(t4.left, t4.top).$add(0, avatarOffset);
|
|
t4 = t5.$index(0, D._ChipSlot_0).parentData;
|
|
t4.toString;
|
|
t3._as(t4);
|
|
t6 = _this._chip$_theme.padding;
|
|
t6 = new A.Offset(t6.left, t6.top).$add(0, labelOffset);
|
|
t7 = _this._chip$_theme.labelPadding;
|
|
t4.offset = t6.$add(0, new A.Offset(t7.left, t7.top));
|
|
t5 = t5.$index(0, D._ChipSlot_2).parentData;
|
|
t5.toString;
|
|
t3._as(t5);
|
|
t3 = _this._chip$_theme.padding;
|
|
t5.offset = new A.Offset(t3.left, t3.top).$add(0, deleteIconOffset);
|
|
t3 = _this._chip$_theme.padding.get$horizontal();
|
|
t5 = _this._chip$_theme.padding;
|
|
t7 = t5.get$_top(t5);
|
|
t5 = t5.get$_bottom(t5);
|
|
_this._box$_size = t1._as(A.RenderObject.prototype.get$constraints.call(_this)).constrain$1(new A.Size(right + t3, t2._dy + (t7 + t5)));
|
|
},
|
|
get$_chip$_disabledColor() {
|
|
var enableTween,
|
|
t1 = this.enableAnimation;
|
|
if (t1.get$status(t1) === C.AnimationStatus_3)
|
|
return C.Color_4294967295;
|
|
switch (this._chip$_theme.brightness.index) {
|
|
case 1:
|
|
enableTween = new A.ColorTween(A.Color$fromARGB(97, 255, 255, 255), C.Color_4294967295);
|
|
break;
|
|
case 0:
|
|
enableTween = new A.ColorTween(A.Color$fromARGB(97, 0, 0, 0), C.Color_4278190080);
|
|
break;
|
|
default:
|
|
enableTween = null;
|
|
}
|
|
t1 = this.enableAnimation;
|
|
t1 = enableTween.transform$1(0, t1.get$value(t1));
|
|
t1.toString;
|
|
return t1;
|
|
},
|
|
_paintCheck$3(canvas, origin, size) {
|
|
var paint, t2, t, path, t3, t4, mid, t5, t6, t7, t8, _this = this,
|
|
t1 = _this._chip$_theme,
|
|
paintColor = t1.checkmarkColor;
|
|
if (!(paintColor != null))
|
|
switch (t1.brightness.index) {
|
|
case 1:
|
|
paintColor = t1.showAvatar ? C.Color_4294967295 : A.Color$fromARGB(222, 0, 0, 0);
|
|
break;
|
|
case 0:
|
|
paintColor = t1.showAvatar ? C.Color_4278190080 : A.Color$fromARGB(222, 255, 255, 255);
|
|
break;
|
|
default:
|
|
paintColor = null;
|
|
}
|
|
t1 = _this.checkmarkAnimation.parent;
|
|
if (t1.get$status(t1) === C.AnimationStatus_2) {
|
|
t1 = _this.checkmarkAnimation;
|
|
paintColor = new A.ColorTween(C.Color_0, paintColor).transform$1(0, t1.get$value(t1));
|
|
}
|
|
t1 = $.$get$_renderer();
|
|
paint = t1.createPaint$0();
|
|
paintColor.toString;
|
|
paint.set$color(0, paintColor);
|
|
paint.set$style(0, C.PaintingStyle_1);
|
|
t2 = _this.SlottedContainerRenderObjectMixin__slotToChild;
|
|
paint.set$strokeWidth(2 * (t2.$index(0, D._ChipSlot_1) != null ? t2.$index(0, D._ChipSlot_1)._box$_size._dy / 24 : 1));
|
|
t2 = _this.checkmarkAnimation.parent;
|
|
if (t2.get$status(t2) === C.AnimationStatus_2)
|
|
t = 1;
|
|
else {
|
|
t2 = _this.checkmarkAnimation;
|
|
t = t2.get$value(t2);
|
|
}
|
|
if (t === 0)
|
|
return;
|
|
path = t1.createPath$0();
|
|
t1 = size * 0.15;
|
|
t2 = size * 0.45;
|
|
t3 = size * 0.4;
|
|
t4 = size * 0.7;
|
|
mid = new A.Offset(t3, t4);
|
|
t5 = origin._dx;
|
|
t6 = origin._dy;
|
|
t7 = t5 + t1;
|
|
t8 = t6 + t2;
|
|
if (t < 0.5) {
|
|
t1 = A.Offset_lerp(new A.Offset(t1, t2), mid, t * 2);
|
|
t1.toString;
|
|
path.moveTo$2(0, t7, t8);
|
|
path.lineTo$2(0, t5 + t1._dx, t6 + t1._dy);
|
|
} else {
|
|
t1 = A.Offset_lerp(mid, new A.Offset(size * 0.85, size * 0.25), (t - 0.5) * 2);
|
|
t1.toString;
|
|
path.moveTo$2(0, t7, t8);
|
|
path.lineTo$2(0, t5 + t3, t6 + t4);
|
|
path.lineTo$2(0, t5 + t1._dx, t6 + t1._dy);
|
|
}
|
|
canvas.drawPath$2(path, paint);
|
|
},
|
|
_paintAvatar$2(context, offset) {
|
|
var t2, disabledColor, disabledColorAlpha, t3, t4, t5, _this = this,
|
|
t1 = new B._RenderChip__paintAvatar_paintWithOverlay(_this);
|
|
if (!_this._chip$_theme.showAvatar) {
|
|
t2 = _this.avatarDrawerAnimation;
|
|
t2 = t2.get$status(t2) === C.AnimationStatus_0;
|
|
} else
|
|
t2 = false;
|
|
if (t2)
|
|
return;
|
|
disabledColor = _this.get$_chip$_disabledColor();
|
|
disabledColorAlpha = disabledColor.get$value(disabledColor) >>> 24 & 255;
|
|
t2 = _this.__RenderObject__needsCompositing_A;
|
|
t2 === $ && A.throwUnnamedLateFieldNI();
|
|
if (t2)
|
|
context.pushLayer$3(A.OpacityLayer$(disabledColorAlpha), t1, offset);
|
|
else {
|
|
t2 = disabledColorAlpha !== 255;
|
|
if (t2) {
|
|
t3 = context.get$canvas(context);
|
|
t4 = B._RenderChip__boxRect(_this.SlottedContainerRenderObjectMixin__slotToChild.$index(0, D._ChipSlot_1)).shift$1(offset).inflate$1(20);
|
|
t5 = $.$get$_renderer().createPaint$0();
|
|
t5.set$color(0, disabledColor);
|
|
t3.saveLayer$2(t4, t5);
|
|
}
|
|
t1.call$2(context, offset);
|
|
if (t2)
|
|
context.get$canvas(context).restore$0(0);
|
|
}
|
|
},
|
|
_paintChild$4(context, offset, child, isEnabled) {
|
|
var t1, t2, childRect, t3, _this = this;
|
|
if (child == null)
|
|
return;
|
|
t1 = _this.get$_chip$_disabledColor();
|
|
t1 = t1.get$value(t1);
|
|
t2 = _this.enableAnimation;
|
|
if (t2.get$status(t2) !== C.AnimationStatus_3) {
|
|
t2 = _this.__RenderObject__needsCompositing_A;
|
|
t2 === $ && A.throwUnnamedLateFieldNI();
|
|
if (t2)
|
|
context.pushLayer$3(A.OpacityLayer$(t1 >>> 24 & 255), new B._RenderChip__paintChild_closure(child), offset);
|
|
else {
|
|
childRect = B._RenderChip__boxRect(child).shift$1(offset);
|
|
t1 = context.get$canvas(context);
|
|
t2 = childRect.inflate$1(20);
|
|
t3 = $.$get$_renderer().createPaint$0();
|
|
t3.set$color(0, _this.get$_chip$_disabledColor());
|
|
t1.saveLayer$2(t2, t3);
|
|
t3 = child.parentData;
|
|
t3.toString;
|
|
context.paintChild$2(child, type$.BoxParentData._as(t3).offset.$add(0, offset));
|
|
context.get$canvas(context).restore$0(0);
|
|
}
|
|
} else {
|
|
t1 = child.parentData;
|
|
t1.toString;
|
|
context.paintChild$2(child, type$.BoxParentData._as(t1).offset.$add(0, offset));
|
|
}
|
|
},
|
|
paint$2(context, offset) {
|
|
var t1, _this = this;
|
|
_this._paintAvatar$2(context, offset);
|
|
t1 = _this.deleteDrawerAnimation;
|
|
if (t1.get$status(t1) !== C.AnimationStatus_0)
|
|
_this._paintChild$4(context, offset, _this.SlottedContainerRenderObjectMixin__slotToChild.$index(0, D._ChipSlot_2), true);
|
|
_this._paintChild$4(context, offset, _this.SlottedContainerRenderObjectMixin__slotToChild.$index(0, D._ChipSlot_0), true);
|
|
},
|
|
hitTestSelf$1(position) {
|
|
var t1 = this.___RenderChip__deleteButtonRect_A;
|
|
t1 === $ && A.throwUnnamedLateFieldNI();
|
|
if (!t1.contains$1(0, position)) {
|
|
t1 = this.___RenderChip__pressRect_A;
|
|
t1 === $ && A.throwUnnamedLateFieldNI();
|
|
t1 = t1.contains$1(0, position);
|
|
} else
|
|
t1 = true;
|
|
return t1;
|
|
}
|
|
};
|
|
B._ChipSizes.prototype = {};
|
|
B._UnconstrainedInkSplashFactory.prototype = {
|
|
create$11$borderRadius$color$containedInkWell$controller$customBorder$onRemoved$position$radius$rectCallback$referenceBox$textDirection(_, borderRadius, color, containedInkWell, controller, customBorder, onRemoved, position, radius, rectCallback, referenceBox, textDirection) {
|
|
return this.parentFactory.create$10$borderRadius$color$controller$customBorder$onRemoved$position$radius$rectCallback$referenceBox$textDirection(0, borderRadius, color, controller, customBorder, onRemoved, position, radius, rectCallback, referenceBox, textDirection);
|
|
}
|
|
};
|
|
B.__ChipRenderWidget_RenderObjectWidget_SlottedMultiChildRenderObjectWidgetMixin.prototype = {
|
|
updateRenderObject$2(context, renderObject) {
|
|
return this.super$RenderObjectWidget$updateRenderObject(context, renderObject);
|
|
}
|
|
};
|
|
B.__RawChipState_State_MaterialStateMixin.prototype = {};
|
|
B.__RawChipState_State_MaterialStateMixin_TickerProviderStateMixin.prototype = {
|
|
activate$0() {
|
|
this.super$State$activate();
|
|
this._updateTickerModeNotifier$0();
|
|
this._updateTickers$0();
|
|
},
|
|
dispose$0() {
|
|
var _this = this,
|
|
t1 = _this.TickerProviderStateMixin__tickerModeNotifier;
|
|
if (t1 != null)
|
|
t1.removeListener$1(0, _this.get$_updateTickers());
|
|
_this.TickerProviderStateMixin__tickerModeNotifier = null;
|
|
_this.super$State$dispose();
|
|
}
|
|
};
|
|
B.__RenderChip_RenderBox_SlottedContainerRenderObjectMixin.prototype = {
|
|
attach$1(owner) {
|
|
var t1, t2, _i;
|
|
this.super$RenderObject$attach(owner);
|
|
for (t1 = this.get$children(this), t2 = t1.length, _i = 0; _i < t1.length; t1.length === t2 || (0, A.throwConcurrentModificationError)(t1), ++_i)
|
|
t1[_i].attach$1(owner);
|
|
},
|
|
detach$0(_) {
|
|
var t1, t2, _i;
|
|
this.super$AbstractNode$detach(0);
|
|
for (t1 = this.get$children(this), t2 = t1.length, _i = 0; _i < t1.length; t1.length === t2 || (0, A.throwConcurrentModificationError)(t1), ++_i)
|
|
t1[_i].detach$0(0);
|
|
}
|
|
};
|
|
B.Drawer.prototype = {
|
|
build$1(context) {
|
|
var label, t1, defaults, effectiveShape, t2, t3, t4, t5, t6, _null = null,
|
|
drawerTheme = A.DrawerTheme_of(context);
|
|
switch (A.Theme_of(context).platform.index) {
|
|
case 2:
|
|
case 4:
|
|
label = _null;
|
|
break;
|
|
case 0:
|
|
case 1:
|
|
case 3:
|
|
case 5:
|
|
t1 = A.Localizations_of(context, C.Type_MaterialLocalizations_flR, type$.MaterialLocalizations);
|
|
t1.toString;
|
|
label = t1.get$drawerLabel();
|
|
break;
|
|
default:
|
|
label = _null;
|
|
}
|
|
A.Theme_of(context);
|
|
t1 = context.dependOnInheritedWidgetOfExactType$1$0(type$._DrawerControllerScope);
|
|
t1 = t1 == null ? _null : t1.controller;
|
|
t1 = t1 == null ? _null : t1.alignment;
|
|
defaults = new B._DrawerDefaultsM2(context, _null, _null, 16, _null, _null, _null, _null, _null);
|
|
if (t1 !== C.DrawerAlignment_1) {
|
|
t1 = drawerTheme.shape;
|
|
if (t1 == null)
|
|
t1 = defaults.shape;
|
|
effectiveShape = t1;
|
|
} else {
|
|
t1 = drawerTheme.endShape;
|
|
if (t1 == null)
|
|
t1 = defaults.endShape;
|
|
effectiveShape = t1;
|
|
}
|
|
t1 = drawerTheme.width;
|
|
if (t1 == null)
|
|
t1 = 304;
|
|
t2 = drawerTheme.backgroundColor;
|
|
if (t2 == null)
|
|
t2 = defaults.backgroundColor;
|
|
t3 = this.elevation;
|
|
t4 = drawerTheme.shadowColor;
|
|
if (t4 == null)
|
|
t4 = defaults.get$shadowColor(defaults);
|
|
t5 = drawerTheme.surfaceTintColor;
|
|
if (t5 == null)
|
|
t5 = defaults.surfaceTintColor;
|
|
if (effectiveShape != null)
|
|
t6 = C.Clip_1;
|
|
else
|
|
t6 = C.Clip_0;
|
|
t5 = A.Material$(C.Duration_200000, true, _null, this.child, t6, t2, t3, _null, t4, effectiveShape, t5, _null, C.MaterialType_0);
|
|
return new A.Semantics(A.SemanticsProperties$(_null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, label, _null, _null, _null, _null, _null, true, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, true, _null, _null, _null, _null, _null, _null, _null, _null, _null), false, true, false, new A.ConstrainedBox(new A.BoxConstraints(t1, t1, 1 / 0, 1 / 0), t5, _null), _null);
|
|
}
|
|
};
|
|
B._DrawerDefaultsM2.prototype = {
|
|
get$shadowColor(_) {
|
|
return A.Theme_of(this.context).shadowColor;
|
|
}
|
|
};
|
|
B.Ink.prototype = {
|
|
get$_ink_decoration$_paddingIncludingDecoration() {
|
|
var decorationPadding,
|
|
t1 = this.decoration;
|
|
if (t1 == null) {
|
|
t1 = this.padding;
|
|
return t1 == null ? C.EdgeInsets_0_0_0_0 : t1;
|
|
}
|
|
decorationPadding = t1.get$padding(t1);
|
|
t1 = this.padding;
|
|
if (t1 == null)
|
|
return decorationPadding;
|
|
return t1.add$1(0, decorationPadding);
|
|
},
|
|
createState$0() {
|
|
return new B._InkState(new A.LabeledGlobalKey(null, type$.LabeledGlobalKey_State_StatefulWidget), C._StateLifecycle_0);
|
|
}
|
|
};
|
|
B._InkState.prototype = {
|
|
_handleRemoved$0() {
|
|
this._ink = null;
|
|
},
|
|
deactivate$0() {
|
|
var t2,
|
|
t1 = this._ink;
|
|
if (t1 != null) {
|
|
t2 = t1._ink_decoration$_painter;
|
|
if (t2 != null)
|
|
t2.dispose$0();
|
|
t1.super$InkFeature$dispose();
|
|
}
|
|
this.super$State$deactivate();
|
|
},
|
|
_ink_decoration$_build$1(context) {
|
|
var t3, t4, t5, _this = this,
|
|
t1 = _this._ink,
|
|
t2 = _this._widget;
|
|
if (t1 == null) {
|
|
t1 = t2.decoration;
|
|
t2 = B.Visibility_of(context);
|
|
t3 = A.createLocalImageConfiguration(context, null);
|
|
t4 = A.LookupBoundary_findAncestorRenderObjectOfType(context, type$._RenderInkFeatures);
|
|
t4.toString;
|
|
t5 = $.WidgetsBinding__instance.WidgetsBinding__buildOwner._globalKeyRegistry.$index(0, _this._boxKey).get$renderObject();
|
|
t5.toString;
|
|
t5 = new B.InkDecoration(t3, t4, type$.RenderBox._as(t5), _this.get$_handleRemoved());
|
|
t5.set$decoration(t1);
|
|
t5.set$isVisible(t2);
|
|
t4.addInkFeature$1(t5);
|
|
_this._ink = t5;
|
|
} else {
|
|
t1.set$decoration(t2.decoration);
|
|
t1 = _this._ink;
|
|
t1.toString;
|
|
t1.set$isVisible(B.Visibility_of(context));
|
|
t1 = _this._ink;
|
|
t1.toString;
|
|
t1.set$configuration(A.createLocalImageConfiguration(context, null));
|
|
}
|
|
t1 = _this._widget.child;
|
|
return t1;
|
|
},
|
|
build$1(context) {
|
|
var _this = this,
|
|
t1 = _this._widget.get$_ink_decoration$_paddingIncludingDecoration();
|
|
_this._widget.toString;
|
|
return new A.Padding(t1, new A.Builder(_this.get$_ink_decoration$_build(), null), _this._boxKey);
|
|
}
|
|
};
|
|
B.InkDecoration.prototype = {
|
|
set$decoration(value) {
|
|
var t1, _this = this;
|
|
if (J.$eq$(value, _this._ink_decoration$_decoration))
|
|
return;
|
|
_this._ink_decoration$_decoration = value;
|
|
t1 = _this._ink_decoration$_painter;
|
|
if (t1 != null)
|
|
t1.dispose$0();
|
|
t1 = _this._ink_decoration$_decoration;
|
|
_this._ink_decoration$_painter = t1 == null ? null : t1.createBoxPainter$1(_this.get$_handleChanged());
|
|
_this._material$_controller.markNeedsPaint$0();
|
|
},
|
|
set$isVisible(value) {
|
|
if (value === this._ink_decoration$_isVisible)
|
|
return;
|
|
this._ink_decoration$_isVisible = value;
|
|
this._material$_controller.markNeedsPaint$0();
|
|
},
|
|
set$configuration(value) {
|
|
if (value.$eq(0, this._ink_decoration$_configuration))
|
|
return;
|
|
this._ink_decoration$_configuration = value;
|
|
this._material$_controller.markNeedsPaint$0();
|
|
},
|
|
_handleChanged$0() {
|
|
this._material$_controller.markNeedsPaint$0();
|
|
},
|
|
paintFeature$2(canvas, transform) {
|
|
var originOffset, t1, t2, sizedConfiguration, _this = this;
|
|
if (_this._ink_decoration$_painter == null || !_this._ink_decoration$_isVisible)
|
|
return;
|
|
originOffset = A.MatrixUtils_getAsTranslation(transform);
|
|
t1 = _this._ink_decoration$_configuration;
|
|
t2 = _this.referenceBox._box$_size;
|
|
t2.toString;
|
|
sizedConfiguration = t1.copyWith$1$size(t2);
|
|
if (originOffset == null) {
|
|
canvas.save$0(0);
|
|
canvas.transform$1(0, transform._vector_math_64$_m4storage);
|
|
_this._ink_decoration$_painter.paint$3(canvas, C.Offset_0_0, sizedConfiguration);
|
|
canvas.restore$0(0);
|
|
} else
|
|
_this._ink_decoration$_painter.paint$3(canvas, originOffset, sizedConfiguration);
|
|
}
|
|
};
|
|
B.ListTileTitleAlignment.prototype = {
|
|
_enumToString$0() {
|
|
return "ListTileTitleAlignment." + this._core$_name;
|
|
}
|
|
};
|
|
B.ListTile.prototype = {
|
|
_isDenseLayout$2(theme, tileTheme) {
|
|
return false;
|
|
},
|
|
build$1(context) {
|
|
var t2, t3, t4, effectiveIconColor, effectiveColor, leadingAndTrailingStyle, t5, leadingIcon, titleStyle, titleText, subtitleStyle, subtitleColor, subtitleText, trailingIcon, resolvedContentPadding, effectiveMouseCursor, color, t6, t7, t8, t9, t10, _this = this, _null = null,
|
|
theme = A.Theme_of(context),
|
|
tileTheme = A.ListTileTheme_of(context),
|
|
t1 = tileTheme.style,
|
|
listTileStyle = t1 == null ? theme.listTileTheme.style : t1,
|
|
defaults = new B._LisTileDefaultsM2(context, _null, C.Border_bWW, listTileStyle == null ? D.ListTileStyle_0 : listTileStyle, _null, _null, _null, _null, _null, _null, C.EdgeInsets_16_0_16_0, _null, _null, _null, 4, 40, _null, _null, _null, _null);
|
|
t1 = type$.MaterialState;
|
|
t2 = new B.ListTile_build_resolveColor(A.LinkedHashSet_LinkedHashSet$_empty(t1));
|
|
t3 = t2.call$3(_null, _null, _null);
|
|
if (t3 == null) {
|
|
t3 = tileTheme.iconColor;
|
|
t3 = t2.call$3(t3, tileTheme.selectedColor, t3);
|
|
}
|
|
if (t3 == null) {
|
|
t3 = theme.listTileTheme;
|
|
t4 = t3.iconColor;
|
|
t4 = t2.call$3(t4, t3.selectedColor, t4);
|
|
effectiveIconColor = t4;
|
|
} else
|
|
effectiveIconColor = t3;
|
|
if (effectiveIconColor == null)
|
|
effectiveIconColor = t2.call$4(defaults.get$iconColor(), defaults.get$selectedColor(), defaults.get$iconColor(), theme.disabledColor);
|
|
t3 = t2.call$3(_null, _null, _null);
|
|
if (t3 == null) {
|
|
t3 = tileTheme.textColor;
|
|
t3 = t2.call$3(t3, tileTheme.selectedColor, t3);
|
|
}
|
|
if (t3 == null) {
|
|
t3 = theme.listTileTheme;
|
|
t4 = t3.textColor;
|
|
t4 = t2.call$3(t4, t3.selectedColor, t4);
|
|
effectiveColor = t4;
|
|
} else
|
|
effectiveColor = t3;
|
|
if (effectiveColor == null) {
|
|
t3 = defaults.textColor;
|
|
effectiveColor = t2.call$4(t3, defaults.get$selectedColor(), t3, theme.disabledColor);
|
|
}
|
|
t2 = A.IconButton_styleFrom(_null, _null, _null, _null, _null, _null, effectiveIconColor, _null, _null, _null, _null, _null, _null, _null);
|
|
t3 = _this.leading;
|
|
t4 = t3 == null;
|
|
if (!t4 || _this.trailing != null) {
|
|
leadingAndTrailingStyle = tileTheme.leadingAndTrailingTextStyle;
|
|
if (leadingAndTrailingStyle == null) {
|
|
t5 = defaults.get$leadingAndTrailingTextStyle();
|
|
t5.toString;
|
|
leadingAndTrailingStyle = t5;
|
|
}
|
|
leadingAndTrailingStyle = leadingAndTrailingStyle.copyWith$1$color(effectiveColor);
|
|
} else
|
|
leadingAndTrailingStyle = _null;
|
|
if (!t4) {
|
|
leadingAndTrailingStyle.toString;
|
|
leadingIcon = A.AnimatedDefaultTextStyle$(t3, C.C__Linear, C.Duration_200000, true, leadingAndTrailingStyle);
|
|
} else
|
|
leadingIcon = _null;
|
|
titleStyle = tileTheme.titleTextStyle;
|
|
if (titleStyle == null) {
|
|
t3 = defaults.get$titleTextStyle();
|
|
t3.toString;
|
|
titleStyle = t3;
|
|
}
|
|
_this._isDenseLayout$2(theme, tileTheme);
|
|
titleStyle = titleStyle.copyWith$2$color$fontSize(effectiveColor, _null);
|
|
titleText = A.AnimatedDefaultTextStyle$(_this.title, C.C__Linear, C.Duration_200000, true, titleStyle);
|
|
t3 = _this.subtitle;
|
|
if (t3 != null) {
|
|
subtitleStyle = tileTheme.subtitleTextStyle;
|
|
if (subtitleStyle == null) {
|
|
t4 = defaults.get$subtitleTextStyle();
|
|
t4.toString;
|
|
subtitleStyle = t4;
|
|
}
|
|
subtitleColor = effectiveColor == null ? theme.textTheme.bodySmall.color : effectiveColor;
|
|
_this._isDenseLayout$2(theme, tileTheme);
|
|
subtitleStyle = subtitleStyle.copyWith$2$color$fontSize(subtitleColor, _null);
|
|
subtitleText = A.AnimatedDefaultTextStyle$(t3, C.C__Linear, C.Duration_200000, true, subtitleStyle);
|
|
} else {
|
|
subtitleStyle = _null;
|
|
subtitleText = subtitleStyle;
|
|
}
|
|
t3 = _this.trailing;
|
|
if (t3 != null) {
|
|
leadingAndTrailingStyle.toString;
|
|
trailingIcon = A.AnimatedDefaultTextStyle$(t3, C.C__Linear, C.Duration_200000, true, leadingAndTrailingStyle);
|
|
} else
|
|
trailingIcon = _null;
|
|
t3 = context.dependOnInheritedWidgetOfExactType$1$0(type$.Directionality);
|
|
t3.toString;
|
|
t4 = _this.contentPadding;
|
|
resolvedContentPadding = t4;
|
|
t1 = A.LinkedHashSet_LinkedHashSet$_empty(t1);
|
|
t4 = _this.onTap == null && true;
|
|
if (t4)
|
|
t1.add$1(0, C.MaterialState_6);
|
|
t4 = A.MaterialStateProperty_resolveAs(_null, t1, type$.nullable_MouseCursor);
|
|
if (t4 == null)
|
|
effectiveMouseCursor = _null;
|
|
else
|
|
effectiveMouseCursor = t4;
|
|
if (effectiveMouseCursor == null)
|
|
effectiveMouseCursor = C._EnabledAndDisabledMouseCursor_SystemMouseCursor_click_clickable.resolve$1(t1);
|
|
t1 = tileTheme.shape;
|
|
t4 = t1 == null ? C.Border_bWW : t1;
|
|
t5 = tileTheme.tileColor;
|
|
color = t5 == null ? theme.listTileTheme.tileColor : t5;
|
|
t5 = color == null ? defaults.get$tileColor() : color;
|
|
_this._isDenseLayout$2(theme, tileTheme);
|
|
t6 = titleStyle.textBaseline;
|
|
if (t6 == null) {
|
|
t6 = defaults.get$titleTextStyle().textBaseline;
|
|
t6.toString;
|
|
}
|
|
t7 = subtitleStyle == null ? _null : subtitleStyle.textBaseline;
|
|
if (t7 == null) {
|
|
t7 = defaults.get$subtitleTextStyle().textBaseline;
|
|
t7.toString;
|
|
}
|
|
t8 = tileTheme.horizontalTitleGap;
|
|
if (t8 == null)
|
|
t8 = 16;
|
|
t9 = tileTheme.minVerticalPadding;
|
|
if (t9 == null) {
|
|
t9 = defaults.minVerticalPadding;
|
|
t9.toString;
|
|
}
|
|
t10 = tileTheme.minLeadingWidth;
|
|
if (t10 == null) {
|
|
t10 = defaults.minLeadingWidth;
|
|
t10.toString;
|
|
}
|
|
t4 = B.Ink$(A.SafeArea$(false, A.IconTheme_merge(A.IconButtonTheme$(new B._ListTile(leadingIcon, titleText, subtitleText, trailingIcon, false, false, theme.visualDensity, t3.textDirection, t6, t7, t8, t9, t10, D.ListTileTitleAlignment_1, _null), new A.IconButtonThemeData(t2)), new A.IconThemeData(_null, _null, _null, _null, _null, effectiveIconColor, _null, _null)), true, resolvedContentPadding, true, false), new A.ShapeDecoration(t5, _null, _null, _null, t4), _null);
|
|
return A.InkWell$(false, _null, true, new A.Semantics(A.SemanticsProperties$(_null, _null, _null, _null, _null, _null, _null, _null, _null, _null, true, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, false, _null, _null, _null, _null, _null, _null, _null, _null), false, false, false, t4, _null), t1, true, _null, _null, _null, _null, _null, effectiveMouseCursor, _null, _null, _null, _null, _null, _this.onTap, _null, _null, _null, _null, _null, _null, _null);
|
|
}
|
|
};
|
|
B._IndividualOverrides.prototype = {
|
|
resolve$1(states) {
|
|
var _this = this,
|
|
t1 = _this.explicitColor;
|
|
if (t1 instanceof A.MaterialStateColor)
|
|
return A.MaterialStateProperty_resolveAs(t1, states, type$.nullable_Color);
|
|
if (states.contains$1(0, C.MaterialState_6))
|
|
return _this.disabledColor;
|
|
if (states.contains$1(0, C.MaterialState_4))
|
|
return _this.selectedColor;
|
|
return _this.enabledColor;
|
|
}
|
|
};
|
|
B._ListTileSlot.prototype = {
|
|
_enumToString$0() {
|
|
return "_ListTileSlot." + this._core$_name;
|
|
}
|
|
};
|
|
B._ListTile.prototype = {
|
|
get$slots() {
|
|
return D.List_wsa0;
|
|
},
|
|
childForSlot$1(slot) {
|
|
var _this = this;
|
|
switch (slot.index) {
|
|
case 0:
|
|
return _this.leading;
|
|
case 1:
|
|
return _this.title;
|
|
case 2:
|
|
return _this.subtitle;
|
|
case 3:
|
|
return _this.trailing;
|
|
}
|
|
},
|
|
createRenderObject$1(context) {
|
|
var _this = this,
|
|
t1 = new B._RenderListTile(false, _this.visualDensity, false, _this.textDirection, _this.titleBaselineType, _this.subtitleBaselineType, _this.horizontalTitleGap, _this.minVerticalPadding, _this.minLeadingWidth, _this.titleAlignment, A.LinkedHashMap_LinkedHashMap$_empty(type$._ListTileSlot, type$.RenderBox), A.LayerHandle$(type$.ContainerLayer));
|
|
t1.RenderObject$0();
|
|
return t1;
|
|
},
|
|
updateRenderObject$2(context, renderObject) {
|
|
var _this = this;
|
|
renderObject.set$isThreeLine(false);
|
|
renderObject.set$isDense(false);
|
|
renderObject.set$visualDensity(_this.visualDensity);
|
|
renderObject.set$textDirection(_this.textDirection);
|
|
renderObject.set$titleBaselineType(_this.titleBaselineType);
|
|
renderObject.set$subtitleBaselineType(_this.subtitleBaselineType);
|
|
renderObject.set$horizontalTitleGap(_this.horizontalTitleGap);
|
|
renderObject.set$minLeadingWidth(_this.minLeadingWidth);
|
|
renderObject.set$minVerticalPadding(_this.minVerticalPadding);
|
|
renderObject.set$titleAlignment(_this.titleAlignment);
|
|
}
|
|
};
|
|
B._RenderListTile.prototype = {
|
|
get$children(_) {
|
|
var t3,
|
|
t1 = A._setArrayType([], type$.JSArray_RenderBox),
|
|
t2 = this.SlottedContainerRenderObjectMixin__slotToChild;
|
|
if (t2.$index(0, D._ListTileSlot_0) != null) {
|
|
t3 = t2.$index(0, D._ListTileSlot_0);
|
|
t3.toString;
|
|
t1.push(t3);
|
|
}
|
|
if (t2.$index(0, D._ListTileSlot_1) != null) {
|
|
t3 = t2.$index(0, D._ListTileSlot_1);
|
|
t3.toString;
|
|
t1.push(t3);
|
|
}
|
|
if (t2.$index(0, D._ListTileSlot_2) != null) {
|
|
t3 = t2.$index(0, D._ListTileSlot_2);
|
|
t3.toString;
|
|
t1.push(t3);
|
|
}
|
|
if (t2.$index(0, D._ListTileSlot_3) != null) {
|
|
t2 = t2.$index(0, D._ListTileSlot_3);
|
|
t2.toString;
|
|
t1.push(t2);
|
|
}
|
|
return t1;
|
|
},
|
|
set$isDense(value) {
|
|
return;
|
|
},
|
|
set$visualDensity(value) {
|
|
if (this._visualDensity.$eq(0, value))
|
|
return;
|
|
this._visualDensity = value;
|
|
this.markNeedsLayout$0();
|
|
},
|
|
set$isThreeLine(value) {
|
|
return;
|
|
},
|
|
set$textDirection(value) {
|
|
if (this._list_tile$_textDirection === value)
|
|
return;
|
|
this._list_tile$_textDirection = value;
|
|
this.markNeedsLayout$0();
|
|
},
|
|
set$titleBaselineType(value) {
|
|
if (this._titleBaselineType === value)
|
|
return;
|
|
this._titleBaselineType = value;
|
|
this.markNeedsLayout$0();
|
|
},
|
|
set$subtitleBaselineType(value) {
|
|
if (this._subtitleBaselineType === value)
|
|
return;
|
|
this._subtitleBaselineType = value;
|
|
this.markNeedsLayout$0();
|
|
},
|
|
get$_effectiveHorizontalTitleGap() {
|
|
return this._horizontalTitleGap + this._visualDensity.horizontal * 2;
|
|
},
|
|
set$horizontalTitleGap(value) {
|
|
if (this._horizontalTitleGap === value)
|
|
return;
|
|
this._horizontalTitleGap = value;
|
|
this.markNeedsLayout$0();
|
|
},
|
|
set$minVerticalPadding(value) {
|
|
if (this._minVerticalPadding === value)
|
|
return;
|
|
this._minVerticalPadding = value;
|
|
this.markNeedsLayout$0();
|
|
},
|
|
set$minLeadingWidth(value) {
|
|
if (this._minLeadingWidth === value)
|
|
return;
|
|
this._minLeadingWidth = value;
|
|
this.markNeedsLayout$0();
|
|
},
|
|
set$titleAlignment(value) {
|
|
if (this._titleAlignment === value)
|
|
return;
|
|
this._titleAlignment = value;
|
|
this.markNeedsLayout$0();
|
|
},
|
|
get$sizedByParent() {
|
|
return false;
|
|
},
|
|
computeMinIntrinsicWidth$1(height) {
|
|
var t2, leadingWidth, t3,
|
|
t1 = this.SlottedContainerRenderObjectMixin__slotToChild;
|
|
if (t1.$index(0, D._ListTileSlot_0) != null) {
|
|
t2 = t1.$index(0, D._ListTileSlot_0);
|
|
leadingWidth = Math.max(t2._computeIntrinsicDimension$3(C._IntrinsicDimension_0, height, t2.get$computeMinIntrinsicWidth()), this._minLeadingWidth) + this.get$_effectiveHorizontalTitleGap();
|
|
} else
|
|
leadingWidth = 0;
|
|
t2 = t1.$index(0, D._ListTileSlot_1);
|
|
t2 = t2 == null ? 0 : t2._computeIntrinsicDimension$3(C._IntrinsicDimension_0, height, t2.get$computeMinIntrinsicWidth());
|
|
t3 = t1.$index(0, D._ListTileSlot_2);
|
|
t3 = t3 == null ? 0 : t3._computeIntrinsicDimension$3(C._IntrinsicDimension_0, height, t3.get$computeMinIntrinsicWidth());
|
|
t3 = Math.max(t2, t3);
|
|
t1 = t1.$index(0, D._ListTileSlot_3);
|
|
t1 = t1 == null ? 0 : t1._computeIntrinsicDimension$3(C._IntrinsicDimension_1, height, t1.get$computeMaxIntrinsicWidth());
|
|
return leadingWidth + t3 + t1;
|
|
},
|
|
computeMaxIntrinsicWidth$1(height) {
|
|
var t2, leadingWidth, t3,
|
|
t1 = this.SlottedContainerRenderObjectMixin__slotToChild;
|
|
if (t1.$index(0, D._ListTileSlot_0) != null) {
|
|
t2 = t1.$index(0, D._ListTileSlot_0);
|
|
leadingWidth = Math.max(t2._computeIntrinsicDimension$3(C._IntrinsicDimension_1, height, t2.get$computeMaxIntrinsicWidth()), this._minLeadingWidth) + this.get$_effectiveHorizontalTitleGap();
|
|
} else
|
|
leadingWidth = 0;
|
|
t2 = t1.$index(0, D._ListTileSlot_1);
|
|
t2 = t2 == null ? 0 : t2._computeIntrinsicDimension$3(C._IntrinsicDimension_1, height, t2.get$computeMaxIntrinsicWidth());
|
|
t3 = t1.$index(0, D._ListTileSlot_2);
|
|
t3 = t3 == null ? 0 : t3._computeIntrinsicDimension$3(C._IntrinsicDimension_1, height, t3.get$computeMaxIntrinsicWidth());
|
|
t3 = Math.max(t2, t3);
|
|
t1 = t1.$index(0, D._ListTileSlot_3);
|
|
t1 = t1 == null ? 0 : t1._computeIntrinsicDimension$3(C._IntrinsicDimension_1, height, t1.get$computeMaxIntrinsicWidth());
|
|
return leadingWidth + t3 + t1;
|
|
},
|
|
get$_defaultTileHeight() {
|
|
var t1 = this.SlottedContainerRenderObjectMixin__slotToChild.$index(0, D._ListTileSlot_2),
|
|
t2 = this._visualDensity,
|
|
baseDensity = new A.Offset(t2.horizontal, t2.vertical).$mul(0, 4);
|
|
if (t1 == null)
|
|
return 56 + baseDensity._dy;
|
|
return 72 + baseDensity._dy;
|
|
},
|
|
computeMinIntrinsicHeight$1(width) {
|
|
var t1 = this.get$_defaultTileHeight(),
|
|
t2 = this.SlottedContainerRenderObjectMixin__slotToChild,
|
|
t3 = t2.$index(0, D._ListTileSlot_1);
|
|
t3 = t3._computeIntrinsicDimension$3(C._IntrinsicDimension_2, width, t3.get$computeMinIntrinsicHeight());
|
|
t2 = t2.$index(0, D._ListTileSlot_2);
|
|
t2 = t2 == null ? null : t2._computeIntrinsicDimension$3(C._IntrinsicDimension_2, width, t2.get$computeMinIntrinsicHeight());
|
|
return Math.max(t1, t3 + (t2 == null ? 0 : t2));
|
|
},
|
|
computeMaxIntrinsicHeight$1(width) {
|
|
return this.computeMinIntrinsicHeight$1(width);
|
|
},
|
|
computeDistanceToActualBaseline$1(baseline) {
|
|
var t1 = this.SlottedContainerRenderObjectMixin__slotToChild,
|
|
t2 = t1.$index(0, D._ListTileSlot_1).parentData;
|
|
t2.toString;
|
|
t2 = type$.BoxParentData._as(t2).offset._dy;
|
|
t1 = t1.$index(0, D._ListTileSlot_1).getDistanceToActualBaseline$1(baseline);
|
|
t1.toString;
|
|
return t2 + t1;
|
|
},
|
|
computeDryLayout$1(constraints) {
|
|
return C.Size_0_0;
|
|
},
|
|
performLayout$0() {
|
|
var looseConstraints, iconConstraints, leadingSize, trailingSize, titleStart, adjustedTrailingWidth, textConstraints, titleSize, subtitleSize, titleBaseline, subtitleBaseline, defaultTileHeight, t4, tileHeight, titleY, leadingY, subtitleY, titleOverlap, titleY0, trailingY, leadingY0, _this = this, _null = null,
|
|
constraints = type$.BoxConstraints._as(A.RenderObject.prototype.get$constraints.call(_this)),
|
|
t1 = _this.SlottedContainerRenderObjectMixin__slotToChild,
|
|
hasLeading = t1.$index(0, D._ListTileSlot_0) != null,
|
|
t2 = t1.$index(0, D._ListTileSlot_2) == null,
|
|
hasSubtitle = !t2,
|
|
hasTrailing = t1.$index(0, D._ListTileSlot_3) != null,
|
|
t3 = _this._visualDensity,
|
|
densityAdjustment = new A.Offset(t3.horizontal, t3.vertical).$mul(0, 4);
|
|
t3 = constraints.maxWidth;
|
|
looseConstraints = new A.BoxConstraints(0, t3, 0, constraints.maxHeight);
|
|
iconConstraints = looseConstraints.enforce$1(new A.BoxConstraints(0, 1 / 0, 0, 56 + densityAdjustment._dy));
|
|
leadingSize = B._RenderListTile__layoutBox(t1.$index(0, D._ListTileSlot_0), iconConstraints);
|
|
trailingSize = B._RenderListTile__layoutBox(t1.$index(0, D._ListTileSlot_3), iconConstraints);
|
|
titleStart = hasLeading ? Math.max(_this._minLeadingWidth, leadingSize._dx) + _this.get$_effectiveHorizontalTitleGap() : 0;
|
|
adjustedTrailingWidth = hasTrailing ? Math.max(trailingSize._dx + _this.get$_effectiveHorizontalTitleGap(), 32) : 0;
|
|
textConstraints = looseConstraints.tighten$1$width(t3 - titleStart - adjustedTrailingWidth);
|
|
titleSize = B._RenderListTile__layoutBox(t1.$index(0, D._ListTileSlot_1), textConstraints);
|
|
subtitleSize = B._RenderListTile__layoutBox(t1.$index(0, D._ListTileSlot_2), textConstraints);
|
|
if (hasSubtitle) {
|
|
titleBaseline = 32;
|
|
subtitleBaseline = 52;
|
|
} else {
|
|
subtitleBaseline = _null;
|
|
titleBaseline = subtitleBaseline;
|
|
}
|
|
defaultTileHeight = _this.get$_defaultTileHeight();
|
|
t4 = titleSize._dy;
|
|
if (t2) {
|
|
t2 = _this._minVerticalPadding;
|
|
tileHeight = Math.max(defaultTileHeight, t4 + 2 * t2);
|
|
titleY = (tileHeight - t4) / 2;
|
|
leadingY = t2;
|
|
subtitleY = _null;
|
|
} else {
|
|
titleBaseline.toString;
|
|
t2 = t1.$index(0, D._ListTileSlot_1).getDistanceToBaseline$1(_this._titleBaselineType);
|
|
t2.toString;
|
|
titleY = titleBaseline - t2;
|
|
subtitleBaseline.toString;
|
|
t2 = t1.$index(0, D._ListTileSlot_2).getDistanceToBaseline$1(_this._subtitleBaselineType);
|
|
t2.toString;
|
|
subtitleY = subtitleBaseline - t2 + _this._visualDensity.vertical * 2;
|
|
titleOverlap = titleY + t4 - subtitleY;
|
|
if (titleOverlap > 0) {
|
|
t2 = titleOverlap / 2;
|
|
titleY -= t2;
|
|
subtitleY += t2;
|
|
}
|
|
titleY0 = _this._minVerticalPadding;
|
|
if (titleY < titleY0 || subtitleY + subtitleSize._dy + titleY0 > defaultTileHeight) {
|
|
tileHeight = t4 + subtitleSize._dy + 2 * titleY0;
|
|
subtitleY = t4 + titleY0;
|
|
titleY = titleY0;
|
|
} else
|
|
tileHeight = defaultTileHeight;
|
|
leadingY = titleY0;
|
|
}
|
|
switch (_this._titleAlignment.index) {
|
|
case 0:
|
|
leadingY = (tileHeight - leadingSize._dy) / 2;
|
|
trailingY = (tileHeight - trailingSize._dy) / 2;
|
|
break;
|
|
case 1:
|
|
if (tileHeight > 72) {
|
|
leadingY = 16;
|
|
trailingY = 16;
|
|
} else {
|
|
leadingY = Math.min((tileHeight - leadingSize._dy) / 2, 16);
|
|
trailingY = (tileHeight - trailingSize._dy) / 2;
|
|
}
|
|
break;
|
|
case 2:
|
|
trailingY = leadingY;
|
|
break;
|
|
case 3:
|
|
leadingY = (tileHeight - leadingSize._dy) / 2;
|
|
trailingY = (tileHeight - trailingSize._dy) / 2;
|
|
break;
|
|
case 4:
|
|
leadingY0 = tileHeight - leadingSize._dy - leadingY;
|
|
trailingY = tileHeight - trailingSize._dy - leadingY;
|
|
leadingY = leadingY0;
|
|
break;
|
|
default:
|
|
trailingY = _null;
|
|
leadingY = trailingY;
|
|
}
|
|
switch (_this._list_tile$_textDirection.index) {
|
|
case 0:
|
|
if (hasLeading) {
|
|
t2 = t1.$index(0, D._ListTileSlot_0).parentData;
|
|
t2.toString;
|
|
type$.BoxParentData._as(t2).offset = new A.Offset(t3 - leadingSize._dx, leadingY);
|
|
}
|
|
t2 = t1.$index(0, D._ListTileSlot_1).parentData;
|
|
t2.toString;
|
|
t4 = type$.BoxParentData;
|
|
t4._as(t2).offset = new A.Offset(adjustedTrailingWidth, titleY);
|
|
if (hasSubtitle) {
|
|
t2 = t1.$index(0, D._ListTileSlot_2);
|
|
t2.toString;
|
|
subtitleY.toString;
|
|
t2 = t2.parentData;
|
|
t2.toString;
|
|
t4._as(t2).offset = new A.Offset(adjustedTrailingWidth, subtitleY);
|
|
}
|
|
if (hasTrailing) {
|
|
t1 = t1.$index(0, D._ListTileSlot_3).parentData;
|
|
t1.toString;
|
|
t4._as(t1).offset = new A.Offset(0, trailingY);
|
|
}
|
|
break;
|
|
case 1:
|
|
if (hasLeading) {
|
|
t2 = t1.$index(0, D._ListTileSlot_0).parentData;
|
|
t2.toString;
|
|
type$.BoxParentData._as(t2).offset = new A.Offset(0, leadingY);
|
|
}
|
|
t2 = t1.$index(0, D._ListTileSlot_1).parentData;
|
|
t2.toString;
|
|
t4 = type$.BoxParentData;
|
|
t4._as(t2).offset = new A.Offset(titleStart, titleY);
|
|
if (hasSubtitle) {
|
|
t2 = t1.$index(0, D._ListTileSlot_2);
|
|
t2.toString;
|
|
subtitleY.toString;
|
|
t2 = t2.parentData;
|
|
t2.toString;
|
|
t4._as(t2).offset = new A.Offset(titleStart, subtitleY);
|
|
}
|
|
if (hasTrailing) {
|
|
t1 = t1.$index(0, D._ListTileSlot_3).parentData;
|
|
t1.toString;
|
|
t4._as(t1).offset = new A.Offset(t3 - trailingSize._dx, trailingY);
|
|
}
|
|
break;
|
|
}
|
|
_this._box$_size = constraints.constrain$1(new A.Size(t3, tileHeight));
|
|
},
|
|
paint$2(context, offset) {
|
|
var t1 = new B._RenderListTile_paint_doPaint(context, offset),
|
|
t2 = this.SlottedContainerRenderObjectMixin__slotToChild;
|
|
t1.call$1(t2.$index(0, D._ListTileSlot_0));
|
|
t1.call$1(t2.$index(0, D._ListTileSlot_1));
|
|
t1.call$1(t2.$index(0, D._ListTileSlot_2));
|
|
t1.call$1(t2.$index(0, D._ListTileSlot_3));
|
|
},
|
|
hitTestSelf$1(position) {
|
|
return true;
|
|
},
|
|
hitTestChildren$2$position(result, position) {
|
|
var t1, t2, t3, _i, child, t4;
|
|
for (t1 = this.get$children(this), t2 = t1.length, t3 = type$.BoxParentData, _i = 0; _i < t1.length; t1.length === t2 || (0, A.throwConcurrentModificationError)(t1), ++_i) {
|
|
child = t1[_i];
|
|
t4 = child.parentData;
|
|
t4.toString;
|
|
t3._as(t4);
|
|
if (result.addWithPaintOffset$3$hitTest$offset$position(new B._RenderListTile_hitTestChildren_closure(position, t4, child), t4.offset, position))
|
|
return true;
|
|
}
|
|
return false;
|
|
}
|
|
};
|
|
B._LisTileDefaultsM2.prototype = {
|
|
get$_theme() {
|
|
var result, _this = this,
|
|
value = _this.___LisTileDefaultsM2__theme_FI;
|
|
if (value === $) {
|
|
result = A.Theme_of(_this.context);
|
|
_this.___LisTileDefaultsM2__theme_FI !== $ && A.throwUnnamedLateFieldADI();
|
|
_this.___LisTileDefaultsM2__theme_FI = result;
|
|
value = result;
|
|
}
|
|
return value;
|
|
},
|
|
get$_list_tile$_textTheme() {
|
|
var t1, _this = this,
|
|
value = _this.___LisTileDefaultsM2__textTheme_FI;
|
|
if (value === $) {
|
|
t1 = _this.get$_theme();
|
|
_this.___LisTileDefaultsM2__textTheme_FI !== $ && A.throwUnnamedLateFieldADI();
|
|
value = _this.___LisTileDefaultsM2__textTheme_FI = t1.textTheme;
|
|
}
|
|
return value;
|
|
},
|
|
get$tileColor() {
|
|
return C.Color_0;
|
|
},
|
|
get$titleTextStyle() {
|
|
switch (this.style.index) {
|
|
case 1:
|
|
return this.get$_list_tile$_textTheme().bodyLarge;
|
|
case 0:
|
|
return this.get$_list_tile$_textTheme().titleMedium;
|
|
}
|
|
},
|
|
get$subtitleTextStyle() {
|
|
return this.get$_list_tile$_textTheme().bodyMedium;
|
|
},
|
|
get$leadingAndTrailingTextStyle() {
|
|
return this.get$_list_tile$_textTheme().bodyMedium;
|
|
},
|
|
get$selectedColor() {
|
|
return this.get$_theme().colorScheme.primary;
|
|
},
|
|
get$iconColor() {
|
|
switch (this.get$_theme().colorScheme.brightness.index) {
|
|
case 1:
|
|
return C.Color_1929379840;
|
|
case 0:
|
|
return null;
|
|
}
|
|
}
|
|
};
|
|
B.__ListTile_RenderObjectWidget_SlottedMultiChildRenderObjectWidgetMixin.prototype = {
|
|
updateRenderObject$2(context, renderObject) {
|
|
return this.super$RenderObjectWidget$updateRenderObject(context, renderObject);
|
|
}
|
|
};
|
|
B.__RenderListTile_RenderBox_SlottedContainerRenderObjectMixin.prototype = {
|
|
attach$1(owner) {
|
|
var t1, t2, _i;
|
|
this.super$RenderObject$attach(owner);
|
|
for (t1 = this.get$children(this), t2 = t1.length, _i = 0; _i < t1.length; t1.length === t2 || (0, A.throwConcurrentModificationError)(t1), ++_i)
|
|
t1[_i].attach$1(owner);
|
|
},
|
|
detach$0(_) {
|
|
var t1, t2, _i;
|
|
this.super$AbstractNode$detach(0);
|
|
for (t1 = this.get$children(this), t2 = t1.length, _i = 0; _i < t1.length; t1.length === t2 || (0, A.throwConcurrentModificationError)(t1), ++_i)
|
|
t1[_i].detach$0(0);
|
|
}
|
|
};
|
|
B.PopupMenuDivider.prototype = {
|
|
createState$0() {
|
|
return new B._PopupMenuDividerState(C._StateLifecycle_0);
|
|
}
|
|
};
|
|
B._PopupMenuDividerState.prototype = {
|
|
build$1(context) {
|
|
this._widget.toString;
|
|
return B.Divider$(null, null, 0.5, null);
|
|
}
|
|
};
|
|
B._ChildEntry.prototype = {
|
|
toString$0(_) {
|
|
return "Entry#" + A.shortHash(this) + "(" + this.widgetChild.toString$0(0) + ")";
|
|
}
|
|
};
|
|
B.AnimatedSwitcher.prototype = {
|
|
createState$0() {
|
|
return new B._AnimatedSwitcherState(A.LinkedHashSet_LinkedHashSet$_empty(type$._ChildEntry), C.List_empty18, null, null, C._StateLifecycle_0);
|
|
},
|
|
transitionBuilder$2(arg0, arg1) {
|
|
return B.animated_switcher_AnimatedSwitcher_defaultTransitionBuilder$closure().call$2(arg0, arg1);
|
|
},
|
|
layoutBuilder$2(arg0, arg1) {
|
|
return B.animated_switcher_AnimatedSwitcher_defaultLayoutBuilder$closure().call$2(arg0, arg1);
|
|
}
|
|
};
|
|
B._AnimatedSwitcherState.prototype = {
|
|
initState$0() {
|
|
this.super$State$initState();
|
|
this._addEntryForNewChild$1$animate(false);
|
|
},
|
|
didUpdateWidget$1(oldWidget) {
|
|
var t1, hasNewChild, t2, _this = this;
|
|
_this.super$State$didUpdateWidget(oldWidget);
|
|
t1 = _this._widget;
|
|
t1 = t1.child;
|
|
hasNewChild = t1 != null;
|
|
t2 = _this._currentEntry;
|
|
if (hasNewChild === (t2 != null))
|
|
if (hasNewChild) {
|
|
t2 = t2.widgetChild;
|
|
t1 = !(A.getRuntimeTypeOfDartObject(t1) === A.getRuntimeTypeOfDartObject(t2) && J.$eq$(t1.key, t2.key));
|
|
} else
|
|
t1 = false;
|
|
else
|
|
t1 = true;
|
|
if (t1) {
|
|
++_this._childNumber;
|
|
_this._addEntryForNewChild$1$animate(true);
|
|
} else {
|
|
t1 = _this._currentEntry;
|
|
if (t1 != null) {
|
|
t2 = _this._widget.child;
|
|
t2.toString;
|
|
t1.widgetChild = t2;
|
|
_this._updateTransitionForEntry$1(t1);
|
|
_this._outgoingWidgets = null;
|
|
}
|
|
}
|
|
},
|
|
_addEntryForNewChild$1$animate(animate) {
|
|
var controller, animation, _this = this,
|
|
t1 = _this._currentEntry;
|
|
if (t1 != null) {
|
|
_this._outgoingEntries.add$1(0, t1);
|
|
_this._currentEntry.controller.reverse$0(0);
|
|
_this._currentEntry = _this._outgoingWidgets = null;
|
|
}
|
|
t1 = _this._widget;
|
|
if (t1.child == null)
|
|
return;
|
|
controller = A.AnimationController$(C.AnimationBehavior_0, null, t1.duration, 0, null, 1, null, _this);
|
|
animation = A.CurvedAnimation$(_this._widget.switchInCurve, controller, C.C__Linear);
|
|
t1 = _this._widget.child;
|
|
t1.toString;
|
|
_this._currentEntry = _this._newEntry$4$animation$builder$child$controller(animation, B.animated_switcher_AnimatedSwitcher_defaultTransitionBuilder$closure(), t1, controller);
|
|
if (animate)
|
|
controller.forward$0(0);
|
|
else
|
|
controller.set$value(0, 1);
|
|
},
|
|
_newEntry$4$animation$builder$child$controller(animation, builder, child, controller) {
|
|
var t1 = builder.call$2(child, animation),
|
|
t2 = this._childNumber,
|
|
t3 = t1.key,
|
|
entry = new B._ChildEntry(controller, animation, new A.KeyedSubtree(t1, t3 != null ? new A.ValueKey(t3, type$.ValueKey_Key) : new A.ValueKey(t2, type$.ValueKey_int)), child);
|
|
animation.parent.addStatusListener$1(new B._AnimatedSwitcherState__newEntry_closure(this, entry, controller));
|
|
return entry;
|
|
},
|
|
_updateTransitionForEntry$1(entry) {
|
|
var t1 = entry.transition;
|
|
entry.transition = new A.KeyedSubtree(this._widget.transitionBuilder$2(entry.widgetChild, entry.animation), t1.key);
|
|
},
|
|
_rebuildOutgoingWidgetsIfNeeded$0() {
|
|
if (this._outgoingWidgets == null) {
|
|
var t1 = this._outgoingEntries;
|
|
this._outgoingWidgets = A.List_List$unmodifiable(new A.EfficientLengthMappedIterable(t1, new B._AnimatedSwitcherState__rebuildOutgoingWidgetsIfNeeded_closure(), A._instanceType(t1)._eval$1("EfficientLengthMappedIterable<SetBase.E,Widget>")), type$.Widget);
|
|
}
|
|
},
|
|
dispose$0() {
|
|
var t2, t3, t4, value, result,
|
|
t1 = this._currentEntry;
|
|
if (t1 != null)
|
|
t1.controller.dispose$0();
|
|
for (t1 = this._outgoingEntries, t1 = A._LinkedHashSetIterator$(t1, t1._collection$_modifications, A._instanceType(t1)._precomputed1), t2 = t1.$ti._precomputed1; t1.moveNext$0();) {
|
|
t3 = t1._collection$_current;
|
|
t3 = (t3 == null ? t2._as(t3) : t3).controller;
|
|
t3._ticker.dispose$0();
|
|
t3._ticker = null;
|
|
t4 = t3.AnimationLocalStatusListenersMixin__statusListeners;
|
|
t4._isDirty = false;
|
|
C.JSArray_methods.clear$0(t4._list);
|
|
value = t4.__ObserverList__set_FI;
|
|
if (value === $) {
|
|
result = A.HashSet_HashSet(t4.$ti._precomputed1);
|
|
t4.__ObserverList__set_FI !== $ && A.throwUnnamedLateFieldADI();
|
|
t4.__ObserverList__set_FI = result;
|
|
value = result;
|
|
}
|
|
if (value._collection$_length > 0) {
|
|
value._collection$_strings = value._collection$_nums = value._collection$_rest = value._elements = null;
|
|
value._collection$_length = 0;
|
|
}
|
|
t4 = t3.AnimationLocalListenersMixin__listeners;
|
|
t4._isDirty = false;
|
|
C.JSArray_methods.clear$0(t4._list);
|
|
value = t4.__ObserverList__set_FI;
|
|
if (value === $) {
|
|
result = A.HashSet_HashSet(t4.$ti._precomputed1);
|
|
t4.__ObserverList__set_FI !== $ && A.throwUnnamedLateFieldADI();
|
|
t4.__ObserverList__set_FI = result;
|
|
value = result;
|
|
}
|
|
if (value._collection$_length > 0) {
|
|
value._collection$_strings = value._collection$_nums = value._collection$_rest = value._elements = null;
|
|
value._collection$_length = 0;
|
|
}
|
|
t3.super$AnimationEagerListenerMixin$dispose();
|
|
}
|
|
this.super$__AnimatedSwitcherState_State_TickerProviderStateMixin$dispose();
|
|
},
|
|
build$1(context) {
|
|
var t1, t2, t3, t4, _this = this;
|
|
_this._rebuildOutgoingWidgetsIfNeeded$0();
|
|
t1 = _this._widget;
|
|
t1.toString;
|
|
t2 = _this._currentEntry;
|
|
t2 = t2 == null ? null : t2.transition;
|
|
t3 = _this._outgoingWidgets;
|
|
t3.toString;
|
|
t4 = A._arrayInstanceType(t3)._eval$1("WhereIterable<1>");
|
|
t4 = A.LinkedHashSet_LinkedHashSet$of(new A.WhereIterable(t3, new B._AnimatedSwitcherState_build_closure(_this), t4), t4._eval$1("Iterable.E"));
|
|
return t1.layoutBuilder$2(t2, A.List_List$of(t4, true, A._instanceType(t4)._eval$1("SetBase.E")));
|
|
}
|
|
};
|
|
B.__AnimatedSwitcherState_State_TickerProviderStateMixin.prototype = {
|
|
activate$0() {
|
|
this.super$State$activate();
|
|
this._updateTickerModeNotifier$0();
|
|
this._updateTickers$0();
|
|
},
|
|
dispose$0() {
|
|
var _this = this,
|
|
t1 = _this.TickerProviderStateMixin__tickerModeNotifier;
|
|
if (t1 != null)
|
|
t1.removeListener$1(0, _this.get$_updateTickers());
|
|
_this.TickerProviderStateMixin__tickerModeNotifier = null;
|
|
_this.super$State$dispose();
|
|
}
|
|
};
|
|
B.StreamBuilderBase.prototype = {
|
|
createState$0() {
|
|
var t1 = this.$ti;
|
|
return new B._StreamBuilderBaseState(C._StateLifecycle_0, t1._eval$1("@<StreamBuilderBase.T>")._bind$1(t1._eval$1("StreamBuilderBase.S"))._eval$1("_StreamBuilderBaseState<1,2>"));
|
|
}
|
|
};
|
|
B._StreamBuilderBaseState.prototype = {
|
|
initState$0() {
|
|
var t1, t2, _this = this;
|
|
_this.super$State$initState();
|
|
t1 = _this._widget;
|
|
t2 = t1.initialData;
|
|
if (t2 == null)
|
|
t1 = A.AsyncSnapshot$nothing(A._instanceType(t1)._precomputed1);
|
|
else
|
|
t1 = new A.AsyncSnapshot(C.ConnectionState_0, t2, null, null, A._instanceType(t1)._eval$1("AsyncSnapshot<1>"));
|
|
_this.___StreamBuilderBaseState__summary_A = t1;
|
|
_this._async0$_subscribe$0();
|
|
},
|
|
didUpdateWidget$1(oldWidget) {
|
|
var t1, _this = this;
|
|
_this.super$State$didUpdateWidget(oldWidget);
|
|
if (!J.$eq$(oldWidget.stream, _this._widget.stream)) {
|
|
if (_this._async0$_subscription != null) {
|
|
_this._async0$_unsubscribe$0();
|
|
_this._widget.toString;
|
|
t1 = _this.___StreamBuilderBaseState__summary_A;
|
|
t1 === $ && A.throwUnnamedLateFieldNI();
|
|
_this.___StreamBuilderBaseState__summary_A = new A.AsyncSnapshot(C.ConnectionState_0, t1.data, t1.error, t1.stackTrace, t1.$ti);
|
|
}
|
|
_this._async0$_subscribe$0();
|
|
}
|
|
},
|
|
build$1(context) {
|
|
var t2,
|
|
t1 = this._widget;
|
|
t1.toString;
|
|
t2 = this.___StreamBuilderBaseState__summary_A;
|
|
t2 === $ && A.throwUnnamedLateFieldNI();
|
|
return t1.builder$2(context, t2);
|
|
},
|
|
dispose$0() {
|
|
this._async0$_unsubscribe$0();
|
|
this.super$State$dispose();
|
|
},
|
|
_async0$_subscribe$0() {
|
|
var _this = this,
|
|
t1 = _this._widget.stream;
|
|
if (t1 != null) {
|
|
_this._async0$_subscription = t1.listen$3$onDone$onError(new B._StreamBuilderBaseState__subscribe_closure(_this), new B._StreamBuilderBaseState__subscribe_closure0(_this), new B._StreamBuilderBaseState__subscribe_closure1(_this));
|
|
_this._widget.toString;
|
|
t1 = _this.___StreamBuilderBaseState__summary_A;
|
|
t1 === $ && A.throwUnnamedLateFieldNI();
|
|
_this.___StreamBuilderBaseState__summary_A = new A.AsyncSnapshot(C.ConnectionState_1, t1.data, t1.error, t1.stackTrace, t1.$ti);
|
|
}
|
|
},
|
|
_async0$_unsubscribe$0() {
|
|
var t1 = this._async0$_subscription;
|
|
if (t1 != null) {
|
|
t1.cancel$0(0);
|
|
this._async0$_subscription = null;
|
|
}
|
|
}
|
|
};
|
|
B.StreamBuilder.prototype = {
|
|
builder$2(arg0, arg1) {
|
|
return this.builder.call$2(arg0, arg1);
|
|
}
|
|
};
|
|
B.SizeChangedLayoutNotification.prototype = {};
|
|
B.SizeChangedLayoutNotifier.prototype = {
|
|
createRenderObject$1(context) {
|
|
var t1 = new B._RenderSizeChangedWithCallback(new B.SizeChangedLayoutNotifier_createRenderObject_closure(context), null, A.LayerHandle$(type$.ContainerLayer));
|
|
t1.RenderObject$0();
|
|
t1.set$child(null);
|
|
return t1;
|
|
}
|
|
};
|
|
B._RenderSizeChangedWithCallback.prototype = {
|
|
performLayout$0() {
|
|
var t1, _this = this;
|
|
_this.super$RenderProxyBoxMixin$performLayout();
|
|
t1 = _this._oldSize;
|
|
if (t1 != null && !_this._box$_size.$eq(0, t1))
|
|
_this.onLayoutChangedCallback.call$0();
|
|
t1 = _this._box$_size;
|
|
t1.toString;
|
|
_this._oldSize = t1;
|
|
}
|
|
};
|
|
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.listEquals(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, 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.SuggestionsBoxController.prototype = {
|
|
open$0(_) {
|
|
var t1, t2, _this = this;
|
|
if (_this._isOpened)
|
|
return;
|
|
t1 = A.LookupBoundary_findAncestorStateOfType(_this.context, type$.OverlayState);
|
|
t1.toString;
|
|
t2 = _this.overlayEntry;
|
|
t2.toString;
|
|
t1.insert$1(0, t2);
|
|
_this._isOpened = true;
|
|
},
|
|
close$0(_) {
|
|
if (!this._isOpened)
|
|
return;
|
|
this.overlayEntry.remove$0(0);
|
|
this._isOpened = false;
|
|
}
|
|
};
|
|
B.TagEditor.prototype = {
|
|
createState$0() {
|
|
return new B.TagsEditorState(new A.LayerLink(), A.ValueNotifier$(0, type$.int), A.ValueNotifier$(null, type$.nullable_String), C._StateLifecycle_0, this.$ti._eval$1("TagsEditorState<1>"));
|
|
},
|
|
tagBuilder$2(arg0, arg1) {
|
|
return this.tagBuilder.call$2(arg0, arg1);
|
|
},
|
|
findSuggestions$1(arg0) {
|
|
return this.findSuggestions.call$1(arg0);
|
|
},
|
|
get$length(receiver) {
|
|
return this.length;
|
|
}
|
|
};
|
|
B.TagsEditorState.prototype = {
|
|
initState$0() {
|
|
var t1, _this = this, _null = null;
|
|
_this.super$State$initState();
|
|
t1 = _this._widget.controller;
|
|
_this.__TagsEditorState__textFieldController_A = t1;
|
|
_this.__TagsEditorState__textDirection_A = C.TextDirection_1;
|
|
t1 = A.FocusNode$(true, _null, true, true, _null, _null, false);
|
|
t1.addListener$1(0, _this.get$_onFocusKeyboardChanged());
|
|
_this.__TagsEditorState__focusNodeKeyboard_A = t1;
|
|
t1 = _this._widget.focusNode;
|
|
if (t1 == null)
|
|
t1 = A.FocusNode$(true, _null, true, true, _null, _null, false);
|
|
t1.addListener$1(0, _this.get$_onFocusChanged());
|
|
_this.__TagsEditorState__focusNode_A = t1;
|
|
_this._widget.toString;
|
|
_this._initializeSuggestionBox$0();
|
|
},
|
|
dispose$0() {
|
|
var t2, _this = this,
|
|
t1 = _this._widget;
|
|
if (t1.autoDisposeFocusNode || t1.focusNode == null) {
|
|
t1 = _this.__TagsEditorState__focusNode_A;
|
|
t1 === $ && A.throwUnnamedLateFieldNI();
|
|
t1.removeListener$1(0, _this.get$_onFocusChanged());
|
|
_this.__TagsEditorState__focusNode_A.dispose$0();
|
|
}
|
|
t1 = _this._suggestionsStreamController;
|
|
if (t1 != null)
|
|
t1.close$0(0);
|
|
t1 = _this._suggestionsBoxController;
|
|
if (t1 != null)
|
|
t1.close$0(0);
|
|
t1 = _this.__TagsEditorState__focusNodeKeyboard_A;
|
|
t1 === $ && A.throwUnnamedLateFieldNI();
|
|
t1.removeListener$1(0, _this.get$_onFocusKeyboardChanged());
|
|
_this.__TagsEditorState__focusNodeKeyboard_A.dispose$0();
|
|
t1 = _this._tag_editor$_highlightedOptionIndex;
|
|
t2 = $.$get$ChangeNotifier__emptyListeners();
|
|
t1.ChangeNotifier__listeners = t2;
|
|
t1.ChangeNotifier__count = 0;
|
|
t1 = _this._validationSuggestionItemNotifier;
|
|
t1.ChangeNotifier__listeners = t2;
|
|
t1.ChangeNotifier__count = 0;
|
|
t1 = _this._deBouncer;
|
|
if (t1 != null)
|
|
t1.cancel$0(0);
|
|
_this.super$State$dispose();
|
|
},
|
|
_tag_editor$_updateHighlight$1(newIndex) {
|
|
var t1 = this._tag_editor$_suggestions;
|
|
if ((t1 == null ? null : J.get$isNotEmpty$asx(t1)) === true) {
|
|
t1 = this._tag_editor$_suggestions;
|
|
t1.toString;
|
|
t1 = C.JSInt_methods.$mod(newIndex, J.get$length$asx(t1));
|
|
} else
|
|
t1 = 0;
|
|
this._tag_editor$_highlightedOptionIndex.set$value(0, t1);
|
|
},
|
|
_initializeSuggestionBox$0() {
|
|
var _this = this,
|
|
t1 = _this._widget.debounceDuration;
|
|
t1 = _this._deBouncer = A.Debouncer$(t1, "", type$.String);
|
|
t1.get$values(t1).listen$1(_this.get$_onSearchChanged());
|
|
t1 = _this._framework$_element;
|
|
t1.toString;
|
|
_this._suggestionsBoxController = new B.SuggestionsBoxController(t1);
|
|
_this._suggestionsStreamController = new A._AsyncBroadcastStreamController(null, null, _this.$ti._eval$1("_AsyncBroadcastStreamController<List<1>?>"));
|
|
$.WidgetsBinding__instance.SchedulerBinding__postFrameCallbacks.push(new B.TagsEditorState__initializeSuggestionBox_closure(_this));
|
|
},
|
|
_onFocusChanged$0() {
|
|
var _this = this,
|
|
t1 = _this.__TagsEditorState__focusNode_A;
|
|
t1 === $ && A.throwUnnamedLateFieldNI();
|
|
if (t1.get$hasFocus()) {
|
|
_this._widget.onFocusTagAction.call$1(false);
|
|
_this._countBackspacePressed = 0;
|
|
_this._scrollToVisible$0();
|
|
t1 = _this._suggestionsBoxController;
|
|
if (t1 != null)
|
|
t1.open$0(0);
|
|
} else {
|
|
t1 = _this._suggestionsBoxController;
|
|
if (t1 != null)
|
|
t1.close$0(0);
|
|
}
|
|
if (_this._framework$_element != null)
|
|
_this.setState$1(new B.TagsEditorState__onFocusChanged_closure(_this));
|
|
},
|
|
_onFocusKeyboardChanged$0() {
|
|
var t2, _this = this,
|
|
t1 = _this.__TagsEditorState__focusNodeKeyboard_A;
|
|
t1 === $ && A.throwUnnamedLateFieldNI();
|
|
t1 = t1.get$hasFocus();
|
|
t2 = _this._widget;
|
|
if (t1) {
|
|
t2.onFocusTagAction.call$1(true);
|
|
_this._countBackspacePressed = 1;
|
|
} else {
|
|
t2.onFocusTagAction.call$1(false);
|
|
_this._countBackspacePressed = 0;
|
|
}
|
|
},
|
|
_createOverlayEntry$0() {
|
|
var t1 = this._suggestionsBoxController;
|
|
if (t1 != null)
|
|
t1.overlayEntry = A.OverlayEntry$(new B.TagsEditorState__createOverlayEntry_closure(this), false);
|
|
},
|
|
_onTextFieldChange$1(string) {
|
|
var t1, _this = this;
|
|
if (string !== _this._previousText) {
|
|
t1 = _this._deBouncer;
|
|
if (t1 != null)
|
|
t1.set$value(0, string);
|
|
}
|
|
_this._previousText = string;
|
|
if (string.length !== 0)
|
|
_this._widget.toString;
|
|
return;
|
|
},
|
|
_onSearchChanged$1(value) {
|
|
return this._onSearchChanged$body$TagsEditorState(value);
|
|
},
|
|
_onSearchChanged$body$TagsEditorState(value) {
|
|
var $async$goto = 0,
|
|
$async$completer = A._makeAsyncAwaitCompleter(type$.dynamic),
|
|
$async$self = this, t2, t1, results;
|
|
var $async$_onSearchChanged$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
|
|
t1 = ++$async$self._searchId;
|
|
$async$goto = 2;
|
|
return A._asyncAwait($async$self._widget.findSuggestions$1(value), $async$_onSearchChanged$1);
|
|
case 2:
|
|
// returning from await.
|
|
results = $async$result;
|
|
if ($async$self._searchId === t1 && $async$self._framework$_element != null)
|
|
$async$self.setState$1(new B.TagsEditorState__onSearchChanged_closure($async$self, results));
|
|
$async$self._tag_editor$_updateHighlight$1(0);
|
|
$async$self._validationSuggestionItemNotifier.set$value(0, value);
|
|
t1 = $async$self._suggestionsStreamController;
|
|
if (t1 != null) {
|
|
t2 = $async$self._tag_editor$_suggestions;
|
|
t1.add$1(0, t2 == null ? A._setArrayType([], $async$self.$ti._eval$1("JSArray<1>")) : t2);
|
|
}
|
|
t1 = $async$self._suggestionsBoxController;
|
|
if (t1 != null)
|
|
t1.open$0(0);
|
|
// implicit return
|
|
return A._asyncReturn(null, $async$completer);
|
|
}
|
|
});
|
|
return A._asyncStartSync($async$_onSearchChanged$1, $async$completer);
|
|
},
|
|
closeSuggestionBox$0() {
|
|
var t1, _this = this;
|
|
_this._tag_editor$_suggestions = null;
|
|
t1 = _this._suggestionsStreamController;
|
|
if (t1 != null)
|
|
t1.add$1(0, A._setArrayType([], _this.$ti._eval$1("JSArray<1>")));
|
|
_this._tag_editor$_updateHighlight$1(0);
|
|
_this._validationSuggestionItemNotifier.set$value(0, null);
|
|
t1 = _this._suggestionsBoxController;
|
|
if (t1 != null)
|
|
t1.close$0(0);
|
|
},
|
|
_scrollToVisible$0() {
|
|
A.Future_Future$delayed(C.Duration_300000, new B.TagsEditorState__scrollToVisible_closure(this), type$.Null);
|
|
},
|
|
_onSubmitted$1(string) {
|
|
var currentHighlightIndex, optionSelected, _this = this,
|
|
t1 = _this._tag_editor$_suggestions;
|
|
if ((t1 == null ? null : J.get$isNotEmpty$asx(t1)) === true) {
|
|
t1 = _this._suggestionsBoxController;
|
|
t1 = (t1 == null ? null : t1._isOpened) === true;
|
|
} else
|
|
t1 = false;
|
|
if (t1) {
|
|
currentHighlightIndex = _this._tag_editor$_highlightedOptionIndex._change_notifier$_value;
|
|
t1 = _this._tag_editor$_suggestions;
|
|
if ((t1 == null ? null : J.get$isNotEmpty$asx(t1)) === true)
|
|
if (currentHighlightIndex >= 0) {
|
|
t1 = _this._tag_editor$_suggestions;
|
|
t1.toString;
|
|
t1 = currentHighlightIndex < J.get$length$asx(t1);
|
|
} else
|
|
t1 = false;
|
|
else
|
|
t1 = false;
|
|
if (t1) {
|
|
t1 = _this._tag_editor$_suggestions;
|
|
t1.toString;
|
|
optionSelected = J.$index$asx(t1, currentHighlightIndex);
|
|
_this._widget.onSelectOptionAction.call$1(optionSelected);
|
|
_this.resetTextField$0();
|
|
_this.closeSuggestionBox$0();
|
|
}
|
|
} else {
|
|
_this._widget.onSubmitted.call$1(string);
|
|
_this._widget.toString;
|
|
_this.resetTextField$0();
|
|
}
|
|
_this._widget.toString;
|
|
t1 = _this.__TagsEditorState__focusNode_A;
|
|
t1 === $ && A.throwUnnamedLateFieldNI();
|
|
t1.requestFocus$0();
|
|
},
|
|
resetTextField$0() {
|
|
var _this = this,
|
|
t1 = _this.__TagsEditorState__textFieldController_A;
|
|
t1 === $ && A.throwUnnamedLateFieldNI();
|
|
t1.set$text(0, "");
|
|
_this._previousText = "";
|
|
_this._tag_editor$_updateHighlight$1(0);
|
|
_this._validationSuggestionItemNotifier.set$value(0, null);
|
|
},
|
|
_onKeyboardBackspaceListener$0() {
|
|
var $async$goto = 0,
|
|
$async$completer = A._makeAsyncAwaitCompleter(type$.dynamic),
|
|
$async$self = this, t1;
|
|
var $async$_onKeyboardBackspaceListener$0 = 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
|
|
t1 = $async$self.__TagsEditorState__textFieldController_A;
|
|
t1 === $ && A.throwUnnamedLateFieldNI();
|
|
if (t1._change_notifier$_value.text.length === 0 && $async$self._widget.length > 0) {
|
|
t1 = ++$async$self._countBackspacePressed;
|
|
if (t1 === 1) {
|
|
t1 = $async$self.__TagsEditorState__focusNode_A;
|
|
t1 === $ && A.throwUnnamedLateFieldNI();
|
|
t1.unfocus$0();
|
|
t1 = $async$self.__TagsEditorState__focusNodeKeyboard_A;
|
|
t1 === $ && A.throwUnnamedLateFieldNI();
|
|
t1.requestFocus$0();
|
|
} else if (t1 >= 2) {
|
|
$async$self._widget.onDeleteTagAction.call$0();
|
|
if ($async$self._widget.length > 1)
|
|
$async$self._countBackspacePressed = 1;
|
|
else {
|
|
$async$self._countBackspacePressed = 0;
|
|
t1 = $async$self.__TagsEditorState__focusNodeKeyboard_A;
|
|
t1 === $ && A.throwUnnamedLateFieldNI();
|
|
t1.unfocus$0();
|
|
t1 = $async$self.__TagsEditorState__focusNode_A;
|
|
t1 === $ && A.throwUnnamedLateFieldNI();
|
|
t1.requestFocus$0();
|
|
}
|
|
}
|
|
} else {
|
|
t1 = $async$self.__TagsEditorState__focusNodeKeyboard_A;
|
|
t1 === $ && A.throwUnnamedLateFieldNI();
|
|
t1.unfocus$0();
|
|
t1 = $async$self.__TagsEditorState__focusNode_A;
|
|
t1 === $ && A.throwUnnamedLateFieldNI();
|
|
t1.requestFocus$0();
|
|
}
|
|
// implicit return
|
|
return A._asyncReturn(null, $async$completer);
|
|
}
|
|
});
|
|
return A._asyncStartSync($async$_onKeyboardBackspaceListener$0, $async$completer);
|
|
},
|
|
build$1(context) {
|
|
var borderColor, borderRadius, t2, t3, t4, t5, t6, t7, t8, _list, t9, index, t10, t11, t12, t13, t14, t15, t16, t17, tagEditorArea, _this = this, _null = null,
|
|
t1 = _this._widget,
|
|
decoration = t1.inputDecoration,
|
|
borderSize = _this._tag_editor$_isFocused || t1.enableBorder ? 1 : 0.5;
|
|
if (t1.enableBorder)
|
|
borderColor = t1.enableBorderColor;
|
|
else
|
|
borderColor = C.Color_0;
|
|
if (_this._tag_editor$_isFocused) {
|
|
borderColor = t1.focusedBorderColor;
|
|
if (borderColor == null)
|
|
borderColor = C.Color_0;
|
|
}
|
|
borderRadius = t1.borderRadius;
|
|
t2 = t1.padding;
|
|
if (t2 == null)
|
|
t2 = C.EdgeInsets_0_0_0_0;
|
|
t3 = A.BorderRadius$all(new A.Radius(borderRadius, borderRadius));
|
|
t4 = A.Border_Border$all(borderColor, borderSize);
|
|
t5 = t1.backgroundColor;
|
|
if (t5 == null)
|
|
t5 = C.Color_0;
|
|
t6 = t1.length;
|
|
t7 = t1.minTextFieldWidth;
|
|
t1 = t1.tagSpacing;
|
|
t8 = type$.Widget;
|
|
_list = J.JSArray_JSArray$allocateGrowable(t6, t8);
|
|
for (t9 = type$.ValueKey_Object, index = 0; index < t6; ++index) {
|
|
t10 = "tag_" + index;
|
|
t11 = _this._widget.tagBuilder$2(context, index);
|
|
_list[index] = new A.LayoutId(t10, t11, new A.ValueKey(t10, t9));
|
|
}
|
|
t8 = A.List_List$of(_list, true, t8);
|
|
t9 = _this.__TagsEditorState__focusNodeKeyboard_A;
|
|
t9 === $ && A.throwUnnamedLateFieldNI();
|
|
t10 = _this._widget;
|
|
t11 = t10.textStyle;
|
|
t12 = _this.__TagsEditorState__focusNode_A;
|
|
t12 === $ && A.throwUnnamedLateFieldNI();
|
|
t13 = _this.__TagsEditorState__textFieldController_A;
|
|
t13 === $ && A.throwUnnamedLateFieldNI();
|
|
t14 = t10.keyboardType;
|
|
t15 = t10.textInputAction;
|
|
t16 = t10.cursorColor;
|
|
t17 = _this.__TagsEditorState__textDirection_A;
|
|
t17 === $ && A.throwUnnamedLateFieldNI();
|
|
t8.push(A.LayoutId$(A.RawKeyboardListener$(false, A.TextField$(false, C.List_empty0, t10.autofocus, _null, A.text_field_TextField__defaultContextMenuBuilder$closure(), t13, t16, _null, _null, 2, decoration, true, _null, true, true, false, t12, _null, _null, _null, t14, _null, _null, _null, 1, _null, _null, false, "\u2022", new B.TagsEditorState_build_closure(_this), _null, _this.get$_onSubmitted(), _null, t10.onTapOutside, false, _null, _null, C.EdgeInsets_20_20_20_20, _null, _null, _null, _null, _null, _null, _null, t11, C.TextAlign_4, _null, C.TextCapitalization_30, t17, t15, _null), t9, new B.TagsEditorState_build_closure0(_this)), "text_field"));
|
|
tagEditorArea = A.Container$(_null, new B.TagLayout(new B.TagEditorLayoutDelegate(t6, t7, t1, C.Size_0_0), t8, _null), C.Clip_0, _null, _null, new A.BoxDecoration(t5, _null, t4, t3, _null, _null, _null, C.BoxShape_0), _null, _null, _null, _null, t2, _null, _null, _null);
|
|
_this._widget.toString;
|
|
return new A.NotificationListener(new B.TagsEditorState_build_closure1(_this), new B.SizeChangedLayoutNotifier(A.Column$(A._setArrayType([tagEditorArea, new A.CompositedTransformTarget(_this._tag_editor$_layerLink, A.Container$(_null, _null, C.Clip_0, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null), _null)], type$.JSArray_Widget), C.CrossAxisAlignment_2, C.MainAxisAlignment_0, C.MainAxisSize_1, C.VerticalDirection_1), _null), _null, type$.NotificationListener_SizeChangedLayoutNotification);
|
|
}
|
|
};
|
|
B.TagEditorLayoutDelegate.prototype = {
|
|
getSize$1(constraints) {
|
|
return new A.Size(constraints.maxWidth, 0);
|
|
},
|
|
performLayout$1(size) {
|
|
var t2, t3, t4, t5, t6, cursor, _i, tagId, child, childSize, t7, t8, textWidth, textFieldSize, _this = this,
|
|
_s10_ = "text_field",
|
|
t1 = type$.JSArray_Size,
|
|
tagSizes = A._setArrayType([], t1);
|
|
for (t2 = A.Iterable_Iterable$generate(_this.length, null, type$.int).toList$0(0), t3 = t2.length, t4 = type$.MultiChildLayoutParentData, t5 = _this.spacing, t6 = size._dx, cursor = C.Offset_0_0, _i = 0; _i < t2.length; t2.length === t3 || (0, A.throwConcurrentModificationError)(t2), ++_i) {
|
|
tagId = "tag_" + A.S(t2[_i]);
|
|
if (_this._idToChild.$index(0, tagId) != null) {
|
|
child = _this._idToChild.$index(0, tagId);
|
|
child.layout$2$parentUsesSize(new A.BoxConstraints(0, t6, 0, 1 / 0), true);
|
|
childSize = child._box$_size;
|
|
t7 = childSize._dx;
|
|
if (B.TagEditorLayoutDelegate__isOverflow(t7, t6, t5, tagSizes)) {
|
|
cursor = new A.Offset(0, cursor._dy + childSize._dy);
|
|
tagSizes = A._setArrayType([], t1);
|
|
}
|
|
t8 = _this._idToChild.$index(0, tagId).parentData;
|
|
t8.toString;
|
|
t4._as(t8).offset = cursor;
|
|
cursor = new A.Offset(cursor._dx + t7 + t5, cursor._dy);
|
|
tagSizes.push(childSize);
|
|
}
|
|
}
|
|
if (_this._idToChild.$index(0, _s10_) != null) {
|
|
textWidth = Math.max(t6 - C.JSArray_methods.fold$2(tagSizes, 0, new B.TagEditorLayoutDelegate_performLayout_closure()) - t5 * Math.max(tagSizes.length - 1, 0), _this.minTextFieldWidth);
|
|
if (B.TagEditorLayoutDelegate__isOverflow(textWidth, t6, t5, tagSizes)) {
|
|
textFieldSize = _this.layoutChild$2(_s10_, A.BoxConstraints$loose(new A.Size(t6, 1 / 0)));
|
|
cursor = new A.Offset(0, cursor._dy + textFieldSize._dy);
|
|
} else
|
|
textFieldSize = _this.layoutChild$2(_s10_, A.BoxConstraints$loose(new A.Size(textWidth, 1 / 0)));
|
|
_this.positionChild$2(_s10_, cursor);
|
|
} else
|
|
textFieldSize = C.Size_0_0;
|
|
_this.parentSize = new A.Size(t6, cursor._dy + textFieldSize._dy);
|
|
},
|
|
shouldRelayout$1(oldDelegate) {
|
|
return false;
|
|
},
|
|
get$length(receiver) {
|
|
return this.length;
|
|
}
|
|
};
|
|
B.TagLayout.prototype = {
|
|
createRenderObject$1(context) {
|
|
var t1 = new B.TagRenderLayoutBox(type$.TagEditorLayoutDelegate._as(this.delegate), 0, null, null, A.LayerHandle$(type$.ContainerLayer));
|
|
t1.RenderObject$0();
|
|
t1.addAll$1(0, null);
|
|
return t1;
|
|
}
|
|
};
|
|
B.TagRenderLayoutBox.prototype = {
|
|
performLayout$0() {
|
|
this.super$RenderCustomMultiChildLayoutBox$performLayout();
|
|
this._box$_size = type$.TagEditorLayoutDelegate._as(this._custom_layout$_delegate).parentSize;
|
|
}
|
|
};
|
|
B.ValidationSuggestionItem.prototype = {};
|
|
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, 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, 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.MaterialTextButton.prototype = {
|
|
build$1(context) {
|
|
var t3, t4, _this = this, _null = null,
|
|
t1 = A.BorderRadius$circular(_this.borderRadius),
|
|
t2 = _this.padding;
|
|
if (t2 == null)
|
|
t2 = D.EdgeInsets_8_5_8_5;
|
|
t3 = _this.customStyle;
|
|
if (t3 == null) {
|
|
t3 = _this.labelColor;
|
|
if (t3 == null)
|
|
t3 = C.Color_4278221567;
|
|
t4 = _this.labelWeight;
|
|
if (t4 == null)
|
|
t4 = C.FontWeight_3_400;
|
|
t4 = A.TextStyle$(_null, _null, t3, _null, _null, _null, _null, _null, _null, _null, _null, _this.labelSize, _null, _null, t4, _null, _null, true, _null, _null, _null, _null, _null, _null, _null, _null);
|
|
t3 = t4;
|
|
}
|
|
return A.Material$(C.Duration_200000, true, _null, A.InkWell$(false, _null, true, new A.Padding(t2, A.Text$(_this.label, _null, _null, _null, _this.overflow, _null, _null, _this.softWrap, _null, t3, _null, _null, _null, _null, _null), _null), new A.RoundedRectangleBorder(t1, C.BorderSide_8xm), 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 t1, t2, t3, t4, t5, _this = this, _null = null;
|
|
$.$get$Get();
|
|
t1 = $.GetInstance__getInstance;
|
|
if (t1 == null)
|
|
t1 = $.GetInstance__getInstance = C.C_GetInstance;
|
|
t1.find$1$1$tag(0, _null, type$.ImagePaths);
|
|
t1 = _this.padding;
|
|
if (t1 == null)
|
|
t1 = D.EdgeInsetsDirectional_16_16_4_16;
|
|
t2 = new A.AvatarBuilder();
|
|
t3 = _this.userProfile;
|
|
t4 = t3 != null;
|
|
t2._avatar_builder$_text = t4 ? t3.email[0].toUpperCase() : "";
|
|
t2._bgColor = C.Color_4294967295;
|
|
t2._textColor = C.Color_4278190080;
|
|
t2._boxShadows = A._setArrayType([D.BoxShadow_oyn], type$.JSArray_BoxShadow);
|
|
t2._avatar_builder$_size = 48;
|
|
t2 = t2.build$0();
|
|
if (t4)
|
|
t3 = A.S(t3.email);
|
|
else
|
|
t3 = "";
|
|
t4 = type$.JSArray_Widget;
|
|
t3 = A._setArrayType([A.TextOverflowBuilder$(t3, D.TextStyle_oHY2)], t4);
|
|
if (_this.subtitle != null) {
|
|
t5 = A.Matrix4_Matrix4$translationValues(-8, 0, 0);
|
|
A.Localizations_of(context, C.Type_AppLocalizations_swi, type$.AppLocalizations).toString;
|
|
t3.push(new A.Padding(D.EdgeInsetsDirectional_0_10_0_0, A.Transform$(_null, B.MaterialTextButton$(20, E.TextStyle_kmC, A.Intl__message("Manage account", _null, "manage_account", _null, _null), _null, 15, _null, _null, _this.onSubtitleClick, _null, C.EdgeInsetsDirectional_8_8_8_8, _null), t5, true), _null));
|
|
}
|
|
t2 = A._setArrayType([t2, C.SizedBox_16_null_null_null, A.Expanded$(A.Column$(t3, C.CrossAxisAlignment_0, C.MainAxisAlignment_0, C.MainAxisSize_1, C.VerticalDirection_1), 1)], t4);
|
|
t2.push(C.SizedBox_16_null_null_null);
|
|
return A.Container$(_null, A.Row$(t2, C.CrossAxisAlignment_2, 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, userProfile, onLogoutAction, onSettingAction) {
|
|
var t1 = type$.dynamic;
|
|
return A._setArrayType([A.PopupMenuItem$(this._userInformation$2(context, userProfile), false, 48, C.EdgeInsets_0_0_0_0, null, t1), D.PopupMenuDivider_null, A.PopupMenuItem$(this._settingAction$2(context, onSettingAction), true, 48, C.EdgeInsets_0_0_0_0, null, t1), D.PopupMenuDivider_null, A.PopupMenuItem$(this._user_setting_popup_menu_mixin$_logoutAction$2(context, onLogoutAction), true, 48, C.EdgeInsets_0_0_0_0, null, t1)], type$.JSArray_PopupMenuEntry_dynamic);
|
|
},
|
|
_userInformation$2(context, userProfile) {
|
|
var _null = null;
|
|
if (userProfile != null)
|
|
return new A.SizedBox(300, _null, B.ListTile$(C.EdgeInsets_20_0_20_0, _null, _null, _null, A.Text$(userProfile.email, _null, _null, 1, _null, _null, _null, _null, _null, C.TextStyle_chs3, _null, _null, _null, _null, _null), _null), _null);
|
|
return C.SizedBox_0_0_null_null;
|
|
},
|
|
_settingAction$2(context, onCallBack) {
|
|
A.Localizations_of(context, C.Type_AppLocalizations_swi, 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));
|
|
},
|
|
_user_setting_popup_menu_mixin$_logoutAction$2(context, onCallBack) {
|
|
A.Localizations_of(context, C.Type_AppLocalizations_swi, 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 = C.EdgeInsets_12_0_0_0;
|
|
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 _this = this, _null = null,
|
|
t1 = A._setArrayType([], type$.JSArray_Widget),
|
|
t2 = _this.leadingIcon;
|
|
if (t2 != null)
|
|
t1.push(t2);
|
|
t2 = B.VacationResponseExtension_getNotificationMessage(_this.vacationResponse, context);
|
|
t1.push(A.Expanded$(A.Text$(t2, _null, _null, _null, _null, _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), 1));
|
|
if (_this.actionEndNow != null) {
|
|
A.Localizations_of(context, C.Type_AppLocalizations_swi, type$.AppLocalizations).toString;
|
|
t1.push(A.buildTextButton(A.Intl__message("End now", _null, "endNow", _null, _null), C.Color_0, 44, new B.VacationNotificationMessageWidget__buildBodyForDesktop_closure(_this), 10, C.TextStyle_yzp2, 90));
|
|
}
|
|
if (_this.actionGotoVacationSetting != null) {
|
|
A.Localizations_of(context, C.Type_AppLocalizations_swi, type$.AppLocalizations).toString;
|
|
t1.push(A.buildTextButton(A.Intl__message("Vacation setting", _null, "vacationSetting", _null, _null), C.Color_0, 44, new B.VacationNotificationMessageWidget__buildBodyForDesktop_closure0(_this), 10, C.TextStyle_yzp2, 150));
|
|
}
|
|
return A.Row$(t1, C.CrossAxisAlignment_2, C.MainAxisAlignment_0, C.MainAxisSize_1, _null);
|
|
},
|
|
_buildBodyForMobile$1(context) {
|
|
var _this = this, _null = null,
|
|
t1 = type$.JSArray_Widget,
|
|
t2 = A._setArrayType([], t1),
|
|
t3 = _this.leadingIcon;
|
|
if (t3 != null)
|
|
t2.push(t3);
|
|
t3 = B.VacationResponseExtension_getNotificationMessage(_this.vacationResponse, context);
|
|
t2.push(A.Expanded$(new A.Padding(D.EdgeInsets_0_12_12_0, A.Center$(A.Text$(t3, _null, _null, _null, _null, _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), _null, _null), _null), 1));
|
|
t2 = A.Row$(t2, C.CrossAxisAlignment_2, C.MainAxisAlignment_0, C.MainAxisSize_1, _null);
|
|
t3 = A._setArrayType([C.Spacer_null], t1);
|
|
if (_this.actionEndNow != null) {
|
|
A.Localizations_of(context, C.Type_AppLocalizations_swi, type$.AppLocalizations).toString;
|
|
t3.push(A.buildTextButton(A.Intl__message("End now", _null, "endNow", _null, _null), C.Color_0, 36, new B.VacationNotificationMessageWidget__buildBodyForMobile_closure(_this), 10, C.TextStyle_yzp2, 90));
|
|
}
|
|
if (_this.actionGotoVacationSetting != null) {
|
|
A.Localizations_of(context, C.Type_AppLocalizations_swi, type$.AppLocalizations).toString;
|
|
t3.push(A.buildTextButton(A.Intl__message("Vacation setting", _null, "vacationSetting", _null, _null), C.Color_0, 36, new B.VacationNotificationMessageWidget__buildBodyForMobile_closure0(_this), 10, C.TextStyle_yzp2, 150));
|
|
}
|
|
t3.push(C.Spacer_null);
|
|
return A.Column$(A._setArrayType([t2, A.Row$(t3, C.CrossAxisAlignment_2, C.MainAxisAlignment_0, C.MainAxisSize_1, _null)], t1), C.CrossAxisAlignment_2, C.MainAxisAlignment_0, C.MainAxisSize_1, C.VerticalDirection_1);
|
|
}
|
|
};
|
|
var typesOffset = hunkHelpers.updateTypes(["double(double)", "~()", "~(String)", "~(TapDownDetails)", "Widget(BuildContext)", "Widget(_ChildEntry)", "bool(PortalLinkScope)", "bool(SizeChangedLayoutNotification)", "Widget(Widget,Animation0<double>)", "Widget(Widget?,List<Widget>)"]);
|
|
B.CapitalizeExtension_get_capitalizeFirstEach_closure.prototype = {
|
|
call$1(str) {
|
|
return A.CapitalizeExtension_get_inCaps(str);
|
|
},
|
|
$signature: 33
|
|
};
|
|
B._HtmlContentViewerOnWebState__setUpWeb_closure.prototype = {
|
|
call$1($event) {
|
|
return this.$call$body$_HtmlContentViewerOnWebState__setUpWeb_closure($event);
|
|
},
|
|
$call$body$_HtmlContentViewerOnWebState__setUpWeb_closure($event) {
|
|
var $async$goto = 0,
|
|
$async$completer = A._makeAsyncAwaitCompleter(type$.void),
|
|
$async$self = this, t3, t4, jsonGetHeight, jsonGetWidth, t1, t2;
|
|
var $async$call$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
|
|
t1 = $async$self.$this;
|
|
t2 = t1.___HtmlContentViewerOnWebState_createdViewId_A;
|
|
t2 === $ && A.throwUnnamedLateFieldNI();
|
|
t3 = type$.String;
|
|
t4 = type$.Object;
|
|
jsonGetHeight = A._JsonStringStringifier_stringify(A.LinkedHashMap_LinkedHashMap$_literal(["type", "toIframe: getHeight", "view", t2], t3, t4), null, null);
|
|
t2 = window;
|
|
t2.toString;
|
|
C.Window_methods.postMessage$2(t2, jsonGetHeight, "*");
|
|
jsonGetWidth = A._JsonStringStringifier_stringify(A.LinkedHashMap_LinkedHashMap$_literal(["type", "toIframe: getWidth", "view", t1.___HtmlContentViewerOnWebState_createdViewId_A], t3, t4), null, null);
|
|
t4 = window;
|
|
t4.toString;
|
|
C.Window_methods.postMessage$2(t4, jsonGetWidth, "*");
|
|
t4 = window;
|
|
t4.toString;
|
|
A._EventStreamSubscription$(t4, "message", new B._HtmlContentViewerOnWebState__setUpWeb__closure(t1), false, type$.MessageEvent);
|
|
// implicit return
|
|
return A._asyncReturn(null, $async$completer);
|
|
}
|
|
});
|
|
return A._asyncStartSync($async$call$1, $async$completer);
|
|
},
|
|
$signature: 250
|
|
};
|
|
B._HtmlContentViewerOnWebState__setUpWeb__closure.prototype = {
|
|
call$1($event) {
|
|
var t2, t3, docHeight, scrollHeightWithBuffer, docWidth, link, _this = this, _s4_ = "type", _s4_0 = "view",
|
|
data = C.C_JsonCodec.decode$1(0, new A._AcceptStructuredCloneDart2Js([], []).convertNativeToDart_AcceptStructuredClone$2$mustCopy($event.data, true)),
|
|
t1 = J.getInterceptor$asx(data);
|
|
if (t1.$index(data, _s4_) != null)
|
|
if (J.contains$1$asx(t1.$index(data, _s4_), "toDart: htmlHeight")) {
|
|
t2 = t1.$index(data, _s4_0);
|
|
t3 = _this.$this.___HtmlContentViewerOnWebState_createdViewId_A;
|
|
t3 === $ && A.throwUnnamedLateFieldNI();
|
|
t3 = J.$eq$(t2, t3);
|
|
t2 = t3;
|
|
} else
|
|
t2 = false;
|
|
else
|
|
t2 = false;
|
|
if (t2) {
|
|
docHeight = t1.$index(data, "height");
|
|
if (docHeight == null) {
|
|
t2 = _this.$this.___HtmlContentViewerOnWebState_actualHeight_A;
|
|
t2 === $ && A.throwUnnamedLateFieldNI();
|
|
docHeight = t2;
|
|
}
|
|
t2 = _this.$this;
|
|
t3 = t2._framework$_element;
|
|
if (t3 != null) {
|
|
scrollHeightWithBuffer = J.$add$ansx(docHeight, 30);
|
|
if (J.$gt$n(scrollHeightWithBuffer, t2.minHeight))
|
|
t2.setState$1(new B._HtmlContentViewerOnWebState__setUpWeb___closure(t2, scrollHeightWithBuffer));
|
|
}
|
|
if (t2._framework$_element != null && t2._html_content_viewer_on_web_widget$_isLoading)
|
|
t2.setState$1(new B._HtmlContentViewerOnWebState__setUpWeb___closure0(t2));
|
|
}
|
|
if (t1.$index(data, _s4_) != null)
|
|
if (J.contains$1$asx(t1.$index(data, _s4_), "toDart: htmlWidth")) {
|
|
t2 = t1.$index(data, _s4_0);
|
|
t3 = _this.$this.___HtmlContentViewerOnWebState_createdViewId_A;
|
|
t3 === $ && A.throwUnnamedLateFieldNI();
|
|
t3 = J.$eq$(t2, t3);
|
|
t2 = t3;
|
|
} else
|
|
t2 = false;
|
|
else
|
|
t2 = false;
|
|
if (t2) {
|
|
docWidth = t1.$index(data, "width");
|
|
if (docWidth == null) {
|
|
t2 = _this.$this.___HtmlContentViewerOnWebState_actualWidth_A;
|
|
t2 === $ && A.throwUnnamedLateFieldNI();
|
|
docWidth = t2;
|
|
}
|
|
t2 = _this.$this;
|
|
t3 = t2._framework$_element;
|
|
if (t3 != null)
|
|
if (J.$gt$n(docWidth, 300) && t2._widget.allowResizeToDocumentSize)
|
|
t2.setState$1(new B._HtmlContentViewerOnWebState__setUpWeb___closure1(t2, docWidth));
|
|
}
|
|
if (t1.$index(data, _s4_) != null)
|
|
if (J.contains$1$asx(t1.$index(data, _s4_), "toDart: OpenLink")) {
|
|
t2 = t1.$index(data, _s4_0);
|
|
t3 = _this.$this.___HtmlContentViewerOnWebState_createdViewId_A;
|
|
t3 === $ && A.throwUnnamedLateFieldNI();
|
|
t3 = J.$eq$(t2, t3);
|
|
t2 = t3;
|
|
} else
|
|
t2 = false;
|
|
else
|
|
t2 = false;
|
|
if (t2) {
|
|
link = t1.$index(data, "url");
|
|
if (link != null && _this.$this._framework$_element != null) {
|
|
A._asString(link);
|
|
if (C.JSString_methods.startsWith$1(link, "mailto:")) {
|
|
t1 = _this.$this._widget.mailtoDelegate;
|
|
if (t1 != null)
|
|
t1.call$1(A.Uri_parse(link, 0, null));
|
|
}
|
|
}
|
|
}
|
|
},
|
|
$signature: 182
|
|
};
|
|
B._HtmlContentViewerOnWebState__setUpWeb___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__setUpWeb___closure0.prototype = {
|
|
call$0() {
|
|
this.$this._html_content_viewer_on_web_widget$_isLoading = false;
|
|
},
|
|
$signature: 0
|
|
};
|
|
B._HtmlContentViewerOnWebState__setUpWeb___closure1.prototype = {
|
|
call$0() {
|
|
this.$this.___HtmlContentViewerOnWebState_actualWidth_A = this.docWidth;
|
|
},
|
|
$signature: 0
|
|
};
|
|
B._HtmlContentViewerOnWebState__setUpWeb_closure0.prototype = {
|
|
call$1(viewId) {
|
|
return this.iframe;
|
|
},
|
|
$signature: 403
|
|
};
|
|
B._HtmlContentViewerOnWebState__setUpWeb_closure1.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_Ktb);
|
|
return new A.Stack(C.AlignmentDirectional_m1_m1, null, C.StackFit_0, C.Clip_1, t2, null);
|
|
},
|
|
$signature: 227
|
|
};
|
|
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, new A.ValueKey(t4, type$.ValueKey_nullable_String)), null);
|
|
} else
|
|
return C.SizedBox_0_0_null_null;
|
|
},
|
|
$signature: 1557
|
|
};
|
|
B.PopupMenuItemWidget_build_closure.prototype = {
|
|
call$0() {
|
|
return this.$this.onTapCallback.call$0();
|
|
},
|
|
$signature: 0
|
|
};
|
|
B._RawChipState__handleTapDown_closure.prototype = {
|
|
call$0() {
|
|
this.$this._isTapping = true;
|
|
},
|
|
$signature: 0
|
|
};
|
|
B._RawChipState__handleTapCancel_closure.prototype = {
|
|
call$0() {
|
|
this.$this._isTapping = false;
|
|
},
|
|
$signature: 0
|
|
};
|
|
B._RawChipState__handleTap_closure.prototype = {
|
|
call$0() {
|
|
this.$this._isTapping = false;
|
|
},
|
|
$signature: 0
|
|
};
|
|
B._RawChipState_didUpdateWidget_closure.prototype = {
|
|
call$0() {
|
|
var t1 = this.$this,
|
|
t2 = t1._widget.avatar != null || false;
|
|
t1 = t1.___RawChipState_avatarDrawerController_A;
|
|
if (t2) {
|
|
t1 === $ && A.throwUnnamedLateFieldNI();
|
|
t1.forward$0(0);
|
|
} else {
|
|
t1 === $ && A.throwUnnamedLateFieldNI();
|
|
t1.reverse$0(0);
|
|
}
|
|
},
|
|
$signature: 0
|
|
};
|
|
B._RawChipState_didUpdateWidget_closure0.prototype = {
|
|
call$0() {
|
|
var t1 = this.$this,
|
|
t2 = t1._widget.onDeleted;
|
|
t1 = t1.___RawChipState_deleteDrawerController_A;
|
|
if (t2 != null) {
|
|
t1 === $ && A.throwUnnamedLateFieldNI();
|
|
t1.forward$0(0);
|
|
} else {
|
|
t1 === $ && A.throwUnnamedLateFieldNI();
|
|
t1.reverse$0(0);
|
|
}
|
|
},
|
|
$signature: 0
|
|
};
|
|
B._RawChipState_build_closure.prototype = {
|
|
call$2(context, child) {
|
|
var _this = this, _null = null;
|
|
return A.Container$(_null, child, C.Clip_0, _null, _null, new A.ShapeDecoration(_this.$this._chip$_getBackgroundColor$3(_this.theme, _this.chipTheme, _this.chipDefaults), _null, _null, _null, _this.resolvedShape), _null, _null, _null, _null, _null, _null, _null, _null);
|
|
},
|
|
$signature: 1558
|
|
};
|
|
B._RenderChipRedirectingHitDetection_hitTest_closure.prototype = {
|
|
call$2(result, position) {
|
|
return this.$this.RenderObjectWithChildMixin__child.hitTest$2$position(result, this.offset);
|
|
},
|
|
$signature: 24
|
|
};
|
|
B._RenderChip_hitTest_closure.prototype = {
|
|
call$2(result, position) {
|
|
return this.hitTestChild.hitTest$2$position(result, this.center);
|
|
},
|
|
$signature: 24
|
|
};
|
|
B._RenderChip_performLayout_centerLayout.prototype = {
|
|
call$2(boxSize, x) {
|
|
var t1;
|
|
switch (this.$this._chip$_textDirection.index) {
|
|
case 0:
|
|
t1 = this.sizes;
|
|
return new A.Offset(x - boxSize._dx, (t1.content - boxSize._dy + t1.densityAdjustment._dy) / 2);
|
|
case 1:
|
|
t1 = this.sizes;
|
|
return new A.Offset(x, (t1.content - boxSize._dy + t1.densityAdjustment._dy) / 2);
|
|
}
|
|
},
|
|
$signature: 1559
|
|
};
|
|
B._RenderChip__paintAvatar_paintWithOverlay.prototype = {
|
|
call$2(context, offset) {
|
|
var t4, t5, avatarRect, darkenPaint, path, checkOffset,
|
|
t1 = this.$this,
|
|
t2 = t1.SlottedContainerRenderObjectMixin__slotToChild,
|
|
t3 = t2.$index(0, D._ChipSlot_1);
|
|
t3.toString;
|
|
t4 = t2.$index(0, D._ChipSlot_1).parentData;
|
|
t4.toString;
|
|
t5 = type$.BoxParentData;
|
|
context.paintChild$2(t3, t5._as(t4).offset.$add(0, offset));
|
|
t3 = t1.checkmarkAnimation;
|
|
t3 = t3.get$status(t3);
|
|
if (t3 !== C.AnimationStatus_0) {
|
|
if (t1._chip$_theme.showAvatar) {
|
|
avatarRect = B._RenderChip__boxRect(t2.$index(0, D._ChipSlot_1)).shift$1(offset);
|
|
darkenPaint = $.$get$_renderer().createPaint$0();
|
|
t3 = $.$get$_RenderChip_selectionScrimTween();
|
|
t4 = t1.checkmarkAnimation;
|
|
t4 = t3.transform$1(0, t4.get$value(t4));
|
|
t4.toString;
|
|
darkenPaint.set$color(0, t4);
|
|
darkenPaint.set$blendMode(C.BlendMode_9);
|
|
path = t1.avatarBorder.getOuterPath$1(avatarRect);
|
|
context.get$canvas(context).drawPath$2(path, darkenPaint);
|
|
}
|
|
t3 = t2.$index(0, D._ChipSlot_1)._box$_size._dy;
|
|
t4 = t2.$index(0, D._ChipSlot_1).parentData;
|
|
t4.toString;
|
|
checkOffset = t5._as(t4).offset.$add(0, new A.Offset(t2.$index(0, D._ChipSlot_1)._box$_size._dy * 0.125, t2.$index(0, D._ChipSlot_1)._box$_size._dy * 0.125));
|
|
t1._paintCheck$3(context.get$canvas(context), offset.$add(0, checkOffset), t3 * 0.75);
|
|
}
|
|
},
|
|
$signature: 27
|
|
};
|
|
B._RenderChip__paintChild_closure.prototype = {
|
|
call$2(context, offset) {
|
|
var t1 = this.child,
|
|
t2 = t1.parentData;
|
|
t2.toString;
|
|
context.paintChild$2(t1, type$.BoxParentData._as(t2).offset.$add(0, offset));
|
|
},
|
|
$signature: 27
|
|
};
|
|
B.ListTile_build_resolveColor.prototype = {
|
|
call$4(explicitColor, selectedColor, enabledColor, disabledColor) {
|
|
return new B._IndividualOverrides(explicitColor, enabledColor, selectedColor, disabledColor).resolve$1(this.states);
|
|
},
|
|
call$3(explicitColor, selectedColor, enabledColor) {
|
|
return this.call$4(explicitColor, selectedColor, enabledColor, null);
|
|
},
|
|
$signature: 1560
|
|
};
|
|
B._RenderListTile_paint_doPaint.prototype = {
|
|
call$1(child) {
|
|
var t1;
|
|
if (child != null) {
|
|
t1 = child.parentData;
|
|
t1.toString;
|
|
this.context.paintChild$2(child, type$.BoxParentData._as(t1).offset.$add(0, this.offset));
|
|
}
|
|
},
|
|
$signature: 337
|
|
};
|
|
B._RenderListTile_hitTestChildren_closure.prototype = {
|
|
call$2(result, transformed) {
|
|
return this.child.hitTest$2$position(result, transformed);
|
|
},
|
|
$signature: 24
|
|
};
|
|
B._AnimatedSwitcherState__newEntry_closure.prototype = {
|
|
call$1($status) {
|
|
var t1;
|
|
if ($status === C.AnimationStatus_0) {
|
|
t1 = this.$this;
|
|
t1.setState$1(new B._AnimatedSwitcherState__newEntry__closure(t1, this.entry));
|
|
this.controller.dispose$0();
|
|
}
|
|
},
|
|
$signature: 16
|
|
};
|
|
B._AnimatedSwitcherState__newEntry__closure.prototype = {
|
|
call$0() {
|
|
var t1 = this.$this;
|
|
t1._outgoingEntries.remove$1(0, this.entry);
|
|
t1._outgoingWidgets = null;
|
|
},
|
|
$signature: 0
|
|
};
|
|
B._AnimatedSwitcherState__rebuildOutgoingWidgetsIfNeeded_closure.prototype = {
|
|
call$1(entry) {
|
|
return entry.transition;
|
|
},
|
|
$signature: typesOffset + 5
|
|
};
|
|
B._AnimatedSwitcherState_build_closure.prototype = {
|
|
call$1(outgoing) {
|
|
var t1 = outgoing.key,
|
|
t2 = this.$this._currentEntry;
|
|
return !J.$eq$(t1, t2 == null ? null : t2.transition.key);
|
|
},
|
|
$signature: 1561
|
|
};
|
|
B._StreamBuilderBaseState__subscribe_closure.prototype = {
|
|
call$1(data) {
|
|
var t1 = this.$this;
|
|
t1.setState$1(new B._StreamBuilderBaseState__subscribe__closure1(t1, data));
|
|
},
|
|
$signature() {
|
|
return this.$this.$ti._eval$1("~(1)");
|
|
}
|
|
};
|
|
B._StreamBuilderBaseState__subscribe__closure1.prototype = {
|
|
call$0() {
|
|
var t1 = this.$this,
|
|
t2 = t1._widget;
|
|
t2.toString;
|
|
t1.___StreamBuilderBaseState__summary_A === $ && A.throwUnnamedLateFieldNI();
|
|
t1.___StreamBuilderBaseState__summary_A = new A.AsyncSnapshot(D.ConnectionState_2, this.data, null, null, A._instanceType(t2)._eval$1("AsyncSnapshot<1>"));
|
|
},
|
|
$signature: 0
|
|
};
|
|
B._StreamBuilderBaseState__subscribe_closure1.prototype = {
|
|
call$2(error, stackTrace) {
|
|
var t1 = this.$this;
|
|
t1.setState$1(new B._StreamBuilderBaseState__subscribe__closure(t1, error, stackTrace));
|
|
},
|
|
$signature: 99
|
|
};
|
|
B._StreamBuilderBaseState__subscribe__closure.prototype = {
|
|
call$0() {
|
|
var t1 = this.$this,
|
|
t2 = t1._widget;
|
|
t2.toString;
|
|
t1.___StreamBuilderBaseState__summary_A === $ && A.throwUnnamedLateFieldNI();
|
|
t1.___StreamBuilderBaseState__summary_A = new A.AsyncSnapshot(D.ConnectionState_2, null, this.error, this.stackTrace, A._instanceType(t2)._eval$1("AsyncSnapshot<1>"));
|
|
},
|
|
$signature: 0
|
|
};
|
|
B._StreamBuilderBaseState__subscribe_closure0.prototype = {
|
|
call$0() {
|
|
var t1 = this.$this;
|
|
t1.setState$1(new B._StreamBuilderBaseState__subscribe__closure0(t1));
|
|
},
|
|
$signature: 0
|
|
};
|
|
B._StreamBuilderBaseState__subscribe__closure0.prototype = {
|
|
call$0() {
|
|
var t2,
|
|
t1 = this.$this;
|
|
t1._widget.toString;
|
|
t2 = t1.___StreamBuilderBaseState__summary_A;
|
|
t2 === $ && A.throwUnnamedLateFieldNI();
|
|
t1.___StreamBuilderBaseState__summary_A = new A.AsyncSnapshot(C.ConnectionState_3, t2.data, t2.error, t2.stackTrace, t2.$ti);
|
|
},
|
|
$signature: 0
|
|
};
|
|
B.SizeChangedLayoutNotifier_createRenderObject_closure.prototype = {
|
|
call$0() {
|
|
this.context.dispatchNotification$1(D.C_SizeChangedLayoutNotification);
|
|
},
|
|
$signature: 0
|
|
};
|
|
B.Visibility_of_closure.prototype = {
|
|
call$1($parent) {
|
|
this._box_0.ancestorContext = $parent;
|
|
return false;
|
|
},
|
|
$signature: 67
|
|
};
|
|
B.ListEmailAddressExtension_emailAddressToListString_closure.prototype = {
|
|
call$1(emailAddress) {
|
|
return this.isFullEmailAddress ? B.EmailAddressExtension_asFullString(emailAddress) : A.EmailAddressExtension_asString(emailAddress);
|
|
},
|
|
$signature: 188
|
|
};
|
|
B.ListEmailAddressExtension_emailAddressToListString_closure0.prototype = {
|
|
call$1(emailAddress) {
|
|
return this.isFullEmailAddress ? B.EmailAddressExtension_asFullString(emailAddress) : A.EmailAddressExtension_asString(emailAddress);
|
|
},
|
|
$signature: 188
|
|
};
|
|
B.TagsEditorState__initializeSuggestionBox_closure.prototype = {
|
|
call$1(_) {
|
|
return this.$call$body$TagsEditorState__initializeSuggestionBox_closure(_);
|
|
},
|
|
$call$body$TagsEditorState__initializeSuggestionBox_closure(_) {
|
|
var $async$goto = 0,
|
|
$async$completer = A._makeAsyncAwaitCompleter(type$.void),
|
|
$async$self = this;
|
|
var $async$call$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
|
|
$async$self.$this._createOverlayEntry$0();
|
|
// implicit return
|
|
return A._asyncReturn(null, $async$completer);
|
|
}
|
|
});
|
|
return A._asyncStartSync($async$call$1, $async$completer);
|
|
},
|
|
$signature: 316
|
|
};
|
|
B.TagsEditorState__onFocusChanged_closure.prototype = {
|
|
call$0() {
|
|
var t1 = this.$this,
|
|
t2 = t1.__TagsEditorState__focusNode_A;
|
|
t2 === $ && A.throwUnnamedLateFieldNI();
|
|
t1._tag_editor$_isFocused = t2.get$hasFocus();
|
|
},
|
|
$signature: 0
|
|
};
|
|
B.TagsEditorState__createOverlayEntry_closure.prototype = {
|
|
call$1(context) {
|
|
var t4, topAvailableSpace, mq, bottomAvailableSpace, suggestionBoxHeight, showTop, compositedTransformFollowerOffset, _null = null, t1 = {},
|
|
t2 = this.$this,
|
|
t3 = type$.nullable_RenderBox;
|
|
if (t3._as(t2._framework$_element.get$renderObject()) != null) {
|
|
t4 = t3._as(t2._framework$_element.get$renderObject())._box$_size;
|
|
t4.toString;
|
|
topAvailableSpace = A.MatrixUtils_transformPoint(t3._as(t2._framework$_element.get$renderObject()).getTransformTo$1(0, _null), C.Offset_0_0)._dy;
|
|
mq = A.InheritedModel_inheritFrom(context, _null, type$.MediaQuery).data;
|
|
t3 = t4._dy;
|
|
bottomAvailableSpace = mq.size._dy - mq.viewInsets.bottom - topAvailableSpace - t3;
|
|
suggestionBoxHeight = Math.max(topAvailableSpace, bottomAvailableSpace);
|
|
t1.suggestionBoxHeight = suggestionBoxHeight;
|
|
t1.suggestionBoxHeight = Math.min(suggestionBoxHeight, t2._widget.suggestionsBoxMaxHeight);
|
|
showTop = topAvailableSpace > bottomAvailableSpace;
|
|
compositedTransformFollowerOffset = showTop ? new A.Offset(0, -t3) : C.Offset_0_0;
|
|
t3 = t2._suggestionsStreamController;
|
|
t3 = t3 == null ? _null : new A._BroadcastStream(t3, A._instanceType(t3)._eval$1("_BroadcastStream<1>"));
|
|
return new B.StreamBuilder(new B.TagsEditorState__createOverlayEntry__closure(t1, t2, t4, compositedTransformFollowerOffset, showTop), t2._tag_editor$_suggestions, t3, _null, t2.$ti._eval$1("StreamBuilder<List<1>?>"));
|
|
}
|
|
return A.Container$(_null, _null, C.Clip_0, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null);
|
|
},
|
|
$signature: 31
|
|
};
|
|
B.TagsEditorState__createOverlayEntry__closure.prototype = {
|
|
call$2(context, snapshot) {
|
|
var t2, t3, t4, t5, t6, t7, t8, t9, t10, suggestionsListView, _this = this, _null = null,
|
|
t1 = snapshot.data;
|
|
if (t1 != null && J.get$isNotEmpty$asx(t1)) {
|
|
t2 = _this.$this;
|
|
t3 = t2._widget;
|
|
t4 = t3.suggestionMargin;
|
|
if (t4 == null)
|
|
t4 = C.EdgeInsets_0_0_0_0;
|
|
t5 = t3.suggestionsBoxElevation;
|
|
if (t5 == null)
|
|
t5 = 20;
|
|
t6 = t3.suggestionsBoxRadius;
|
|
t7 = A.BorderRadius$circular(t6);
|
|
t8 = t3.suggestionsBoxBackgroundColor;
|
|
t9 = A.BorderRadius$circular(t6);
|
|
t6 = A.BorderRadius$all(new A.Radius(t6, t6));
|
|
t10 = _this._box_0.suggestionBoxHeight;
|
|
t3 = t3.suggestionPadding;
|
|
if (t3 == null)
|
|
t3 = C.EdgeInsets_0_0_0_0;
|
|
t1.toString;
|
|
suggestionsListView = A.TextFieldTapRegion$(A.PointerInterceptor$(A.AutocompleteHighlightedOption$(new B.ValidationSuggestionItem(t2._validationSuggestionItemNotifier, new A.Padding(t4, A.Material$(C.Duration_200000, true, t7, A.ClipRRect$(t9, A.Container$(_null, A.ListView$builder(_null, new B.TagsEditorState__createOverlayEntry___closure(t2, snapshot), J.get$length$asx(t1), _null, _null, t3, _null, _null, C.Axis_1, true), C.Clip_0, _null, new A.BoxConstraints(0, 1 / 0, 0, t10), new A.BoxDecoration(t8, _null, _null, t6, _null, _null, _null, C.BoxShape_0), _null, _null, _null, _null, _null, _null, _null, _null), C.Clip_2), C.Clip_0, t8, t5, _null, _null, _null, _null, _null, C.MaterialType_0), _null), _null), t2._tag_editor$_highlightedOptionIndex)), _null, _null);
|
|
t5 = t2._widget.suggestionBoxWidth;
|
|
t1 = t5 == null ? _this.size._dx : t5;
|
|
t3 = !_this.showTop ? suggestionsListView : A.FractionalTranslation$(suggestionsListView, true, C.Offset_0_m1);
|
|
return A.Positioned$(_null, A.CompositedTransformFollower$(t3, t2._tag_editor$_layerLink, _this.compositedTransformFollowerOffset, false, C.Alignment_m1_m1), _null, _null, _null, _null, _null, t1);
|
|
}
|
|
return A.Container$(_null, _null, C.Clip_0, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null);
|
|
},
|
|
$signature() {
|
|
return this.$this.$ti._eval$1("Widget(BuildContext,AsyncSnapshot<List<1>?>)");
|
|
}
|
|
};
|
|
B.TagsEditorState__createOverlayEntry___closure.prototype = {
|
|
call$2(context, index) {
|
|
var item, highlight, t3, t4, t5, _null = null,
|
|
t1 = this.$this,
|
|
t2 = t1._tag_editor$_suggestions;
|
|
if (t2 != null)
|
|
t2 = J.get$isNotEmpty$asx(t2) === true;
|
|
else
|
|
t2 = false;
|
|
if (t2) {
|
|
t2 = t1._tag_editor$_suggestions;
|
|
t2.toString;
|
|
item = J.$index$asx(t2, index);
|
|
highlight = A.AutocompleteHighlightedOption_of(context) === index;
|
|
t2 = context.dependOnInheritedWidgetOfExactType$1$0(type$.ValidationSuggestionItem);
|
|
if (t2 == null)
|
|
t2 = _null;
|
|
else
|
|
t2 = t2.notifier._change_notifier$_value;
|
|
t3 = t1._widget;
|
|
if (!t3.useDefaultHighlight) {
|
|
t4 = this.snapshot.data;
|
|
t4.toString;
|
|
t4 = J.get$length$asx(t4);
|
|
return t3.suggestionBuilder.call$7(context, t1, item, index, t4, highlight, t2);
|
|
} else {
|
|
if (highlight)
|
|
t3 = A.Theme_of(context).focusColor;
|
|
else
|
|
t3 = _null;
|
|
t4 = t1._widget;
|
|
t4.toString;
|
|
t5 = this.snapshot.data;
|
|
t5.toString;
|
|
return A.Container$(_null, t4.suggestionBuilder.call$7(context, t1, item, index, J.get$length$asx(t5), highlight, t2), C.Clip_0, t3, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null);
|
|
}
|
|
} else
|
|
return A.Container$(_null, _null, C.Clip_0, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null);
|
|
},
|
|
$signature: 102
|
|
};
|
|
B.TagsEditorState__onSearchChanged_closure.prototype = {
|
|
call$0() {
|
|
return this.$this._tag_editor$_suggestions = this.results;
|
|
},
|
|
$signature: 0
|
|
};
|
|
B.TagsEditorState__scrollToVisible_closure.prototype = {
|
|
call$0() {
|
|
$.WidgetsBinding__instance.SchedulerBinding__postFrameCallbacks.push(new B.TagsEditorState__scrollToVisible__closure(this.$this));
|
|
},
|
|
$signature: 7
|
|
};
|
|
B.TagsEditorState__scrollToVisible__closure.prototype = {
|
|
call$1(_) {
|
|
return this.$call$body$TagsEditorState__scrollToVisible__closure(_);
|
|
},
|
|
$call$body$TagsEditorState__scrollToVisible__closure(_) {
|
|
var $async$goto = 0,
|
|
$async$completer = A._makeAsyncAwaitCompleter(type$.void),
|
|
$async$self = this, t1, renderBox;
|
|
var $async$call$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
|
|
t1 = $async$self.$this;
|
|
renderBox = type$.RenderBox._as(t1._framework$_element.get$renderObject());
|
|
t1 = t1._framework$_element;
|
|
t1.toString;
|
|
$async$goto = 2;
|
|
return A._asyncAwait(A.Scrollable_maybeOf(t1)._scrollable$_position.ensureVisible$1(renderBox), $async$call$1);
|
|
case 2:
|
|
// returning from await.
|
|
// implicit return
|
|
return A._asyncReturn(null, $async$completer);
|
|
}
|
|
});
|
|
return A._asyncStartSync($async$call$1, $async$completer);
|
|
},
|
|
$signature: 316
|
|
};
|
|
B.TagsEditorState_build_closure0.prototype = {
|
|
call$1($event) {
|
|
var t1 = $event instanceof A.RawKeyDownEvent;
|
|
if (t1 && $event.data.get$logicalKey().$eq(0, C.LogicalKeyboardKey_4294967304))
|
|
this.$this._onKeyboardBackspaceListener$0();
|
|
else if (t1 && $event.data.get$logicalKey().$eq(0, C.LogicalKeyboardKey_4294968065)) {
|
|
t1 = this.$this;
|
|
t1._tag_editor$_updateHighlight$1(t1._tag_editor$_highlightedOptionIndex._change_notifier$_value + 1);
|
|
} else if (t1 && $event.data.get$logicalKey().$eq(0, C.LogicalKeyboardKey_4294968068)) {
|
|
t1 = this.$this;
|
|
t1._tag_editor$_updateHighlight$1(t1._tag_editor$_highlightedOptionIndex._change_notifier$_value - 1);
|
|
}
|
|
},
|
|
$signature: 93
|
|
};
|
|
B.TagsEditorState_build_closure.prototype = {
|
|
call$1(value) {
|
|
var t2, directionByText,
|
|
t1 = this.$this;
|
|
t1.get$_onTextFieldChange().call$1(value);
|
|
if (value.length !== 0) {
|
|
t2 = A.RegExp_RegExp("[\\u0591-\\u07FF\\uFB1D-\\uFDFD\\uFE70-\\uFEFC][^A-Za-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02B8\\u0300-\\u0590\\u0800-\\u1FFF\\u2C00-\\uFB1C\\uFDFE-\\uFE6F\\uFEFD-\\uFFFF]*$", true, false, false);
|
|
directionByText = t2._nativeRegExp.test(value) ? C.TextDirection_0 : C.TextDirection_1;
|
|
t2 = t1.__TagsEditorState__textDirection_A;
|
|
t2 === $ && A.throwUnnamedLateFieldNI();
|
|
if (directionByText !== t2)
|
|
t1.setState$1(new B.TagsEditorState_build__closure0(t1, directionByText));
|
|
}
|
|
},
|
|
$signature: 8
|
|
};
|
|
B.TagsEditorState_build__closure0.prototype = {
|
|
call$0() {
|
|
this.$this.__TagsEditorState__textDirection_A = this.directionByText;
|
|
},
|
|
$signature: 0
|
|
};
|
|
B.TagsEditorState_build_closure1.prototype = {
|
|
call$1(val) {
|
|
$.WidgetsBinding__instance.SchedulerBinding__postFrameCallbacks.push(new B.TagsEditorState_build__closure(this.$this));
|
|
return true;
|
|
},
|
|
$signature: typesOffset + 7
|
|
};
|
|
B.TagsEditorState_build__closure.prototype = {
|
|
call$1(_) {
|
|
return this.$call$body$TagsEditorState_build__closure(_);
|
|
},
|
|
$call$body$TagsEditorState_build__closure(_) {
|
|
var $async$goto = 0,
|
|
$async$completer = A._makeAsyncAwaitCompleter(type$.void),
|
|
$async$self = this, t1;
|
|
var $async$call$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
|
|
t1 = $async$self.$this._suggestionsBoxController;
|
|
if (t1 != null) {
|
|
t1 = t1.overlayEntry;
|
|
if (t1 != null)
|
|
t1.markNeedsBuild$0();
|
|
}
|
|
// implicit return
|
|
return A._asyncReturn(null, $async$completer);
|
|
}
|
|
});
|
|
return A._asyncStartSync($async$call$1, $async$completer);
|
|
},
|
|
$signature: 316
|
|
};
|
|
B.TagEditorLayoutDelegate__isOverflow_closure.prototype = {
|
|
call$2(result, tag) {
|
|
return result + tag._dx;
|
|
},
|
|
$signature: 571
|
|
};
|
|
B.TagEditorLayoutDelegate_performLayout_closure.prototype = {
|
|
call$2(result, tag) {
|
|
return result + tag._dx;
|
|
},
|
|
$signature: 571
|
|
};
|
|
B.UserSettingPopupMenuMixin__settingAction_closure.prototype = {
|
|
call$0() {
|
|
var t1 = this.onCallBack.call$0();
|
|
return t1;
|
|
},
|
|
$signature: 55
|
|
};
|
|
B.UserSettingPopupMenuMixin__logoutAction_closure.prototype = {
|
|
call$0() {
|
|
var t1 = this.onCallBack.call$0();
|
|
return t1;
|
|
},
|
|
$signature: 55
|
|
};
|
|
B.VacationNotificationMessageWidget__buildBodyForDesktop_closure.prototype = {
|
|
call$0() {
|
|
return this.$this.actionEndNow.call$0();
|
|
},
|
|
$signature: 0
|
|
};
|
|
B.VacationNotificationMessageWidget__buildBodyForDesktop_closure0.prototype = {
|
|
call$0() {
|
|
return this.$this.actionGotoVacationSetting.call$0();
|
|
},
|
|
$signature: 0
|
|
};
|
|
B.VacationNotificationMessageWidget__buildBodyForMobile_closure.prototype = {
|
|
call$0() {
|
|
return this.$this.actionEndNow.call$0();
|
|
},
|
|
$signature: 0
|
|
};
|
|
B.VacationNotificationMessageWidget__buildBodyForMobile_closure0.prototype = {
|
|
call$0() {
|
|
return this.$this.actionGotoVacationSetting.call$0();
|
|
},
|
|
$signature: 0
|
|
};
|
|
(function aliases() {
|
|
var _ = B.__RawChipState_State_MaterialStateMixin_TickerProviderStateMixin.prototype;
|
|
_.super$__RawChipState_State_MaterialStateMixin_TickerProviderStateMixin$dispose = _.dispose$0;
|
|
_ = B.__AnimatedSwitcherState_State_TickerProviderStateMixin.prototype;
|
|
_.super$__AnimatedSwitcherState_State_TickerProviderStateMixin$dispose = _.dispose$0;
|
|
})();
|
|
(function installTearOffs() {
|
|
var _instance_1_u = hunkHelpers._instance_1u,
|
|
_instance_0_u = hunkHelpers._instance_0u,
|
|
_static_2 = hunkHelpers._static_2;
|
|
var _;
|
|
_instance_1_u(_ = B._RawChipState.prototype, "get$_handleTapDown", "_handleTapDown$1", 3);
|
|
_instance_0_u(_, "get$_handleTapCancel", "_handleTapCancel$0", 1);
|
|
_instance_0_u(_, "get$_handleTap", "_handleTap$0", 1);
|
|
_instance_1_u(_ = B._RenderChip.prototype, "get$computeMinIntrinsicWidth", "computeMinIntrinsicWidth$1", 0);
|
|
_instance_1_u(_, "get$computeMaxIntrinsicWidth", "computeMaxIntrinsicWidth$1", 0);
|
|
_instance_1_u(_, "get$computeMinIntrinsicHeight", "computeMinIntrinsicHeight$1", 0);
|
|
_instance_1_u(_, "get$computeMaxIntrinsicHeight", "computeMaxIntrinsicHeight$1", 0);
|
|
_instance_0_u(_ = B._InkState.prototype, "get$_handleRemoved", "_handleRemoved$0", 1);
|
|
_instance_1_u(_, "get$_ink_decoration$_build", "_ink_decoration$_build$1", 4);
|
|
_instance_0_u(B.InkDecoration.prototype, "get$_handleChanged", "_handleChanged$0", 1);
|
|
_instance_1_u(_ = B._RenderListTile.prototype, "get$computeMinIntrinsicWidth", "computeMinIntrinsicWidth$1", 0);
|
|
_instance_1_u(_, "get$computeMaxIntrinsicWidth", "computeMaxIntrinsicWidth$1", 0);
|
|
_instance_1_u(_, "get$computeMinIntrinsicHeight", "computeMinIntrinsicHeight$1", 0);
|
|
_instance_1_u(_, "get$computeMaxIntrinsicHeight", "computeMaxIntrinsicHeight$1", 0);
|
|
_static_2(B, "animated_switcher_AnimatedSwitcher_defaultTransitionBuilder$closure", "AnimatedSwitcher_defaultTransitionBuilder", 8);
|
|
_static_2(B, "animated_switcher_AnimatedSwitcher_defaultLayoutBuilder$closure", "AnimatedSwitcher_defaultLayoutBuilder", 9);
|
|
_instance_1_u(B.PortalLinkScope.prototype, "get$linkEquals", "linkEquals$1", 6);
|
|
_instance_0_u(_ = B.TagsEditorState.prototype, "get$_onFocusChanged", "_onFocusChanged$0", 1);
|
|
_instance_0_u(_, "get$_onFocusKeyboardChanged", "_onFocusKeyboardChanged$0", 1);
|
|
_instance_1_u(_, "get$_onTextFieldChange", "_onTextFieldChange$1", 2);
|
|
_instance_1_u(_, "get$_onSearchChanged", "_onSearchChanged$1", 2);
|
|
_instance_1_u(_, "get$_onSubmitted", "_onSubmitted$1", 2);
|
|
})();
|
|
(function inheritance() {
|
|
var _mixinHard = hunkHelpers.mixinHard,
|
|
_mixin = hunkHelpers.mixin,
|
|
_inheritMany = hunkHelpers.inheritMany,
|
|
_inherit = hunkHelpers.inherit;
|
|
_inheritMany(A.Closure, [B.CapitalizeExtension_get_capitalizeFirstEach_closure, B._HtmlContentViewerOnWebState__setUpWeb_closure, B._HtmlContentViewerOnWebState__setUpWeb__closure, B._HtmlContentViewerOnWebState__setUpWeb_closure0, B.ListTile_build_resolveColor, B._RenderListTile_paint_doPaint, B._AnimatedSwitcherState__newEntry_closure, B._AnimatedSwitcherState__rebuildOutgoingWidgetsIfNeeded_closure, B._AnimatedSwitcherState_build_closure, B._StreamBuilderBaseState__subscribe_closure, B.Visibility_of_closure, B.ListEmailAddressExtension_emailAddressToListString_closure, B.ListEmailAddressExtension_emailAddressToListString_closure0, B.TagsEditorState__initializeSuggestionBox_closure, B.TagsEditorState__createOverlayEntry_closure, B.TagsEditorState__scrollToVisible__closure, B.TagsEditorState_build_closure0, B.TagsEditorState_build_closure, B.TagsEditorState_build_closure1, B.TagsEditorState_build__closure]);
|
|
_inheritMany(A.StatefulWidget, [B.HtmlContentViewerOnWeb, B.RawChip, B.Ink, B.AnimatedSwitcher, B.StreamBuilderBase, B.Portal, B.TagEditor]);
|
|
_inheritMany(A.State0, [B._HtmlContentViewerOnWebState, B.__RawChipState_State_MaterialStateMixin, B._InkState, B._PopupMenuDividerState, B.__AnimatedSwitcherState_State_TickerProviderStateMixin, B._StreamBuilderBaseState, B._PortalState, B.TagsEditorState]);
|
|
_inheritMany(A.Closure0Args, [B._HtmlContentViewerOnWebState__setUpWeb___closure, B._HtmlContentViewerOnWebState__setUpWeb___closure0, B._HtmlContentViewerOnWebState__setUpWeb___closure1, B._HtmlContentViewerOnWebState__setUpWeb_closure1, B.PopupMenuItemWidget_build_closure, B._RawChipState__handleTapDown_closure, B._RawChipState__handleTapCancel_closure, B._RawChipState__handleTap_closure, B._RawChipState_didUpdateWidget_closure, B._RawChipState_didUpdateWidget_closure0, B._AnimatedSwitcherState__newEntry__closure, B._StreamBuilderBaseState__subscribe__closure1, B._StreamBuilderBaseState__subscribe__closure, B._StreamBuilderBaseState__subscribe_closure0, B._StreamBuilderBaseState__subscribe__closure0, B.SizeChangedLayoutNotifier_createRenderObject_closure, B.TagsEditorState__onFocusChanged_closure, B.TagsEditorState__onSearchChanged_closure, B.TagsEditorState__scrollToVisible_closure, B.TagsEditorState_build__closure0, B.UserSettingPopupMenuMixin__settingAction_closure, B.UserSettingPopupMenuMixin__logoutAction_closure, B.VacationNotificationMessageWidget__buildBodyForDesktop_closure, B.VacationNotificationMessageWidget__buildBodyForDesktop_closure0, B.VacationNotificationMessageWidget__buildBodyForMobile_closure, B.VacationNotificationMessageWidget__buildBodyForMobile_closure0]);
|
|
_inheritMany(A.Closure2Args, [B._HtmlContentViewerOnWebState_build_closure, B._HtmlContentViewerOnWebState_build__closure, B._RawChipState_build_closure, B._RenderChipRedirectingHitDetection_hitTest_closure, B._RenderChip_hitTest_closure, B._RenderChip_performLayout_centerLayout, B._RenderChip__paintAvatar_paintWithOverlay, B._RenderChip__paintChild_closure, B._RenderListTile_hitTestChildren_closure, B._StreamBuilderBaseState__subscribe_closure1, B.TagsEditorState__createOverlayEntry__closure, B.TagsEditorState__createOverlayEntry___closure, B.TagEditorLayoutDelegate__isOverflow_closure, B.TagEditorLayoutDelegate_performLayout_closure]);
|
|
_inheritMany(A.Object, [B.HtmlViewerControllerForWeb, B._ChipRenderTheme, B._ChipSizes, B._ChildEntry, B.PortalLink, B.SuggestionsBoxController, B.PopupMenuWidgetMixin, B.UserSettingPopupMenuMixin]);
|
|
_inheritMany(A.StatelessWidget, [B.PopupMenuItemWidget, B.Chip, B.Drawer, B.ListTile, B.MaterialTextButton, B.UserInformationWidget, B.VacationNotificationMessageWidget]);
|
|
_inherit(B.__RawChipState_State_MaterialStateMixin_TickerProviderStateMixin, B.__RawChipState_State_MaterialStateMixin);
|
|
_inherit(B._RawChipState, B.__RawChipState_State_MaterialStateMixin_TickerProviderStateMixin);
|
|
_inheritMany(A.SingleChildRenderObjectWidget, [B._ChipRedirectingHitDetectionWidget, B.SizeChangedLayoutNotifier, B.PortalTheater]);
|
|
_inherit(B._RenderChipRedirectingHitDetection, A.RenderConstrainedBox);
|
|
_inheritMany(A.RenderObjectWidget, [B.__ChipRenderWidget_RenderObjectWidget_SlottedMultiChildRenderObjectWidgetMixin, B.__ListTile_RenderObjectWidget_SlottedMultiChildRenderObjectWidgetMixin]);
|
|
_inherit(B._ChipRenderWidget, B.__ChipRenderWidget_RenderObjectWidget_SlottedMultiChildRenderObjectWidgetMixin);
|
|
_inheritMany(A._Enum, [B._ChipSlot, B.ListTileTitleAlignment, B._ListTileSlot]);
|
|
_inheritMany(A.RenderBox, [B.__RenderChip_RenderBox_SlottedContainerRenderObjectMixin, B.__RenderListTile_RenderBox_SlottedContainerRenderObjectMixin]);
|
|
_inherit(B._RenderChip, B.__RenderChip_RenderBox_SlottedContainerRenderObjectMixin);
|
|
_inherit(B._UnconstrainedInkSplashFactory, A.InteractiveInkFeatureFactory);
|
|
_inherit(B._DrawerDefaultsM2, A.DrawerThemeData);
|
|
_inherit(B.InkDecoration, A.InkFeature);
|
|
_inherit(B._IndividualOverrides, A.MaterialStateProperty);
|
|
_inherit(B._ListTile, B.__ListTile_RenderObjectWidget_SlottedMultiChildRenderObjectWidgetMixin);
|
|
_inherit(B._RenderListTile, B.__RenderListTile_RenderBox_SlottedContainerRenderObjectMixin);
|
|
_inherit(B._LisTileDefaultsM2, A.ListTileThemeData);
|
|
_inherit(B.PopupMenuDivider, A.PopupMenuEntry);
|
|
_inherit(B._AnimatedSwitcherState, B.__AnimatedSwitcherState_State_TickerProviderStateMixin);
|
|
_inherit(B.StreamBuilder, B.StreamBuilderBase);
|
|
_inherit(B.SizeChangedLayoutNotification, A.LayoutChangedNotification);
|
|
_inheritMany(A.RenderProxyBox, [B._RenderSizeChangedWithCallback, B.RenderPortalTheater]);
|
|
_inherit(B.PortalLinkScope, A.InheritedWidget);
|
|
_inherit(B.TagEditorLayoutDelegate, A.MultiChildLayoutDelegate);
|
|
_inherit(B.TagLayout, A.CustomMultiChildLayout);
|
|
_inherit(B.TagRenderLayoutBox, A.RenderCustomMultiChildLayoutBox);
|
|
_inherit(B.ValidationSuggestionItem, A.InheritedNotifier);
|
|
_mixinHard(B.__ChipRenderWidget_RenderObjectWidget_SlottedMultiChildRenderObjectWidgetMixin, A.SlottedMultiChildRenderObjectWidgetMixin);
|
|
_mixin(B.__RawChipState_State_MaterialStateMixin, A.MaterialStateMixin);
|
|
_mixinHard(B.__RawChipState_State_MaterialStateMixin_TickerProviderStateMixin, A.TickerProviderStateMixin);
|
|
_mixinHard(B.__RenderChip_RenderBox_SlottedContainerRenderObjectMixin, A.SlottedContainerRenderObjectMixin);
|
|
_mixinHard(B.__ListTile_RenderObjectWidget_SlottedMultiChildRenderObjectWidgetMixin, A.SlottedMultiChildRenderObjectWidgetMixin);
|
|
_mixinHard(B.__RenderListTile_RenderBox_SlottedContainerRenderObjectMixin, A.SlottedContainerRenderObjectMixin);
|
|
_mixinHard(B.__AnimatedSwitcherState_State_TickerProviderStateMixin, A.TickerProviderStateMixin);
|
|
})();
|
|
A._Universe_addRules(init.typeUniverse, JSON.parse('{"HtmlContentViewerOnWeb":{"StatefulWidget":[],"Widget":[],"DiagnosticableTree":[]},"_HtmlContentViewerOnWebState":{"State0":["HtmlContentViewerOnWeb"]},"PopupMenuItemWidget":{"StatelessWidget":[],"Widget":[],"DiagnosticableTree":[]},"Chip":{"StatelessWidget":[],"Widget":[],"DiagnosticableTree":[]},"RawChip":{"StatefulWidget":[],"Widget":[],"DiagnosticableTree":[]},"_ChipSlot":{"Enum":[]},"_RawChipState":{"State0":["RawChip"]},"_ChipRedirectingHitDetectionWidget":{"SingleChildRenderObjectWidget":[],"RenderObjectWidget":[],"Widget":[],"DiagnosticableTree":[]},"_RenderChipRedirectingHitDetection":{"RenderBox":[],"RenderObjectWithChildMixin":["RenderBox"],"RenderObject":[],"DiagnosticableTree":[],"AbstractNode":[],"HitTestTarget":[]},"_ChipRenderWidget":{"SlottedMultiChildRenderObjectWidgetMixin":["_ChipSlot"],"RenderObjectWidget":[],"Widget":[],"DiagnosticableTree":[],"SlottedMultiChildRenderObjectWidgetMixin.S":"_ChipSlot"},"_RenderChip":{"SlottedContainerRenderObjectMixin":["_ChipSlot"],"RenderBox":[],"RenderObject":[],"DiagnosticableTree":[],"AbstractNode":[],"HitTestTarget":[],"SlottedContainerRenderObjectMixin.S":"_ChipSlot"},"Drawer":{"StatelessWidget":[],"Widget":[],"DiagnosticableTree":[]},"Ink":{"StatefulWidget":[],"Widget":[],"DiagnosticableTree":[]},"_InkState":{"State0":["Ink"]},"InkDecoration":{"InkFeature":[]},"_ListTileSlot":{"Enum":[]},"ListTileTitleAlignment":{"Enum":[]},"ListTile":{"StatelessWidget":[],"Widget":[],"DiagnosticableTree":[]},"_IndividualOverrides":{"MaterialStateProperty":["Color?"]},"_ListTile":{"SlottedMultiChildRenderObjectWidgetMixin":["_ListTileSlot"],"RenderObjectWidget":[],"Widget":[],"DiagnosticableTree":[],"SlottedMultiChildRenderObjectWidgetMixin.S":"_ListTileSlot"},"_RenderListTile":{"SlottedContainerRenderObjectMixin":["_ListTileSlot"],"RenderBox":[],"RenderObject":[],"DiagnosticableTree":[],"AbstractNode":[],"HitTestTarget":[],"SlottedContainerRenderObjectMixin.S":"_ListTileSlot"},"PopupMenuDivider":{"PopupMenuEntry":["0&"],"StatefulWidget":[],"Widget":[],"DiagnosticableTree":[]},"_PopupMenuDividerState":{"State0":["PopupMenuDivider"]},"AnimatedSwitcher":{"StatefulWidget":[],"Widget":[],"DiagnosticableTree":[]},"_AnimatedSwitcherState":{"State0":["AnimatedSwitcher"]},"StreamBuilderBase":{"StatefulWidget":[],"Widget":[],"DiagnosticableTree":[]},"_StreamBuilderBaseState":{"State0":["StreamBuilderBase<1,2>"]},"StreamBuilder":{"StreamBuilderBase":["1","AsyncSnapshot<1>"],"StatefulWidget":[],"Widget":[],"DiagnosticableTree":[],"StreamBuilderBase.T":"1","StreamBuilderBase.S":"AsyncSnapshot<1>"},"SizeChangedLayoutNotification":{"LayoutChangedNotification":[]},"SizeChangedLayoutNotifier":{"SingleChildRenderObjectWidget":[],"RenderObjectWidget":[],"Widget":[],"DiagnosticableTree":[]},"_RenderSizeChangedWithCallback":{"RenderBox":[],"RenderObjectWithChildMixin":["RenderBox"],"RenderObject":[],"DiagnosticableTree":[],"AbstractNode":[],"HitTestTarget":[]},"Portal":{"StatefulWidget":[],"Widget":[],"DiagnosticableTree":[]},"_PortalState":{"State0":["Portal"]},"PortalLinkScope":{"InheritedWidget":[],"ProxyWidget":[],"Widget":[],"DiagnosticableTree":[]},"PortalTheater":{"SingleChildRenderObjectWidget":[],"RenderObjectWidget":[],"Widget":[],"DiagnosticableTree":[]},"RenderPortalTheater":{"RenderBox":[],"RenderObjectWithChildMixin":["RenderBox"],"RenderObject":[],"DiagnosticableTree":[],"AbstractNode":[],"HitTestTarget":[]},"TagEditor":{"StatefulWidget":[],"Widget":[],"DiagnosticableTree":[]},"TagsEditorState":{"State0":["TagEditor<1>"]},"TagLayout":{"MultiChildRenderObjectWidget":[],"RenderObjectWidget":[],"Widget":[],"DiagnosticableTree":[]},"TagRenderLayoutBox":{"RenderBoxContainerDefaultsMixin":["RenderBox","MultiChildLayoutParentData"],"RenderBox":[],"ContainerRenderObjectMixin":["RenderBox","MultiChildLayoutParentData"],"RenderObject":[],"DiagnosticableTree":[],"AbstractNode":[],"HitTestTarget":[],"ContainerRenderObjectMixin.1":"MultiChildLayoutParentData","RenderBoxContainerDefaultsMixin.1":"MultiChildLayoutParentData","RenderBoxContainerDefaultsMixin.0":"RenderBox","ContainerRenderObjectMixin.0":"RenderBox"},"ValidationSuggestionItem":{"InheritedNotifier":["ValueNotifier<String?>"],"InheritedWidget":[],"ProxyWidget":[],"Widget":[],"DiagnosticableTree":[],"InheritedNotifier.T":"ValueNotifier<String?>"},"MaterialTextButton":{"StatelessWidget":[],"Widget":[],"DiagnosticableTree":[]},"UserInformationWidget":{"StatelessWidget":[],"Widget":[],"DiagnosticableTree":[]},"VacationNotificationMessageWidget":{"StatelessWidget":[],"Widget":[],"DiagnosticableTree":[]},"ChipTheme":{"InheritedTheme":[],"InheritedWidget":[],"ProxyWidget":[],"Widget":[],"DiagnosticableTree":[]}}'));
|
|
var type$ = (function rtii() {
|
|
var findType = A.findType;
|
|
return {
|
|
AppLocalizations: findType("AppLocalizations"),
|
|
BoxConstraints: findType("BoxConstraints"),
|
|
BoxParentData: findType("BoxParentData"),
|
|
ChipTheme: findType("ChipTheme"),
|
|
ContainerLayer: findType("ContainerLayer0"),
|
|
Directionality: findType("Directionality"),
|
|
ImagePaths: findType("ImagePaths"),
|
|
JSArray_BoxShadow: findType("JSArray<BoxShadow>"),
|
|
JSArray_Listenable: findType("JSArray<Listenable>"),
|
|
JSArray_Object: findType("JSArray<Object>"),
|
|
JSArray_PopupMenuEntry_dynamic: findType("JSArray<PopupMenuEntry<@>>"),
|
|
JSArray_RenderBox: findType("JSArray<RenderBox>"),
|
|
JSArray_Size: findType("JSArray<Size>"),
|
|
JSArray_String: findType("JSArray<String>"),
|
|
JSArray_Widget: findType("JSArray<Widget>"),
|
|
LabeledGlobalKey_State_StatefulWidget: findType("LabeledGlobalKey<State0<StatefulWidget>>"),
|
|
MappedListIterable_String_String: findType("MappedListIterable<String,String>"),
|
|
MaterialLocalizations: findType("MaterialLocalizations"),
|
|
MaterialState: findType("MaterialState"),
|
|
MediaQuery: findType("MediaQuery"),
|
|
MessageEvent: findType("MessageEvent"),
|
|
MultiChildLayoutParentData: findType("MultiChildLayoutParentData"),
|
|
NotificationListener_SizeChangedLayoutNotification: findType("NotificationListener<SizeChangedLayoutNotification>"),
|
|
Null: findType("Null"),
|
|
Object: findType("Object"),
|
|
OverlayState: findType("OverlayState"),
|
|
PortalLinkOverlay: findType("PortalLinkOverlay"),
|
|
RenderBox: findType("RenderBox"),
|
|
ResponsiveUtils: findType("ResponsiveUtils0"),
|
|
String: findType("String"),
|
|
TagEditorLayoutDelegate: findType("TagEditorLayoutDelegate"),
|
|
ValidationSuggestionItem: findType("ValidationSuggestionItem"),
|
|
ValueKey_Key: findType("ValueKey<Key>"),
|
|
ValueKey_Object: findType("ValueKey<Object>"),
|
|
ValueKey_int: findType("ValueKey<int>"),
|
|
ValueKey_nullable_Key: findType("ValueKey<Key?>"),
|
|
ValueKey_nullable_String: findType("ValueKey<String?>"),
|
|
Widget: findType("Widget"),
|
|
_ChildEntry: findType("_ChildEntry"),
|
|
_ChipSlot: findType("_ChipSlot"),
|
|
_DrawerControllerScope: findType("_DrawerControllerScope"),
|
|
_ElementEventStreamImpl_Event: findType("_ElementEventStreamImpl<Event>"),
|
|
_ListTileSlot: findType("_ListTileSlot"),
|
|
_LocalizationsScope: findType("_LocalizationsScope"),
|
|
_RenderInkFeatures: findType("_RenderInkFeatures"),
|
|
_VisibilityScope: findType("_VisibilityScope"),
|
|
bool: findType("bool"),
|
|
dynamic: findType("@"),
|
|
int: findType("int"),
|
|
nullable_BorderSide: findType("BorderSide?"),
|
|
nullable_Color: findType("Color?"),
|
|
nullable_MouseCursor: findType("MouseCursor0?"),
|
|
nullable_OutlinedBorder: findType("OutlinedBorder?"),
|
|
nullable_RenderBox: findType("RenderBox?"),
|
|
nullable_String: findType("String?"),
|
|
void: findType("~")
|
|
};
|
|
})();
|
|
(function constants() {
|
|
var makeConstList = hunkHelpers.makeConstList;
|
|
D.SizedBox_VEQ0 = new A.SizedBox(30, 30, C.CupertinoActivityIndicator_Color_697934509_null, null);
|
|
D.Padding_kr3 = new A.Padding(C.EdgeInsets_16_16_16_16, D.SizedBox_VEQ0, null);
|
|
D.Align_Ktb = new A.Align(C.Alignment_0_m1, null, null, D.Padding_kr3, null);
|
|
D.Alignment_1_1 = new A.Alignment(1, 1);
|
|
D.Aligned_HRf = 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_2Lz = 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_HRf);
|
|
D.Color_4294914887 = new A.Color(4294914887);
|
|
D.BorderSide_tAf3 = new A.BorderSide(C.Color_520093696, 0.5, C.BorderStyle_1, -1);
|
|
D.Offset_chs1 = new A.Offset(0, 0.5);
|
|
D.BoxShadow_oyn = new A.BoxShadow(1, C.BlurStyle_0, C.Color_335544320, D.Offset_chs1, 1);
|
|
D.C_SizeChangedLayoutNotification = new B.SizeChangedLayoutNotification();
|
|
D.Color_1555612108 = new A.Color(1555612108);
|
|
D.Color_1612257561 = new A.Color(1612257561);
|
|
D.Color_4292865791 = new A.Color(4292865791);
|
|
D.Color_4294964674 = new A.Color(4294964674);
|
|
D.ConnectionState_2 = new A.ConnectionState(2, "active");
|
|
D.Duration_195000 = new A.Duration(195000);
|
|
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_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_8_0_4_0 = new A.EdgeInsetsDirectional(8, 0, 4, 0);
|
|
D.EdgeInsets_0_12_12_0 = new A.EdgeInsets(0, 12, 12, 0);
|
|
D.EdgeInsets_0_4_0_0 = new A.EdgeInsets(0, 4, 0, 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_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_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_12_8_12 = new A.EdgeInsets(8, 12, 8, 12);
|
|
D.EdgeInsets_8_5_8_5 = new A.EdgeInsets(8, 5, 8, 5);
|
|
D.IconData_57657_false = new A.IconData(57657, false);
|
|
D.Icon_0 = new A.Icon(D.IconData_57657_false, 18, null, null, null);
|
|
D.ListTileStyle_0 = new A.ListTileStyle(0, "list");
|
|
D.ListTileTitleAlignment_1 = new B.ListTileTitleAlignment(1, "titleHeight");
|
|
D._ChipSlot_0 = new B._ChipSlot(0, "label");
|
|
D._ChipSlot_1 = new B._ChipSlot(1, "avatar");
|
|
D._ChipSlot_2 = new B._ChipSlot(2, "deleteIcon");
|
|
D.List_6UD = A._setArrayType(makeConstList([D._ChipSlot_0, D._ChipSlot_1, D._ChipSlot_2]), A.findType("JSArray<_ChipSlot>"));
|
|
D._ListTileSlot_0 = new B._ListTileSlot(0, "leading");
|
|
D._ListTileSlot_1 = new B._ListTileSlot(1, "title");
|
|
D._ListTileSlot_2 = new B._ListTileSlot(2, "subtitle");
|
|
D._ListTileSlot_3 = new B._ListTileSlot(3, "trailing");
|
|
D.List_wsa0 = A._setArrayType(makeConstList([D._ListTileSlot_0, D._ListTileSlot_1, D._ListTileSlot_2, D._ListTileSlot_3]), A.findType("JSArray<_ListTileSlot>"));
|
|
D.PageStorageKey_mailbox_list = new A.PageStorageKey("mailbox_list", A.findType("PageStorageKey<String>"));
|
|
D.PopupMenuDivider_null = new B.PopupMenuDivider(null);
|
|
D.SizedBox_24_null_null_null = new A.SizedBox(24, null, null, null);
|
|
D.TextStyle_jjv = 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.TextStyle_jjv3 = new A.TextStyle(true, C.Color_4285364357, null, null, null, null, 13, C.FontWeight_4_500, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null);
|
|
D.TextStyle_oHY11 = 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_oHY2 = 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_oHY4 = 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);
|
|
})();
|
|
(function lazyInitializers() {
|
|
var _lazyFinal = hunkHelpers.lazyFinal;
|
|
_lazyFinal($, "_RenderChip_selectionScrimTween", "$get$_RenderChip_selectionScrimTween", () => A.ColorTween$(C.Color_0, D.Color_1612257561));
|
|
})();
|
|
};
|
|
|
|
$__dart_deferred_initializers__["bXzUKwqbfvZoHbIG1q1ER8wirVo="] = $__dart_deferred_initializers__.current
|