define(['dart_sdk', 'packages/flutter/src/widgets/widget_span.dart', 'packages/flutter/src/rendering/flex.dart', 'packages/flutter/src/painting/strut_style.dart', 'packages/flutter/src/material/colors.dart', 'packages/dashboard/trustcolorcalculator.dart', 'packages/apex_flutter_sdk/components/basic/hover_tooltip.dart', 'packages/flutter/src/material/circle_avatar.dart', 'packages/flutter/src/painting/image_resolution.dart', 'packages/flutter/src/painting/edge_insets.dart', 'packages/flutter/src/painting/box_decoration.dart', 'packages/flutter/src/painting/border_radius.dart', 'packages/flutter/src/painting/box_shadow.dart'], (function load__packages__dashboard__usernode_dart(dart_sdk, packages__flutter__src__widgets__widget_span$46dart, packages__flutter__src__rendering__flex$46dart, packages__flutter__src__painting__strut_style$46dart, packages__flutter__src__material__colors$46dart, packages__dashboard__trustcolorcalculator$46dart, packages__apex_flutter_sdk__components__basic__hover_tooltip$46dart, packages__flutter__src__material__circle_avatar$46dart, packages__flutter__src__painting__image_resolution$46dart, packages__flutter__src__painting__edge_insets$46dart, packages__flutter__src__painting__box_decoration$46dart, packages__flutter__src__painting__border_radius$46dart, packages__flutter__src__painting__box_shadow$46dart) { 'use strict'; const core = dart_sdk.core; const _interceptors = dart_sdk._interceptors; const ui = dart_sdk.ui; const dart = dart_sdk.dart; const dartx = dart_sdk.dartx; const framework = packages__flutter__src__widgets__widget_span$46dart.src__widgets__framework; const basic = packages__flutter__src__widgets__widget_span$46dart.src__widgets__basic; const text = packages__flutter__src__widgets__widget_span$46dart.src__widgets__text; const widget_inspector = packages__flutter__src__widgets__widget_span$46dart.src__widgets__widget_inspector; const container = packages__flutter__src__widgets__widget_span$46dart.src__widgets__container; const flex = packages__flutter__src__rendering__flex$46dart.src__rendering__flex; const text_style = packages__flutter__src__painting__strut_style$46dart.src__painting__text_style; const colors = packages__flutter__src__material__colors$46dart.src__material__colors; const trustcolorcalculator = packages__dashboard__trustcolorcalculator$46dart.trustcolorcalculator; const hover_tooltip = packages__apex_flutter_sdk__components__basic__hover_tooltip$46dart.components__basic__hover_tooltip; const circle_avatar = packages__flutter__src__material__circle_avatar$46dart.src__material__circle_avatar; const image_resolution = packages__flutter__src__painting__image_resolution$46dart.src__painting__image_resolution; const edge_insets = packages__flutter__src__painting__edge_insets$46dart.src__painting__edge_insets; const box_decoration = packages__flutter__src__painting__box_decoration$46dart.src__painting__box_decoration; const border_radius = packages__flutter__src__painting__border_radius$46dart.src__painting__border_radius; const box_shadow = packages__flutter__src__painting__box_shadow$46dart.src__painting__box_shadow; var usernode = Object.create(dart.library); var $toString = dartx.toString; var $add = dartx.add; var $forEach = dartx.forEach; dart._checkModuleNullSafetyMode(false); var T = { WidgetL: () => (T.WidgetL = dart.constFn(dart.legacy(framework.Widget)))(), JSArrayOfWidgetL: () => (T.JSArrayOfWidgetL = dart.constFn(_interceptors.JSArray$(T.WidgetL())))(), _LocationL: () => (T._LocationL = dart.constFn(dart.legacy(widget_inspector._Location)))(), StringL: () => (T.StringL = dart.constFn(dart.legacy(core.String)))(), doubleL: () => (T.doubleL = dart.constFn(dart.legacy(core.double)))(), StringLAnddoubleLToNull: () => (T.StringLAnddoubleLToNull = dart.constFn(dart.fnType(core.Null, [T.StringL(), T.doubleL()])))(), BoxShadowL: () => (T.BoxShadowL = dart.constFn(dart.legacy(box_shadow.BoxShadow)))(), JSArrayOfBoxShadowL: () => (T.JSArrayOfBoxShadowL = dart.constFn(_interceptors.JSArray$(T.BoxShadowL())))() }; var T$Eval = Object.assign({ _: () => T$Eval }, T); var S = { _: () => S }; var S$Eval = Object.assign({ _: () => S$Eval }, S); const CT = Object.create({ _: () => (C, CT) }); dart.defineLazy(CT, { get C2() { return C[2] = dart.const({ __proto__: widget_inspector._Location.prototype, [_Location_parameterLocations]: null, [_Location_name]: "data", [_Location_column]: 13, [_Location_line]: 16, [_Location_file]: null }); }, get C3() { return C[3] = dart.const({ __proto__: widget_inspector._Location.prototype, [_Location_parameterLocations]: null, [_Location_name]: "textAlign", [_Location_column]: 13, [_Location_line]: 17, [_Location_file]: null }); }, get C4() { return C[4] = dart.const({ __proto__: widget_inspector._Location.prototype, [_Location_parameterLocations]: null, [_Location_name]: "style", [_Location_column]: 13, [_Location_line]: 18, [_Location_file]: null }); }, get C1() { return C[1] = dart.constList([C[2] || CT.C2, C[3] || CT.C3, C[4] || CT.C4], T._LocationL()); }, get C0() { return C[0] = dart.const({ __proto__: widget_inspector._Location.prototype, [_Location_parameterLocations]: C[1] || CT.C1, [_Location_name]: null, [_Location_column]: 11, [_Location_line]: 15, [_Location_file]: "file:///C:/Users/Luca/Documents/GitProjects/smart/src/dashboard/lib/usernode.dart" }); }, get C7() { return C[7] = dart.const({ __proto__: widget_inspector._Location.prototype, [_Location_parameterLocations]: null, [_Location_name]: "data", [_Location_column]: 41, [_Location_line]: 20, [_Location_file]: null }); }, get C8() { return C[8] = dart.const({ __proto__: widget_inspector._Location.prototype, [_Location_parameterLocations]: null, [_Location_name]: "textAlign", [_Location_column]: 15, [_Location_line]: 21, [_Location_file]: null }); }, get C9() { return C[9] = dart.const({ __proto__: widget_inspector._Location.prototype, [_Location_parameterLocations]: null, [_Location_name]: "style", [_Location_column]: 15, [_Location_line]: 22, [_Location_file]: null }); }, get C6() { return C[6] = dart.constList([C[7] || CT.C7, C[8] || CT.C8, C[9] || CT.C9], T._LocationL()); }, get C5() { return C[5] = dart.const({ __proto__: widget_inspector._Location.prototype, [_Location_parameterLocations]: C[6] || CT.C6, [_Location_name]: null, [_Location_column]: 11, [_Location_line]: 20, [_Location_file]: "file:///C:/Users/Luca/Documents/GitProjects/smart/src/dashboard/lib/usernode.dart" }); }, get C12() { return C[12] = dart.const({ __proto__: widget_inspector._Location.prototype, [_Location_parameterLocations]: null, [_Location_name]: "mainAxisAlignment", [_Location_column]: 9, [_Location_line]: 13, [_Location_file]: null }); }, get C13() { return C[13] = dart.const({ __proto__: widget_inspector._Location.prototype, [_Location_parameterLocations]: null, [_Location_name]: "children", [_Location_column]: 9, [_Location_line]: 14, [_Location_file]: null }); }, get C11() { return C[11] = dart.constList([C[12] || CT.C12, C[13] || CT.C13], T._LocationL()); }, get C10() { return C[10] = dart.const({ __proto__: widget_inspector._Location.prototype, [_Location_parameterLocations]: C[11] || CT.C11, [_Location_name]: null, [_Location_column]: 23, [_Location_line]: 12, [_Location_file]: "file:///C:/Users/Luca/Documents/GitProjects/smart/src/dashboard/lib/usernode.dart" }); }, get C16() { return C[16] = dart.const({ __proto__: widget_inspector._Location.prototype, [_Location_parameterLocations]: null, [_Location_name]: "backgroundImage", [_Location_column]: 9, [_Location_line]: 32, [_Location_file]: null }); }, get C17() { return C[17] = dart.const({ __proto__: widget_inspector._Location.prototype, [_Location_parameterLocations]: null, [_Location_name]: "radius", [_Location_column]: 9, [_Location_line]: 33, [_Location_file]: null }); }, get C15() { return C[15] = dart.constList([C[16] || CT.C16, C[17] || CT.C17], T._LocationL()); }, get C14() { return C[14] = dart.const({ __proto__: widget_inspector._Location.prototype, [_Location_parameterLocations]: C[15] || CT.C15, [_Location_name]: null, [_Location_column]: 14, [_Location_line]: 31, [_Location_file]: "file:///C:/Users/Luca/Documents/GitProjects/smart/src/dashboard/lib/usernode.dart" }); }, get C20() { return C[20] = dart.const({ __proto__: widget_inspector._Location.prototype, [_Location_parameterLocations]: null, [_Location_name]: "communities", [_Location_column]: 33, [_Location_line]: 35, [_Location_file]: null }); }, get C19() { return C[19] = dart.constList([C[20] || CT.C20], T._LocationL()); }, get C18() { return C[18] = dart.const({ __proto__: widget_inspector._Location.prototype, [_Location_parameterLocations]: C[19] || CT.C19, [_Location_name]: null, [_Location_column]: 16, [_Location_line]: 35, [_Location_file]: "file:///C:/Users/Luca/Documents/GitProjects/smart/src/dashboard/lib/usernode.dart" }); }, get C23() { return C[23] = dart.const({ __proto__: widget_inspector._Location.prototype, [_Location_parameterLocations]: null, [_Location_name]: "child", [_Location_column]: 7, [_Location_line]: 31, [_Location_file]: null }); }, get C24() { return C[24] = dart.const({ __proto__: widget_inspector._Location.prototype, [_Location_parameterLocations]: null, [_Location_name]: "tooltip", [_Location_column]: 7, [_Location_line]: 35, [_Location_file]: null }); }, get C22() { return C[22] = dart.constList([C[23] || CT.C23, C[24] || CT.C24], T._LocationL()); }, get C21() { return C[21] = dart.const({ __proto__: widget_inspector._Location.prototype, [_Location_parameterLocations]: C[22] || CT.C22, [_Location_name]: null, [_Location_column]: 12, [_Location_line]: 30, [_Location_file]: "file:///C:/Users/Luca/Documents/GitProjects/smart/src/dashboard/lib/usernode.dart" }); }, get C27() { return C[27] = dart.const({ __proto__: widget_inspector._Location.prototype, [_Location_parameterLocations]: null, [_Location_name]: "children", [_Location_column]: 11, [_Location_line]: 54, [_Location_file]: null }); }, get C26() { return C[26] = dart.constList([C[27] || CT.C27], T._LocationL()); }, get C25() { return C[25] = dart.const({ __proto__: widget_inspector._Location.prototype, [_Location_parameterLocations]: C[26] || CT.C26, [_Location_name]: null, [_Location_column]: 16, [_Location_line]: 53, [_Location_file]: "file:///C:/Users/Luca/Documents/GitProjects/smart/src/dashboard/lib/usernode.dart" }); }, get C30() { return C[30] = dart.const({ __proto__: widget_inspector._Location.prototype, [_Location_parameterLocations]: null, [_Location_name]: "padding", [_Location_column]: 9, [_Location_line]: 45, [_Location_file]: null }); }, get C31() { return C[31] = dart.const({ __proto__: widget_inspector._Location.prototype, [_Location_parameterLocations]: null, [_Location_name]: "width", [_Location_column]: 9, [_Location_line]: 46, [_Location_file]: null }); }, get C32() { return C[32] = dart.const({ __proto__: widget_inspector._Location.prototype, [_Location_parameterLocations]: null, [_Location_name]: "decoration", [_Location_column]: 9, [_Location_line]: 47, [_Location_file]: null }); }, get C33() { return C[33] = dart.const({ __proto__: widget_inspector._Location.prototype, [_Location_parameterLocations]: null, [_Location_name]: "child", [_Location_column]: 9, [_Location_line]: 53, [_Location_file]: null }); }, get C29() { return C[29] = dart.constList([C[30] || CT.C30, C[31] || CT.C31, C[32] || CT.C32, C[33] || CT.C33], T._LocationL()); }, get C28() { return C[28] = dart.const({ __proto__: widget_inspector._Location.prototype, [_Location_parameterLocations]: C[29] || CT.C29, [_Location_name]: null, [_Location_column]: 12, [_Location_line]: 44, [_Location_file]: "file:///C:/Users/Luca/Documents/GitProjects/smart/src/dashboard/lib/usernode.dart" }); } }, false); var C = Array(34).fill(void 0); var I = ["package:dashboard/usernode.dart"]; var communities = dart.privateName(usernode, "UserNode.communities"); var trustScores$ = dart.privateName(usernode, "UserNode.trustScores"); var _Location_parameterLocations = dart.privateName(widget_inspector, "_Location.parameterLocations"); var _Location_name = dart.privateName(widget_inspector, "_Location.name"); var _Location_column = dart.privateName(widget_inspector, "_Location.column"); var _Location_line = dart.privateName(widget_inspector, "_Location.line"); var _Location_file = dart.privateName(widget_inspector, "_Location.file"); usernode.UserNode = class UserNode extends framework.StatelessWidget { get communities() { return this[communities]; } set communities(value) { this[communities] = value; } get trustScores() { return this[trustScores$]; } set trustScores(value) { super.trustScores = value; } build(context) { this.trustScores[$forEach](dart.fn((community, trust) => { this.communities[$add](new basic.Row.new({mainAxisAlignment: flex.MainAxisAlignment.spaceBetween, children: T.JSArrayOfWidgetL().of([new text.Text.new(community, {textAlign: ui.TextAlign.left, style: new text_style.TextStyle.new({color: colors.Colors.black}), $creationLocationd_0dea112b090073317d4: C[0] || CT.C0}), new text.Text.new((dart.notNull(trust) * 100)[$toString]() + "%", {textAlign: ui.TextAlign.right, style: new text_style.TextStyle.new({color: trustcolorcalculator.TrustColorCalculator.calculateTrustColor(trust), fontWeight: ui.FontWeight.bold}), $creationLocationd_0dea112b090073317d4: C[5] || CT.C5})]), $creationLocationd_0dea112b090073317d4: C[10] || CT.C10})); }, T.StringLAnddoubleLToNull())); return new hover_tooltip.HoverTooltip.new({child: new circle_avatar.CircleAvatar.new({backgroundImage: new image_resolution.AssetImage.new("assets/user.png"), radius: 30.0, $creationLocationd_0dea112b090073317d4: C[14] || CT.C14}), tooltip: new usernode.UserTooltip.new(this.communities, {$creationLocationd_0dea112b090073317d4: C[18] || CT.C18}), $creationLocationd_0dea112b090073317d4: C[21] || CT.C21}); } }; (usernode.UserNode.new = function(trustScores, opts) { let $36creationLocationd_0dea112b090073317d4 = opts && '$creationLocationd_0dea112b090073317d4' in opts ? opts.$creationLocationd_0dea112b090073317d4 : null; this[communities] = T.JSArrayOfWidgetL().of([]); this[trustScores$] = trustScores; usernode.UserNode.__proto__.new.call(this, {$creationLocationd_0dea112b090073317d4: $36creationLocationd_0dea112b090073317d4}); ; }).prototype = usernode.UserNode.prototype; dart.addTypeTests(usernode.UserNode); dart.addTypeCaches(usernode.UserNode); dart.setMethodSignature(usernode.UserNode, () => ({ __proto__: dart.getMethods(usernode.UserNode.__proto__), build: dart.fnType(dart.legacy(framework.Widget), [dart.legacy(framework.BuildContext)]) })); dart.setLibraryUri(usernode.UserNode, I[0]); dart.setFieldSignature(usernode.UserNode, () => ({ __proto__: dart.getFields(usernode.UserNode.__proto__), communities: dart.fieldType(dart.legacy(core.List$(dart.legacy(framework.Widget)))), trustScores: dart.finalFieldType(dart.legacy(core.Map$(dart.legacy(core.String), dart.legacy(core.double)))) })); var communities$ = dart.privateName(usernode, "UserTooltip.communities"); usernode.UserTooltip = class UserTooltip extends framework.StatelessWidget { get communities() { return this[communities$]; } set communities(value) { super.communities = value; } build(context) { let t0; return new container.Container.new({padding: new edge_insets.EdgeInsets.fromLTRB(12.0, 8.0, 12.0, 8.0), width: 300.0, decoration: new box_decoration.BoxDecoration.new({borderRadius: new border_radius.BorderRadius.circular(4.0), boxShadow: T.JSArrayOfBoxShadowL().of([new box_shadow.BoxShadow.new({color: (t0 = colors.Colors.grey._get(100), t0 == null ? colors.Colors.grey : t0), spreadRadius: 1.0})])}), child: new basic.Column.new({children: this.communities, $creationLocationd_0dea112b090073317d4: C[25] || CT.C25}), $creationLocationd_0dea112b090073317d4: C[28] || CT.C28}); } }; (usernode.UserTooltip.new = function(communities, opts) { let $36creationLocationd_0dea112b090073317d4 = opts && '$creationLocationd_0dea112b090073317d4' in opts ? opts.$creationLocationd_0dea112b090073317d4 : null; this[communities$] = communities; usernode.UserTooltip.__proto__.new.call(this, {$creationLocationd_0dea112b090073317d4: $36creationLocationd_0dea112b090073317d4}); ; }).prototype = usernode.UserTooltip.prototype; dart.addTypeTests(usernode.UserTooltip); dart.addTypeCaches(usernode.UserTooltip); dart.setMethodSignature(usernode.UserTooltip, () => ({ __proto__: dart.getMethods(usernode.UserTooltip.__proto__), build: dart.fnType(dart.legacy(framework.Widget), [dart.legacy(framework.BuildContext)]) })); dart.setLibraryUri(usernode.UserTooltip, I[0]); dart.setFieldSignature(usernode.UserTooltip, () => ({ __proto__: dart.getFields(usernode.UserTooltip.__proto__), communities: dart.finalFieldType(dart.legacy(core.List$(dart.legacy(framework.Widget)))) })); dart.trackLibraries("packages/dashboard/usernode.dart", { "package:dashboard/usernode.dart": usernode }, { }, '{"version":3,"sourceRoot":"","sources":["usernode.dart"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAKe;;;;;;IACa;;;;;;UAGA;AAkBtB,MAjBF,AAAY,2BAAQ,SAAC,WAAW;AAgB5B,QAfF,AAAY,uBAAI,sCACuB,+CAC3B,yBACR,kBACE,SAAS,cACY,0BACd,qCAAwB,gFAEjC,kBAAmB,AAAW,CAAlB,aAAN,KAAK,IAAG,oBAAkB,iBACP,2BACd,qCACuB,8DAAoB,KAAK,eAC9B;;AAMnC,YAAO,4CACE,qDACY,oCAAW,4BACpB,0EAED,6BAAiB;IAE9B;;oCA7Bc;;IAFD,oBAAc;IAEb;AAAd;;EAA0B;;;;;;;;;;;;;;;IAkCP;;;;;;UACO;;AACxB,YAAO,uCACiB,oCAAS,MAAI,KAAG,MAAI,aACjC,mBACK,oDACiB,wCAAS,iBACzB,4BACT,sCAAkC,KAAV,AAAI,wBAAC,MAAD,aAAgB,wCAAoB,kBAG7D,gCACK;IAElB;;uCAfiB;;;AAAjB;;EAA6B","file":"../../../../../../../../packages/dashboard/usernode.dart.lib.js"}'); // Exports: return { usernode: usernode }; })); //# sourceMappingURL=usernode.dart.lib.js.map