mirror of
https://github.com/linagora/tmail-flutter.git
synced 2026-12-06 16:04:20 +00:00
80 lines
4.4 KiB
JavaScript
80 lines
4.4 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 C = {ContactSuggestionBoxItem: function ContactSuggestionBoxItem(t0, t1, t2, t3, t4) {
|
|
var _ = this;
|
|
_.suggestionEmailAddress = t0;
|
|
_.selectedContactCallbackAction = t1;
|
|
_.padding = t2;
|
|
_.shapeBorder = t3;
|
|
_.key = t4;
|
|
}, ContactSuggestionBoxItem_build_closure: function ContactSuggestionBoxItem_build_closure(t0) {
|
|
this.$this = t0;
|
|
},
|
|
EmailAddressExtension_get_labelAvatar(_this) {
|
|
return B.EmailAddressExtension_asString(_this).length !== 0 ? B.EmailAddressExtension_asString(_this)[0].toUpperCase() : "";
|
|
}
|
|
},
|
|
A, E, B, D, F;
|
|
C = hunkHelpers.updateHolder(holdersList[9], C);
|
|
A = holdersList[2];
|
|
E = holdersList[11];
|
|
B = holdersList[0];
|
|
D = holdersList[12];
|
|
F = holdersList[14];
|
|
C.ContactSuggestionBoxItem.prototype = {
|
|
build$1(context) {
|
|
var t1, t2, t3, t4, t5, t6, itemChild, _this = this, _null = null;
|
|
$.$get$Get();
|
|
t1 = $.GetInstance__getInstance;
|
|
if (t1 == null)
|
|
t1 = $.GetInstance__getInstance = A.C_GetInstance;
|
|
t1.find$1$1$tag(0, _null, type$.ImagePaths);
|
|
t1 = _this.suggestionEmailAddress;
|
|
t2 = t1.emailAddress;
|
|
t3 = E.GradientCircleAvatarIcon$(A.List_ebS[B.EmailAddressExtension__generateIndex(t2)], 40, C.EmailAddressExtension_get_labelAvatar(t2), 24);
|
|
t4 = type$.JSArray_Widget;
|
|
t5 = B._setArrayType([B.Text$(B.EmailAddressExtension_asString(t2), _null, _null, 1, A.TextOverflow_1, _null, _null, false, _null, A.TextStyle_oHY0, _null, _null, _null, _null, _null)], t4);
|
|
t6 = t2.name;
|
|
if ((t6 == null ? "" : t6).length !== 0) {
|
|
t2 = t2.email;
|
|
t5.push(new B.Padding(D.EdgeInsets_0_2_0_0, B.Text$(t2 == null ? "" : t2, _null, _null, 1, A.TextOverflow_1, _null, _null, false, _null, A.TextStyle_chs, _null, _null, _null, _null, _null), _null));
|
|
}
|
|
t2 = B._setArrayType([t3, A.SizedBox_12_null_null_null, B.Expanded$(B.Column$(t5, A.CrossAxisAlignment_0, A.MainAxisAlignment_0, A.MainAxisSize_0, A.VerticalDirection_1), 1)], t4);
|
|
t1 = t1.state;
|
|
if (t1 === D.SuggestionEmailState_1)
|
|
t2.push(new B.Padding(A.EdgeInsets_12_0_0_0, B.SvgPicture$asset("assets/images/ic_filter_selected.svg", A.Alignment_0_0, _null, A.BoxFit_0, 24, _null, 24), _null));
|
|
itemChild = B.Row$(t2, A.CrossAxisAlignment_2, A.MainAxisAlignment_0, A.MainAxisSize_1, _null);
|
|
t2 = _this.padding;
|
|
if (t1 === D.SuggestionEmailState_0)
|
|
return B.Material$(A.Duration_200000, true, _null, B.InkWell$(false, _null, true, new B.Padding(t2 == null ? A.EdgeInsets_12_12_12_12 : t2, itemChild, _null), _this.shapeBorder, true, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, new C.ContactSuggestionBoxItem_build_closure(_this), _null, _null, _null, _null, _null, _null, _null), A.Clip_0, A.Color_0, 0, _null, _null, _null, _null, _null, A.MaterialType_0);
|
|
else
|
|
return B.Material$(A.Duration_200000, true, _null, new B.Padding(t2 == null ? A.EdgeInsets_12_12_12_12 : t2, itemChild, _null), A.Clip_0, A.Color_0, 0, _null, _null, _null, _null, _null, A.MaterialType_0);
|
|
}
|
|
};
|
|
var typesOffset = hunkHelpers.updateTypes([]);
|
|
C.ContactSuggestionBoxItem_build_closure.prototype = {
|
|
call$0() {
|
|
var t1 = this.$this;
|
|
t1 = t1.selectedContactCallbackAction.call$1(t1.suggestionEmailAddress.emailAddress);
|
|
return t1;
|
|
},
|
|
$signature: 0
|
|
};
|
|
(function inheritance() {
|
|
var _inherit = hunkHelpers.inherit;
|
|
_inherit(C.ContactSuggestionBoxItem, B.StatelessWidget);
|
|
_inherit(C.ContactSuggestionBoxItem_build_closure, B.Closure0Args);
|
|
})();
|
|
B._Universe_addRules(init.typeUniverse, JSON.parse('{"ContactSuggestionBoxItem":{"StatelessWidget":[],"Widget":[],"DiagnosticableTree":[]}}'));
|
|
var type$ = {
|
|
ImagePaths: B.findType("ImagePaths"),
|
|
JSArray_Widget: B.findType("JSArray<Widget>")
|
|
};
|
|
(function constants() {
|
|
F.EdgeInsets_16_10_16_10 = new B.EdgeInsets(16, 10, 16, 10);
|
|
})();
|
|
};
|
|
|
|
$__dart_deferred_initializers__["1Z2LXE7DM5ChM+Zm1XIelshM+TU="] = $__dart_deferred_initializers__.current
|