var DvtText=function(a,b,c,d,e){this.Init(a,b,c,d,e)};dvt.Obj.createSubclass(DvtText,dvt.Shape,"DvtText");DvtText.ELLIPSIS="\u2026";DvtText.H_ALIGN_LEFT="left";DvtText.H_ALIGN_CENTER="center";DvtText.H_ALIGN_RIGHT="right";DvtText.H_ALIGN_DEFAULT=DvtText.H_ALIGN_LEFT;DvtText.V_ALIGN_TOP="top";DvtText.V_ALIGN_MIDDLE="middle";DvtText.V_ALIGN_BOTTOM="bottom";DvtText.V_ALIGN_BASELINE="baseline";DvtText.V_ALIGN_DEFAULT=DvtText.V_ALIGN_TOP;DvtText._BULK_TRUNCATION=!0;DvtText._TRUNCATION_DONE=0;
DvtText._TRUNCATION_GUESS_TOO_SHORT=1;DvtText._TRUNCATION_GUESS_TOO_LONG=2;
DvtText.prototype.Init=function(a,b,c,d,e){DvtText.superclass.Init.call(this,a,"text",e);this.setTextString(b);this.setX(c);this.setY(d);dvt.ToolkitUtils.setAttrNullNS(this.getElem(),"font-family","tahoma, sans-serif");dvt.ToolkitUtils.removeAttrNullNS(this.getElem(),"fill");dvt.Agent.isRightToLeft(a)&&(dvt.Agent.isPlatformIE()?this.setTextString("\u202b"+b):DvtText.needsTextAnchorAdjustment(a)?this.alignLeft():dvt.ToolkitUtils.setAttrNullNS(this.getElem(),"unicode-bidi","embed"));this._baseline=
null;this._bEditMode=!1;this._editEndCallback=this._editStartCallback=null;this._editPxWidth;this._editElem=null;this._editBorder=!1;this._editTooltip=null;this._textString=b;this._horizAlign=DvtText.H_ALIGN_DEFAULT;DvtText.H_ALIGN_DEFAULT!=DvtText.H_ALIGN_LEFT&&this.setHorizAlignment(DvtText.H_ALIGN_DEFAULT);this._vertAlign=DvtText.V_ALIGN_DEFAULT;DvtText.V_ALIGN_DEFAULT!=DvtText.V_ALIGN_BASELINE&&this.setVertAlignment(DvtText.V_ALIGN_DEFAULT);this._maxw=-1;this._minChars=null;this._defTrunc=this._inProcess=
this._bTruncated=this._bHtmlText=!1;this._setCachedDims(void 0);this._bHollow=!1;this._cloneCSSStyle=null;this.setAriaProperty("hidden","true")};DvtText.prototype.alignLeft=function(){this._horizAlign=DvtText.H_ALIGN_LEFT;this.impl_alignLeft()};DvtText.prototype.alignCenter=function(){this._horizAlign=DvtText.H_ALIGN_CENTER;this.impl_alignCenter()};DvtText.prototype.alignRight=function(){this._horizAlign=DvtText.H_ALIGN_RIGHT;this.impl_alignRight()};
DvtText.prototype.alignTop=function(){this._vertAlign=DvtText.V_ALIGN_TOP;this.impl_alignTop()};DvtText.prototype.alignMiddle=function(){this._vertAlign=DvtText.V_ALIGN_MIDDLE;this.impl_alignMiddle()};DvtText.prototype.alignBottom=function(){this._vertAlign=DvtText.V_ALIGN_BOTTOM;this.impl_alignBottom()};DvtText.prototype.alignBaseline=function(){this._vertAlign=DvtText.V_ALIGN_BASELINE;this.impl_alignBaseline()};DvtText.prototype.getHorizAlignment=function(){return this._horizAlign};
DvtText.prototype.setHorizAlignment=function(a){a==DvtText.H_ALIGN_LEFT?this.alignLeft():a==DvtText.H_ALIGN_CENTER?this.alignCenter():a==DvtText.H_ALIGN_RIGHT&&this.alignRight()};DvtText.prototype.getVertAlignment=function(){return this._vertAlign};DvtText.prototype.setVertAlignment=function(a){a==DvtText.V_ALIGN_TOP?this.alignTop():a==DvtText.V_ALIGN_MIDDLE?this.alignMiddle():a==DvtText.V_ALIGN_BOTTOM?this.alignBottom():a==DvtText.V_ALIGN_BASELINE&&this.alignBaseline()};DvtText.prototype.getX=function(){return this.impl_getX()};
DvtText.prototype.setX=function(a){this.impl_setX(a)};DvtText.prototype.getY=function(){return this.impl_getY()};DvtText.prototype.setY=function(a){this.impl_setY(a)};DvtText.prototype.getTextString=function(){return String(this.impl_getTextString())};DvtText.prototype.getOptimalFontSize=function(a){for(var b=Math.max(Math.min(a.w/this.getTextString().length,a.h/2),9);51>b;b+=1){this.setFontSize(b);var c=this.measureDimensions();if(c.w>a.w||c.h>a.h)return Math.min(b-1,50)}return 50};
DvtText.prototype.getEditMode=function(){return this.impl_getEditMode()};DvtText.prototype.setEditMode=function(a,b,c){this.impl_setEditMode(a,b,c)};DvtText.prototype.setEditWidth=function(a){this.impl_setEditWidth(a)};DvtText.prototype.setEditTooltip=function(a){this.impl_setEditTooltip(a)};DvtText.prototype.getEditBorder=function(a){return this.impl_getEditBorder()};DvtText.prototype.setEditBorder=function(a){this.impl_setEditBorder(a)};
DvtText.prototype.selectEditText=function(){this.impl_selectEditText&&this.impl_selectEditText()};DvtText.prototype.focusEditText=function(){this.impl_focusEditText&&this.impl_focusEditText()};DvtText.prototype.setTextString=function(a){this._textString=a;this.impl_setTextString(a);this._setCachedDims(void 0)};
DvtText.prototype.setFontSize=function(a){this.impl_setFontSize(a);this._setCachedDims(void 0);var b=this.getCSSStyle();b?(this._cloneCSSStyle=b.clone(),this._cloneCSSStyle.setFontSize(dvt.CSSStyle.FONT_SIZE,a.toString())):(this.setCSSStyle(new dvt.CSSStyle),this.getCSSStyle().setFontSize(dvt.CSSStyle.FONT_SIZE,a.toString()))};DvtText.prototype.setMaxWidth=function(a,b){this._maxw=a;this._minChars=b;0<a&&this._ProcessText()};
DvtText.prototype.getText=function(){return this.getEditMode()&&this.impl_getText?this.impl_getText():this._text};DvtText.prototype._setTextWithSize=function(a,b){this.impl_setText(a,b)};DvtText.prototype.setTruncateAt=function(a){this._truncateAt=a;this.DoSetText(this.getText())};DvtText.prototype.getTruncateAt=function(){return this._truncateAt};DvtText.prototype.DoSetText=function(a){a=this.DoTruncateAt(a,this.getTruncateAt());this._setCachedDims(void 0);this._setText(a);a&&this._ProcessText()};
DvtText.prototype.DoTruncateAt=function(a,b){this._bTruncated=!1;b&&(a&&a.length>b)&&(a=a.substr(0,Math.max(b-3,0))+"...",this._bTruncated=!0);return a};DvtText.prototype.isTruncated=function(){return this._bTruncated};DvtText.prototype.getUntruncatedTextString=function(){return this._untruncatedTextString};DvtText.prototype.setUntruncatedTextString=function(a){a!=this.getTextString()&&(this._untruncatedTextString=a)};DvtText.prototype.isTruncationEnabled=function(){return 0<this._maxw&&!this._bHtmlText};
DvtText.prototype.setText=function(a){this._text=a;this.DoSetText(a)};DvtText.prototype._setText=function(a){this.impl_setText(a)};DvtText.prototype._getText=function(){return this.impl_getText()};DvtText.prototype.setCSSStyle=function(a){this._cloneCSSStyle&&(this._cloneCSSStyle=null);this._setCachedDims(void 0);DvtText.superclass.setCSSStyle.call(this,a);this.impl_setCSSStyle(a);null!==this._text&&"undefined"!==typeof this._text?this.setText(this.getText()):this._ProcessText()};
DvtText.prototype._ProcessText=function(){this.isTruncationEnabled()&&!this._inProcess&&(this._inProcess=!0,this._TruncateText(),this._inProcess=!1)};
DvtText.prototype.measureDimensions=function(a){DvtText._cache||(DvtText._cache=new dvt.Cache);var b=this.getCSSStyle(),c="";b&&(b.getStyle(dvt.CSSStyle.FONT_FAMILY)&&(c+=b.getStyle(dvt.CSSStyle.FONT_FAMILY)),b.getStyle(dvt.CSSStyle.FONT_SIZE)&&(c+=b.getStyle(dvt.CSSStyle.FONT_SIZE)),b.getStyle(dvt.CSSStyle.FONT_STYLE)&&(c+=b.getStyle(dvt.CSSStyle.FONT_STYLE)),b.getStyle(dvt.CSSStyle.FONT_WEIGHT)&&(c+=b.getStyle(dvt.CSSStyle.FONT_WEIGHT)));var b=0<this.getTextString().length?this.getTextString()+
this.getHorizAlignment()+this.getVertAlignment()+c:"",d=DvtText._cache.get(b);if(null!=d)c=new dvt.Rectangle(d.x+this.getX(),d.y+this.getY(),d.w,d.h);else{(c=this.getDimensions())||(c=new dvt.Rectangle(0,0,0,0));if(0>=c.w&&0>=c.h&&0<this.getTextString().length){var d=this.getParent(),e;d&&(e=d.getChildIndex(this));var f=this.getCtx().getStage();f.addChild(this);c=this.getDimensions();f.removeChild(this);d&&d.addChildAt(this,e)}d=new dvt.Rectangle(c.x-this.getX(),c.y-this.getY(),c.w,c.h);DvtText._cache.put(b,
d)}return!a||a===this?c:this.ConvertCoordSpaceRect(c,a)};DvtText.prototype._TruncateText=function(){if(this.isTruncationEnabled()){var a=this._maxw,b=this._minChars,c=!1;if(isNaN(b)||null==b)b=0,c=!0;this._bTruncated=!1;var d;d=c?this.getCachedDims():this.measureDimensions();d.w>a&&(this._bTruncated=!0,this._defTrunc||(d=this._truncateLine(a,b,d),c&&this._setCachedDims(d)))}};
DvtText.prototype._GetTempTextField=function(){if(void 0===this._ttf){var a=new DvtText(this.getCtx(),null,0,0,this.getId()+"__tmp");this.getCtx().getStage().addChild(a);this._ttf=a}return this._ttf};DvtText.prototype._RemoveTempTextField=function(){this._ttf&&(this.getCtx().getStage().removeChild(this._ttf),this._ttf=void 0)};DvtText.prototype.getCachedDims=function(){var a=this._dim;a||(a=this.GetDimsForCaching(),this._setCachedDims(a),a||(a=new dvt.Rectangle(0,0,0,0)));return a};
DvtText.prototype.GetDimsForCaching=function(){return DvtText.superclass.getDimensions.call(this)};DvtText.prototype._setCachedDims=function(a){dvt.DisplayableUtils._setDimForced(this,a)};DvtText.prototype.truncateText=function(a){this.setTruncationDeferred(a);a||this._ProcessText()};DvtText.prototype.setTruncationDeferred=function(a){this._defTrunc=a};DvtText.prototype.isTruncationDeferred=function(){return this._defTrunc};
DvtText.truncateTexts=function(a){if(DvtText._BULK_TRUNCATION)DvtText._bulkTruncation(a);else for(var b=a.length,c=0;c<b;c++){var d=a[c].isTruncationDeferred();a[c].setTruncationDeferred(!1);try{a[c]._ProcessText()}finally{a[c].setTruncationDeferred(d)}}};DvtText.prototype.getDimensions=function(a){if(this.isTruncated()&&this._defTrunc&&!this._dim){var b=this.GetSvgDimensions();b.w=this._maxw;return!a||a===this?b:this.ConvertCoordSpaceRect(b,a)}return DvtText.superclass.getDimensions.call(this)};
DvtText.prototype.getCSSStyle=function(){return this._cloneCSSStyle?this._cloneCSSStyle:DvtText.superclass.getCSSStyle.call(this)};DvtText.prototype._measureText=function(a,b){this.setTextString(a);return this.getDimensions()};
DvtText.prototype._truncateLine=function(a,b,c){var d=this.getTextString(),e=Math.max(Math.floor(a/(c.w/d.length))-3,b),f=this.getCSSStyle(),g=d.substring(0,e)+DvtText.ELLIPSIS;for(c=this._measureText(g,f);c.w<a&&!(e>=d.length);)e+=1,g=d.substring(0,e)+DvtText.ELLIPSIS,c=this._measureText(g,f);for(;c.w>a;){if(e<=b){g="";c.w=0;break}e-=1;g=d.substring(0,e)+DvtText.ELLIPSIS;c=this._measureText(g,f)}this.setTextString(g);return c};
DvtText._bulkSetDimensions=function(a){for(var b,c=0;c<a.length;c++)b=a[c],b._setCachedDims(b.GetDimsForCaching())};DvtText.prototype._initTruncation=function(){var a=this.getCachedDims(),b=this._minChars;if(isNaN(b)||null==b)b=0;var c=this._maxw,d=this.getTextString(),a=Math.max(Math.floor(c/(a.w/d.length))-3,b);this.setTextString(d.substring(0,a)+DvtText.ELLIPSIS);this._maxNumChars=a;this._setCachedDims(void 0);this._originalText=d;this._minChars2=b;this._state=DvtText._TRUNCATION_GUESS_TOO_SHORT};
DvtText.prototype._doTruncation=function(){var a=this._state,b=this._originalText,c=this.getCachedDims(),d=this._maxNumChars,e=this._maxw;a==DvtText._TRUNCATION_GUESS_TOO_SHORT&&(c.w<e?d>=b.length?a=DvtText._TRUNCATION_GUESS_TOO_LONG:(d+=1,this.setTextString(b.substring(0,d)+DvtText.ELLIPSIS),this._maxNumChars=d,this._setCachedDims(void 0)):a=DvtText._TRUNCATION_GUESS_TOO_LONG);a==DvtText._TRUNCATION_GUESS_TOO_LONG&&(c.w>e?d<=this._minChars2?(this.setTextString(""),c.w=0,a=DvtText._TRUNCATION_DONE):
(d-=1,this.setTextString(b.substring(0,d)+DvtText.ELLIPSIS),0==d?(c.w=0,a=DvtText._TRUNCATION_DONE):(this._maxNumChars=d,this._setCachedDims(void 0))):a=DvtText._TRUNCATION_DONE);if(a==DvtText._TRUNCATION_DONE)return this._state=this._minChars2=this._originalText=this._maxNumChars=void 0,!0;this._state=a;return!1};
DvtText._bulkTruncation=function(a){for(var b,c=[],d,e=0;e<a.length;e++)b=a[e],b._bTruncated=!1,d=b.getCachedDims(),d.w>b._maxw&&(b._bTruncated=!0,b._initTruncation(),c.push(b));a=c;DvtText._bulkSetDimensions(a);d=!1;for(c=[];!d;){for(e=0;e<a.length;e++)b=a[e],b._doTruncation()||c.push(b);0<c.length?(a=c,DvtText._bulkSetDimensions(a),c=[]):d=!0}};DvtText.prototype.copyShape=function(){return new DvtText(this.getCtx(),this.getText(),this.getX(),this.getY())};DvtText.prototype.isEditing=function(){return this.impl_isEditing()};
DvtText.prototype.destroy=function(){DvtText.superclass.destroy.call(this);this.impl_destroy&&this.impl_destroy()};DvtText.prototype.impl_getTextString=function(){var a;if(this._bEditMode&&this._editElem)a=this._editElem.value;else{var b=this.impl_GetTextElem().firstChild;b&&(a=b.nodeValue)}return a};
DvtText.prototype.impl_setTextString=function(a){var b=this.impl_GetTextElem().firstChild;null!==b?b.nodeValue=a:(b=document.createTextNode(a),dvt.ToolkitUtils.appendChildElem(this.impl_GetTextElem(),b));this._editElem&&(this._editElem.value=a);this._alignTextForEdit()};
DvtText.prototype._alignTextForEdit=function(){if(this._bEditMode&&dvt.Agent.isRightToLeft(this.getCtx())&&null!=this._editPxWidth&&0<this._editPxWidth){var a=this.impl_GetTextElem(),b;a.parentNode?b=a.getBBox():(this.getElem().appendChild(a),b=a.getBBox(),this.getElem().removeChild(a));this._editPxWidth>b.width?(a="translate("+(this._editPxWidth-b.width)+",0)",dvt.ToolkitUtils.setAttrNullNS(this.impl_GetTextElem(),"transform",a)):(dvt.Agent.isPlatformIE()&&dvt.ToolkitUtils.setAttrNullNS(this.impl_GetTextElem(),
"transform",null),dvt.ToolkitUtils.removeAttrNullNS(this.impl_GetTextElem(),"transform"))}};DvtText.prototype.impl_getX=function(){return this._x};DvtText.prototype.impl_setX=function(a){a!==this._x&&(this._x=a,dvt.ToolkitUtils.setAttrNullNS(this.getElem(),"x",a,0))};DvtText.prototype.impl_getY=function(){return this._y};DvtText.prototype.impl_setY=function(a){a!==this._y&&(this._y=a,dvt.ToolkitUtils.setAttrNullNS(this.getElem(),"y",a,0))};
DvtText.prototype.impl_setFontSize=function(a){dvt.ToolkitUtils.setAttrNullNS(this.getElem(),"font-size",a);dvt.Agent.isPlatformIE()&&this.setMatrix(this.getMatrix())};DvtText.prototype.impl_alignLeft=function(){var a=DvtText.needsTextAnchorAdjustment(this.getCtx());dvt.ToolkitUtils.setAttrNullNS(this.getElem(),"text-anchor",a?"end":"start")};DvtText.prototype.impl_alignCenter=function(){dvt.ToolkitUtils.setAttrNullNS(this.getElem(),"text-anchor","middle")};
DvtText.prototype.impl_alignRight=function(){var a=DvtText.needsTextAnchorAdjustment(this.getCtx());dvt.ToolkitUtils.setAttrNullNS(this.getElem(),"text-anchor",a?"start":"end")};DvtText.prototype.impl_alignTop=function(){dvt.Agent.isPlatformIE()?this.impl_SetBaseline(1):this.impl_SetDominantBaselineAttr("text-before-edge")};DvtText.prototype.impl_alignMiddle=function(){dvt.Agent.isPlatformIE()?this.impl_SetBaseline(0.4):this.impl_SetDominantBaselineAttr("middle")};
DvtText.prototype.impl_alignBottom=function(){dvt.Agent.isPlatformIE()?this.impl_SetBaseline(0.2):this.impl_SetDominantBaselineAttr("text-after-edge")};DvtText.prototype.impl_alignBaseline=function(){dvt.Agent.isPlatformIE()?this.impl_SetBaseline(0):this.impl_SetDominantBaselineAttr(null)};DvtText.prototype.impl_SetBaseline=function(a){this._baseline=a;this.setMatrix(this.getMatrix())};
DvtText.prototype.impl_SetDominantBaselineAttr=function(a){a?dvt.ToolkitUtils.setAttrNullNS(this.getElem(),"dominant-baseline",a):dvt.ToolkitUtils.removeAttrNullNS(this.getElem(),"dominant-baseline")};DvtText.prototype.impl_setText=function(a){var b=this.impl_GetTextElem().firstChild;null!==b?b.nodeValue=a:(b=document.createTextNode(a),dvt.ToolkitUtils.appendChildElem(this.impl_GetTextElem(),b));this._bEditMode&&this._editElem&&(this._editElem.value=a)};
DvtText.prototype.impl_getText=function(){if(this._bEditMode&&this._editElem)return this._editElem.value;var a=this.impl_GetTextElem().firstChild;if(a)return a.nodeValue};
DvtText.prototype.impl_setCSSStyle=function(a){var b=this.getOuterElem();if(a){var c=a.getStyle("color");if((c=dvt.ColorUtils.fixColorForPlatform(c))&&c.color)dvt.ToolkitUtils.setAttrNullNS(b,"fill",c.color),null!=c.alpha&&dvt.ToolkitUtils.setAttrNullNS(b,"fill-opacity",c.alpha,1);(c=a.getStyle("font-family"))&&dvt.ToolkitUtils.setAttrNullNS(b,"font-family",c);if(c=a.getStyle("font-size"))dvt.ToolkitUtils.setAttrNullNS(b,"font-size",c),dvt.Agent.isPlatformIE()&&this.setMatrix(this.getMatrix());(c=
a.getStyle("font-style"))&&dvt.ToolkitUtils.setAttrNullNS(b,"font-style",c);(c=a.getStyle("font-weight"))&&dvt.ToolkitUtils.setAttrNullNS(b,"font-weight",c);(c=a.getStyle("text-decoration"))&&dvt.ToolkitUtils.setAttrNullNS(b,"text-decoration",c);(c=a.getStyle("cursor"))&&dvt.ToolkitUtils.setAttrNullNS(b,"cursor",c)}};DvtText.prototype.impl_getEditMode=function(){return this._bEditMode};
DvtText.prototype.impl_setEditMode=function(a,b,c){this._editStartCallback=b;this._editEndCallback=c;this._bEditMode!=a&&((this._bEditMode=a)?(a=this.getObj().getDimensions(),this.CreateChildGroupElem(),this._editRectElem=dvt.SvgShapeUtils.createElement("rect"),dvt.ToolkitUtils.setAttrNullNS(this._editRectElem,"x",0),dvt.ToolkitUtils.setAttrNullNS(this._editRectElem,"y",0),dvt.ToolkitUtils.setAttrNullNS(this._editRectElem,"width",this._editPxWidth),dvt.ToolkitUtils.setAttrNullNS(this._editRectElem,
"height",a.h),dvt.ToolkitUtils.setAttrNullNS(this._editRectElem,"fill","#ffffff"),dvt.ToolkitUtils.setAttrNullNS(this._editRectElem,"fill-opacity",0),dvt.ToolkitUtils.setAttrNullNS(this._editRectElem,"cursor","text"),dvt.ToolkitUtils.appendChildElem(this._childGroupElem,this._editRectElem),this._updateEditRectElem(),this._alignTextForEdit()):(this._childGroupElem.removeChild(this._editRectElem),this._editRectElem=null))};
DvtText.prototype._updateEditRectElem=function(){if(dvt.Agent.isPlatformIE()&&this._editRectElem){var a="translate(0,"+-this._getBaselineTranslation()+")";dvt.ToolkitUtils.setAttrNullNS(this._editRectElem,"transform",a)}};
DvtText.prototype.impl_SetEditing=function(a){if(!this._bEditMode||a==this._bEditing)a&&this._editElem&&this._updateEditElement();else{var b=this.getObj(),c=this.impl_GetTextElem(),d;if(!a&&this._editElem)b=this._editElem.value,this.impl_setTextString(b),this._editEndCallback&&(d=this._editEndCallback.call(null,b))&&this.impl_setTextString(d),this.getElem().insertBefore(c,this._editRectElem),this._bEventListener&&(d=this._editElem,this._htmlTextAreaListenerFunc&&(dvt.ToolkitUtils.removeDomEventListener(d,
dvt.KeyboardEvent.KEYDOWN,this._htmlTextAreaListenerFunc,!1),dvt.ToolkitUtils.removeDomEventListener(d,dvt.KeyboardEvent.KEYUP,this._htmlTextAreaListenerFunc,!1),dvt.ToolkitUtils.removeDomEventListener(d,"keypress",this._htmlTextAreaListenerFunc,!1),dvt.ToolkitUtils.removeDomEventListener(d,"textInput",this._htmlTextAreaListenerFunc,!1),dvt.ToolkitUtils.removeDomEventListener(d,"textinput",this._htmlTextAreaListenerFunc,!1),this._htmlTextAreaListenerFunc=null),this._editBlurFunc&&(dvt.ToolkitUtils.removeDomEventListener(d,
"blur",this._editBlurFunc,!1),this._editBlurFunc=null),this._bEventListener=!1),this._editElem&&this._editElem.parentNode&&this._editElem.parentNode.removeChild(this._editElem);else{var e=this.impl_getText();this._editElem?this._updateEditElement():d=this.impl__createHtmlTextArea(b,c,e);this._editStartCallback&&(d=this._editStartCallback.call(null,e))&&this.impl_setTextString(d);this.getElem().removeChild(c);this._editElem&&dvt.ToolkitUtils.appendChildElem(b.getCtx().getStage().getSVGRoot().parentNode,
this._editElem);d=this._editElem;var f=this;this._htmlTextAreaListenerFunc=function(a){f.impl__handleHtmlTextAreaKeyboardEvent(a)};dvt.ToolkitUtils.addDomEventListener(d,dvt.KeyboardEvent.KEYDOWN,this._htmlTextAreaListenerFunc,!1);dvt.ToolkitUtils.addDomEventListener(d,dvt.KeyboardEvent.KEYUP,this._htmlTextAreaListenerFunc,!1);dvt.ToolkitUtils.addDomEventListener(d,"keypress",this._htmlTextAreaListenerFunc,!1);dvt.ToolkitUtils.addDomEventListener(d,"textInput",this._htmlTextAreaListenerFunc,!1);dvt.ToolkitUtils.addDomEventListener(d,
"textinput",this._htmlTextAreaListenerFunc,!1);this._editBlurFunc=function(a){f.impl__blurEditText()};dvt.ToolkitUtils.addDomEventListener(d,"blur",this._editBlurFunc,!1);this._bEventListener=!0}this._bEditing=a}};DvtText.prototype.impl_getEditWidth=function(a){return this._editPxWidth};DvtText.prototype.impl_setEditWidth=function(a){this._editPxWidth=a;this._alignTextForEdit()};DvtText.prototype.impl_setEditTooltip=function(a){this._editTooltip=a};
DvtText.prototype.impl__handleHtmlTextAreaKeyboardEvent=function(a){DvtText._editFilter(a);this.getObj().dispatchDisplayableEvent(a.type,dvt.DomEventFactory.newEvent(a,this.getCtx()))};DvtText._editFilter=function(a){a=a||window.event;if(!("textinput"==a.type||"textInput"==a.type)&&"keypress"==a.type){var b=a.charCode||a.keyCode;32>b&&13==b&&a.preventDefault&&a.preventDefault()}};DvtText.prototype.impl_selectEditText=function(){this._editElem&&this._editElem.select()};
DvtText.prototype.impl_focusEditText=function(){this.impl_SetEditing(!0);if(this._editElem){var a=this;window.setTimeout(function(){a._editElem.focus()},0)}};DvtText.prototype.impl__blurEditText=function(){this.impl_SetEditing(!1)};DvtText.prototype.impl__removeDefaultFontAttributes=function(a){dvt.ToolkitUtils.removeAttrNullNS(a,"font-family");dvt.ToolkitUtils.removeAttrNullNS(a,"fill")};
DvtText.prototype.impl__createTSpan=function(a,b){var c=dvt.SvgShapeUtils.createElement("tspan",void 0);b?dvt.ToolkitUtils.appendChildElem(b,c):dvt.ToolkitUtils.appendChildElem(this.getElem(),c);var d=dvt.ToolkitUtils.getAttrNullNS(this.getElem(),"dominant-baseline");d&&dvt.ToolkitUtils.setAttrNullNS(c,"dominant-baseline",d);(d=dvt.ToolkitUtils.getAttrNullNS(this.getElem(),"text-anchor"))&&dvt.ToolkitUtils.setAttrNullNS(c,"text-anchor",d);a&&this.impl__addTextNode(c,a);return c};
DvtText.prototype.impl__createTextNode=function(a){this.impl__addTextNode(this.getElem(),a)};DvtText.prototype.impl__addTextNode=function(a,b){var c=document.createTextNode(b);a?dvt.ToolkitUtils.appendChildElem(a,c):dvt.ToolkitUtils.appendChildElem(this.getElem(),c)};
DvtText.prototype._getBaselineTranslation=function(){var a=0;null!=this._baseline&&(a=dvt.ToolkitUtils.getAttrNullNS(this.getElem(),"font-size"),a||(a=dvt.ToolkitUtils.getAttrNullNS(this.getOuterElem(),"font-size"))||(a="11"),a=this._baseline*parseFloat(a));return a};DvtText.prototype._getBaselineAdjustedMatrix=function(a){if(null!=this._baseline){a||(a=new dvt.Matrix);var b=new dvt.Matrix(null,null,null,null,null,this._getBaselineTranslation());b.concat(a);a=b}return a};
DvtText.prototype.setMatrix=function(a){dvt.Agent.isPlatformIE()&&(this._matrixForIE=a,a=this._getBaselineAdjustedMatrix(a),this._updateEditRectElem());DvtText.superclass.setMatrix.call(this,a)};DvtText.prototype.getMatrix=function(){var a=null;dvt.Agent.isPlatformIE()&&(a=this._matrixForIE);a||(a=DvtText.superclass.getMatrix.call(this));return a};DvtText.prototype.GetSvgDimensions=function(){var a=DvtText.superclass.GetSvgDimensions.call(this);a&&(a.y+=this._getBaselineTranslation());return a};
DvtText.prototype.impl__createHtmlTextArea=function(a,b,c){var d=document.createElement("textArea");this._editElem=d;this._editElem._obj=this;var e=a.getDimensions(),f=a.getCSSStyle(),g,h;h=0;f?(f=f.clone(),g=f.getStyle("font-size"),g||(g=dvt.ToolkitUtils.getAttrNullNS(b,"font-size")||"11",f.setStyle("font-size",g)),h=f.getStyle("font-family"),h||(h=dvt.ToolkitUtils.getAttrNullNS(b,"font-family"),f.setStyle("font-family",h))):(g=dvt.ToolkitUtils.getAttrNullNS(b,"font-size")||"11",h=dvt.ToolkitUtils.getAttrNullNS(b,
"font-family"),f=new dvt.CSSStyle("font-family:"+h+"; font-size: "+g+"px;"));if(this._editPxWidth){h=new DvtText(a.getCtx(),"W");h.impl_setCSSStyle(f);h.alignMiddle();a.getParent().addChild(h);var k=h.getDimensions();a.getParent().removeChild(h);h=this._editPxWidth/k.w;e.w=this._editPxWidth}else 0==e.w&&(e.w=10),this._editPxWidth=2*e.w,h=2;h=Math.floor(1.5*h);d.setAttribute("rows","1");d.setAttribute("cols",h);d.value=c?c:"";this._editTooltip&&d.setAttribute("title",this._editTooltip);f.setStyle("outline-offset",
"0px");f.setStyle("overflow","hidden");f.setStyle("border","none");f.setStyle("border-width","0px");f.setStyle("margin","0px");f.setStyle("resize","none");f.setStyle("outline","none");f.setStyle("dominant-baseline",dvt.ToolkitUtils.getAttrNullNS(b,"dominant-baseline"));f.setStyle("font-size",g+"px !important");a=new dvt.Point(this.getX(),this.getY());a=this.getObj().localToStage(a);f.setStyle("position","absolute");f.setStyle("top",a.y+"px");f.setStyle("left",a.x+"px");f.setStyle("vertical-align",
"baseline");f.setStyle("outline-offset","0px");dvt.Agent.isRightToLeft(this.getObj().getCtx())?(f.setStyle("text-align","right"),f.setStyle("padding","0px 2px 0px 0px")):(f.setStyle("text-align","left"),f.setStyle("padding","0px 0px 0px 2px"));f.setStyle("width",e.w+"px");a=this._editElemClipRect||{};f.setStyle("clip","rect("+(a.top?a.top:e.y)+"px,"+(a.right?a.right:e.x+e.w+2)+"px,"+(a.bottom?a.bottom:e.y+e.h)+"px,"+(a.left?a.left:e.x)+"px)");d.setAttribute("style",f.toString());this._editElemClipRect&&
delete this._editElemClipRect;d.setAttribute("wrap","off");d[dvt.HtmlKeyboardListenerUtils.ATTR_IGNORE_EVENTS_FROM_TARGET]=!0;return d};DvtText.prototype.impl_AddElemListener=function(a,b,c){this.impl_getEditMode()&&this._editElem&&(dvt.ToolkitUtils.addDomEventListener(this._editElem,a,b,c),a==dvt.TouchEvent.TOUCHEND&&dvt.ToolkitUtils.addDomEventListener(this._editElem,dvt.TouchEvent.TOUCHCANCEL,b,c));DvtText.superclass.AddElemListener.call(this,a,b,c)};DvtText.prototype.impl_GetTextElem=function(){return this._elem};
DvtText.prototype.impl_destroy=function(){this._editElem&&(this.impl_SetEditing(!1),this._editElem=null)};DvtText.prototype.impl_isEditing=function(){return this._bEditing};DvtText.needsTextAnchorAdjustment=function(a){return dvt.Agent.isRightToLeft()&&(dvt.Agent.isPlatformWebkit()||dvt.Agent.isPlatformGecko()&&25<=dvt.Agent.getVersion())};
DvtText.prototype.updateClipRect=function(a,b,c,d){this._editElemClipRect={};this._editElemClipRect.top=a;this._editElemClipRect.right=b;this._editElemClipRect.bottom=c;this._editElemClipRect.left=d};
DvtText.prototype._updateEditElement=function(){if(this._editElem){var a=new dvt.Point(this.getX(),this.getY()),a=this.getObj().localToStage(a);this._editElem.style.top=a.y+"px";this._editElem.style.left=a.x+"px";a=/\(([^)]+)\)/.exec(this._editElem.style.clip);if(a[1]&&this._editElemClipRect){var a=a[1].split(" "),b=this._editElemClipRect;this._editElem.style.clip="rect("+(b.top?b.top+"px":a[0])+" "+(b.right?b.right+"px":a[1])+" "+(b.bottom?b.bottom+"px":a[2])+" "+(b.left?b.left+"px":a[3])+")";this._editElemClipRect=
void 0}}};
var DvtTextFormatted=function(a,b,c,d){this.Init(a,b,c,d)};dvt.Obj.createSubclass(DvtTextFormatted,DvtText,"DvtTextFormatted");DvtTextFormatted.BOLD="b";DvtTextFormatted.BREAK="br";DvtTextFormatted.ITALIC="i";DvtTextFormatted.LIST_ITEM="li";DvtTextFormatted.ORDERED_LIST="ol";DvtTextFormatted.PARAGRAPH="p";DvtTextFormatted.UNORDERED_LIST="ul";DvtTextFormatted.prototype.Init=function(a,b,c,d){DvtTextFormatted.superclass.Init.call(this,a,"",b,c,d);this._bHtmlText=!0};
DvtTextFormatted.prototype.getText=function(){return this.impl_getText()};DvtTextFormatted.prototype.setText=function(a){this.impl_setText(a)};DvtTextFormatted.prototype.GetDimsForCaching=function(){var a=this.getDimensions(),b=this.getX();a.x>b&&(a.w+=a.x-b,a.x=b);return a};DvtTextFormatted.prototype.copyShape=function(){var a=new DvtTextFormatted(this.getCtx(),this.getX(),this.getY());a.setText(this.getText());return a};
DvtTextFormatted.prototype.impl_setText=function(a){var b=this.getObj();if(a=(new dvt.XmlParser(b.getCtx())).parse("\x3croot\x3e"+a+"\x3c/root\x3e"))this._bEnableVertIndent=!1,this.impl__parseChildren(a,null,0,!1,!1)};
DvtTextFormatted.prototype.impl__parseChildren=function(a,b,c,d,e){a=a.getAllChildNodes();for(var f=a.length,g=!1,h=0;h<f;h++){var k=a[h];if(k){var l=k.getName();g&&(l!==DvtTextFormatted.PARAGRAPH&&l!==DvtTextFormatted.ORDERED_LIST&&l!==DvtTextFormatted.UNORDERED_LIST)&&(b=this.impl__handleMarkup(DvtTextFormatted.PARAGRAPH,b));g=!1;if("#text"===l)k=k.getNodeValue(),e&&(k="- "+k),this.impl__addTextNode(b,k),this._bEnableVertIndent=!0;else{var m=this.impl__handleMarkup(l,b,c,d),n=c,p=!1;if(l===DvtTextFormatted.ORDERED_LIST||
l===DvtTextFormatted.UNORDERED_LIST)0==n&&(p=!0),n++;this.impl__parseChildren(k,m,n,p,l===DvtTextFormatted.LIST_ITEM);l===DvtTextFormatted.BREAK&&(b=m);if(l===DvtTextFormatted.PARAGRAPH||(l===DvtTextFormatted.ORDERED_LIST||l===DvtTextFormatted.UNORDERED_LIST)&&1>c)g=!0;l===DvtTextFormatted.LIST_ITEM&&(d=!1)}}}};
DvtTextFormatted.prototype.impl__handleMarkup=function(a,b,c,d){b=this.impl__createTSpan(null,b);if(a===DvtTextFormatted.BOLD)dvt.ToolkitUtils.setAttrNullNS(b,"font-weight","bold");else if(a===DvtTextFormatted.ITALIC)dvt.ToolkitUtils.setAttrNullNS(b,"font-style","italic");else if(a===DvtTextFormatted.BREAK)dvt.ToolkitUtils.setAttrNullNS(b,"x","0"),dvt.ToolkitUtils.setAttrNullNS(b,"dy","1em");else if(a===DvtTextFormatted.PARAGRAPH)this._bEnableVertIndent&&(dvt.ToolkitUtils.setAttrNullNS(b,"x","0"),
dvt.ToolkitUtils.setAttrNullNS(b,"dy","2em")),this._bEnableVertIndent=!0;else if(!(a===DvtTextFormatted.ORDERED_LIST||a===DvtTextFormatted.UNORDERED_LIST)&&a===DvtTextFormatted.LIST_ITEM)dvt.ToolkitUtils.setAttrNullNS(b,"x",c+"em"),this._bEnableVertIndent&&(d?dvt.ToolkitUtils.setAttrNullNS(b,"dy","2em"):dvt.ToolkitUtils.setAttrNullNS(b,"dy","1em")),this._bEnableVertIndent=!0;return b};
var DvtAfStyleUtils=function(){};dvt.Obj.createSubclass(DvtAfStyleUtils,dvt.Obj,"DvtAfStyleUtils");DvtAfStyleUtils.AFStretchWidth_STYLE_CLASS="AFStretchWidth";DvtAfStyleUtils.AFAuxiliaryStretchWidth_STYLE_CLASS="AFAuxiliaryStretchWidth";DvtAfStyleUtils.AFHVNodeTitleLabelStyle_STYLE_CLASS="AFHVNodeTitleLabelStyle";DvtAfStyleUtils.AFHVNodeSubtitleLabelStyle_STYLE_CLASS="AFHVNodeSubtitleLabelStyle";DvtAfStyleUtils.AFHVNodeLabelStyle_STYLE_CLASS="AFHVNodeLabelStyle";
DvtAfStyleUtils.AFHVPanelCardLabelStyle_STYLE_CLASS="AFHVPanelCardLabelStyle";DvtAfStyleUtils.AFHVNodeTitleLabelStyle75_STYLE_CLASS="AFHVNodeTitleLabelStyle75";DvtAfStyleUtils.AFHVNodeSubtitleLabelStyle75_STYLE_CLASS="AFHVNodeSubtitleLabelStyle75";DvtAfStyleUtils.AFHVNodeLabelStyle75_STYLE_CLASS="AFHVNodeLabelStyle75";DvtAfStyleUtils.AFHVPanelCardLabelStyle75_STYLE_CLASS="AFHVPanelCardLabelStyle75";DvtAfStyleUtils.AFHVNodeTitleLabelStyle50_STYLE_CLASS="AFHVNodeTitleLabelStyle50";
DvtAfStyleUtils.AFHVNodeSubtitleLabelStyle50_STYLE_CLASS="AFHVNodeSubtitleLabelStyle50";DvtAfStyleUtils.AFHVNodeLabelStyle50_STYLE_CLASS="AFHVNodeLabelStyle50";DvtAfStyleUtils.AFHVNodeLabelStyle25_STYLE_CLASS="AFHVNodeLabelStyle25";
DvtAfStyleUtils.getTagSkinKeyMap=function(){void 0===DvtAfStyleUtils._tagSkinKeyMap&&(DvtAfStyleUtils._tagSkinKeyMap={cb:"af_commandButton af_commandButton_icon-style af_commandButton_text-by-icon-style af_commandButton_active af_commandButton_hover af_commandButton.p_AFDisabled".split(" "),cil:"af_commandImageLink af_commandImageLink_image af_commandImageLink_text af_commandImageLink_active af_commandImageLink_hover af_commandImageLink.p_AFDisabled".split(" "),cl:["af_commandLink","af_commandLink_active",
"af_commandLink_hover","af_commandLink.p_AFDisabled"],cmi:"af_commandMenuItem af_commandMenuItem_menu-item af_commandMenuItem_menu-item-icon-style af_commandMenuItem_menu-item-text af_commandMenuItem.p_AFHighlighted_menu-item-text af_commandMenuItem.p_AFDisabled".split(" "),gb:"af_goButton af_goButton_icon-style af_goButton_text-by-icon-style af_goButton_active af_goButton_hover af_goButton.p_AFDisabled".split(" "),gl:["af_goLink","af_goLink_active","af_goLink_hover","af_goLink.p_AFDisabled"],i:["af_image"],
m:"af_menu af_menu_bar-item af_menu_bar-item-icon-style af_menu_bar-item-text af_menu_bar-item-open-icon-style af_menu_bar-item.p_AFDepressed af_menu_bar-item.p_AFHighlighted af_menu.p_AFDisabled".split(" "),pfl:["af_panelFormLayout","AFPanelFormLayoutContentCell","af_panelFormLayout_label-cell"],pgl:["af_panelGroupLayout"],plm:["af_panelLabelAndMessage","af_panelLabelAndMessage_label","af_panelLabelAndMessage_content-cell"],se:["af_separator"],lk:"af_link af_link_image af_link_text af_link_image-hover af_link_image-depressed af_link_active af_link_hover af_link.p_AFDisabled".split(" "),
bt:"af_button af_button_image af_button_text af_button_image-hover af_button_image-depressed af_button_link af_button_leading-text af_button_depressed af_button_hover af_button.p_AFDisabled".split(" ")});return DvtAfStyleUtils._tagSkinKeyMap};
DvtAfStyleUtils.setTagSkinKeyMap=function(a,b){if(b&&0<b.length){for(var c={},d=0;d<b.length;d++){var e=b[d];"defaultFont"==e.name?(e=new dvt.CSSStyle(e.value),DvtAfStyleUtils._setDefaultFontFamily(e.getStyle(dvt.CSSStyle.FONT_FAMILY)),DvtAfStyleUtils._setDefaultFontSize(e.getStyle(dvt.CSSStyle.FONT_SIZE)),DvtAfStyleUtils._setDefaultFontColor(e.getStyle(dvt.CSSStyle.COLOR))):e.name&&void 0!=e.value&&(c[e.name]=new dvt.CSSStyle(e.value))}DvtAfStyleUtils._styleMap=c}if(a&&0<a.length){c={};for(d=0;d<
a.length;d++){var f=a[d];if(f.name&&void 0!==f.value&&(e=f.value.split(","),c[f.name]=e,!DvtAfStyleUtils._styleMap))for(f=0;f<e.length;f++);}DvtAfStyleUtils._tagSkinKeyMap=c}};
DvtAfStyleUtils.setTagSkinKeyMapJSON=function(a,b){if(b){var c={},d;for(d in b)if(b.hasOwnProperty(d)){var e=b[d];"defaultFont"==d?(e=new dvt.CSSStyle(e),DvtAfStyleUtils._setDefaultFontFamily(e.getStyle(dvt.CSSStyle.FONT_FAMILY)),DvtAfStyleUtils._setDefaultFontSize(e.getStyle(dvt.CSSStyle.FONT_SIZE)),DvtAfStyleUtils._setDefaultFontColor(e.getStyle(dvt.CSSStyle.COLOR))):d&&void 0!=e&&(c[d]=new dvt.CSSStyle(e))}DvtAfStyleUtils._styleMap=c}if(a){c={};for(d in a)if(a.hasOwnProperty(d)&&(e=a[d],d&&void 0!==
e&&(e=e.split(","),c[d]=e,!DvtAfStyleUtils._styleMap)))for(var f=0;f<e.length;f++);DvtAfStyleUtils._tagSkinKeyMap=c}};DvtAfStyleUtils.getDefaultButtonDisabledStyle=function(){return new dvt.CSSStyle("color:#6E7587;border-style:solid;border-width:1px;border-color:#9297A6;border-top:1px solid #D5D5D5;border-right:1px solid #D5D5D5;border-bottom:1px solid #D5D5D5;border-left:1px solid #D5D5D5;background-image:-moz-linear-gradient(top, #F4F4F4 0%, #E5E5E5 100%)")};
DvtAfStyleUtils.getDefaultCommandButtonDisabledStyle=function(){return new dvt.CSSStyle("color:#6E7587;border-style:solid;border-width:1px;border-color:#9297A6;border-top:1px solid #D5D5D5;border-right:1px solid #D5D5D5;border-bottom:1px solid #D5D5D5;border-left:1px solid #D5D5D5;background-image:-moz-linear-gradient(top, #F4F4F4 0%, #E5E5E5 100%)")};DvtAfStyleUtils.getDefaultGoButtonDisabledStyle=function(){return new dvt.CSSStyle("color:#6E7587;border-style:solid;border-width:1px;border-color:#9297A6;border-top:1px solid #D5D5D5;border-right:1px solid #D5D5D5;border-bottom:1px solid #D5D5D5;border-left:1px solid #D5D5D5;background-image:-moz-linear-gradient(top, #F4F4F4 0%, #E5E5E5 100%)")};
DvtAfStyleUtils.getDefaultLinkDisabledStyle=function(){return new dvt.CSSStyle("color:#8E97AF")};DvtAfStyleUtils.getDefaultCommandLinkDisabledStyle=function(){return new dvt.CSSStyle("text-decoration:none;cursor:default;color:#8E97AF")};DvtAfStyleUtils.getDefaultCommandImageLinkDisabledStyle=function(){return new dvt.CSSStyle("color:#8E97AF")};DvtAfStyleUtils.getDefaultGoLinkDisabledStyle=function(){return new dvt.CSSStyle("text-decoration:none;cursor:default;color:#8E97AF")};
DvtAfStyleUtils.getStyleMap=function(){if(!DvtAfStyleUtils._styleMap){var a={};a.af_panelGroupLayout=new dvt.CSSStyle("");a.af_image=new dvt.CSSStyle("border:0px");a.af_separator=new dvt.CSSStyle("border-bottom:1px solid #D6DFE6;margin-top:3px;margin-bottom:3px;border-top:0px;border-left:0px;border-right:0px");a.af_panelFormLayout=new dvt.CSSStyle("");a.AFPanelFormLayoutContentCell=new dvt.CSSStyle("padding-left:8px;padding-right:0px;text-align:left;font-family:Tahoma, Verdana, Helvetica, sans-serif;vertical-align:top;padding-top:2px;padding-bottom:0px;padding:1px 0 0 2px");
a["af_panelFormLayout_label-cell"]=new dvt.CSSStyle("padding:0px 6px 0px 0px;padding-left:8px;padding-right:0px;text-align:right;padding-top:3px;padding-bottom:1px;white-space:nowrap");a.af_panelLabelAndMessage=new dvt.CSSStyle("");a.af_panelLabelAndMessage_label=new dvt.CSSStyle("font-family:Tahoma, Verdana, Helvetica, sans-serif;font-size:11px;text-align:right;color:#4F4F4F;padding:0px 6px 0px 0px;font-weight:normal");a.af_commandButton=new dvt.CSSStyle("font-family:Tahoma, Verdana, Helvetica, sans-serif;font-weight:normal;font-size:11px;color:#333333;border-top:1px solid #95B6D4;border-right:1px solid #95B6D4;border-bottom:1px solid #92B3D1;border-left:1px solid #95B6D4;border-radius:3px;background-image:-moz-linear-gradient(top, #CCE2F6 0%, #B1D2F2 100%);text-decoration:none;white-space:nowrap;margin:0px;padding-top:1px;padding-bottom:3px;padding:1px 1px 0px 2px;padding-left:6px;padding-right:6px");
a["af_commandButton_icon-style"]=new dvt.CSSStyle("vertical-align:middle;border-width:0px;padding-left:0px;padding-right:0px");a["af_commandButton_text-by-icon-style"]=new dvt.CSSStyle("padding-left:3px");a.af_commandButton_active=new dvt.CSSStyle("font-family:Tahoma, Verdana, Helvetica, sans-serif;font-weight:normal;font-size:11px;color:#333333;border-top:1px solid #648BAF;border-right:1px solid #789FC4;border-bottom:1px solid #789FC4;border-left:1px solid #789FC4;background-image:-moz-linear-gradient(top, #6AA1D5 0%, #ACCAE6 100%)");
a.af_commandButton_hover=new dvt.CSSStyle("font-family:Tahoma, Verdana, Helvetica, sans-serif;font-weight:normal;font-size:11px;color:#333333;border-top:1px solid #E2CB9B;border-right:1px solid #E2CB9B;border-bottom:1px solid #D4BB87;border-left:1px solid #E2CB9B;background-image:-moz-linear-gradient(top, #FFE4A8 0%, #FFD475 100%)");a["af_commandButton.p_AFDisabled"]=DvtAfStyleUtils.getDefaultCommandButtonDisabledStyle();a.af_commandLink=new dvt.CSSStyle("font-family:Tahoma, Verdana, Helvetica, sans-serif;font-weight:normal;font-size:11px;color:#003286;text-decoration:none");
a.af_commandLink_hover=new dvt.CSSStyle("text-decoration:underline");a.af_commandLink_active=new dvt.CSSStyle("color:#72007C");a["af_commandLink.p_AFDisabled"]=DvtAfStyleUtils.getDefaultCommandLinkDisabledStyle();a.af_commandImageLink=new dvt.CSSStyle("font-family:Tahoma, Verdana, Helvetica, sans-serif;font-weight:normal;font-size:11px;color:#003286;text-decoration:none;white-space:nowrap");a.af_commandImageLink_image=new dvt.CSSStyle("border:none;vertical-align:middle;display:inline");a.af_commandImageLink_text=
new dvt.CSSStyle("margin-left:3px");a.af_commandImageLink_hover=new dvt.CSSStyle("text-decoration:underline");a.af_commandImageLink_active=new dvt.CSSStyle("color:#72007C");a["af_commandImageLink.p_AFDisabled"]=DvtAfStyleUtils.getDefaultCommandImageLinkDisabledStyle();a.af_goButton=new dvt.CSSStyle("font-family:Tahoma, Verdana, Helvetica, sans-serif;font-weight:normal;font-size:11px;color:#333333;border-top:1px solid #95B6D4;border-right:1px solid #95B6D4;border-bottom:1px solid #92B3D1;border-left:1px solid #95B6D4;border-radius:3px;background-image:-moz-linear-gradient(top, #CCE2F6 0%, #B1D2F2 100%);text-decoration:none;white-space:nowrap;margin:0px;padding-top:1px;padding-bottom:3px;padding:1px 1px 0px 2px;padding-left:6px;padding-right:6px");
a["af_goButton_icon-style"]=new dvt.CSSStyle("vertical-align:middle;border-width:0px;padding-left:0px;padding-right:0px");a["af_goButton_text-by-icon-style"]=new dvt.CSSStyle("padding-left:3px");a.af_goButton_active=new dvt.CSSStyle("font-family:Tahoma, Verdana, Helvetica, sans-serif;font-weight:normal;font-size:11px;color:#333333;border-top:1px solid #648BAF;border-right:1px solid #789FC4;border-bottom:1px solid #789FC4;border-left:1px solid #789FC4;background-image:-moz-linear-gradient(top, #6AA1D5 0%, #ACCAE6 100%)");
a.af_goButton_hover=new dvt.CSSStyle("font-family:Tahoma, Verdana, Helvetica, sans-serif;font-weight:normal;font-size:11px;color:#333333;border-top:1px solid #E2CB9B;border-right:1px solid #E2CB9B;border-bottom:1px solid #D4BB87;border-left:1px solid #E2CB9B;background-image:-moz-linear-gradient(top, #FFE4A8 0%, #FFD475 100%)");a["af_goButton.p_AFDisabled"]=DvtAfStyleUtils.getDefaultGoButtonDisabledStyle();a.af_goLink=new dvt.CSSStyle("font-family:Tahoma, Verdana, Helvetica, sans-serif;font-weight:normal;font-size:11px;color:#003286;text-decoration:none");
a.af_goLink_hover=new dvt.CSSStyle("text-decoration:underline");a.af_goLink_active=new dvt.CSSStyle("color:#72007C");a["af_goLink.p_AFDisabled"]=DvtAfStyleUtils.getDefaultGoLinkDisabledStyle();a.af_link=new dvt.CSSStyle("font-family:Tahoma, Verdana, Helvetica, sans-serif;font-weight:normal;font-size:11px;color:#003286;text-decoration:none;white-space:nowrap");a.af_link_image=new dvt.CSSStyle("border:none;vertical-align:middle;display:inline");a.af_link_text=new dvt.CSSStyle("margin-left:3px");a["af_link_image-hover"]=
new dvt.CSSStyle("border:none;vertical-align:middle;display:none");a["af_link_image-depressed"]=new dvt.CSSStyle("border:none;vertical-align:middle;display:none");a.af_link_active=new dvt.CSSStyle("color:#72007C");a.af_link_hover=new dvt.CSSStyle("text-decoration:underline");a["af_link.p_AFDisabled"]=DvtAfStyleUtils.getDefaultLinkDisabledStyle();a.af_button=new dvt.CSSStyle("display:inline-block;padding:0px;cursor:default;white-space:nowrap;min-height:19px;border-top:1px solid #95B6D4;border-right:1px solid #95B6D4;border-bottom:1px solid #92B3D1;border-left:1px solid #95B6D4;border-radius:3px;background-image:-moz-linear-gradient(top, #CCE2F6 0%, #B1D2F2 100%);font-family:Tahoma, Verdana, Helvetica, sans-serif;font-weight:normal;font-size:11px;color:#333333");
a.af_button_image=new dvt.CSSStyle("vertical-align:middle;border:0px transparent;display:inline");a.af_button_text=new dvt.CSSStyle("white-space:nowrap;text-decoration:none;padding-left:3px;padding-right:0px;min-height:15px;display:inline-block;vertical-align:middle;line-height:1em;color:inherit");a["af_button_image-hover"]=new dvt.CSSStyle("vertical-align:middle;border:0px transparent;display:none");a["af_button_image-depressed"]=new dvt.CSSStyle("vertical-align:middle;border:0px transparent;display:none");
a.af_button_link=new dvt.CSSStyle("text-decoration:none;cursor:default;display:block;white-space:nowrap;padding:2px 9px 1px 9px;color:inherit");a["af_button_leading-text"]=new dvt.CSSStyle("white-space:nowrap;text-decoration:none;padding-left:0px;padding-right:3px");a.af_button_depressed=new dvt.CSSStyle("font-family:Tahoma, Verdana, Helvetica, sans-serif;font-weight:normal;font-size:11px;color:#333333;border-top:1px solid #648BAF;border-right:1px solid #789FC4;border-bottom:1px solid #789FC4;border-left:1px solid #789FC4;background-image:-moz-linear-gradient(top, #6AA1D5 0%, #ACCAE6 100%)");
a.af_button_hover=new dvt.CSSStyle("font-family:Tahoma, Verdana, Helvetica, sans-serif;font-weight:normal;font-size:11px;color:#333333;border-top:1px solid #E2CB9B;border-right:1px solid #E2CB9B;border-bottom:1px solid #D4BB87;border-left:1px solid #E2CB9B;background-image:-moz-linear-gradient(top, #FFE4A8 0%, #FFD475 100%)");a["af_button.p_AFDisabled"]=DvtAfStyleUtils.getDefaultButtonDisabledStyle();a.af_menu=new dvt.CSSStyle("");a["af_menu_bar-item"]=new dvt.CSSStyle("font-family:Tahoma, Verdana, Helvetica, sans-serif;font-weight:normal;font-size:11px;cursor:default;white-space:nowrap;height:17px;padding:3px 1px 1px 1px;border-radius:3px");
a["af_menu_bar-item-icon-style"]=new dvt.CSSStyle("padding-left:3px;padding-right:0px");a["af_menu_bar-item-text"]=new dvt.CSSStyle("min-height:16px;display:block;padding:0px 0px 0px 5px;white-space:nowrap;cursor:default;text-decoration:none;color:#000000;padding-left:5px;padding-right:0px");a["af_menu_bar-item-open-icon-style"]=new dvt.CSSStyle("background-repeat:no-repeat;height:7px;background-image:url(/afr/skyros-v1/menu_l23_button_dropdown_ena.png);background-position:center bottom;width:9px;padding-left:3px;padding-right:3px");
a.af_commandMenuItem=new dvt.CSSStyle("");a["af_commandMenuItem_menu-item"]=new dvt.CSSStyle("font-family:Tahoma, Verdana, Helvetica, sans-serif;font-weight:normal;font-size:11px;color:#333333;height:21px;background-color:transparent");a["af_commandMenuItem_menu-item-icon-style"]=new dvt.CSSStyle("background-image:none;padding:0px;cursor:default;text-decoration:none;background-color:transparent;text-align:center;width:21px;border-top:none;border-bottom:none");a["af_commandMenuItem_menu-item-text"]=
new dvt.CSSStyle("background-color:#FFFFFF;background-image:none;cursor:default;text-decoration:none;white-space:nowrap;color:#000000;padding:0px 10px 0px 0px;border-top:none;border-bottom:none");a["af_commandMenuItem.p_AFHighlighted_menu-item-text"]=new dvt.CSSStyle("border-top:none;border-bottom:none;background-color:#C1E6FF");DvtAfStyleUtils._styleMap=a}return DvtAfStyleUtils._styleMap};
DvtAfStyleUtils._getTextAlignAttr=function(a){return DvtAfStyleUtils.isLocaleR2L()?a?"text-align:left":"text-align:right":a?"text-align:right":"text-align:left"};DvtAfStyleUtils.getBackgroundPositionAttr=function(){return DvtAfStyleUtils.isLocaleR2L()?"background-position:right bottom":"background-position:left bottom"};
DvtAfStyleUtils.getDefaultPanelCardStyles=function(){var a=new dvt.CSSStyle;a.setStyle(dvt.CSSStyle.PADDING,"4px");a.setStyle(dvt.CSSStyle.FILL_TYPE,"gradient");a.setStyle(dvt.CSSStyle.BORDER_TYPE,"gradient");a.setStyle(dvt.CSSStyle.BACKGROUND_COLOR,"#E0EAEB");a.setStyle(dvt.CSSStyle.BORDER_WIDTH,"1px");a.setStyle(dvt.CSSStyle.BORDER_COLOR,"#98ABBC");var b=[];b.push(a);return b};
DvtAfStyleUtils.getDefaultCSSStyle=function(a){var b=[];if(a){var c=DvtAfStyleUtils.getTagSkinKeyMap()[a],d=DvtAfStyleUtils.getStyleMap();if(c&&0<c.length&&d)for(var e=0;e<c.length;e++){var f=c[e];f&&d[f]?b.push(d[f]):b.push(new dvt.CSSStyle)}if("pc"==a)return DvtAfStyleUtils._panelCardMap||(DvtAfStyleUtils._panelCardMap=DvtAfStyleUtils.getDefaultPanelCardStyles()),DvtAfStyleUtils._panelCardMap}return b};
DvtAfStyleUtils.getStyleClass=function(a){var b=DvtAfStyleUtils.getStyleMap();return b&&a&&b[a]?b[a]:""};DvtAfStyleUtils.getDefaultTextStyle=function(){var a=new dvt.CSSStyle;a.setStyle(dvt.CSSStyle.FONT_FAMILY,DvtAfStyleUtils.getDefaultFontFamily());a.setStyle(dvt.CSSStyle.FONT_SIZE,DvtAfStyleUtils.getDefaultFontSize());a.setStyle(dvt.CSSStyle.COLOR,"black");return a};
DvtAfStyleUtils.getAFStretchWidthStyle=function(a){return DvtAfStyleUtils.AFStretchWidth_STYLE_CLASS==a||DvtAfStyleUtils.AFAuxiliaryStretchWidth_STYLE_CLASS==a?(DvtAfStyleUtils._afStretchWidth||(DvtAfStyleUtils._afStretchWidth=new dvt.CSSStyle,DvtAfStyleUtils._afStretchWidth.setStyle(dvt.CSSStyle.WIDTH,"100%")),DvtAfStyleUtils._afStretchWidth):null};
DvtAfStyleUtils.getPLAMLabelStyle=function(a){if(a){if(-1<a.indexOf(DvtAfStyleUtils.AFHVNodeTitleLabelStyle75_STYLE_CLASS))return DvtAfStyleUtils.getStyleClass(DvtAfStyleUtils.AFHVNodeTitleLabelStyle75_STYLE_CLASS);if(-1<a.indexOf(DvtAfStyleUtils.AFHVNodeSubtitleLabelStyle75_STYLE_CLASS))return DvtAfStyleUtils.getStyleClass(DvtAfStyleUtils.AFHVNodeSubtitleLabelStyle75_STYLE_CLASS);if(-1<a.indexOf(DvtAfStyleUtils.AFHVNodeLabelStyle75_STYLE_CLASS))return DvtAfStyleUtils.getStyleClass(DvtAfStyleUtils.AFHVNodeLabelStyle75_STYLE_CLASS);
if(-1<a.indexOf(DvtAfStyleUtils.AFHVPanelCardLabelStyle75_STYLE_CLASS))return DvtAfStyleUtils.getStyleClass(DvtAfStyleUtils.AFHVPanelCardLabelStyle75_STYLE_CLASS);if(-1<a.indexOf(DvtAfStyleUtils.AFHVNodeTitleLabelStyle50_STYLE_CLASS))return DvtAfStyleUtils.getStyleClass(DvtAfStyleUtils.AFHVNodeTitleLabelStyle50_STYLE_CLASS);if(-1<a.indexOf(DvtAfStyleUtils.AFHVNodeSubtitleLabelStyle50_STYLE_CLASS))return DvtAfStyleUtils.getStyleClass(DvtAfStyleUtils.AFHVNodeSubtitleLabelStyle50_STYLE_CLASS);if(-1<
a.indexOf(DvtAfStyleUtils.AFHVNodeLabelStyle50_STYLE_CLASS))return DvtAfStyleUtils.getStyleClass(DvtAfStyleUtils.AFHVNodeLabelStyle50_STYLE_CLASS);if(-1<a.indexOf(DvtAfStyleUtils.AFHVNodeLabelStyle25_STYLE_CLASS))return DvtAfStyleUtils.getStyleClass(DvtAfStyleUtils.AFHVNodeLabelStyle25_STYLE_CLASS);if(-1<a.indexOf(DvtAfStyleUtils.AFHVNodeTitleLabelStyle_STYLE_CLASS))return DvtAfStyleUtils.getStyleClass(DvtAfStyleUtils.AFHVNodeTitleLabelStyle_STYLE_CLASS);if(-1<a.indexOf(DvtAfStyleUtils.AFHVNodeSubtitleLabelStyle_STYLE_CLASS))return DvtAfStyleUtils.getStyleClass(DvtAfStyleUtils.AFHVNodeSubtitleLabelStyle_STYLE_CLASS);
if(-1<a.indexOf(DvtAfStyleUtils.AFHVNodeLabelStyle_STYLE_CLASS))return DvtAfStyleUtils.getStyleClass(DvtAfStyleUtils.AFHVNodeLabelStyle_STYLE_CLASS);if(-1<a.indexOf(DvtAfStyleUtils.AFHVPanelCardLabelStyle_STYLE_CLASS))return DvtAfStyleUtils.getStyleClass(DvtAfStyleUtils.AFHVPanelCardLabelStyle_STYLE_CLASS)}return null};DvtAfStyleUtils.setPanelCardDefault=function(a){DvtAfStyleUtils._panelCardMap=a};
DvtAfStyleUtils.getDefaultFontFamily=function(){return DvtAfStyleUtils._defaultFontFamily?DvtAfStyleUtils._defaultFontFamily:dvt.StyleUtils.DEFAULT_FONT_FAMILY};DvtAfStyleUtils._setDefaultFontFamily=function(a){DvtAfStyleUtils._defaultFontFamily=a};DvtAfStyleUtils.getDefaultFontSize=function(){return DvtAfStyleUtils._defaultFontSize?DvtAfStyleUtils._defaultFontSize:dvt.StyleUtils.DEFAULT_FONT_SIZE};DvtAfStyleUtils._setDefaultFontSize=function(a){DvtAfStyleUtils._defaultFontSize=a};
DvtAfStyleUtils.getDefaultFontColor=function(){return DvtAfStyleUtils._defaultFontColor?DvtAfStyleUtils._defaultFontColor:dvt.StyleUtils.DEFAULT_FONT_COLOR};DvtAfStyleUtils._setDefaultFontColor=function(a){DvtAfStyleUtils._defaultFontColor=a};
DvtAfStyleUtils.resetStyles=function(){DvtAfStyleUtils.setPanelCardDefault(null);DvtAfStyleUtils._setDefaultFontFamily(null);DvtAfStyleUtils._setDefaultFontSize(null);DvtAfStyleUtils._setDefaultFontColor(null);DvtAfStyleUtils._styleMap=void 0;DvtAfStyleUtils._tagSkinKeyMap=void 0;DvtAfStyleUtils._afStretchWidth=void 0};
var DvtAfContext=function(a,b){this.Init(a,b)};dvt.Obj.createSubclass(DvtAfContext,dvt.Obj,"DvtAfContext");DvtAfContext.prototype.Init=function(a,b){this._dvtContext=a;this.setEventManager(b);this._ah=this._aw=Number.MAX_VALUE;this._fs=DvtAfStyleUtils.getDefaultFontSize()};DvtAfContext.prototype.getTooltipManager=function(){return this.getCtx().getTooltipManager()};DvtAfContext.prototype.getCtx=function(){return this._dvtContext};DvtAfContext.prototype.getELContext=function(){return this._elContext};
DvtAfContext.prototype.setELContext=function(a){this._elContext=a};DvtAfContext.prototype.getAvailableWidth=function(){return null==this._aw||void 0===this._aw?Number.MAX_VALUE:this._aw};DvtAfContext.prototype.setAvailableWidth=function(a){a&&(this._aw=a)};DvtAfContext.prototype.getAvailableHeight=function(){return this._ah};DvtAfContext.prototype.setAvailableHeight=function(a){a&&(this._ah=a)};DvtAfContext.prototype.getFontSize=function(){return this._fs};
DvtAfContext.prototype.setFontSize=function(a){a&&(this._fs=a)};DvtAfContext.prototype.getSkinName=function(){return this._skinName};DvtAfContext.prototype.setSkinName=function(a){a&&(this._skinName=a)};DvtAfContext.prototype.isSkinAlta=function(){return this.getSkinName()==dvt.CSSStyle.SKIN_ALTA};
DvtAfContext.prototype.GetCSSStyle=function(a,b,c,d){var e=a+"|"+(b?b:"");c=c?c:" ";this._tagStyles||(this._tagStyles={});a=this._tagStyles[e];a||(a={},this._tagStyles[e]=a);a[c]||(d=d?DvtAfStyleUtils.getDefaultTextStyle():new dvt.CSSStyle,b&&d.merge(b)," "!==c&&d.parseInlineStyle(c),a[c]=d);return a[c]};DvtAfContext.prototype.setContextCallback=function(a,b){this._contextCallbackObj=a;this._contextCallback=b};DvtAfContext.prototype.getContextCallback=function(){return this._contextCallback};
DvtAfContext.prototype.getContextCallbackObj=function(){return this._contextCallbackObj};DvtAfContext.prototype.setImageCallback=function(a,b,c){this._imageCallbackObj=a;this._imageCallback=b;this._imageNotReadyCallback=c};DvtAfContext.prototype.getImageCallback=function(){return this._imageCallback};DvtAfContext.prototype.getImageCallbackObj=function(){return this._imageCallbackObj};DvtAfContext.prototype.getImageNotReadyCallback=function(){return this._imageNotReadyCallback};
DvtAfContext.prototype.setPanelCardCallback=function(a,b){this._panelCardCallbackObj=a;this._panelCardCallback=b};DvtAfContext.prototype.getPanelCardCallback=function(){return this._panelCardCallback};DvtAfContext.prototype.getPanelCardCallbackObj=function(){return this._panelCardCallbackObj};DvtAfContext.prototype.setMenuDropdownContainer=function(a){this._menuDropDownContainer=a};DvtAfContext.prototype.getMenuDropdownContainer=function(){return this._menuDropDownContainer};
DvtAfContext.prototype.setRmIfNotFit=function(a){this._rmIfNotFit=a};DvtAfContext.prototype.getRmIfNotFit=function(){return this._rmIfNotFit};DvtAfContext.prototype.setParentNode=function(a){this._node=a};DvtAfContext.prototype.getParentNode=function(){return this._node};DvtAfContext.prototype.getEventManager=function(){return this._eventManager};DvtAfContext.prototype.setEventManager=function(a){this._eventManager=a};DvtAfContext.prototype.registerTabStop=function(a){this._tabStopsArray&&this._tabStopsArray.push(a)};
DvtAfContext.prototype.unregisterTabStop=function(a){if(this._tabStopsArray)for(var b=0;b<this._tabStopsArray.length;b++)if(this._tabStopsArray[b]==a){this._tabStopsArray.splice(b,1);break}};DvtAfContext.prototype.getTabStopsArray=function(){return this._tabStopsArray};DvtAfContext.prototype.setTabStopsArray=function(a){this._tabStopsArray=a};
var DvtAfComponent=function(){this.Init()};dvt.Obj.createSubclass(DvtAfComponent,dvt.PropMap,"DvtAfComponent");DvtAfComponent.HALIGN_LEFT="left";DvtAfComponent.HALIGN_RIGHT="right";DvtAfComponent.HALIGN_CENTER="center";DvtAfComponent.HALIGN_START="start";DvtAfComponent.HALIGN_END="end";DvtAfComponent.VALIGN_TOP="top";DvtAfComponent.VALIGN_MIDDLE="middle";DvtAfComponent.VALIGN_BOTTOM="bottom";DvtAfComponent.ATTR_ID="id";DvtAfComponent.ATTR_VISIBLE="visible";DvtAfComponent.ATTR_RENDERED="rendered";
DvtAfComponent.ATTR_INLINE_STYLE="inlineStyle";DvtAfComponent.ATTR_STYLE_CLASS="styleClass";DvtAfComponent.ATTR_SHORT_DESC="shortDesc";DvtAfComponent._uniqueSeed=0;DvtAfComponent._CREATE_BG_SHAPE=!1;DvtAfComponent._REMOVE_LATER="rmMe";DvtAfComponent._CLIP_CONTAINER="clipContainer";DvtAfComponent._CLIP_LATER="clipMe";DvtAfComponent._CLIP_PATH="clipPath";DvtAfComponent.DEFAULT_BOX_SIZING=dvt.CSSStyle.BORDER_BOX;
DvtAfComponent.prototype.Init=function(){DvtAfComponent.superclass.Init.call(this);this.createDefaultStyles();this._parentNode=null};DvtAfComponent.prototype.getStyleClass=function(){return this.getProperty(DvtAfComponent.ATTR_STYLE_CLASS)};DvtAfComponent.prototype.setStyleClass=function(a){this.setProperty(DvtAfComponent.ATTR_STYLE_CLASS,a)};DvtAfComponent.prototype.getInlineStyle=function(){return this.getProperty(DvtAfComponent.ATTR_INLINE_STYLE)};
DvtAfComponent.prototype.setInlineStyle=function(a){this.setProperty(DvtAfComponent.ATTR_INLINE_STYLE,a)};DvtAfComponent.prototype.isRendered=function(){return this.getBooleanProp(DvtAfComponent.ATTR_RENDERED,!0)};DvtAfComponent.prototype.setRendered=function(a){this.setProperty(DvtAfComponent.ATTR_RENDERED,a)};DvtAfComponent.prototype.isVisible=function(){return this.getBooleanProp(DvtAfComponent.ATTR_VISIBLE,!0)};
DvtAfComponent.prototype.setVisible=function(a){this.setProperty(DvtAfComponent.ATTR_VISIBLE,a)};DvtAfComponent.prototype.getShortDesc=function(){return this.getProperty(DvtAfComponent.ATTR_SHORT_DESC)};DvtAfComponent.prototype.setShortDesc=function(a){this.setProperty(DvtAfComponent.ATTR_SHORT_DESC,a)};
DvtAfComponent.prototype.stamp=function(a){var b=DvtAfComponent.superclass.stamp.call(this,a);b._children=[];this.getShowPopupBehaviors&&this.getShowPopupBehaviors()?b._showPopupBehaviors=this._showPopupBehaviors:this.getClientBehaviors&&this.getClientBehaviors()&&(b._clientBehaviors=this._clientBehaviors);for(var c,d,e=0;e<this.getNumChildren();e++)c=this.getChildAt(e),d=c.stamp(a),!c.renderMe||d.renderMe()?d instanceof DvtAfShowPopupBehavior?b.addShowPopupBehavior(d.createDisplayObj()):d instanceof
DvtAfClientBehavior?b.addClientBehavior(d.createDisplayObj()):b.addChild(d):d._isRenderEL()&&b.addChild(d);return b};
DvtAfComponent.prototype.setContentOrigin=function(a){var b=a.getMargin(dvt.CSSStyle.MARGIN_TOP),c=a.getMargin(dvt.CSSStyle.MARGIN_LEFT),d=a.getMargin(dvt.CSSStyle.MARGIN_RIGHT),e=a.getMargin(dvt.CSSStyle.MARGIN_BOTTOM),f=a.getBorderSideWidth(dvt.CSSStyle.BORDER_TOP_WIDTH),g=a.getBorderSideWidth(dvt.CSSStyle.BORDER_LEFT_WIDTH),h=a.getBorderSideWidth(dvt.CSSStyle.BORDER_RIGHT_WIDTH),k=a.getBorderSideWidth(dvt.CSSStyle.BORDER_BOTTOM_WIDTH),l=a.getPadding(dvt.CSSStyle.PADDING_TOP),m=a.getPadding(dvt.CSSStyle.PADDING_LEFT),
n=a.getPadding(dvt.CSSStyle.PADDING_RIGHT);a=a.getPadding(dvt.CSSStyle.PADDING_BOTTOM);this.setCX(c+g+m);this.setCY(b+f+l);this._rightx=d+h+n;this._bottomy=e+k+a;this._marginWidth=c+d;this._marginHeight=b+e};DvtAfComponent.ParseNonNegativeFloat=function(a){a=parseFloat(a);return 0>a?0:a};
DvtAfComponent.prototype.adjustClientArea=function(a){var b=0,c=this._getExplicitWidth(a),d=this._aw;c?(b=c.indexOf("%"),-1<b?(c=c.slice(0,b),d!==Number.MAX_VALUE&&null!=c&&(this.isContentBox()?(b=d-this._getMarginBorderPaddingWidth(),d=DvtAfComponent.ParseNonNegativeFloat(c)*b/100):(b=DvtAfComponent.ParseNonNegativeFloat(c)*d/100,d=b-this._getMarginBorderPaddingWidth()+this._marginWidth))):(b=DvtAfComponent.ParseNonNegativeFloat(c),d=this.isContentBox()?b:b-this._getMarginBorderPaddingWidth()+this._marginWidth),
this._ew=d):void 0===c&&this instanceof DvtAfSpacer?this._aw=this._ew=d=1:void 0===c&&d!==Number.MAX_VALUE&&(b=DvtAfComponent.ParseNonNegativeFloat(d),d=b-this._getMarginBorderPaddingWidth());a=this._getExplicitHeight(a);c=this._ah;a?(b=a.indexOf("%"),-1<b?(a=a.slice(0,b),c!==Number.MAX_VALUE&&null!=a&&(this.isContentBox()?(b=c-this._getMarginBorderPaddingHeight(),c=DvtAfComponent.ParseNonNegativeFloat(a)*b/100):(b=DvtAfComponent.ParseNonNegativeFloat(a)*c/100,c=b-this._getMarginBorderPaddingHeight()+
this._marginHeight))):(b=DvtAfComponent.ParseNonNegativeFloat(a),c=this.isContentBox()?b:b-this._getMarginBorderPaddingHeight()+this._marginHeight),this._eh=c):void 0===a&&this instanceof DvtAfSpacer?this._ah=this._eh=c=1:void 0===a&&c!==Number.MAX_VALUE&&(b=DvtAfComponent.ParseNonNegativeFloat(c),c=b-this._getMarginBorderPaddingHeight());this._cw=d;this._ch=c;if(void 0===this._clipped&&(0>=d||0>=c||d>this._aw||c>this._ah))this._clipped=DvtAfComponent._CLIP_CONTAINER;this._cpw=d;this._cph=c};
DvtAfComponent.prototype.render=function(a){this.setAfContext(a);this._render(DvtAfComponent.ParseNonNegativeFloat(a.getAvailableWidth()),DvtAfComponent.ParseNonNegativeFloat(a.getAvailableHeight()))};
DvtAfComponent.prototype._render=function(a,b){if(this.renderMe()){this._aw=a;this._ah=b;var c=this.getCSSStyle(),d=this.getContentShape();d&&(this._TransferAttributes(d),this.setContentOrigin&&this.setContentOrigin(c),this.adjustClientArea&&this.adjustClientArea(c),d&&(this.isTooltipEnabled()&&!this.getAfContext().getRmIfNotFit())&&this.associate(d,this),this.renderSelfBeforeChildren&&this.renderSelfBeforeChildren(),this.renderChildren&&this.renderChildren(),this.renderSelfAfterChildren&&this.renderSelfAfterChildren(),
this.doLayout&&this.doLayout(),this.renderSelfAfterLayout&&this.renderSelfAfterLayout(),this.getAfContext().getRmIfNotFit()?((c=this.getDisplayObj())&&c.setMouseEnabled(!1),(d=this.getContentShape())&&d!==c&&d.setMouseEnabled(!1)):this.getDisplayObj()&&(this.getShowPopupBehaviors()||this.getClientBehaviors())&&this.associate(this.getDisplayObj(),this))}};DvtAfComponent.prototype._getExplicitWidth=function(a){var b;this.getWidth&&(b=this.getWidth());void 0===b&&(b=a.getWidth());return b};
DvtAfComponent.prototype._getExplicitHeight=function(a){var b;this.getHeight&&(b=this.getHeight());void 0===b&&(b=a.getHeight());return b};DvtAfComponent.prototype.getCalcWidth=function(a){return void 0!==this._ew&&this._ew!==Number.MAX_VALUE?this._ew:this._cw<a?this._cw:a};DvtAfComponent.prototype.getCalcHeight=function(a){return void 0!==this._eh&&this._eh!==Number.MAX_VALUE?this._eh:this._ch<a?this._ch:a};DvtAfComponent.prototype.renderSelfBeforeChildren=function(){};
DvtAfComponent.prototype.renderSelfAfterChildren=function(){};
DvtAfComponent.prototype.renderSelfAfterLayout=function(a,b){var c=a;a||(a=this.getDisplayObj());b||(b=this.getCSSStyle());var d=b.getMargin(dvt.CSSStyle.MARGIN_LEFT)+b.getBorderSideWidth(dvt.CSSStyle.BORDER_LEFT_WIDTH)/2,e=b.getMargin(dvt.CSSStyle.MARGIN_TOP)+b.getBorderSideWidth(dvt.CSSStyle.BORDER_TOP_WIDTH)/2,f=this._cw+b.getBorderSideWidth(dvt.CSSStyle.BORDER_RIGHT_WIDTH)+b.getPadding(dvt.CSSStyle.PADDING_LEFT)+b.getPadding(dvt.CSSStyle.PADDING_RIGHT),g=this._ch+b.getBorderSideWidth(dvt.CSSStyle.BORDER_BOTTOM_WIDTH)+
b.getPadding(dvt.CSSStyle.PADDING_TOP)+b.getPadding(dvt.CSSStyle.PADDING_BOTTOM);this.SetDisplayObjBounds(a,d,e,f,g);this._clipped==DvtAfComponent._CLIP_LATER&&this.addClipPath();(this._hasBgShape()||c)&&this.renderBackground(a,b);dvt.Agent.isTouchDevice()&&(this._hasBgShape()||c)?this.addAccessibilityAttributes(a):this.addAccessibilityAttributes(this.getDisplayObj())};
DvtAfComponent.prototype.SetDisplayObjBounds=function(a,b,c,d,e){a instanceof dvt.OutputText||a instanceof dvt.MultilineText||(a.setX&&a.setX(b),a.setY&&a.setY(c),a.setWidth&&d!==Number.MAX_VALUE&&a.setWidth(d),a.setHeight&&e!==Number.MAX_VALUE&&a.setHeight(e))};DvtAfComponent.prototype.renderChildren=function(){for(var a,b=0;b<this.getNumChildren();b++)a=this.getChildAt(b),(!a.renderMe||a.renderMe())&&this.renderChild(a)};
DvtAfComponent.prototype.renderChild=function(a){a._render&&a._render(this._cw,this._ch)};DvtAfComponent.prototype.doLayout=function(){};DvtAfComponent.prototype.addChild=function(a){a.setParent&&a.setParent(this);this._getChildren().push(a)};
DvtAfComponent.removeChild=function(a){var b;if(a instanceof DvtAfComponent){b=a.getParent();b=b._getChildren();for(var c=0;c<b.length;c++)if(b[c]===a){a.setParent(null);b.splice(c,1);break}}var c=a.getDisplayObj(),d=DvtAfComponent._getContentShape(a);if(d&&d!==c&&(b=d.getParent()))b.removeChild(d),a.setContentShape(c,null);if(c&&(b=c.getParent()))b.removeChild(c),a._bgShape=null};DvtAfComponent.prototype._getChildren=function(){void 0===this._children&&(this._children=[]);return this._children};
DvtAfComponent.prototype.getNumChildren=function(){return this._children?this._children.length:0};DvtAfComponent.prototype.getChildAt=function(a){var b=this.getNumChildren();return 0<=a&&b>a?this._getChildren()[a]:null};DvtAfComponent.prototype.getParent=function(){return this._afCompParent};DvtAfComponent.prototype.setParent=function(a){this._afCompParent=a};DvtAfComponent.prototype.getRoot=function(){for(var a=this;a.getParent();)a=a.getParent();return a};
DvtAfComponent.prototype.GetRootStyleClass=function(){return this.GetDefaultStyles()[0]};DvtAfComponent.prototype.createDefaultStyles=function(){var a=this.GetDefaultStyles();if(void 0===a||dvt.Agent.isEnvironmentTest())a=DvtAfStyleUtils.getDefaultCSSStyle(this.getTagName()),0==a.length&&a.push(new dvt.CSSStyle),this.SetDefaultStyles(a)};
DvtAfComponent.prototype.createComputedStyle=function(){if(!this._computedStyle){var a=this.GetRootStyleClass(),b,c=this.getStyleClass();if(c)for(var d,e=c.split(" "),f=0;f<e.length;f++)if((d=e[f])&&0<d.length)(c=DvtAfStyleUtils.getAFStretchWidthStyle(d))||(c=DvtAfStyleUtils.getStyleClass(d)),b?b.merge(c):c&&(b=c.clone());c=this.getInlineStyle();DvtAfComponentFactory.CACHE_STYLES?(a=this instanceof DvtAfOutputText||this instanceof DvtAfOutputFormatted,d=this.getAfContext().GetCSSStyle(this.getTagName(),
b,c,a)):(d=new dvt.CSSStyle,b&&d.merge(b),d.parseInlineStyle(c),this._setOverrideStyle(d.isEmpty()?null:d.clone()),d.mergeUnder(a));this._computedStyle=d;this.ResolveEm(d)}return this._computedStyle};DvtAfComponent.prototype.ResolveEm=function(a){this.resolveEmUnit(a,this.getParent())};DvtAfComponent.prototype.resolveEmUnit=function(a,b){if(a){var c=a.getAbsoluteFontSize();!c&&b&&(c=b.getInheritedStyleAttr(dvt.CSSStyle.FONT_SIZE));c||(c=this.getAfContext().getFontSize());a.resolveEM(c)}};
DvtAfComponent.prototype.getStyle=function(a){if(this._computedStyle)return this.getCSSStyle().getStyle(a)};DvtAfComponent.prototype.getComputedStyles=function(){return this._computedStyle};DvtAfComponent.prototype.getCSSStyle=function(){if(this._cssStyle)return this._cssStyle;var a=this.getComputedStyles();dvt.ArrayUtils.isArray(a)?this._cssStyle=a[0]:this._cssStyle=a?a:new dvt.CSSStyle(null);return this._cssStyle};
DvtAfComponent.prototype.getStyleAttr=function(a){var b=this.getCSSStyle().getStyle(a);!b&&(dvt.CSSStyle.isInheritable(a)&&this.getParent())&&(b=this.getParent().getInheritedStyleAttr(a));return b};DvtAfComponent.prototype.getInheritedStyleAttr=function(a){var b=this.getCSSStyle().getStyle(a);!b&&this.getParent()&&(b=this.getParent().getInheritedStyleAttr(a));return b};
DvtAfComponent.prototype.getInheritedStyle=function(a,b,c){var d;b&&(d=b.getStyle(a));d||(d=this.getStyleAttr(a),!d&&c&&(d=c.getStyle?c.getStyle(a):c[a]));return d};
DvtAfComponent.prototype.createTextStyles=function(a,b){if(null==a&&(a=this.getCSSStyle().clone(),null==a))return null;var c,d;c=dvt.CSSStyle.FONT_FAMILY;a.getStyle(c)||(d=this.getInheritedStyle(c,a,b),a.setStyle(c,d?d:DvtAfStyleUtils.getDefaultFontFamily()));c=dvt.CSSStyle.FONT_SIZE;a.getStyle(c)||((d=this.getInheritedStyle(c,a,b))||(d=DvtAfStyleUtils.getDefaultFontSize()),a.setStyle(c,d));c=dvt.CSSStyle.COLOR;a.getStyle(c)||(d=this.getInheritedStyle(c,a,b),a.setStyle(c,d?d:DvtAfStyleUtils.getDefaultFontColor()));
c=dvt.CSSStyle.FONT_WEIGHT;a.getStyle(c)||(d=this.getInheritedStyle(c,a,b))&&a.setStyle(c,d);c=dvt.CSSStyle.FONT_STYLE;a.getStyle(c)||(d=this.getInheritedStyle(c,a,b))&&a.setStyle(c,d);c=dvt.CSSStyle.TEXT_ALIGN;a.getStyle(c)||(d=this.getInheritedStyle(c,a,b))&&a.setStyle(c,d);c=dvt.CSSStyle.TEXT_DECORATION;a.getStyle(c)||(d=this.getInheritedStyle(c,a,b))&&a.setStyle(c,d);return a};DvtAfComponent.prototype.createCallback=function(a){return dvt.Obj.createCallback(this,a)};
DvtAfComponent.prototype.getHAlign=function(){return DvtAfComponent.HALIGN_LEFT};DvtAfComponent.prototype.getEffectiveHAlign=function(){var a=this.getHAlign();a==DvtAfComponent.HALIGN_START?a=dvt.Agent.isRightToLeft(this.getDvtContext())?DvtAfComponent.HALIGN_RIGHT:DvtAfComponent.HALIGN_LEFT:a==DvtAfComponent.HALIGN_END&&(a=dvt.Agent.isRightToLeft(this.getDvtContext())?DvtAfComponent.HALIGN_LEFT:DvtAfComponent.HALIGN_RIGHT);return a};
DvtAfComponent.prototype.createDisplayObj=function(a){if(!this.renderMe())return null;this._parentNode=a.getParentNode();this.setAfContext(a);a=this.getDvtContext();this.registerAsTabStop();this.SaveContextCallback();this.createComputedStyle&&this.createComputedStyle();this._shape=this.createContentShape(a);this._bgShape=this.createBackgroundShape(a,this._shape);this._bgShape._afComp=this;return this._bgShape};DvtAfComponent.prototype.getDisplayObj=function(){return this._bgShape};
DvtAfComponent.prototype.addChildDisplayObjs=function(a,b){for(var c,d=this.getNumChildren(),e=0;e<d;e++)if(c=this.getChildAt(e),!c.renderMe||c.renderMe())(c=c.createDisplayObj(a))&&b.addChild(c)};DvtAfComponent.prototype.createContentShape=function(a){return null};DvtAfComponent.prototype.getContentShape=function(){return this._shape};DvtAfComponent.prototype.setContentShape=function(a,b){b&&(a.addChild(b),b._prop=this._prop);this._shape=b};DvtAfComponent.prototype.getCX=function(){return this._cx};
DvtAfComponent.prototype.setCX=function(a){this._cx=a};DvtAfComponent.prototype.getCY=function(){return this._cy};DvtAfComponent.prototype.setCY=function(a){this._cy=a};DvtAfComponent.prototype.createBackgroundShape=function(a,b){var c;this._hasBgShape()?(c=new dvt.Rect(a,0,0,0,0,this._getUniqueId()+"_bg"),this.setContentShape(c,b)):c=b;return c};
DvtAfComponent.prototype.renderBackground=function(a,b){var c="rgba(255, 255, 255, 0)",d;b||(b=this.getCSSStyle());b&&(c=b.getStyle(dvt.CSSStyle.BACKGROUND_COLOR),d=b.getBackgroundImage());a||(a=this.getDisplayObj());this.RenderBackgroundStroke(a,b);a.setFill&&(this.RenderBackgroundFill(a,b,c,d),this.RenderBackgroundImage(a,b,d))};
DvtAfComponent.prototype.RenderBackgroundFill=function(a,b,c,d){if(d&&d instanceof dvt.CSSGradient){b=d.getColors();c=d.getAlphas();var e=d.getRatios();d=d.getAngle();a.setFill(new dvt.LinearGradientFill(d,b,c,e))}else c?a.setSolidFill(c):a.setFill(null)};
DvtAfComponent.prototype.RenderBackgroundStroke=function(a,b){var c,d=0,e;b&&(c=DvtAfComponent.getBorderColor(b),"transparent"==c&&(c="rgba(0,0,0,0)"),d=b.getBorderWidth(),e=b.getStyle(dvt.CSSStyle.BORDER_STYLE));"none"!=e&&c&&(isNaN(d)&&(d=DvtAfComponent.ParseNonNegativeFloat(d)),c=new dvt.SolidStroke(c,null,d),c.setType(dvt.Stroke.convertTypeString(e)),a.setStroke(c));if(b&&a instanceof dvt.Rect&&(e=b.getStyle(dvt.CSSStyle.BORDER_RADIUS)))e=dvt.StringUtils.trim(e).split(" "),0<e.length&&e[0]&&a.setRx(DvtAfComponent.ParseNonNegativeFloat(e[0])),
1<e.length&&e[1]&&a.setRy(DvtAfComponent.ParseNonNegativeFloat(e[1]))};DvtAfComponent.prototype.RenderBackgroundImage=function(a,b,c){c&&("none"!==c&&!(c instanceof dvt.CSSGradient))&&(this._bgImg=c,dvt.ImageLoader.loadImage(this.getDvtContext(),c,this.createCallback(this.onBgImageLoaded)))};
DvtAfComponent.prototype.onBgImageLoaded=function(a){if(null!=a&&a.width&&a.height){var b=this.getDisplayObj(),c=this.getCSSStyle().getStyle(dvt.CSSStyle.BACKGROUND_REPEAT),d;d=!c||"no-repeat"!=c?new dvt.Rectangle(0,0,a.width,a.height):b.getDimensions();a=dvt.Agent.isEnvironmentBatik()?a.uri:this._bgImg;b.setFill(new dvt.ImageFill(a,d,c))}};DvtAfComponent.prototype.renderMe=function(){return this instanceof DvtAfComponent&&this.isRendered()&&this.isVisible()};
DvtAfComponent.prototype._isRenderEL=function(){if(this instanceof DvtAfComponent){var a=this.getProperty(DvtAfComponent.ATTR_RENDERED),b=this.getProperty(DvtAfComponent.ATTR_VISIBLE);return a&&"string"===typeof a&&a.match(dvt.PropMap.REGEXP)||b&&"string"===typeof b&&b.match(dvt.PropMap.REGEXP)}return!1};DvtAfComponent.prototype.isTooltipEnabled=function(){var a=this.getTooltip();return a&&0<a.length};DvtAfComponent.prototype.getTooltip=function(){return this.getShortDesc()};
DvtAfComponent.prototype._TransferAttributes=function(a){};DvtAfComponent.prototype.setTranslateX=function(a){var b=this.getDisplayObj();b&&b.setTranslateX(a)};DvtAfComponent.prototype.setTranslateY=function(a){var b=this.getDisplayObj();b&&b.setTranslateY(a)};DvtAfComponent.getDimensions=function(a){return a instanceof DvtAfComponent?a.getBounds():a.getDimensions()};
DvtAfComponent.prototype.getBounds=function(){if(!this._dim){var a;this._cw&&this._cw!==Number.MAX_VALUE&&this._ch&&this._ch!==Number.MAX_VALUE?a=new dvt.Rectangle(0,0,0,0):(a=this.getDisplayObj().getDimensions())?(a.x=0,a.y=0):a=new dvt.Rectangle(0,0,0,0);var b=this.getCSSStyle();a.w=this._cw&&this._cw!==Number.MAX_VALUE?this._cw+b.getMargin(dvt.CSSStyle.MARGIN_LEFT)+b.getMargin(dvt.CSSStyle.MARGIN_RIGHT)+b.getPadding(dvt.CSSStyle.PADDING_LEFT)+b.getPadding(dvt.CSSStyle.PADDING_RIGHT)+b.getBorderSideWidth(dvt.CSSStyle.BORDER_LEFT_WIDTH)+
b.getBorderSideWidth(dvt.CSSStyle.BORDER_RIGHT_WIDTH):a.w+(b.getMargin(dvt.CSSStyle.MARGIN_LEFT)+b.getMargin(dvt.CSSStyle.MARGIN_RIGHT));a.h=this._ch&&this._ch!==Number.MAX_VALUE?this._ch+b.getMargin(dvt.CSSStyle.MARGIN_TOP)+b.getMargin(dvt.CSSStyle.MARGIN_BOTTOM)+b.getPadding(dvt.CSSStyle.PADDING_TOP)+b.getPadding(dvt.CSSStyle.PADDING_BOTTOM)+b.getBorderSideWidth(dvt.CSSStyle.BORDER_TOP_WIDTH)+b.getBorderSideWidth(dvt.CSSStyle.BORDER_BOTTOM_WIDTH):a.h+(b.getMargin(dvt.CSSStyle.MARGIN_TOP)+b.getMargin(dvt.CSSStyle.MARGIN_BOTTOM));
this._dim=a}return this._dim};DvtAfComponent._getContentShape=function(a){return a instanceof DvtAfComponent?a.getContentShape():a.getDisplayObj()};DvtAfComponent._setTranslateGroup=function(a,b,c){if(a instanceof DvtAfComponent){if(a=a.getDisplayObj())a.setTranslateX(b),a.setTranslateY(c)}else a.setTranslateX&&a.setTranslateX(b),a.setTranslateY&&a.setTranslateY(c)};DvtAfComponent.prototype.getTagName=function(){};
DvtAfComponent.prototype._hasBgShape=function(){if(void 0===this._needBgShape){var a=this.getCSSStyle();this._needBgShape=a&&(a.getStyle(dvt.CSSStyle.BACKGROUND_COLOR)||a.getBackgroundImage()||DvtAfComponent.getBorderColor(a)||a.getBorderWidth()||a.getStyle(dvt.CSSStyle.BORDER_RADIUS))}return this._needBgShape};
DvtAfComponent.prototype.createTextShape=function(a,b,c,d,e){var f=this.getDvtContext();e||(e=this._getUniqueId());a=a?new dvt.MultilineText(f,b,0,0,e):new dvt.OutputText(f,b,0,0,e);(c=this.createTextStyles(c,d))&&a.setCSSStyle(c);a._prop=this._prop;return a};DvtAfComponent.prototype.isCommandComponent=function(){return!1};DvtAfComponent.prototype.getShowPopupBehaviors=function(){return this._showPopupBehaviors};
DvtAfComponent.prototype.addShowPopupBehavior=function(a){this._showPopupBehaviors||(this._showPopupBehaviors=[]);this._showPopupBehaviors.push(a)};DvtAfComponent.prototype.getClientBehaviors=function(){return this._clientBehaviors};DvtAfComponent.prototype.addClientBehavior=function(a){this._clientBehaviors||(this._clientBehaviors=[]);this._clientBehaviors.push(a)};
DvtAfComponent.prototype.SaveContextCallback=function(){if(this.getShowPopupBehaviors&&this.getShowPopupBehaviors()||this.getClientBehaviors()||this.isCommandComponent()||this instanceof DvtAfPanelCard)this.setContextCallbackObj(this.getAfContext().getContextCallbackObj()),this.setContextCallback(this.getAfContext().getContextCallback())};DvtAfComponent.prototype.getContextCallback=function(){return this._contextCallback};DvtAfComponent.prototype.getContextCallbackObj=function(){return this._contextCallbackObj};
DvtAfComponent.prototype.setContextCallback=function(a){this._contextCallback=a};DvtAfComponent.prototype.setContextCallbackObj=function(a){this._contextCallbackObj=a};DvtAfComponent._renderComp=function(a,b,c,d){var e=a.getAvailableWidth(),f=a.getAvailableHeight();a.setAvailableWidth(c);a.setAvailableHeight(d);b.render&&b.render(a);a.setAvailableWidth(e);a.setAvailableHeight(f)};
DvtAfComponent.prototype._addClipPathIfNeeded=function(a,b,c,d,e,f,g,h){if(e>d+dvt.Math.TOLERANCE||g>f+dvt.Math.TOLERANCE){if(h&&(b=dvt.DisplayableUtils.getDimensionsForced(a.getCtx(),h),b.w<=d+dvt.Math.TOLERANCE&&b.h<=f+dvt.Math.TOLERANCE))return;a.getRmIfNotFit()?this._clipped=DvtAfComponent._REMOVE_LATER:this._clipped=DvtAfComponent._CLIP_CONTAINER}};DvtAfComponent.prototype.setClipContainer=function(a){this.isClippedNoClipPath()&&(a._clipped=DvtAfComponent._CLIP_LATER)};
DvtAfComponent.prototype.getClipped=function(){return this._clipped};DvtAfComponent.prototype.addClipPath=function(){if(this.noClipPath()){var a=this.GetClipPathDimensions(),b=this.CreateNewContainerForChildren(),c=new dvt.ClipPath(this._getUniqueId()+DvtAfComponentUtils._CLIP_PATH_SUFFIX);c.addRect(a.x,a.y,a.w,a.h);b.setClipPath(c);this._clipped=DvtAfComponent._CLIP_PATH;return!0}return!1};
DvtAfComponent.prototype.GetClipPathDimensions=function(){var a=this.getCX(),b=this.getCY(),c=this._cpw,d=this._cph;if(void 0==c||c==Number.MAX_VALUE)c=this._cw;if(void 0==d||d==Number.MAX_VALUE)d=this._ch;return new dvt.Rectangle(a,b,c,d)};DvtAfComponent.prototype.isClippedNoClipPath=function(){return this._clipped&&this.noClipPath()};DvtAfComponent.prototype.noClipPath=function(){return this._clipped!==DvtAfComponent._CLIP_PATH};DvtAfComponent.genUniqueId=function(){return DvtAfComponent._uniqueSeed++};
DvtAfComponent.prototype._getUniqueId=function(){if(this._uniqueId)return this._uniqueId;var a=this.getId();return this._uniqueId=a=void 0===a?"_G"+this.getTagName()+"_"+DvtAfComponent.genUniqueId():a+("_"+DvtAfComponent.genUniqueId())};
DvtAfComponent.prototype.RegisterImageCallback=function(a){var b=this.getAfContext().getImageCallbackObj(),c=this.getAfContext().getImageCallback();b&&c&&dvt.ImageLoader.loadImage(this.getDvtContext(),a,dvt.Obj.createCallback(b,c));c=this.getAfContext().getImageNotReadyCallback();b&&c&&dvt.Obj.createCallback(b,c)(this._parentNode,a)};
DvtAfComponent.prototype.getPopupBounds=function(a){if(a&&(a=a.getAlignId()))if(this.getId()==a){if(a=this.getDisplayObj())return a.getDimensions(a.getCtx().getStage())}else if(this._parentNode&&this._parentNode.findComponentPopupBounds)return this._parentNode.findComponentPopupBounds(a);return null};
DvtAfComponent.prototype._getBoxSizing=function(){if(!this._boxSizing){var a=this.getStyle(dvt.CSSStyle.BOX_SIZING);if(a)this._boxSizing=a;else{var b=this.getParent();b&&b instanceof DvtAfComponent&&(a=b._getBoxSizing());this._boxSizing=a?a:DvtAfComponent.DEFAULT_BOX_SIZING}}return this._boxSizing};DvtAfComponent.prototype.isBorderBox=function(){return this._getBoxSizing()==dvt.CSSStyle.BORDER_BOX};DvtAfComponent.prototype.isContentBox=function(){return this._getBoxSizing()==dvt.CSSStyle.CONTENT_BOX};
DvtAfComponent.prototype._getMarginBorderPaddingWidth=function(){return this._cx+this._rightx};DvtAfComponent.prototype._getMarginBorderPaddingHeight=function(){return this._cy+this._bottomy};DvtAfComponent.prototype.isContainerDisabled=function(){return!1};DvtAfComponent.prototype.associate=function(a,b){this.getAfContext().getEventManager()&&this.getAfContext().getEventManager().associate(a,b?b:this)};
DvtAfComponent.prototype._getAfStyleAt=function(a){var b=this.GetDefaultStyles();return b.length>a?b[a]:null};DvtAfComponent.prototype._setOverrideStyle=function(a){};DvtAfComponent.prototype.postRender=function(){this.postRenderSelfBeforeChildren();this.postRenderChildren()};DvtAfComponent.prototype.postRenderSelfBeforeChildren=function(){};
DvtAfComponent.prototype.postRenderChildren=function(){for(var a,b=0;b<this.getNumChildren();b++)a=this.getChildAt(b),(!a.renderMe||a.renderMe())&&a.postRender&&a.postRender()};DvtAfComponent.prototype.CreateNewContainerForChildren=function(){var a=this.getDisplayObj();if(0<a.getNumChildren()){var b=new dvt.Container(this.getDvtContext());DvtAfComponent._reparentChildren(b,a);a.addChild(b);return b}return a};
DvtAfComponent.prototype.RemoveChildrenContainer=function(a){var b=this.getDisplayObj();DvtAfComponent._reparentChildren(b,a);b.removeChild(a)};DvtAfComponent._reparentChildren=function(a,b){for(var c,d=a.getNumChildren(),e=b.getNumChildren()-1;0<=e;e--)c=b.getChildAt(e),a.addChildAt(c,d)};DvtAfComponent.prototype.getAriaLabel=function(){return this.getShortDesc()};
DvtAfComponent.prototype.addAccessibilityAttributes=function(a){var b=this.getAriaLabel();a&&b&&(a.setAriaRole(this.getAriaRole()),dvt.Agent.deferAriaCreation()||a.setAriaProperty("label",b))};DvtAfComponent.prototype.registerAsTabStop=function(){};DvtAfComponent.prototype.unregisterAsTabStop=function(){if(this.getAfContext()){this.getAfContext().unregisterTabStop(this);for(var a=this.getNumChildren(),b=0;b<a;b++){var c=this.getChildAt(b);c.unregisterAsTabStop&&c.unregisterAsTabStop()}}};
DvtAfComponent.prototype.showKeyboardFocusEffect=function(){this._keyboardFocusEffect||(this._keyboardFocusEffect=this.CreateKeyboardFocusEffect());this._keyboardFocusEffect.show();this._isShowingKeyboardFocusEffect=!0;this.getDvtContext().setActiveElement(this.getDisplayObj())};DvtAfComponent.prototype.hideKeyboardFocusEffect=function(){this._keyboardFocusEffect&&this._keyboardFocusEffect.hide();this._isShowingKeyboardFocusEffect=!1};DvtAfComponent.prototype.isShowingKeyboardFocusEffect=function(){return this._isShowingKeyboardFocusEffect};
DvtAfComponent.prototype.CreateKeyboardFocusEffect=function(){return new dvt.KeyboardFocusEffect(this.getDvtContext(),this.getDisplayObj(),this.getDisplayObj().getDimensions())};
DvtAfComponent.prototype.handleKeyboardEvent=function(a){if(a.keyCode==dvt.KeyboardEvent.ENTER){var b=this.getAfContext()._eventManager,c=this.getDisplayObj(),d=c.localToStage(new dvt.Point(0,0));a=dvt.DomEventFactory.generateMouseEventFromKeyboardEvent(a,this.getDvtContext(),dvt.MouseEvent.CLICK,this.getDvtContext().getStage(),d.x,d.y);a.target=c;b.PreOnClick(a)}};
DvtAfComponent.prototype.getSize=function(a){var b=DvtAfComponent.superclass.stamp.call(this,a),c=null;if(!b.renderMe||b.renderMe()){b.setAfContext(a);b.createComputedStyle&&b.createComputedStyle();var d=b.getCSSStyle();a=b._getExplicitWidth(d);b=b._getExplicitHeight(d);a&&b&&(c=new dvt.Dimension(a,b))}return c};
DvtAfComponent.getBorderColor=function(a){var b,c;a&&(b=a.getStyle(dvt.CSSStyle.BORDER_COLOR),c=a.getBorderWidth());if(!b&&c){c=a.getStyle(dvt.CSSStyle.BORDER_TOP_COLOR);var d=a.getStyle(dvt.CSSStyle.BORDER_BOTTOM_COLOR),e=a.getStyle(dvt.CSSStyle.BORDER_LEFT_COLOR),f=a.getStyle(dvt.CSSStyle.BORDER_RIGHT_COLOR);c&&(d&&e&&f)&&(e==f&&e==c&&e==d?b=e:e==c?b=e:f==d&&(b=f));b||(b=a.getStyle(dvt.CSSStyle.COLOR))||(b="black")}return b};DvtAfComponent.prototype.getAriaRole=function(){return"img"};
DvtAfComponent.prototype.getAfContext=function(){return this._afContext};DvtAfComponent.prototype.setAfContext=function(a){this._afContext=a};DvtAfComponent.prototype.getDvtContext=function(){return this._afContext?this._afContext.getCtx():null};DvtAfComponent.prototype.isUnrelatedToSelection=function(){return!0};
dvt.Bundle.addDefaultStrings(dvt.Bundle.AFCOMPONENT_PREFIX,{ARIA_LABEL_ITEM_COUNT:"{0} of {1}"});
var DvtAfComponentUtils=function(){};dvt.Obj.createSubclass(DvtAfComponentUtils,dvt.Obj,"DvtAfComponentUtils");DvtAfComponentUtils._CLIP_PATH_SUFFIX="_clp";
DvtAfComponentUtils._calcVContentSize=function(a,b,c,d){var e=b.getNumChildren();if(0==e)return new dvt.Rectangle(0,0,0,0);var f,g=0,h=0,k=[],l,m;d?(l=b._aw,m=b._ah,g=b._cw,h=b._ch):(l=b._cw,m=b._ch);for(var n=0;n<e;n++)if(f=b.getChildAt(n),!f.renderMe||f.renderMe()){var p=DvtAfComponent.getDimensions(f),q=p.w,r=p.h;if(0===q||0===r||!d&&h==b._ch)k.push(f);else{if(f.getClipped()||h+r>m+dvt.Math.TOLERANCE||q>l+dvt.Math.TOLERANCE)if(f.getClipped()==DvtAfComponent._REMOVE_LATER||a.getRmIfNotFit()){k.push(f);
continue}else f.setClipContainer(b),h=h+r>m?m:h+r,g=q>l?l:Math.max(g,q);else f instanceof DvtAfSeparator||(g=Math.max(g,q)),h+=r;c.push(p)}}for(n=k.length-1;0<=n;n--)f=k[n],DvtAfComponent.removeChild(f);return new dvt.Rectangle(0,0,g,h)};
DvtAfComponentUtils._calcHContentSize=function(a,b,c){var d=b.getNumChildren();if(0==d)return new dvt.Rectangle(0,0,0,0);for(var e,f=0,g=0,h=[],k=0;k<d;k++)if(e=b.getChildAt(k),!e.renderMe||e.renderMe()){var l=DvtAfComponent.getDimensions(e),m=l.w,n=l.h;if(0===m||0===n||f==b._cw)h.push(e);else{if(e.getClipped()||f+m>b._cw+dvt.Math.TOLERANCE||n>b._ch+dvt.Math.TOLERANCE)if(e.getClipped()==DvtAfComponent._REMOVE_LATER||a.getRmIfNotFit()){h.push(e);continue}else e.setClipContainer(b),f=f+m>b._cw?b._cw:
f+m,g=n>b._ch?b._ch:Math.max(g,n);else e instanceof DvtAfSeparator||(g=Math.max(g,n)),f+=m;c.push(l)}}for(k=h.length-1;0<=k;k--)e=h[k],DvtAfComponent.removeChild(e);return new dvt.Rectangle(0,0,f,g)};
DvtAfComponentUtils.doVerticalLayout=function(a,b){if(b){var c=b instanceof DvtAfLink,d=[],e=DvtAfComponentUtils._calcVContentSize(a,b,d,c);if(0==d.length)b._cw=b.getCalcWidth(e.w),b._ch=b.getCalcHeight(e.h);else{var f=b.getEffectiveHAlign(),g=b.getCX(),h=b.getCY();c?(h+=b._ch,f==DvtAfComponent.HALIGN_RIGHT&&e.w>b._cw&&b.getDisplayObj().rightAlign(e.w,b._cw,!0),b._cw=e.w,b._ch=e.h):(b._cw=b.getCalcWidth(e.w),b._ch=b.getCalcHeight(e.h));for(var c=h,k,l=b.getNumChildren(),m=0;m<l;m++)if(d[m]&&(e=b.getChildAt(m),
!e.renderMe||e.renderMe())){var n=d[m].w,p=d[m].h,h=c;e instanceof DvtAfSeparator?(b._cw&&e.setMaxWidth(b._cw),k=g):f==DvtAfComponent.HALIGN_LEFT?k=g:f==DvtAfComponent.HALIGN_CENTER?k=g+(b._cw-n)/2:f==DvtAfComponent.HALIGN_RIGHT&&(k=g+b._cw-n);DvtAfComponent._setTranslateGroup(e,k,h);c+=p}}}};
DvtAfComponentUtils.doHorizontalLayout=function(a,b){if(b){var c=[],d=DvtAfComponentUtils._calcHContentSize(a,b,c);if(0==c.length)b._cw=b.getCalcWidth(d.w),b._ch=b.getCalcHeight(d.h);else{b._cw=b.getCalcWidth(d.w);b._ch=b.getCalcHeight(d.h);for(var e=b.getVAlign(),f=b.getCX(),g=b.getCY(),h,k,f=dvt.Agent.isRightToLeft(b.getDvtContext())?f+b.getCalcWidth(d.w):f,l=b.getNumChildren(),m=0;m<l;m++)if(c[m]&&(d=b.getChildAt(m),!d.renderMe||d.renderMe())){var n=c[m].w;h=c[m].h;e==DvtAfComponent.VALIGN_TOP?
k=g:e==DvtAfComponent.VALIGN_MIDDLE?k=g+(b._ch-h)/2:e==DvtAfComponent.VALIGN_BOTTOM&&(k=g+b._ch-h);dvt.Agent.isRightToLeft(b.getDvtContext())?h=f-=n:(h=f,f+=n);d instanceof DvtAfSeparator&&b._cw&&d.setMaxWidth(b._cw-f);DvtAfComponent._setTranslateGroup(d,h,k)}}}};
var DvtAfTagHandler=function(a){this.Init(a)};dvt.Obj.createSubclass(DvtAfTagHandler,dvt.Obj,"DvtAfTagHandler");DvtAfTagHandler.prototype.Init=function(a){this._constructor=a};DvtAfTagHandler.prototype.createComponent=function(a){var b=this._createComponent();b&&b.setProperties(a.getAttributes());return b};DvtAfTagHandler.prototype.createJsonComponent=function(a){var b=this._createComponent(),c,d;for(d in a)a.hasOwnProperty(d)&&(c=a[d],b.setProperty(d,c));return b};
DvtAfTagHandler.prototype.addChildren=function(a,b){if(a&&b&&0<b.length)for(var c=0;c<b.length;c++)b[c]&&a.addChild(b[c])};DvtAfTagHandler.prototype._createComponent=function(){return new this._constructor};
var DvtAfComponentFactory=function(){};dvt.Obj.createSubclass(DvtAfComponentFactory,dvt.Obj,"DvtAfComponentFactory");DvtAfComponentFactory.CACHE_STYLES=!1;DvtAfComponentFactory._NAME_F="f";DvtAfComponentFactory._NAME_COMPONENT="component";DvtAfComponentFactory._registeredTags={};DvtAfComponentFactory.registerComponent=function(a,b){a&&b&&(DvtAfComponentFactory._registeredTags[a]=new DvtAfTagHandler(b))};
DvtAfComponentFactory.parseXml=function(a){return(a=DvtAfComponentFactory._parseChildren(a))?a[0]:null};DvtAfComponentFactory.parseJson=function(a){return(a=DvtAfComponentFactory._parseJsonChildren(a))?a[0]:null};DvtAfComponentFactory.parseElement=function(a){var b=a.getName(),c=DvtAfComponentFactory._registeredTags[b];if(!c)throw"No tag handler for "+b;b=c.createComponent(a);null!=b&&(a=DvtAfComponentFactory._parseChildren(a),c.addChildren(b,a));return b};
DvtAfComponentFactory.parseJsonElement=function(a){var b=a[DvtAfComponentFactory._NAME_COMPONENT],c=DvtAfComponentFactory._registeredTags[b];if(!c)throw"No tag handler for "+b;b=c.createJsonComponent(a);null!=b&&a.children&&(a=DvtAfComponentFactory._parseJsonChildren(a.children),c.addChildren(b,a));return b};
DvtAfComponentFactory._parseChildren=function(a){var b=null;if(a){a=a.getChildNodes();for(var c,b=[],d=0;d<a.length;d++){c=a[d];var e=c.getName();c&&null!=e&&e!==DvtAfComponentFactory._NAME_F&&(c=DvtAfComponentFactory.parseElement(c))&&b.push(c)}}return b};DvtAfComponentFactory._parseJsonChildren=function(a){for(var b=[],c=0;c<a.length;c++){var d=a[c],e=d[DvtAfComponentFactory._NAME_COMPONENT];d&&null!=e&&(d=DvtAfComponentFactory.parseJsonElement(d))&&b.push(d)}return b};
DvtAfComponentFactory.parseXmlAndLayout=function(a,b,c){b=DvtAfComponentFactory.parseXml(b);return DvtAfComponentFactory.parseAndLayout(a,b,c)};DvtAfComponentFactory.parseAndLayout=function(a,b,c){a.setParentNode(c);b=b.stamp(a.getELContext());return DvtAfComponentFactory.doLayout(a,b,c)};DvtAfComponentFactory.doLayout=function(a,b,c){(c=DvtAfComponentFactory._createDisplayObj(a,b,c))&&b&&DvtAfComponentFactory._render(a,c,b);return c};
DvtAfComponentFactory.parseAndStamp=function(a,b,c){a.setParentNode(c);b=b.stamp(a.getELContext());if(a=DvtAfComponentFactory._createDisplayObj(a,b,c))a._compTree=b;return a};DvtAfComponentFactory.layoutAndRender=function(a,b){b&&DvtAfComponentFactory._render(a,b,b._compTree)};DvtAfComponentFactory._createDisplayObj=function(a,b,c){var d;b&&(d=b.createDisplayObj(a));c&&d&&c.addChild(d);return d};
DvtAfComponentFactory._render=function(a,b,c){if(c){c.render(a);c.postRender(a);if(a.getRmIfNotFit()){var d=DvtAfComponent.getDimensions(c),e=b.getParent();e&&e.removeChild&&(0===d.w&&0===d.h||d.w>a.getAvailableWidth()+dvt.Math.TOLERANCE||d.h>a.getAvailableHeight()+dvt.Math.TOLERANCE||c.getClipped())&&e.removeChild(b)}else c.getClipped()&&c.addClipPath();b._compTree=c}};DvtAfComponentFactory.getCompTree=function(a){return a?a._compTree:null};
DvtAfComponentFactory.getAfComponent=function(a){for(var b=null;!b&&a;)b=a._afComp,a=a.getParent();return b};DvtAfComponentFactory.findAfComponent=function(a,b){if(null==a||null==b)return null;if(a.getId()==b)return a;for(var c=a.getNumChildren(),d=0;d<c;d++){var e=a.getChildAt(d);if(b==e.getId()||(e=DvtAfComponentFactory.findAfComponent(e,b)))return e}return null};
DvtAfComponentFactory.getBounds=function(a,b){var c=DvtAfComponentFactory.getCompTree(a);return c&&c instanceof DvtAfComponent?(c=c.getBounds(),b?a.ConvertCoordSpaceRect(c,b):c):a.getDimensions(b)};DvtAfComponentFactory.getSize=function(a,b,c){a.setParentNode(c);return b.getSize(a)};
var DvtAfButtonLink=function(){this.Init()};dvt.Obj.createSubclass(DvtAfButtonLink,DvtAfComponent,"DvtAfButtonLink");DvtAfButtonLink.ATTR_TEXT="text";DvtAfButtonLink.ATTR_DISABLED="disabled";DvtAfButtonLink.ATTR_ICON="icon";DvtAfButtonLink.ATTR_ICON_POSITION="iconPosition";DvtAfButtonLink.ATTR_DISABLED_ICON="disabledIcon";DvtAfButtonLink.ATTR_DESTINATION="destination";DvtAfButtonLink.ATTR_TARGET_FRAME="targetFrame";DvtAfButtonLink.ATTR_FOCUSABLE="focusable";DvtAfButtonLink.ICON_POSITION_LEADING="leading";
DvtAfButtonLink.ICON_POSITION_TRAILING="trailing";DvtAfButtonLink.ICON_POSITION_TOP="top";DvtAfButtonLink.ICON_POSITION_BOTTOM="bottom";DvtAfButtonLink.prototype.getText=function(){return this.getStringProp(DvtAfButtonLink.ATTR_TEXT,"")};DvtAfButtonLink.prototype.setText=function(a){this.setProperty(DvtAfButtonLink.ATTR_TEXT,a);this.getContentShape()&&this.getContentShape().setTextString(a)};
DvtAfButtonLink.prototype.isDisabled=function(){return this.getBooleanProp(DvtAfButtonLink.ATTR_DISABLED,!1)||this.isContainerDisabled()};DvtAfButtonLink.prototype.setDisabled=function(a){this.setProperty(DvtAfButtonLink.ATTR_DISABLED,a)};DvtAfButtonLink.prototype.getIcon=function(){return this.getProperty(DvtAfButtonLink.ATTR_ICON)};DvtAfButtonLink.prototype.setIcon=function(a){this.setProperty(DvtAfButtonLink.ATTR_ICON,a)};
DvtAfButtonLink.prototype.getIconPosition=function(){return this.getStringProp(DvtAfButtonLink.ATTR_ICON_POSITION,"leading")};DvtAfButtonLink.prototype.setIconPosition=function(a){this.setProperty(DvtAfButtonLink.ATTR_ICON_POSITION,a)};DvtAfButtonLink.prototype.getDisabledIcon=function(){return this.getProperty(DvtAfButtonLink.ATTR_DISABLED_ICON)};DvtAfButtonLink.prototype.setDisabledIcon=function(a){this.setProperty(DvtAfButtonLink.ATTR_DISABLED_ICON,a)};
DvtAfButtonLink.prototype.getDestination=function(){return this.getProperty(DvtAfButtonLink.ATTR_DESTINATION)};DvtAfButtonLink.prototype.setDestination=function(a){this.setProperty(DvtAfButtonLink.ATTR_DESTINATION,a);this.getContentShape()&&this.getContentShape().setDestination(a)};DvtAfButtonLink.prototype.getTargetFrame=function(){return this.getProperty(DvtAfButtonLink.ATTR_TARGET_FRAME,!1)};
DvtAfButtonLink.prototype.setTargetFrame=function(a){this.setProperty(DvtAfButtonLink.ATTR_TARGET_FRAME,a)};DvtAfButtonLink.prototype.isCommandComponent=function(){return!this.getDestination()};DvtAfButtonLink.prototype.getIconSource=function(a){switch(a){case dvt.Button.STATE_DISABLED:a=this.getDisabledIcon();break;default:a=this.getIcon()}return a};
DvtAfButtonLink._createContentShape=function(a,b,c,d){var e=b._getUniqueId()+"_s"+c,f=b.getText(),g=b.getIconSource(c),h=b instanceof DvtAfLink,k=null;h?g&&f&&(k=new dvt.Container(a,e)):k=new dvt.Rect(a,0,0,0,0,e);var l,m;g&&(l=new dvt.Image(a,g,0,0,1,1,e+"_img"),k?k.addChild(l):k=l);f&&(m=b.createTextShape(!1,f,d,b.GetTextStyle(c),e+"_txt"),h&&m.setCursor(null),k?k.addChild(m):k=m);b._shapeLst||(b._shapeLst=[],b._iconLst=[],b._textLst=[]);b._shapeLst[c]=k;l&&(b._iconLst[c]=l);m&&(b._textLst[c]=m);
return k};
DvtAfButtonLink._doLayout=function(a,b,c,d){var e=a.getIconPosition(),f=a._iconLst[b],g=a.RenderIcon(f);g||(e="noIcon");var h=a._textLst[b],k=null!=h;if(!h){if("noIcon"==e)return new dvt.Rectangle(0,0,0,0);e="noText"}var l=a._ch,m,n=0,p=0,q,r=!1,s=a._cw-d;switch(e){case "leading":case "trailing":c&&(m=c.getPadding(dvt.CSSStyle.PADDING_LEFT)+c.getMargin(dvt.CSSStyle.MARGIN_LEFT)+c.getPadding(dvt.CSSStyle.PADDING_RIGHT)+c.getMargin(dvt.CSSStyle.MARGIN_RIGHT)),m||(m=3),s=s-g.w-m}var t=0;if(h)if(dvt.TextUtils.fitText(h,s,
l,h.getParent()))q=h.getDimensions(),t=(r=h.isTruncated())?s:q.w;else{if("noIcon"==e)return new dvt.Rectangle(0,0,0,0);e="noText";k=!1}var l=dvt.Agent.isRightToLeft(a.getDvtContext()),u=Math.max(c.getPadding(dvt.CSSStyle.PADDING_TOP)+c.getPadding(dvt.CSSStyle.PADDING_BOTTOM),2);(c=a.getCX())||(c=0);(s=a.getCY())||(s=0);switch(e){case "top":h.alignCenter();e=(t-g.w)/2;0<e?(g.x=(l?c+d:c)+e,q.x=(l?c+d:c)+t/2,n=t):(g.x=l?c+d:c,q.x=(l?c+d:c)-e+t/2,n=g.w);g.y=s;u=1;q.y=s+g.h+u;p=g.h+u+q.h;break;case "bottom":h.alignCenter();
e=(t-g.w)/2;0<e?(g.x=(l?c+d:c)+e,q.x=(l?c+d:c)+t/2,n=t):(g.x=l?c+d:c,q.x=(l?c+d:c)-e+t/2,n=g.w);q.y=s;u=1;g.y=s+q.h+u;p=q.h+u+g.h;break;case "trailing":n=t+m+g.w;p=Math.max(q.h,g.h)+u;l?(g.x=c+d,q.x=g.x+g.w+m+t,h.alignRight()):(g.x=c+t+m,q.x=c,h.alignLeft());e=(q.h-g.h)/2;0<e?(q.y=s,g.y=s+e):(q.y=s-e,g.y=s);break;case "leading":n=g.w+m+t;p=Math.max(q.h,g.h)+u;l?(g.x=c+d+t+m,q.x=c+d+t,h.alignRight()):(g.x=c,q.x=c+g.w+m,h.alignLeft());e=(g.h-q.h)/2;0<e?(g.y=s,q.y=s+e):(g.y=s-e,q.y=s);break;case "noIcon":l?
(q.x=c+d+t,h.alignRight()):(q.x=c,h.alignLeft());q.y=s;n=t;p=q.h+u;break;case "noText":g.x=l?c+d:c,g.y=s,n=g.w,p=g.h}h&&k&&(r||a._addClipPathIfNeeded(a.getAfContext(),c,s,a._aw,n,a._ah,p,h),h.setX(q.x),h.setY(q.y));g&&(f.setX(g.x),f.setY(g.y));d=new dvt.Rectangle(0,0,n,p);d=a._RenderArrowIcon(b,d);d.w=a.getCalcWidth(d.w);d.h=a.getCalcHeight(d.h);return d};
DvtAfButtonLink.prototype.RenderIcon=function(a){var b;if(a){var c=this.GetIconStyle();if(c){var d=c.getWidth(),c=c.getHeight();d&&c&&(d=DvtAfComponent.ParseNonNegativeFloat(d),c=DvtAfComponent.ParseNonNegativeFloat(c),d&&c&&(b=new dvt.Rectangle(0,0,d,c)))}if(!b){var e=a.getSrc();(d=dvt.ImageLoader.loadImage(this.getDvtContext(),e))&&(b=new dvt.Rectangle(0,0,d.width,d.height))}b?(a.setWidth(b.w),a.setHeight(b.h)):this.RegisterImageCallback(e)}return b};DvtAfButtonLink.prototype.GetIconStyle=function(){return null};
DvtAfButtonLink.prototype.GetTextStyle=function(a){return null};DvtAfButtonLink.prototype.GetDisabledStyle=function(){return null};DvtAfButtonLink.prototype.ResolveEm=function(a){DvtAfButtonLink.superclass.ResolveEm.call(this,a)};DvtAfButtonLink.prototype.getTooltip=function(){var a=DvtAfButtonLink.superclass.getTooltip.call(this);if(!a&&this._textLst){var b=this._textLst[dvt.Button.STATE_ENABLED];if(b&&b.isTruncated())return this.getText()}return a};DvtAfButtonLink.prototype.deferTruncation=function(){return DvtAfComponentFactory.DEFER_TRUNCATION};
DvtAfButtonLink.prototype.createContentShape=function(a){return this.CreateButton()};DvtAfButtonLink.prototype.renderSelfBeforeChildren=function(){DvtAfButtonLink.superclass.renderSelfBeforeChildren.call(this);this.CreateButton(this.getContentShape());this.RenderButton()};DvtAfButtonLink.prototype.GetClickListenerFunction=function(){return dvt.ToolkitUtils.getLinkCallback(this.getTargetFrame(),this.getDestination())};DvtAfButtonLink.prototype.isClickEventPropagationStopped=function(){return!0};
DvtAfButtonLink.prototype.CreateButton=function(a){if(!a){a=this.CreateButtonState(dvt.Button.STATE_ENABLED);var b=this.CreateButtonState(dvt.Button.STATE_OVER),c=this.CreateButtonState(dvt.Button.STATE_DOWN),d=this.CreateButtonState(dvt.Button.STATE_DISABLED);a=new dvt.Button(this.getDvtContext(),a,b,c,d,this._getUniqueId(),this.GetClickListenerFunction(),this);this.associate(a,this)}a.setEnabled(!this.isDisabled());return a};
DvtAfButtonLink.prototype.CreateButtonState=function(a){var b=this._getStateStyle(a);a=DvtAfButtonLink._createContentShape(this.getDvtContext(),this,a,b);a instanceof dvt.Rect&&b&&this.renderBackground(a,b);return a};
DvtAfButtonLink.prototype._renderButtonState=function(a){var b=this._getStateStyle(a);if(!b)return null;var c=DvtAfButtonLink._doLayout(this,a,this.GetTextStyle(a),this.GetArrowWidth()),d=this._cw,e=this._ch;try{this._cw=c.w,this._ch=c.h,DvtAfButtonLink.superclass.renderSelfAfterLayout.call(this,this._shapeLst[a],b)}finally{this._cw=d,this._ch=e}return c};
DvtAfButtonLink.prototype.RenderButton=function(){var a=this._renderButtonState(dvt.Button.STATE_DISABLED);this._renderButtonState(dvt.Button.STATE_OVER);this._renderButtonState(dvt.Button.STATE_DOWN);var b=this._renderButtonState(dvt.Button.STATE_ENABLED);if(a=this.isDisabled()?a:b)this._cw=a.w,this._ch=a.h;this.getContentShape().initState()};DvtAfButtonLink.prototype._setOverrideStyle=function(a){this._overrideStyle=a};
DvtAfButtonLink.prototype._getStateStyle=function(a){switch(a){case dvt.Button.STATE_DISABLED:a=this.GetDisabledStyle();break;case dvt.Button.STATE_OVER:a=this.GetHoverStyle();break;case dvt.Button.STATE_DOWN:a=this.GetActiveStyle();break;default:a=this.GetEnabledStyle()}this._overrideStyle&&(a=a.clone().merge(this._overrideStyle));return a};DvtAfButtonLink.prototype._RenderArrowIcon=function(a,b){return b};DvtAfButtonLink.prototype.GetArrowWidth=function(){return 0};
DvtAfButtonLink.prototype.registerAsTabStop=function(){this.getAfContext().registerTabStop(this)};DvtAfButtonLink.prototype.addAccessibilityAttributes=function(a){this.getDisplayObj().setAriaRole("link");dvt.Agent.deferAriaCreation()||(a=this.getAriaLabel())&&this.getDisplayObj().setAriaProperty("label",a)};DvtAfButtonLink.prototype.getAriaLabel=function(){var a=this.getShortDesc();a||(a=this.getText());return a};
DvtAfButtonLink.prototype.handleKeyboardEvent=function(a){var b=a.keyCode;if(b==dvt.KeyboardEvent.ENTER||b==dvt.KeyboardEvent.SPACE){var b=this.getDisplayObj(),c=b.localToStage(new dvt.Point(0,0));a=dvt.DomEventFactory.generateMouseEventFromKeyboardEvent(a,this.getDvtContext(),dvt.MouseEvent.CLICK,this.getDvtContext().getStage(),c.x,c.y);a.target=b;b.dispatchNativeEvent(a)}};
var DvtAfButton=function(){this.Init()};dvt.Obj.createSubclass(DvtAfButton,DvtAfButtonLink,"DvtAfButton");DvtAfButton.TAG_NAME="bt";DvtAfComponentFactory.registerComponent(DvtAfButton.TAG_NAME,DvtAfButton);DvtAfButton.prototype.getTagName=function(){return DvtAfButton.TAG_NAME};DvtAfButton.prototype.GetDefaultStyles=function(){return DvtAfButton._afStyles};
DvtAfButton.prototype.SetDefaultStyles=function(a){DvtAfButton._afStyles=a;5<a.length&&a[0].mergeUnder(a[5]);7<a.length&&a[7].mergeUnder(a[0]);8<a.length&&a[8].mergeUnder(a[0]);9<a.length&&a[9].mergeUnder(a[0])};DvtAfButton.prototype.GetEnabledStyle=function(){return this._getAfStyleAt(0)};DvtAfButton.prototype.GetIconStyle=function(){return this._getAfStyleAt(1)};DvtAfButton.prototype.GetTextStyle=function(a){return this._getAfStyleAt(2)};DvtAfButton.prototype.GetActiveStyle=function(){return this._getAfStyleAt(7)};
DvtAfButton.prototype.GetHoverStyle=function(){return this._getAfStyleAt(8)};DvtAfButton.prototype.GetDisabledStyle=function(){return this._getAfStyleAt(9)};DvtAfButton.prototype.ResolveEm=function(a){DvtAfButton.superclass.ResolveEm.call(this,a);(a=this.GetTextStyle())&&this.resolveEmUnit(a,this);(a=this.GetDisabledStyle())&&this.resolveEmUnit(a,this)};DvtAfButton.prototype._hasBgShape=function(){return!1};DvtAfButton.prototype.renderSelfAfterLayout=function(){};
DvtAfButton.prototype.RenderBackgroundImage=function(a,b,c){if(c&&"none"!==c&&!(c instanceof dvt.CSSGradient)){this._bgImg=c;var d=b.getStyle(dvt.CSSStyle.BACKGROUND_REPEAT);b=null;if(!d||"no-repeat"!=d)b=function(b){if(b&&b.width&&b.height){var e=new dvt.Rectangle(0,0,b.width,b.height);a.setFill(new dvt.ImageFill(dvt.Agent.isEnvironmentBatik()?b.uri:c,e,d))}};else{var e=a.getDimensions(this.getAfContext().getParentNode());a.setFill(new dvt.ImageFill(this._bgImg,e,d))}dvt.ImageLoader.loadImage(this.getDvtContext(),
c,b)}};
var DvtAfCommandButton=function(){this.Init()};dvt.Obj.createSubclass(DvtAfCommandButton,DvtAfButton,"DvtAfCommandButton");DvtAfCommandButton.TAG_NAME="cb";DvtAfComponentFactory.registerComponent(DvtAfCommandButton.TAG_NAME,DvtAfCommandButton);DvtAfCommandButton.prototype.getTagName=function(){return DvtAfCommandButton.TAG_NAME};DvtAfCommandButton.prototype.GetDefaultStyles=function(){return DvtAfCommandButton._afStyles};
DvtAfCommandButton.prototype.SetDefaultStyles=function(a){DvtAfCommandButton._afStyles=a;1<a.length&&a[1].mergeUnder(a[0]);2<a.length&&a[2].mergeUnder(a[0]);3<a.length&&a[3].mergeUnder(a[0]);4<a.length&&a[4].mergeUnder(a[0]);5<a.length&&a[5].mergeUnder(a[2])};DvtAfCommandButton.prototype.GetIconStyle=function(){return this._getAfStyleAt(1)};DvtAfCommandButton.prototype.GetTextStyle=function(a){return this._getAfStyleAt(2)};DvtAfCommandButton.prototype.GetActiveStyle=function(){return this._getAfStyleAt(3)};
DvtAfCommandButton.prototype.GetHoverStyle=function(){return this._getAfStyleAt(4)};DvtAfCommandButton.prototype.GetDisabledStyle=function(){var a=this._getAfStyleAt(5);return a?a:DvtAfStyleUtils.getDefaultCommandButtonDisabledStyle()};
var DvtAfGoButton=function(){this.Init()};dvt.Obj.createSubclass(DvtAfGoButton,DvtAfButton,"DvtAfGoButton");DvtAfGoButton.TAG_NAME="gb";DvtAfComponentFactory.registerComponent(DvtAfGoButton.TAG_NAME,DvtAfGoButton);DvtAfGoButton.prototype.getTagName=function(){return DvtAfGoButton.TAG_NAME};DvtAfGoButton.prototype.GetDefaultStyles=function(){return DvtAfGoButton._afStyles};
DvtAfGoButton.prototype.SetDefaultStyles=function(a){DvtAfGoButton._afStyles=a;1<a.length&&a[1].mergeUnder(a[0]);2<a.length&&a[2].mergeUnder(a[0]);3<a.length&&a[3].mergeUnder(a[0]);4<a.length&&a[4].mergeUnder(a[0]);5<a.length&&a[5].mergeUnder(a[2])};DvtAfGoButton.prototype.GetIconStyle=function(){return this._getAfStyleAt(1)};DvtAfGoButton.prototype.GetTextStyle=function(a){return this._getAfStyleAt(2)};DvtAfGoButton.prototype.GetActiveStyle=function(){return this._getAfStyleAt(3)};
DvtAfGoButton.prototype.GetHoverStyle=function(){return this._getAfStyleAt(4)};DvtAfGoButton.prototype.GetDisabledStyle=function(){var a=this._getAfStyleAt(5);return a?a:DvtAfStyleUtils.getDefaultGoButtonDisabledStyle()};
var DvtAfLink=function(){this.Init()};dvt.Obj.createSubclass(DvtAfLink,DvtAfButtonLink,"DvtAfLink");DvtAfLink.TAG_NAME="lk";DvtAfComponentFactory.registerComponent(DvtAfLink.TAG_NAME,DvtAfLink);DvtAfLink.prototype.getTagName=function(){return DvtAfLink.TAG_NAME};DvtAfLink.prototype.GetDefaultStyles=function(){return DvtAfLink._afStyles};
DvtAfLink.prototype.SetDefaultStyles=function(a){DvtAfLink._afStyles=a;5<a.length&&(9<a.length&&a[5].merge(a[9]),a[5].mergeUnder(a[0]));6<a.length&&(8<a.length&&a[6].merge(a[8]),a[6].mergeUnder(a[0]));7<a.length&&a[7].mergeUnder(a[0])};DvtAfLink.prototype.GetEnabledStyle=function(){return this._getAfStyleAt(0)};DvtAfLink.prototype.createDisplayObj=function(a){var b=DvtAfLink.superclass.createDisplayObj.call(this,a);this.addChildDisplayObjs(a,this._shape);return b};
DvtAfLink.prototype.renderSelfBeforeChildren=function(){DvtAfLink.superclass.renderSelfBeforeChildren.call(this);0<this.getNumChildren()&&(this._acw=this._aw,this._ach=this._ah-this._ch)};DvtAfLink.prototype.doLayout=function(){0<this.getNumChildren()&&DvtAfComponentUtils.doVerticalLayout(this.getAfContext(),this)};
DvtAfLink.prototype.renderChild=function(a){a._render?a._render(this._acw,this._ach):a.render&&DvtAfComponent._renderComp(this.getAfContext(),a,this._acw,this._ach);a=DvtAfComponent.getDimensions(a);a.h!==Number.MAX_VALUE&&(this._ach-=a.h)};DvtAfLink.prototype.getHAlign=function(){return DvtAfComponent.HALIGN_START};DvtAfLink.prototype.GetIconStyle=function(){return this._getAfStyleAt(1)};DvtAfLink.prototype.GetTextStyle=function(a){return this._getAfStyleAt(2)};
DvtAfLink.prototype.GetActiveStyle=function(){return this._getAfStyleAt(5)};DvtAfLink.prototype.GetHoverStyle=function(){return this._getAfStyleAt(6)};DvtAfLink.prototype.GetDisabledStyle=function(){return this._getAfStyleAt(7)};DvtAfLink.prototype.ResolveEm=function(a){DvtAfLink.superclass.ResolveEm.call(this,a);(a=this.GetTextStyle())&&this.resolveEmUnit(a,this);(a=this.GetDisabledStyle())&&this.resolveEmUnit(a,this)};DvtAfLink.prototype._hasBgShape=function(){return!1};
DvtAfLink.prototype.renderBackground=function(a,b){};
var DvtAfCommandLink=function(){this.Init()};dvt.Obj.createSubclass(DvtAfCommandLink,DvtAfLink,"DvtAfCommandLink");DvtAfCommandLink.TAG_NAME="cl";DvtAfComponentFactory.registerComponent(DvtAfCommandLink.TAG_NAME,DvtAfCommandLink);DvtAfCommandLink.prototype.getIcon=function(){return null};DvtAfCommandLink.prototype.getDisabledIcon=function(){return null};DvtAfCommandLink.prototype.getDestination=function(){return null};DvtAfCommandLink.prototype.getTagName=function(){return DvtAfCommandLink.TAG_NAME};
DvtAfCommandLink.prototype.GetDefaultStyles=function(){return DvtAfCommandLink._afStyles};DvtAfCommandLink.prototype.SetDefaultStyles=function(a){DvtAfCommandLink._afStyles=a;1<a.length&&a[1].mergeUnder(a[0]);2<a.length&&a[2].mergeUnder(a[0]);3<a.length&&a[3].mergeUnder(a[0])};DvtAfCommandLink.prototype.GetIconStyle=function(){return null};DvtAfCommandLink.prototype.GetTextStyle=function(a){return this._getAfStyleAt(0)};DvtAfCommandLink.prototype.GetActiveStyle=function(){return this._getAfStyleAt(1)};
DvtAfCommandLink.prototype.GetHoverStyle=function(){return this._getAfStyleAt(2)};DvtAfCommandLink.prototype.GetDisabledStyle=function(){var a=this._getAfStyleAt(3);return a?a:DvtAfStyleUtils.getDefaultCommandLinkDisabledStyle()};
var DvtAfCommandImageLink=function(){this.Init()};dvt.Obj.createSubclass(DvtAfCommandImageLink,DvtAfLink,"DvtAfCommandImageLink");DvtAfCommandImageLink.TAG_NAME="cil";DvtAfComponentFactory.registerComponent(DvtAfCommandImageLink.TAG_NAME,DvtAfCommandImageLink);DvtAfCommandImageLink.prototype.getDestination=function(){return null};DvtAfCommandImageLink.prototype.getTagName=function(){return DvtAfCommandImageLink.TAG_NAME};DvtAfCommandImageLink.prototype.GetDefaultStyles=function(){return DvtAfCommandImageLink._afStyles};
DvtAfCommandImageLink.prototype.SetDefaultStyles=function(a){DvtAfCommandImageLink._afStyles=a;2<a.length&&a[2].mergeUnder(a[0]);5<a.length&&a[5].mergeUnder(a[0]);6<a.length&&a[3].merge(a[6]);7<a.length&&a[4].merge(a[7])};DvtAfCommandImageLink.prototype.GetIconStyle=function(){return this._getAfStyleAt(1)};DvtAfCommandImageLink.prototype.GetTextStyle=function(a){return this._getAfStyleAt(2)};DvtAfCommandImageLink.prototype.GetActiveStyle=function(){return this._getAfStyleAt(3)};
DvtAfCommandImageLink.prototype.GetHoverStyle=function(){return this._getAfStyleAt(4)};DvtAfCommandImageLink.prototype.GetDisabledStyle=function(){var a=this._getAfStyleAt(5);return a?a:DvtAfStyleUtils.getDefaultCommandImageLinkDisabledStyle()};DvtAfCommandImageLink.prototype.ResolveEm=function(a){DvtAfCommandImageLink.superclass.ResolveEm.call(this,a);(a=this.GetIconStyle())&&this.resolveEmUnit(a,this)};
var DvtAfGoLink=function(){this.Init()};dvt.Obj.createSubclass(DvtAfGoLink,DvtAfLink,"DvtAfGoLink");DvtAfGoLink.TAG_NAME="gl";DvtAfComponentFactory.registerComponent(DvtAfGoLink.TAG_NAME,DvtAfGoLink);DvtAfGoLink.prototype.getIcon=function(){return null};DvtAfGoLink.prototype.getDisabledIcon=function(){return null};DvtAfGoLink.prototype.getTagName=function(){return DvtAfGoLink.TAG_NAME};DvtAfGoLink.prototype.GetDefaultStyles=function(){return DvtAfGoLink._afStyles};
DvtAfGoLink.prototype.SetDefaultStyles=function(a){DvtAfGoLink._afStyles=a;1<a.length&&a[1].mergeUnder(a[0]);3<a.length&&a[3].mergeUnder(a[0])};DvtAfGoLink.prototype.GetTextStyle=function(a){return DvtAfGoLink._afStyles[0]};DvtAfGoLink.prototype.GetActiveStyle=function(){return this._getAfStyleAt(1)};DvtAfGoLink.prototype.GetHoverStyle=function(){return this._getAfStyleAt(2)};DvtAfGoLink.prototype.GetDisabledStyle=function(){var a=this._getAfStyleAt(3);return a?a:DvtAfStyleUtils.getDefaultGoLinkDisabledStyle()};
var DvtAfCommandMenuItem=function(){this.Init()};dvt.Obj.createSubclass(DvtAfCommandMenuItem,DvtAfButton,"DvtAfCommandMenuItem");DvtAfCommandMenuItem.TAG_NAME="cmi";DvtAfComponentFactory.registerComponent(DvtAfCommandMenuItem.TAG_NAME,DvtAfCommandMenuItem);DvtAfCommandMenuItem.prototype.getTagName=function(){return DvtAfCommandMenuItem.TAG_NAME};DvtAfCommandMenuItem.prototype.GetDefaultStyles=function(){return DvtAfCommandMenuItem._afStyles};
DvtAfCommandMenuItem.prototype.SetDefaultStyles=function(a){DvtAfCommandMenuItem._afStyles=a;1<a.length&&a[0].merge(a[1]);2<a.length&&a[2].mergeUnder(a[0]);3<a.length&&(a[3].mergeUnder(a[2]),a[0].merge(a[3]));4<a.length&&a[4].mergeUnder(a[3]);5<a.length&&a[5].mergeUnder(a[3])};DvtAfCommandMenuItem.prototype.GetIconStyle=function(){return this._getAfStyleAt(2)};
DvtAfCommandMenuItem.prototype.GetTextStyle=function(a){return a==dvt.Button.STATE_OVER?this._getAfStyleAt(4):a==dvt.Button.STATE_DOWN?this._getAfStyleAt(3):a==dvt.Button.STATE_DISABLED?this._getAfStyleAt(5):this._getAfStyleAt(3)};DvtAfCommandMenuItem.prototype.GetActiveStyle=function(){return this._getAfStyleAt(3)};DvtAfCommandMenuItem.prototype.GetHoverStyle=function(){return this._getAfStyleAt(4)};
DvtAfCommandMenuItem.prototype.GetDisabledStyle=function(){var a=this._getAfStyleAt(5);return a?a:DvtAfStyleUtils.getDefaultCommandMenuItemDisabledStyle()};DvtAfCommandMenuItem.prototype.getIconPosition=function(){return DvtAfButtonLink.ICON_POSITION_LEADING};DvtAfCommandMenuItem.prototype.RenderBackgroundStroke=function(a,b){};
DvtAfCommandMenuItem.prototype.SaveContextCallback=function(){var a=dvt.Obj.createCallback(this.getAfContext().getContextCallbackObj(),this.getAfContext().getContextCallback());this.setContextCallbackObj(this);this.setContextCallback(function(b){a(b);b=this.getParent();b instanceof DvtAfMenu&&b.hideDropdown()})};
var DvtAfMenu=function(){this.Init()};dvt.Obj.createSubclass(DvtAfMenu,DvtAfButton,"DvtAfMenu");DvtAfMenu.TAG_NAME="m";DvtAfComponentFactory.registerComponent(DvtAfMenu.TAG_NAME,DvtAfMenu);DvtAfMenu.DROPDOWN_PADDING=1;DvtAfMenu.HPADDING=5;DvtAfMenu.prototype.getTagName=function(){return DvtAfMenu.TAG_NAME};DvtAfMenu.prototype.GetDefaultStyles=function(){return DvtAfMenu._afStyles};
DvtAfMenu.prototype.SetDefaultStyles=function(a){DvtAfMenu._afStyles=a;1<a.length&&a[0].merge(a[1]);2<a.length&&a[2].mergeUnder(a[0]);5<a.length&&a[5].mergeUnder(a[2]);9<a.length&&a[9].mergeUnder(a[4]);10<a.length&&a[10].mergeUnder(a[4]);11<a.length&&a[11].mergeUnder(a[4]);12<a.length&&a[12].mergeUnder(a[5]);13<a.length&&a[13].mergeUnder(a[6])};DvtAfMenu.prototype.GetIconStyle=function(){return this._getAfStyleAt(2)};
DvtAfMenu.prototype.GetTextStyle=function(a){return a==dvt.Button.STATE_OVER?this._getAfStyleAt(13):a==dvt.Button.STATE_DOWN?this._getAfStyleAt(12):a==dvt.Button.STATE_DISABLED?this._getAfStyleAt(7):this._getAfStyleAt(3)};DvtAfMenu.prototype.GetActiveStyle=function(){return this._getAfStyleAt(12)};DvtAfMenu.prototype.GetHoverStyle=function(){return this._getAfStyleAt(13)};DvtAfMenu.prototype.GetDisabledStyle=function(){var a=this._getAfStyleAt(7);return a?a:DvtAfStyleUtils.getDefaultMenuDisabledStyle()};
DvtAfMenu.prototype.GetOpenIconStyle=function(a){if(a=a==dvt.Button.STATE_OVER?this._getAfStyleAt(10):a==dvt.Button.STATE_DOWN?this._getAfStyleAt(9):a==dvt.Button.STATE_DISABLED?this._getAfStyleAt(11):this._getAfStyleAt(4)){var b=a.getWidth(),c=a.getHeight();b&&c&&(b=DvtAfComponent.ParseNonNegativeFloat(b),c=DvtAfComponent.ParseNonNegativeFloat(c),this._arrowDim=new dvt.Rectangle(0,0,b,c))}return a};DvtAfMenu.prototype._getPopupStyle=function(){return this._getAfStyleAt(8)};
DvtAfMenu.prototype.getIconPosition=function(){return DvtAfButtonLink.ICON_POSITION_LEADING};DvtAfMenu.prototype.CreateButtonState=function(a){var b=DvtAfMenu.superclass.CreateButtonState.call(this,a),c=this.GetOpenIconStyle(a);if(b&&c&&(c=c.getBackgroundImage()))this._arrowLst||(this._arrowLst=[]),this._arrowLst[a]=new dvt.Image(this.getDvtContext(),c,0,0,this._getArrowWidth(),this._getArrowHeight()),b.addChild(this._arrowLst[a]);b.setFill(null);return b};
DvtAfMenu.prototype.GetArrowWidth=function(){var a=this.GetOpenIconStyle(dvt.Button.STATE_ENABLED),b=0;a&&(b=a.getPadding(dvt.CSSStyle.PADDING_LEFT)+a.getPadding(dvt.CSSStyle.PADDING_RIGHT));return this._getArrowWidth()+b};
DvtAfMenu.prototype._RenderArrowIcon=function(a,b){var c=this._arrowLst[a];if(c){var d=this.GetOpenIconStyle(a),e=0;dvt.Agent.isRightToLeft(this.getDvtContext())?c.setX(this.getCX()):(d&&(e=d.getPadding(dvt.CSSStyle.PADDING_LEFT)),c.setX(b.w+e));var f=2;(d=d.parseBackgroundPosition())&&2==d.length&&("100%"==d[1]?f=b.h-this._getArrowHeight()-1:"50%"==d[1]&&(f=(b.h-this._getArrowHeight())/2+1));c.setY(f)}b.w+=this._getArrowWidth()+e+this.getCX();return b};
DvtAfMenu.prototype._getArrowWidth=function(){return this._arrowDim?this._arrowDim.w:0};DvtAfMenu.prototype._getArrowHeight=function(){return this._arrowDim?this._arrowDim.h:0};DvtAfMenu.prototype.renderChildren=function(){};DvtAfMenu.prototype.GetClickListenerFunction=function(){return dvt.Obj.createCallback(this,this._handleClickAction)};DvtAfMenu.prototype._handleClickAction=function(a){0<this.getNumChildren()&&this.displayDropdown()};
DvtAfMenu.prototype.hideDropdown=function(){this.RemoveStageFocusChangeListeners();var a=this._getMenuDropdownContainer();a&&DvtAfMenu._updateDropdown(a,null);this.getContentShape().setToggled(!1)};
DvtAfMenu.prototype.displayDropdown=function(){this.getContentShape().setToggled(!0);var a=this.getId(),b=!1,c=this._getMenuDropdownContainer(!1);c?b=!0:c=this._getMenuDropdownContainer(!0);var d=this.getDisplayObj().getDimensions(c),a=new dvt.Rect(this.getDvtContext(),0,0,d.w,1,a+"_dd"),e=this._getPopupStyle(),f="white",g="black",h=1;e&&(f=e.getStyle(dvt.CSSStyle.BACKGROUND_COLOR),g=DvtAfComponent.getBorderColor(e),h=e.getBorderWidth());a.setSolidFill(f);a.setSolidStroke(g,null,h);DvtAfMenu._updateDropdown(c,
a);this.getAfContext().setContextCallback(this.getContextCallbackObj(),this.getContextCallback());this.populateDropdown(this.getAfContext(),a);e=a.getWidth();b?(b=this.getContentShape().localToStage(new dvt.Point(0,0)),b=c.stageToLocal(b),dvt.Agent.isRightToLeft(this.getDvtContext())?a.setTranslateX(b.x-e+d.w):a.setTranslateX(b.x),a.setTranslateY(b.y+d.h+1)):(dvt.Agent.isRightToLeft(this.getDvtContext())?a.setTranslateX(d.w-e):a.setTranslateX(0),a.setTranslateY(d.h+1));a.setVisible(!0);(c=this.getDvtContext().getStage())&&
c.addEvtListener(dvt.Agent.isTouchDevice()?dvt.TouchEvent.TOUCHSTART:dvt.MouseEvent.MOUSEDOWN,this.HandleStageFocusChange,!0,this)};
DvtAfMenu.prototype.populateDropdown=function(a,b){for(var c,d=DvtAfMenu.DROPDOWN_PADDING,e=b.getWidth(),f=[],g=[],h=[],k,l=0;l<this.getNumChildren();l++)if(c=this.getChildAt(l),!c.renderMe||c.renderMe())k=c.createDisplayObj(a),b.addChild(k),this.renderChild(c),k.setTranslateY(d),c=DvtAfComponent.getDimensions(k),e=Math.max(e,c.w),d+=c.h+DvtAfMenu.DROPDOWN_PADDING,f.push(c.w),g.push(c.h),h.push(k);b.setWidth(e+2*DvtAfMenu.DROPDOWN_PADDING);b.setHeight(d);for(l=0;l<h.length;l++)if(k=h[l])d=e-DvtAfMenu.DROPDOWN_PADDING,
k.setSize(d+1,g[l]),k.setTranslateX(DvtAfMenu.DROPDOWN_PADDING),dvt.Agent.isRightToLeft(this.getDvtContext())&&k.rightAlign(d,f[l])};DvtAfMenu.prototype.renderChild=function(a){a._render&&a._render(Number.MAX_VALUE,Number.MAX_VALUE)};DvtAfMenu.prototype.HandleStageFocusChange=function(a){if(a.target){a=a.target;for(var b=this._getMenuDropdownContainer(!0);null!=a;a=a.getParent())if(a==b._afMenuDropDown)return;this.hideDropdown()}};
DvtAfMenu.prototype.RemoveStageFocusChangeListeners=function(){var a=this.getDvtContext().getStage();a&&a.removeEvtListener(dvt.Agent.isTouchDevice()?dvt.TouchEvent.TOUCHSTART:dvt.MouseEvent.MOUSEDOWN,this.HandleStageFocusChange,!0,this)};DvtAfMenu._updateDropdown=function(a,b){a._afMenuDropDown&&a.removeChild(a._afMenuDropDown);b&&(a.contains(b)||a.addChild(b));a._afMenuDropDown=b};
DvtAfMenu.prototype._getMenuDropdownContainer=function(a){var b=this.getAfContext().getMenuDropdownContainer();a&&!b&&(b=this.getDisplayObj());return b};DvtAfMenu.prototype.CreateButton=function(a){a=DvtAfMenu.superclass.CreateButton.call(this,a);a.setToggleEnabled(!0);return a};DvtAfMenu.prototype.handleKeyboardEvent=function(a){a.keyCode==dvt.KeyboardEvent.ESCAPE?this.hideDropdown():DvtAfMenu.superclass.handleKeyboardEvent.call(this,a)};
var DvtAfImage=function(){this.Init()};dvt.Obj.createSubclass(DvtAfImage,DvtAfComponent,"DvtAfImage");DvtAfImage.TAG_NAME="i";DvtAfComponentFactory.registerComponent(DvtAfImage.TAG_NAME,DvtAfImage);DvtAfImage.ATTR_SOURCE="source";DvtAfImage.prototype.setSrc=function(a){this.setProperty(DvtAfImage.ATTR_SOURCE,a);this.getContentShape()&&this.getContentShape().setSrc(a)};DvtAfImage.prototype.getSrc=function(){return this.getProperty(DvtAfImage.ATTR_SOURCE)};DvtAfImage.prototype.GetDefaultStyles=function(){return DvtAfImage._afStyles};
DvtAfImage.prototype.SetDefaultStyles=function(a){DvtAfImage._afStyles=a};DvtAfImage.prototype.createContentShape=function(a){return new dvt.Image(a,this.getSrc(),0,0,1,1,this._getUniqueId())};DvtAfImage.prototype.renderSelfBeforeChildren=function(){DvtAfImage.superclass.renderSelfBeforeChildren.call(this);if(this.getSrc()){var a=this.getContentShape();a.setX(this.getCX());a.setY(this.getCY());this._cw!==Number.MAX_VALUE&&a.setWidth(this._cw);this._ch!==Number.MAX_VALUE&&a.setHeight(this._ch)}};
DvtAfImage.prototype.adjustClientArea=function(a){this.getSrc()&&(dvt.ImageLoader.loadImage(this.getDvtContext(),this.getSrc(),this.createCallback(this.onImageLoaded))||(!this._getExplicitHeight(a)||!this._getExplicitWidth(a))&&this.RegisterImageCallback(this.getSrc()));DvtAfImage.superclass.adjustClientArea.call(this,a)};
DvtAfImage.prototype.onImageLoaded=function(a){if(null!=a&&(a.width&&a.height)&&(this._ew=this.getCalcWidth(a.width),this._eh=this.getCalcHeight(a.height),this._aw=this._ew,this._ah=this._eh,a=this.getContentShape()))a.setWidth(this._ew),a.setHeight(this._eh)};DvtAfImage.prototype.getTagName=function(){return DvtAfImage.TAG_NAME};DvtAfImage.prototype.registerAsTabStop=function(){this.getAfContext().registerTabStop(this)};
var DvtAfMarker=function(){this.Init()};dvt.Obj.createSubclass(DvtAfMarker,DvtAfComponent,"DvtAfMarker");DvtAfMarker.TAG_NAME="mk";DvtAfComponentFactory.registerComponent(DvtAfMarker.TAG_NAME,DvtAfMarker);DvtAfMarker.MARKER_LABEL_PADDING=2;DvtAfMarker.ATTR_LABEL_DISPLAY="labelDisplay";DvtAfMarker.ATTR_LABEL_POSITION="labelPosition";DvtAfMarker.ATTR_LABEL_STYLE="labelStyle";DvtAfMarker.ATTR_VALUE="value";DvtAfMarker.ATTR_SCALE_X="scaleX";DvtAfMarker.ATTR_SCALE_Y="scaleY";DvtAfMarker.ATTR_SHAPE="shape";
DvtAfMarker.ATTR_SHAPE_PATH="shapePath";DvtAfMarker.ATTR_FILL_COLOR="fillColor";DvtAfMarker.ATTR_FILL_PATTERN="fillPattern";DvtAfMarker.ATTR_GRADIENT_EFFECT="gradientEffect";DvtAfMarker.ATTR_OPACITY="opacity";DvtAfMarker.ATTR_WIDTH="width";DvtAfMarker.ATTR_HEIGHT="height";DvtAfMarker.ATTR_X="x";DvtAfMarker.ATTR_Y="y";DvtAfMarker.ATTR_BORDER_STYLE="borderStyle";DvtAfMarker.ATTR_BORDER_WIDTH="borderWidth";DvtAfMarker.ATTR_BORDER_COLOR="borderColor";DvtAfMarker.ATTR_BORDER_RADIUS="borderRadius";
DvtAfMarker.ATTR_SOURCE="source";DvtAfMarker.ATTR_SOURCE_HOVER="sourceHover";DvtAfMarker.ATTR_SOURCE_SELECTED="sourceSelected";DvtAfMarker.ATTR_SOURCE_HOVER_SELECTED="sourceHoverSelected";DvtAfMarker.ATTR_HAS_ACTION_LISTENER="hasActionListener";DvtAfMarker._BI_DEFAULT_MARKER_SIZE=9;DvtAfMarker.CIRCLE="c";DvtAfMarker.SQUARE="s";DvtAfMarker.DIAMOND="d";DvtAfMarker.TRIANGLE_UP="tu";DvtAfMarker.TRIANGLE_DOWN="td";DvtAfMarker.PLUS="p";DvtAfMarker.HUMAN="h";DvtAfMarker.RECTANGLE="r";
DvtAfMarker.ROUNDED_RECT="rr";DvtAfMarker._markerTypeMap={c:dvt.SimpleMarker.CIRCLE,s:dvt.SimpleMarker.SQUARE,d:dvt.SimpleMarker.DIAMOND,tu:dvt.SimpleMarker.TRIANGLE_UP,td:dvt.SimpleMarker.TRIANGLE_DOWN,p:dvt.SimpleMarker.PLUS,h:dvt.SimpleMarker.HUMAN,r:dvt.SimpleMarker.RECTANGLE,rr:dvt.SimpleMarker.RECTANGLE};
DvtAfMarker._markerFillPatternMap={smallDiagonalLeft:dvt.PatternFill.SM_DIAG_UP_LT,largeDiagonalLeft:dvt.PatternFill.LG_DIAG_UP_LT,smallDiagonalRight:dvt.PatternFill.SM_DIAG_UP_RT,largeDiagonalRight:dvt.PatternFill.LG_DIAG_UP_RT,smallCrosshatch:dvt.PatternFill.SM_CROSSHATCH,largeCrosshatch:dvt.PatternFill.LG_CROSSHATCH,smallChecker:dvt.PatternFill.SM_CHECK,largeChecker:dvt.PatternFill.LG_CHECK,smallTriangle:dvt.PatternFill.SM_TRIANGLE_CHECK,largeTriangle:dvt.PatternFill.LG_TRIANGLE_CHECK,smallDiamond:dvt.PatternFill.SM_DIAMOND_CHECK,
largeDiamond:dvt.PatternFill.LG_DIAMOND_CHECK};DvtAfMarker.prototype.getShape=function(){return this.getProperty(DvtAfMarker.ATTR_SHAPE)};DvtAfMarker.prototype.setShape=function(a){this.setProperty(DvtAfMarker.ATTR_SHAPE,a)};DvtAfMarker.prototype.getShapePath=function(){return this.getProperty(DvtAfMarker.ATTR_SHAPE_PATH)};DvtAfMarker.prototype.setShapePath=function(a){this.setProperty(DvtAfMarker.ATTR_SHAPE_PATH,a)};DvtAfMarker.prototype.getValue=function(){return this.getProperty(DvtAfMarker.ATTR_VALUE)};
DvtAfMarker.prototype.setValue=function(a){this.setProperty(DvtAfMarker.ATTR_VALUE,a)};DvtAfMarker.prototype.getFillColor=function(){return this.getProperty(DvtAfMarker.ATTR_FILL_COLOR)};DvtAfMarker.prototype.setFillColor=function(a){this.setProperty(DvtAfMarker.ATTR_FILL_COLOR,a)};DvtAfMarker.prototype.getFillPattern=function(){return this.getProperty(DvtAfMarker.ATTR_FILL_PATTERN)};DvtAfMarker.prototype.setFillPattern=function(a){this.setProperty(DvtAfMarker.ATTR_FILL_PATTERN,a)};
DvtAfMarker.prototype.getScaleX=function(){return this.getProperty(DvtAfMarker.ATTR_SCALE_X)};DvtAfMarker.prototype.setScaleX=function(a){this.setProperty(DvtAfMarker.ATTR_SCALE_X,a)};DvtAfMarker.prototype.getScaleY=function(){return this.getProperty(DvtAfMarker.ATTR_SCALE_Y)};DvtAfMarker.prototype.setScaleY=function(a){this.setProperty(DvtAfMarker.ATTR_SCALE_Y,a)};DvtAfMarker.prototype.getLabelStyle=function(){return this.getProperty(DvtAfMarker.ATTR_LABEL_STYLE)};
DvtAfMarker.prototype.setLabelStyle=function(a){this.setProperty(DvtAfMarker.ATTR_LABEL_STYLE,a)};DvtAfMarker.prototype.getLabelPosition=function(){return this.getProperty(DvtAfMarker.ATTR_LABEL_POSITION)};DvtAfMarker.prototype.setLabelPosition=function(a){this.setProperty(DvtAfMarker.ATTR_LABEL_POSITION,a)};DvtAfMarker.prototype.getLabelDisplay=function(){return this.getProperty(DvtAfMarker.ATTR_LABEL_DISPLAY)};
DvtAfMarker.prototype.setLabelDisplay=function(a){this.setProperty(DvtAfMarker.ATTR_LABEL_DISPLAY,a)};DvtAfMarker.prototype.getGradientEffect=function(){return this.getProperty(DvtAfMarker.ATTR_GRADIENT_EFFECT)};DvtAfMarker.prototype.setGradientEffect=function(a){this.setProperty(DvtAfMarker.ATTR_GRADIENT_EFFECT,a)};DvtAfMarker.prototype.getOpacity=function(){return this.getProperty(DvtAfMarker.ATTR_OPACITY)};DvtAfMarker.prototype.setOpacity=function(a){this.setProperty(DvtAfMarker.ATTR_OPACITY,a)};
DvtAfMarker.prototype.getBorderStyle=function(){return this.getProperty(DvtAfMarker.ATTR_BORDER_STYLE)};DvtAfMarker.prototype.setBorderStyle=function(a){this.setProperty(DvtAfMarker.ATTR_BORDER_STYLE,a)};DvtAfMarker.prototype.getBorderWidth=function(){return this.getFloatProp(DvtAfMarker.ATTR_BORDER_WIDTH)};DvtAfMarker.prototype.setBorderWidth=function(a){this.setProperty(DvtAfMarker.ATTR_BORDER_WIDTH,a)};DvtAfMarker.prototype.getBorderColor=function(){return this.getProperty(DvtAfMarker.ATTR_BORDER_COLOR)};
DvtAfMarker.prototype.setBorderColor=function(a){this.setProperty(DvtAfMarker.ATTR_BORDER_COLOR,a)};DvtAfMarker.prototype.getBorderRadius=function(){return this.getProperty(DvtAfMarker.ATTR_BORDER_RADIUS)};DvtAfMarker.prototype.setBorderRadius=function(a){this.setProperty(DvtAfMarker.ATTR_BORDER_RADIUS,a)};DvtAfMarker.prototype.getWidth=function(){return this.getFloatProp(DvtAfMarker.ATTR_WIDTH)};DvtAfMarker.prototype.setWidth=function(a){this.setProperty(DvtAfMarker.ATTR_WIDTH,a)};
DvtAfMarker.prototype.getHeight=function(){return this.getFloatProp(DvtAfMarker.ATTR_HEIGHT)};DvtAfMarker.prototype.setHeight=function(a){this.setProperty(DvtAfMarker.ATTR_HEIGHT,a)};DvtAfMarker.prototype.getSource=function(){return this.getProperty(DvtAfMarker.ATTR_SOURCE)};DvtAfMarker.prototype.setSource=function(a){this.setProperty(DvtAfMarker.ATTR_SOURCE,a)};DvtAfMarker.prototype.getSourceHover=function(){return this.getProperty(DvtAfMarker.ATTR_SOURCE_HOVER)};
DvtAfMarker.prototype.setSourceHover=function(a){this.setProperty(DvtAfMarker.ATTR_SOURCE_HOVER,a)};DvtAfMarker.prototype.getSourceSelected=function(){return this.getProperty(DvtAfMarker.ATTR_SOURCE_SELECTED)};DvtAfMarker.prototype.setSourceSelected=function(a){this.setProperty(DvtAfMarker.ATTR_SOURCE_SELECTED,a)};DvtAfMarker.prototype.getSourceHoverSelected=function(){return this.getProperty(DvtAfMarker.ATTR_SOURCE_HOVER_SELECTED)};
DvtAfMarker.prototype.setSourceHoverSelected=function(a){this.setProperty(DvtAfMarker.ATTR_SOURCE_HOVER_SELECTED,a)};DvtAfMarker.prototype.getX=function(){return this.getFloatProp(DvtAfMarker.ATTR_X,0)};DvtAfMarker.prototype.getY=function(){return this.getFloatProp(DvtAfMarker.ATTR_Y,0)};
DvtAfMarker.prototype.createDisplayObj=function(a){if(!this.renderMe())return null;this._parentNode=a.getParentNode();this.setAfContext(a);var b=this.getDvtContext();this.registerAsTabStop();this.SaveContextCallback();var c=this._getUniqueId(),d=this.getWidth(),e=this.getHeight(),f=0,g=0;d&&!e?e=d:!d&&e?d=e:!d&&!e&&(e=d=DvtAfMarker._BI_DEFAULT_MARKER_SIZE);var h=this.getScaleX(),k=this.getScaleY(),d=h?h*d:d,e=k?k*e:e,l,h=this.getSource(),k=this.getShapePath();h?(h=[h,this.getSourceSelected(),this.getSourceHover(),
this.getSourceHoverSelected()],l=this.getBorderRadius()):k?(h=k,f=this.getX(),g=this.getY()):(h=this.getShape(),h||(h=DvtAfMarker.CIRCLE),l=this.getBorderRadius(),!l&&h==DvtAfMarker.ROUNDED_RECT&&(l=dvt.SimpleMarker.DEFAULT_BORDER_RADIUS),h=DvtAfMarker._markerTypeMap[h]);f+=0.5*d;g+=0.5*e;h instanceof Array?(d=new dvt.ImageMarker(b,f,g,d,e,l,h[0],h[1],h[2],h[3]),d.setPreserveAspectRatio("none")):d=new dvt.SimpleMarker(b,h,a.getSkinName(),f,g,d,e,l,!1);e=this.getProperty(DvtAfMarker.ATTR_HAS_ACTION_LISTENER);
if(!e){g=this.getShowPopupBehaviors();if(dvt.ArrayUtils.isArray(g))for(l=0;l<g.length;l++)if(g[l]&&"click"==g[l].getTriggerType()){e=!0;break}if(!e&&(g=this.getClientBehaviors(),dvt.ArrayUtils.isArray(g)))for(l=0;l<g.length;l++)if(g[l]&&"click"==g[l].getTriggerType()){e=!0;break}}d.setCursor(e?dvt.SelectionEffectUtils.getSelectingCursor():null);d._prop=this._prop;e=this.getFillColor();l=this.getOpacity();g=this.getGradientEffect();(f=this.getFillPattern())&&(f=DvtAfMarker._markerFillPatternMap[f]);
f?d.setFill(new dvt.PatternFill(f,e)):"auto"==g?d.setFill(dvt.MarkerGradient.createMarkerGradient(e?e:"#000000",d,l?l:1)):(e||l)&&d.setSolidFill(e,l);if(!this.getShapePath()&&(e=this.getBorderStyle())&&"none"!=e)l=(l=this.getBorderWidth())?l:1,g=this.getBorderColor(),l=new dvt.SolidStroke(g?g:"#000000",1,l),l.setType(dvt.Stroke.convertTypeString(e)),d.setStroke(l);this._marker=d;e=this.getValue();l=this.getLabelDisplay()&&"off"===this.getLabelDisplay()?!1:!0;e&&l?(e=new dvt.OutputText(b,e,0,0,c+"_lb"),
l=this.getLabelStyle(),(a=DvtAfComponentFactory.CACHE_STYLES?a.GetCSSStyle(this.getTagName(),"",l,!0):l?this.createTextStyles(new dvt.CSSStyle(l),DvtAfStyleUtils.getDefaultTextStyle()):DvtAfStyleUtils.getDefaultTextStyle())&&e.setCSSStyle(a),this._label=e,b=new dvt.Container(b,c),"top"===this.getLabelPosition()?(b.addChild(e),b.addChild(d)):(b.addChild(d),b.addChild(e)),this._bgShape=b):this._bgShape=d;this._bgShape._afComp=this;return this._bgShape};DvtAfMarker.prototype.getMarkerDisplayObj=function(){return this._marker};
DvtAfMarker.prototype.setTranslateX=function(a){this._bgShape.setTranslateX(a)};DvtAfMarker.prototype.setTranslateY=function(a){this._bgShape.setTranslateY(a)};
DvtAfMarker.prototype.render=function(a){if(this.renderMe()){var b=this.getDisplayObj();(this.getShortDesc()||this.getProperty(DvtAfMarker.ATTR_HAS_ACTION_LISTENER)||this.getShowPopupBehaviors()||this.getClientBehaviors())&&this.associate(b,this);var c=this._marker,d=this._label,b=this.getX(),e=this.getY(),f=c.getWidth(),g=c.getHeight();if(d)if(0===f&&0===g)this._setBounds(a,b,e,0,0);else{var h=d.getDimensions();switch(this.getLabelPosition()){case "top":f>h.w?(d.setX(f/2),d.alignCenter()):c.setCx(h.w/
2);c.setCy(h.h+DvtAfMarker.MARKER_LABEL_PADDING+g/2);c=Math.max(f,h.w);g=h.h+DvtAfMarker.MARKER_LABEL_PADDING+g;break;case "bottom":f>h.w?(d.setX(f/2),d.alignCenter()):c.setCx(h.w/2);d.setY(g+DvtAfMarker.MARKER_LABEL_PADDING);c=Math.max(f,h.w);g=g+DvtAfMarker.MARKER_LABEL_PADDING+h.h;break;case "left":g>h.h?(d.setY(g/2),d.alignMiddle()):c.setCy(h.h/2);c.setCx(h.w+DvtAfMarker.MARKER_LABEL_PADDING+f/2);c=h.w+DvtAfMarker.MARKER_LABEL_PADDING+f;g=Math.max(g,h.h);break;case "right":g>h.h?(d.setY(g/2),
d.alignMiddle()):c.setCy(h.h/2);d.setX(f+DvtAfMarker.MARKER_LABEL_PADDING);c=f+DvtAfMarker.MARKER_LABEL_PADDING+h.w;g=Math.max(g,h.h);break;default:f>h.w?(d.setX(f/2),d.alignCenter()):c.setCx(h.w/2),g>h.h?(d.setY(g/2),d.alignMiddle()):c.setCy(h.h/2),c=Math.max(f,h.w),g=Math.max(g,h.h)}this._setBounds(a,b,e,c,g)}else this._setBounds(a,b,e,f,g)}};DvtAfMarker.prototype.getTagName=function(){return DvtAfMarker.TAG_NAME};DvtAfMarker.prototype.GetDefaultStyles=function(){return DvtAfMarker._afStyles};
DvtAfMarker.prototype.SetDefaultStyles=function(a){DvtAfMarker._afStyles=a};DvtAfMarker.prototype._render=function(a,b){if(this.renderMe()){var c=this.getDisplayObj();(this.getShortDesc()||this.getProperty(DvtAfMarker.ATTR_HAS_ACTION_LISTENER)||this.getShowPopupBehaviors()||this.getClientBehaviors())&&this.associate(c,this);DvtAfComponent._renderComp(this.getAfContext(),this,a,b)}};DvtAfMarker.prototype.renderSelfBeforeChildren=function(){};
DvtAfMarker.prototype._setBounds=function(a,b,c,d,e){this._dim=new dvt.Rectangle(b,c,d,e);this._addClipPathIfNeeded(a,0,0,a.getAvailableWidth(),this._dim.w,a.getAvailableHeight(),this._dim.h)};DvtAfMarker.prototype.isCommandComponent=function(){return!0};DvtAfMarker.prototype.isClickEventPropagationStopped=function(){return this.getProperty(DvtAfMarker.ATTR_HAS_ACTION_LISTENER)};DvtAfMarker.prototype.registerAsTabStop=function(){this.getAfContext().registerTabStop(this)};
DvtAfMarker.prototype.GetClipPathDimensions=function(){var a=this.getAfContext();return new dvt.Rectangle(0,0,Math.min(a.getAvailableWidth(),this._dim.w),Math.min(a.getAvailableHeight(),this._dim.h))};DvtAfMarker.convertShapeString=function(a){return DvtAfMarker._markerTypeMap[a]};
var DvtAfOutputText=function(){this.Init()};dvt.Obj.createSubclass(DvtAfOutputText,DvtAfComponent,"DvtAfOutputText");DvtAfOutputText.TAG_NAME="ot";DvtAfComponentFactory.registerComponent(DvtAfOutputText.TAG_NAME,DvtAfOutputText);DvtAfOutputText.ATTR_VALUE="value";DvtAfOutputText.ATTR_NO_WRAP="noWrap";DvtAfOutputText.ATTR_TRUNCATE_AT="truncateAt";DvtAfOutputText.prototype.setNoWrap=function(a){this.setProperty(DvtAfOutputText.ATTR_NO_WRAP,a)};
DvtAfOutputText.prototype.isNoWrap=function(){return this.getBooleanProp(DvtAfOutputText.ATTR_NO_WRAP,!1)};DvtAfOutputText.prototype.setTruncateAt=function(a){this.setProperty(DvtAfOutputText.ATTR_TRUNCATE_AT,a)};DvtAfOutputText.prototype.getTruncateAt=function(){return this.getIntegerProp(DvtAfOutputText.ATTR_TRUNCATE_AT,0)};DvtAfOutputText.prototype.setValue=function(a){this.setProperty(DvtAfOutputText.ATTR_VALUE,a);this.getContentShape()&&this.getContentShape().setTextString(a)};
DvtAfOutputText.prototype.getValue=function(){return this.getProperty(DvtAfOutputText.ATTR_VALUE)};DvtAfOutputText.prototype.GetDefaultStyles=function(){return DvtAfOutputText._afStyles};DvtAfOutputText.prototype.SetDefaultStyles=function(a){DvtAfOutputText._afStyles=a};DvtAfOutputText.prototype.createContentShape=function(a){return this.createTextShape(!this.isNoWrap(),this.getValue(),null)};
DvtAfOutputText.prototype.renderSelfBeforeChildren=function(){DvtAfOutputText.superclass.renderSelfBeforeChildren.call(this);var a=this.getValue();if(a){var b=this.getContentShape(),c=this._getMaximumCharacters(),d=!1;c&&a.length>c&&(d=!0,b.setTextString(a.substring(0,c-3)+dvt.OutputText.ELLIPSIS));if(dvt.TextUtils.fitText(b,this._cw,this._ch,b.getParent())){d=d||b.isTruncated();a=b.getDimensions();switch(this._getTextAlignment()){case "left":b.setX(this.getCX());b.alignLeft();break;case "center":b.setX(this.getCX()+
a.w/2);b.alignCenter();break;case "right":b.setX(this.getCX()+a.w),b.alignRight()}b.setY(this.getCY());d||this._addClipPathIfNeeded(this.getAfContext(),this.getCX(),this.getCY(),this._aw,a.w,this._ah,a.h,b);this._cw=this.getCalcWidth(a.w);this._ch=this.getCalcHeight(a.h);d&&this.associate(b,this)}}else this._ch=this._cw=0};
DvtAfOutputText.prototype._getTextAlignment=function(){var a=this.getCSSStyle().getStyle("text-align"),b=dvt.Agent.isRightToLeft(this.getDvtContext());switch(a){case "center":case "right":case "left":break;case "end":a=b?"left":"right";break;default:a=b?"right":"left"}return a};DvtAfOutputText.prototype.getTooltip=function(){var a=DvtAfOutputText.superclass.getTooltip.call(this);if(!a){var b=this.getContentShape();if(b&&(b.isTruncated()||this._isTruncationForced()))return this.getValue()}return a};
DvtAfOutputText.prototype._getMaximumCharacters=function(){var a=this.getValue(),b=this.getTruncateAt();return a&&b?Math.max(15,b):0};DvtAfOutputText.prototype._isTruncationForced=function(){var a=this._getMaximumCharacters();if(a){var b=this.getValue();if(b)return b.length>a}return!1};DvtAfOutputText.prototype.getTagName=function(){return DvtAfOutputText.TAG_NAME};DvtAfOutputText.prototype.registerAsTabStop=function(){this.getAfContext().registerTabStop(this)};
DvtAfOutputText.prototype.getAriaLabel=function(){var a=this.getShortDesc();a||(a=this.getValue());return a};DvtAfOutputText.prototype.getAriaRole=function(){return"group"};
var DvtAfOutputFormatted=function(){this.Init()};dvt.Obj.createSubclass(DvtAfOutputFormatted,DvtAfComponent,"DvtAfOutputFormatted");DvtAfOutputFormatted.TAG_NAME="otf";DvtAfComponentFactory.registerComponent(DvtAfOutputFormatted.TAG_NAME,DvtAfOutputFormatted);DvtAfOutputFormatted.ATTR_VALUE="value";DvtAfOutputFormatted.prototype.setValue=function(a){this.setProperty(DvtAfOutputFormatted.ATTR_VALUE,a);this.getContentShape()&&this.getContentShape().setText(a)};
DvtAfOutputFormatted.prototype.getValue=function(){return this.getProperty(DvtAfOutputFormatted.ATTR_VALUE)};DvtAfOutputFormatted.prototype.GetDefaultStyles=function(){return DvtAfOutputFormatted._afStyles};DvtAfOutputFormatted.prototype.SetDefaultStyles=function(a){DvtAfOutputFormatted._afStyles=a};
DvtAfOutputFormatted.prototype.createContentShape=function(a){var b=this._getUniqueId();a=new DvtTextFormatted(a,0,0,b);(b=this.createTextStyles(null,null))&&a.setCSSStyle(b);a.setText(this.getValue());return a};
DvtAfOutputFormatted.prototype.renderSelfBeforeChildren=function(){DvtAfOutputFormatted.superclass.renderSelfBeforeChildren.call(this);var a=this.getContentShape();a.setMaxWidth(this._cw);a.setX(this.getCX());a.setY(this.getCY());var b=a.getCachedDims();this._addClipPathIfNeeded(this.getAfContext(),this.getCX(),this.getCY(),this._aw,b.w,this._ah,b.h,a);this._cw=this.getCalcWidth(b.w);this._ch=this.getCalcHeight(b.h)};DvtAfOutputFormatted.prototype.getTagName=function(){return DvtAfOutputFormatted.TAG_NAME};
DvtAfOutputFormatted.prototype.registerAsTabStop=function(){this.getAfContext().registerTabStop(this)};DvtAfOutputFormatted.prototype.getAriaLabel=function(){var a=this.getShortDesc();a||(a=this.getValue());return a};DvtAfOutputFormatted.prototype.getAriaRole=function(){return"group"};
var DvtAfPanelGroupLayout=function(){this.Init()};dvt.Obj.createSubclass(DvtAfPanelGroupLayout,DvtAfComponent,"DvtAfPanelGroupLayout");DvtAfPanelGroupLayout.TAG_NAME="pgl";DvtAfComponentFactory.registerComponent(DvtAfPanelGroupLayout.TAG_NAME,DvtAfPanelGroupLayout);DvtAfPanelGroupLayout.ATTR_LAYOUT="layout";DvtAfPanelGroupLayout.ATTR_VALIGN="valign";DvtAfPanelGroupLayout.ATTR_HALIGN="halign";DvtAfPanelGroupLayout.LAYOUT_VERTICAL="vertical";DvtAfPanelGroupLayout.LAYOUT_HORIZONTAL="horizontal";
DvtAfPanelGroupLayout.LAYOUT_SCROLL="scroll";DvtAfPanelGroupLayout.prototype.getLayout=function(){return this.getStringProp(DvtAfPanelGroupLayout.ATTR_LAYOUT,DvtAfPanelGroupLayout.LAYOUT_HORIZONTAL)};DvtAfPanelGroupLayout.prototype.setLayout=function(a){this.setProperty(DvtAfPanelGroupLayout.ATTR_LAYOUT,a)};DvtAfPanelGroupLayout.prototype.getHAlign=function(){return this.getStringProp(DvtAfPanelGroupLayout.ATTR_HALIGN,DvtAfComponent.HALIGN_START)};
DvtAfPanelGroupLayout.prototype.setHAlign=function(a){this.setProperty(DvtAfPanelGroupLayout.ATTR_HALIGN,a)};DvtAfPanelGroupLayout.prototype.getVAlign=function(){return this.getStringProp(DvtAfPanelGroupLayout.ATTR_VALIGN,DvtAfComponent.VALIGN_TOP)};DvtAfPanelGroupLayout.prototype.setVAlign=function(a){this.setProperty(DvtAfPanelGroupLayout.ATTR_VALIGN,a)};DvtAfPanelGroupLayout.prototype.GetDefaultStyles=function(){return DvtAfPanelGroupLayout._afStyles};
DvtAfPanelGroupLayout.prototype.SetDefaultStyles=function(a){DvtAfPanelGroupLayout._afStyles=a};DvtAfPanelGroupLayout.prototype.createDisplayObj=function(a){var b=DvtAfPanelGroupLayout.superclass.createDisplayObj.call(this,a);this.addChildDisplayObjs(a,this._contentPane);return b};DvtAfPanelGroupLayout.prototype.createContentShape=function(a){this._contentPane=new dvt.Rect(a,0,0,0,0,this._getUniqueId());this._contentPane.setInvisibleFill();a=this.getCSSStyle();this._contentPane.setCSSStyle(a);return this._contentPane};
DvtAfPanelGroupLayout.prototype.getContentShape=function(){return this._contentPane};DvtAfPanelGroupLayout.prototype.createBackgroundShape=function(a,b){return b};DvtAfPanelGroupLayout.prototype.renderSelfBeforeChildren=function(){DvtAfPanelGroupLayout.superclass.renderSelfBeforeChildren.call(this);this._acw=this._cw;this._ach=this._ch};
DvtAfPanelGroupLayout.prototype.renderChild=function(a){a._render?a._render(this._acw,this._ach):a.render&&DvtAfComponent._renderComp(this.getAfContext(),a,this._acw,this._ach);a=DvtAfComponent.getDimensions(a);this.getLayout()==DvtAfPanelGroupLayout.LAYOUT_VERTICAL?a.h!==Number.MAX_VALUE&&(this._ach-=a.h):a.w!==Number.MAX_VALUE&&(this._acw-=a.w)};
DvtAfPanelGroupLayout.prototype.doLayout=function(){this.getLayout()==DvtAfPanelGroupLayout.LAYOUT_VERTICAL?DvtAfComponentUtils.doVerticalLayout(this.getAfContext(),this):DvtAfComponentUtils.doHorizontalLayout(this.getAfContext(),this)};DvtAfPanelGroupLayout.prototype.getTagName=function(){return DvtAfPanelGroupLayout.TAG_NAME};
var DvtAfPanelFormLayout=function(){this.Init()};dvt.Obj.createSubclass(DvtAfPanelFormLayout,DvtAfComponent,"DvtAfPanelFormLayout");DvtAfPanelFormLayout.TAG_NAME="pfl";DvtAfComponentFactory.registerComponent(DvtAfPanelFormLayout.TAG_NAME,DvtAfPanelFormLayout);DvtAfPanelFormLayout.prototype.GetDefaultStyles=function(){return DvtAfPanelFormLayout._afStyles};DvtAfPanelFormLayout.prototype.SetDefaultStyles=function(a){DvtAfPanelFormLayout._afStyles=a};
DvtAfPanelFormLayout.prototype._getContentCellStyle=function(){return 1<DvtAfPanelFormLayout._afStyles.length?DvtAfPanelFormLayout._afStyles[1]:DvtAfPanelFormLayout._afStyles[0]};DvtAfPanelFormLayout.prototype._getLabelCellStyle=function(){return 2<DvtAfPanelFormLayout._afStyles.length?DvtAfPanelFormLayout._afStyles[2]:DvtAfPanelFormLayout._afStyles[0]};
DvtAfPanelFormLayout.prototype.createDisplayObj=function(a){var b=DvtAfPanelFormLayout.superclass.createDisplayObj.call(this,a);this.addChildDisplayObjs(a,this._contentPane);return b};DvtAfPanelFormLayout.prototype.createContentShape=function(a){this._contentPane=new dvt.Rect(a,0,0,0,0,this._getUniqueId()+"_cp");this._contentPane.setFill(null);a=this.getCSSStyle();this._contentPane.setCSSStyle(a);return this._contentPane};DvtAfPanelFormLayout.prototype.getContentShape=function(){return this._contentPane};
DvtAfPanelFormLayout.prototype.renderSelfBeforeChildren=function(){DvtAfPanelFormLayout.superclass.renderSelfBeforeChildren.call(this);this._acw=this._cw;this._ach=this._ch};
DvtAfPanelFormLayout.prototype.renderChildren=function(){for(var a,b=0,c=this.getNumChildren(),d=0;d<c;d++)if((a=this.getChildAt(d))&&a instanceof DvtAfPanelLabelAndMessage)a.MergeUnderLabelStyle(this._getLabelCellStyle()),a.MergeUnderContentStyle(this._getContentCellStyle()),a=a.getLabelDimensions(),b=Math.max(a.w,b);this._maxLabelWidth=b;DvtAfPanelFormLayout.superclass.renderChildren.call(this)};
DvtAfPanelFormLayout.prototype.renderChild=function(a){var b=0,c=this._getContentCellStyle();a instanceof DvtAfPanelLabelAndMessage&&(b=a.getLabelDimensions(),b=this._maxLabelWidth-b.w,a._getLabelStyle()&&(c=a._getLabelStyle()),a._setMaxLabelWidth(this._maxLabelWidth));var d=c.getPadding(dvt.CSSStyle.PADDING_TOP),e=c.getPadding(dvt.CSSStyle.PADDING_LEFT),f=0;a instanceof DvtAfPanelLabelAndMessage||(f=c.getPadding(dvt.CSSStyle.PADDING_RIGHT));c=c.getPadding(dvt.CSSStyle.PADDING_BOTTOM);b=this._acw-
b-e-f;a._render?a._render(b,this._ach):a.render&&DvtAfComponent._renderComp(this.getAfContext(),a,b,this._ach);b=DvtAfComponent.getDimensions(a);this._ach-=b.h-d-c};
DvtAfPanelFormLayout.prototype.doLayout=function(){for(var a=this.getDvtContext(),b=[],c=this.getNumChildren(),d,e=0,f=0,g=0;g<c;g++)if(d=this.getChildAt(g),!d.renderMe||d.renderMe()){var h=DvtAfComponent.getDimensions(d);b.push(h);d instanceof DvtAfPanelLabelAndMessage&&(f=Math.max(f,d._getContentX()))}for(var k,l=0,m=0,n=0,p=0,q=this.getCX(),r=this.getCY(),s,t=!1,g=0;g<c;g++)d=this.getChildAt(g),k=this._getContentCellStyle(),h=b[g],d instanceof DvtAfPanelLabelAndMessage?(d._getLabelStyle()&&(k=
d._getLabelStyle()),k&&(m=k.getPadding(dvt.CSSStyle.PADDING_TOP),n=k.getPadding(dvt.CSSStyle.PADDING_BOTTOM),t=k.isTextAlignEnd(a),p=dvt.Agent.isRightToLeft(a)?k.getPadding(dvt.CSSStyle.PADDING_RIGHT):k.getPadding(dvt.CSSStyle.PADDING_LEFT)),s=e+p,t&&(s+=f-d._getContentX()),k=r+m,r+=h.h+n,s+h.w>l&&(l=s+h.w),DvtAfComponent._setTranslateGroup(d,s,k)):d instanceof DvtAfComponent&&(s=q+p+(dvt.Agent.isRightToLeft(a)?this._maxLabelWidth:0),k=r+m,r+=h.h+n,s+h.w>l&&(l=s+h.w),DvtAfComponent._setTranslateGroup(d,
s,k)),h.x=s;if(dvt.Agent.isRightToLeft(a)){e=this._ew&&this._ew!==Number.MAX_VALUE||l>this.getCX()+this._cw?this.getCX()+this._cw:l;for(g=0;g<c;g++)if(d=this.getChildAt(g),!d.renderMe||d.renderMe())h=b[g],s=e-(h.x-this.getCX())-h.w,d.setTranslateX(s)}h=this.getContentShape().getDimensions();this._cw=this.getCalcWidth(h.w);this._ch=this.getCalcHeight(h.h)};
DvtAfPanelFormLayout.prototype.ResolveEm=function(a){DvtAfPanelFormLayout.superclass.ResolveEm.call(this,a);this._cssStyle=a;this._contentCellStyle||(this._contentCellStyle=DvtAfPanelFormLayout._afStyles[1].clone());this.resolveEmUnit(this._contentCellStyle,this);this._labelCellStyle||(this._labelCellStyle=DvtAfPanelFormLayout._afStyles[2].clone());this.resolveEmUnit(this._labelCellStyle,this)};DvtAfPanelFormLayout.prototype.getTagName=function(){return DvtAfPanelFormLayout.TAG_NAME};
var DvtAfPanelLabelAndMessage=function(){this.Init()};dvt.Obj.createSubclass(DvtAfPanelLabelAndMessage,DvtAfComponent,"DvtAfPanelLabelAndMessage");DvtAfPanelLabelAndMessage.TAG_NAME="plm";DvtAfComponentFactory.registerComponent(DvtAfPanelLabelAndMessage.TAG_NAME,DvtAfPanelLabelAndMessage);DvtAfPanelLabelAndMessage.ATTR_LABEL="label";DvtAfPanelLabelAndMessage.ATTR_LABEL_STYLE="labelStyle";DvtAfPanelLabelAndMessage._HPADDING=5;DvtAfPanelLabelAndMessage.prototype.getLabel=function(){return this.getStringProp(DvtAfPanelLabelAndMessage.ATTR_LABEL)};
DvtAfPanelLabelAndMessage.prototype.setLabel=function(a){this.setProperty(DvtAfPanelLabelAndMessage.ATTR_LABEL,a)};DvtAfPanelLabelAndMessage.prototype.getLabelStyle=function(){return this.getStringProp(DvtAfPanelLabelAndMessage.ATTR_LABEL_STYLE)};DvtAfPanelLabelAndMessage.prototype.setLabelStyle=function(a){var b=this._getDefaultLabelCSSStyle().clone();b.parseInlineStyle(a);this._setLabelStyle(b);this.setProperty(DvtAfPanelLabelAndMessage.ATTR_LABEL_STYLE,b.toString())};
DvtAfPanelLabelAndMessage.prototype.GetDefaultStyles=function(){return DvtAfPanelLabelAndMessage._afStyles};DvtAfPanelLabelAndMessage.prototype.SetDefaultStyles=function(a){DvtAfPanelLabelAndMessage._afStyles=a};DvtAfPanelLabelAndMessage.prototype.createDisplayObj=function(a){var b=DvtAfPanelLabelAndMessage.superclass.createDisplayObj.call(this,a);this.addChildDisplayObjs(a,this._contentPane);return b};
DvtAfPanelLabelAndMessage.prototype.createContentShape=function(a){this._contentPane=new dvt.Rect(a,0,0,0,0,this._getUniqueId()+"_cp");this._contentPane.setFill(null);this._contentX=this._maxLabelWidth=0;a=this.getCSSStyle();this._contentPane.setCSSStyle(a);if(a=this.getLabel()){var b=this._getLabelStyle();this._labelField=this.createTextShape(!1,a,b,this._getDefaultLabelCSSStyle());this._contentPane.addChild(this._labelField)}return this._contentPane};
DvtAfPanelLabelAndMessage.prototype.getContentShape=function(){return this._contentPane};DvtAfPanelLabelAndMessage.prototype._getLabelField=function(){return this._labelField};DvtAfPanelLabelAndMessage.prototype._getDefaultLabelCSSStyle=function(){return 1<DvtAfPanelLabelAndMessage._afStyles.length?DvtAfPanelLabelAndMessage._afStyles[1]:null};
DvtAfPanelLabelAndMessage.prototype._getLabelStyle=function(){if(!this._labelStyle){var a=this._getDefaultLabelCSSStyle().clone(),b=DvtAfStyleUtils.getPLAMLabelStyle(this.getStyleClass());b&&a.merge(b);(b=this.getLabelStyle())&&a.parseInlineStyle(b);this._labelStyle=a}return this._labelStyle};DvtAfPanelLabelAndMessage.prototype._setLabelStyle=function(a){this._labelStyle=a};DvtAfPanelLabelAndMessage.prototype._getContentCellStyle=function(){return this._contentCellStyle};
DvtAfPanelLabelAndMessage.prototype._getContentStyle=function(){this._contentStyle||(this._contentStyle=this._getContentCellStyle().clone(),this._contentStyle.merge(this.getCSSStyle()));return this._contentStyle};DvtAfPanelLabelAndMessage.prototype.MergeUnderContentStyle=function(a){this._getContentStyle().mergeUnder(a)};DvtAfPanelLabelAndMessage.prototype.MergeUnderLabelStyle=function(a){this._getLabelStyle().mergeUnder(a)};
DvtAfPanelLabelAndMessage.prototype.ResolveEm=function(a){DvtAfPanelLabelAndMessage.superclass.ResolveEm.call(this,a);this._cssStyle=a;this._contentCellStyle||(this._contentCellStyle=DvtAfPanelLabelAndMessage._afStyles[2].clone());this.resolveEmUnit(this._contentCellStyle,this);null!=this._labelStyle&&this.resolveEmUnit(this._labelStyle,this)};DvtAfPanelLabelAndMessage.prototype._getContentX=function(){return this._contentX};
DvtAfPanelLabelAndMessage.prototype._setMaxLabelWidth=function(a){this._maxLabelWidth=a};DvtAfPanelLabelAndMessage.prototype.getLabelDimensions=function(){if(!this._labelDim){var a=this._getLabelField();this._labelDim=a?a.getDimensions():new dvt.Rectangle(0,0,0,0)}return this._labelDim};
DvtAfPanelLabelAndMessage.prototype.renderSelfBeforeChildren=function(){DvtAfPanelLabelAndMessage.superclass.renderSelfBeforeChildren.call(this);this._acw=this._cw;this._ach=this._ch;var a=this._getLabelField();if(a){a.setX(this.getCX());a.setY(this.getCY());dvt.TextUtils.fitText(a,this._acw,this._ach,a.getParent());var b=this.getLabelDimensions();a.isTruncated()&&(b.w=this._acw);this._acw-=b.w+this._getLabelPadding()}};
DvtAfPanelLabelAndMessage.prototype.renderChild=function(a){a._render?a._render(this._acw,this._ach):a.render&&DvtAfComponent._renderComp(this.getAfContext(),a,this._acw,this._ach);a=DvtAfComponent.getDimensions(a);this._acw-=a.w};
DvtAfPanelLabelAndMessage.prototype.doLayout=function(){var a=this.getNumChildren(),b=this._cw,c=this._ch,d=this.getParent();d instanceof DvtAfPanelFormLayout&&(b=d.getCalcWidth(d._cw),c=d.getCalcHeight(d._ch));for(var e,d=[],f=this.getLabelDimensions(),g=f.h,h=0,k=0;k<a;k++)if(e=this.getChildAt(k),!e.renderMe||e.renderMe()){var l=DvtAfComponent.getDimensions(e);e.getClipped()||h+l.w>b+dvt.Math.TOLERANCE||l.h>c+dvt.Math.TOLERANCE?(b&&e.setClipContainer(this),h+l.w>b?(h=b,l.w=b-h):h+=l.w,l.h>c?(g=
c,l.h=c):g=Math.max(g,l.h)):(g=Math.max(g,l.h),h+=l.w);d.push(l)}b=this.getStyle(dvt.CSSStyle.VERTICAL_ALIGN);b||(b=DvtAfComponent.VALIGN_TOP);var c=this.getCX(),h=this.getCY(),m,n,l=this._getLabelStyle();e=l.isTextAlignEnd(this.getDvtContext())?f.w:this._maxLabelWidth;var p=this._contentX=c+e+this._getLabelPadding();this.setCX(p);for(k=0;k<a;k++)if(d[k]&&(e=this.getChildAt(k),!e.renderMe||e.renderMe())){var q=d[k].w;m=d[k].h;b==DvtAfComponent.VALIGN_TOP?n=h:b==DvtAfComponent.VALIGN_MIDDLE?n=h+(this._ch-
m)/2:b==DvtAfComponent.VALIGN_BOTTOM&&(n=h+this._ch-m);m=p;p+=q;DvtAfComponent._setTranslateGroup(e,m,n)}n=this._getLabelField();if(dvt.Agent.isRightToLeft(this.getDvtContext())){n&&n.setX(p-f.w);p=p+c-this._getContentX();for(k=0;k<a;k++){e=this.getChildAt(k);if(!e.renderMe||e.renderMe())m=p-=d[k].w;e.setTranslateX(m)}}n&&(b=l.getStyle(dvt.CSSStyle.VERTICAL_ALIGN),null==b&&(b=DvtAfComponent.VALIGN_MIDDLE),b==DvtAfComponent.VALIGN_MIDDLE?n.setY(h+(g-f.h)/2):b==DvtAfComponent.VALIGN_BOTTOM&&n.setY(h+
g-f.h));l=dvt.DisplayableUtils.getDimensionsForced(this.getDvtContext(),this.getContentShape());this._cw=this.getCalcWidth(l.x+l.w);this._ch=this.getCalcHeight(l.y+l.h)};DvtAfPanelLabelAndMessage.prototype._getLabelPadding=function(){var a;return(a=dvt.Agent.isRightToLeft(this.getDvtContext())?this._getContentCellStyle():this._getLabelStyle())&&a.getPadding(dvt.CSSStyle.PADDING_RIGHT)?a.getPadding(dvt.CSSStyle.PADDING_RIGHT):DvtAfPanelLabelAndMessage._HPADDING};
DvtAfPanelLabelAndMessage.prototype.getTagName=function(){return DvtAfPanelLabelAndMessage.TAG_NAME};
DvtAfPanelLabelAndMessage.prototype.addClipPath=function(){if(this.noClipPath()){var a=this._cw;dvt.Agent.isRightToLeft(this.getDvtContext())&&(a-=this.getLabelDimensions().w+this._getLabelPadding());var b=this._ch,c=this.CreateNewContainerForChildren(),d,e=this.getDisplayObj();if(e!=c)for(var f=0;f<c.getNumChildren();f++)if(d=c.getChildAt(f),d==this._getLabelField()){e.addChild(d);break}d=new dvt.ClipPath(this._getUniqueId()+DvtAfComponentUtils._CLIP_PATH_SUFFIX);d.addRect(0,0,a,b);c.setClipPath(d);
this._clipped=DvtAfComponent._CLIP_PATH;return!0}return!1};DvtAfPanelLabelAndMessage.prototype.registerAsTabStop=function(){this.getAfContext().registerTabStop(this)};DvtAfPanelLabelAndMessage.prototype.getAriaLabel=function(){var a=this.getShortDesc();a||(a=this.getLabel());return a};DvtAfPanelLabelAndMessage.prototype.getAriaRole=function(){return"group"};
var DvtAfSpacer=function(){this.Init()};dvt.Obj.createSubclass(DvtAfSpacer,DvtAfComponent,"DvtAfSpacer");DvtAfSpacer.TAG_NAME="sp";DvtAfComponentFactory.registerComponent(DvtAfSpacer.TAG_NAME,DvtAfSpacer);DvtAfSpacer.ATTR_WIDTH="width";DvtAfSpacer.ATTR_HEIGHT="height";DvtAfSpacer.prototype.setWidth=function(a){this.setProperty(DvtAfSpacer.ATTR_WIDTH,a)};DvtAfSpacer.prototype.getWidth=function(){return this.getProperty(DvtAfSpacer.ATTR_WIDTH)};
DvtAfSpacer.prototype.setHeight=function(a){this.setProperty(DvtAfSpacer.ATTR_HEIGHT,a)};DvtAfSpacer.prototype.getHeight=function(){return this.getProperty(DvtAfSpacer.ATTR_HEIGHT)};DvtAfSpacer.prototype.GetDefaultStyles=function(){return DvtAfSpacer._afStyles};DvtAfSpacer.prototype.SetDefaultStyles=function(a){DvtAfSpacer._afStyles=a};DvtAfSpacer.prototype.createContentShape=function(a){this._contentPane=new dvt.Rect(a,0,0,1,1);this._contentPane.setFill(null);return this._contentPane};
DvtAfSpacer.prototype.renderSelfBeforeChildren=function(){DvtAfSpacer.superclass.renderSelfBeforeChildren.call(this)};DvtAfSpacer.prototype.getTagName=function(){return DvtAfSpacer.TAG_NAME};DvtAfSpacer.prototype._hasBgShape=function(){return!1};
var DvtAfSeparator=function(){this.Init()};dvt.Obj.createSubclass(DvtAfSeparator,DvtAfComponent,"DvtAfSeparator");DvtAfSeparator.TAG_NAME="se";DvtAfComponentFactory.registerComponent(DvtAfSeparator.TAG_NAME,DvtAfSeparator);DvtAfSeparator.prototype.GetDefaultStyles=function(){return DvtAfSeparator._afStyles};DvtAfSeparator.prototype.SetDefaultStyles=function(a){DvtAfSeparator._afStyles=a};
DvtAfSeparator.prototype.createContentShape=function(a){var b=this._getUniqueId(),c=new dvt.Container(a,b);this._line1=new dvt.Line(a,0,0,1,0,b+"_1");this._line2=new dvt.Line(a,0,1,1,1,b+"_2");this._line1.setPixelHinting(!0);this._line2.setPixelHinting(!0);b=this.getCSSStyle();a=b.getStyle(dvt.CSSStyle.BORDER_TOP_COLOR);b=b.getStyle(dvt.CSSStyle.BORDER_BOTTOM_COLOR);a||(a="#ADB6C7");b||(b="#FFFFFF");a=new dvt.SolidStroke(a,1,1);this._line1.setStroke(a);a=new dvt.SolidStroke(b,1,1);this._line2.setStroke(a);
c.addChild(this._line1);c.addChild(this._line2);return c};DvtAfSeparator.prototype.renderSelfBeforeChildren=function(){DvtAfSeparator.superclass.renderSelfBeforeChildren.call(this);var a=this.getCY();this._line1.setY1(a);this._line1.setY2(a);this._line2.setY1(a+1);this._line2.setY2(a+1)};DvtAfSeparator.prototype.getBounds=function(){this._ch=0;return DvtAfSeparator.superclass.getBounds.call(this)};
DvtAfSeparator.prototype.setMaxWidth=function(a){var b=this.getCX();a=Math.max(0,a-b);this._line1.setX1(b);this._line1.setX2(a);this._line2.setX1(b);this._line2.setX2(a)};DvtAfSeparator.prototype.getTagName=function(){return DvtAfSeparator.TAG_NAME};DvtAfSeparator.prototype._hasBgShape=function(){return!1};
var DvtAfShowDetailItem=function(){this.Init()};dvt.Obj.createSubclass(DvtAfShowDetailItem,DvtAfPanelGroupLayout,"DvtAfShowDetailItem");DvtAfShowDetailItem.TAG_NAME="sdi";DvtAfComponentFactory.registerComponent(DvtAfShowDetailItem.TAG_NAME,DvtAfShowDetailItem);DvtAfShowDetailItem.ATTR_TEXT="text";DvtAfShowDetailItem.ATTR_ICON="icon";DvtAfShowDetailItem.ATTR_DISABLED="disabled";
DvtAfShowDetailItem.prototype.setText=function(a){this.setProperty(DvtAfShowDetailItem.ATTR_TEXT,a);this.getContentShape()&&this.getContentShape().setTextString(a)};DvtAfShowDetailItem.prototype.getText=function(){return this.getStringProp(DvtAfShowDetailItem.ATTR_TEXT,"")};DvtAfShowDetailItem.prototype.setIcon=function(a){this.setProperty(DvtAfShowDetailItem.ATTR_ICON,a)};DvtAfShowDetailItem.prototype.getIcon=function(){return this.getProperty(DvtAfShowDetailItem.ATTR_ICON)};
DvtAfShowDetailItem.prototype.isDisabled=function(){return this.getProperty(DvtAfShowDetailItem.ATTR_DISABLED)};DvtAfShowDetailItem.prototype.setDisabled=function(a){this.setProperty(DvtAfShowDetailItem.ATTR_DISABLED,a)};DvtAfShowDetailItem.prototype.GetDefaultStyles=function(){return DvtAfShowDetailItem._afStyles};DvtAfShowDetailItem.prototype.SetDefaultStyles=function(a){DvtAfShowDetailItem._afStyles=a};
DvtAfShowDetailItem.prototype.createContentShape=function(a){this._loaded=!0;this._contentPane=new dvt.Container(a,this._getUniqueId());a=this.getCSSStyle();this._contentPane.setCSSStyle(a);return this._contentPane};DvtAfShowDetailItem.prototype.getTagName=function(){return DvtAfShowDetailItem.TAG_NAME};DvtAfShowDetailItem.prototype.SetLoaded=function(a){this._loaded=a};DvtAfShowDetailItem.prototype.IsLoaded=function(){return this._loaded};
DvtAfShowDetailItem.prototype.SetDOVisible=function(a){this.getDisplayObj()&&this.getDisplayObj().setVisible(a)};DvtAfShowDetailItem.prototype.IsDOVisible=function(){return this.getDisplayObj()?this.getDisplayObj().getVisible():!1};DvtAfShowDetailItem.prototype.getLayout=function(){return DvtAfPanelGroupLayout.LAYOUT_VERTICAL};DvtAfShowDetailItem.prototype.registerAsTabStop=function(){this.getAfContext().registerTabStop(this)};
DvtAfShowDetailItem.prototype.getAriaLabel=function(){var a=this.getParent(),b=this.getShortDesc();a instanceof DvtAfPanelCard&&(a=dvt.Bundle.getTranslatedString(dvt.Bundle.AFCOMPONENT_PREFIX,"ARIA_LABEL_ITEM_COUNT",[a.getVisibleDetailItemIndex(this.getText()||this.getIcon())+1,a.getDetailItemCount()]),b=b?b+dvt.Bundle.getTranslatedString(dvt.Bundle.UTIL_PREFIX,"ARIA_LABEL_DESC_DELIMITER")+a:a);return b};DvtAfShowDetailItem.prototype.getAriaRole=function(){return"group"};
DvtAfShowDetailItem.prototype.CreateKeyboardFocusEffect=function(){var a=this.getParent().getDisplayObj();return new dvt.KeyboardFocusEffect(this.getDvtContext(),a,new dvt.Rectangle(a.getX(),a.getY(),a.getWidth(),a.getHeight()))};
var DvtPanelCardEvent=function(a,b){this.Init(DvtPanelCardEvent.TYPE);this._subType=a;this._params=b};dvt.Obj.createSubclass(DvtPanelCardEvent,dvt.BaseComponentEvent,"DvtPanelCardEvent");DvtPanelCardEvent.TYPE="dvtPanelCard";DvtPanelCardEvent.PANELCARD_INDEX_EVENT="indexEvent";DvtPanelCardEvent.PANELCARD_FETCH_EVENT="fetchEvent";DvtPanelCardEvent.prototype.getSubType=function(){return this._subType};DvtPanelCardEvent.prototype.getParams=function(){return this._params};
var DvtPanelCardButtonLAFUtils={};dvt.Obj.createSubclass(DvtPanelCardButtonLAFUtils,dvt.Obj,"DvtPanelCardButtonLAFUtils");DvtPanelCardButtonLAFUtils.R=2;DvtPanelCardButtonLAFUtils.TAN_PI_8=Math.tan(Math.PI/8)*DvtPanelCardButtonLAFUtils.R;DvtPanelCardButtonLAFUtils.SIN_PI_4=Math.sin(Math.PI/4)*DvtPanelCardButtonLAFUtils.R;
DvtPanelCardButtonLAFUtils.createLeftArrowState=function(a,b,c){var d=DvtPanelCardButtonLAFUtils.buttonShape(a,b,"la"+b,c);DvtPanelCardButtonLAFUtils.make_leftarrow_Icon(a,d,b,c);return d};DvtPanelCardButtonLAFUtils.createRightArrowState=function(a,b,c){var d=DvtPanelCardButtonLAFUtils.buttonShape(a,b,"ra"+b,c);DvtPanelCardButtonLAFUtils.make_rightarrow_Icon(a,d,b,c);return d};
DvtPanelCardButtonLAFUtils.ena_lineAndFill=function(a,b,c,d,e,f){var g="gradient",h="#9BA2B0",k="#F4F8F9";null!=f&&(g=DvtPanelCardButtonLAFUtils.getStyle(f,dvt.CSSStyle.FILL_TYPE,g),h=DvtPanelCardButtonLAFUtils.getStyle(f,dvt.CSSStyle.BORDER_COLOR,h),k=DvtPanelCardButtonLAFUtils.getStyle(f,dvt.CSSStyle.BACKGROUND_COLOR,k));a.setSolidStroke(h);"solid"==g?a.setSolidFill(k):(f=k,g="#EBEFF1","#F4F8F9"!=f&&(g=dvt.ColorUtils.inferColor("#F4F8F9","#EBEFF1",f)),a.setFill(new dvt.LinearGradientFill(-270,[f,
g,"#FFFFFF"],[1,1,1],[40/255,130/255,200/255],[d,e,b,c])))};
DvtPanelCardButtonLAFUtils.ovr_lineAndFill=function(a,b,c,d,e,f){var g="gradient",h="#404451",k="#7BA0D9";null!=f&&(g=DvtPanelCardButtonLAFUtils.getStyle(f,dvt.CSSStyle.FILL_TYPE,g),h=DvtPanelCardButtonLAFUtils.getStyle(f,dvt.CSSStyle.BORDER_COLOR,h),k=DvtPanelCardButtonLAFUtils.getStyle(f,dvt.CSSStyle.BACKGROUND_COLOR,k));a.setSolidStroke(h);"solid"==g?a.setSolidFill(k):(f=k,g="#437ACD",h="#3474D3",k="#BFD8FB","#7BA0D9"!=f&&(g=dvt.ColorUtils.inferColor("#7BA0D9","#437ACD",f),h=dvt.ColorUtils.inferColor("#7BA0D9",
"#3474D3",f),k=dvt.ColorUtils.inferColor("#7BA0D9","#BFD8FB",f)),a.setFill(new dvt.LinearGradientFill(-270,[f,g,h,k],[1,1,1,1],[0,160/255,170/255,1],[d,e,b,c])))};
DvtPanelCardButtonLAFUtils.dwn_lineAndFill=function(a,b,c,d,e,f){var g="gradient",h="#303F47",k="#69849E";null!=f&&(g=DvtPanelCardButtonLAFUtils.getStyle(f,dvt.CSSStyle.FILL_TYPE,g),h=DvtPanelCardButtonLAFUtils.getStyle(f,dvt.CSSStyle.BORDER_COLOR,h),k=DvtPanelCardButtonLAFUtils.getStyle(f,dvt.CSSStyle.BACKGROUND_COLOR,k));a.setSolidStroke(h);"solid"==g?a.setSolidFill(k):(f=k,g="#69849E",h="#3C4E5E","#69849E"==f&&(g=dvt.ColorUtils.inferColor("#69849E","#69849E",f),h=dvt.ColorUtils.inferColor("#69849E",
"#3C4E5E",f)),a.setFill(new dvt.LinearGradientFill(-270,[f,g,h],[1,1,1],[0,125/255,1],[d,e,b,c])))};DvtPanelCardButtonLAFUtils.ena_Icon_lineAndFill=function(a,b,c,d,e,f){b="#303F47";c="#0066FF";null!=f&&(b=DvtPanelCardButtonLAFUtils.getStyle(f,dvt.CSSStyle.BORDER_COLOR,b),c=DvtPanelCardButtonLAFUtils.getStyle(f,dvt.CSSStyle.COLOR,c));a.setSolidStroke(b);a.setSolidFill(c)};
DvtPanelCardButtonLAFUtils.ovr_Icon_lineAndFill=function(a,b,c,d,e,f){b="#303F47";c="#FFFFFF";null!=f&&(b=DvtPanelCardButtonLAFUtils.getStyle(f,dvt.CSSStyle.BORDER_COLOR,b),c=DvtPanelCardButtonLAFUtils.getStyle(f,dvt.CSSStyle.COLOR,c));a.setSolidStroke(b);a.setSolidFill(c)};
DvtPanelCardButtonLAFUtils.dwn_Icon_lineAndFill=function(a,b,c,d,e,f){b="#303F47";c="#FFFFFF";null!=f&&(b=DvtPanelCardButtonLAFUtils.getStyle(f,dvt.CSSStyle.BORDER_COLOR,b),c=DvtPanelCardButtonLAFUtils.getStyle(f,dvt.CSSStyle.COLOR,c));a.setSolidStroke(b);a.setSolidFill(c)};
DvtPanelCardButtonLAFUtils.fillShape=function(a,b,c,d,e,f,g){switch(a){case dvt.Button.STATE_ENABLED:a=g?g[0]:null;DvtPanelCardButtonLAFUtils.ena_lineAndFill(b,c,d,e,f,a);break;case dvt.Button.STATE_OVER:a=g?g[1]:null;DvtPanelCardButtonLAFUtils.ovr_lineAndFill(b,c,d,e,f,a);break;case dvt.Button.STATE_DOWN:a=g?g[2]:null,DvtPanelCardButtonLAFUtils.dwn_lineAndFill(b,c,d,e,f,a)}};
DvtPanelCardButtonLAFUtils.fillIconShape=function(a,b,c,d,e,f,g){switch(a){case dvt.Button.STATE_ENABLED:a=g?g[0]:null;DvtPanelCardButtonLAFUtils.ena_Icon_lineAndFill(b,c,d,e,f,a);break;case dvt.Button.STATE_OVER:a=g?g[1]:null;DvtPanelCardButtonLAFUtils.ovr_Icon_lineAndFill(b,c,d,e,f,a);break;case dvt.Button.STATE_DOWN:a=g?g[2]:null,DvtPanelCardButtonLAFUtils.dwn_Icon_lineAndFill(b,c,d,e,f,a)}};
DvtPanelCardButtonLAFUtils.buttonShape=function(a,b,c,d){var e=DvtPanelCardButtonLAFUtils.R,f=16-2*e,g=16-2*e,h=f+e,k=g+e,l=dvt.PathUtils.moveTo(h+e,k),l=l+dvt.PathUtils.quadTo(e+h,DvtPanelCardButtonLAFUtils.TAN_PI_8+k,DvtPanelCardButtonLAFUtils.SIN_PI_4+h,DvtPanelCardButtonLAFUtils.SIN_PI_4+k),l=l+dvt.PathUtils.quadTo(DvtPanelCardButtonLAFUtils.TAN_PI_8+h,e+k,h,e+k),l=l+dvt.PathUtils.lineTo(h,e+k),l=l+dvt.PathUtils.lineTo(h-f,e+k),h=h-f,l=l+dvt.PathUtils.quadTo(-DvtPanelCardButtonLAFUtils.TAN_PI_8+
h,e+k,-DvtPanelCardButtonLAFUtils.SIN_PI_4+h,DvtPanelCardButtonLAFUtils.SIN_PI_4+k),l=l+dvt.PathUtils.quadTo(-e+h,DvtPanelCardButtonLAFUtils.TAN_PI_8+k,-e+h,k),l=l+dvt.PathUtils.lineTo(-e+h,k),l=l+dvt.PathUtils.lineTo(-e+h,k-g),k=k-g,l=l+dvt.PathUtils.quadTo(-e+h,-DvtPanelCardButtonLAFUtils.TAN_PI_8+k,-DvtPanelCardButtonLAFUtils.SIN_PI_4+h,-DvtPanelCardButtonLAFUtils.SIN_PI_4+k),l=l+dvt.PathUtils.quadTo(-DvtPanelCardButtonLAFUtils.TAN_PI_8+h,-e+k,h,-e+k),l=l+dvt.PathUtils.lineTo(h,-e+k),l=l+dvt.PathUtils.lineTo(h+
f,-e+k),h=h+f,l=l+dvt.PathUtils.quadTo(DvtPanelCardButtonLAFUtils.TAN_PI_8+h,-e+k,DvtPanelCardButtonLAFUtils.SIN_PI_4+h,-DvtPanelCardButtonLAFUtils.SIN_PI_4+k),l=l+dvt.PathUtils.quadTo(e+h,-DvtPanelCardButtonLAFUtils.TAN_PI_8+k,e+h,k),l=l+dvt.PathUtils.closePath();a=new dvt.Path(a,l,c);DvtPanelCardButtonLAFUtils.fillShape(b,a,16,16,0,0,d);return a};
DvtPanelCardButtonLAFUtils.make_leftarrow_Icon=function(a,b,c,d){var e=3.85,f=3.85,g=dvt.PathUtils.moveTo(e,f+4.5),f=f+4.5,g=g+dvt.PathUtils.lineTo(e+6,f-4.5),e=e+6,f=f-4.5,g=g+dvt.PathUtils.lineTo(e,f+9),f=f+9,g=g+dvt.PathUtils.lineTo(e-6,f-4.5),g=g+dvt.PathUtils.closePath();a=new dvt.Path(a,g);b.addChild(a);DvtPanelCardButtonLAFUtils.fillIconShape(c,a,e,f,6,9,d);return b};
DvtPanelCardButtonLAFUtils.make_rightarrow_Icon=function(a,b,c,d){var e=6.95,f=3.85,g=dvt.PathUtils.moveTo(e,f),g=g+dvt.PathUtils.lineTo(e,f+9),f=f+9,g=g+dvt.PathUtils.lineTo(e+6,f-4.5),e=e+6,f=f-4.5,g=g+dvt.PathUtils.lineTo(e-6,f-4.5);dvt.PathUtils.closePath();a=new dvt.Path(a,g,"rightArrow");b.addChild(a);DvtPanelCardButtonLAFUtils.fillIconShape(c,a,e,f,6,9,d);return b};DvtPanelCardButtonLAFUtils.getStyle=function(a,b,c){return(a=a.getStyle(b))?a:c};
var DvtAfPanelCard=function(){this.Init()};dvt.Obj.createSubclass(DvtAfPanelCard,DvtAfComponent,"DvtAfPanelCard");DvtAfPanelCard.TAG_NAME="pc";DvtAfComponentFactory.registerComponent(DvtAfPanelCard.TAG_NAME,DvtAfPanelCard);DvtAfPanelCard.ATTR_EFFECT="effect";DvtAfPanelCard.ATTR_CONTENT_DELIVERY="contentDelivery";DvtAfPanelCard.EFFECT_IMMEDIATE="immediate";DvtAfPanelCard.EFFECT_SLIDE_HORZ="slideHorz";DvtAfPanelCard.EFFECT_FLIP_HORZ="flipHorz";DvtAfPanelCard.EFFECT_NODE_FLIP_HORZ="nodeFlipHorz";
DvtAfPanelCard.EFFECT_CUBE_ROTATE_HORZ="cubeRotateHorz";DvtAfPanelCard.EFFECT_NODE_CUBE_ROTATE_HORZ="nodeCubeRotateHorz";DvtAfPanelCard.DEFAULT_EFFECT=DvtAfPanelCard.EFFECT_SLIDE_HORZ;DvtAfPanelCard.OLD_EFFECT_SLIDE_HORZ="slide_horz";DvtAfPanelCard.OLD_EFFECT_FLIP_HORZ="flip_horz";DvtAfPanelCard.OLD_EFFECT_NODE_FLIP_HORZ="node_flip_horz";DvtAfPanelCard.OLD_EFFECT_CUBE_ROTATE_HORZ="cube_rotate_horz";DvtAfPanelCard.OLD_EFFECT_NODE_CUBE_ROTATE_HORZ="node_cube_rotate_horz";
DvtAfPanelCard.DISPLAYED_DETAIL_ITEM_INDEX_KEY="dispSdiIdx";DvtAfPanelCard.POPUP_TIMER_INTERVAL=2E3;DvtAfPanelCard.SET_PROP_EVENT="setProp";DvtAfPanelCard.FETCH_DATA_EVENT="fetchData";DvtAfPanelCard.BUTTON_COLOR="#CCCCCC";DvtAfPanelCard.BUTTON_PADDING=0;DvtAfPanelCard.ALTA_BUTTON_HPADDING=5;DvtAfPanelCard.ALTA_BUTTON_VPADDING=0;DvtAfPanelCard.EFFECT_DURATION=0.5;DvtAfPanelCard.DISABLED_BACKGROUND_COLOR="#E5E5E0";DvtAfPanelCard.DISABLED_BORDER_COLOR="#B9B9B4";DvtAfPanelCard.DISABLED_COLOR="#737373";
DvtAfPanelCard.DISABLED_ALPHA=0.5;DvtAfPanelCard.MAX_TRAIN_ITEM_COUNT=8;DvtAfPanelCard.POPUP_NAME="panelCardNavPopup";DvtAfPanelCard.SHAPE_RECT="rect";DvtAfPanelCard.SHAPE_ROUNDED_RECT="roundedRect";DvtAfPanelCard.SHAPE_ELLIPSE="ellipse";DvtAfPanelCard.DFLT_STYLE_INDX=0;DvtAfPanelCard.DFLT_NAV_STYLE_INDX=1;DvtAfPanelCard.DFLT_NAV_HOVER_STYLE_INDX=2;DvtAfPanelCard.DFLT_NAV_ACTIVE_STYLE_INDX=3;DvtAfPanelCard.DFLT_HEADER_ZOOM_100_STYLE_INDX=4;DvtAfPanelCard.DFLT_HEADER_ZOOM_75_STYLE_INDX=5;
DvtAfPanelCard.DFLT_PREV_IMAGES_INDX=6;DvtAfPanelCard.DFLT_PREV_HOVER_IMAGES_INDX=7;DvtAfPanelCard.DFLT_PREV_ACTIVE_IMAGES_INDX=8;DvtAfPanelCard.DFLT_NEXT_IMAGES_INDX=9;DvtAfPanelCard.DFLT_NEXT_HOVER_IMAGES_INDX=10;DvtAfPanelCard.DFLT_NEXT_ACTIVE_IMAGES_INDX=11;DvtAfPanelCard.DFLT_TRAIN_STYLE_INDX=12;DvtAfPanelCard.DFLT_TRAIN_HOVER_STYLE_INDX=13;DvtAfPanelCard.DFLT_TRAIN_ACTIVE_STYLE_INDX=14;DvtAfPanelCard.ROUND_CORNER_SIZE=6;
DvtAfPanelCard.convertOldEffectToNew=function(a){return a==DvtAfPanelCard.OLD_EFFECT_SLIDE_HORZ?DvtAfPanelCard.EFFECT_SLIDE_HORZ:a==DvtAfPanelCard.OLD_EFFECT_FLIP_HORZ?DvtAfPanelCard.EFFECT_FLIP_HORZ:a==DvtAfPanelCard.OLD_EFFECT_NODE_FLIP_HORZ?DvtAfPanelCard.EFFECT_NODE_FLIP_HORZ:a==DvtAfPanelCard.OLD_EFFECT_CUBE_ROTATE_HORZ?DvtAfPanelCard.EFFECT_CUBE_ROTATE_HORZ:a==DvtAfPanelCard.OLD_EFFECT_NODE_CUBE_ROTATE_HORZ?DvtAfPanelCard.EFFECT_NODE_CUBE_ROTATE_HORZ:a};
DvtAfPanelCard.prototype.getEffect=function(){var a=this.getStringProp(DvtAfPanelCard.ATTR_EFFECT);return a?DvtAfPanelCard.convertOldEffectToNew(a):DvtAfPanelCard.DEFAULT_EFFECT};DvtAfPanelCard.prototype.setEffect=function(a){this.setProperty(DvtAfPanelCard.ATTR_EFFECT,a)};DvtAfPanelCard.prototype.getContentDelivery=function(){return this.getStringProp(DvtAfPanelCard.ATTR_CONTENT_DELIVERY)};
DvtAfPanelCard.prototype.setContentDelivery=function(a){this.setProperty(DvtAfPanelCard.ATTR_CONTENT_DELIVERY,a)};DvtAfPanelCard.prototype.getNextButtonIcon=function(){this._nextButtonIcon||(this._nextButtonIcon=this.getDefaultStyleAt(DvtAfPanelCard.DFLT_NEXT_IMAGES_INDX));return this._nextButtonIcon};DvtAfPanelCard.prototype.setNextButtonIcon=function(a){this._nextButtonIcon=a};
DvtAfPanelCard.prototype.getNextButtonHoverIcon=function(){this._nextButtonHoverIcon||(this._nextButtonHoverIcon=this.getDefaultStyleAt(DvtAfPanelCard.DFLT_NEXT_HOVER_IMAGES_INDX));return this._nextButtonHoverIcon};DvtAfPanelCard.prototype.setNextButtonHoverIcon=function(a){this._nextButtonHoverIcon=a};DvtAfPanelCard.prototype.getNextButtonActiveIcon=function(){this._nextButtonActiveIcon||(this._nextButtonActiveIcon=this.getDefaultStyleAt(DvtAfPanelCard.DFLT_NEXT_ACTIVE_IMAGES_INDX));return this._nextButtonActiveIcon};
DvtAfPanelCard.prototype.setNextButtonActiveIcon=function(a){this._nextButtonActiveIcon=a};DvtAfPanelCard.prototype.getNextButtonDisabledIcon=function(){return this._nextButtonDisabledIcon};DvtAfPanelCard.prototype.setNextButtonDisabledIcon=function(a){this._nextButtonDisabledIcon=a};DvtAfPanelCard.prototype.getPrevButtonIcon=function(){this._prevButtonIcon||(this._prevButtonIcon=this.getDefaultStyleAt(DvtAfPanelCard.DFLT_PREV_IMAGES_INDX));return this._prevButtonIcon};
DvtAfPanelCard.prototype.setPrevButtonIcon=function(a){this._prevButtonIcon=a};DvtAfPanelCard.prototype.getPrevButtonHoverIcon=function(){this._prevButtonHoverIcon||(this._prevButtonHoverIcon=this.getDefaultStyleAt(DvtAfPanelCard.DFLT_PREV_HOVER_IMAGES_INDX));return this._prevButtonHoverIcon};DvtAfPanelCard.prototype.setPrevButtonHoverIcon=function(a){this._prevButtonHoverIcon=a};
DvtAfPanelCard.prototype.getPrevButtonActiveIcon=function(){this._prevButtonActiveIcon||(this._prevButtonActiveIcon=this.getDefaultStyleAt(DvtAfPanelCard.DFLT_PREV_ACTIVE_IMAGES_INDX));return this._prevButtonActiveIcon};DvtAfPanelCard.prototype.setPrevButtonActiveIcon=function(a){this._prevButtonActiveIcon=a};DvtAfPanelCard.prototype.getPrevButtonDisabledIcon=function(){return this._prevButtonDisabledIcon};
DvtAfPanelCard.prototype.setPrevButtonDisabledIcon=function(a){this._prevButtonDisabledIcon=a};DvtAfPanelCard.prototype.GetDefaultStyles=function(){return DvtAfPanelCard._afStyles};DvtAfPanelCard.prototype.SetDefaultStyles=function(a){DvtAfPanelCard._afStyles=a};DvtAfPanelCard.prototype.getDefaultStyleAt=function(a){return this._getAfStyleAt(a)};DvtAfPanelCard.prototype.setHeaderStyle=function(a){this._headerStyle=a};
DvtAfPanelCard.prototype.getHeaderStyle=function(){this._headerStyle||(0.75<this.getZoomPct()?this._headerStyle=this.getDefaultStyleAt(DvtAfPanelCard.DFLT_HEADER_ZOOM_100_STYLE_INDX):this._headerStyle=this.getDefaultStyleAt(DvtAfPanelCard.DFLT_HEADER_ZOOM_75_STYLE_INDX));return this._headerStyle};
DvtAfPanelCard.prototype.createDisplayObj=function(a){this._setNode(a.getParentNode());var b=DvtAfPanelCard.superclass.createDisplayObj.call(this,a);this._bTransitioning=!1;this._bNavLoop=!0;this.addChildDisplayObjs(a,this._contentPane);if(this.needsNavUi()){this.CreatePrevButton();this.CreateNextButton();var c=this.GetPrevButtonObj(),d=this.GetNextButtonObj();a.registerTabStop(c);a.registerTabStop(d)}return b};
DvtAfPanelCard.prototype.addChildDisplayObjs=function(a,b){var c=this.getDisplayedDetailItemIndex();c||(c=0);if((c=this.getChildAt(c))&&(!c.renderMe||c.renderMe()))(c=c.createDisplayObj(a))&&b.addChild(c)};
DvtAfPanelCard.prototype.createContentShape=function(a){var b=this.getCSSStyle();switch(this.getNodeShape()){case DvtAfPanelCard.SHAPE_RECT:this._contentPane=new dvt.Rect(a,0,0,0,0,this._getUniqueId());b.setStyle("border-radius",null);break;case DvtAfPanelCard.SHAPE_ELLIPSE:this._contentPane=new dvt.Path(a,"",this._getUniqueId());break;default:this._contentPane=new dvt.Rect(a,0,0,0,0,this._getUniqueId()),a=b.getStyle(dvt.CSSStyle.BORDER_RADIUS),a||(a=DvtAfPanelCard.ROUND_CORNER_SIZE),this._contentPane.setRx(a),
this._contentPane.setRy(a)}this._contentPane.setCSSStyle(b);this.associate(this._contentPane,this);return this._contentPane};DvtAfPanelCard.prototype.getContentShape=function(){return this._contentPane};DvtAfPanelCard.prototype.createBackgroundShape=function(a,b){return b};DvtAfPanelCard.prototype.addChild=function(a){a instanceof DvtAfShowDetailItem&&DvtAfPanelCard.superclass.addChild.call(this,a)};DvtAfPanelCard.prototype.renderChild=function(a){a._render(this._acw,this._ach);this._child=a};
DvtAfPanelCard.prototype.renderChildren=function(){var a=this.getDisplayedDetailItemIndex();(a=this.getVisibleChild(a))&&a.getDisplayObj()&&this.renderChild(a)};DvtAfPanelCard.prototype.getDetailItemCount=function(){for(var a=this._getChildren(),b=0,c=0;c<a.length;c++){var d=a[c];d.isRendered()&&d.isVisible()&&b++}return b};DvtAfPanelCard.prototype.getVisibleChild=function(a){for(var b=this._getChildren(),c=0,d=0;d<b.length;d++){var e=b[d];if(e.isRendered()&&e.isVisible()){if(c==a)return e;c++}}return null};
DvtAfPanelCard.prototype.getCurrentVisibleChild=function(){return this.getVisibleChild(this.getDisplayedDetailItemIndex())};DvtAfPanelCard.prototype.getVisibleDetailItemIndex=function(a){for(var b=this._getChildren(),c=0,d=0;d<b.length;d++){var e=b[d];if(e.isRendered()&&e.isVisible()){if(a==e.getText()||a==e.getIcon())return c;c++}}return-1};DvtAfPanelCard.prototype.addEvtListener=function(a,b){var c=this._getListeners(!0);c.push(a);c.push(b)};
DvtAfPanelCard.prototype.removeEvtListener=function(a,b){var c=this._getListeners(!1);if(c)for(var d=0;d<c.length;d+=2)if(c[d]===a&&c[d+1]===b){c.splice(d,2);break}};DvtAfPanelCard.prototype._getListeners=function(a){if(!this._listenerObj)if(a)this._listenerObj=[];else return null;return this._listenerObj};DvtAfPanelCard.prototype.FireListener=function(a,b){var c=this._getListeners(!1);if(c)for(var d=0;d<c.length;d+=2){var e=c[d+1];c[d]&&c[d].call(e,a,this._getNodeId(),b)}};
DvtAfPanelCard.prototype.getTagName=function(){return DvtAfPanelCard.TAG_NAME};DvtAfPanelCard.prototype.isPanelCardDeliveryLazy=function(){var a=this.getContentDelivery();return a&&"lazy"==a};DvtAfPanelCard.prototype.setDisplayedDetailItemIndex=function(a){var b=this._getNode();b&&b.setStateProp&&b.setStateProp(DvtAfPanelCard.DISPLAYED_DETAIL_ITEM_INDEX_KEY,a)};
DvtAfPanelCard.prototype.getDisplayedDetailItemIndex=function(){var a;if((a=this._getNode())&&a.getStateProp)if(a=a.getStateProp(DvtAfPanelCard.DISPLAYED_DETAIL_ITEM_INDEX_KEY),null!=a&&0<=a&&a<this.getDetailItemCount())return a;return 0};DvtAfPanelCard.prototype.hasNextDetailItem=function(){return this._bNavLoop?1<this.getDetailItemCount():this.getDisplayedDetailItemIndex()<this.getDetailItemCount()-1};
DvtAfPanelCard.prototype.hasPrevDetailItem=function(){return this._bNavLoop?1<this.getDetailItemCount():0<this.getDisplayedDetailItemIndex()};DvtAfPanelCard.prototype.displayNextDetailItem=function(){this.hasNextDetailItem()&&this.displayDetailItem(this.getDisplayedDetailItemIndex()+1)};DvtAfPanelCard.prototype.displayPrevDetailItem=function(){this.hasPrevDetailItem()&&this.displayDetailItem(this.getDisplayedDetailItemIndex()-1)};
DvtAfPanelCard.prototype.isShowDetailItemLoaded=function(a){if(this.getVisibleChild(a)){var b=this._getDiagram();if(b)return b.isShowDetailItemLoaded(this._getNodeId(),a)}return!1};
DvtAfPanelCard.prototype.displayDetailItem=function(a){var b=this.getDisplayedDetailItemIndex();if(b<a){var c=this.GetPrevButtonObj();c&&c.isShowingKeyboardFocusEffect()&&c.hideKeyboardFocusEffect()}else b>a&&(c=this.GetNextButtonObj())&&c.isShowingKeyboardFocusEffect()&&c.hideKeyboardFocusEffect();b=a>b&&!dvt.Agent.isRightToLeft(this.getDvtContext())||a<b&&dvt.Agent.isRightToLeft(this.getDvtContext());this._bNavLoop&&(a>this.getDetailItemCount()-1?a=0:0>a&&(a=this.getDetailItemCount()-1));this._bTransitioning||
(this.isShowDetailItemLoaded(a)?(this._bTransitioning=!0,this.setDisplayedDetailItemIndex(a),this.FireListener(DvtAfPanelCard.SET_PROP_EVENT,a),this.renderDetailItem(b)):this.FireListener(DvtAfPanelCard.FETCH_DATA_EVENT,a))};
DvtAfPanelCard.prototype.renderSelfBeforeChildren=function(){DvtAfPanelCard.superclass.renderSelfBeforeChildren.call(this);this._acw=this._cw;var a=this.getVisibleChild(this.getDisplayedDetailItemIndex());if(a&&(a=this._loadDetailItem(a,!1),a=this.CreateTitleBar(a),this._ach=this._ch-a.getDimensions().h,this.needsNavUi())){var a=this._getGroupDO(),b=this.GetPrevButtonObj(),c=this.GetNextButtonObj(),d=0;b&&(a.contains(b)||a.addChild(b),d=Math.max(d,b.getDimensions().h));c&&(a.contains(c)||a.addChild(c),
d=Math.max(d,c.getDimensions().h));this._ach-=d+1}};
DvtAfPanelCard.prototype.renderSelfAfterChildren=function(){this._child?this.positionIconAndTextField():this._text&&this._text.setTextString("");if(this.needsNavUi()){var a=this._getGroupDO(),b=this.GetPrevButtonObj(),c=this.GetNextButtonObj(),d,e;b&&(a.contains(b)||a.addChild(b),d=b.getDimensions());c&&(a.contains(c)||a.addChild(c),e=c.getDimensions());this.updateButtonStates();for(var f=[],g=this._getChildren(),h=0;h<g.length;h++){var k=g[h];k.isRendered()&&k.isVisible()&&f.push(k.getText())}var l,
m;f.length<=DvtAfPanelCard.MAX_TRAIN_ITEM_COUNT&&(l=new dvt.Train(this.getDvtContext(),this.getAfContext().getEventManager(),f,this.getTrainButtonStyles(),this.getId()+"_train",this.isSkinAlta()),a.addChild(l),m=l.getDimensions(),a.removeChild(l));k=0;this.isSkinAlta()?(h=DvtAfPanelCard.ALTA_BUTTON_HPADDING,k=DvtAfPanelCard.ALTA_BUTTON_VPADDING,0.5<this.getZoomPct()&&l?(f=(this._cw-m.w)/2-d.w,f=this.getCX()+(h>f?h:f),g=(this._cw+m.w)/2,g=this.getCX()+(h>this._cw-g-e.w?this._cw-h-e.w:g)):(f=this.getCX()+
h,g=this.getCX()+this._cw-e.w-h)):(k=h=DvtAfPanelCard.BUTTON_PADDING,f=this.getCX()+h,g=this.getCX()+this._cw-e.w-h);b&&(b.setTranslateX(f),b.setTranslateY(this.getCY()+this._ch-d.h-k));c&&(c.setTranslateX(g),c.setTranslateY(this.getCY()+this._ch-e.h-k));l&&!(this.isSkinAlta()&&0.5>=this.getZoomPct())&&(c=0,b&&(c=f+d.w),a.addChild(l),this._train=l,m.w<=Math.round(g-c)?(l.setTranslateX(c+(g-c-m.w)/2),l.setTranslateY(b.getTranslateY()+(d.h-m.h)/2),this._setTrainSelectedIndex(),l.addTrainEventListener(this.HandleTrainEvent,
this)):a.removeChild(this._train))}};
DvtAfPanelCard.prototype.doLayout=function(){var a;if(this._titleBar){a=this._titleBar.getDimensions();var b="center",c=this.getHeaderStyle();c&&c.getStyle(dvt.CSSStyle.TEXT_ALIGN)&&(b=c.getStyle(dvt.CSSStyle.TEXT_ALIGN));c=this.getCX();("end"==b||"right"==b)&&!dvt.Agent.isRightToLeft(this.getDvtContext())||("start"==b||"left"==b)&&dvt.Agent.isRightToLeft(this.getDvtContext())?c+=this._cw-a.w:"center"==b&&(c+=(this._cw-a.w)/2);this._titleBar.setTranslateX(c);this._titleBar.setTranslateY(this.getCY())}this._child&&(b=
this._child.getDisplayObj(),b.setTranslateX(this.getCX()),b.setTranslateY(this.getCY()+5+(a?a.h:0)))};DvtAfPanelCard.prototype.renderSelfAfterLayout=function(){var a=this.getBounds(),b=this.getDisplayObj();this.SetDisplayObjBounds(b,0,0,a.w,a.h);this._shape!==DvtAfPanelCard.SHAPE_ELLIPSE&&DvtAfPanelCard.superclass.renderSelfAfterLayout.call(this)};DvtAfPanelCard.prototype.needsNavUi=function(){return 1>=this.getDetailItemCount()?!1:!0};
DvtAfPanelCard.prototype.renderDetailItem=function(a){var b=this._child;this._oldChild=b;this._oldTitleBar=this._titleBar;var c=this.GetPrevButtonObj(),d=this.GetNextButtonObj(),e;b.isShowingKeyboardFocusEffect()?(b.hideKeyboardFocusEffect(),e=b):c.isShowingKeyboardFocusEffect()?e=c:d.isShowingKeyboardFocusEffect()&&(e=d);this._getNode().resetTabStops();c=this._getNode().getTabStopsArray();d=dvt.ArrayUtils.getIndex(c,b);this.getAfContext().setTabStopsArray(c);b.unregisterAsTabStop();var d=c.splice(d,
c.length-d+1),f=this.getEffect();if(f==DvtAfPanelCard.EFFECT_NODE_FLIP_HORZ||f==DvtAfPanelCard.EFFECT_NODE_CUBE_ROTATE_HORZ)if((b=this._getNode())&&b.getParent()){var g=b.getMatrix();b.setMatrix(null);this._oldNode=b.createCopy();b.addChild(this._oldNode);b.setMatrix(g)}if(b=this.getVisibleChild(this.getDisplayedDetailItemIndex()))b=this._loadDetailItem(b,!0),this._icon=this._titleBar=null,this.renderChild(b),this.CreateTitleBar(b),this._icon&&this.positionIconAndTextField();this.updateButtonStates();
this.doLayout();this._savedAfContext&&(this.setAfContext(this._savedAfContext),this._savedAfContext=void 0);this._oldNode&&this.removeOldDisplayItem(!0);for(g=0;g<d.length;g++)c.push(d[g]);var h;if(e){var k=this,l=e instanceof DvtAfShowDetailItem?b.getDisplayObj():e;e=e instanceof DvtAfShowDetailItem?b:e;h=function(){var a=k._getNode().getCurrentTabStop(),b=a;do b=k._getNode().getNextTabStop();while(b!=e&&b!=a);(a=e.getAriaLabel())&&l.setAriaProperty("label",a);e.showKeyboardFocusEffect()}}this.TransitionDisplayItems(f,
a,h)};DvtAfPanelCard.prototype.CreatePrevButton=function(){this._prevButton=new DvtNavButton(this,this.getDvtContext(),this.CreateUpState(!1),this.CreateOverState(!1),this.CreateDownState(!1));this.associate(this._prevButton,this._prevButton);this._prevButton.setCallback(this.HandlePrevButtonClick,this)};
DvtAfPanelCard.prototype.CreateNextButton=function(){this._nextButton=new DvtNavButton(this,this.getDvtContext(),this.CreateUpState(!0),this.CreateOverState(!0),this.CreateDownState(!0));this.associate(this._nextButton,this._nextButton);this._nextButton.setCallback(this.HandleNextButtonClick,this)};DvtAfPanelCard.prototype.GetPrevButtonObj=function(){return this._prevButton};DvtAfPanelCard.prototype.GetNextButtonObj=function(){return this._nextButton};
DvtAfPanelCard.prototype.destroy=function(){this._popupMenu&&this.destroyPopup();this._train&&this._train.destroy(this.HandleTrainEvent);DvtAfPanelCard.superclass.destroy.call(this)};DvtAfPanelCard.prototype.ConsumeEvent=function(a){dvt.EventManager.consumeEvent(a)};
DvtAfPanelCard.prototype.CreateUpState=function(a){var b=null,c=this.isDisabled();a?c&&this.getNextButtonDisabledIcon()?b=this.CreateButtonIconState(this.getNextButtonDisabledIcon(),dvt.Button.STATE_ENABLED,a):this.getNextButtonIcon()&&(b=this.CreateButtonIconState(this.getNextButtonIcon(),dvt.Button.STATE_ENABLED,a)):c&&this.getPrevButtonDisabledIcon()?b=this.CreateButtonIconState(this.getPrevButtonDisabledIcon(),dvt.Button.STATE_ENABLED,a):this.getPrevButtonIcon()&&(b=this.CreateButtonIconState(this.getPrevButtonIcon(),
dvt.Button.STATE_ENABLED,a));null==b&&(b=this.CreateButtonState(a,dvt.Button.STATE_ENABLED),c&&b.setAlpha(DvtAfPanelCard.DISABLED_ALPHA));b.setCursor("default");return b};
DvtAfPanelCard.prototype.CreateDownState=function(a){var b=null;a?this.getNextButtonActiveIcon()?b=this.CreateButtonIconState(this.getNextButtonActiveIcon(),dvt.Button.STATE_DOWN,a):this.getNextButtonIcon()&&(b=this.CreateButtonIconState(this.getNextButtonIcon(),dvt.Button.STATE_DOWN,a)):this.getPrevButtonActiveIcon()?b=this.CreateButtonIconState(this.getPrevButtonActiveIcon(),dvt.Button.STATE_DOWN,a):this.getPrevButtonIcon()&&(b=this.CreateButtonIconState(this.getPrevButtonIcon(),dvt.Button.STATE_DOWN,
a));null==b&&(b=this.CreateButtonState(a,dvt.Button.STATE_DOWN));b.setCursor("pointer");return b};
DvtAfPanelCard.prototype.CreateOverState=function(a){var b=null;a?this.getNextButtonHoverIcon()?b=this.CreateButtonIconState(this.getNextButtonHoverIcon(),dvt.Button.STATE_OVER,a):this.getNextButtonIcon()&&(b=this.CreateButtonIconState(this.getNextButtonIcon(),dvt.Button.STATE_OVER,a)):this.getPrevButtonHoverIcon()?b=this.CreateButtonIconState(this.getPrevButtonHoverIcon(),dvt.Button.STATE_OVER,a):this.getPrevButtonIcon()&&(b=this.CreateButtonIconState(this.getPrevButtonIcon(),dvt.Button.STATE_OVER,
a));null==b&&(b=this.CreateButtonState(a,dvt.Button.STATE_OVER));b.setCursor("pointer");return b};DvtAfPanelCard.prototype.CreateButtonIconState=function(a,b,c){c=this.getDvtContext();b=new dvt.Image(c,a,0,0,1,1);(c=dvt.ImageLoader.loadImage(c,a))?(b.setWidth(c.width),b.setHeight(c.height)):this.RegisterImageCallback(a);return b};
DvtAfPanelCard.prototype.CreateButtonState=function(a,b){var c=this.getDvtContext();return a?DvtPanelCardButtonLAFUtils.createRightArrowState(c,b,this.getCardNavButtonStyles()):DvtPanelCardButtonLAFUtils.createLeftArrowState(c,b,this.getCardNavButtonStyles())};DvtAfPanelCard.prototype._renderIcon=function(a){dvt.ImageLoader.loadImage(this.getDvtContext(),a,this.createCallback(this.onIconLoaded))};
DvtAfPanelCard.prototype.onIconLoaded=function(a){a&&(a.width&&a.height)&&(this._icon.setWidth(a.width),this._icon.setHeight(a.height))};
DvtAfPanelCard.prototype.CreateTitleBar=function(a){var b=this.getDvtContext(),c=a._getUniqueId(),d=new dvt.Container(b,c+"_tBar"),e=a.getIcon();e&&0<e.length&&(this._icon=new dvt.Image(b,e,0,0,1,1,c+"_icon"),this._renderIcon(e),d.addChild(this._icon));if((a=a.getText())&&0<a.length)b=this.GetDefaultStyles(),e=this.getHeaderStyle(),this._text=this.createTextShape(!1,a,e,b,c+"_hd"),d.addChild(this._text);this._getGroupDO().addChildAt(d,1);return this._titleBar=d};
DvtAfPanelCard.prototype.positionIconAndTextField=function(){var a=dvt.Agent.isRightToLeft(this.getDvtContext()),b=0,c=0,d=0;this._icon&&(d=this._icon.getDimensions(),c=d.w?d.w:0,d=d.h?d.h:0,b+=c);var e=0,f=0;this._text&&(this._text.alignCenter(),f=this._text.getDimensions(),e=f.w,f=f.h,this.isSkinAlta()?this._text.setTranslateX(b+e/2):this._text.setTranslateX(b+2+e/2));b=this._titleBar.getDimensions();a&&(a=b.w,this._icon&&this._icon.setTranslateX(a-this._icon.getTranslateX()-c),this._text&&this._text.setTranslateX(a-
this._text.getTranslateX()));this._icon&&this._icon.setTranslateY((b.h-d)/2);this._text&&this._text.setTranslateY((b.h-f)/2)};DvtAfPanelCard.prototype.isSkinAlta=function(){return this._getDiagram().getCardNavButtonSkin()==dvt.CSSStyle.SKIN_ALTA};
DvtAfPanelCard.prototype.removeOldDisplayItem=function(a){var b;if(this._oldTitleBar&&(a||this._oldTitleBar!==this._titleBar))this._oldTitleBar.setVisible(!1),(b=this._oldTitleBar.getParent())&&b.removeChild(this._oldTitleBar),this._oldTitleBar=null;var c=this._oldChild;if(c&&(a||c!==this._child)){DvtAfPanelCard._setItemDisplayableVisible(c,!1);a=c.getDisplayObj();var d=c.getContentShape();if(d&&d!==a&&(b=d.getParent()))b.removeChild(d),c.setContentShape(a,null);if(a&&(b=a.getParent()))b.removeChild(a),
c._bgShape=null;this._oldChild=null}};DvtAfPanelCard.prototype.updateButtonStates=function(){this.needsNavUi()&&(this.hasPrevDetailItem()?(this._prevButton&&this._prevButton.setEnabled(!0),this.GetPrevButtonObj().setAlpha(1)):(this._prevButton&&this._prevButton.setEnabled(!1),this.GetPrevButtonObj().setAlpha(0.5)),this.hasNextDetailItem()?(this._nextButton&&this._nextButton.setEnabled(!0),this.GetNextButtonObj().setAlpha(1)):(this._nextButton&&this._nextButton.setEnabled(!1),this.GetNextButtonObj().setAlpha(0.5)))};
DvtAfPanelCard.prototype.HandlePrevButtonClick=function(a){dvt.EventManager.consumeEvent(a);dvt.Agent.isRightToLeft(this.getDvtContext())?this.hasNextDetailItem()&&this.displayNextDetailItem():this.hasPrevDetailItem()&&this.displayPrevDetailItem()};DvtAfPanelCard.prototype.HandleNextButtonClick=function(a){dvt.EventManager.consumeEvent(a);dvt.Agent.isRightToLeft(this.getDvtContext())?this.hasPrevDetailItem()&&this.displayPrevDetailItem():this.hasNextDetailItem()&&this.displayNextDetailItem()};
DvtAfPanelCard.prototype.HandleTrainEvent=function(a){a=a.getIndex();this.displayDetailItem(a)};DvtAfPanelCard.prototype.getNavButtonTooltip=function(a){var b=dvt.Agent.isRightToLeft(this.getDvtContext()),c=this.getDisplayedDetailItemIndex(),d=this.getDetailItemCount()-1;if(a===this._nextButton&&!b||a===this._prevButton&&b)if(c==d)if(this._bNavLoop)a=0;else return null;else a=c+1;else if(0==c)if(this._bNavLoop)a=d;else return null;else a=c-1;return(a=this.getVisibleChild(a))?a.getText():null};
DvtAfPanelCard.prototype._getGroupDO=function(){return this.getDisplayObj()};DvtAfPanelCard.prototype.isDisabled=function(){return!1};DvtAfPanelCard.prototype._setNode=function(a){this._parentNode=a};DvtAfPanelCard.prototype._getNode=function(){return this._parentNode};DvtAfPanelCard.prototype._getNodeDef=function(){var a=this._getNode();return a&&a.getNodeDef?a.getNodeDef():null};DvtAfPanelCard.prototype.getNodeShape=function(){var a=this._getNodeDef();return a&&a.getShape?a.getShape():DvtAfPanelCard.SHAPE_ROUNDED_RECT};
DvtAfPanelCard.prototype.getNodeWidth=function(){var a=this._getNode();if(a){if(a.getWidth)return a.getWidth();if(a.getContentBounds)return a.getContentBounds().w}return this._aw};DvtAfPanelCard.prototype.getNodeHeight=function(){var a=this._getNode();if(a){if(a.getHeight)return a.getHeight();if(a.getContentBounds)return a.getContentBounds().h}return this._ah};DvtAfPanelCard.prototype.getZoomPct=function(){var a=this._getNode(),b=1;a&&a._zoom&&(b=a._zoom);return b};
DvtAfPanelCard.prototype.getTrain=function(){return this._train};DvtAfPanelCard.prototype._getNodeId=function(){var a=this._getNode();return a&&a.getId?a.getId():null};DvtAfPanelCard.prototype._getDiagram=function(){var a=this._getNode();return a&&a.GetDiagram?a.GetDiagram():null};
DvtAfPanelCard.prototype.getTrainButtonStyles=function(){if(!this._trainButtonStyles){this._trainButtonStyles=[];var a=this.getDefaultStyleAt(DvtAfPanelCard.DFLT_TRAIN_STYLE_INDX),b=a?a.getIconUrl():null;b&&(b=this.CreateButtonIconState(b),a.setStyle(dvt.CSSStyle.WIDTH,""+b.getWidth()+"px"));this._trainButtonStyles.push(a);(b=this.getDefaultStyleAt(DvtAfPanelCard.DFLT_TRAIN_HOVER_STYLE_INDX))||(b=a);this._trainButtonStyles.push(b);(b=this.getDefaultStyleAt(DvtAfPanelCard.DFLT_TRAIN_ACTIVE_STYLE_INDX))||
(b=a);this._trainButtonStyles.push(b)}return this._trainButtonStyles};DvtAfPanelCard.prototype.getCardNavButtonStyles=function(){this._cardNavButtonStyles||(this._cardNavButtonStyles=[],this._cardNavButtonStyles.push(this.getDefaultStyleAt(DvtAfPanelCard.DFLT_NAV_STYLE_INDX)),this._cardNavButtonStyles.push(this.getDefaultStyleAt(DvtAfPanelCard.DFLT_NAV_HOVER_STYLE_INDX)),this._cardNavButtonStyles.push(this.getDefaultStyleAt(DvtAfPanelCard.DFLT_NAV_ACTIVE_STYLE_INDX)));return this._cardNavButtonStyles};
DvtAfPanelCard.prototype.RenderBackgroundFill=function(a,b,c){b&&"gradient"==b.getStyle(dvt.CSSStyle.FILL_TYPE)?(b=this.CreateGradientFill(c),a.setFill(b)):DvtAfPanelCard.superclass.RenderBackgroundFill.call(this,a,b,c)};
DvtAfPanelCard.prototype.RenderBackgroundStroke=function(a,b){if(b&&"gradient"==b.getStyle(dvt.CSSStyle.BORDER_TYPE)){var c=b.getStyle(dvt.CSSStyle.BORDER_COLOR),d=b.getBorderWidth(),c=this.CreateGradientStroke(c,d);a.setStroke(c)}else DvtAfPanelCard.superclass.RenderBackgroundStroke.call(this,a,b)};DvtAfPanelCard.prototype.CreateGradientFill=function(a){var b=this.GetFillGradientColors(a);a=dvt.ColorUtils.getAlpha(a);return new dvt.LinearGradientFill(-90,b,[a,a,a],[0,50/255,1])};
DvtAfPanelCard.prototype.CreateGradientStroke=function(a,b){var c=this.GetStrokeGradientColors(a),d=dvt.ColorUtils.getAlpha(a);return new dvt.LinearGradientStroke(-90,c,[d,d,d],[0,130/255,1],null,b)};DvtAfPanelCard.prototype.GetFillGradientColors=function(a){return[a,"#FFFFFF","#FFFFFF"]};
DvtAfPanelCard.prototype.GetStrokeGradientColors=function(a){var b=(dvt.ColorUtils.getRed("#D7DFE3")-dvt.ColorUtils.getRed("#98ABBC"))/(255-dvt.ColorUtils.getRed("#98ABBC")),c=(dvt.ColorUtils.getGreen("#D7DFE3")-dvt.ColorUtils.getGreen("#98ABBC"))/(255-dvt.ColorUtils.getGreen("#98ABBC")),d=(dvt.ColorUtils.getBlue("#D7DFE3")-dvt.ColorUtils.getBlue("#98ABBC"))/(255-dvt.ColorUtils.getBlue("#98ABBC")),e=dvt.ColorUtils.getRed(a),f=dvt.ColorUtils.getGreen(a),g=dvt.ColorUtils.getBlue(a),h=dvt.ColorUtils.makePound(e+
b*(255-e),f+c*(255-f),g+d*(255-g)),b=(dvt.ColorUtils.getRed("#ADBEC9")-dvt.ColorUtils.getRed("#98ABBC"))/(255-dvt.ColorUtils.getRed("#98ABBC")),c=(dvt.ColorUtils.getGreen("#ADBEC9")-dvt.ColorUtils.getGreen("#98ABBC"))/(255-dvt.ColorUtils.getGreen("#98ABBC")),d=(dvt.ColorUtils.getBlue("#ADBEC9")-dvt.ColorUtils.getBlue("#98ABBC"))/(255-dvt.ColorUtils.getBlue("#98ABBC")),e=dvt.ColorUtils.getRed(a),f=dvt.ColorUtils.getGreen(a),g=dvt.ColorUtils.getBlue(a),b=dvt.ColorUtils.makePound(e+b*(255-e),f+c*(255-
f),g+d*(255-g));return[a,h,b]};DvtAfPanelCard.prototype._render=function(a,b){DvtAfPanelCard.superclass._render.call(this,a,b);var c=this.getAfContext().getPanelCardCallbackObj(),d=this.getAfContext().getPanelCardCallback();c&&d&&this.addEvtListener(d,c)};
DvtAfPanelCard.prototype._loadDetailItem=function(a,b){if(b||!a.getDisplayObj()){var c=this._getDiagram();if(c){c=c.createAfContext(this._getNodeId());c.setParentNode(this._getNode());c.setContextCallback(this.getContextCallbackObj(),this.getContextCallback());c.setAvailableWidth(this._acw);c.setAvailableHeight(this._ach);c.setTabStopsArray(this._getNode().getTabStopsArray());this._savedAfContext=this.getAfContext();this.setAfContext(c);var d=a.stamp(c.getELContext());d.setParent(this);d.createDisplayObj(c);
a=this._insertChild(a,d);a.SetLoaded(!0);DvtAfPanelCard._setItemDisplayableVisible(a,!0)}}return a};DvtAfPanelCard.prototype._insertChild=function(a,b){for(var c=-1,d,e=0;e<this.getNumChildren();e++)if(d=this.getChildAt(e),d===a){c=e;break}d=this._getChildren();0<=c?d.splice(c,1,b):d.push(b);this.getDisplayObj().addChildAt(b.getDisplayObj(),0);return b};DvtAfPanelCard.prototype.isSwipeTarget=function(){return 1<this.getDetailItemCount()};
DvtAfPanelCard.prototype.handleSwipe=function(a,b){return 20<Math.abs(a)&&2>Math.abs(b/a)?(0<a?this.HandlePrevButtonClick(null):this.HandleNextButtonClick(null),!0):!1};
DvtAfPanelCard.prototype.postRenderSelfBeforeChildren=function(){var a=this._getNode();if(this.getNodeShape()===DvtAfPanelCard.SHAPE_ELLIPSE&&a&&a.stageToLocal){var a=DvtAfPanelCard._getNodeContentRoot(a),b=this.getZoomPct(),c=10*b,d=this.getNodeWidth()*b,e=this.getNodeHeight()*b,b=this.getBounds(),f=new dvt.Point(b.x,b.y),g=new dvt.Point(b.x+b.w,b.y+b.h),b=this._getGroupDO(),f=b.localToStage(f),g=b.localToStage(g),h=a.stageToLocal(f),g=a.stageToLocal(g),f=(d-2*c)/2,c=(e-2*c)/2,k=d/2,e=e/2,l=this._solveEllipseForX(f,
c,k,e,h.y),m=d-l,n=this._solveEllipseForX(f,c,k,e,g.y),d=d-n,p;l>m&&(p=l,l=m,m=p);n>d&&(p=n,n=d,d=p);l=b.stageToLocal(a.localToStage(new dvt.Point(l,h.y)));h=b.stageToLocal(a.localToStage(new dvt.Point(m,h.y)));n=b.stageToLocal(a.localToStage(new dvt.Point(n,g.y)));d=b.stageToLocal(a.localToStage(new dvt.Point(d,g.y)));a=b.stageToLocal(a.localToStage(new dvt.Point(k,e)));this.drawFlattenedEllipse(l.x,h.x,l.y,n.x,d.x,n.y,a.x,a.y,f,c,b)}};
DvtAfPanelCard.prototype._solveEllipseForX=function(a,b,c,d,e){return c+a*Math.sqrt(1-(e-d)*(e-d)/(b*b))};
DvtAfPanelCard.prototype.drawFlattenedEllipse=function(a,b,c,d,e,f,g,h,k,l,m,n){Math.abs(c-f);Math.abs(b-a);Math.abs(e-d);n||(n=this.getCSSStyle());var p,q,r;n&&(p=n.getStyle(dvt.CSSStyle.BACKGROUND_COLOR),q=DvtAfComponent.getBorderColor(n),n.getBorderWidth(),r=n.getBackgroundImage(),n.getStyle(dvt.CSSStyle.FILL_TYPE),n.getStyle(dvt.CSSStyle.BORDER_TYPE));if(p||q){var s=Math.acos((b-g)/k)*(180/Math.PI);q=Math.acos((e-g)/k)*(180/Math.PI);c<h&&(s=-s);f<h&&(q=-q);var t=q-s,s=this.getArcPoints(g,h,k,
l,s/360,t/360,20),u,v,w,y,x;w=x=0;y=s.length-1;for(var A=0;A<s.length-1;A++)if(u=s[A],v=s[A+1],x+=Math.sqrt((v.x-u.x)*(v.x-u.x)+(v.y-u.y)*(v.y-u.y)),8<x){w=A+1;w>s.length-1&&(w=s.length-1);break}x=0;for(A=s.length-2;0<A;A--)if(u=s[A],v=s[A+1],x+=Math.sqrt((v.x-u.x)*(v.x-u.x)+(v.y-u.y)*(v.y-u.y)),8<x){y=A;0>y&&(y=0);break}b=dvt.PathUtils.moveTo(a+8,c)+dvt.PathUtils.lineTo(b-8,c)+dvt.PathUtils.quadTo(b,c,s[w].x,s[w].y);for(A=w;A<=y;A++)u=s[A],b+=dvt.PathUtils.lineTo(u.x,u.y);b+=dvt.PathUtils.quadTo(e,
f,e-8,f)+dvt.PathUtils.lineTo(d+8,f);s=this.getArcPoints(g,h,k,l,(180-q)/360,t/360,20);A=w;w=s.length-1-y;y=s.length-1-A;b+=dvt.PathUtils.quadTo(d,f,s[w].x,s[w].y);for(A=w;A<=y;A++)u=s[A],b+=dvt.PathUtils.lineTo(u.x,u.y);b+=dvt.PathUtils.quadTo(a,c,a+8,c)+dvt.PathUtils.closePath();m&&m.setCmds&&m.setCmds(b)}p&&this.RenderBackgroundFill(m,n,p);this.RenderBackgroundStroke(m,n);this.RenderBackgroundImage(m,n,r)};
DvtAfPanelCard.prototype.getArcPoints=function(a,b,c,d,e,f,g){var h=[],k=2*Math.PI;f/=g;var l=a+Math.cos(e*k)*c,m=b+Math.sin(e*k)*d;h.push(new dvt.Point(l,m));for(var n=1;n<=g;n++)m=e+n*f,l=a+Math.cos(m*k)*c,m=b+Math.sin(m*k)*d,h.push(new dvt.Point(l,m));return h};
DvtAfPanelCard.prototype.TransitionDisplayItems=function(a,b,c){var d;if(a==DvtAfPanelCard.EFFECT_SLIDE_HORZ)this._addTransitionClipPath(),d=this.TransitionSlideHorizontal(b);else if(a==DvtAfPanelCard.EFFECT_FLIP_HORZ){a=this._getNode();d=this._oldChild?this._oldChild.getDisplayObj():null;var e=this._child?this._child.getDisplayObj():null;d=this.TransitionBitmaps(a,d,e,b,this.createCallback(this.createCombinedFlip))}else a==DvtAfPanelCard.EFFECT_NODE_FLIP_HORZ?(a=this._getNode(),d=this.TransitionBitmaps(a,
a,a,b,this.createCallback(this.createCombinedFlip))):a==DvtAfPanelCard.EFFECT_CUBE_ROTATE_HORZ?(a=this._getNode(),d=this._oldChild?this._oldChild.getDisplayObj():null,e=this._child?this._child.getDisplayObj():null,d=this.TransitionBitmaps(a,d,e,b,this.createCallback(this.createCombinedCube))):a==DvtAfPanelCard.EFFECT_NODE_CUBE_ROTATE_HORZ?(a=this._getNode(),d=this.TransitionBitmaps(a,a,a,b,this.createCallback(this.createCombinedCube))):(this.TransitionImmediate(),this._endTransition(),c&&c.call());
if(d){var f=!0,g=!0;this._nextButton&&(f=this._nextButton.isMouseEnabled(),this._nextButton.setMouseEnabled(!1));this._prevButton&&(g=this._prevButton.isMouseEnabled(),this._prevButton.setMouseEnabled(!1));var h=this,k=d.getOnEnd();d.setOnEnd(k?function(){h._nextButton&&h._nextButton.setMouseEnabled(f);h._prevButton&&h._prevButton.setMouseEnabled(g);k[0].call(k[1]);h._endTransition();c&&c.call()}:function(){h._nextButton&&h._nextButton.setMouseEnabled(f);h._prevButton&&h._prevButton.setMouseEnabled(g);
h._endTransition();c&&c.call()},this);d.play()}};
DvtAfPanelCard.prototype.TransitionSlideHorizontal=function(a){var b=this._oldChild.getDisplayObj(),c=this._child.getDisplayObj(),d=this._oldTitleBar,e=this._titleBar,f=[],g=[],h;this._setTrainSelectedIndex();var k=this.getNodeWidth();a||(k=-k);b!=c&&(f.push(b),g.push(c),c.setTranslateX(c.getTranslateX()+k));d!=e&&(d&&f.push(d),e&&(g.push(e),e.setTranslateX(e.getTranslateX()+k)));if(f.length||g.length)h=new dvt.CombinedAnimMoveBy(this.getDvtContext(),f,g,new dvt.Point(-k),new dvt.Point(-k),DvtAfPanelCard.EFFECT_DURATION),
h.setOnEnd(this.removeOldDisplayItem,this),h.play();return h};DvtAfPanelCard.prototype.TransitionImmediate=function(){this.removeOldDisplayItem();this._setTrainSelectedIndex()};DvtAfPanelCard.prototype.createCombinedFlip=function(a,b,c){var d=dvt.BaseAnimation.AXIS_Y;c=c?dvt.BaseAnimation.ROT_DIR_COUNTERCLOCKWISE:dvt.BaseAnimation.ROT_DIR_CLOCKWISE;return new dvt.CombinedAnimFlip(this.getDvtContext(),a,b,d,c,DvtAfPanelCard.EFFECT_DURATION)};
DvtAfPanelCard.prototype.createCombinedCube=function(a,b,c){var d=dvt.BaseAnimation.AXIS_Y;c=c?dvt.BaseAnimation.ROT_DIR_COUNTERCLOCKWISE:dvt.BaseAnimation.ROT_DIR_CLOCKWISE;return new dvt.CombinedAnimCube(this.getDvtContext(),a,b,d,c,2*DvtAfPanelCard.EFFECT_DURATION)};
DvtAfPanelCard.prototype.TransitionBitmaps=function(a,b,c,d,e){var f=this._oldNode;a=DvtAfPanelCard._getNodeContentRoot(a);b=this.createBitmapDataForTransition(f,f,b,this._oldTitleBar);c=this.createBitmapDataForTransition(f,a,c,this._titleBar);d=e(b,c,d);var g=this;d.setOnEnd(function(){g._setTrainSelectedIndex();if(f){var a=f.getParent();a&&a.removeChild(f);g._oldNode=null}else g.removeOldDisplayItem()},this);return d};
DvtAfPanelCard.prototype.createBitmapDataForTransition=function(a,b,c,d){return a?[b]:[c,d]};DvtAfPanelCard.prototype._addTransitionClipPath=function(){this._cpContainer=this.CreateNewContainerForChildren();var a=new dvt.ClipPath(this._getUniqueId()+DvtAfComponentUtils._CLIP_PATH_SUFFIX);if(this.getNodeShape()==DvtAfPanelCard.SHAPE_ELLIPSE)a.addPath(this._contentPane.getCmds());else{var b=DvtAfComponent.getDimensions(this);a.addRect(b.x,b.y,b.w,b.h)}this._cpContainer.setClipPath(a)};
DvtAfPanelCard.prototype._removeTransitionClipPath=function(){this._cpContainer&&(this.RemoveChildrenContainer(this._cpContainer),this._cpContainer=null)};DvtAfPanelCard.prototype._endTransition=function(){this._bTransitioning=!1;this._removeTransitionClipPath()};DvtAfPanelCard._getNodeContentRoot=function(a){var b;a.GetAfComponentRoot&&(b=a.GetAfComponentRoot());return b&&b.getDisplayObj?b.getDisplayObj():a};DvtAfPanelCard._setTitleBarVisible=function(a,b){a&&a.setVisible(b)};
DvtAfPanelCard._setItemDisplayableVisible=function(a,b){a&&a.SetDOVisible&&a.SetDOVisible(b)};DvtAfPanelCard.prototype._setTrainSelectedIndex=function(){this._train&&this._train.setSelectedIndex(this.getDisplayedDetailItemIndex())};var DvtNavButton=function(a,b,c,d,e,f){this.Init(a,b,c,d,e,f)};dvt.Obj.createSubclass(DvtNavButton,dvt.Button,"DvtNavButton");DvtNavButton.prototype.Init=function(a,b,c,d,e,f){DvtNavButton.superclass.Init.call(this,b,c,d,e,f);this._panelCard=a};
DvtNavButton.prototype.getTooltip=function(){return this._panelCard.getNavButtonTooltip(this)};DvtNavButton.prototype.getAriaLabel=function(){return this.getTooltip()};DvtNavButton.prototype.getPanelCard=function(){return this._panelCard};
var DvtAfShowPopupBehavior=function(){this.Init()};dvt.Obj.createSubclass(DvtAfShowPopupBehavior,dvt.PropMap,"DvtAfShowPopupBehavior");DvtAfShowPopupBehavior.TAG_NAME="spb";DvtAfComponentFactory.registerComponent(DvtAfShowPopupBehavior.TAG_NAME,DvtAfShowPopupBehavior);DvtAfShowPopupBehavior.ATTR_POPUP_ID="popupId";DvtAfShowPopupBehavior.ATTR_TRIGGER_TYPE="triggerType";DvtAfShowPopupBehavior.ATTR_ALIGN_ID="alignId";DvtAfShowPopupBehavior.ATTR_ALIGN="align";
DvtAfShowPopupBehavior.prototype.getPopupId=function(){return this.getProperty(DvtAfShowPopupBehavior.ATTR_POPUP_ID)};DvtAfShowPopupBehavior.prototype.setPopupId=function(a){this.setProperty(DvtAfShowPopupBehavior.ATTR_POPUP_ID,a)};DvtAfShowPopupBehavior.prototype.getTriggerType=function(){return this.getProperty(DvtAfShowPopupBehavior.ATTR_TRIGGER_TYPE)};DvtAfShowPopupBehavior.prototype.setTriggerType=function(a){this.setProperty(DvtAfShowPopupBehavior.ATTR_TRIGGER_TYPE,a)};
DvtAfShowPopupBehavior.prototype.getAlignId=function(){return this.getProperty(DvtAfShowPopupBehavior.ATTR_ALIGN_ID)};DvtAfShowPopupBehavior.prototype.setAlignId=function(a){this.setProperty(DvtAfShowPopupBehavior.ATTR_ALIGN_ID,a)};DvtAfShowPopupBehavior.prototype.getAlign=function(){return this.getProperty(DvtAfShowPopupBehavior.ATTR_ALIGN)};DvtAfShowPopupBehavior.prototype.setAlign=function(a){this.setProperty(DvtAfShowPopupBehavior.ATTR_ALIGN,a)};
DvtAfShowPopupBehavior.prototype.createDisplayObj=function(a){return new dvt.ShowPopupBehavior(this.getPopupId(),this.getTriggerType(),this.getAlignId(),this.getAlign())};
var DvtAfClientBehavior=function(){this.Init()};dvt.Obj.createSubclass(DvtAfClientBehavior,dvt.PropMap,"DvtAfClientBehavior");DvtAfClientBehavior.TAG_NAME="bhvr";DvtAfComponentFactory.registerComponent(DvtAfClientBehavior.TAG_NAME,DvtAfClientBehavior);DvtAfClientBehavior.ATTR_TYPE="type";DvtAfClientBehavior.ATTR_TRIGGER_TYPE="triggerType";DvtAfClientBehavior.prototype.getType=function(){return this.getProperty(DvtAfClientBehavior.ATTR_TYPE)};
DvtAfClientBehavior.prototype.setType=function(a){this.setProperty(DvtAfClientBehavior.ATTR_TYPE,a)};DvtAfClientBehavior.prototype.getTriggerType=function(){return this.getProperty(DvtAfClientBehavior.ATTR_TRIGGER_TYPE)};DvtAfClientBehavior.prototype.setTriggerType=function(a){this.setProperty(DvtAfClientBehavior.ATTR_TRIGGER_TYPE,a)};
DvtAfClientBehavior.prototype.createDisplayObj=function(a){a=new dvt.ClientBehavior(this.getType(),this.getTriggerType());for(var b in this._props)b!=DvtAfClientBehavior.ATTR_TYPE&&b!=DvtAfClientBehavior.ATTR_TRIGGER_TYPE&&a.setProperty(b,this.getProperty(b));return a};
var DvtAfGroup=function(){this.Init()};dvt.Obj.createSubclass(DvtAfGroup,DvtAfComponent,"DvtAfGroup");DvtAfGroup.TAG_NAME="grp";DvtAfComponentFactory.registerComponent(DvtAfGroup.TAG_NAME,DvtAfGroup);DvtAfGroup.prototype.GetDefaultStyles=function(){return DvtAfGroup._afStyles};DvtAfGroup.prototype.SetDefaultStyles=function(a){DvtAfGroup._afStyles=a};DvtAfGroup.prototype.getTagName=function(){return DvtAfGroup.TAG_NAME};DvtAfGroup.prototype._hasBgShape=function(){return!1};
DvtAfGroup.prototype.stamp=function(a){return DvtAfComponent.superclass.stamp.call(this,a)};
var DvtAfPointLocation=function(){this.Init()};dvt.Obj.createSubclass(DvtAfPointLocation,DvtAfComponent,"DvtAfPointLocation");DvtAfPointLocation.TAG_NAME="pLoc";DvtAfComponentFactory.registerComponent(DvtAfPointLocation.TAG_NAME,DvtAfPointLocation);DvtAfPointLocation.prototype.GetDefaultStyles=function(){return DvtAfPointLocation._afStyles};DvtAfPointLocation.prototype.SetDefaultStyles=function(a){DvtAfPointLocation._afStyles=a};DvtAfPointLocation.prototype.getTagName=function(){return DvtAfPointLocation.TAG_NAME};
DvtAfPointLocation.prototype._hasBgShape=function(){return!1};DvtAfPointLocation.prototype.stamp=function(a){return DvtAfComponent.superclass.stamp.call(this,a)};
