(function(dvt) {
dvt.Text=function(a,b,c,d,e){this.Init(a,b,c,d,e)};dvt.Obj.createSubclass(dvt.Text,dvt.Shape,"dvt.Text");dvt.Text.ELLIPSIS="\u2026";dvt.Text.H_ALIGN_LEFT="left";dvt.Text.H_ALIGN_CENTER="center";dvt.Text.H_ALIGN_RIGHT="right";dvt.Text.H_ALIGN_DEFAULT=dvt.Text.H_ALIGN_LEFT;dvt.Text.V_ALIGN_TOP="top";dvt.Text.V_ALIGN_MIDDLE="middle";dvt.Text.V_ALIGN_BOTTOM="bottom";dvt.Text.V_ALIGN_BASELINE="baseline";dvt.Text.V_ALIGN_DEFAULT=dvt.Text.V_ALIGN_TOP;dvt.Text._BULK_TRUNCATION=!0;
dvt.Text._TRUNCATION_DONE=0;dvt.Text._TRUNCATION_GUESS_TOO_SHORT=1;dvt.Text._TRUNCATION_GUESS_TOO_LONG=2;
dvt.Text.prototype.Init=function(a,b,c,d,e){dvt.Text.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):dvt.Text.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=dvt.Text.H_ALIGN_DEFAULT;dvt.Text.H_ALIGN_DEFAULT!=dvt.Text.H_ALIGN_LEFT&&this.setHorizAlignment(dvt.Text.H_ALIGN_DEFAULT);this._vertAlign=dvt.Text.V_ALIGN_DEFAULT;dvt.Text.V_ALIGN_DEFAULT!=dvt.Text.V_ALIGN_BASELINE&&this.setVertAlignment(dvt.Text.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")};dvt.Text.prototype.alignLeft=function(){this._horizAlign=dvt.Text.H_ALIGN_LEFT;this.impl_alignLeft()};dvt.Text.prototype.alignCenter=function(){this._horizAlign=dvt.Text.H_ALIGN_CENTER;this.impl_alignCenter()};dvt.Text.prototype.alignRight=function(){this._horizAlign=dvt.Text.H_ALIGN_RIGHT;this.impl_alignRight()};
dvt.Text.prototype.alignTop=function(){this._vertAlign=dvt.Text.V_ALIGN_TOP;this.impl_alignTop()};dvt.Text.prototype.alignMiddle=function(){this._vertAlign=dvt.Text.V_ALIGN_MIDDLE;this.impl_alignMiddle()};dvt.Text.prototype.alignBottom=function(){this._vertAlign=dvt.Text.V_ALIGN_BOTTOM;this.impl_alignBottom()};dvt.Text.prototype.alignBaseline=function(){this._vertAlign=dvt.Text.V_ALIGN_BASELINE;this.impl_alignBaseline()};dvt.Text.prototype.getHorizAlignment=function(){return this._horizAlign};
dvt.Text.prototype.setHorizAlignment=function(a){a==dvt.Text.H_ALIGN_LEFT?this.alignLeft():a==dvt.Text.H_ALIGN_CENTER?this.alignCenter():a==dvt.Text.H_ALIGN_RIGHT&&this.alignRight()};dvt.Text.prototype.getVertAlignment=function(){return this._vertAlign};dvt.Text.prototype.setVertAlignment=function(a){a==dvt.Text.V_ALIGN_TOP?this.alignTop():a==dvt.Text.V_ALIGN_MIDDLE?this.alignMiddle():a==dvt.Text.V_ALIGN_BOTTOM?this.alignBottom():a==dvt.Text.V_ALIGN_BASELINE&&this.alignBaseline()};
dvt.Text.prototype.getX=function(){return this.impl_getX()};dvt.Text.prototype.setX=function(a){this.impl_setX(a)};dvt.Text.prototype.getY=function(){return this.impl_getY()};dvt.Text.prototype.setY=function(a){this.impl_setY(a)};dvt.Text.prototype.getTextString=function(){return String(this.impl_getTextString())};
dvt.Text.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};dvt.Text.prototype.getEditMode=function(){return this.impl_getEditMode()};dvt.Text.prototype.setEditMode=function(a,b,c){this.impl_setEditMode(a,b,c)};dvt.Text.prototype.setEditWidth=function(a){this.impl_setEditWidth(a)};dvt.Text.prototype.setEditTooltip=function(a){this.impl_setEditTooltip(a)};
dvt.Text.prototype.getEditBorder=function(a){return this.impl_getEditBorder()};dvt.Text.prototype.setEditBorder=function(a){this.impl_setEditBorder(a)};dvt.Text.prototype.selectEditText=function(){this.impl_selectEditText&&this.impl_selectEditText()};dvt.Text.prototype.focusEditText=function(){this.impl_focusEditText&&this.impl_focusEditText()};dvt.Text.prototype.setTextString=function(a){this._textString=a;this.impl_setTextString(a);this._setCachedDims(void 0)};
dvt.Text.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()))};dvt.Text.prototype.setMaxWidth=function(a,b){this._maxw=a;this._minChars=b;0<a&&this._ProcessText()};
dvt.Text.prototype.getText=function(){return this.getEditMode()&&this.impl_getText?this.impl_getText():this._text};dvt.Text.prototype._setTextWithSize=function(a,b){this.impl_setText(a,b)};dvt.Text.prototype.setTruncateAt=function(a){this._truncateAt=a;this.DoSetText(this.getText())};dvt.Text.prototype.getTruncateAt=function(){return this._truncateAt};dvt.Text.prototype.DoSetText=function(a){a=this.DoTruncateAt(a,this.getTruncateAt());this._setCachedDims(void 0);this._setText(a);a&&this._ProcessText()};
dvt.Text.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};dvt.Text.prototype.isTruncated=function(){return this._bTruncated};dvt.Text.prototype.getUntruncatedTextString=function(){return this._untruncatedTextString};dvt.Text.prototype.setUntruncatedTextString=function(a){a!=this.getTextString()&&(this._untruncatedTextString=a)};dvt.Text.prototype.isTruncationEnabled=function(){return 0<this._maxw&&!this._bHtmlText};
dvt.Text.prototype.setText=function(a){this._text=a;this.DoSetText(a)};dvt.Text.prototype._setText=function(a){this.impl_setText(a)};dvt.Text.prototype._getText=function(){return this.impl_getText()};dvt.Text.prototype.setCSSStyle=function(a){this._cloneCSSStyle&&(this._cloneCSSStyle=null);this._setCachedDims(void 0);dvt.Text.superclass.setCSSStyle.call(this,a);this.impl_setCSSStyle(a);null!==this._text&&"undefined"!==typeof this._text?this.setText(this.getText()):this._ProcessText()};
dvt.Text.prototype._ProcessText=function(){this.isTruncationEnabled()&&!this._inProcess&&(this._inProcess=!0,this._TruncateText(),this._inProcess=!1)};
dvt.Text.prototype.measureDimensions=function(a){dvt.Text._cache||(dvt.Text._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=dvt.Text._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);dvt.Text._cache.put(b,
d)}return a&&a!==this?this.ConvertCoordSpaceRect(c,a):c};dvt.Text.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)))}};
dvt.Text.prototype._GetTempTextField=function(){if(void 0===this._ttf){var a=new dvt.Text(this.getCtx(),null,0,0,this.getId()+"__tmp");this.getCtx().getStage().addChild(a);this._ttf=a}return this._ttf};dvt.Text.prototype._RemoveTempTextField=function(){this._ttf&&(this.getCtx().getStage().removeChild(this._ttf),this._ttf=void 0)};dvt.Text.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};
dvt.Text.prototype.GetDimsForCaching=function(){return dvt.Text.superclass.getDimensions.call(this)};dvt.Text.prototype._setCachedDims=function(a){dvt.DisplayableUtils._setDimForced(this,a)};dvt.Text.prototype.truncateText=function(a){this.setTruncationDeferred(a);a||this._ProcessText()};dvt.Text.prototype.setTruncationDeferred=function(a){this._defTrunc=a};dvt.Text.prototype.isTruncationDeferred=function(){return this._defTrunc};
dvt.Text.truncateTexts=function(a){if(dvt.Text._BULK_TRUNCATION)dvt.Text._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)}}};dvt.Text.prototype.getDimensions=function(a){if(this.isTruncated()&&this._defTrunc&&!this._dim){var b=this.GetSvgDimensions();b.w=this._maxw;return a&&a!==this?this.ConvertCoordSpaceRect(b,a):b}return dvt.Text.superclass.getDimensions.call(this)};
dvt.Text.prototype.getCSSStyle=function(){return this._cloneCSSStyle?this._cloneCSSStyle:dvt.Text.superclass.getCSSStyle.call(this)};dvt.Text.prototype._measureText=function(a,b){this.setTextString(a);return this.getDimensions()};
dvt.Text.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)+dvt.Text.ELLIPSIS;for(c=this._measureText(g,f);c.w<a&&!(e>=d.length);)e+=1,g=d.substring(0,e)+dvt.Text.ELLIPSIS,c=this._measureText(g,f);for(;c.w>a;){if(e<=b){g="";c.w=0;break}--e;g=d.substring(0,e)+dvt.Text.ELLIPSIS;c=this._measureText(g,f)}this.setTextString(g);return c};
dvt.Text._bulkSetDimensions=function(a){for(var b,c=0;c<a.length;c++)b=a[c],b._setCachedDims(b.GetDimsForCaching())};dvt.Text.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)+dvt.Text.ELLIPSIS);this._maxNumChars=a;this._setCachedDims(void 0);this._originalText=d;this._minChars2=b;this._state=dvt.Text._TRUNCATION_GUESS_TOO_SHORT};
dvt.Text.prototype._doTruncation=function(){var a=this._state,b=this._originalText,c=this.getCachedDims(),d=this._maxNumChars,e=this._maxw;a==dvt.Text._TRUNCATION_GUESS_TOO_SHORT&&(c.w<e?d>=b.length?a=dvt.Text._TRUNCATION_GUESS_TOO_LONG:(d+=1,this.setTextString(b.substring(0,d)+dvt.Text.ELLIPSIS),this._maxNumChars=d,this._setCachedDims(void 0)):a=dvt.Text._TRUNCATION_GUESS_TOO_LONG);a==dvt.Text._TRUNCATION_GUESS_TOO_LONG&&(c.w>e?d<=this._minChars2?(this.setTextString(""),c.w=0,a=dvt.Text._TRUNCATION_DONE):
(--d,this.setTextString(b.substring(0,d)+dvt.Text.ELLIPSIS),0==d?(c.w=0,a=dvt.Text._TRUNCATION_DONE):(this._maxNumChars=d,this._setCachedDims(void 0))):a=dvt.Text._TRUNCATION_DONE);if(a==dvt.Text._TRUNCATION_DONE)return this._state=this._minChars2=this._originalText=this._maxNumChars=void 0,!0;this._state=a;return!1};
dvt.Text._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;dvt.Text._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,dvt.Text._bulkSetDimensions(a),c=[]):d=!0}};dvt.Text.prototype.copyShape=function(){return new dvt.Text(this.getCtx(),this.getText(),this.getX(),this.getY())};dvt.Text.prototype.isEditing=function(){return this.impl_isEditing()};
dvt.Text.prototype.destroy=function(){dvt.Text.superclass.destroy.call(this);this.impl_destroy&&this.impl_destroy()};dvt.Text.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};
dvt.Text.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()};
dvt.Text.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"))}};dvt.Text.prototype.impl_getX=function(){return this._x};dvt.Text.prototype.impl_setX=function(a){a!==this._x&&(this._x=a,dvt.ToolkitUtils.setAttrNullNS(this.getElem(),"x",a,0))};dvt.Text.prototype.impl_getY=function(){return this._y};dvt.Text.prototype.impl_setY=function(a){a!==this._y&&(this._y=a,dvt.ToolkitUtils.setAttrNullNS(this.getElem(),"y",a,0))};
dvt.Text.prototype.impl_setFontSize=function(a){dvt.ToolkitUtils.setAttrNullNS(this.getElem(),"font-size",a);dvt.Agent.isPlatformIE()&&this.setMatrix(this.getMatrix())};dvt.Text.prototype.impl_alignLeft=function(){var a=dvt.Text.needsTextAnchorAdjustment(this.getCtx());dvt.ToolkitUtils.setAttrNullNS(this.getElem(),"text-anchor",a?"end":"start")};dvt.Text.prototype.impl_alignCenter=function(){dvt.ToolkitUtils.setAttrNullNS(this.getElem(),"text-anchor","middle")};
dvt.Text.prototype.impl_alignRight=function(){var a=dvt.Text.needsTextAnchorAdjustment(this.getCtx());dvt.ToolkitUtils.setAttrNullNS(this.getElem(),"text-anchor",a?"start":"end")};dvt.Text.prototype.impl_alignTop=function(){dvt.Agent.isPlatformIE()?this.impl_SetBaseline(1):this.impl_SetDominantBaselineAttr("text-before-edge")};dvt.Text.prototype.impl_alignMiddle=function(){dvt.Agent.isPlatformIE()?this.impl_SetBaseline(.4):this.impl_SetDominantBaselineAttr("middle")};
dvt.Text.prototype.impl_alignBottom=function(){dvt.Agent.isPlatformIE()?this.impl_SetBaseline(.2):this.impl_SetDominantBaselineAttr("text-after-edge")};dvt.Text.prototype.impl_alignBaseline=function(){dvt.Agent.isPlatformIE()?this.impl_SetBaseline(0):this.impl_SetDominantBaselineAttr(null)};dvt.Text.prototype.impl_SetBaseline=function(a){this._baseline=a;this.setMatrix(this.getMatrix())};
dvt.Text.prototype.impl_SetDominantBaselineAttr=function(a){a?dvt.ToolkitUtils.setAttrNullNS(this.getElem(),"dominant-baseline",a):dvt.ToolkitUtils.removeAttrNullNS(this.getElem(),"dominant-baseline")};dvt.Text.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)};
dvt.Text.prototype.impl_getText=function(){if(this._bEditMode&&this._editElem)return this._editElem.value;var a=this.impl_GetTextElem().firstChild;if(a)return a.nodeValue};
dvt.Text.prototype.impl_setCSSStyle=function(a){var b=this.getOuterElem();if(a){var c=a.getStyle("color");(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)}};dvt.Text.prototype.impl_getEditMode=function(){return this._bEditMode};
dvt.Text.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))};
dvt.Text.prototype._updateEditRectElem=function(){if(dvt.Agent.isPlatformIE()&&this._editRectElem){var a=this._getBaselineTranslation();dvt.ToolkitUtils.setAttrNullNS(this._editRectElem,"transform","translate(0,"+-a+")")}};
dvt.Text.prototype.impl_SetEditing=function(a){if(this._bEditMode&&a!=this._bEditing){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}else a&&this._editElem&&this._updateEditElement()};dvt.Text.prototype.impl_getEditWidth=function(a){return this._editPxWidth};dvt.Text.prototype.impl_setEditWidth=function(a){this._editPxWidth=a;this._alignTextForEdit()};
dvt.Text.prototype.impl_setEditTooltip=function(a){this._editTooltip=a};dvt.Text.prototype.impl__handleHtmlTextAreaKeyboardEvent=function(a){dvt.Text._editFilter(a);this.getObj().dispatchDisplayableEvent(a.type,dvt.DomEventFactory.newEvent(a,this.getCtx()))};dvt.Text._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()}};
dvt.Text.prototype.impl_selectEditText=function(){this._editElem&&this._editElem.select()};dvt.Text.prototype.impl_focusEditText=function(){this.impl_SetEditing(!0);if(this._editElem){var a=this;window.setTimeout(function(){a._editElem.focus()},0)}};dvt.Text.prototype.impl__blurEditText=function(){this.impl_SetEditing(!1)};dvt.Text.prototype.impl__removeDefaultFontAttributes=function(a){dvt.ToolkitUtils.removeAttrNullNS(a,"font-family");dvt.ToolkitUtils.removeAttrNullNS(a,"fill")};
dvt.Text.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};
dvt.Text.prototype.impl__createTextNode=function(a){this.impl__addTextNode(this.getElem(),a)};dvt.Text.prototype.impl__addTextNode=function(a,b){var c=document.createTextNode(b);a?dvt.ToolkitUtils.appendChildElem(a,c):dvt.ToolkitUtils.appendChildElem(this.getElem(),c)};
dvt.Text.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};dvt.Text.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};
dvt.Text.prototype.setMatrix=function(a){dvt.Agent.isPlatformIE()&&(this._matrixForIE=a,a=this._getBaselineAdjustedMatrix(a),this._updateEditRectElem());dvt.Text.superclass.setMatrix.call(this,a)};dvt.Text.prototype.getMatrix=function(){var a=null;dvt.Agent.isPlatformIE()&&(a=this._matrixForIE);a||(a=dvt.Text.superclass.getMatrix.call(this));return a};dvt.Text.prototype.GetSvgDimensions=function(){var a=dvt.Text.superclass.GetSvgDimensions.call(this);a&&(a.y+=this._getBaselineTranslation());return a};
dvt.Text.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 dvt.Text(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};dvt.Text.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));dvt.Text.superclass.AddElemListener.call(this,a,b,c)};dvt.Text.prototype.impl_GetTextElem=function(){return this._elem};
dvt.Text.prototype.impl_destroy=function(){this._editElem&&(this.impl_SetEditing(!1),this._editElem=null)};dvt.Text.prototype.impl_isEditing=function(){return this._bEditing};dvt.Text.needsTextAnchorAdjustment=function(a){return dvt.Agent.isRightToLeft()&&(dvt.Agent.isPlatformWebkit()||dvt.Agent.isPlatformGecko()&&25<=dvt.Agent.getVersion())};
dvt.Text.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};
dvt.Text.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}}};
dvt.TextFormatted=function(a,b,c,d){this.Init(a,b,c,d)};dvt.Obj.createSubclass(dvt.TextFormatted,dvt.Text,"dvt.TextFormatted");dvt.TextFormatted.BOLD="b";dvt.TextFormatted.BREAK="br";dvt.TextFormatted.ITALIC="i";dvt.TextFormatted.LIST_ITEM="li";dvt.TextFormatted.ORDERED_LIST="ol";dvt.TextFormatted.PARAGRAPH="p";dvt.TextFormatted.UNORDERED_LIST="ul";dvt.TextFormatted.prototype.Init=function(a,b,c,d){dvt.TextFormatted.superclass.Init.call(this,a,"",b,c,d);this._bHtmlText=!0};
dvt.TextFormatted.prototype.getText=function(){return this.impl_getText()};dvt.TextFormatted.prototype.setText=function(a){this.impl_setText(a)};dvt.TextFormatted.prototype.GetDimsForCaching=function(){var a=this.getDimensions(),b=this.getX();a.x>b&&(a.w+=a.x-b,a.x=b);return a};dvt.TextFormatted.prototype.copyShape=function(){var a=new dvt.TextFormatted(this.getCtx(),this.getX(),this.getY());a.setText(this.getText());return a};
dvt.TextFormatted.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)};
dvt.TextFormatted.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!==dvt.TextFormatted.PARAGRAPH&&l!==dvt.TextFormatted.ORDERED_LIST&&l!==dvt.TextFormatted.UNORDERED_LIST&&(b=this.impl__handleMarkup(dvt.TextFormatted.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===dvt.TextFormatted.ORDERED_LIST||
l===dvt.TextFormatted.UNORDERED_LIST)0==n&&(p=!0),n++;this.impl__parseChildren(k,m,n,p,l===dvt.TextFormatted.LIST_ITEM);l===dvt.TextFormatted.BREAK&&(b=m);if(l===dvt.TextFormatted.PARAGRAPH||(l===dvt.TextFormatted.ORDERED_LIST||l===dvt.TextFormatted.UNORDERED_LIST)&&1>c)g=!0;l===dvt.TextFormatted.LIST_ITEM&&(d=!1)}}}};
dvt.TextFormatted.prototype.impl__handleMarkup=function(a,b,c,d){b=this.impl__createTSpan(null,b);a===dvt.TextFormatted.BOLD?dvt.ToolkitUtils.setAttrNullNS(b,"font-weight","bold"):a===dvt.TextFormatted.ITALIC?dvt.ToolkitUtils.setAttrNullNS(b,"font-style","italic"):a===dvt.TextFormatted.BREAK?(dvt.ToolkitUtils.setAttrNullNS(b,"x","0"),dvt.ToolkitUtils.setAttrNullNS(b,"dy","1em")):a===dvt.TextFormatted.PARAGRAPH?(this._bEnableVertIndent&&(dvt.ToolkitUtils.setAttrNullNS(b,"x","0"),dvt.ToolkitUtils.setAttrNullNS(b,
"dy","2em")),this._bEnableVertIndent=!0):a!==dvt.TextFormatted.ORDERED_LIST&&a!==dvt.TextFormatted.UNORDERED_LIST&&a===dvt.TextFormatted.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};
dvt.AfStyleUtils=function(){};dvt.Obj.createSubclass(dvt.AfStyleUtils,dvt.Obj,"dvt.AfStyleUtils");dvt.AfStyleUtils.AFStretchWidth_STYLE_CLASS="AFStretchWidth";dvt.AfStyleUtils.AFAuxiliaryStretchWidth_STYLE_CLASS="AFAuxiliaryStretchWidth";dvt.AfStyleUtils.AFHVNodeTitleLabelStyle_STYLE_CLASS="AFHVNodeTitleLabelStyle";dvt.AfStyleUtils.AFHVNodeSubtitleLabelStyle_STYLE_CLASS="AFHVNodeSubtitleLabelStyle";dvt.AfStyleUtils.AFHVNodeLabelStyle_STYLE_CLASS="AFHVNodeLabelStyle";
dvt.AfStyleUtils.AFHVPanelCardLabelStyle_STYLE_CLASS="AFHVPanelCardLabelStyle";dvt.AfStyleUtils.AFHVNodeTitleLabelStyle75_STYLE_CLASS="AFHVNodeTitleLabelStyle75";dvt.AfStyleUtils.AFHVNodeSubtitleLabelStyle75_STYLE_CLASS="AFHVNodeSubtitleLabelStyle75";dvt.AfStyleUtils.AFHVNodeLabelStyle75_STYLE_CLASS="AFHVNodeLabelStyle75";dvt.AfStyleUtils.AFHVPanelCardLabelStyle75_STYLE_CLASS="AFHVPanelCardLabelStyle75";dvt.AfStyleUtils.AFHVNodeTitleLabelStyle50_STYLE_CLASS="AFHVNodeTitleLabelStyle50";
dvt.AfStyleUtils.AFHVNodeSubtitleLabelStyle50_STYLE_CLASS="AFHVNodeSubtitleLabelStyle50";dvt.AfStyleUtils.AFHVNodeLabelStyle50_STYLE_CLASS="AFHVNodeLabelStyle50";dvt.AfStyleUtils.AFHVNodeLabelStyle25_STYLE_CLASS="AFHVNodeLabelStyle25";
dvt.AfStyleUtils.getTagSkinKeyMap=function(){void 0===dvt.AfStyleUtils._tagSkinKeyMap&&(dvt.AfStyleUtils._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 dvt.AfStyleUtils._tagSkinKeyMap};
dvt.AfStyleUtils.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),dvt.AfStyleUtils._setDefaultFontFamily(e.getStyle(dvt.CSSStyle.FONT_FAMILY)),dvt.AfStyleUtils._setDefaultFontSize(e.getStyle(dvt.CSSStyle.FONT_SIZE)),dvt.AfStyleUtils._setDefaultFontColor(e.getStyle(dvt.CSSStyle.COLOR))):e.name&&void 0!=e.value&&(c[e.name]=new dvt.CSSStyle(e.value))}dvt.AfStyleUtils._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,!dvt.AfStyleUtils._styleMap))for(f=0;f<e.length;f++);}dvt.AfStyleUtils._tagSkinKeyMap=c}};
dvt.AfStyleUtils.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),dvt.AfStyleUtils._setDefaultFontFamily(e.getStyle(dvt.CSSStyle.FONT_FAMILY)),dvt.AfStyleUtils._setDefaultFontSize(e.getStyle(dvt.CSSStyle.FONT_SIZE)),dvt.AfStyleUtils._setDefaultFontColor(e.getStyle(dvt.CSSStyle.COLOR))):d&&void 0!=e&&(c[d]=new dvt.CSSStyle(e))}dvt.AfStyleUtils._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,!dvt.AfStyleUtils._styleMap)))for(var f=0;f<e.length;f++);dvt.AfStyleUtils._tagSkinKeyMap=c}};dvt.AfStyleUtils.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%)")};
dvt.AfStyleUtils.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%)")};dvt.AfStyleUtils.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%)")};
dvt.AfStyleUtils.getDefaultLinkDisabledStyle=function(){return new dvt.CSSStyle("color:#8E97AF")};dvt.AfStyleUtils.getDefaultCommandLinkDisabledStyle=function(){return new dvt.CSSStyle("text-decoration:none;cursor:default;color:#8E97AF")};dvt.AfStyleUtils.getDefaultCommandImageLinkDisabledStyle=function(){return new dvt.CSSStyle("color:#8E97AF")};dvt.AfStyleUtils.getDefaultGoLinkDisabledStyle=function(){return new dvt.CSSStyle("text-decoration:none;cursor:default;color:#8E97AF")};
dvt.AfStyleUtils.getStyleMap=function(){if(!dvt.AfStyleUtils._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"]=dvt.AfStyleUtils.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"]=dvt.AfStyleUtils.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"]=dvt.AfStyleUtils.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"]=dvt.AfStyleUtils.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"]=dvt.AfStyleUtils.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"]=dvt.AfStyleUtils.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"]=dvt.AfStyleUtils.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");dvt.AfStyleUtils._styleMap=a}return dvt.AfStyleUtils._styleMap};
dvt.AfStyleUtils._getTextAlignAttr=function(a){return dvt.AfStyleUtils.isLocaleR2L()?a?"text-align:left":"text-align:right":a?"text-align:right":"text-align:left"};dvt.AfStyleUtils.getBackgroundPositionAttr=function(){return dvt.AfStyleUtils.isLocaleR2L()?"background-position:right bottom":"background-position:left bottom"};
dvt.AfStyleUtils.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};
dvt.AfStyleUtils.getDefaultCSSStyle=function(a){var b=[];if(a){var c=dvt.AfStyleUtils.getTagSkinKeyMap()[a],d=dvt.AfStyleUtils.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 dvt.AfStyleUtils._panelCardMap||(dvt.AfStyleUtils._panelCardMap=dvt.AfStyleUtils.getDefaultPanelCardStyles()),dvt.AfStyleUtils._panelCardMap}return b};
dvt.AfStyleUtils.getStyleClass=function(a){var b=dvt.AfStyleUtils.getStyleMap();return b&&a&&b[a]?b[a]:""};dvt.AfStyleUtils.getDefaultTextStyle=function(){var a=new dvt.CSSStyle;a.setStyle(dvt.CSSStyle.FONT_FAMILY,dvt.AfStyleUtils.getDefaultFontFamily());a.setStyle(dvt.CSSStyle.FONT_SIZE,dvt.AfStyleUtils.getDefaultFontSize());a.setStyle(dvt.CSSStyle.COLOR,"black");return a};
dvt.AfStyleUtils.getAFStretchWidthStyle=function(a){return dvt.AfStyleUtils.AFStretchWidth_STYLE_CLASS==a||dvt.AfStyleUtils.AFAuxiliaryStretchWidth_STYLE_CLASS==a?(dvt.AfStyleUtils._afStretchWidth||(dvt.AfStyleUtils._afStretchWidth=new dvt.CSSStyle,dvt.AfStyleUtils._afStretchWidth.setStyle(dvt.CSSStyle.WIDTH,"100%")),dvt.AfStyleUtils._afStretchWidth):null};
dvt.AfStyleUtils.getPLAMLabelStyle=function(a){if(a){if(-1<a.indexOf(dvt.AfStyleUtils.AFHVNodeTitleLabelStyle75_STYLE_CLASS))return dvt.AfStyleUtils.getStyleClass(dvt.AfStyleUtils.AFHVNodeTitleLabelStyle75_STYLE_CLASS);if(-1<a.indexOf(dvt.AfStyleUtils.AFHVNodeSubtitleLabelStyle75_STYLE_CLASS))return dvt.AfStyleUtils.getStyleClass(dvt.AfStyleUtils.AFHVNodeSubtitleLabelStyle75_STYLE_CLASS);if(-1<a.indexOf(dvt.AfStyleUtils.AFHVNodeLabelStyle75_STYLE_CLASS))return dvt.AfStyleUtils.getStyleClass(dvt.AfStyleUtils.AFHVNodeLabelStyle75_STYLE_CLASS);
if(-1<a.indexOf(dvt.AfStyleUtils.AFHVPanelCardLabelStyle75_STYLE_CLASS))return dvt.AfStyleUtils.getStyleClass(dvt.AfStyleUtils.AFHVPanelCardLabelStyle75_STYLE_CLASS);if(-1<a.indexOf(dvt.AfStyleUtils.AFHVNodeTitleLabelStyle50_STYLE_CLASS))return dvt.AfStyleUtils.getStyleClass(dvt.AfStyleUtils.AFHVNodeTitleLabelStyle50_STYLE_CLASS);if(-1<a.indexOf(dvt.AfStyleUtils.AFHVNodeSubtitleLabelStyle50_STYLE_CLASS))return dvt.AfStyleUtils.getStyleClass(dvt.AfStyleUtils.AFHVNodeSubtitleLabelStyle50_STYLE_CLASS);
if(-1<a.indexOf(dvt.AfStyleUtils.AFHVNodeLabelStyle50_STYLE_CLASS))return dvt.AfStyleUtils.getStyleClass(dvt.AfStyleUtils.AFHVNodeLabelStyle50_STYLE_CLASS);if(-1<a.indexOf(dvt.AfStyleUtils.AFHVNodeLabelStyle25_STYLE_CLASS))return dvt.AfStyleUtils.getStyleClass(dvt.AfStyleUtils.AFHVNodeLabelStyle25_STYLE_CLASS);if(-1<a.indexOf(dvt.AfStyleUtils.AFHVNodeTitleLabelStyle_STYLE_CLASS))return dvt.AfStyleUtils.getStyleClass(dvt.AfStyleUtils.AFHVNodeTitleLabelStyle_STYLE_CLASS);if(-1<a.indexOf(dvt.AfStyleUtils.AFHVNodeSubtitleLabelStyle_STYLE_CLASS))return dvt.AfStyleUtils.getStyleClass(dvt.AfStyleUtils.AFHVNodeSubtitleLabelStyle_STYLE_CLASS);
if(-1<a.indexOf(dvt.AfStyleUtils.AFHVNodeLabelStyle_STYLE_CLASS))return dvt.AfStyleUtils.getStyleClass(dvt.AfStyleUtils.AFHVNodeLabelStyle_STYLE_CLASS);if(-1<a.indexOf(dvt.AfStyleUtils.AFHVPanelCardLabelStyle_STYLE_CLASS))return dvt.AfStyleUtils.getStyleClass(dvt.AfStyleUtils.AFHVPanelCardLabelStyle_STYLE_CLASS)}return null};dvt.AfStyleUtils.setPanelCardDefault=function(a){dvt.AfStyleUtils._panelCardMap=a};
dvt.AfStyleUtils.getDefaultFontFamily=function(){return dvt.AfStyleUtils._defaultFontFamily?dvt.AfStyleUtils._defaultFontFamily:dvt.StyleUtils.DEFAULT_FONT_FAMILY};dvt.AfStyleUtils._setDefaultFontFamily=function(a){dvt.AfStyleUtils._defaultFontFamily=a};dvt.AfStyleUtils.getDefaultFontSize=function(){return dvt.AfStyleUtils._defaultFontSize?dvt.AfStyleUtils._defaultFontSize:dvt.StyleUtils.DEFAULT_FONT_SIZE};dvt.AfStyleUtils._setDefaultFontSize=function(a){dvt.AfStyleUtils._defaultFontSize=a};
dvt.AfStyleUtils.getDefaultFontColor=function(){return dvt.AfStyleUtils._defaultFontColor?dvt.AfStyleUtils._defaultFontColor:dvt.StyleUtils.DEFAULT_FONT_COLOR};dvt.AfStyleUtils._setDefaultFontColor=function(a){dvt.AfStyleUtils._defaultFontColor=a};
dvt.AfStyleUtils.resetStyles=function(){dvt.AfStyleUtils.setPanelCardDefault(null);dvt.AfStyleUtils._setDefaultFontFamily(null);dvt.AfStyleUtils._setDefaultFontSize(null);dvt.AfStyleUtils._setDefaultFontColor(null);dvt.AfStyleUtils._styleMap=void 0;dvt.AfStyleUtils._tagSkinKeyMap=void 0;dvt.AfStyleUtils._afStretchWidth=void 0};
dvt.AfContext=function(a,b){this.Init(a,b)};dvt.Obj.createSubclass(dvt.AfContext,dvt.Obj,"dvt.AfContext");dvt.AfContext.prototype.Init=function(a,b){this._dvtContext=a;this.setEventManager(b);this._ah=this._aw=Number.MAX_VALUE;this._fs=dvt.AfStyleUtils.getDefaultFontSize()};dvt.AfContext.prototype.getTooltipManager=function(){return this.getCtx().getTooltipManager()};dvt.AfContext.prototype.getCtx=function(){return this._dvtContext};dvt.AfContext.prototype.getELContext=function(){return this._elContext};
dvt.AfContext.prototype.setELContext=function(a){this._elContext=a};dvt.AfContext.prototype.getAvailableWidth=function(){return null==this._aw||void 0===this._aw?Number.MAX_VALUE:this._aw};dvt.AfContext.prototype.setAvailableWidth=function(a){a&&(this._aw=a)};dvt.AfContext.prototype.getAvailableHeight=function(){return this._ah};dvt.AfContext.prototype.setAvailableHeight=function(a){a&&(this._ah=a)};dvt.AfContext.prototype.getFontSize=function(){return this._fs};
dvt.AfContext.prototype.setFontSize=function(a){a&&(this._fs=a)};dvt.AfContext.prototype.getSkinName=function(){return this._skinName};dvt.AfContext.prototype.setSkinName=function(a){a&&(this._skinName=a)};dvt.AfContext.prototype.isSkinAlta=function(){return this.getSkinName()==dvt.CSSStyle.SKIN_ALTA};
dvt.AfContext.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?dvt.AfStyleUtils.getDefaultTextStyle():new dvt.CSSStyle,b&&d.merge(b)," "!==c&&d.parseInlineStyle(c),a[c]=d);return a[c]};dvt.AfContext.prototype.setContextCallback=function(a,b){this._contextCallbackObj=a;this._contextCallback=b};dvt.AfContext.prototype.getContextCallback=function(){return this._contextCallback};
dvt.AfContext.prototype.getContextCallbackObj=function(){return this._contextCallbackObj};dvt.AfContext.prototype.setImageCallback=function(a,b,c){this._imageCallbackObj=a;this._imageCallback=b;this._imageNotReadyCallback=c};dvt.AfContext.prototype.getImageCallback=function(){return this._imageCallback};dvt.AfContext.prototype.getImageCallbackObj=function(){return this._imageCallbackObj};dvt.AfContext.prototype.getImageNotReadyCallback=function(){return this._imageNotReadyCallback};
dvt.AfContext.prototype.setPanelCardCallback=function(a,b){this._panelCardCallbackObj=a;this._panelCardCallback=b};dvt.AfContext.prototype.getPanelCardCallback=function(){return this._panelCardCallback};dvt.AfContext.prototype.getPanelCardCallbackObj=function(){return this._panelCardCallbackObj};dvt.AfContext.prototype.setMenuDropdownContainer=function(a){this._menuDropDownContainer=a};dvt.AfContext.prototype.getMenuDropdownContainer=function(){return this._menuDropDownContainer};
dvt.AfContext.prototype.setRmIfNotFit=function(a){this._rmIfNotFit=a};dvt.AfContext.prototype.getRmIfNotFit=function(){return this._rmIfNotFit};dvt.AfContext.prototype.setParentNode=function(a){this._node=a};dvt.AfContext.prototype.getParentNode=function(){return this._node};dvt.AfContext.prototype.getEventManager=function(){return this._eventManager};dvt.AfContext.prototype.setEventManager=function(a){this._eventManager=a};
dvt.AfContext.prototype.registerTabStop=function(a){this._tabStopsArray&&this._tabStopsArray.push(a)};dvt.AfContext.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}};dvt.AfContext.prototype.getTabStopsArray=function(){return this._tabStopsArray};dvt.AfContext.prototype.setTabStopsArray=function(a){this._tabStopsArray=a};
dvt.AfComponent=function(){this.Init()};dvt.Obj.createSubclass(dvt.AfComponent,dvt.PropMap,"dvt.AfComponent");dvt.AfComponent.HALIGN_LEFT="left";dvt.AfComponent.HALIGN_RIGHT="right";dvt.AfComponent.HALIGN_CENTER="center";dvt.AfComponent.HALIGN_START="start";dvt.AfComponent.HALIGN_END="end";dvt.AfComponent.VALIGN_TOP="top";dvt.AfComponent.VALIGN_MIDDLE="middle";dvt.AfComponent.VALIGN_BOTTOM="bottom";dvt.AfComponent.ATTR_ID="id";dvt.AfComponent.ATTR_VISIBLE="visible";dvt.AfComponent.ATTR_RENDERED="rendered";
dvt.AfComponent.ATTR_INLINE_STYLE="inlineStyle";dvt.AfComponent.ATTR_STYLE_CLASS="styleClass";dvt.AfComponent.ATTR_SHORT_DESC="shortDesc";dvt.AfComponent._uniqueSeed=0;dvt.AfComponent._CREATE_BG_SHAPE=!1;dvt.AfComponent._REMOVE_LATER="rmMe";dvt.AfComponent._CLIP_CONTAINER="clipContainer";dvt.AfComponent._CLIP_LATER="clipMe";dvt.AfComponent._CLIP_PATH="clipPath";dvt.AfComponent.DEFAULT_BOX_SIZING=dvt.CSSStyle.BORDER_BOX;
dvt.AfComponent.prototype.Init=function(){dvt.AfComponent.superclass.Init.call(this);this.createDefaultStyles();this._parentNode=null};dvt.AfComponent.prototype.getStyleClass=function(){return this.getProperty(dvt.AfComponent.ATTR_STYLE_CLASS)};dvt.AfComponent.prototype.setStyleClass=function(a){this.setProperty(dvt.AfComponent.ATTR_STYLE_CLASS,a)};dvt.AfComponent.prototype.getInlineStyle=function(){return this.getProperty(dvt.AfComponent.ATTR_INLINE_STYLE)};
dvt.AfComponent.prototype.setInlineStyle=function(a){this.setProperty(dvt.AfComponent.ATTR_INLINE_STYLE,a)};dvt.AfComponent.prototype.isRendered=function(){return this.getBooleanProp(dvt.AfComponent.ATTR_RENDERED,!0)};dvt.AfComponent.prototype.setRendered=function(a){this.setProperty(dvt.AfComponent.ATTR_RENDERED,a)};dvt.AfComponent.prototype.isVisible=function(){return this.getBooleanProp(dvt.AfComponent.ATTR_VISIBLE,!0)};
dvt.AfComponent.prototype.setVisible=function(a){this.setProperty(dvt.AfComponent.ATTR_VISIBLE,a)};dvt.AfComponent.prototype.getShortDesc=function(){return this.getProperty(dvt.AfComponent.ATTR_SHORT_DESC)};dvt.AfComponent.prototype.setShortDesc=function(a){this.setProperty(dvt.AfComponent.ATTR_SHORT_DESC,a)};
dvt.AfComponent.prototype.stamp=function(a){var b=dvt.AfComponent.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 dvt.AfShowPopupBehavior?b.addShowPopupBehavior(d.createDisplayObj()):d instanceof
dvt.AfClientBehavior?b.addClientBehavior(d.createDisplayObj()):b.addChild(d):d._isRenderEL()&&b.addChild(d);return b};
dvt.AfComponent.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};dvt.AfComponent.ParseNonNegativeFloat=function(a){a=parseFloat(a);return 0>a?0:a};
dvt.AfComponent.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=dvt.AfComponent.ParseNonNegativeFloat(c)*b/100):(b=dvt.AfComponent.ParseNonNegativeFloat(c)*d/100,d=b-this._getMarginBorderPaddingWidth()+this._marginWidth))):(b=dvt.AfComponent.ParseNonNegativeFloat(c),d=this.isContentBox()?b:b-this._getMarginBorderPaddingWidth()+
this._marginWidth),this._ew=d):void 0===c&&this instanceof dvt.AfSpacer?this._aw=this._ew=d=1:void 0===c&&d!==Number.MAX_VALUE&&(b=dvt.AfComponent.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=dvt.AfComponent.ParseNonNegativeFloat(a)*b/100):(b=dvt.AfComponent.ParseNonNegativeFloat(a)*c/100,c=b-this._getMarginBorderPaddingHeight()+
this._marginHeight))):(b=dvt.AfComponent.ParseNonNegativeFloat(a),c=this.isContentBox()?b:b-this._getMarginBorderPaddingHeight()+this._marginHeight),this._eh=c):void 0===a&&this instanceof dvt.AfSpacer?this._ah=this._eh=c=1:void 0===a&&c!==Number.MAX_VALUE&&(b=dvt.AfComponent.ParseNonNegativeFloat(c),c=b-this._getMarginBorderPaddingHeight());this._cw=d;this._ch=c;void 0===this._clipped&&(0>=d||0>=c||d>this._aw||c>this._ah)&&(this._clipped=dvt.AfComponent._CLIP_CONTAINER);this._cpw=d;this._cph=c};
dvt.AfComponent.prototype.render=function(a){this.setAfContext(a);this._render(dvt.AfComponent.ParseNonNegativeFloat(a.getAvailableWidth()),dvt.AfComponent.ParseNonNegativeFloat(a.getAvailableHeight()))};
dvt.AfComponent.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))}};dvt.AfComponent.prototype._getExplicitWidth=function(a){var b;this.getWidth&&(b=this.getWidth());void 0===b&&(b=a.getWidth());return b};
dvt.AfComponent.prototype._getExplicitHeight=function(a){var b;this.getHeight&&(b=this.getHeight());void 0===b&&(b=a.getHeight());return b};dvt.AfComponent.prototype.getCalcWidth=function(a){return void 0!==this._ew&&this._ew!==Number.MAX_VALUE?this._ew:this._cw<a?this._cw:a};dvt.AfComponent.prototype.getCalcHeight=function(a){return void 0!==this._eh&&this._eh!==Number.MAX_VALUE?this._eh:this._ch<a?this._ch:a};dvt.AfComponent.prototype.renderSelfBeforeChildren=function(){};
dvt.AfComponent.prototype.renderSelfAfterChildren=function(){};
dvt.AfComponent.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==dvt.AfComponent._CLIP_LATER&&this.addClipPath();(this._hasBgShape()||c)&&this.renderBackground(a,b);dvt.Agent.isTouchDevice()&&(this._hasBgShape()||c)?this.addAccessibilityAttributes(a):this.addAccessibilityAttributes(this.getDisplayObj())};
dvt.AfComponent.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))};dvt.AfComponent.prototype.renderChildren=function(){for(var a,b=0;b<this.getNumChildren();b++)a=this.getChildAt(b),a.renderMe&&!a.renderMe()||this.renderChild(a)};
dvt.AfComponent.prototype.renderChild=function(a){a._render&&a._render(this._cw,this._ch)};dvt.AfComponent.prototype.doLayout=function(){};dvt.AfComponent.prototype.addChild=function(a){a.setParent&&a.setParent(this);this._getChildren().push(a)};
dvt.AfComponent.removeChild=function(a){var b;if(a instanceof dvt.AfComponent){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=dvt.AfComponent._getContentShape(a);d&&d!==c&&(b=d.getParent())&&(b.removeChild(d),a.setContentShape(c,null));c&&(b=c.getParent())&&(b.removeChild(c),a._bgShape=null)};dvt.AfComponent.prototype._getChildren=function(){void 0===this._children&&(this._children=[]);return this._children};
dvt.AfComponent.prototype.getNumChildren=function(){return this._children?this._children.length:0};dvt.AfComponent.prototype.getChildAt=function(a){var b=this.getNumChildren();return 0<=a&&b>a?this._getChildren()[a]:null};dvt.AfComponent.prototype.getParent=function(){return this._afCompParent};dvt.AfComponent.prototype.setParent=function(a){this._afCompParent=a};dvt.AfComponent.prototype.getRoot=function(){for(var a=this;a.getParent();)a=a.getParent();return a};
dvt.AfComponent.prototype.GetRootStyleClass=function(){return this.GetDefaultStyles()[0]};dvt.AfComponent.prototype.createDefaultStyles=function(){var a=this.GetDefaultStyles();if(void 0===a||dvt.Agent.isEnvironmentTest())a=dvt.AfStyleUtils.getDefaultCSSStyle(this.getTagName()),0==a.length&&a.push(new dvt.CSSStyle),this.SetDefaultStyles(a)};
dvt.AfComponent.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++)(d=e[f])&&0<d.length&&((c=dvt.AfStyleUtils.getAFStretchWidthStyle(d))||(c=dvt.AfStyleUtils.getStyleClass(d)),b?b.merge(c):c&&(b=c.clone()));c=this.getInlineStyle();dvt.AfComponentFactory.CACHE_STYLES?(a=this instanceof dvt.AfOutputText||this instanceof dvt.AfOutputFormatted,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};dvt.AfComponent.prototype.ResolveEm=function(a){this.resolveEmUnit(a,this.getParent())};dvt.AfComponent.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)}};
dvt.AfComponent.prototype.getStyle=function(a){if(this._computedStyle)return this.getCSSStyle().getStyle(a)};dvt.AfComponent.prototype.getComputedStyles=function(){return this._computedStyle};dvt.AfComponent.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};
dvt.AfComponent.prototype.getStyleAttr=function(a){var b=this.getCSSStyle().getStyle(a);!b&&dvt.CSSStyle.isInheritable(a)&&this.getParent()&&(b=this.getParent().getInheritedStyleAttr(a));return b};dvt.AfComponent.prototype.getInheritedStyleAttr=function(a){var b=this.getCSSStyle().getStyle(a);!b&&this.getParent()&&(b=this.getParent().getInheritedStyleAttr(a));return b};
dvt.AfComponent.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};
dvt.AfComponent.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:dvt.AfStyleUtils.getDefaultFontFamily()));c=dvt.CSSStyle.FONT_SIZE;a.getStyle(c)||((d=this.getInheritedStyle(c,a,b))||(d=dvt.AfStyleUtils.getDefaultFontSize()),a.setStyle(c,d));c=dvt.CSSStyle.COLOR;a.getStyle(c)||(d=this.getInheritedStyle(c,a,b),a.setStyle(c,d?d:dvt.AfStyleUtils.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};dvt.AfComponent.prototype.createCallback=function(a){return dvt.Obj.createCallback(this,a)};
dvt.AfComponent.prototype.getHAlign=function(){return dvt.AfComponent.HALIGN_LEFT};dvt.AfComponent.prototype.getEffectiveHAlign=function(){var a=this.getHAlign();a==dvt.AfComponent.HALIGN_START?a=dvt.Agent.isRightToLeft(this.getDvtContext())?dvt.AfComponent.HALIGN_RIGHT:dvt.AfComponent.HALIGN_LEFT:a==dvt.AfComponent.HALIGN_END&&(a=dvt.Agent.isRightToLeft(this.getDvtContext())?dvt.AfComponent.HALIGN_LEFT:dvt.AfComponent.HALIGN_RIGHT);return a};
dvt.AfComponent.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};dvt.AfComponent.prototype.getDisplayObj=function(){return this._bgShape};
dvt.AfComponent.prototype.addChildDisplayObjs=function(a,b){for(var c,d=this.getNumChildren(),e=0;e<d;e++)c=this.getChildAt(e),(!c.renderMe||c.renderMe())&&(c=c.createDisplayObj(a))&&b.addChild(c)};dvt.AfComponent.prototype.createContentShape=function(a){return null};dvt.AfComponent.prototype.getContentShape=function(){return this._shape};dvt.AfComponent.prototype.setContentShape=function(a,b){b&&(a.addChild(b),b._prop=this._prop);this._shape=b};dvt.AfComponent.prototype.getCX=function(){return this._cx};
dvt.AfComponent.prototype.setCX=function(a){this._cx=a};dvt.AfComponent.prototype.getCY=function(){return this._cy};dvt.AfComponent.prototype.setCY=function(a){this._cy=a};dvt.AfComponent.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};
dvt.AfComponent.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))};
dvt.AfComponent.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)};
dvt.AfComponent.prototype.RenderBackgroundStroke=function(a,b){var c,d=0,e;b&&(c=dvt.AfComponent.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=dvt.AfComponent.ParseNonNegativeFloat(d)),c=new dvt.SolidStroke(c,null,d),c.setType(dvt.Stroke.convertTypeString(e)),a.setStroke(c));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(dvt.AfComponent.ParseNonNegativeFloat(e[0])),1<e.length&&e[1]&&a.setRy(dvt.AfComponent.ParseNonNegativeFloat(e[1])))};dvt.AfComponent.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)))};
dvt.AfComponent.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?b.getDimensions():new dvt.Rectangle(0,0,a.width,a.height);a=dvt.Agent.isEnvironmentBatik()?a.uri:this._bgImg;b.setFill(new dvt.ImageFill(a,d,c))}};dvt.AfComponent.prototype.renderMe=function(){return this instanceof dvt.AfComponent&&this.isRendered()&&this.isVisible()};
dvt.AfComponent.prototype._isRenderEL=function(){if(this instanceof dvt.AfComponent){var a=this.getProperty(dvt.AfComponent.ATTR_RENDERED),b=this.getProperty(dvt.AfComponent.ATTR_VISIBLE);return a&&"string"===typeof a&&a.match(dvt.PropMap.REGEXP)||b&&"string"===typeof b&&b.match(dvt.PropMap.REGEXP)}return!1};dvt.AfComponent.prototype.isTooltipEnabled=function(){var a=this.getTooltip();return a&&0<a.length};dvt.AfComponent.prototype.getTooltip=function(){return this.getShortDesc()};
dvt.AfComponent.prototype._TransferAttributes=function(a){};dvt.AfComponent.prototype.setTranslateX=function(a){var b=this.getDisplayObj();b&&b.setTranslateX(a)};dvt.AfComponent.prototype.setTranslateY=function(a){var b=this.getDisplayObj();b&&b.setTranslateY(a)};dvt.AfComponent.getDimensions=function(a){return a instanceof dvt.AfComponent?a.getBounds():a.getDimensions()};
dvt.AfComponent.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().getDimensionsWithStroke())?(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};dvt.AfComponent._getContentShape=function(a){return a instanceof dvt.AfComponent?a.getContentShape():a.getDisplayObj()};dvt.AfComponent._setTranslateGroup=function(a,b,c){if(a instanceof dvt.AfComponent){if(a=a.getDisplayObj())a.setTranslateX(b),a.setTranslateY(c)}else a.setTranslateX&&a.setTranslateX(b),a.setTranslateY&&a.setTranslateY(c)};dvt.AfComponent.prototype.getTagName=function(){};
dvt.AfComponent.prototype._hasBgShape=function(){if(void 0===this._needBgShape){var a=this.getCSSStyle();this._needBgShape=a&&(a.getStyle(dvt.CSSStyle.BACKGROUND_COLOR)||a.getBackgroundImage()||dvt.AfComponent.getBorderColor(a)||a.getBorderWidth()||a.getStyle(dvt.CSSStyle.BORDER_RADIUS))}return this._needBgShape};
dvt.AfComponent.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};dvt.AfComponent.prototype.isCommandComponent=function(){return!1};dvt.AfComponent.prototype.getShowPopupBehaviors=function(){return this._showPopupBehaviors};
dvt.AfComponent.prototype.addShowPopupBehavior=function(a){this._showPopupBehaviors||(this._showPopupBehaviors=[]);this._showPopupBehaviors.push(a)};dvt.AfComponent.prototype.getClientBehaviors=function(){return this._clientBehaviors};dvt.AfComponent.prototype.addClientBehavior=function(a){this._clientBehaviors||(this._clientBehaviors=[]);this._clientBehaviors.push(a)};
dvt.AfComponent.prototype.SaveContextCallback=function(){if(this.getShowPopupBehaviors&&this.getShowPopupBehaviors()||this.getClientBehaviors()||this.isCommandComponent()||this instanceof dvt.AfPanelCard)this.setContextCallbackObj(this.getAfContext().getContextCallbackObj()),this.setContextCallback(this.getAfContext().getContextCallback())};dvt.AfComponent.prototype.getContextCallback=function(){return this._contextCallback};dvt.AfComponent.prototype.getContextCallbackObj=function(){return this._contextCallbackObj};
dvt.AfComponent.prototype.setContextCallback=function(a){this._contextCallback=a};dvt.AfComponent.prototype.setContextCallbackObj=function(a){this._contextCallbackObj=a};dvt.AfComponent._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)};
dvt.AfComponent.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=dvt.AfComponent._REMOVE_LATER:this._clipped=dvt.AfComponent._CLIP_CONTAINER}};dvt.AfComponent.prototype.setClipContainer=function(a){this.isClippedNoClipPath()&&(a._clipped=dvt.AfComponent._CLIP_LATER)};
dvt.AfComponent.prototype.getClipped=function(){return this._clipped};dvt.AfComponent.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=dvt.AfComponent._CLIP_PATH;return!0}return!1};
dvt.AfComponent.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)};dvt.AfComponent.prototype.isClippedNoClipPath=function(){return this._clipped&&this.noClipPath()};dvt.AfComponent.prototype.noClipPath=function(){return this._clipped!==dvt.AfComponent._CLIP_PATH};dvt.AfComponent.genUniqueId=function(){return dvt.AfComponent._uniqueSeed++};
dvt.AfComponent.prototype._getUniqueId=function(){if(this._uniqueId)return this._uniqueId;var a=this.getId();return this._uniqueId=a=void 0===a?"_G"+this.getTagName()+"_"+dvt.AfComponent.genUniqueId():a+("_"+dvt.AfComponent.genUniqueId())};
dvt.AfComponent.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)};
dvt.AfComponent.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};
dvt.AfComponent.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 dvt.AfComponent&&(a=b._getBoxSizing());this._boxSizing=a?a:dvt.AfComponent.DEFAULT_BOX_SIZING}}return this._boxSizing};dvt.AfComponent.prototype.isBorderBox=function(){return this._getBoxSizing()==dvt.CSSStyle.BORDER_BOX};dvt.AfComponent.prototype.isContentBox=function(){return this._getBoxSizing()==dvt.CSSStyle.CONTENT_BOX};
dvt.AfComponent.prototype._getMarginBorderPaddingWidth=function(){return this._cx+this._rightx};dvt.AfComponent.prototype._getMarginBorderPaddingHeight=function(){return this._cy+this._bottomy};dvt.AfComponent.prototype.isContainerDisabled=function(){return!1};dvt.AfComponent.prototype.associate=function(a,b){this.getAfContext().getEventManager()&&this.getAfContext().getEventManager().associate(a,b?b:this)};
dvt.AfComponent.prototype._getAfStyleAt=function(a){var b=this.GetDefaultStyles();return b.length>a?b[a]:null};dvt.AfComponent.prototype._setOverrideStyle=function(a){};dvt.AfComponent.prototype.postRender=function(){this.postRenderSelfBeforeChildren();this.postRenderChildren()};dvt.AfComponent.prototype.postRenderSelfBeforeChildren=function(){};
dvt.AfComponent.prototype.postRenderChildren=function(){for(var a,b=0;b<this.getNumChildren();b++)a=this.getChildAt(b),a.renderMe&&!a.renderMe()||!a.postRender||a.postRender()};dvt.AfComponent.prototype.CreateNewContainerForChildren=function(){var a=this.getDisplayObj();if(0<a.getNumChildren()){var b=new dvt.Container(this.getDvtContext());dvt.AfComponent._reparentChildren(b,a);a.addChild(b);return b}return a};
dvt.AfComponent.prototype.RemoveChildrenContainer=function(a){var b=this.getDisplayObj();dvt.AfComponent._reparentChildren(b,a);b.removeChild(a)};dvt.AfComponent._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)};dvt.AfComponent.prototype.getAriaLabel=function(){return this.getShortDesc()};
dvt.AfComponent.prototype.addAccessibilityAttributes=function(a){var b=this.getAriaLabel();a&&b&&(a.setAriaRole(this.getAriaRole()),dvt.Agent.deferAriaCreation()||a.setAriaProperty("label",b))};dvt.AfComponent.prototype.registerAsTabStop=function(){};dvt.AfComponent.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()}}};
dvt.AfComponent.prototype.showKeyboardFocusEffect=function(){this._keyboardFocusEffect||(this._keyboardFocusEffect=this.CreateKeyboardFocusEffect());this._keyboardFocusEffect.show();this._isShowingKeyboardFocusEffect=!0;this.getDvtContext().setActiveElement(this.getDisplayObj())};dvt.AfComponent.prototype.hideKeyboardFocusEffect=function(){this._keyboardFocusEffect&&this._keyboardFocusEffect.hide();this._isShowingKeyboardFocusEffect=!1};dvt.AfComponent.prototype.isShowingKeyboardFocusEffect=function(){return this._isShowingKeyboardFocusEffect};
dvt.AfComponent.prototype.CreateKeyboardFocusEffect=function(){return new dvt.KeyboardFocusEffect(this.getDvtContext(),this.getDisplayObj(),this.getDisplayObj().getDimensions())};
dvt.AfComponent.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)}};
dvt.AfComponent.prototype.getSize=function(a){var b=dvt.AfComponent.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};
dvt.AfComponent.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};dvt.AfComponent.prototype.getAriaRole=function(){return"img"};
dvt.AfComponent.prototype.getAfContext=function(){return this._afContext};dvt.AfComponent.prototype.setAfContext=function(a){this._afContext=a};dvt.AfComponent.prototype.getDvtContext=function(){return this._afContext?this._afContext.getCtx():null};dvt.AfComponent.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=dvt.AfComponent.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()==dvt.AfComponent._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 dvt.AfSeparator||(g=Math.max(g,q)),h+=r;c.push(p)}}for(n=k.length-1;0<=n;n--)f=k[n],dvt.AfComponent.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=dvt.AfComponent.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()==dvt.AfComponent._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 dvt.AfSeparator||(g=Math.max(g,n)),f+=m;c.push(l)}}for(k=h.length-1;0<=k;k--)e=h[k],dvt.AfComponent.removeChild(e);return new dvt.Rectangle(0,0,f,g)};
DvtAfComponentUtils.doVerticalLayout=function(a,b){if(b){var c=b instanceof dvt.AfLink,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==dvt.AfComponent.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 dvt.AfSeparator?(b._cw&&e.setMaxWidth(b._cw),k=g):f==dvt.AfComponent.HALIGN_LEFT?k=g:f==dvt.AfComponent.HALIGN_CENTER?k=g+(b._cw-n)/2:f==dvt.AfComponent.HALIGN_RIGHT&&(k=g+b._cw-n);dvt.AfComponent._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==dvt.AfComponent.VALIGN_TOP?
k=g:e==dvt.AfComponent.VALIGN_MIDDLE?k=g+(b._ch-h)/2:e==dvt.AfComponent.VALIGN_BOTTOM&&(k=g+b._ch-h);dvt.Agent.isRightToLeft(b.getDvtContext())?h=f-=n:(h=f,f+=n);d instanceof dvt.AfSeparator&&b._cw&&d.setMaxWidth(b._cw-f);dvt.AfComponent._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};
dvt.AfComponentFactory=function(){};dvt.Obj.createSubclass(dvt.AfComponentFactory,dvt.Obj,"dvt.AfComponentFactory");dvt.AfComponentFactory.CACHE_STYLES=!1;dvt.AfComponentFactory._NAME_F="f";dvt.AfComponentFactory._NAME_COMPONENT="component";dvt.AfComponentFactory._registeredTags={};dvt.AfComponentFactory.registerComponent=function(a,b){a&&b&&(dvt.AfComponentFactory._registeredTags[a]=new DvtAfTagHandler(b))};
dvt.AfComponentFactory.parseXml=function(a){return(a=dvt.AfComponentFactory._parseChildren(a))?a[0]:null};dvt.AfComponentFactory.parseJson=function(a){return(a=dvt.AfComponentFactory._parseJsonChildren(a))?a[0]:null};dvt.AfComponentFactory.parseElement=function(a){var b=a.getName(),c=dvt.AfComponentFactory._registeredTags[b];if(!c)throw"No tag handler for "+b;b=c.createComponent(a);null!=b&&(a=dvt.AfComponentFactory._parseChildren(a),c.addChildren(b,a));return b};
dvt.AfComponentFactory.parseJsonElement=function(a){var b=a[dvt.AfComponentFactory._NAME_COMPONENT],c=dvt.AfComponentFactory._registeredTags[b];if(!c)throw"No tag handler for "+b;b=c.createJsonComponent(a);null!=b&&a.children&&(a=dvt.AfComponentFactory._parseJsonChildren(a.children),c.addChildren(b,a));return b};
dvt.AfComponentFactory._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!==dvt.AfComponentFactory._NAME_F&&(c=dvt.AfComponentFactory.parseElement(c))&&b.push(c)}}return b};dvt.AfComponentFactory._parseJsonChildren=function(a){for(var b=[],c=0;c<a.length;c++){var d=a[c],e=d[dvt.AfComponentFactory._NAME_COMPONENT];d&&null!=e&&(d=dvt.AfComponentFactory.parseJsonElement(d))&&b.push(d)}return b};
dvt.AfComponentFactory.parseXmlAndLayout=function(a,b,c){b=dvt.AfComponentFactory.parseXml(b);return dvt.AfComponentFactory.parseAndLayout(a,b,c)};dvt.AfComponentFactory.parseAndLayout=function(a,b,c){a.setParentNode(c);b=b.stamp(a.getELContext());return dvt.AfComponentFactory.doLayout(a,b,c)};dvt.AfComponentFactory.doLayout=function(a,b,c){(c=dvt.AfComponentFactory._createDisplayObj(a,b,c))&&b&&dvt.AfComponentFactory._render(a,c,b);return c};
dvt.AfComponentFactory.parseAndStamp=function(a,b,c){a.setParentNode(c);b=b.stamp(a.getELContext());if(a=dvt.AfComponentFactory._createDisplayObj(a,b,c))a._compTree=b;return a};dvt.AfComponentFactory.layoutAndRender=function(a,b){b&&dvt.AfComponentFactory._render(a,b,b._compTree)};dvt.AfComponentFactory._createDisplayObj=function(a,b,c){var d;b&&(d=b.createDisplayObj(a));c&&d&&c.addChild(d);return d};
dvt.AfComponentFactory._render=function(a,b,c){if(c){c.render(a);c.postRender(a);if(a.getRmIfNotFit()){var d=dvt.AfComponent.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}};dvt.AfComponentFactory.getCompTree=function(a){return a?a._compTree:null};
dvt.AfComponentFactory.getAfComponent=function(a){for(var b=null;!b&&a;)b=a._afComp,a=a.getParent();return b};dvt.AfComponentFactory.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=dvt.AfComponentFactory.findAfComponent(e,b)))return e}return null};
dvt.AfComponentFactory.getBounds=function(a,b){var c=dvt.AfComponentFactory.getCompTree(a);return c&&c instanceof dvt.AfComponent?(c=c.getBounds(),b?a.ConvertCoordSpaceRect(c,b):c):a.getDimensions(b)};dvt.AfComponentFactory.getSize=function(a,b,c){a.setParentNode(c);return b.getSize(a)};
dvt.AfButtonLink=function(){this.Init()};dvt.Obj.createSubclass(dvt.AfButtonLink,dvt.AfComponent,"dvt.AfButtonLink");dvt.AfButtonLink.ATTR_TEXT="text";dvt.AfButtonLink.ATTR_DISABLED="disabled";dvt.AfButtonLink.ATTR_ICON="icon";dvt.AfButtonLink.ATTR_ICON_POSITION="iconPosition";dvt.AfButtonLink.ATTR_DISABLED_ICON="disabledIcon";dvt.AfButtonLink.ATTR_DESTINATION="destination";dvt.AfButtonLink.ATTR_TARGET_FRAME="targetFrame";dvt.AfButtonLink.ATTR_FOCUSABLE="focusable";
dvt.AfButtonLink.ICON_POSITION_LEADING="leading";dvt.AfButtonLink.ICON_POSITION_TRAILING="trailing";dvt.AfButtonLink.ICON_POSITION_TOP="top";dvt.AfButtonLink.ICON_POSITION_BOTTOM="bottom";dvt.AfButtonLink.prototype.getText=function(){return this.getStringProp(dvt.AfButtonLink.ATTR_TEXT,"")};dvt.AfButtonLink.prototype.setText=function(a){this.setProperty(dvt.AfButtonLink.ATTR_TEXT,a);this.getContentShape()&&this.getContentShape().setTextString(a)};
dvt.AfButtonLink.prototype.isDisabled=function(){return this.getBooleanProp(dvt.AfButtonLink.ATTR_DISABLED,!1)||this.isContainerDisabled()};dvt.AfButtonLink.prototype.setDisabled=function(a){this.setProperty(dvt.AfButtonLink.ATTR_DISABLED,a)};dvt.AfButtonLink.prototype.getIcon=function(){return this.getProperty(dvt.AfButtonLink.ATTR_ICON)};dvt.AfButtonLink.prototype.setIcon=function(a){this.setProperty(dvt.AfButtonLink.ATTR_ICON,a)};
dvt.AfButtonLink.prototype.getIconPosition=function(){return this.getStringProp(dvt.AfButtonLink.ATTR_ICON_POSITION,"leading")};dvt.AfButtonLink.prototype.setIconPosition=function(a){this.setProperty(dvt.AfButtonLink.ATTR_ICON_POSITION,a)};dvt.AfButtonLink.prototype.getDisabledIcon=function(){return this.getProperty(dvt.AfButtonLink.ATTR_DISABLED_ICON)};dvt.AfButtonLink.prototype.setDisabledIcon=function(a){this.setProperty(dvt.AfButtonLink.ATTR_DISABLED_ICON,a)};
dvt.AfButtonLink.prototype.getDestination=function(){return this.getProperty(dvt.AfButtonLink.ATTR_DESTINATION)};dvt.AfButtonLink.prototype.setDestination=function(a){this.setProperty(dvt.AfButtonLink.ATTR_DESTINATION,a);this.getContentShape()&&this.getContentShape().setDestination(a)};dvt.AfButtonLink.prototype.getTargetFrame=function(){return this.getProperty(dvt.AfButtonLink.ATTR_TARGET_FRAME,!1)};
dvt.AfButtonLink.prototype.setTargetFrame=function(a){this.setProperty(dvt.AfButtonLink.ATTR_TARGET_FRAME,a)};dvt.AfButtonLink.prototype.isCommandComponent=function(){return!this.getDestination()};dvt.AfButtonLink.prototype.getIconSource=function(a){switch(a){case dvt.Button.STATE_DISABLED:a=this.getDisabledIcon();break;default:a=this.getIcon()}return a};
dvt.AfButtonLink._createContentShape=function(a,b,c,d){var e=b._getUniqueId()+"_s"+c,f=b.getText(),g=b.getIconSource(c),h=b instanceof dvt.AfLink,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};
dvt.AfButtonLink._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,t=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),t=t-g.w-m}var u=0;if(h)if(dvt.TextUtils.fitText(h,
t,l,h.getParent()))q=h.getDimensions(),u=(r=h.isTruncated())?t: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()),w=Math.max(c.getPadding(dvt.CSSStyle.PADDING_TOP)+c.getPadding(dvt.CSSStyle.PADDING_BOTTOM),2);(c=a.getCX())||(c=0);(t=a.getCY())||(t=0);switch(e){case "top":h.alignCenter();e=(u-g.w)/2;0<e?(g.x=(l?c+d:c)+e,q.x=(l?c+d:c)+u/2,n=u):(g.x=l?c+d:c,q.x=(l?c+d:c)-e+u/2,n=g.w);g.y=t;w=1;q.y=t+g.h+w;p=g.h+w+q.h;break;case "bottom":h.alignCenter();
e=(u-g.w)/2;0<e?(g.x=(l?c+d:c)+e,q.x=(l?c+d:c)+u/2,n=u):(g.x=l?c+d:c,q.x=(l?c+d:c)-e+u/2,n=g.w);q.y=t;w=1;g.y=t+q.h+w;p=q.h+w+g.h;break;case "trailing":n=u+m+g.w;p=Math.max(q.h,g.h)+w;l?(g.x=c+d,q.x=g.x+g.w+m+u,h.alignRight()):(g.x=c+u+m,q.x=c,h.alignLeft());e=(q.h-g.h)/2;0<e?(q.y=t,g.y=t+e):(q.y=t-e,g.y=t);break;case "leading":n=g.w+m+u;p=Math.max(q.h,g.h)+w;l?(g.x=c+d+u+m,q.x=c+d+u,h.alignRight()):(g.x=c,q.x=c+g.w+m,h.alignLeft());e=(g.h-q.h)/2;0<e?(g.y=t,q.y=t+e):(g.y=t-e,q.y=t);break;case "noIcon":l?
(q.x=c+d+u,h.alignRight()):(q.x=c,h.alignLeft());q.y=t;n=u;p=q.h+w;break;case "noText":g.x=l?c+d:c,g.y=t,n=g.w,p=g.h}h&&k&&(r||a._addClipPathIfNeeded(a.getAfContext(),c,t,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};
dvt.AfButtonLink.prototype.RenderIcon=function(a){var b;if(a){var c=this.GetIconStyle();if(c){var d=c.getWidth(),c=c.getHeight();d&&c&&(d=dvt.AfComponent.ParseNonNegativeFloat(d),c=dvt.AfComponent.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};dvt.AfButtonLink.prototype.GetIconStyle=function(){return null};
dvt.AfButtonLink.prototype.GetTextStyle=function(a){return null};dvt.AfButtonLink.prototype.GetDisabledStyle=function(){return null};dvt.AfButtonLink.prototype.ResolveEm=function(a){dvt.AfButtonLink.superclass.ResolveEm.call(this,a)};dvt.AfButtonLink.prototype.getTooltip=function(){var a=dvt.AfButtonLink.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};
dvt.AfButtonLink.prototype.deferTruncation=function(){return dvt.AfComponentFactory.DEFER_TRUNCATION};dvt.AfButtonLink.prototype.createContentShape=function(a){return this.CreateButton()};dvt.AfButtonLink.prototype.renderSelfBeforeChildren=function(){dvt.AfButtonLink.superclass.renderSelfBeforeChildren.call(this);this.CreateButton(this.getContentShape());this.RenderButton()};
dvt.AfButtonLink.prototype.GetClickListenerFunction=function(){return dvt.ToolkitUtils.getLinkCallback(this.getTargetFrame(),this.getDestination())};dvt.AfButtonLink.prototype.isClickEventPropagationStopped=function(){return!0};
dvt.AfButtonLink.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};
dvt.AfButtonLink.prototype.CreateButtonState=function(a){var b=this._getStateStyle(a);a=dvt.AfButtonLink._createContentShape(this.getDvtContext(),this,a,b);a instanceof dvt.Rect&&b&&this.renderBackground(a,b);return a};
dvt.AfButtonLink.prototype._renderButtonState=function(a){var b=this._getStateStyle(a);if(!b)return null;var c=dvt.AfButtonLink._doLayout(this,a,this.GetTextStyle(a),this.GetArrowWidth()),d=this._cw,e=this._ch;try{this._cw=c.w,this._ch=c.h,dvt.AfButtonLink.superclass.renderSelfAfterLayout.call(this,this._shapeLst[a],b)}finally{this._cw=d,this._ch=e}return c};
dvt.AfButtonLink.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()};dvt.AfButtonLink.prototype._setOverrideStyle=function(a){this._overrideStyle=a};
dvt.AfButtonLink.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};dvt.AfButtonLink.prototype._RenderArrowIcon=function(a,b){return b};dvt.AfButtonLink.prototype.GetArrowWidth=function(){return 0};
dvt.AfButtonLink.prototype.registerAsTabStop=function(){this.getAfContext().registerTabStop(this)};dvt.AfButtonLink.prototype.addAccessibilityAttributes=function(a){this.getDisplayObj().setAriaRole("link");dvt.Agent.deferAriaCreation()||(a=this.getAriaLabel())&&this.getDisplayObj().setAriaProperty("label",a)};dvt.AfButtonLink.prototype.getAriaLabel=function(){var a=this.getShortDesc();a||(a=this.getText());return a};
dvt.AfButtonLink.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)}};
dvt.AfButton=function(){this.Init()};dvt.Obj.createSubclass(dvt.AfButton,dvt.AfButtonLink,"dvt.AfButton");dvt.AfButton.TAG_NAME="bt";dvt.AfComponentFactory.registerComponent(dvt.AfButton.TAG_NAME,dvt.AfButton);dvt.AfButton.prototype.getTagName=function(){return dvt.AfButton.TAG_NAME};dvt.AfButton.prototype.GetDefaultStyles=function(){return dvt.AfButton._afStyles};
dvt.AfButton.prototype.SetDefaultStyles=function(a){dvt.AfButton._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])};dvt.AfButton.prototype.GetEnabledStyle=function(){return this._getAfStyleAt(0)};dvt.AfButton.prototype.GetIconStyle=function(){return this._getAfStyleAt(1)};dvt.AfButton.prototype.GetTextStyle=function(a){return this._getAfStyleAt(2)};dvt.AfButton.prototype.GetActiveStyle=function(){return this._getAfStyleAt(7)};
dvt.AfButton.prototype.GetHoverStyle=function(){return this._getAfStyleAt(8)};dvt.AfButton.prototype.GetDisabledStyle=function(){return this._getAfStyleAt(9)};dvt.AfButton.prototype.ResolveEm=function(a){dvt.AfButton.superclass.ResolveEm.call(this,a);(a=this.GetTextStyle())&&this.resolveEmUnit(a,this);(a=this.GetDisabledStyle())&&this.resolveEmUnit(a,this)};dvt.AfButton.prototype._hasBgShape=function(){return!1};dvt.AfButton.prototype.renderSelfAfterLayout=function(){};
dvt.AfButton.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){var e=a.getDimensions(this.getAfContext().getParentNode());a.setFill(new dvt.ImageFill(this._bgImg,e,d))}else 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))}};dvt.ImageLoader.loadImage(this.getDvtContext(),
c,b)}};
dvt.AfCommandButton=function(){this.Init()};dvt.Obj.createSubclass(dvt.AfCommandButton,dvt.AfButton,"dvt.AfCommandButton");dvt.AfCommandButton.TAG_NAME="cb";dvt.AfComponentFactory.registerComponent(dvt.AfCommandButton.TAG_NAME,dvt.AfCommandButton);dvt.AfCommandButton.prototype.getTagName=function(){return dvt.AfCommandButton.TAG_NAME};dvt.AfCommandButton.prototype.GetDefaultStyles=function(){return dvt.AfCommandButton._afStyles};
dvt.AfCommandButton.prototype.SetDefaultStyles=function(a){dvt.AfCommandButton._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])};dvt.AfCommandButton.prototype.GetIconStyle=function(){return this._getAfStyleAt(1)};dvt.AfCommandButton.prototype.GetTextStyle=function(a){return this._getAfStyleAt(2)};dvt.AfCommandButton.prototype.GetActiveStyle=function(){return this._getAfStyleAt(3)};
dvt.AfCommandButton.prototype.GetHoverStyle=function(){return this._getAfStyleAt(4)};dvt.AfCommandButton.prototype.GetDisabledStyle=function(){var a=this._getAfStyleAt(5);return a?a:dvt.AfStyleUtils.getDefaultCommandButtonDisabledStyle()};
dvt.AfGoButton=function(){this.Init()};dvt.Obj.createSubclass(dvt.AfGoButton,dvt.AfButton,"dvt.AfGoButton");dvt.AfGoButton.TAG_NAME="gb";dvt.AfComponentFactory.registerComponent(dvt.AfGoButton.TAG_NAME,dvt.AfGoButton);dvt.AfGoButton.prototype.getTagName=function(){return dvt.AfGoButton.TAG_NAME};dvt.AfGoButton.prototype.GetDefaultStyles=function(){return dvt.AfGoButton._afStyles};
dvt.AfGoButton.prototype.SetDefaultStyles=function(a){dvt.AfGoButton._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])};dvt.AfGoButton.prototype.GetIconStyle=function(){return this._getAfStyleAt(1)};dvt.AfGoButton.prototype.GetTextStyle=function(a){return this._getAfStyleAt(2)};dvt.AfGoButton.prototype.GetActiveStyle=function(){return this._getAfStyleAt(3)};
dvt.AfGoButton.prototype.GetHoverStyle=function(){return this._getAfStyleAt(4)};dvt.AfGoButton.prototype.GetDisabledStyle=function(){var a=this._getAfStyleAt(5);return a?a:dvt.AfStyleUtils.getDefaultGoButtonDisabledStyle()};
dvt.AfLink=function(){this.Init()};dvt.Obj.createSubclass(dvt.AfLink,dvt.AfButtonLink,"dvt.AfLink");dvt.AfLink.TAG_NAME="lk";dvt.AfComponentFactory.registerComponent(dvt.AfLink.TAG_NAME,dvt.AfLink);dvt.AfLink.prototype.getTagName=function(){return dvt.AfLink.TAG_NAME};dvt.AfLink.prototype.GetDefaultStyles=function(){return dvt.AfLink._afStyles};
dvt.AfLink.prototype.SetDefaultStyles=function(a){dvt.AfLink._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])};dvt.AfLink.prototype.GetEnabledStyle=function(){return this._getAfStyleAt(0)};dvt.AfLink.prototype.createDisplayObj=function(a){var b=dvt.AfLink.superclass.createDisplayObj.call(this,a);this.addChildDisplayObjs(a,this._shape);return b};
dvt.AfLink.prototype.renderSelfBeforeChildren=function(){dvt.AfLink.superclass.renderSelfBeforeChildren.call(this);0<this.getNumChildren()&&(this._acw=this._aw,this._ach=this._ah-this._ch)};dvt.AfLink.prototype.doLayout=function(){0<this.getNumChildren()&&DvtAfComponentUtils.doVerticalLayout(this.getAfContext(),this)};
dvt.AfLink.prototype.renderChild=function(a){a._render?a._render(this._acw,this._ach):a.render&&dvt.AfComponent._renderComp(this.getAfContext(),a,this._acw,this._ach);a=dvt.AfComponent.getDimensions(a);a.h!==Number.MAX_VALUE&&(this._ach-=a.h)};dvt.AfLink.prototype.getHAlign=function(){return dvt.AfComponent.HALIGN_START};dvt.AfLink.prototype.GetIconStyle=function(){return this._getAfStyleAt(1)};dvt.AfLink.prototype.GetTextStyle=function(a){return this._getAfStyleAt(2)};
dvt.AfLink.prototype.GetActiveStyle=function(){return this._getAfStyleAt(5)};dvt.AfLink.prototype.GetHoverStyle=function(){return this._getAfStyleAt(6)};dvt.AfLink.prototype.GetDisabledStyle=function(){return this._getAfStyleAt(7)};dvt.AfLink.prototype.ResolveEm=function(a){dvt.AfLink.superclass.ResolveEm.call(this,a);(a=this.GetTextStyle())&&this.resolveEmUnit(a,this);(a=this.GetDisabledStyle())&&this.resolveEmUnit(a,this)};dvt.AfLink.prototype._hasBgShape=function(){return!1};
dvt.AfLink.prototype.renderBackground=function(a,b){};
dvt.AfCommandLink=function(){this.Init()};dvt.Obj.createSubclass(dvt.AfCommandLink,dvt.AfLink,"dvt.AfCommandLink");dvt.AfCommandLink.TAG_NAME="cl";dvt.AfComponentFactory.registerComponent(dvt.AfCommandLink.TAG_NAME,dvt.AfCommandLink);dvt.AfCommandLink.prototype.getIcon=function(){return null};dvt.AfCommandLink.prototype.getDisabledIcon=function(){return null};dvt.AfCommandLink.prototype.getDestination=function(){return null};dvt.AfCommandLink.prototype.getTagName=function(){return dvt.AfCommandLink.TAG_NAME};
dvt.AfCommandLink.prototype.GetDefaultStyles=function(){return dvt.AfCommandLink._afStyles};dvt.AfCommandLink.prototype.SetDefaultStyles=function(a){dvt.AfCommandLink._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])};dvt.AfCommandLink.prototype.GetIconStyle=function(){return null};dvt.AfCommandLink.prototype.GetTextStyle=function(a){return this._getAfStyleAt(0)};dvt.AfCommandLink.prototype.GetActiveStyle=function(){return this._getAfStyleAt(1)};
dvt.AfCommandLink.prototype.GetHoverStyle=function(){return this._getAfStyleAt(2)};dvt.AfCommandLink.prototype.GetDisabledStyle=function(){var a=this._getAfStyleAt(3);return a?a:dvt.AfStyleUtils.getDefaultCommandLinkDisabledStyle()};
dvt.AfCommandImageLink=function(){this.Init()};dvt.Obj.createSubclass(dvt.AfCommandImageLink,dvt.AfLink,"dvt.AfCommandImageLink");dvt.AfCommandImageLink.TAG_NAME="cil";dvt.AfComponentFactory.registerComponent(dvt.AfCommandImageLink.TAG_NAME,dvt.AfCommandImageLink);dvt.AfCommandImageLink.prototype.getDestination=function(){return null};dvt.AfCommandImageLink.prototype.getTagName=function(){return dvt.AfCommandImageLink.TAG_NAME};dvt.AfCommandImageLink.prototype.GetDefaultStyles=function(){return dvt.AfCommandImageLink._afStyles};
dvt.AfCommandImageLink.prototype.SetDefaultStyles=function(a){dvt.AfCommandImageLink._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])};dvt.AfCommandImageLink.prototype.GetIconStyle=function(){return this._getAfStyleAt(1)};dvt.AfCommandImageLink.prototype.GetTextStyle=function(a){return this._getAfStyleAt(2)};dvt.AfCommandImageLink.prototype.GetActiveStyle=function(){return this._getAfStyleAt(3)};
dvt.AfCommandImageLink.prototype.GetHoverStyle=function(){return this._getAfStyleAt(4)};dvt.AfCommandImageLink.prototype.GetDisabledStyle=function(){var a=this._getAfStyleAt(5);return a?a:dvt.AfStyleUtils.getDefaultCommandImageLinkDisabledStyle()};dvt.AfCommandImageLink.prototype.ResolveEm=function(a){dvt.AfCommandImageLink.superclass.ResolveEm.call(this,a);(a=this.GetIconStyle())&&this.resolveEmUnit(a,this)};
dvt.AfGoLink=function(){this.Init()};dvt.Obj.createSubclass(dvt.AfGoLink,dvt.AfLink,"dvt.AfGoLink");dvt.AfGoLink.TAG_NAME="gl";dvt.AfComponentFactory.registerComponent(dvt.AfGoLink.TAG_NAME,dvt.AfGoLink);dvt.AfGoLink.prototype.getIcon=function(){return null};dvt.AfGoLink.prototype.getDisabledIcon=function(){return null};dvt.AfGoLink.prototype.getTagName=function(){return dvt.AfGoLink.TAG_NAME};dvt.AfGoLink.prototype.GetDefaultStyles=function(){return dvt.AfGoLink._afStyles};
dvt.AfGoLink.prototype.SetDefaultStyles=function(a){dvt.AfGoLink._afStyles=a;1<a.length&&a[1].mergeUnder(a[0]);3<a.length&&a[3].mergeUnder(a[0])};dvt.AfGoLink.prototype.GetTextStyle=function(a){return dvt.AfGoLink._afStyles[0]};dvt.AfGoLink.prototype.GetActiveStyle=function(){return this._getAfStyleAt(1)};dvt.AfGoLink.prototype.GetHoverStyle=function(){return this._getAfStyleAt(2)};dvt.AfGoLink.prototype.GetDisabledStyle=function(){var a=this._getAfStyleAt(3);return a?a:dvt.AfStyleUtils.getDefaultGoLinkDisabledStyle()};
dvt.AfCommandMenuItem=function(){this.Init()};dvt.Obj.createSubclass(dvt.AfCommandMenuItem,dvt.AfButton,"dvt.AfCommandMenuItem");dvt.AfCommandMenuItem.TAG_NAME="cmi";dvt.AfComponentFactory.registerComponent(dvt.AfCommandMenuItem.TAG_NAME,dvt.AfCommandMenuItem);dvt.AfCommandMenuItem.prototype.getTagName=function(){return dvt.AfCommandMenuItem.TAG_NAME};dvt.AfCommandMenuItem.prototype.GetDefaultStyles=function(){return dvt.AfCommandMenuItem._afStyles};
dvt.AfCommandMenuItem.prototype.SetDefaultStyles=function(a){dvt.AfCommandMenuItem._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])};dvt.AfCommandMenuItem.prototype.GetIconStyle=function(){return this._getAfStyleAt(2)};
dvt.AfCommandMenuItem.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)};dvt.AfCommandMenuItem.prototype.GetActiveStyle=function(){return this._getAfStyleAt(3)};dvt.AfCommandMenuItem.prototype.GetHoverStyle=function(){return this._getAfStyleAt(4)};
dvt.AfCommandMenuItem.prototype.GetDisabledStyle=function(){var a=this._getAfStyleAt(5);return a?a:dvt.AfStyleUtils.getDefaultCommandMenuItemDisabledStyle()};dvt.AfCommandMenuItem.prototype.getIconPosition=function(){return dvt.AfButtonLink.ICON_POSITION_LEADING};dvt.AfCommandMenuItem.prototype.RenderBackgroundStroke=function(a,b){};
dvt.AfCommandMenuItem.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 dvt.AfMenu&&b.hideDropdown()})};
dvt.AfMenu=function(){this.Init()};dvt.Obj.createSubclass(dvt.AfMenu,dvt.AfButton,"dvt.AfMenu");dvt.AfMenu.TAG_NAME="m";dvt.AfComponentFactory.registerComponent(dvt.AfMenu.TAG_NAME,dvt.AfMenu);dvt.AfMenu.DROPDOWN_PADDING=1;dvt.AfMenu.HPADDING=5;dvt.AfMenu.prototype.getTagName=function(){return dvt.AfMenu.TAG_NAME};dvt.AfMenu.prototype.GetDefaultStyles=function(){return dvt.AfMenu._afStyles};
dvt.AfMenu.prototype.SetDefaultStyles=function(a){dvt.AfMenu._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])};dvt.AfMenu.prototype.GetIconStyle=function(){return this._getAfStyleAt(2)};
dvt.AfMenu.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)};dvt.AfMenu.prototype.GetActiveStyle=function(){return this._getAfStyleAt(12)};dvt.AfMenu.prototype.GetHoverStyle=function(){return this._getAfStyleAt(13)};dvt.AfMenu.prototype.GetDisabledStyle=function(){var a=this._getAfStyleAt(7);return a?a:dvt.AfStyleUtils.getDefaultMenuDisabledStyle()};
dvt.AfMenu.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=dvt.AfComponent.ParseNonNegativeFloat(b),c=dvt.AfComponent.ParseNonNegativeFloat(c),this._arrowDim=new dvt.Rectangle(0,0,b,c))}return a};dvt.AfMenu.prototype._getPopupStyle=function(){return this._getAfStyleAt(8)};
dvt.AfMenu.prototype.getIconPosition=function(){return dvt.AfButtonLink.ICON_POSITION_LEADING};dvt.AfMenu.prototype.CreateButtonState=function(a){var b=dvt.AfMenu.superclass.CreateButtonState.call(this,a),c=this.GetOpenIconStyle(a);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};
dvt.AfMenu.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};
dvt.AfMenu.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};
dvt.AfMenu.prototype._getArrowWidth=function(){return this._arrowDim?this._arrowDim.w:0};dvt.AfMenu.prototype._getArrowHeight=function(){return this._arrowDim?this._arrowDim.h:0};dvt.AfMenu.prototype.renderChildren=function(){};dvt.AfMenu.prototype.GetClickListenerFunction=function(){return dvt.Obj.createCallback(this,this._handleClickAction)};dvt.AfMenu.prototype._handleClickAction=function(a){0<this.getNumChildren()&&this.displayDropdown()};
dvt.AfMenu.prototype.hideDropdown=function(){this.RemoveStageFocusChangeListeners();var a=this._getMenuDropdownContainer();a&&dvt.AfMenu._updateDropdown(a,null);this.getContentShape().setToggled(!1)};
dvt.AfMenu.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=dvt.AfComponent.getBorderColor(e),h=e.getBorderWidth());a.setSolidFill(f);a.setSolidStroke(g,null,h);dvt.AfMenu._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)};
dvt.AfMenu.prototype.populateDropdown=function(a,b){for(var c,d=dvt.AfMenu.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=dvt.AfComponent.getDimensions(k),e=Math.max(e,c.w),d+=c.h+dvt.AfMenu.DROPDOWN_PADDING,f.push(c.w),g.push(c.h),h.push(k);b.setWidth(e+2*dvt.AfMenu.DROPDOWN_PADDING);b.setHeight(d);for(l=0;l<h.length;l++)if(k=h[l])d=e-
dvt.AfMenu.DROPDOWN_PADDING,k.setSize(d+1,g[l]),k.setTranslateX(dvt.AfMenu.DROPDOWN_PADDING),dvt.Agent.isRightToLeft(this.getDvtContext())&&k.rightAlign(d,f[l])};dvt.AfMenu.prototype.renderChild=function(a){a._render&&a._render(Number.MAX_VALUE,Number.MAX_VALUE)};dvt.AfMenu.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()}};
dvt.AfMenu.prototype.RemoveStageFocusChangeListeners=function(){var a=this.getDvtContext().getStage();a&&a.removeEvtListener(dvt.Agent.isTouchDevice()?dvt.TouchEvent.TOUCHSTART:dvt.MouseEvent.MOUSEDOWN,this.HandleStageFocusChange,!0,this)};dvt.AfMenu._updateDropdown=function(a,b){a._afMenuDropDown&&a.removeChild(a._afMenuDropDown);b&&(a.contains(b)||a.addChild(b));a._afMenuDropDown=b};
dvt.AfMenu.prototype._getMenuDropdownContainer=function(a){var b=this.getAfContext().getMenuDropdownContainer();a&&!b&&(b=this.getDisplayObj());return b};dvt.AfMenu.prototype.CreateButton=function(a){a=dvt.AfMenu.superclass.CreateButton.call(this,a);a.setToggleEnabled(!0);return a};dvt.AfMenu.prototype.handleKeyboardEvent=function(a){a.keyCode==dvt.KeyboardEvent.ESCAPE?this.hideDropdown():dvt.AfMenu.superclass.handleKeyboardEvent.call(this,a)};
dvt.AfImage=function(){this.Init()};dvt.Obj.createSubclass(dvt.AfImage,dvt.AfComponent,"dvt.AfImage");dvt.AfImage.TAG_NAME="i";dvt.AfComponentFactory.registerComponent(dvt.AfImage.TAG_NAME,dvt.AfImage);dvt.AfImage.ATTR_SOURCE="source";dvt.AfImage.prototype.setSrc=function(a){this.setProperty(dvt.AfImage.ATTR_SOURCE,a);this.getContentShape()&&this.getContentShape().setSrc(a)};dvt.AfImage.prototype.getSrc=function(){return this.getProperty(dvt.AfImage.ATTR_SOURCE)};
dvt.AfImage.prototype.GetDefaultStyles=function(){return dvt.AfImage._afStyles};dvt.AfImage.prototype.SetDefaultStyles=function(a){dvt.AfImage._afStyles=a};dvt.AfImage.prototype.createContentShape=function(a){return new dvt.Image(a,this.getSrc(),0,0,1,1,this._getUniqueId())};
dvt.AfImage.prototype.renderSelfBeforeChildren=function(){dvt.AfImage.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)}};
dvt.AfImage.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()));dvt.AfImage.superclass.adjustClientArea.call(this,a)};
dvt.AfImage.prototype.onImageLoaded=function(a){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))};dvt.AfImage.prototype.getTagName=function(){return dvt.AfImage.TAG_NAME};dvt.AfImage.prototype.registerAsTabStop=function(){this.getAfContext().registerTabStop(this)};
dvt.AfMarker=function(){this.Init()};dvt.Obj.createSubclass(dvt.AfMarker,dvt.AfComponent,"dvt.AfMarker");dvt.AfMarker.TAG_NAME="mk";dvt.AfComponentFactory.registerComponent(dvt.AfMarker.TAG_NAME,dvt.AfMarker);dvt.AfMarker.MARKER_LABEL_PADDING=2;dvt.AfMarker.ATTR_LABEL_DISPLAY="labelDisplay";dvt.AfMarker.ATTR_LABEL_POSITION="labelPosition";dvt.AfMarker.ATTR_LABEL_STYLE="labelStyle";dvt.AfMarker.ATTR_VALUE="value";dvt.AfMarker.ATTR_SCALE_X="scaleX";dvt.AfMarker.ATTR_SCALE_Y="scaleY";
dvt.AfMarker.ATTR_SHAPE="shape";dvt.AfMarker.ATTR_SHAPE_PATH="shapePath";dvt.AfMarker.ATTR_FILL_COLOR="fillColor";dvt.AfMarker.ATTR_FILL_PATTERN="fillPattern";dvt.AfMarker.ATTR_GRADIENT_EFFECT="gradientEffect";dvt.AfMarker.ATTR_OPACITY="opacity";dvt.AfMarker.ATTR_WIDTH="width";dvt.AfMarker.ATTR_HEIGHT="height";dvt.AfMarker.ATTR_X="x";dvt.AfMarker.ATTR_Y="y";dvt.AfMarker.ATTR_BORDER_STYLE="borderStyle";dvt.AfMarker.ATTR_BORDER_WIDTH="borderWidth";dvt.AfMarker.ATTR_BORDER_COLOR="borderColor";
dvt.AfMarker.ATTR_BORDER_RADIUS="borderRadius";dvt.AfMarker.ATTR_SOURCE="source";dvt.AfMarker.ATTR_SOURCE_HOVER="sourceHover";dvt.AfMarker.ATTR_SOURCE_SELECTED="sourceSelected";dvt.AfMarker.ATTR_SOURCE_HOVER_SELECTED="sourceHoverSelected";dvt.AfMarker.ATTR_HAS_ACTION_LISTENER="hasActionListener";dvt.AfMarker._BI_DEFAULT_MARKER_SIZE=9;dvt.AfMarker.CIRCLE="c";dvt.AfMarker.SQUARE="s";dvt.AfMarker.DIAMOND="d";dvt.AfMarker.TRIANGLE_UP="tu";dvt.AfMarker.TRIANGLE_DOWN="td";dvt.AfMarker.PLUS="p";
dvt.AfMarker.HUMAN="h";dvt.AfMarker.RECTANGLE="r";dvt.AfMarker.ROUNDED_RECT="rr";dvt.AfMarker._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};
dvt.AfMarker._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};dvt.AfMarker.prototype.getShape=function(){return this.getProperty(dvt.AfMarker.ATTR_SHAPE)};dvt.AfMarker.prototype.setShape=function(a){this.setProperty(dvt.AfMarker.ATTR_SHAPE,a)};dvt.AfMarker.prototype.getShapePath=function(){return this.getProperty(dvt.AfMarker.ATTR_SHAPE_PATH)};dvt.AfMarker.prototype.setShapePath=function(a){this.setProperty(dvt.AfMarker.ATTR_SHAPE_PATH,a)};dvt.AfMarker.prototype.getValue=function(){return this.getProperty(dvt.AfMarker.ATTR_VALUE)};
dvt.AfMarker.prototype.setValue=function(a){this.setProperty(dvt.AfMarker.ATTR_VALUE,a)};dvt.AfMarker.prototype.getFillColor=function(){return this.getProperty(dvt.AfMarker.ATTR_FILL_COLOR)};dvt.AfMarker.prototype.setFillColor=function(a){this.setProperty(dvt.AfMarker.ATTR_FILL_COLOR,a)};dvt.AfMarker.prototype.getFillPattern=function(){return this.getProperty(dvt.AfMarker.ATTR_FILL_PATTERN)};dvt.AfMarker.prototype.setFillPattern=function(a){this.setProperty(dvt.AfMarker.ATTR_FILL_PATTERN,a)};
dvt.AfMarker.prototype.getScaleX=function(){return this.getProperty(dvt.AfMarker.ATTR_SCALE_X)};dvt.AfMarker.prototype.setScaleX=function(a){this.setProperty(dvt.AfMarker.ATTR_SCALE_X,a)};dvt.AfMarker.prototype.getScaleY=function(){return this.getProperty(dvt.AfMarker.ATTR_SCALE_Y)};dvt.AfMarker.prototype.setScaleY=function(a){this.setProperty(dvt.AfMarker.ATTR_SCALE_Y,a)};dvt.AfMarker.prototype.getLabelStyle=function(){return this.getProperty(dvt.AfMarker.ATTR_LABEL_STYLE)};
dvt.AfMarker.prototype.setLabelStyle=function(a){this.setProperty(dvt.AfMarker.ATTR_LABEL_STYLE,a)};dvt.AfMarker.prototype.getLabelPosition=function(){return this.getProperty(dvt.AfMarker.ATTR_LABEL_POSITION)};dvt.AfMarker.prototype.setLabelPosition=function(a){this.setProperty(dvt.AfMarker.ATTR_LABEL_POSITION,a)};dvt.AfMarker.prototype.getLabelDisplay=function(){return this.getProperty(dvt.AfMarker.ATTR_LABEL_DISPLAY)};
dvt.AfMarker.prototype.setLabelDisplay=function(a){this.setProperty(dvt.AfMarker.ATTR_LABEL_DISPLAY,a)};dvt.AfMarker.prototype.getGradientEffect=function(){return this.getProperty(dvt.AfMarker.ATTR_GRADIENT_EFFECT)};dvt.AfMarker.prototype.setGradientEffect=function(a){this.setProperty(dvt.AfMarker.ATTR_GRADIENT_EFFECT,a)};dvt.AfMarker.prototype.getOpacity=function(){return this.getProperty(dvt.AfMarker.ATTR_OPACITY)};
dvt.AfMarker.prototype.setOpacity=function(a){this.setProperty(dvt.AfMarker.ATTR_OPACITY,a)};dvt.AfMarker.prototype.getBorderStyle=function(){return this.getProperty(dvt.AfMarker.ATTR_BORDER_STYLE)};dvt.AfMarker.prototype.setBorderStyle=function(a){this.setProperty(dvt.AfMarker.ATTR_BORDER_STYLE,a)};dvt.AfMarker.prototype.getBorderWidth=function(){return this.getFloatProp(dvt.AfMarker.ATTR_BORDER_WIDTH)};
dvt.AfMarker.prototype.setBorderWidth=function(a){this.setProperty(dvt.AfMarker.ATTR_BORDER_WIDTH,a)};dvt.AfMarker.prototype.getBorderColor=function(){return this.getProperty(dvt.AfMarker.ATTR_BORDER_COLOR)};dvt.AfMarker.prototype.setBorderColor=function(a){this.setProperty(dvt.AfMarker.ATTR_BORDER_COLOR,a)};dvt.AfMarker.prototype.getBorderRadius=function(){return this.getProperty(dvt.AfMarker.ATTR_BORDER_RADIUS)};
dvt.AfMarker.prototype.setBorderRadius=function(a){this.setProperty(dvt.AfMarker.ATTR_BORDER_RADIUS,a)};dvt.AfMarker.prototype.getWidth=function(){return this.getFloatProp(dvt.AfMarker.ATTR_WIDTH)};dvt.AfMarker.prototype.setWidth=function(a){this.setProperty(dvt.AfMarker.ATTR_WIDTH,a)};dvt.AfMarker.prototype.getHeight=function(){return this.getFloatProp(dvt.AfMarker.ATTR_HEIGHT)};dvt.AfMarker.prototype.setHeight=function(a){this.setProperty(dvt.AfMarker.ATTR_HEIGHT,a)};
dvt.AfMarker.prototype.getSource=function(){return this.getProperty(dvt.AfMarker.ATTR_SOURCE)};dvt.AfMarker.prototype.setSource=function(a){this.setProperty(dvt.AfMarker.ATTR_SOURCE,a)};dvt.AfMarker.prototype.getSourceHover=function(){return this.getProperty(dvt.AfMarker.ATTR_SOURCE_HOVER)};dvt.AfMarker.prototype.setSourceHover=function(a){this.setProperty(dvt.AfMarker.ATTR_SOURCE_HOVER,a)};dvt.AfMarker.prototype.getSourceSelected=function(){return this.getProperty(dvt.AfMarker.ATTR_SOURCE_SELECTED)};
dvt.AfMarker.prototype.setSourceSelected=function(a){this.setProperty(dvt.AfMarker.ATTR_SOURCE_SELECTED,a)};dvt.AfMarker.prototype.getSourceHoverSelected=function(){return this.getProperty(dvt.AfMarker.ATTR_SOURCE_HOVER_SELECTED)};dvt.AfMarker.prototype.setSourceHoverSelected=function(a){this.setProperty(dvt.AfMarker.ATTR_SOURCE_HOVER_SELECTED,a)};dvt.AfMarker.prototype.getX=function(){return this.getFloatProp(dvt.AfMarker.ATTR_X,0)};
dvt.AfMarker.prototype.getY=function(){return this.getFloatProp(dvt.AfMarker.ATTR_Y,0)};
dvt.AfMarker.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=dvt.AfMarker._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?(k=[h,this.getSourceSelected(),this.getSourceHover(),
this.getSourceHoverSelected()],l=this.getBorderRadius()):k?(f=this.getX(),g=this.getY()):(h=this.getShape(),h||(h=dvt.AfMarker.CIRCLE),l=this.getBorderRadius(),l||h!=dvt.AfMarker.ROUNDED_RECT||(l=dvt.SimpleMarker.DEFAULT_BORDER_RADIUS),k=dvt.AfMarker._markerTypeMap[h]);var m=f+.5*d,n=g+.5*e,g=this.getBorderStyle(),h=!this.getShapePath()&&g&&"none"!=g,f=this.getBorderWidth();h&&(f=f?f:1,d-=f,e-=f);k instanceof Array?(d=new dvt.ImageMarker(b,m,n,d,e,l,k[0],k[1],k[2],k[3]),d.setPreserveAspectRatio("none")):
d=new dvt.SimpleMarker(b,k,a.getSkinName(),m,n,d,e,l,!1);e=this.getProperty(dvt.AfMarker.ATTR_HAS_ACTION_LISTENER);if(!e){k=this.getShowPopupBehaviors();if(dvt.ArrayUtils.isArray(k))for(l=0;l<k.length;l++)if(k[l]&&"click"==k[l].getTriggerType()){e=!0;break}if(!e&&(k=this.getClientBehaviors(),dvt.ArrayUtils.isArray(k)))for(l=0;l<k.length;l++)if(k[l]&&"click"==k[l].getTriggerType()){e=!0;break}}d.setCursor(e?dvt.SelectionEffectUtils.getSelectingCursor():null);d._prop=this._prop;e=this.getFillColor();
l=this.getOpacity();k=this.getGradientEffect();(m=this.getFillPattern())&&(m=dvt.AfMarker._markerFillPatternMap[m]);m?d.setFill(new dvt.PatternFill(m,e)):"auto"==k?d.setFill(dvt.MarkerGradient.createMarkerGradient(e?e:"#000000",d,l?l:1)):(e||l)&&d.setSolidFill(e,l);h&&(h=this.getBorderColor(),f=new dvt.SolidStroke(h?h:"#000000",1,f),f.setType(dvt.Stroke.convertTypeString(g)),d.setStroke(f));this._marker=d;g=this.getValue();f=this.getLabelDisplay()&&"off"===this.getLabelDisplay()?!1:!0;g&&f?(g=new dvt.OutputText(b,
g,0,0,c+"_lb"),f=this.getLabelStyle(),(a=dvt.AfComponentFactory.CACHE_STYLES?a.GetCSSStyle(this.getTagName(),"",f,!0):f?this.createTextStyles(new dvt.CSSStyle(f),dvt.AfStyleUtils.getDefaultTextStyle()):dvt.AfStyleUtils.getDefaultTextStyle())&&g.setCSSStyle(a),this._label=g,b=new dvt.Container(b,c),"top"===this.getLabelPosition()?(b.addChild(g),b.addChild(d)):(b.addChild(d),b.addChild(g)),this._bgShape=b):this._bgShape=d;this._bgShape._afComp=this;return this._bgShape};
dvt.AfMarker.prototype.getMarkerDisplayObj=function(){return this._marker};dvt.AfMarker.prototype.setTranslateX=function(a){this._bgShape.setTranslateX(a)};dvt.AfMarker.prototype.setTranslateY=function(a){this._bgShape.setTranslateY(a)};
dvt.AfMarker.prototype.render=function(a){if(this.renderMe()){var b=this.getDisplayObj();(this.getShortDesc()||this.getProperty(dvt.AfMarker.ATTR_HAS_ACTION_LISTENER)||this.getShowPopupBehaviors()||this.getClientBehaviors())&&this.associate(b,this);var c=this._marker,d=this._label,e=c.getDimensionsWithStroke(),b=this.getX(),f=this.getY(),g=e.w,e=e.h;if(d)if(0===g&&0===e)this._setBounds(a,b,f,0,0);else{var h=d.getDimensions();switch(this.getLabelPosition()){case "top":g>h.w?(d.setX(g/2),d.alignCenter()):
c.setCx(h.w/2);c.setCy(h.h+dvt.AfMarker.MARKER_LABEL_PADDING+e/2);c=Math.max(g,h.w);d=h.h+dvt.AfMarker.MARKER_LABEL_PADDING+e;break;case "bottom":g>h.w?(d.setX(g/2),d.alignCenter()):c.setCx(h.w/2);d.setY(e+dvt.AfMarker.MARKER_LABEL_PADDING);c=Math.max(g,h.w);d=e+dvt.AfMarker.MARKER_LABEL_PADDING+h.h;break;case "left":e>h.h?(d.setY(e/2),d.alignMiddle()):c.setCy(h.h/2);c.setCx(h.w+dvt.AfMarker.MARKER_LABEL_PADDING+g/2);c=h.w+dvt.AfMarker.MARKER_LABEL_PADDING+g;d=Math.max(e,h.h);break;case "right":e>
h.h?(d.setY(e/2),d.alignMiddle()):c.setCy(h.h/2);d.setX(g+dvt.AfMarker.MARKER_LABEL_PADDING);c=g+dvt.AfMarker.MARKER_LABEL_PADDING+h.w;d=Math.max(e,h.h);break;default:g>h.w?(d.setX(g/2),d.alignCenter()):c.setCx(h.w/2),e>h.h?(d.setY(e/2),d.alignMiddle()):c.setCy(h.h/2),c=Math.max(g,h.w),d=Math.max(e,h.h)}this._setBounds(a,b,f,c,d)}else this._setBounds(a,b,f,g,e)}};dvt.AfMarker.prototype.getTagName=function(){return dvt.AfMarker.TAG_NAME};dvt.AfMarker.prototype.GetDefaultStyles=function(){return dvt.AfMarker._afStyles};
dvt.AfMarker.prototype.SetDefaultStyles=function(a){dvt.AfMarker._afStyles=a};dvt.AfMarker.prototype._render=function(a,b){if(this.renderMe()){var c=this.getDisplayObj();(this.getShortDesc()||this.getProperty(dvt.AfMarker.ATTR_HAS_ACTION_LISTENER)||this.getShowPopupBehaviors()||this.getClientBehaviors())&&this.associate(c,this);dvt.AfComponent._renderComp(this.getAfContext(),this,a,b)}};dvt.AfMarker.prototype.renderSelfBeforeChildren=function(){};
dvt.AfMarker.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)};dvt.AfMarker.prototype.isCommandComponent=function(){return!0};dvt.AfMarker.prototype.isClickEventPropagationStopped=function(){return this.getProperty(dvt.AfMarker.ATTR_HAS_ACTION_LISTENER)};dvt.AfMarker.prototype.registerAsTabStop=function(){this.getAfContext().registerTabStop(this)};
dvt.AfMarker.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))};dvt.AfMarker.convertShapeString=function(a){return dvt.AfMarker._markerTypeMap[a]};
dvt.AfOutputText=function(){this.Init()};dvt.Obj.createSubclass(dvt.AfOutputText,dvt.AfComponent,"dvt.AfOutputText");dvt.AfOutputText.TAG_NAME="ot";dvt.AfComponentFactory.registerComponent(dvt.AfOutputText.TAG_NAME,dvt.AfOutputText);dvt.AfOutputText.ATTR_VALUE="value";dvt.AfOutputText.ATTR_NO_WRAP="noWrap";dvt.AfOutputText.ATTR_TRUNCATE_AT="truncateAt";dvt.AfOutputText.prototype.setNoWrap=function(a){this.setProperty(dvt.AfOutputText.ATTR_NO_WRAP,a)};
dvt.AfOutputText.prototype.isNoWrap=function(){return this.getBooleanProp(dvt.AfOutputText.ATTR_NO_WRAP,!1)};dvt.AfOutputText.prototype.setTruncateAt=function(a){this.setProperty(dvt.AfOutputText.ATTR_TRUNCATE_AT,a)};dvt.AfOutputText.prototype.getTruncateAt=function(){return this.getIntegerProp(dvt.AfOutputText.ATTR_TRUNCATE_AT,0)};dvt.AfOutputText.prototype.setValue=function(a){this.setProperty(dvt.AfOutputText.ATTR_VALUE,a);this.getContentShape()&&this.getContentShape().setTextString(a)};
dvt.AfOutputText.prototype.getValue=function(){return this.getProperty(dvt.AfOutputText.ATTR_VALUE)};dvt.AfOutputText.prototype.GetDefaultStyles=function(){return dvt.AfOutputText._afStyles};dvt.AfOutputText.prototype.SetDefaultStyles=function(a){dvt.AfOutputText._afStyles=a};dvt.AfOutputText.prototype.createContentShape=function(a){return this.createTextShape(!this.isNoWrap(),this.getValue(),null)};
dvt.AfOutputText.prototype.renderSelfBeforeChildren=function(){dvt.AfOutputText.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};
dvt.AfOutputText.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};dvt.AfOutputText.prototype.getTooltip=function(){var a=dvt.AfOutputText.superclass.getTooltip.call(this);if(!a){var b=this.getContentShape();if(b&&(b.isTruncated()||this._isTruncationForced()))return this.getValue()}return a};
dvt.AfOutputText.prototype._getMaximumCharacters=function(){var a=this.getValue(),b=this.getTruncateAt();return a&&b?Math.max(15,b):0};dvt.AfOutputText.prototype._isTruncationForced=function(){var a=this._getMaximumCharacters();if(a){var b=this.getValue();if(b)return b.length>a}return!1};dvt.AfOutputText.prototype.getTagName=function(){return dvt.AfOutputText.TAG_NAME};dvt.AfOutputText.prototype.registerAsTabStop=function(){this.getAfContext().registerTabStop(this)};
dvt.AfOutputText.prototype.getAriaLabel=function(){var a=this.getShortDesc();a||(a=this.getValue());return a};dvt.AfOutputText.prototype.getAriaRole=function(){return"group"};
dvt.AfOutputFormatted=function(){this.Init()};dvt.Obj.createSubclass(dvt.AfOutputFormatted,dvt.AfComponent,"dvt.AfOutputFormatted");dvt.AfOutputFormatted.TAG_NAME="otf";dvt.AfComponentFactory.registerComponent(dvt.AfOutputFormatted.TAG_NAME,dvt.AfOutputFormatted);dvt.AfOutputFormatted.ATTR_VALUE="value";dvt.AfOutputFormatted.prototype.setValue=function(a){this.setProperty(dvt.AfOutputFormatted.ATTR_VALUE,a);this.getContentShape()&&this.getContentShape().setText(a)};
dvt.AfOutputFormatted.prototype.getValue=function(){return this.getProperty(dvt.AfOutputFormatted.ATTR_VALUE)};dvt.AfOutputFormatted.prototype.GetDefaultStyles=function(){return dvt.AfOutputFormatted._afStyles};dvt.AfOutputFormatted.prototype.SetDefaultStyles=function(a){dvt.AfOutputFormatted._afStyles=a};
dvt.AfOutputFormatted.prototype.createContentShape=function(a){var b=this._getUniqueId();a=new dvt.TextFormatted(a,0,0,b);(b=this.createTextStyles(null,null))&&a.setCSSStyle(b);a.setText(this.getValue());return a};
dvt.AfOutputFormatted.prototype.renderSelfBeforeChildren=function(){dvt.AfOutputFormatted.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)};dvt.AfOutputFormatted.prototype.getTagName=function(){return dvt.AfOutputFormatted.TAG_NAME};
dvt.AfOutputFormatted.prototype.registerAsTabStop=function(){this.getAfContext().registerTabStop(this)};dvt.AfOutputFormatted.prototype.getAriaLabel=function(){var a=this.getShortDesc();a||(a=this.getValue());return a};dvt.AfOutputFormatted.prototype.getAriaRole=function(){return"group"};
dvt.AfPanelGroupLayout=function(){this.Init()};dvt.Obj.createSubclass(dvt.AfPanelGroupLayout,dvt.AfComponent,"dvt.AfPanelGroupLayout");dvt.AfPanelGroupLayout.TAG_NAME="pgl";dvt.AfComponentFactory.registerComponent(dvt.AfPanelGroupLayout.TAG_NAME,dvt.AfPanelGroupLayout);dvt.AfPanelGroupLayout.ATTR_LAYOUT="layout";dvt.AfPanelGroupLayout.ATTR_VALIGN="valign";dvt.AfPanelGroupLayout.ATTR_HALIGN="halign";dvt.AfPanelGroupLayout.LAYOUT_VERTICAL="vertical";dvt.AfPanelGroupLayout.LAYOUT_HORIZONTAL="horizontal";
dvt.AfPanelGroupLayout.LAYOUT_SCROLL="scroll";dvt.AfPanelGroupLayout.prototype.getLayout=function(){return this.getStringProp(dvt.AfPanelGroupLayout.ATTR_LAYOUT,dvt.AfPanelGroupLayout.LAYOUT_HORIZONTAL)};dvt.AfPanelGroupLayout.prototype.setLayout=function(a){this.setProperty(dvt.AfPanelGroupLayout.ATTR_LAYOUT,a)};dvt.AfPanelGroupLayout.prototype.getHAlign=function(){return this.getStringProp(dvt.AfPanelGroupLayout.ATTR_HALIGN,dvt.AfComponent.HALIGN_START)};
dvt.AfPanelGroupLayout.prototype.setHAlign=function(a){this.setProperty(dvt.AfPanelGroupLayout.ATTR_HALIGN,a)};dvt.AfPanelGroupLayout.prototype.getVAlign=function(){return this.getStringProp(dvt.AfPanelGroupLayout.ATTR_VALIGN,dvt.AfComponent.VALIGN_TOP)};dvt.AfPanelGroupLayout.prototype.setVAlign=function(a){this.setProperty(dvt.AfPanelGroupLayout.ATTR_VALIGN,a)};dvt.AfPanelGroupLayout.prototype.GetDefaultStyles=function(){return dvt.AfPanelGroupLayout._afStyles};
dvt.AfPanelGroupLayout.prototype.SetDefaultStyles=function(a){dvt.AfPanelGroupLayout._afStyles=a};dvt.AfPanelGroupLayout.prototype.createDisplayObj=function(a){var b=dvt.AfPanelGroupLayout.superclass.createDisplayObj.call(this,a);this.addChildDisplayObjs(a,this._contentPane);return b};
dvt.AfPanelGroupLayout.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};dvt.AfPanelGroupLayout.prototype.getContentShape=function(){return this._contentPane};dvt.AfPanelGroupLayout.prototype.createBackgroundShape=function(a,b){return b};
dvt.AfPanelGroupLayout.prototype.renderSelfBeforeChildren=function(){dvt.AfPanelGroupLayout.superclass.renderSelfBeforeChildren.call(this);this._acw=this._cw;this._ach=this._ch};
dvt.AfPanelGroupLayout.prototype.renderChild=function(a){a._render?a._render(this._acw,this._ach):a.render&&dvt.AfComponent._renderComp(this.getAfContext(),a,this._acw,this._ach);a=dvt.AfComponent.getDimensions(a);this.getLayout()==dvt.AfPanelGroupLayout.LAYOUT_VERTICAL?a.h!==Number.MAX_VALUE&&(this._ach-=a.h):a.w!==Number.MAX_VALUE&&(this._acw-=a.w)};
dvt.AfPanelGroupLayout.prototype.doLayout=function(){this.getLayout()==dvt.AfPanelGroupLayout.LAYOUT_VERTICAL?DvtAfComponentUtils.doVerticalLayout(this.getAfContext(),this):DvtAfComponentUtils.doHorizontalLayout(this.getAfContext(),this)};dvt.AfPanelGroupLayout.prototype.getTagName=function(){return dvt.AfPanelGroupLayout.TAG_NAME};
dvt.AfPanelFormLayout=function(){this.Init()};dvt.Obj.createSubclass(dvt.AfPanelFormLayout,dvt.AfComponent,"dvt.AfPanelFormLayout");dvt.AfPanelFormLayout.TAG_NAME="pfl";dvt.AfComponentFactory.registerComponent(dvt.AfPanelFormLayout.TAG_NAME,dvt.AfPanelFormLayout);dvt.AfPanelFormLayout.prototype.GetDefaultStyles=function(){return dvt.AfPanelFormLayout._afStyles};dvt.AfPanelFormLayout.prototype.SetDefaultStyles=function(a){dvt.AfPanelFormLayout._afStyles=a};
dvt.AfPanelFormLayout.prototype._getContentCellStyle=function(){return 1<dvt.AfPanelFormLayout._afStyles.length?dvt.AfPanelFormLayout._afStyles[1]:dvt.AfPanelFormLayout._afStyles[0]};dvt.AfPanelFormLayout.prototype._getLabelCellStyle=function(){return 2<dvt.AfPanelFormLayout._afStyles.length?dvt.AfPanelFormLayout._afStyles[2]:dvt.AfPanelFormLayout._afStyles[0]};
dvt.AfPanelFormLayout.prototype.createDisplayObj=function(a){var b=dvt.AfPanelFormLayout.superclass.createDisplayObj.call(this,a);this.addChildDisplayObjs(a,this._contentPane);return b};dvt.AfPanelFormLayout.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};dvt.AfPanelFormLayout.prototype.getContentShape=function(){return this._contentPane};
dvt.AfPanelFormLayout.prototype.renderSelfBeforeChildren=function(){dvt.AfPanelFormLayout.superclass.renderSelfBeforeChildren.call(this);this._acw=this._cw;this._ach=this._ch};
dvt.AfPanelFormLayout.prototype.renderChildren=function(){for(var a,b=0,c=this.getNumChildren(),d=0;d<c;d++)(a=this.getChildAt(d))&&a instanceof dvt.AfPanelLabelAndMessage&&(a.MergeUnderLabelStyle(this._getLabelCellStyle()),a.MergeUnderContentStyle(this._getContentCellStyle()),a=a.getLabelDimensions(),b=Math.max(a.w,b));this._maxLabelWidth=b;dvt.AfPanelFormLayout.superclass.renderChildren.call(this)};
dvt.AfPanelFormLayout.prototype.renderChild=function(a){var b=0,c=this._getContentCellStyle();a instanceof dvt.AfPanelLabelAndMessage&&(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 dvt.AfPanelLabelAndMessage||(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&&dvt.AfComponent._renderComp(this.getAfContext(),a,b,this._ach);b=dvt.AfComponent.getDimensions(a);this._ach-=b.h-d-c};
dvt.AfPanelFormLayout.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=dvt.AfComponent.getDimensions(d);b.push(h);d instanceof dvt.AfPanelLabelAndMessage&&(f=Math.max(f,d._getContentX()))}for(var k,l=0,m=0,n=0,p=0,q=this.getCX(),r=this.getCY(),t,u=!1,g=0;g<c;g++)d=this.getChildAt(g),k=this._getContentCellStyle(),h=b[g],d instanceof dvt.AfPanelLabelAndMessage?(d._getLabelStyle()&&
(k=d._getLabelStyle()),k&&(m=k.getPadding(dvt.CSSStyle.PADDING_TOP),n=k.getPadding(dvt.CSSStyle.PADDING_BOTTOM),u=k.isTextAlignEnd(a),p=dvt.Agent.isRightToLeft(a)?k.getPadding(dvt.CSSStyle.PADDING_RIGHT):k.getPadding(dvt.CSSStyle.PADDING_LEFT)),t=e+p,u&&(t+=f-d._getContentX()),k=r+m,r+=h.h+n,t+h.w>l&&(l=t+h.w),dvt.AfComponent._setTranslateGroup(d,t,k)):d instanceof dvt.AfComponent&&(t=q+p+(dvt.Agent.isRightToLeft(a)?this._maxLabelWidth:0),k=r+m,r+=h.h+n,t+h.w>l&&(l=t+h.w),dvt.AfComponent._setTranslateGroup(d,
t,k)),h.x=t;if(dvt.Agent.isRightToLeft(a))for(e=this._ew&&this._ew!==Number.MAX_VALUE||l>this.getCX()+this._cw?this.getCX()+this._cw:l,g=0;g<c;g++)if(d=this.getChildAt(g),!d.renderMe||d.renderMe())h=b[g],t=e-(h.x-this.getCX())-h.w,d.setTranslateX(t);h=this.getContentShape().getDimensions();this._cw=this.getCalcWidth(h.w);this._ch=this.getCalcHeight(h.h)};
dvt.AfPanelFormLayout.prototype.ResolveEm=function(a){dvt.AfPanelFormLayout.superclass.ResolveEm.call(this,a);this._cssStyle=a;this._contentCellStyle||(this._contentCellStyle=dvt.AfPanelFormLayout._afStyles[1].clone());this.resolveEmUnit(this._contentCellStyle,this);this._labelCellStyle||(this._labelCellStyle=dvt.AfPanelFormLayout._afStyles[2].clone());this.resolveEmUnit(this._labelCellStyle,this)};dvt.AfPanelFormLayout.prototype.getTagName=function(){return dvt.AfPanelFormLayout.TAG_NAME};
dvt.AfPanelLabelAndMessage=function(){this.Init()};dvt.Obj.createSubclass(dvt.AfPanelLabelAndMessage,dvt.AfComponent,"dvt.AfPanelLabelAndMessage");dvt.AfPanelLabelAndMessage.TAG_NAME="plm";dvt.AfComponentFactory.registerComponent(dvt.AfPanelLabelAndMessage.TAG_NAME,dvt.AfPanelLabelAndMessage);dvt.AfPanelLabelAndMessage.ATTR_LABEL="label";dvt.AfPanelLabelAndMessage.ATTR_LABEL_STYLE="labelStyle";dvt.AfPanelLabelAndMessage._HPADDING=5;dvt.AfPanelLabelAndMessage.prototype.getLabel=function(){return this.getStringProp(dvt.AfPanelLabelAndMessage.ATTR_LABEL)};
dvt.AfPanelLabelAndMessage.prototype.setLabel=function(a){this.setProperty(dvt.AfPanelLabelAndMessage.ATTR_LABEL,a)};dvt.AfPanelLabelAndMessage.prototype.getLabelStyle=function(){return this.getStringProp(dvt.AfPanelLabelAndMessage.ATTR_LABEL_STYLE)};dvt.AfPanelLabelAndMessage.prototype.setLabelStyle=function(a){var b=this._getDefaultLabelCSSStyle().clone();b.parseInlineStyle(a);this._setLabelStyle(b);this.setProperty(dvt.AfPanelLabelAndMessage.ATTR_LABEL_STYLE,b.toString())};
dvt.AfPanelLabelAndMessage.prototype.GetDefaultStyles=function(){return dvt.AfPanelLabelAndMessage._afStyles};dvt.AfPanelLabelAndMessage.prototype.SetDefaultStyles=function(a){dvt.AfPanelLabelAndMessage._afStyles=a};dvt.AfPanelLabelAndMessage.prototype.createDisplayObj=function(a){var b=dvt.AfPanelLabelAndMessage.superclass.createDisplayObj.call(this,a);this.addChildDisplayObjs(a,this._contentPane);return b};
dvt.AfPanelLabelAndMessage.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};
dvt.AfPanelLabelAndMessage.prototype.getContentShape=function(){return this._contentPane};dvt.AfPanelLabelAndMessage.prototype._getLabelField=function(){return this._labelField};dvt.AfPanelLabelAndMessage.prototype._getDefaultLabelCSSStyle=function(){return 1<dvt.AfPanelLabelAndMessage._afStyles.length?dvt.AfPanelLabelAndMessage._afStyles[1]:null};
dvt.AfPanelLabelAndMessage.prototype._getLabelStyle=function(){if(!this._labelStyle){var a=this._getDefaultLabelCSSStyle().clone(),b=dvt.AfStyleUtils.getPLAMLabelStyle(this.getStyleClass());b&&a.merge(b);(b=this.getLabelStyle())&&a.parseInlineStyle(b);this._labelStyle=a}return this._labelStyle};dvt.AfPanelLabelAndMessage.prototype._setLabelStyle=function(a){this._labelStyle=a};dvt.AfPanelLabelAndMessage.prototype._getContentCellStyle=function(){return this._contentCellStyle};
dvt.AfPanelLabelAndMessage.prototype._getContentStyle=function(){this._contentStyle||(this._contentStyle=this._getContentCellStyle().clone(),this._contentStyle.merge(this.getCSSStyle()));return this._contentStyle};dvt.AfPanelLabelAndMessage.prototype.MergeUnderContentStyle=function(a){this._getContentStyle().mergeUnder(a)};dvt.AfPanelLabelAndMessage.prototype.MergeUnderLabelStyle=function(a){this._getLabelStyle().mergeUnder(a)};
dvt.AfPanelLabelAndMessage.prototype.ResolveEm=function(a){dvt.AfPanelLabelAndMessage.superclass.ResolveEm.call(this,a);this._cssStyle=a;this._contentCellStyle||(this._contentCellStyle=dvt.AfPanelLabelAndMessage._afStyles[2].clone());this.resolveEmUnit(this._contentCellStyle,this);null!=this._labelStyle&&this.resolveEmUnit(this._labelStyle,this)};dvt.AfPanelLabelAndMessage.prototype._getContentX=function(){return this._contentX};
dvt.AfPanelLabelAndMessage.prototype._setMaxLabelWidth=function(a){this._maxLabelWidth=a};dvt.AfPanelLabelAndMessage.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};
dvt.AfPanelLabelAndMessage.prototype.renderSelfBeforeChildren=function(){dvt.AfPanelLabelAndMessage.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()}};
dvt.AfPanelLabelAndMessage.prototype.renderChild=function(a){a._render?a._render(this._acw,this._ach):a.render&&dvt.AfComponent._renderComp(this.getAfContext(),a,this._acw,this._ach);a=dvt.AfComponent.getDimensions(a);this._acw-=a.w};
dvt.AfPanelLabelAndMessage.prototype.doLayout=function(){var a=this.getNumChildren(),b=this._cw,c=this._ch,d=this.getParent();d instanceof dvt.AfPanelFormLayout&&(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=dvt.AfComponent.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=dvt.AfComponent.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._getLabelField();this._contentX=c;p&&(this._contentX+=e+this._getLabelPadding());var q=this._contentX;this.setCX(q);for(k=0;k<a;k++)if(d[k]&&(e=this.getChildAt(k),!e.renderMe||e.renderMe())){var r=d[k].w;m=d[k].h;b==
dvt.AfComponent.VALIGN_TOP?n=h:b==dvt.AfComponent.VALIGN_MIDDLE?n=h+(this._ch-m)/2:b==dvt.AfComponent.VALIGN_BOTTOM&&(n=h+this._ch-m);m=q;q+=r;dvt.AfComponent._setTranslateGroup(e,m,n)}if(dvt.Agent.isRightToLeft(this.getDvtContext()))for(p&&p.setX(q-f.w),q=q+c-this._getContentX(),k=0;k<a;k++){e=this.getChildAt(k);if(!e.renderMe||e.renderMe())m=q-=d[k].w;e.setTranslateX(m)}p&&(b=l.getStyle(dvt.CSSStyle.VERTICAL_ALIGN),null==b&&(b=dvt.AfComponent.VALIGN_MIDDLE),b==dvt.AfComponent.VALIGN_MIDDLE?p.setY(h+
(g-f.h)/2):b==dvt.AfComponent.VALIGN_BOTTOM&&p.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)};dvt.AfPanelLabelAndMessage.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):dvt.AfPanelLabelAndMessage._HPADDING};
dvt.AfPanelLabelAndMessage.prototype.getTagName=function(){return dvt.AfPanelLabelAndMessage.TAG_NAME};
dvt.AfPanelLabelAndMessage.prototype.addClipPath=function(){if(this.noClipPath()){var a=this._cw;dvt.Agent.isRightToLeft(this.getDvtContext())&&this._getLabelField()&&(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=dvt.AfComponent._CLIP_PATH;return!0}return!1};dvt.AfPanelLabelAndMessage.prototype.registerAsTabStop=function(){this.getAfContext().registerTabStop(this)};dvt.AfPanelLabelAndMessage.prototype.getAriaLabel=function(){var a=this.getShortDesc();a||(a=this.getLabel());return a};dvt.AfPanelLabelAndMessage.prototype.getAriaRole=function(){return"group"};
dvt.AfSpacer=function(){this.Init()};dvt.Obj.createSubclass(dvt.AfSpacer,dvt.AfComponent,"dvt.AfSpacer");dvt.AfSpacer.TAG_NAME="sp";dvt.AfComponentFactory.registerComponent(dvt.AfSpacer.TAG_NAME,dvt.AfSpacer);dvt.AfSpacer.ATTR_WIDTH="width";dvt.AfSpacer.ATTR_HEIGHT="height";dvt.AfSpacer.prototype.setWidth=function(a){this.setProperty(dvt.AfSpacer.ATTR_WIDTH,a)};dvt.AfSpacer.prototype.getWidth=function(){return this.getProperty(dvt.AfSpacer.ATTR_WIDTH)};
dvt.AfSpacer.prototype.setHeight=function(a){this.setProperty(dvt.AfSpacer.ATTR_HEIGHT,a)};dvt.AfSpacer.prototype.getHeight=function(){return this.getProperty(dvt.AfSpacer.ATTR_HEIGHT)};dvt.AfSpacer.prototype.GetDefaultStyles=function(){return dvt.AfSpacer._afStyles};dvt.AfSpacer.prototype.SetDefaultStyles=function(a){dvt.AfSpacer._afStyles=a};dvt.AfSpacer.prototype.createContentShape=function(a){this._contentPane=new dvt.Rect(a,0,0,1,1);this._contentPane.setFill(null);return this._contentPane};
dvt.AfSpacer.prototype.renderSelfBeforeChildren=function(){dvt.AfSpacer.superclass.renderSelfBeforeChildren.call(this)};dvt.AfSpacer.prototype.getTagName=function(){return dvt.AfSpacer.TAG_NAME};dvt.AfSpacer.prototype._hasBgShape=function(){return!1};
dvt.AfSeparator=function(){this.Init()};dvt.Obj.createSubclass(dvt.AfSeparator,dvt.AfComponent,"dvt.AfSeparator");dvt.AfSeparator.TAG_NAME="se";dvt.AfComponentFactory.registerComponent(dvt.AfSeparator.TAG_NAME,dvt.AfSeparator);dvt.AfSeparator.prototype.GetDefaultStyles=function(){return dvt.AfSeparator._afStyles};dvt.AfSeparator.prototype.SetDefaultStyles=function(a){dvt.AfSeparator._afStyles=a};
dvt.AfSeparator.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};dvt.AfSeparator.prototype.renderSelfBeforeChildren=function(){dvt.AfSeparator.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)};dvt.AfSeparator.prototype.getBounds=function(){this._ch=0;return dvt.AfSeparator.superclass.getBounds.call(this)};
dvt.AfSeparator.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)};dvt.AfSeparator.prototype.getTagName=function(){return dvt.AfSeparator.TAG_NAME};dvt.AfSeparator.prototype._hasBgShape=function(){return!1};
dvt.AfShowDetailItem=function(){this.Init()};dvt.Obj.createSubclass(dvt.AfShowDetailItem,dvt.AfPanelGroupLayout,"dvt.AfShowDetailItem");dvt.AfShowDetailItem.TAG_NAME="sdi";dvt.AfComponentFactory.registerComponent(dvt.AfShowDetailItem.TAG_NAME,dvt.AfShowDetailItem);dvt.AfShowDetailItem.ATTR_TEXT="text";dvt.AfShowDetailItem.ATTR_ICON="icon";dvt.AfShowDetailItem.ATTR_DISABLED="disabled";
dvt.AfShowDetailItem.prototype.setText=function(a){this.setProperty(dvt.AfShowDetailItem.ATTR_TEXT,a);this.getContentShape()&&this.getContentShape().setTextString(a)};dvt.AfShowDetailItem.prototype.getText=function(){return this.getStringProp(dvt.AfShowDetailItem.ATTR_TEXT,"")};dvt.AfShowDetailItem.prototype.setIcon=function(a){this.setProperty(dvt.AfShowDetailItem.ATTR_ICON,a)};dvt.AfShowDetailItem.prototype.getIcon=function(){return this.getProperty(dvt.AfShowDetailItem.ATTR_ICON)};
dvt.AfShowDetailItem.prototype.isDisabled=function(){return this.getProperty(dvt.AfShowDetailItem.ATTR_DISABLED)};dvt.AfShowDetailItem.prototype.setDisabled=function(a){this.setProperty(dvt.AfShowDetailItem.ATTR_DISABLED,a)};dvt.AfShowDetailItem.prototype.GetDefaultStyles=function(){return dvt.AfShowDetailItem._afStyles};dvt.AfShowDetailItem.prototype.SetDefaultStyles=function(a){dvt.AfShowDetailItem._afStyles=a};
dvt.AfShowDetailItem.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};dvt.AfShowDetailItem.prototype.getTagName=function(){return dvt.AfShowDetailItem.TAG_NAME};dvt.AfShowDetailItem.prototype.SetLoaded=function(a){this._loaded=a};dvt.AfShowDetailItem.prototype.IsLoaded=function(){return this._loaded};
dvt.AfShowDetailItem.prototype.SetDOVisible=function(a){this.getDisplayObj()&&this.getDisplayObj().setVisible(a)};dvt.AfShowDetailItem.prototype.IsDOVisible=function(){return this.getDisplayObj()?this.getDisplayObj().getVisible():!1};dvt.AfShowDetailItem.prototype.getLayout=function(){return dvt.AfPanelGroupLayout.LAYOUT_VERTICAL};dvt.AfShowDetailItem.prototype.registerAsTabStop=function(){this.getAfContext().registerTabStop(this)};
dvt.AfShowDetailItem.prototype.getAriaLabel=function(){var a=this.getParent(),b=this.getShortDesc();a instanceof dvt.AfPanelCard&&(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};dvt.AfShowDetailItem.prototype.getAriaRole=function(){return"group"};
dvt.AfShowDetailItem.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()))};
dvt.PanelCardEvent=function(a,b){this.Init(dvt.PanelCardEvent.TYPE);this._subType=a;this._params=b};dvt.Obj.createSubclass(dvt.PanelCardEvent,dvt.BaseComponentEvent,"dvt.PanelCardEvent");dvt.PanelCardEvent.TYPE="dvtPanelCard";dvt.PanelCardEvent.PANELCARD_INDEX_EVENT="indexEvent";dvt.PanelCardEvent.PANELCARD_FETCH_EVENT="fetchEvent";dvt.PanelCardEvent.prototype.getSubType=function(){return this._subType};dvt.PanelCardEvent.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};
dvt.AfPanelCard=function(){this.Init()};dvt.Obj.createSubclass(dvt.AfPanelCard,dvt.AfComponent,"dvt.AfPanelCard");dvt.AfPanelCard.TAG_NAME="pc";dvt.AfComponentFactory.registerComponent(dvt.AfPanelCard.TAG_NAME,dvt.AfPanelCard);dvt.AfPanelCard.ATTR_EFFECT="effect";dvt.AfPanelCard.ATTR_CONTENT_DELIVERY="contentDelivery";dvt.AfPanelCard.EFFECT_IMMEDIATE="immediate";dvt.AfPanelCard.EFFECT_SLIDE_HORZ="slideHorz";dvt.AfPanelCard.EFFECT_FLIP_HORZ="flipHorz";dvt.AfPanelCard.EFFECT_NODE_FLIP_HORZ="nodeFlipHorz";
dvt.AfPanelCard.EFFECT_CUBE_ROTATE_HORZ="cubeRotateHorz";dvt.AfPanelCard.EFFECT_NODE_CUBE_ROTATE_HORZ="nodeCubeRotateHorz";dvt.AfPanelCard.DEFAULT_EFFECT=dvt.AfPanelCard.EFFECT_SLIDE_HORZ;dvt.AfPanelCard.OLD_EFFECT_SLIDE_HORZ="slide_horz";dvt.AfPanelCard.OLD_EFFECT_FLIP_HORZ="flip_horz";dvt.AfPanelCard.OLD_EFFECT_NODE_FLIP_HORZ="node_flip_horz";dvt.AfPanelCard.OLD_EFFECT_CUBE_ROTATE_HORZ="cube_rotate_horz";dvt.AfPanelCard.OLD_EFFECT_NODE_CUBE_ROTATE_HORZ="node_cube_rotate_horz";
dvt.AfPanelCard.DISPLAYED_DETAIL_ITEM_INDEX_KEY="dispSdiIdx";dvt.AfPanelCard.POPUP_TIMER_INTERVAL=2E3;dvt.AfPanelCard.SET_PROP_EVENT="setProp";dvt.AfPanelCard.FETCH_DATA_EVENT="fetchData";dvt.AfPanelCard.BUTTON_COLOR="#CCCCCC";dvt.AfPanelCard.BUTTON_PADDING=0;dvt.AfPanelCard.ALTA_BUTTON_HPADDING=5;dvt.AfPanelCard.ALTA_BUTTON_VPADDING=0;dvt.AfPanelCard.EFFECT_DURATION=.5;dvt.AfPanelCard.DISABLED_BACKGROUND_COLOR="#E5E5E0";dvt.AfPanelCard.DISABLED_BORDER_COLOR="#B9B9B4";
dvt.AfPanelCard.DISABLED_COLOR="#737373";dvt.AfPanelCard.DISABLED_ALPHA=.5;dvt.AfPanelCard.MAX_TRAIN_ITEM_COUNT=8;dvt.AfPanelCard.POPUP_NAME="panelCardNavPopup";dvt.AfPanelCard.SHAPE_RECT="rect";dvt.AfPanelCard.SHAPE_ROUNDED_RECT="roundedRect";dvt.AfPanelCard.SHAPE_ELLIPSE="ellipse";dvt.AfPanelCard.DFLT_STYLE_INDX=0;dvt.AfPanelCard.DFLT_NAV_STYLE_INDX=1;dvt.AfPanelCard.DFLT_NAV_HOVER_STYLE_INDX=2;dvt.AfPanelCard.DFLT_NAV_ACTIVE_STYLE_INDX=3;dvt.AfPanelCard.DFLT_HEADER_ZOOM_100_STYLE_INDX=4;
dvt.AfPanelCard.DFLT_HEADER_ZOOM_75_STYLE_INDX=5;dvt.AfPanelCard.DFLT_PREV_IMAGES_INDX=6;dvt.AfPanelCard.DFLT_PREV_HOVER_IMAGES_INDX=7;dvt.AfPanelCard.DFLT_PREV_ACTIVE_IMAGES_INDX=8;dvt.AfPanelCard.DFLT_NEXT_IMAGES_INDX=9;dvt.AfPanelCard.DFLT_NEXT_HOVER_IMAGES_INDX=10;dvt.AfPanelCard.DFLT_NEXT_ACTIVE_IMAGES_INDX=11;dvt.AfPanelCard.DFLT_TRAIN_STYLE_INDX=12;dvt.AfPanelCard.DFLT_TRAIN_HOVER_STYLE_INDX=13;dvt.AfPanelCard.DFLT_TRAIN_ACTIVE_STYLE_INDX=14;dvt.AfPanelCard.ROUND_CORNER_SIZE=6;
dvt.AfPanelCard.convertOldEffectToNew=function(a){return a==dvt.AfPanelCard.OLD_EFFECT_SLIDE_HORZ?dvt.AfPanelCard.EFFECT_SLIDE_HORZ:a==dvt.AfPanelCard.OLD_EFFECT_FLIP_HORZ?dvt.AfPanelCard.EFFECT_FLIP_HORZ:a==dvt.AfPanelCard.OLD_EFFECT_NODE_FLIP_HORZ?dvt.AfPanelCard.EFFECT_NODE_FLIP_HORZ:a==dvt.AfPanelCard.OLD_EFFECT_CUBE_ROTATE_HORZ?dvt.AfPanelCard.EFFECT_CUBE_ROTATE_HORZ:a==dvt.AfPanelCard.OLD_EFFECT_NODE_CUBE_ROTATE_HORZ?dvt.AfPanelCard.EFFECT_NODE_CUBE_ROTATE_HORZ:a};
dvt.AfPanelCard.prototype.getEffect=function(){var a=this.getStringProp(dvt.AfPanelCard.ATTR_EFFECT);return a?dvt.AfPanelCard.convertOldEffectToNew(a):dvt.AfPanelCard.DEFAULT_EFFECT};dvt.AfPanelCard.prototype.setEffect=function(a){this.setProperty(dvt.AfPanelCard.ATTR_EFFECT,a)};dvt.AfPanelCard.prototype.getContentDelivery=function(){return this.getStringProp(dvt.AfPanelCard.ATTR_CONTENT_DELIVERY)};
dvt.AfPanelCard.prototype.setContentDelivery=function(a){this.setProperty(dvt.AfPanelCard.ATTR_CONTENT_DELIVERY,a)};dvt.AfPanelCard.prototype.getNextButtonIcon=function(){this._nextButtonIcon||(this._nextButtonIcon=this.getDefaultStyleAt(dvt.AfPanelCard.DFLT_NEXT_IMAGES_INDX));return this._nextButtonIcon};dvt.AfPanelCard.prototype.setNextButtonIcon=function(a){this._nextButtonIcon=a};
dvt.AfPanelCard.prototype.getNextButtonHoverIcon=function(){this._nextButtonHoverIcon||(this._nextButtonHoverIcon=this.getDefaultStyleAt(dvt.AfPanelCard.DFLT_NEXT_HOVER_IMAGES_INDX));return this._nextButtonHoverIcon};dvt.AfPanelCard.prototype.setNextButtonHoverIcon=function(a){this._nextButtonHoverIcon=a};dvt.AfPanelCard.prototype.getNextButtonActiveIcon=function(){this._nextButtonActiveIcon||(this._nextButtonActiveIcon=this.getDefaultStyleAt(dvt.AfPanelCard.DFLT_NEXT_ACTIVE_IMAGES_INDX));return this._nextButtonActiveIcon};
dvt.AfPanelCard.prototype.setNextButtonActiveIcon=function(a){this._nextButtonActiveIcon=a};dvt.AfPanelCard.prototype.getNextButtonDisabledIcon=function(){return this._nextButtonDisabledIcon};dvt.AfPanelCard.prototype.setNextButtonDisabledIcon=function(a){this._nextButtonDisabledIcon=a};dvt.AfPanelCard.prototype.getPrevButtonIcon=function(){this._prevButtonIcon||(this._prevButtonIcon=this.getDefaultStyleAt(dvt.AfPanelCard.DFLT_PREV_IMAGES_INDX));return this._prevButtonIcon};
dvt.AfPanelCard.prototype.setPrevButtonIcon=function(a){this._prevButtonIcon=a};dvt.AfPanelCard.prototype.getPrevButtonHoverIcon=function(){this._prevButtonHoverIcon||(this._prevButtonHoverIcon=this.getDefaultStyleAt(dvt.AfPanelCard.DFLT_PREV_HOVER_IMAGES_INDX));return this._prevButtonHoverIcon};dvt.AfPanelCard.prototype.setPrevButtonHoverIcon=function(a){this._prevButtonHoverIcon=a};
dvt.AfPanelCard.prototype.getPrevButtonActiveIcon=function(){this._prevButtonActiveIcon||(this._prevButtonActiveIcon=this.getDefaultStyleAt(dvt.AfPanelCard.DFLT_PREV_ACTIVE_IMAGES_INDX));return this._prevButtonActiveIcon};dvt.AfPanelCard.prototype.setPrevButtonActiveIcon=function(a){this._prevButtonActiveIcon=a};dvt.AfPanelCard.prototype.getPrevButtonDisabledIcon=function(){return this._prevButtonDisabledIcon};
dvt.AfPanelCard.prototype.setPrevButtonDisabledIcon=function(a){this._prevButtonDisabledIcon=a};dvt.AfPanelCard.prototype.GetDefaultStyles=function(){return dvt.AfPanelCard._afStyles};dvt.AfPanelCard.prototype.SetDefaultStyles=function(a){dvt.AfPanelCard._afStyles=a};dvt.AfPanelCard.prototype.getDefaultStyleAt=function(a){return this._getAfStyleAt(a)};dvt.AfPanelCard.prototype.setHeaderStyle=function(a){this._headerStyle=a};
dvt.AfPanelCard.prototype.getHeaderStyle=function(){this._headerStyle||(.75<this.getZoomPct()?this._headerStyle=this.getDefaultStyleAt(dvt.AfPanelCard.DFLT_HEADER_ZOOM_100_STYLE_INDX):this._headerStyle=this.getDefaultStyleAt(dvt.AfPanelCard.DFLT_HEADER_ZOOM_75_STYLE_INDX));return this._headerStyle};
dvt.AfPanelCard.prototype.createDisplayObj=function(a){this._setNode(a.getParentNode());var b=dvt.AfPanelCard.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};
dvt.AfPanelCard.prototype.addChildDisplayObjs=function(a,b){var c=this.getDisplayedDetailItemIndex();c||(c=0);!(c=this.getChildAt(c))||c.renderMe&&!c.renderMe()||(c=c.createDisplayObj(a))&&b.addChild(c)};
dvt.AfPanelCard.prototype.createContentShape=function(a){var b=this.getCSSStyle();switch(this.getNodeShape()){case dvt.AfPanelCard.SHAPE_RECT:this._contentPane=new dvt.Rect(a,0,0,0,0,this._getUniqueId());b.setStyle("border-radius",null);break;case dvt.AfPanelCard.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=dvt.AfPanelCard.ROUND_CORNER_SIZE),this._contentPane.setRx(a),
this._contentPane.setRy(a)}this._contentPane.setCSSStyle(b);this.associate(this._contentPane,this);return this._contentPane};dvt.AfPanelCard.prototype.getContentShape=function(){return this._contentPane};dvt.AfPanelCard.prototype.createBackgroundShape=function(a,b){return b};dvt.AfPanelCard.prototype.addChild=function(a){a instanceof dvt.AfShowDetailItem&&dvt.AfPanelCard.superclass.addChild.call(this,a)};
dvt.AfPanelCard.prototype.renderChild=function(a){a._render(this._acw,this._ach);this._child=a};dvt.AfPanelCard.prototype.renderChildren=function(){var a=this.getDisplayedDetailItemIndex();(a=this.getVisibleChild(a))&&a.getDisplayObj()&&this.renderChild(a)};dvt.AfPanelCard.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};
dvt.AfPanelCard.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};dvt.AfPanelCard.prototype.getCurrentVisibleChild=function(){return this.getVisibleChild(this.getDisplayedDetailItemIndex())};
dvt.AfPanelCard.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};dvt.AfPanelCard.prototype.addEvtListener=function(a,b){var c=this._getListeners(!0);c.push(a);c.push(b)};dvt.AfPanelCard.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}};
dvt.AfPanelCard.prototype._getListeners=function(a){if(!this._listenerObj)if(a)this._listenerObj=[];else return null;return this._listenerObj};dvt.AfPanelCard.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)}};dvt.AfPanelCard.prototype.getTagName=function(){return dvt.AfPanelCard.TAG_NAME};
dvt.AfPanelCard.prototype.isPanelCardDeliveryLazy=function(){var a=this.getContentDelivery();return a&&"lazy"==a};dvt.AfPanelCard.prototype.setDisplayedDetailItemIndex=function(a){var b=this._getNode();b&&b.setStateProp&&b.setStateProp(dvt.AfPanelCard.DISPLAYED_DETAIL_ITEM_INDEX_KEY,a)};
dvt.AfPanelCard.prototype.getDisplayedDetailItemIndex=function(){var a;return(a=this._getNode())&&a.getStateProp&&(a=a.getStateProp(dvt.AfPanelCard.DISPLAYED_DETAIL_ITEM_INDEX_KEY),null!=a&&0<=a&&a<this.getDetailItemCount())?a:0};dvt.AfPanelCard.prototype.hasNextDetailItem=function(){return this._bNavLoop?1<this.getDetailItemCount():this.getDisplayedDetailItemIndex()<this.getDetailItemCount()-1};
dvt.AfPanelCard.prototype.hasPrevDetailItem=function(){return this._bNavLoop?1<this.getDetailItemCount():0<this.getDisplayedDetailItemIndex()};dvt.AfPanelCard.prototype.displayNextDetailItem=function(){this.hasNextDetailItem()&&this.displayDetailItem(this.getDisplayedDetailItemIndex()+1)};dvt.AfPanelCard.prototype.displayPrevDetailItem=function(){this.hasPrevDetailItem()&&this.displayDetailItem(this.getDisplayedDetailItemIndex()-1)};
dvt.AfPanelCard.prototype.isShowDetailItemLoaded=function(a){if(this.getVisibleChild(a)){var b=this._getDiagram();if(b)return b.isShowDetailItemLoaded(this._getNodeId(),a)}return!1};
dvt.AfPanelCard.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(dvt.AfPanelCard.SET_PROP_EVENT,a),this.renderDetailItem(b)):this.FireListener(dvt.AfPanelCard.FETCH_DATA_EVENT,a))};
dvt.AfPanelCard.prototype.renderSelfBeforeChildren=function(){dvt.AfPanelCard.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}};
dvt.AfPanelCard.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<=dvt.AfPanelCard.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=dvt.AfPanelCard.ALTA_BUTTON_HPADDING,k=dvt.AfPanelCard.ALTA_BUTTON_VPADDING,.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=dvt.AfPanelCard.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()&&.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))}};
dvt.AfPanelCard.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)))};dvt.AfPanelCard.prototype.renderSelfAfterLayout=function(){var a=this.getBounds(),b=this.getDisplayObj();this.SetDisplayObjBounds(b,0,0,a.w,a.h);this._shape!==dvt.AfPanelCard.SHAPE_ELLIPSE&&dvt.AfPanelCard.superclass.renderSelfAfterLayout.call(this)};dvt.AfPanelCard.prototype.needsNavUi=function(){return 1>=this.getDetailItemCount()?!1:!0};
dvt.AfPanelCard.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==dvt.AfPanelCard.EFFECT_NODE_FLIP_HORZ||f==dvt.AfPanelCard.EFFECT_NODE_CUBE_ROTATE_HORZ)&&(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 dvt.AfShowDetailItem?b.getDisplayObj():e;e=e instanceof dvt.AfShowDetailItem?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)};dvt.AfPanelCard.prototype.CreatePrevButton=function(){this._prevButton=new dvt.NavButton(this,this.getDvtContext(),this.CreateUpState(!1),this.CreateOverState(!1),this.CreateDownState(!1));this.associate(this._prevButton,this._prevButton);this._prevButton.setCallback(this.HandlePrevButtonClick,this)};
dvt.AfPanelCard.prototype.CreateNextButton=function(){this._nextButton=new dvt.NavButton(this,this.getDvtContext(),this.CreateUpState(!0),this.CreateOverState(!0),this.CreateDownState(!0));this.associate(this._nextButton,this._nextButton);this._nextButton.setCallback(this.HandleNextButtonClick,this)};dvt.AfPanelCard.prototype.GetPrevButtonObj=function(){return this._prevButton};dvt.AfPanelCard.prototype.GetNextButtonObj=function(){return this._nextButton};
dvt.AfPanelCard.prototype.destroy=function(){this._popupMenu&&this.destroyPopup();this._train&&this._train.destroy(this.HandleTrainEvent);dvt.AfPanelCard.superclass.destroy.call(this)};dvt.AfPanelCard.prototype.ConsumeEvent=function(a){dvt.EventManager.consumeEvent(a)};
dvt.AfPanelCard.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(dvt.AfPanelCard.DISABLED_ALPHA));b.setCursor("default");return b};
dvt.AfPanelCard.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};
dvt.AfPanelCard.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};dvt.AfPanelCard.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};
dvt.AfPanelCard.prototype.CreateButtonState=function(a,b){var c=this.getDvtContext();return a?DvtPanelCardButtonLAFUtils.createRightArrowState(c,b,this.getCardNavButtonStyles()):DvtPanelCardButtonLAFUtils.createLeftArrowState(c,b,this.getCardNavButtonStyles())};dvt.AfPanelCard.prototype._renderIcon=function(a){dvt.ImageLoader.loadImage(this.getDvtContext(),a,this.createCallback(this.onIconLoaded))};
dvt.AfPanelCard.prototype.onIconLoaded=function(a){a&&a.width&&a.height&&(this._icon.setWidth(a.width),this._icon.setHeight(a.height))};
dvt.AfPanelCard.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));(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};
dvt.AfPanelCard.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)};dvt.AfPanelCard.prototype.isSkinAlta=function(){return this._getDiagram().getCardNavButtonSkin()==dvt.CSSStyle.SKIN_ALTA};
dvt.AfPanelCard.prototype.removeOldDisplayItem=function(a){var b;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)){dvt.AfPanelCard._setItemDisplayableVisible(c,!1);a=c.getDisplayObj();var d=c.getContentShape();d&&d!==a&&(b=d.getParent())&&(b.removeChild(d),c.setContentShape(a,null));a&&(b=a.getParent())&&(b.removeChild(a),
c._bgShape=null);this._oldChild=null}};dvt.AfPanelCard.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(.5)),this.hasNextDetailItem()?(this._nextButton&&this._nextButton.setEnabled(!0),this.GetNextButtonObj().setAlpha(1)):(this._nextButton&&this._nextButton.setEnabled(!1),this.GetNextButtonObj().setAlpha(.5)))};
dvt.AfPanelCard.prototype.HandlePrevButtonClick=function(a){dvt.EventManager.consumeEvent(a);dvt.Agent.isRightToLeft(this.getDvtContext())?this.hasNextDetailItem()&&this.displayNextDetailItem():this.hasPrevDetailItem()&&this.displayPrevDetailItem()};dvt.AfPanelCard.prototype.HandleNextButtonClick=function(a){dvt.EventManager.consumeEvent(a);dvt.Agent.isRightToLeft(this.getDvtContext())?this.hasPrevDetailItem()&&this.displayPrevDetailItem():this.hasNextDetailItem()&&this.displayNextDetailItem()};
dvt.AfPanelCard.prototype.HandleTrainEvent=function(a){a=a.getIndex();this.displayDetailItem(a)};dvt.AfPanelCard.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};
dvt.AfPanelCard.prototype._getGroupDO=function(){return this.getDisplayObj()};dvt.AfPanelCard.prototype.isDisabled=function(){return!1};dvt.AfPanelCard.prototype._setNode=function(a){this._parentNode=a};dvt.AfPanelCard.prototype._getNode=function(){return this._parentNode};dvt.AfPanelCard.prototype._getNodeDef=function(){var a=this._getNode();return a&&a.getNodeDef?a.getNodeDef():null};dvt.AfPanelCard.prototype.getNodeShape=function(){var a=this._getNodeDef();return a&&a.getShape?a.getShape():dvt.AfPanelCard.SHAPE_ROUNDED_RECT};
dvt.AfPanelCard.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};dvt.AfPanelCard.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};dvt.AfPanelCard.prototype.getZoomPct=function(){var a=this._getNode(),b=1;a&&a._zoom&&(b=a._zoom);return b};
dvt.AfPanelCard.prototype.getTrain=function(){return this._train};dvt.AfPanelCard.prototype._getNodeId=function(){var a=this._getNode();return a&&a.getId?a.getId():null};dvt.AfPanelCard.prototype._getDiagram=function(){var a=this._getNode();return a&&a.GetDiagram?a.GetDiagram():null};
dvt.AfPanelCard.prototype.getTrainButtonStyles=function(){if(!this._trainButtonStyles){this._trainButtonStyles=[];var a=this.getDefaultStyleAt(dvt.AfPanelCard.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(dvt.AfPanelCard.DFLT_TRAIN_HOVER_STYLE_INDX))||(b=a);this._trainButtonStyles.push(b);(b=this.getDefaultStyleAt(dvt.AfPanelCard.DFLT_TRAIN_ACTIVE_STYLE_INDX))||
(b=a);this._trainButtonStyles.push(b)}return this._trainButtonStyles};dvt.AfPanelCard.prototype.getCardNavButtonStyles=function(){this._cardNavButtonStyles||(this._cardNavButtonStyles=[],this._cardNavButtonStyles.push(this.getDefaultStyleAt(dvt.AfPanelCard.DFLT_NAV_STYLE_INDX)),this._cardNavButtonStyles.push(this.getDefaultStyleAt(dvt.AfPanelCard.DFLT_NAV_HOVER_STYLE_INDX)),this._cardNavButtonStyles.push(this.getDefaultStyleAt(dvt.AfPanelCard.DFLT_NAV_ACTIVE_STYLE_INDX)));return this._cardNavButtonStyles};
dvt.AfPanelCard.prototype.RenderBackgroundFill=function(a,b,c){b&&"gradient"==b.getStyle(dvt.CSSStyle.FILL_TYPE)?(b=this.CreateGradientFill(c),a.setFill(b)):dvt.AfPanelCard.superclass.RenderBackgroundFill.call(this,a,b,c)};
dvt.AfPanelCard.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 dvt.AfPanelCard.superclass.RenderBackgroundStroke.call(this,a,b)};dvt.AfPanelCard.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])};
dvt.AfPanelCard.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)};dvt.AfPanelCard.prototype.GetFillGradientColors=function(a){return[a,"#FFFFFF","#FFFFFF"]};
dvt.AfPanelCard.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]};dvt.AfPanelCard.prototype._render=function(a,b){dvt.AfPanelCard.superclass._render.call(this,a,b);var c=this.getAfContext().getPanelCardCallbackObj(),d=this.getAfContext().getPanelCardCallback();c&&d&&this.addEvtListener(d,c)};
dvt.AfPanelCard.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);dvt.AfPanelCard._setItemDisplayableVisible(a,!0)}}return a};dvt.AfPanelCard.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};dvt.AfPanelCard.prototype.isSwipeTarget=function(){return 1<this.getDetailItemCount()};
dvt.AfPanelCard.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};
dvt.AfPanelCard.prototype.postRenderSelfBeforeChildren=function(){var a=this._getNode();if(this.getNodeShape()===dvt.AfPanelCard.SHAPE_ELLIPSE&&a&&a.stageToLocal){var a=dvt.AfPanelCard._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)}};
dvt.AfPanelCard.prototype._solveEllipseForX=function(a,b,c,d,e){return c+a*Math.sqrt(1-(e-d)*(e-d)/(b*b))};
dvt.AfPanelCard.prototype.drawFlattenedEllipse=function(a,b,c,d,e,f,g,h,k,l,m,n){n||(n=this.getCSSStyle());var p,q,r;n&&(p=n.getStyle(dvt.CSSStyle.BACKGROUND_COLOR),q=dvt.AfComponent.getBorderColor(n),n.getBorderWidth(),r=n.getBackgroundImage(),n.getStyle(dvt.CSSStyle.FILL_TYPE),n.getStyle(dvt.CSSStyle.BORDER_TYPE));if(p||q){var t=180/Math.PI*Math.acos((b-g)/k);q=180/Math.PI*Math.acos((e-g)/k);c<h&&(t=-t);f<h&&(q=-q);var u=q-t,t=this.getArcPoints(g,h,k,l,t/360,u/360,20),w,v,x,z,y;x=y=0;z=t.length-
1;for(var A=0;A<t.length-1;A++)if(w=t[A],v=t[A+1],y+=Math.sqrt((v.x-w.x)*(v.x-w.x)+(v.y-w.y)*(v.y-w.y)),8<y){x=A+1;x>t.length-1&&(x=t.length-1);break}y=0;for(A=t.length-2;0<A;A--)if(w=t[A],v=t[A+1],y+=Math.sqrt((v.x-w.x)*(v.x-w.x)+(v.y-w.y)*(v.y-w.y)),8<y){z=A;0>z&&(z=0);break}b=dvt.PathUtils.moveTo(a+8,c)+dvt.PathUtils.lineTo(b-8,c)+dvt.PathUtils.quadTo(b,c,t[x].x,t[x].y);for(A=x;A<=z;A++)w=t[A],b+=dvt.PathUtils.lineTo(w.x,w.y);b+=dvt.PathUtils.quadTo(e,f,e-8,f)+dvt.PathUtils.lineTo(d+8,f);t=this.getArcPoints(g,
h,k,l,(180-q)/360,u/360,20);A=x;x=t.length-1-z;z=t.length-1-A;b+=dvt.PathUtils.quadTo(d,f,t[x].x,t[x].y);for(A=x;A<=z;A++)w=t[A],b+=dvt.PathUtils.lineTo(w.x,w.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)};
dvt.AfPanelCard.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};
dvt.AfPanelCard.prototype.TransitionDisplayItems=function(a,b,c){var d;if(a==dvt.AfPanelCard.EFFECT_SLIDE_HORZ)this._addTransitionClipPath(),d=this.TransitionSlideHorizontal(b);else if(a==dvt.AfPanelCard.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==dvt.AfPanelCard.EFFECT_NODE_FLIP_HORZ?(a=this._getNode(),d=this.TransitionBitmaps(a,
a,a,b,this.createCallback(this.createCombinedFlip))):a==dvt.AfPanelCard.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==dvt.AfPanelCard.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()}};
dvt.AfPanelCard.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),dvt.AfPanelCard.EFFECT_DURATION),
h.setOnEnd(this.removeOldDisplayItem,this),h.play();return h};dvt.AfPanelCard.prototype.TransitionImmediate=function(){this.removeOldDisplayItem();this._setTrainSelectedIndex()};dvt.AfPanelCard.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,dvt.AfPanelCard.EFFECT_DURATION)};
dvt.AfPanelCard.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*dvt.AfPanelCard.EFFECT_DURATION)};
dvt.AfPanelCard.prototype.TransitionBitmaps=function(a,b,c,d,e){var f=this._oldNode;a=dvt.AfPanelCard._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};
dvt.AfPanelCard.prototype.createBitmapDataForTransition=function(a,b,c,d){return a?[b]:[c,d]};dvt.AfPanelCard.prototype._addTransitionClipPath=function(){this._cpContainer=this.CreateNewContainerForChildren();var a=new dvt.ClipPath(this._getUniqueId()+DvtAfComponentUtils._CLIP_PATH_SUFFIX);if(this.getNodeShape()==dvt.AfPanelCard.SHAPE_ELLIPSE)a.addPath(this._contentPane.getCmds());else{var b=dvt.AfComponent.getDimensions(this);a.addRect(b.x,b.y,b.w,b.h)}this._cpContainer.setClipPath(a)};
dvt.AfPanelCard.prototype._removeTransitionClipPath=function(){this._cpContainer&&(this.RemoveChildrenContainer(this._cpContainer),this._cpContainer=null)};dvt.AfPanelCard.prototype._endTransition=function(){this._bTransitioning=!1;this._removeTransitionClipPath()};dvt.AfPanelCard._getNodeContentRoot=function(a){var b;a.GetAfComponentRoot&&(b=a.GetAfComponentRoot());return b&&b.getDisplayObj?b.getDisplayObj():a};dvt.AfPanelCard._setTitleBarVisible=function(a,b){a&&a.setVisible(b)};
dvt.AfPanelCard._setItemDisplayableVisible=function(a,b){a&&a.SetDOVisible&&a.SetDOVisible(b)};dvt.AfPanelCard.prototype._setTrainSelectedIndex=function(){this._train&&this._train.setSelectedIndex(this.getDisplayedDetailItemIndex())};dvt.NavButton=function(a,b,c,d,e,f){this.Init(a,b,c,d,e,f)};dvt.Obj.createSubclass(dvt.NavButton,dvt.Button,"dvt.NavButton");dvt.NavButton.prototype.Init=function(a,b,c,d,e,f){dvt.NavButton.superclass.Init.call(this,b,c,d,e,f);this._panelCard=a};
dvt.NavButton.prototype.getTooltip=function(){return this._panelCard.getNavButtonTooltip(this)};dvt.NavButton.prototype.getAriaLabel=function(){return this.getTooltip()};dvt.NavButton.prototype.getPanelCard=function(){return this._panelCard};
dvt.AfShowPopupBehavior=function(){this.Init()};dvt.Obj.createSubclass(dvt.AfShowPopupBehavior,dvt.PropMap,"dvt.AfShowPopupBehavior");dvt.AfShowPopupBehavior.TAG_NAME="spb";dvt.AfComponentFactory.registerComponent(dvt.AfShowPopupBehavior.TAG_NAME,dvt.AfShowPopupBehavior);dvt.AfShowPopupBehavior.ATTR_POPUP_ID="popupId";dvt.AfShowPopupBehavior.ATTR_TRIGGER_TYPE="triggerType";dvt.AfShowPopupBehavior.ATTR_ALIGN_ID="alignId";dvt.AfShowPopupBehavior.ATTR_ALIGN="align";
dvt.AfShowPopupBehavior.prototype.getPopupId=function(){return this.getProperty(dvt.AfShowPopupBehavior.ATTR_POPUP_ID)};dvt.AfShowPopupBehavior.prototype.setPopupId=function(a){this.setProperty(dvt.AfShowPopupBehavior.ATTR_POPUP_ID,a)};dvt.AfShowPopupBehavior.prototype.getTriggerType=function(){return this.getProperty(dvt.AfShowPopupBehavior.ATTR_TRIGGER_TYPE)};dvt.AfShowPopupBehavior.prototype.setTriggerType=function(a){this.setProperty(dvt.AfShowPopupBehavior.ATTR_TRIGGER_TYPE,a)};
dvt.AfShowPopupBehavior.prototype.getAlignId=function(){return this.getProperty(dvt.AfShowPopupBehavior.ATTR_ALIGN_ID)};dvt.AfShowPopupBehavior.prototype.setAlignId=function(a){this.setProperty(dvt.AfShowPopupBehavior.ATTR_ALIGN_ID,a)};dvt.AfShowPopupBehavior.prototype.getAlign=function(){return this.getProperty(dvt.AfShowPopupBehavior.ATTR_ALIGN)};dvt.AfShowPopupBehavior.prototype.setAlign=function(a){this.setProperty(dvt.AfShowPopupBehavior.ATTR_ALIGN,a)};
dvt.AfShowPopupBehavior.prototype.createDisplayObj=function(a){return new dvt.ShowPopupBehavior(this.getPopupId(),this.getTriggerType(),this.getAlignId(),this.getAlign())};
dvt.AfClientBehavior=function(){this.Init()};dvt.Obj.createSubclass(dvt.AfClientBehavior,dvt.PropMap,"dvt.AfClientBehavior");dvt.AfClientBehavior.TAG_NAME="bhvr";dvt.AfComponentFactory.registerComponent(dvt.AfClientBehavior.TAG_NAME,dvt.AfClientBehavior);dvt.AfClientBehavior.ATTR_TYPE="type";dvt.AfClientBehavior.ATTR_TRIGGER_TYPE="triggerType";dvt.AfClientBehavior.prototype.getType=function(){return this.getProperty(dvt.AfClientBehavior.ATTR_TYPE)};
dvt.AfClientBehavior.prototype.setType=function(a){this.setProperty(dvt.AfClientBehavior.ATTR_TYPE,a)};dvt.AfClientBehavior.prototype.getTriggerType=function(){return this.getProperty(dvt.AfClientBehavior.ATTR_TRIGGER_TYPE)};dvt.AfClientBehavior.prototype.setTriggerType=function(a){this.setProperty(dvt.AfClientBehavior.ATTR_TRIGGER_TYPE,a)};
dvt.AfClientBehavior.prototype.createDisplayObj=function(a){a=new dvt.ClientBehavior(this.getType(),this.getTriggerType());for(var b in this._props)b!=dvt.AfClientBehavior.ATTR_TYPE&&b!=dvt.AfClientBehavior.ATTR_TRIGGER_TYPE&&a.setProperty(b,this.getProperty(b));return a};
dvt.AfGroup=function(){this.Init()};dvt.Obj.createSubclass(dvt.AfGroup,dvt.AfComponent,"dvt.AfGroup");dvt.AfGroup.TAG_NAME="grp";dvt.AfComponentFactory.registerComponent(dvt.AfGroup.TAG_NAME,dvt.AfGroup);dvt.AfGroup.prototype.GetDefaultStyles=function(){return dvt.AfGroup._afStyles};dvt.AfGroup.prototype.SetDefaultStyles=function(a){dvt.AfGroup._afStyles=a};dvt.AfGroup.prototype.getTagName=function(){return dvt.AfGroup.TAG_NAME};dvt.AfGroup.prototype._hasBgShape=function(){return!1};
dvt.AfGroup.prototype.stamp=function(a){return dvt.AfComponent.superclass.stamp.call(this,a)};
dvt.AfPointLocation=function(){this.Init()};dvt.Obj.createSubclass(dvt.AfPointLocation,dvt.AfComponent,"dvt.AfPointLocation");dvt.AfPointLocation.TAG_NAME="pLoc";dvt.AfComponentFactory.registerComponent(dvt.AfPointLocation.TAG_NAME,dvt.AfPointLocation);dvt.AfPointLocation.prototype.GetDefaultStyles=function(){return dvt.AfPointLocation._afStyles};dvt.AfPointLocation.prototype.SetDefaultStyles=function(a){dvt.AfPointLocation._afStyles=a};dvt.AfPointLocation.prototype.getTagName=function(){return dvt.AfPointLocation.TAG_NAME};
dvt.AfPointLocation.prototype._hasBgShape=function(){return!1};dvt.AfPointLocation.prototype.stamp=function(a){return dvt.AfComponent.superclass.stamp.call(this,a)};
})(dvt);
