dvt.AdfDiagramJsonParser=function(a,b){this.Init(a,b)};dvt.Obj.createSubclass(dvt.AdfDiagramJsonParser,dvt.Obj,"dvt.AdfDiagramJsonParser");dvt.AdfDiagramJsonParser.prototype.Init=function(a,b){this._diagramParser=a;this._diagram=b};
dvt.AdfDiagramJsonParser.prototype.loadJsonInitial=function(a,b,c){if(b=a[dvt.AdfDiagramParser._ELEM_DIAGRAM_EVENT]){c=b[dvt.AdfDiagramParser._ATTR_EVENT_TYPE];this._diagram._eventType=c;try{if(dvt.AdfDiagramParser._SEARCH_EVENT==c){var d=b.clientRowKey;this._diagram.LoadSearchResultsDataJson(a,b.searchText,dvt.AdfDiagramParser._SEARCH_EVENT_TYPE_NEXT,d)}else if(dvt.AdfDiagramParser._FETCH_EVENT==c){this.LoadDiagramElement(a);var e=b.clientRowKey,f=b.subtype;this._diagram.getNodeById(e).getData().setChildrenFetched(!0);
this._diagram._resetTransitionState();dvt.AdfDiagramFetchEvent.DRILL===f?this._diagram.drillNode(e):this._diagram.setNodeDisclosed(e,!0,!1,!0);this._diagram.setInteractionEnabled(!0)}else if(dvt.AdfDiagramParser._PANELCARD_FETCH_EVENT==c){var d=b.clientRowKey,g=b.nextc,h=b.pchw;this.ParseAdditionalPanelCardData(a);this._diagram.applyPanelCardData(d,g,h)}}finally{this._diagram._eventType=null}this._diagram._handledEventXml=!0}else if(a[dvt.AdfDiagramParser.ATTR_DATA_PPR]){if(d=a[dvt.AdfDiagramParser._ELEM_DATA]){if(e=
d[dvt.AdfDiagramParser._ELEM_NODE_DATA])for(a=0;a<e.length;a++)if(f=this._diagram.getNodeById(e[a][dvt.AdfDiagramParser._ATTR_ID]))this.parseNode(e[a],f.getData(),this._diagramParser),f.setNodeDef(f.getNodeDef()),f.FullRenderNode(!0);if(d=d[dvt.AdfDiagramParser._ELEM_LINK_DATA])for(a=0;a<d.length;a++)if(e=this._diagram.getLinkbyId(d[a][dvt.AdfDiagramParser._ATTR_ID]))this.parseLink(d[a],e.getData(),this._diagramParser),e.setLinkDef(e.getLinkDef()),e.renderLink()}this._diagram._handledEventXml=!0}else this._diagram.resetInteractionEnabled(),
this.LoadDiagramElement(a)};dvt.AdfDiagramJsonParser.prototype.LoadDiagramElement=function(a){this.ParseDiagramNodeJson(a)&&this.ParseJsonAttributes(a)};dvt.AdfDiagramJsonParser.prototype.ParseJsonAttributes=function(a){if(a){var b=a[dvt.AdfDiagramParser._ELEM_SELECTORS],c=a[dvt.AdfDiagramParser._ELEM_AF_STYLES];b&&c&&dvt.AfStyleUtils.setTagSkinKeyMapJSON(b,c);(b=a[dvt.AdfDiagramParser._ELEM_CT_STYLES])&&b[0].getAttributes();this._diagramParser.setPanelCardStyles();this.ParseDiagramNodeChild(a);this.ParseDiagramIsolation(a)}};
dvt.AdfDiagramJsonParser.prototype.ParseDiagramNodeChild=function(a){var b=a[dvt.AdfDiagramParser._ELEM_TEMPLATES];if(b){var c=b[dvt.AdfDiagramParser._ELEM_NODE];c&&this.parseNodeTemplates(c,this._diagramParser);(c=b[dvt.AdfDiagramParser._ELEM_LINK])&&this.parseLinkTemplates(c,this._diagramParser)}if(c=a[dvt.AdfDiagramParser._ELEM_DATA])if(b=c[dvt.AdfDiagramParser._ELEM_NODE_DATA],c=c[dvt.AdfDiagramParser._ELEM_LINK_DATA],b||c)this._diagram.startParsingData(),b&&this.parseNodeData(b,this._diagramParser),
c&&this.parseLinkData(c,this._diagramParser),(b=a[dvt.AdfDiagramParser._ELEM_CARDS])&&this.parseCards(b,this),this._diagram.stopParsingData();if(b=a[dvt.AdfDiagramParser._ELEM_SHOW_POPUP_BEHAVIOR])if(b=b.children)for(c=0;c<b.length;c++){var d=dvt.AfComponentFactory.parseJsonElement(b[c]);d&&b[c].component==dvt.AdfDiagramParser._ELEM_SHOW_POPUP_BEHAVIOR&&this._diagram.addShowPopupBehavior(d)}if(b=a[dvt.AdfDiagramParser._ELEM_CONTEXT_MENU])this._diagram._contextMenuHandler=new dvt.ContextMenuHandler(this._diagram.getCtx(),
b),this._diagram.getEventManager().setContextMenuHandler(this._diagram._contextMenuHandler);(b=a[dvt.AdfDiagramParser._ELEM_LEGEND])&&this._diagram.SetLegendJson(b);(b=a[dvt.AdfDiagramParser._ELEM_OVERVIEWWINDOW])&&this.ParseOverviewWindow(b,this);(b=a[dvt.AdfDiagramParser._ELEM_PALETTE])&&this._diagram.SetPaletteJson(b);b=a[dvt.SearchPanel.ELEM_SEARCH_ADVANCED_TEMPLATE];c=a[dvt.SearchPanel.ELEM_SEARCH_RESULTS_DATA];(a[dvt.SearchPanel.ELEM_SEARCH_RESULTS_TEMPLATE]||b||c)&&this._diagram.getSearchPanel(!0).parseNodeJson(a)};
dvt.AdfDiagramJsonParser.prototype.ParseDiagramNodeJson=function(a){var b;this._diagram.parseComponentJson(a);this.parseScrollbarStylesJson(a);this.parseOverviewContentJson(a);this.parseStackingStylesJson(a);this.parseStackPreviewJson(a);this.parseDiagramButtonStylesJson(a);this.parseSelectionJson(a);this.parseBreadcrumbsJson(a);this.parsePaletteJson(a);this.ParseNodeStylesJson(a);this.ParseLinkStylesJson(a);b=a[dvt.AdfDiagramParser._ATTR_CLIENT_LAYOUTS];for(var c in b){try{var d=window,e=b[c].strMethod.split(".");
for(i=0;i<e.length;i++)d=d[e[i]];var f=function(a){return function(b){a(b)}}(d);this._diagram.getLayoutCallback().addLayout(c,f)}catch(h){"ReferenceError"==h.name&&this._diagram.Log(h.name+":"+h.message,"2")}b[c].layoutAttrs&&this._diagram.setLayoutAttributes(c,b[c].layoutAttrs)}(b=a[dvt.AdfDiagramParser._ATTR_SUMMARY])&&this._diagram.setSummary(b);(b=a[dvt.AdfDiagramParser._ATTR_LAYOUT])&&this._diagram.setLayout(b);if(b=a[dvt.AdfDiagramParser._ATTR_INIT_ANIM])"auto"==b&&(b=dvt.BlackBoxAnimationHandler.ALPHA_FADE),
this._diagram.setInitAnim(b);(b=a[dvt.AdfDiagramParser._ATTR_DATA_CHANGE_ANIM])&&this._diagram.setDataChangeAnim(b);b=a[dvt.AdfDiagramParser._ATTR_ANIMATION_DURATION];isNaN(b)||this._diagram.setAnimationDuration(parseInt(b)/1E3);(b=a[dvt.AdfDiagramParser._ATTR_NODE_HIGHLIGHT_BEHAVIOR])&&this._diagram.setNodeHighlightBehavior(b);(b=a[dvt.AdfDiagramParser._ATTR_LINK_HIGHLIGHT_BEHAVIOR])&&this._diagram.setLinkHighlightBehavior(b);b=a[dvt.AdfDiagramParser._ATTR_HIGHLIGHTED_NODES];this._diagram._highlightedNodes=
b?b.split(","):null;b=a[dvt.AdfDiagramParser._ATTR_HIGHLIGHTED_LINKS];this._diagram._highlightedLinks=b?b.split(","):null;b=a[dvt.AdfDiagramParser._ATTR_DISCLOSED_NODES];this._diagram._disclosedNodes=b?b.split(","):null;b=a[dvt.AdfDiagramParser._ATTR_LAYOUT_BEHAVIOR];this._diagram._layoutBehavior=b?b:"container";(b=a[dvt.AdfDiagramParser._ATTR_ATTR_GRPS])&&this._diagram.setAttributeGroups(b.split(/[\s;]+/));(b=a[dvt.AdfDiagramParser._ATTR_UNGROUPED])&&this._diagram.setExplodedStacks(b.split(","));
(b=a[dvt.AdfDiagramParser._ATTR_HIDDEN])&&this._diagram.setHiddenAttributeGroups(b.split(","));(b=a[dvt.AdfDiagramParser._ATTR_ROLLOVER_BEHAVIOR])&&this._diagram.setRolloverBehavior(b);b=a[dvt.AdfDiagramParser._ATTR_AF_READ_ONLY];this._diagram.setReadOnly(0!=b);(b=a[dvt.AdfDiagramParser._ATTR_AF_HAS_DRAG_SOURCE])&&this._diagram.setHasDragSource(b);b=a[dvt.AdfDiagramParser._ATTR_MAX_ZOOM];if(!isNaN(b)){var g=2;b=parseFloat(b);0<b&&(g=b);this._diagram.setMaxZoom(g)}b=a[dvt.AdfDiagramParser._ATTR_MIN_ZOOM];
isNaN(b)||(c=0,b=parseFloat(b),0<b&&(c=Math.min(b,g)),this._diagram.setMinZoom(c));(b=a[dvt.AdfDiagramParser._ATTR_CONTROL_PANEL_BEHAVIOR])&&this._diagram.setControlPanelBehavior(b);g=this._diagram.getDisplayedControls();b=a[dvt.AdfDiagramParser._ATTR_PANNING];b="none"!=b;this._diagram.SetPanningEnabled(b);b?(g|=dvt.ControlPanel.CONTROLS_CENTER_BUTTON,(b=a[dvt.AdfDiagramParser._ATTR_PANDIRECTION])&&this._diagram.setPanDirection(b)):g&=~dvt.ControlPanel.CONTROLS_CENTER_BUTTON;b=a[dvt.AdfDiagramParser._ATTR_ZOOMING];
b="none"!=b;this._diagram.SetZoomingEnabled(b);b?(g|=dvt.ControlPanel.CONTROLS_ZOOM,g|=dvt.ControlPanel.CONTROLS_ZOOM_TO_FIT_BUTTON):(g&=~dvt.ControlPanel.CONTROLS_ZOOM,g&=~dvt.ControlPanel.CONTROLS_ZOOM_TO_FIT_BUTTON);this._diagram.setDisplayedControls(g);(b=a[dvt.AdfDiagramParser._ATTR_SHOW_RESTORE])&&this._diagram.SetShowRestore("off"==b?"off":"on");(b=a[dvt.AdfDiagramParser._ATTR_CENTER_NODE])&&this._diagram.setCenterNode(b);if(b=a[dvt.AdfDiagramParser._ATTR_ROOT_NODE])this._diagram._drillRoot=
b;g={};c=!1;b=a[dvt.AdfDiagramParser._ATTR_PAN_X];isNaN(b)||(c=!0,g.panX=parseFloat(b));b=a[dvt.AdfDiagramParser._ATTR_PAN_Y];isNaN(b)||(c=!0,g.panY=parseFloat(b));b=a[dvt.AdfDiagramParser._ATTR_ZOOM];isNaN(b)||(c=!0,g.zoom=parseFloat(b));c&&(this._diagram._panZoom=g);(b=a[dvt.AdfDiagramParser._ATTR_DROP_TARGET_BACKGROUND_COLOR])&&this._diagram.setDropFeedbackFillColor(b);(b=a[dvt.AdfDiagramParser._ATTR_DROP_TARGET_BORDER_COLOR])&&this._diagram.setDropFeedbackBorderColor(b);(b=a[dvt.AdfDiagramParser._ATTR_DROP_TARGET_OPACITY])&&
this._diagram.setDropFeedbackFillAlpha(parseFloat(b));(b=a[dvt.AdfDiagramParser._ATTR_CARD_INDEXES])&&this._diagram.setCardIndexes(b);(b=a[dvt.AdfDiagramParser._ATTR_EMPTY_TEXT])&&this._diagram.setEmptyText(b);if(b=a.convertDataFlavorFunc)this._diagram.ConvertDataFlavorFunc=function(a){a=a.split("/");return 0<=a[0].indexOf("UIComponent")?AdfDataFlavor.getDataFlavorForClass(AdfUIComponent,1<a.length?a[1]:void 0):0<=a[0].indexOf("RowKeySet")?AdfDataFlavor.getRowKeyDataFlavor(1<a.length?a[1]:void 0):
0<=a[0].indexOf("String")?AdfDataFlavor.STRING_FLAVOR:AdfDataFlavor.ANY_FLAVOR};if(b=a[dvt.AdfDiagramParser._ATTR_AF_DROP_FLAVORS])this._diagram.DropFlavors=dvt.AdfDiagramJsonParser.ParseDropFlavors(b,this._diagram.ConvertDataFlavorFunc);this.ParsePanelCardJson(a);this.ParsePanelCardHeaderJson(a);this.ParsePanelCardNavButtonJson(a);this.ParsePanelCardTrainButtonJson(a);this.ParsePanelCardNextPrevButtonJson(a);return!0};
dvt.AdfDiagramJsonParser.prototype.ParseAdditionalPanelCardData=function(a){this._diagram.startParsingPanelCardData();(a=a[dvt.AdfDiagramParser._ELEM_DATA])&&this._parsePanelCardData(a);this._diagram.stopParsingPanelCardData()};dvt.AdfDiagramJsonParser.prototype._parsePanelCardData=function(a){if(a=a[dvt.AdfDiagramParser._ELEM_NODE_DATA])for(var b=0;b<a.length;b++)this._parsePanelCardItemData(a[b])};
dvt.AdfDiagramJsonParser.prototype._parsePanelCardItemData=function(a){var b=a[dvt.AdfDiagramParser._ATTR_ID];b&&(a=a[dvt.AdfDiagramParser._ELEM_EL])&&this._diagram.addPanelCardDataJson(b,a)};dvt.AdfDiagramJsonParser.prototype.parseNodeTemplates=function(a,b){for(var c=0;c<a.length;c++){var d=b.CreateNodeDef();this.parseNodeAttributes(a[c],d);this.parseNodeFacets(a[c],d);b._diagram.addNodeDef(d)}};
dvt.AdfDiagramJsonParser.prototype.parseNodeAttributes=function(a,b){var c,d;for(d in a)if(a.hasOwnProperty(d))switch(c=a[d],d){case dvt.AdfDiagramParser._ATTR_ID:b.setId(c);break;case dvt.AdfDiagramParser._ATTR_WIDTH:b.setWidth(c);break;case dvt.AdfDiagramParser._ATTR_HEIGHT:b.setHeight(c);break;case dvt.AdfDiagramParser._ATTR_AF_INLINE_STYLE:b.setInlineStyle(c);break;case dvt.AdfDiagramParser._ATTR_AF_STYLE_CLASS:b.setStyleClass(c);break;case dvt.AdfDiagramParser._ATTR_AF_READ_ONLY:b.setReadOnly(c);
break;case dvt.AdfDiagramParser._ATTR_AF_DRAGGABLE:b.setDraggable(c);break;case dvt.AdfDiagramParser._ATTR_AF_DRAG_FLAVOR:b.setDragFlavor(c);break;case dvt.AdfDiagramParser._ATTR_AF_DROP_FLAVORS:b.setDropFlavors(c);break;case dvt.AdfDiagramParser._ATTR_SELECTABLE:b.setSelectable(c);break;case dvt.AdfDiagramParser._ATTR_AF_SHORT_DESC:b.setShortDesc(c);break;case dvt.AdfDiagramParser._ATTR_LAYOUT:b.setLayout(c);break;case dvt.AdfDiagramParser._ATTR_LABEL:b.setLabel(c);break;case dvt.AdfDiagramParser._ATTR_CONTAINER_STYLE:b.setContainerStyle(c);
break;case dvt.AdfDiagramParser._ATTR_OVERVIEW_STYLE:b.setOverviewStyle(c);break;case dvt.AdfDiagramParser._ATTR_OVERVIEW_CONTAINER_STYLE:b.setOverviewContainerStyle(c)}};
dvt.AdfDiagramJsonParser.prototype.parseNodeFacets=function(a,b){var c,d;for(d in a)if(a.hasOwnProperty(d))if(c=a[d],"zoom100"===d||"zoom75"===d||"zoom50"===d||"zoom25"===d)(c=dvt.AfComponentFactory.parseJson(c))&&b.setNodeTemplate(c,d);else if("label"===d)(c=dvt.AfComponentFactory.parseJson(c))&&b.setLabelTemplate(c);else if("overlay"===d)(c=dvt.AfComponentFactory.parseJson(c))&&b.setOverlayTemplate(c);else if("background"===d)(c=dvt.AfComponentFactory.parseJson(c))&&b.setBackgroundTemplate(c);else if("containerTop"===
d)(c=dvt.AfComponentFactory.parseJson(c))&&b.setContainerTopTemplate(c);else if("containerBottom"===d)(c=dvt.AfComponentFactory.parseJson(c))&&b.setContainerBottomTemplate(c);else if("containerLeft"===d)(c=dvt.AfComponentFactory.parseJson(c))&&b.setContainerLeftTemplate(c);else if("containerRight"===d)(c=dvt.AfComponentFactory.parseJson(c))&&b.setContainerRightTemplate(c);else if("containerStart"===d)(c=dvt.AfComponentFactory.parseJson(c))&&(dvt.Agent.isRightToLeft(this._diagram.getCtx())?b.getContainerRightTemplate()||
b.setContainerRightTemplate(c):b.getContainerLeftTemplate()||b.setContainerLeftTemplate(c));else if("containerEnd"===d)(c=dvt.AfComponentFactory.parseJson(c))&&(dvt.Agent.isRightToLeft(this._diagram.getCtx())?b.getContainerLeftTemplate()||b.setContainerLeftTemplate(c):b.getContainerRightTemplate()||b.setContainerRightTemplate(c));else if("children"===d)for(var e=0;e<c.length;e++){var f=dvt.AfComponentFactory.parseJsonElement(c[e]),g=c[e].component;g&&f&&(g===dvt.AdfDiagramParser._ELEM_SHOW_POPUP_BEHAVIOR?
b.addShowPopupBehavior(f):g===dvt.AdfDiagramParser._ELEM_CLIENT_BEHAVIOR&&b.addClientBehavior(f))}};dvt.AdfDiagramJsonParser.prototype.parseLinkTemplates=function(a,b){for(var c=0;c<a.length;c++){var d=this.parseLinkTemplate(a[c]);b._diagram.addLinkDef(d)}};dvt.AdfDiagramJsonParser.prototype.parseLinkTemplate=function(a){var b=new dvt.AdfDiagramLinkDef;this.parseLinkAttributes(a,b);this.parseLinkFacets(a,b);return b};
dvt.AdfDiagramJsonParser.prototype.parseLinkAttributes=function(a,b){var c,d;for(d in a)if(a.hasOwnProperty(d))switch(c=a[d],d){case dvt.AdfDiagramParser._ATTR_ID:b.setId(c);break;case dvt.AdfDiagramParser._ATTR_LINK_WIDTH:b.setLinkWidth(c);break;case dvt.AdfDiagramParser._ATTR_LINK_LENGTH:b.setLinkLength(c);break;case dvt.AdfDiagramParser._ATTR_AF_READ_ONLY:b.setReadOnly(c);break;case dvt.AdfDiagramParser._ATTR_SELECTABLE:b.setSelectable(c);break;case dvt.AdfDiagramParser._ATTR_LINK_COLOR:dvt.AdfDiagramParser.validateColor(c)&&
b.setLinkColor(c);break;case dvt.AdfDiagramParser._ATTR_LINK_TYPE:b.setLinkType(c);break;case dvt.AdfDiagramParser._ATTR_LABEL:b.setLabel(c);break;case dvt.AdfDiagramParser._ATTR_LINK_STYLE:b.setLinkStyle(c);break;case dvt.AdfDiagramParser._ATTR_AF_RENDERED:b.setRendered(c);break;case dvt.AdfDiagramParser._ATTR_AF_SHORT_DESC:b.setShortDesc(c);break;case dvt.AdfDiagramParser._ATTR_END_CONNECTOR_TYPE:b.setEndConnectorType(c);break;case dvt.AdfDiagramParser._ATTR_START_CONNECTOR_TYPE:b.setStartConnectorType(c)}};
dvt.AdfDiagramJsonParser.prototype.parseLinkFacets=function(a,b){var c,d;for(d in a)if(a.hasOwnProperty(d))if(c=a[d],"endConnector"===d||"startConnector"===d)(c=dvt.AfComponentFactory.parseJson(c))&&b.setConnectorTemplate(c,d);else if("label"===d)(c=dvt.AfComponentFactory.parseJson(c))&&b.setLabelTemplate(c,d);else if("children"===d)for(var e=0;e<c.length;e++){var f=dvt.AfComponentFactory.parseJsonElement(c[e]);c[e].component===dvt.AdfDiagramParser._ELEM_SHOW_POPUP_BEHAVIOR&&f&&b.addShowPopupBehavior(f)}};
dvt.AdfDiagramJsonParser.prototype.parseNodeData=function(a,b){for(var c=0;c<a.length;c++){var d=b.CreateNodeData();this.parseNode(a[c],d,b);b._diagram.addNodeData(d)}};
dvt.AdfDiagramJsonParser.prototype.parseNode=function(a,b,c){for(var d in a)if(a.hasOwnProperty(d))switch(c=a[d],d){case dvt.AdfDiagramParser._ATTR_ID:b.setId(c);break;case dvt.AdfDiagramParser._ATTR_GROUP_ID:b.setGroupId(c);break;case dvt.AdfDiagramParser._ATTR_STRUCTURE_ONLY:!0===c&&b.setStructureOnly(!0);break;case dvt.AdfDiagramParser._ATTR_TEMPLATE_ID:b.setTemplateId(c);break;case dvt.AdfDiagramParser._ATTR_ROW_INDEX:b.setRowIndex(parseInt(c));break;case dvt.AdfDiagramParser._ATTR_ATTR_GRPS:b.setAttributeGroups(c.split(dvt.AdfDiagramParser._SEMICOLON));
break;case dvt.AdfDiagramParser._ATTR_SHOW_ISOLATE:b.setShowIsolate(c);break;case dvt.AdfDiagramParser._ATTR_SHOW_EXPAND_CHILDREN:b.setShowExpandChildren(c);break;case dvt.AdfDiagramParser._ATTR_SHOW_DRILL:b.setShowDrill(c);break;case dvt.AdfDiagramParser._ATTR_SHOW_STACK:b.setShowStack(c);break;case dvt.AdfDiagramParser._ATTR_SHOW_NODE_ACTIONS:b.setShowNodeActions(c);break;case dvt.AdfDiagramParser._ATTR_LAYOUT_ATTRS:b.setLayoutAttributes(c);break;case dvt.AdfDiagramParser._ATTR_CONTAINER:b.setContainer(c);
b.isContainer()&&(c=a[dvt.AdfDiagramParser._ATTR_CHILDREN_FETCHED])&&b.setChildrenFetched(c);break;case dvt.AdfDiagramParser._ELEM_EL:b.setElAttributes(c)}};dvt.AdfDiagramJsonParser.prototype.parseLinkData=function(a,b){for(var c=0;c<a.length;c++){var d=new DvtAdfDiagramLinkData;this.parseLink(a[c],d,b);b._diagram.addLinkData(d)}};
dvt.AdfDiagramJsonParser.prototype.parseLink=function(a,b,c){for(var d in a)if(a.hasOwnProperty(d))switch(c=a[d],d){case dvt.AdfDiagramParser._ATTR_ID:b.setId(c);break;case dvt.AdfDiagramParser._ATTR_GROUP_ID:b.setGroupId(c);break;case dvt.AdfDiagramParser._ATTR_TEMPLATE_ID:b.setTemplateId(c);break;case dvt.AdfDiagramParser._ATTR_PARENT_ID:b.setStartId(c);break;case dvt.AdfDiagramParser._ATTR_CHILD_ID:b.setEndId(c);break;case dvt.AdfDiagramParser._ATTR_LAYOUT_ATTRS:b.setLayoutAttributes(c);break;
case dvt.AdfDiagramParser._ATTR_ROW_INDEX:b.setRowIndex(c);break;case dvt.AdfDiagramParser._ELEM_EL:b.setElAttributes(c)}};
dvt.AdfDiagramJsonParser.prototype.parseCards=function(a,b){var c,d;for(d in a)if(a.hasOwnProperty(d)&&(c=a[d]))switch(d){case dvt.AdfDiagramParser._ATTR_NODE_SDI_MAP:b._diagram.setNodeShowDetailItemIndexMap(c);break;case dvt.AdfDiagramParser._ATTR_NEW_NODE_SDI_MAP:b._diagram.setShowDetailItems(c);break;case dvt.AdfDiagramParser._ATTR_CARD_NAV_BUTTON_SKIN:b._diagram.setCardNavButtonSkin(c);break;case dvt.AdfDiagramParser._ELEM_CARD:for(var e=[],f=0;f<c.length;f++){var g=c[f];e.push([g[dvt.AdfDiagramParser._ATTR_CARD_TEXT],
g[dvt.AdfDiagramParser._ATTR_CARD_ICON],g[dvt.AdfDiagramParser._ATTR_CARD_ID]])}0<e.length&&this._diagram.setCardSelectorList(e)}};
dvt.AdfDiagramJsonParser.prototype.ParseOverviewWindow=function(a,b){if(a){var c=new dvt.OverviewWindow(b._diagram.getCtx(),"dgOverviewWindow",0,0,108,81);c.setDisclosed(a.disclosed);var d=c.getSkinStyle();d||(d={});d[dvt.OverviewWindow.VIEWPORT_BORDER_COLOR]=a[dvt.AdfDiagramParser._ATTR_OV_WIN_VIEWPORT_BORDER_COLOR];d[dvt.OverviewWindow.VIEWPORT_BG_COLOR]=a[dvt.AdfDiagramParser._ATTR_OV_WIN_VIEWPORT_BG_COLOR];c.setSkinStyle(d);b._diagram.setOverviewWindow(c)}};
dvt.AdfDiagramJsonParser.prototype.parseOverviewContentJson=function(a){var b=this._diagram.getOverviewWindowContentStyle();b||(b={});b[dvt.AdfDiagram.OVERVIEW_STYLE]=new dvt.CSSStyle(a[dvt.AdfDiagramParser._ATTR_OV_WIN_NODE]);b[dvt.AdfDiagram.OVERVIEW_CONTAINER_STYLE]=new dvt.CSSStyle(a[dvt.AdfDiagramParser._ATTR_OV_WIN_DISCLOSED_NODE]);this._diagram.setOverviewWindowContentStyle(b)};
dvt.AdfDiagramJsonParser.prototype.parseStackingStylesJson=function(a){var b;(b=a[dvt.AdfDiagramParser._ATTR_STACK_PREVIEW_COLOR])&&(b=dvt.AdfDiagramParser.validateColor(b))&&this._diagram.setStackPreviewColor(b);(b=a[dvt.AdfDiagramParser._ATTR_STACK_BADGE_STYLE])&&this._diagram.setStackBadgeStyles(new dvt.CSSStyle(b));(b=a[dvt.AdfDiagramParser._ATTR_UNDERLAY_STYLE])&&this._diagram.setStackUnderlayStyles(new dvt.CSSStyle(b))};
dvt.AdfDiagramJsonParser.prototype.parseStackPreviewJson=function(a){var b={},c=!1,d=a[dvt.AdfDiagramParser._ATTR_PREVIEW_NODE];d&&(this._diagram._stackPreviewNode=d);d=a[dvt.AdfDiagramParser._ATTR_PREVIEW_PAN_X];isNaN(d)||(b.panX=parseFloat(d),c=!0);d=a[dvt.AdfDiagramParser._ATTR_PREVIEW_PAN_Y];isNaN(d)||(b.panY=parseFloat(d),c=!0);d=a[dvt.AdfDiagramParser._ATTR_PREVIEW_ZOOM];isNaN(d)||(b.zoom=parseFloat(d),c=!0);c&&(this._diagram._stackPreviewPanZoom=b)};
dvt.AdfDiagramJsonParser.prototype.parseDiagramButtonStylesJson=function(a){var b,c=new dvt.CSSStyle;(b=a[dvt.AdfDiagramParser._ATTR_BUTTON_STYLE_ENA])&&c.parseInlineStyle(b);var d;d=(b=a[dvt.AdfDiagramParser._ATTR_BUTTON_STYLE_OVR])?new dvt.CSSStyle(b):c.clone();a=(b=a[dvt.AdfDiagramParser._ATTR_BUTTON_STYLE_DWN])?new dvt.CSSStyle(b):c.clone();b=[];b[dvt.AdfDiagram.BUTTON_STATE_ENA]=c;b[dvt.AdfDiagram.BUTTON_STATE_OVR]=d;b[dvt.AdfDiagram.BUTTON_STATE_DWN]=a;this._diagram.setDiagramButtonStyles(b)};
dvt.AdfDiagramJsonParser.prototype.ParseDiagramIsolation=function(a){if(a=a[dvt.AdfDiagramParser._ATTR_ISOLATED_NODES])for(this._diagram._isolatedNodes=a.split(","),this._diagram._isolatedNodeMap={},a=0;a<this._diagram._isolatedNodes.length;a++)this._diagram._isolatedNodeMap[this._diagram._isolatedNodes[a]]=!1};
dvt.AdfDiagramJsonParser.prototype.parseSelectionJson=function(a){var b;b=a[dvt.AdfDiagramParser._ATTR_SELECTION_MODE];this._diagram.setSelectionMode(b);if(b=a[dvt.AdfDiagramParser._ATTR_SELECTED_NODES])this._diagram._selectedNodes=b.split(",");if(b=a[dvt.AdfDiagramParser._ATTR_SELECTED_LINKS])this._diagram._selectedLinks=b.split(",")};
dvt.AdfDiagramJsonParser.prototype.parseBreadcrumbsJson=function(a){(a=dvt.AdfDiagramJsonParser.getBreadcrumbsStyles(a,dvt.AdfDiagramParser._ATTR_BREADCRUMBS_STYLE,dvt.AdfDiagramParser._ATTR_BREADCRUMBS_HOVER_STYLE,dvt.AdfDiagramParser._ATTR_BREADCRUMBS_ACTIVE_STYLE,dvt.AdfDiagramParser._ATTR_BREADCRUMBS_DISABLED_STYLE))&&this._diagram.setBreadcrumbsStyles(a)};
dvt.AdfDiagramJsonParser.getBreadcrumbsStyles=function(a,b,c,d,e){b=a[b];c=a[c]?a[c]:b;d=a[d]?a[d]:b;a=a[e]?a[e]:b;c=dvt.AdfDiagramParser.mergeStyles(b,c);d=dvt.AdfDiagramParser.mergeStyles(b,d);a=dvt.AdfDiagramParser.mergeStyles(b,a);e=[];e[dvt.AdfDiagram.BUTTON_STATE_ENA]=b;e[dvt.AdfDiagram.BUTTON_STATE_OVR]=c;e[dvt.AdfDiagram.BUTTON_STATE_DWN]=d;e[dvt.AdfDiagram.BUTTON_STATE_DIS]=a;return e};
dvt.AdfDiagramJsonParser.prototype.parsePaletteJson=function(a){var b,c=new dvt.CSSStyle;(b=a[dvt.AdfDiagramParser._ATTR_PALETTE_SECTION_STYLE])&&c.parseInlineStyle(b);(b=a[dvt.AdfDiagramParser._ATTR_PALETTE_SECTION_HOVER_STYLE])?new dvt.CSSStyle(b):c.clone();(b=a[dvt.AdfDiagramParser._ATTR_PALETTE_SECTION_ACTIVE_STYLE])?new dvt.CSSStyle(b):c.clone();var d={};d.skin=this._diagram.getSkinName();d.sectionHeader={};d.sectionHeader.styleEna=c;d.sectionHeader.styleOvr=c;d.sectionHeader.styleDwn=c;d.sectionItem=
{};if(b=a[dvt.AdfDiagramParser._ATTR_PALETTE_ITEM_STYLE])c=new dvt.CSSStyle,c.parseInlineStyle(b),d.sectionItem.style=c;(b=a.paletteItemHoverStyle)&&(d.sectionItem.fillColorHover=b);(b=a.paletteItemSelectedStyle)&&(d.sectionItem.fillColorSelected=b);this._diagram.setPaletteStyles(d)};
dvt.AdfDiagramJsonParser.prototype.ParseNodeStylesJson=function(a){var b={},c=!1,d=a[dvt.AdfDiagramNode.SELECTED_COLOR];d&&(d=dvt.AdfDiagramParser.validateColor(d))&&(c=!0,b[dvt.AdfDiagramNode.SELECTED_COLOR]=d);(d=a[dvt.AdfDiagramNode.HOVER_INNER_COLOR])&&(d=dvt.AdfDiagramParser.validateColor(d))&&(c=!0,b[dvt.AdfDiagramNode.HOVER_INNER_COLOR]=d);(d=a[dvt.AdfDiagramNode.HOVER_OUTER_COLOR])&&(d=dvt.AdfDiagramParser.validateColor(d))&&(c=!0,b[dvt.AdfDiagramNode.HOVER_OUTER_COLOR]=d);if(d=a[dvt.AdfDiagramNode.CONTAINER_STYLE])c=
!0,b[dvt.AdfDiagramNode.CONTAINER_STYLE]=new dvt.CSSStyle(d);if(d=a[dvt.AdfDiagramNode.LABEL_STYLE])c=!0,b[dvt.AdfDiagramNode.LABEL_STYLE]=new dvt.CSSStyle(d);c&&this._diagram.setNodeStyles(b)};
dvt.AdfDiagramJsonParser.prototype.ParseLinkStylesJson=function(a){var b={},c=!1,d=a[dvt.AdfDiagramParser._ATTR_LINK_COLOR];d&&(d=dvt.AdfDiagramParser.validateColor(d))&&(c=!0,b[dvt.AdfDiagramLink.COLOR]=d);(d=a[dvt.AdfDiagramLink.SELECTED_COLOR])&&(d=dvt.AdfDiagramParser.validateColor(d))&&(c=!0,b[dvt.AdfDiagramLink.SELECTED_COLOR]=d);(d=a[dvt.AdfDiagramLink.HOVER_INNER_COLOR])&&(d=dvt.AdfDiagramParser.validateColor(d))&&(c=!0,b[dvt.AdfDiagramLink.HOVER_INNER_COLOR]=d);(d=a[dvt.AdfDiagramLink.HOVER_OUTER_COLOR])&&
(d=dvt.AdfDiagramParser.validateColor(d))&&(c=!0,b[dvt.AdfDiagramLink.HOVER_OUTER_COLOR]=d);if(d=a[dvt.AdfDiagramLink.LABEL_STYLE])c=!0,b[dvt.AdfDiagramLink.LABEL_STYLE]=new dvt.CSSStyle(d);(d=a[dvt.AdfDiagramLink.PROMOTED_COLOR])&&(d=dvt.AdfDiagramParser.validateColor(d))&&(c=!0,b[dvt.AdfDiagramLink.PROMOTED_COLOR]=d);if(d=a[dvt.AdfDiagramLink.PROMOTED_STYLE])c=!0,d=dvt.AdfDiagramParser._LINK_STYLE_CONVERTER[d],b[dvt.AdfDiagramLink.PROMOTED_STYLE]=d?d:dvt.AdfDiagramLinkDef.LINK_STYLE_DOT;(d=a[dvt.AdfDiagramLink.PROMOTED_WIDTH])&&
!isNaN(parseInt(d))&&(c=!0,b[dvt.AdfDiagramLink.PROMOTED_WIDTH]=d);c&&this._diagram.setLinkStyles(b)};
dvt.AdfDiagramJsonParser.prototype.ParseButtonStyleJson=function(a){var b=[],c=[];this.ParseButtonContainerStyle(a,b,dvt.AdfDiagramParser._ATTR_ENABLED_STATE);this.ParseButtonContainerStyle(a,b,dvt.AdfDiagramParser._ATTR_HOVER_STATE);this.ParseButtonContainerStyle(a,b,dvt.AdfDiagramParser._ATTR_ACTIVE_STATE);this._diagram.setButtonStyle(b);this.ParseButtonLabelStyle(a,c,dvt.AdfDiagramParser._ATTR_ENABLED_STATE);this.ParseButtonLabelStyle(a,c,dvt.AdfDiagramParser._ATTR_HOVER_STATE);this.ParseButtonLabelStyle(a,
c,dvt.AdfDiagramParser._ATTR_ACTIVE_STATE);this._diagram.setLabelStyle(c)};
dvt.AdfDiagramJsonParser.prototype.ParseButtonContainerStyle=function(a,b,c){var d,e=new dvt.CSSStyle,f=!1;(d=a[dvt.AdfDiagramParser._ATTR_BUTTON_CONTAINER+c+dvt.AdfDiagramParser._ATTR_BUTTON_FILL_TYPE])&&(f=this._diagramParser.AddButtonStyle(e,d,dvt.CSSStyle.FILL_TYPE,f));(d=a[dvt.AdfDiagramParser._ATTR_BUTTON_CONTAINER+c+dvt.AdfDiagramParser._ATTR_BUTTON_BACKGROUND_COLOR])&&(f=this._diagramParser.AddButtonStyle(e,d,dvt.CSSStyle.BACKGROUND_COLOR,f));(d=a[dvt.AdfDiagramParser._ATTR_BUTTON_CONTAINER+
c+dvt.AdfDiagramParser._ATTR_BUTTON_BACKGROUND])&&(f=this._diagramParser.AddButtonStyle(e,d,dvt.CSSStyle.BACKGROUND,f));(d=a[dvt.AdfDiagramParser._ATTR_BUTTON_CONTAINER+c+dvt.AdfDiagramParser._ATTR_BUTTON_BORDER_COLOR])&&(f=this._diagramParser.AddButtonStyle(e,d,dvt.CSSStyle.BORDER_COLOR,f));f?b.push(e):b.push(null)};dvt.AdfDiagramJsonParser.prototype.ParseButtonLabelStyle=function(a,b,c){(a=a[dvt.AdfDiagramParser._ATTR_BUTTON_LABEL+c])?(c=new dvt.CSSStyle,c.parseInlineStyle(a),b.push(c)):b.push(null)};
dvt.AdfDiagramJsonParser.prototype.ParsePanelCardJson=function(a){var b,c=new dvt.CSSStyle,d=!1;if(b=a[dvt.AdfDiagramParser._ATTR_CARD_FILL_TYPE])c.setStyle(dvt.CSSStyle.FILL_TYPE,b),d=!0;if(b=a[dvt.AdfDiagramParser._ATTR_CARD_BORDER_TYPE])c.setStyle(dvt.CSSStyle.BORDER_TYPE,b),d=!0;if(b=a[dvt.AdfDiagramParser._ATTR_CARD_BORDER_COLOR])c.setStyle(dvt.CSSStyle.BORDER_COLOR,b),d=!0;if(b=a[dvt.AdfDiagramParser._ATTR_CARD_BACKGROUND_COLOR])c.setStyle(dvt.CSSStyle.BACKGROUND_COLOR,b),d=!0;if(b=a[dvt.AdfDiagramParser._ATTR_CARD_BORDER_RADIUS])c.setStyle("border-radius",
b),d=!0;d&&this._diagram.setCardStyle(c)};
dvt.AdfDiagramJsonParser.prototype.ParsePanelCardHeaderJson=function(a){var b,c=this._diagram.getCardHeaderStyle();b=a[dvt.AdfDiagramParser._ATTR_CARD_HEADER_TEXT];this._diagramParser.AddCardHeaderStyle(c,b,"zoom100");b=a[dvt.AdfDiagramParser._ATTR_CARD_HEADER_TEXT75];this._diagramParser.AddCardHeaderStyle(c,b,"zoom75");b=a[dvt.AdfDiagramParser._ATTR_CARD_HEADER_TEXT50];this._diagramParser.AddCardHeaderStyle(c,b,"zoom50");b=a[dvt.AdfDiagramParser._ATTR_CARD_HEADER_TEXT25];this._diagramParser.AddCardHeaderStyle(c,
b,"zoom25");this._diagram.setCardHeaderStyle(c)};
dvt.AdfDiagramJsonParser.prototype.ParsePanelCardNavButtonJson=function(a){var b,c=new dvt.CSSStyle,d;b=a[dvt.AdfDiagramParser._ATTR_CARD_NAV_BUTTON_FILL_TYPE];d=this._diagramParser.AddButtonStyle(c,b,dvt.CSSStyle.FILL_TYPE,!1);b=a[dvt.AdfDiagramParser._ATTR_CARD_NAV_BUTTON_BORDER_COLOR];d=this._diagramParser.AddButtonStyle(c,b,dvt.CSSStyle.BORDER_COLOR,d);b=a[dvt.AdfDiagramParser._ATTR_CARD_NAV_BUTTON_ICON_COLOR];d=this._diagramParser.AddButtonStyle(c,b,dvt.CSSStyle.COLOR,d);b=a[dvt.AdfDiagramParser._ATTR_CARD_NAV_BUTTON_BACKGROUND_COLOR];
if(d=this._diagramParser.AddButtonStyle(c,b,dvt.CSSStyle.BACKGROUND_COLOR,d))this._diagram.getSkinName()==dvt.CSSStyle.SKIN_SKYROS&&c.setStyle(dvt.CSSStyle.FILL_TYPE,"solid"),this._diagram.setCardNavButtonStyle(c);c=new dvt.CSSStyle;b=a[dvt.AdfDiagramParser._ATTR_CARD_NAV_BUTTON_HOVER_FILL_TYPE];d=this._diagramParser.AddButtonStyle(c,b,dvt.CSSStyle.FILL_TYPE,!1);b=a[dvt.AdfDiagramParser._ATTR_CARD_NAV_BUTTON_HOVER_BORDER_COLOR];d=this._diagramParser.AddButtonStyle(c,b,dvt.CSSStyle.BORDER_COLOR,d);
b=a[dvt.AdfDiagramParser._ATTR_CARD_NAV_BUTTON_HOVER_ICON_COLOR];d=this._diagramParser.AddButtonStyle(c,b,dvt.CSSStyle.COLOR,d);b=a[dvt.AdfDiagramParser._ATTR_CARD_NAV_BUTTON_HOVER_BACKGROUND_COLOR];if(d=this._diagramParser.AddButtonStyle(c,b,dvt.CSSStyle.BACKGROUND_COLOR,d))this._diagram.getSkinName()==dvt.CSSStyle.SKIN_SKYROS&&c.setStyle(dvt.CSSStyle.FILL_TYPE,"solid"),this._diagram.setCardNavButtonHoverStyle(c);c=new dvt.CSSStyle;b=a[dvt.AdfDiagramParser._ATTR_CARD_NAV_BUTTON_ACTIVE_FILL_TYPE];
d=this._diagramParser.AddButtonStyle(c,b,dvt.CSSStyle.FILL_TYPE,!1);b=a[dvt.AdfDiagramParser._ATTR_CARD_NAV_BUTTON_ACTIVE_ICON_COLOR];d=this._diagramParser.AddButtonStyle(c,b,dvt.CSSStyle.COLOR,d);b=a[dvt.AdfDiagramParser._ATTR_CARD_NAV_BUTTON_ACTIVE_BORDER_COLOR];d=this._diagramParser.AddButtonStyle(c,b,dvt.CSSStyle.BORDER_COLOR,d);b=a[dvt.AdfDiagramParser._ATTR_CARD_NAV_BUTTON_ACTIVE_BACKGROUND_COLOR];if(d=this._diagramParser.AddButtonStyle(c,b,dvt.CSSStyle.BACKGROUND_COLOR,d))this._diagram.getSkinName()==
dvt.CSSStyle.SKIN_SKYROS&&c.setStyle(dvt.CSSStyle.FILL_TYPE,"solid"),this._diagram.setCardNavButtonActiveStyle(c);c=new dvt.CSSStyle;b=a[dvt.AdfDiagramParser._ATTR_CARD_NAV_BUTTON_DISABLED_FILL_TYPE];d=this._diagramParser.AddButtonStyle(c,b,dvt.CSSStyle.FILL_TYPE,!1);b=a[dvt.AdfDiagramParser._ATTR_CARD_NAV_BUTTON_DISABLED_BORDER_COLOR];d=this._diagramParser.AddButtonStyle(c,b,dvt.CSSStyle.BORDER_COLOR,d);b=a[dvt.AdfDiagramParser._ATTR_CARD_NAV_BUTTON_DISABLED_ICON_COLOR];d=this._diagramParser.AddButtonStyle(c,
b,dvt.CSSStyle.COLOR,d);b=a[dvt.AdfDiagramParser._ATTR_CARD_NAV_BUTTON_DISABLED_BACKGROUND_COLOR];if(d=this._diagramParser.AddButtonStyle(c,b,dvt.CSSStyle.BACKGROUND_COLOR,d))this._diagram.getSkinName()==dvt.CSSStyle.SKIN_SKYROS&&c.setStyle(dvt.CSSStyle.FILL_TYPE,"solid"),this._diagram.setCardNavButtonDisabledStyle(c)};
dvt.AdfDiagramJsonParser.prototype.ParsePanelCardTrainButtonJson=function(a){var b;(b=a[dvt.AdfDiagramParser._ATTR_CARD_TRAIN_BUTTON_VISIBILITY])&&"false"===b.toLowerCase()&&this._diagram.setCardTrainButtonVisible(!1);var c,d=new dvt.CSSStyle,e=a[dvt.AdfDiagramParser._ATTR_CARD_TRAIN_BUTTON_ICON];e?(b=!0,d.setIconUrl(e)):(c=!1,b=a[dvt.AdfDiagramParser._ATTR_CARD_TRAIN_BUTTON_BORDER_COLOR],this._diagramParser.AddButtonStyle(d,b,dvt.CSSStyle.BORDER_COLOR,c),b=a[dvt.AdfDiagramParser._ATTR_CARD_TRAIN_BUTTON_BACKGROUND_COLOR],
b=this._diagramParser.AddButtonStyle(d,b,dvt.CSSStyle.BACKGROUND_COLOR,c));b&&this._diagram.setCardTrainButtonStyle(d);d=new dvt.CSSStyle;(b=a[dvt.AdfDiagramParser._ATTR_CARD_TRAIN_BUTTON_HOVER_ICON])||(b=e);b&&(d.setIconUrl(b),this._diagram.setCardTrainButtonHoverStyle(d));d=new dvt.CSSStyle;(c=a[dvt.AdfDiagramParser._ATTR_CARD_TRAIN_BUTTON_ACTIVE_ICON])||(c=e);c?(b=!0,d.setIconUrl(c)):(c=!1,b=a[dvt.AdfDiagramParser._ATTR_CARD_TRAIN_BUTTON_ACTIVE_BORDER_COLOR],this._diagramParser.AddButtonStyle(d,
b,dvt.CSSStyle.BORDER_COLOR,c),b=a[dvt.AdfDiagramParser._ATTR_CARD_TRAIN_BUTTON_ACTIVE_BACKGROUND_COLOR],b=this._diagramParser.AddButtonStyle(d,b,dvt.CSSStyle.BACKGROUND_COLOR,c));b&&this._diagram.setCardTrainButtonActiveStyle(d)};
dvt.AdfDiagramJsonParser.prototype.ParsePanelCardNextPrevButtonJson=function(a){var b=dvt.AdfDiagramJsonParser.getButtonImages(a,dvt.AdfDiagramParser._ATTR_CARD_PREV_ICON,dvt.AdfDiagramParser._ATTR_CARD_PREV_HOVER_ICON,dvt.AdfDiagramParser._ATTR_CARD_PREV_ACTIVE_ICON);b&&this._diagram.setCardPrevButtonIcon(b);(b=dvt.AdfDiagramJsonParser.getButtonImages(a,dvt.AdfDiagramParser._ATTR_CARD_NEXT_ICON,dvt.AdfDiagramParser._ATTR_CARD_NEXT_HOVER_ICON,dvt.AdfDiagramParser._ATTR_CARD_NEXT_ACTIVE_ICON))&&this._diagram.setCardNextButtonIcon(b)};
dvt.AdfDiagramJsonParser.getButtonImages=function(a,b,c,d){var e=[];b=a[b];c=a[c]?a[c]:b;a=a[d]?a[d]:b;if(b||c||a)e.push(b),e.push(c),e.push(a);else return null;return e};
dvt.AdfDiagramJsonParser.prototype.parseScrollbarStylesJson=function(a){var b={};dvt.StyleUtils.setStyle(b,DvtScrollbar.BACKGROUND,a[dvt.AdfDiagramParser._ATTR_SCROLLBAR_BACKGROUND]);dvt.StyleUtils.setStyle(b,DvtScrollbar.BORDER_COLOR,a[dvt.AdfDiagramParser._ATTR_SCROLLBAR_BORDER_COLOR]);dvt.StyleUtils.setStyle(b,DvtScrollbar.HANDLE_COLOR,a[dvt.AdfDiagramParser._ATTR_SCROLLBAR_HANDLE_COLOR]);dvt.StyleUtils.setStyle(b,DvtScrollbar.HANDLE_ACTIVE_COLOR,a[dvt.AdfDiagramParser._ATTR_SCROLLBAR_HANDLE_ACTIVE_COLOR]);
dvt.StyleUtils.setStyle(b,DvtScrollbar.HANDLE_HOVER_COLOR,a[dvt.AdfDiagramParser._ATTR_SCROLLBAR_HANDLE_HOVER_COLOR]);a=dvt.JsonUtils.merge(b,this._diagram.getSubcomponentStyles());this._diagram.setSubcomponentStyles(a)};dvt.AdfDiagramJsonParser.ParseDropFlavors=function(a,b){if(!a||!b)return null;for(var c=[],d=a.split(" "),e=0;e<d.length;e++)c.push(b(d[e]));return c};