var A_X=AdfRichUIPeer.createPeerClass(AdfRichUIPeer,"AdfDhtmlPivotFilterBarCollectionPeer",!1);A_a("AdfDhtmlPivotFilterBarCollectionPeer",A_X);AdfPage.PAGE.getLookAndFeel().registerPeerConstructor("oracle.dss.adf.pivotFilterBar.PivotFilterBarCollection","AdfDhtmlPivotFilterBarCollectionPeer");
A_X.InitSubclass=function(){AdfObject.ensureClassInitialization(A_X);this.Hf=2;this.s=1;this.o=0;this.ke=1;this.ad=2;this.je=3;this.Se=4;this.Qt="cont";this.aj="ph";this.zC="lh";this.Vt="sw";this.QD="tab";this.jA="ada_pi";this.Nt="ada_ext_pi";this.gv="st_ph_top";this.fv="st_ph_cent";this.ev="st_ph_bot";this.Zu="st_lov";this.nh="st_sel";this.mh="st_foc";this.lh="st_drop";this.cq="st_hid";AdfRichUIPeer.addComponentEventHandlers(this,AdfUIInputEvent.MOUSE_DOWN_EVENT_TYPE);AdfRichUIPeer.addComponentEventHandlers(this,
AdfUIInputEvent.MOUSE_IN_EVENT_TYPE);AdfRichUIPeer.addComponentEventHandlers(this,AdfUIInputEvent.MOUSE_OUT_EVENT_TYPE);AdfRichUIPeer.addComponentEventHandlers(this,AdfUIInputEvent.KEY_DOWN_EVENT_TYPE);AdfRichUIPeer.addComponentEventHandlers(this,AdfUIInputEvent.KEY_UP_EVENT_TYPE);AdfRichUIPeer.addComponentEventHandlers(this,AdfComponentEvent.FOCUS_EVENT_TYPE);AdfRichUIPeer.addComponentEventHandlers(this,AdfComponentEvent.BLUR_EVENT_TYPE);AdfRichUIPeer.addComponentEventHandlers(this,AdfUIInputEvent.CLICK_EVENT_TYPE)};
A_=A_X.prototype;A_.needsResizeNotify=function(){return null!=A_qe(this,this.getDomElement())};A_.ResizeNotify=function(a,b,c,d){a=AdfAgent.AGENT.getPlatform();a=a==AdfAgent.WEBKIT_PLATFORM||a==AdfAgent.IE_PLATFORM&&8==AdfAgent.AGENT.getVersion()?2:1;A_qe(this,this.getDomElement()).style.height=d-a+"px"};
A_.InitDomElement=function(a,b){this.vf="true"==AdfAgent.AGENT.getAttribute(b,"_ada");this.vf||(a.setDragSource(new A_re),a.setDropTarget(new A_Y));var c=a.getProperty("modelName");null!=c&&AdfPage.PAGE.setPageProperty("PAGE_EDGE:"+c,a.getClientId())};
A_.Tn=function(a){var b;b=A_qe(this,a).childNodes;if(1==b.length)b=null;else{for(var c=[],d=0;d<b.length&&null!=AdfAgent.AGENT.getAttribute(b[d],"layer");d++)for(var e=b[d].childNodes[0].childNodes[1].childNodes[0].childNodes[0].childNodes[0].childNodes[0].childNodes,f=0;f<e.length;f++){var g=e[f];g.getAttribute("part")==A_X.Nt&&c.push(g)}b=c}if(null!=b)for(c=0;c<b.length;c++)A_d.X(b[c],AdfAgent.AGENT.getAttribute(a,A_X.cq))};A_.setupADAExtPivots=function(){null!=this.Wd()&&this.Tn(this.getDomElement())};
A_.ra=function(a){a.isLeftButtonPressed()&&this.Us(AdfAgent.AGENT.getEventTarget(a.getNativeEvent()))};A_a("AdfDhtmlPivotFilterBarCollectionPeer.prototype.HandleComponentClick",A_X.prototype.ra);A_=A_X.prototype;
A_.Us=function(a){var b=a;"A"!=a.tagName&&(b=a.parentNode);if(AdfAgent.AGENT.getAttribute(b.parentNode,"part")==A_X.jA){a=AdfAgent.AGENT.getAttribute(b.parentNode,"_fromLayerName");var c=AdfAgent.AGENT.getIntAttribute(b.parentNode,"_toLayer"),b=AdfAgent.AGENT.getAttribute(b.parentNode,"_orientation"),b=new A_se(this.getComponent(),a,c,b);b.setPartial(!0);b.queue()}else AdfAgent.AGENT.getAttribute(b.parentNode,"part")==A_X.Nt&&(a=this.Wd(),null!=a&&(c={},c.fromEdge=A_X.Hf,c.fromLayer=AdfAgent.AGENT.getIntAttribute(b.parentNode,
"_fromLayer"),c.toEdge=AdfAgent.AGENT.getIntAttribute(b.parentNode,"_toEdge"),c.toLayer=0,c.orientation="before",a.getPeer().wp(this.getComponent(),c)))};A_.wp=function(a,b){var c=b.fromLayerName;filter=A_te(this);var d=null!=filter?parseInt(filter.getAttribute("layer")):-1,e=AdfDropEvent.DROP_ORIENTATION_AFTER,c=new A_se(this.getComponent(),c,d,e);c.setPartial(!0);c.queue();(new AdfCustomEvent(a,"dragDropEnd")).queue()};A_.initiateDrag=function(){};
A_.nf=function(a){return null!=a.getAttribute("pgId")?a:null!=a.parentNode?a.parentNode==this.getDomElement()?null:this.nf(a.parentNode):null};A_.Df=function(a){this.vf||(a=a.getNativeEventTarget(),this.Gz?this.Gz=!1:a.getAttribute("part")==A_X.QD&&AdfFocusUtils.focusElement(this.getDomElement()),null!=this.Bg?(this.ba=this.Bg,a=A_Z(this.ba),A__(this,a,a,"focus"),this.Bg=null):null==this.ba&&null==this.rc&&(a=A_ue(this),this.ba=a.id,A__(this,a,a,"focus")),null!=this.Ze&&(clearTimeout(this.Ze),delete this.Ze))};
A_a("AdfDhtmlPivotFilterBarCollectionPeer.prototype.HandleComponentFocus",A_X.prototype.Df);A_X.prototype.ge=function(){this.vf||(null==this.Dj&&(this.Dj=this.createCallback(this.Nq)),this.Ze=setTimeout(this.Dj,10))};A_a("AdfDhtmlPivotFilterBarCollectionPeer.prototype.HandleComponentBlur",A_X.prototype.ge);A_X.prototype.Nq=function(){if(null!=this.ba){var a=A_Z(this.ba);A__(this,a,a,"select");this.Bg=this.ba}delete this.Ze};
A_X.prototype.kb=function(a){this.vf||(a=a.getNativeEventTarget(),a=this.nf(a),null!=a&&A_ve(this,a.id))};A_a("AdfDhtmlPivotFilterBarCollectionPeer.prototype.HandleComponentMouseDown",A_X.prototype.kb);A_X.prototype.HandleComponentMouseOver=function(a){this.vf||(a=a.getNativeEventTarget(),a.getAttribute("part")==A_X.aj&&(a.style.cursor="move"))};A_a("AdfDhtmlPivotFilterBarCollectionPeer.prototype.HandleComponentMouseOver",A_X.prototype.HandleComponentMouseOver);
A_X.prototype.Ib=function(a){this.vf||(a=a.getNativeEventTarget(),a.getAttribute("part")==A_X.aj&&(a.style.cursor="default"))};A_a("AdfDhtmlPivotFilterBarCollectionPeer.prototype.HandleComponentMouseOut",A_X.prototype.Ib);function A__(a,b,c,d){A_we(a,b,c);c=c.childNodes;for(var e=0;e<c.length;e++){var f=c[e],g=f.getAttribute("part");g==A_X.aj?A_xe(a,f,d):g==A_X.Vt?A_xe(a,b,d):A__(a,b,f,d)}}
function A_xe(a,b,c){"select"==c?A_d.ta(b,a.A(A_X.nh))||A_d.ya(b,a.A(A_X.nh)):"focus"==c?A_d.ta(b,a.A(A_X.mh))||A_d.ya(b,a.A(A_X.mh)):"drop"==c&&(A_d.ta(b,a.A(A_X.lh))||A_d.ya(b,a.A(A_X.lh)))}function A_we(a,b,c){c=c.childNodes;for(var d=0;d<c.length;d++){var e=c[d],f=e.getAttribute("part");f==A_X.aj?A_ye(a,e):f==A_X.Vt?A_ye(a,b):A_we(a,b,e)}}function A_ye(a,b){A_d.ta(b,a.A(A_X.nh))&&A_d.X(b,a.A(A_X.nh));A_d.ta(b,a.A(A_X.mh))&&A_d.X(b,a.A(A_X.mh));A_d.ta(b,a.A(A_X.lh))&&A_d.X(b,a.A(A_X.lh))}
function A_Z(a){return AdfAgent.AGENT.getElementById(a)}function A_ve(a,b){if(null!=a.ba){if(a.ba!=b){var c=A_Z(b),d=A_Z(a.ba);A_we(a,d,d);A__(a,c,c,"focus");a.ba=b;a.Bg=null;AdfFocusUtils.focusElement(c)}}else c=A_Z(b),A__(a,c,c,"focus"),a.ba=b,a.Bg=null,AdfFocusUtils.focusElement(c)}A_X.prototype.Wd=function(){var a=this.getComponent().getProperty("modelName");return null!=a&&(a=AdfPage.PAGE.getPageProperty("ROW_AND_COLUMN_EDGE:"+a),null!=a)?AdfPage.PAGE.findComponent(a):null};
function A_ze(a,b){var c=A_qe(a,a.getDomElement()),d=A_ue(a),d=AdfAgent.AGENT.getElementPageBounds(d).top,d=AdfAgent.AGENT.getElementPageBounds(b).top-d;c.scrollTop>d&&(c.scrollTop=d)}
function A_Ae(a,b){var c=A_qe(a,a.getDomElement()),d=AdfAgent.AGENT.getElementPageBounds(c),e=A_ue(a),e=AdfAgent.AGENT.getElementPageBounds(e).top,f=AdfAgent.AGENT.getElementPageBounds(b).bottom,g=AdfAgent.AGENT.getPlatform(),g=g==AdfAgent.WEBKIT_PLATFORM||g==AdfAgent.IE_PLATFORM&&8==AdfAgent.AGENT.getVersion()||g==AdfAgent.GECKO_PLATFORM&&1.8==AdfAgent.AGENT.getVersion()?1:2,d=f-e-(d.bottom-d.top)+g;c.scrollTop<d&&(c.scrollTop=d)}
function A_Be(a){var b=A_qe(a,a.getDomElement()),c=A_ue(a);null!=c&&(a=A_te(a),c=AdfAgent.AGENT.getElementPageBounds(c),a=AdfAgent.AGENT.getElementPageBounds(a),b.scrollTop=a.bottom+c.bottom-2*c.top)}
A_X.prototype.$c=function(a){if(!this.vf){a=a.getNativeEvent();var b=a.keyCode;if(b==AdfKeyStroke.ALT_KEY&&null!=this.ba)b=A_Z(this.ba),AdfFocusUtils.focusElement(A_Ce(this,b));else if(b==AdfKeyStroke.TAB_KEY)a.shiftKey?AdfFocusUtils.focusElement(this.getDomElement()):(this.Gz=!0,AdfFocusUtils.bT(this.getDomElement()));else if(b==AdfKeyStroke.ESC_KEY)b=a.altKey,a=a.shiftKey,b&&a&&this.Ke&&(A_De(this),a=A_Z(this.J),A_we(this,a,a),null!=this.ba&&this.J==this.ba&&A__(this,a,a,"focus"),this.Ke=!1,this.ka=
this.J=this.rc=null);else if(b==AdfKeyStroke.ARROWDOWN_KEY){if(null!=this.ba||null!=this.rc){var b=a.altKey,c=a.ctrlKey;a=a.shiftKey;if(b&&!c&&a&&(a=this.Wd(),null!=a))if(this.Ke=!1,null==this.rc&&(this.ka=this.ba),A_De(this),null!=this.J&&(b=A_Z(this.J),A_we(this,b,b),null==this.rc&&this.J==this.ka&&A__(this,b,b,"focus"),this.J=null),null!=this.rc)A_Ee(a.getPeer(),this.rc),this.rc=null;else{var b=A_Z(this.ka),c=b.getAttribute("layer"),d={};d.edge=A_X.Hf;d.layer=c;d.layerId=b.getAttribute("name");
A_Ee(a.getPeer(),d)}}}else if(b==AdfKeyStroke.ARROWRIGHT_KEY&&!AdfPage.PAGE.getLocaleContext().isRightToLeft()||b==AdfKeyStroke.ARROWLEFT_KEY&&AdfPage.PAGE.getLocaleContext().isRightToLeft())if(b=a.altKey,c=a.ctrlKey,a=a.shiftKey,b&&!c&&a){if(null!=this.ba||null!=this.J)this.Ke=!0,null==this.aa||this.aa==A_X.ke?(null==this.J?(a=A_Z(this.ba),this.ka=this.J=this.ba):a=A_Z(this.J),b=A_Fe(a),null!=b?(A_Ae(this,b),null!=this.ka&&this.J!=this.ka?this.ka==b.id?(A_we(this,a,a),a.id==this.ba&&A__(this,a,a,
"focus"),A__(this,b,b,"drop"),this.J=b.id,this.aa=A_X.Se):(A_we(this,a,a),a.id==this.ba&&A__(this,a,a,"focus"),A_Ge(this,b),this.J=b.id,this.aa=A_X.ad):null!=this.ka?(A__(this,b,b,"drop"),this.J=b.id,this.aa=A_X.ke):(A_we(this,a,a),a.id==this.ba&&A__(this,a,a,"focus"),A_Ge(this,b),this.J=b.id,this.aa=A_X.ad)):null==this.ka||this.ka!=this.J?(A_we(this,a,a),a.id==this.ba&&A__(this,a,a,"focus"),A_He(this,AdfAgent.AGENT.getElementPageBounds(a),a.parentNode),A_Be(this),this.aa=A_X.je):(b=A_ue(this),b.id!=
this.ka?(A_ze(this,b),A__(this,a,a,"focus"),A_Ge(this,b),this.J=b.id,this.aa=A_X.ad):(this.J=null,this.Ke=!1))):this.aa==A_X.ad?(A_De(this),a=A_Z(this.J),A__(this,a,a,"drop"),this.aa=A_X.ke):this.aa==A_X.je?(b=A_ue(this),null!=b&&(A_ze(this,b),null!=this.ka&&b.id!=this.ka||null==this.ka?(A_Ge(this,b),this.J=b.id,this.aa=A_X.ad):(A_De(this),A__(this,b,b,"drop"),this.J=this.ka,this.aa=A_X.Se))):this.aa==A_X.Se&&(a=A_Z(this.ka),b=A_Fe(a),null!=b?(A_Ae(this,b),A__(this,a,a,"focus"),A__(this,b,b,"drop"),
this.J=b.id,this.aa=A_X.ke):(b=A_ue(this),b!=a&&(A_ze(this,b),A__(this,a,a,"focus"),A_Ge(this,b),this.J=b.id,this.aa=A_X.ad)))}else null!=this.ba&&(AdfFocusUtils.focusElement(this.getDomElement()),a=A_Z(this.ba),b=A_Fe(a),null!=b&&null!=b.id&&(A_Ae(this,b),A_ve(this,b.id)));else if(b==AdfKeyStroke.ARROWLEFT_KEY&&!AdfPage.PAGE.getLocaleContext().isRightToLeft()||b==AdfKeyStroke.ARROWRIGHT_KEY&&AdfPage.PAGE.getLocaleContext().isRightToLeft())if(b=a.altKey,c=a.ctrlKey,a=a.shiftKey,b&&!c&&a){if(null!=
this.ba||null!=this.J)this.Ke=!0,null==this.aa||this.aa==A_X.ke?(null==this.J?(a=A_Z(this.ba),this.ka=this.J=this.ba):a=A_Z(this.J),b=A_Z(this.J).previousSibling,null!=b?null!=this.ka&&this.J!=this.ka?b.id==this.ka?(A_ze(this,b),A_we(this,a,a),a.id==this.ba&&A__(this,a,a,"focus"),A__(this,b,b,"drop"),this.J=b.id,this.aa=A_X.Se):(A_ze(this,a),A_we(this,a,a),a.id==this.ba&&A__(this,a,a,"focus"),A_Ge(this,a),this.aa=A_X.ad):null!=this.ka?(A_ze(this,b),A__(this,b,b,"drop"),this.J=b.id,this.aa=A_X.ke):
(A_ze(this,a),A_we(this,a,a),a.id==this.ba&&A__(this,a,a,"focus"),A_Ge(this,a),this.aa=A_X.ad):null==this.ka||this.ka!=this.J?(A_ze(this,a),A_we(this,a,a),a.id==this.ba&&A__(this,a,a,"focus"),A_Ge(this,a),this.aa=A_X.ad):(b=A_te(this),b.id!=this.ka?(A__(this,a,a,"focus"),A_He(this,AdfAgent.AGENT.getElementPageBounds(b),b.parentNode),A_Be(this),this.J=b.id,this.aa=A_X.je):(this.J=null,this.Ke=!1))):this.aa==A_X.ad?(b=A_Z(this.J).previousSibling,null!=b?(A_ze(this,b),A_De(this),A__(this,b,b,"drop"),
this.J=b.id,this.aa=A_X.ke):(b=A_te(this),null!=b&&(null!=this.ka&&b.id!=this.ka||null==this.ka?(A_He(this,AdfAgent.AGENT.getElementPageBounds(b),b.parentNode),A_Be(this),this.J=b.id,this.aa=A_X.je):(A_Ae(this,b),A_De(this),A__(this,b,b,"drop"),this.J=this.ka,this.aa=A_X.Se)))):this.aa==A_X.je?null!=this.J&&(A_De(this),a=A_Z(this.J),A__(this,a,a,"drop"),this.aa=A_X.ke):this.aa==A_X.Se&&(a=A_Z(this.ka),b=a.previousSibling,null!=b?(A_ze(this,b),A__(this,a,a,"focus"),A__(this,b,b,"drop"),this.J=b.id,
this.aa=A_X.ke):(b=A_te(this),b!=a&&(A__(this,a,a,"focus"),A_He(this,AdfAgent.AGENT.getElementPageBounds(b),b.parentNode),A_Be(this),this.J=b.id,this.aa=A_X.je)))}else null!=this.ba&&(AdfFocusUtils.focusElement(this.getDomElement()),a=A_Z(this.ba),b=a.previousSibling,null!=b&&null!=b.id&&(A_ze(this,b),A_ve(this,b.id)))}};A_a("AdfDhtmlPivotFilterBarCollectionPeer.prototype.HandleComponentKeyDown",A_X.prototype.$c);
A_X.prototype.HandleComponentKeyUp=function(a){if(!this.vf){var b=a.getNativeEvent();switch(b.keyCode){default:if(this.Ke&&(!b.altKey||!b.shiftKey)){this.Ke=!1;b=AdfDropEvent.DROP_ORIENTATION_INSIDE;if(this.aa==A_X.ad)b=AdfDropEvent.DROP_ORIENTATION_BEFORE;else if(this.aa==A_X.je)b=AdfDropEvent.DROP_ORIENTATION_AFTER;else if(this.aa==A_X.Se&&null!=this.J){a=A_Z(this.J);A__(this,a,a,"focus");this.aa=this.ka=this.J=null;break}if(null!=this.J){var c=A_Z(this.J);A_we(this,c,c);if(null!=this.ka){var d=
A_Z(this.ka),d=this.getTransferable(d).getTransferData(AdfDataFlavor.getDataFlavorForClassName("AdfPivotTableData"))[0],b=new A_se(this.getComponent(),d.layerId,parseInt(c.getAttribute("layer")),b);b.setPartial(!0);b.queue()}else null!=this.rc&&(b=new A_se(this.getComponent(),this.rc.layerId,parseInt(c.getAttribute("layer")),b),b.setPartial(!0),b.queue(),b=this.Wd(),null!=b&&(b=new AdfCustomEvent(b,"dragDropEnd"),b.queue()))}else null!=this.rc&&(b=new A_se(this.getComponent(),this.rc.layerId,-1,b),
b.setPartial(!0),b.queue(),b=this.Wd(),null!=b&&(b=new AdfCustomEvent(b,"dragDropEnd"),b.queue()));this.rc=this.J=this.ka=this.aa=null;a.cancel()}}}};A_a("AdfDhtmlPivotFilterBarCollectionPeer.prototype.HandleComponentKeyUp",A_X.prototype.HandleComponentKeyUp);A_=A_X.prototype;
A_.getTransferable=function(a){var b=parseInt(a.getAttribute("layer")),c=a.getAttribute("pgid"),d={};d.edge=A_X.Hf;d.layer=parseInt(b);d.layerId=a.getAttribute("name");d.pgid=c;a=[];a.push(AdfDataFlavor.getDataFlavorForClassName("AdfPivotTableData"));a.push(AdfDataFlavor.getObjectFlavor(b));c=[];c.push([d]);c.push([b]);return new AdfObjectTransferable(c,a)};function A_ue(a){return A_Ie(a,a.getDomElement(),"0")}
function A_te(a){for(a=A_ue(a);null!=a;){var b=A_Fe(a);if(null!=b)a=b;else return a}return null}function A_Ie(a,b,c){if("TABLE"==b.nodeName&&null!=AdfAgent.AGENT.getAttribute(b,"pgid")){var d=AdfAgent.AGENT.getAttribute(b,"layer");if(null!=d&&d==c)return b}for(d=0;d<b.childNodes.length;d++){var e=A_Ie(a,b.childNodes[d],c);if(null!=e)return e}return null}function A_Fe(a){a=a.nextSibling;return null!=AdfAgent.AGENT.getAttribute(a,"layer")?a:null}
function A_Ce(a,b){if("INPUT"==b.nodeName)return b;for(var c=0;c<b.childNodes.length;c++){var d=A_Ce(a,b.childNodes[c]);if(null!=d)return d}return null}function A_qe(a,b){for(var c=b.childNodes,d=0;d<c.length;d++){var e=c[d];if(1!=e.nodeType)break;if(e.getAttribute("part")==A_X.Qt)return e;e=A_qe(a,e);if(null!=e)return e}return null}A_.Za=function(){for(var a=A_qe(this,this.getDomElement()).childNodes,b=0;b<a.length;b++){var c=a[b];if("ghost"==c.getAttribute("part"))return c}return null};
function A_Je(a){if(null!=a.style.height){var b=a.style.height.indexOf("px");if(-1!=b)return parseInt(a.style.height.substring(0,b))}a.style.height="0px";return 0}A_.debug=function(a){var b=this.getComponent().getClientId(),b=document.getElementById(b+"::debugger");null!=b&&(b.innerHTML=a)};A_.nf=function(a){return 1!=a.nodeType?null:null!=a.getAttribute("layer")&&null!=a.getAttribute("pgid")?a:null==a.parentNode?null:a.parentNode==this.getDomElement()?null:this.nf(a.parentNode)};
function A_Ke(a){A_De(a);null!=a.jo&&(A_we(a,a.jo,a.jo),a.jo=null)}function A_De(a){a=a.Za();null!=a&&(a.style.visibility="hidden",a.style.height="0px",a.style.top="0px",AdfPage.PAGE.getLocaleContext().isRightToLeft()?a.style.right="0px":a.style.left="0px")}
function A_Ge(a,b){var c=AdfAgent.AGENT.getElementPageBounds(b),d=AdfAgent.AGENT.getElementPageBounds(A_ue(a)),e=AdfAgent.AGENT.getElementPageBounds(b.parentNode),f=a.Za(),g=0,h=0;AdfAgent.AGENT.getPlatform()==AdfAgent.GECKO_PLATFORM&&1.8==AdfAgent.AGENT.getVersion()&&(g=AdfPage.PAGE.getLocaleContext().isRightToLeft()?2:1,h=1);AdfPage.PAGE.getLocaleContext().isRightToLeft()?f.style.right=parseInt(e.right)-parseInt(c.right)+g+"px":f.style.left=parseInt(c.left)-parseInt(e.left)+g+"px";f.style.top=parseInt(c.top)-
parseInt(d.top)+1+"px";c=A_Je(f);f.style.height=b.offsetHeight-(f.offsetHeight-c)-h+"px";f.style.visibility="visible"}
function A_He(a,b,c){var d=A_ue(a),e=AdfAgent.AGENT.getElementPageBounds(d);c=AdfAgent.AGENT.getElementPageBounds(c);var f=AdfAgent.AGENT.getElementPageBounds(a.getDomElement());a=a.Za();var g=1,h=0,l=2,m=0,n=1,p=AdfAgent.AGENT.getPlatform();p==AdfAgent.WEBKIT_PLATFORM?l=3:p==AdfAgent.GECKO_PLATFORM&&1.8==AdfAgent.AGENT.getVersion()&&(AdfPage.PAGE.getLocaleContext().isRightToLeft()?(g=2,m=-1,l=1):l=4,n=0,h=1);l=a.offsetWidth+l;AdfPage.PAGE.getLocaleContext().isRightToLeft()?parseInt(b.left)-parseInt(f.left)<=
l?(a.style.right=m+g+"px",a.style.top=parseInt(b.bottom)-parseInt(e.top)+n+1+"px"):(a.style.right=parseInt(c.right)-parseInt(b.left)+g+"px",a.style.top=parseInt(b.top)-parseInt(e.top)+1+"px"):parseInt(f.right)-parseInt(b.right)<=l?(a.style.left=m+g+"px",a.style.top=parseInt(b.bottom)-parseInt(e.top)+n+1+"px"):(a.style.left=parseInt(b.right)-parseInt(c.left)+g+"px",a.style.top=parseInt(b.top)-parseInt(e.top)+1+"px");b=A_Je(a);a.style.height=d.offsetHeight-(a.offsetHeight-b)-h+"px";a.style.visibility=
"visible"}function A_Le(a,b){var c=AdfAgent.AGENT.getElementPageBounds(b),d=a.Za(),e=2,f=AdfAgent.AGENT.getPlatform();if(f==AdfAgent.IE_PLATFORM&&8==AdfAgent.AGENT.getVersion()||f==AdfAgent.WEBKIT_PLATFORM)e=1;AdfPage.PAGE.getLocaleContext().isRightToLeft()?d.style.right="1px":d.style.left="1px";d.style.top="1px";f=A_Je(d);d.style.height=parseInt(c.bottom)-parseInt(c.top)-e-(d.offsetHeight-f)+"px";d.style.visibility="visible"}
A_.Zz=function(a,b,c,d){A_Ke(this);if(a=A_d.ji(this.getDomElement(),c,d))a.getAttribute("part")==A_X.Qt?(b=A_te(this),null!=b?A_He(this,AdfAgent.AGENT.getElementPageBounds(b),a):A_Le(this,a)):(b=this.nf(a),null!=b&&(a.getAttribute("part")==A_X.aj?(A_Ge(this,b),b.setAttribute("orientation",AdfDropEvent.DROP_ORIENTATION_BEFORE)):a.getAttribute("part")==A_X.zC?(A_He(this,AdfAgent.AGENT.getElementPageBounds(b),b.parentNode),b.setAttribute("orientation",AdfDropEvent.DROP_ORIENTATION_AFTER)):(bounds=AdfAgent.AGENT.getElementPageBounds(b),
!AdfPage.PAGE.getLocaleContext().isRightToLeft()&&b==A_te(this)&&0<=c-parseInt(bounds.right)||AdfPage.PAGE.getLocaleContext().isRightToLeft()&&b==A_te(this)&&2>=c-parseInt(bounds.left)?(A_He(this,bounds,b.parentNode),b.setAttribute("orientation",AdfDropEvent.DROP_ORIENTATION_AFTER)):(A__(this,b,b,"drop"),this.jo=b,b.setAttribute("orientation",AdfDropEvent.DROP_ORIENTATION_INSIDE)))))};function A_Me(a,b){var c=b.getNativeEventTarget();return c&&(c=a.nf(c),null!=c)?c:null}
A_.A=function(a){if(void 0==this.da){var b=AdfAgent.AGENT;this.da={};var c=this.getDomElement();this.da[A_X.gv]=b.getAttribute(c,A_X.gv);this.da[A_X.fv]=b.getAttribute(c,A_X.fv);this.da[A_X.ev]=b.getAttribute(c,A_X.ev);this.da[A_X.Zu]=b.getAttribute(c,A_X.Zu);this.da[A_X.nh]=b.getAttribute(c,A_X.nh);this.da[A_X.mh]=b.getAttribute(c,A_X.mh);this.da[A_X.lh]=b.getAttribute(c,A_X.lh);this.da[A_X.cq]=b.getAttribute(c,A_X.cq)}return this.da[a]};