var A_Z=AdfRichUIPeer.createPeerClass(AdfRichUIPeer,"AdfDhtmlPivotFilterBarCollectionPeer",A_c);A_h("AdfDhtmlPivotFilterBarCollectionPeer",A_Z);AdfPage.PAGE.getLookAndFeel().registerPeerConstructor("oracle.dss.adf.pivotFilterBar.PivotFilterBarCollection","AdfDhtmlPivotFilterBarCollectionPeer");
A_Z.InitSubclass=function(){AdfObject.ensureClassInitialization(A_Z);this.tf=2;this.l=1;this.n=0;this.be=1;this.Tc=2;this.ae=3;this.Fe=4;this.ct="cont";this.Ii="ph";this.HB="lh";this.gt="sw";this.WC="tab";this.uz="ada_pi";this.$s="ada_ext_pi";this.su="st_ph_top";this.ru="st_ph_cent";this.qu="st_ph_bot";this.ku="st_lov";this.Xg="st_sel";this.Wg="st_foc";this.Vg="st_drop";this.xp="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_g=A_Z.prototype;A_g.needsResizeNotify=function(){return A_xe(this,this.getDomElement())!=A_};A_g.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_xe(this,this.getDomElement()).style.height=d-a+"px"};
A_g.InitDomElement=function(a,b){this.gf="true"==AdfAgent.AGENT.getAttribute(b,"_ada");this.gf||(a.setDragSource(new A_ye),a.setDropTarget(new A_ze));var c=a.getProperty("modelName");c!=A_&&AdfPage.PAGE.setPageProperty("PAGE_EDGE:"+c,a.getClientId())};
A_g.nn=function(a){var b;b=A_xe(this,a).childNodes;if(1==b.length)b=A_;else{for(var c=[],d=0;d<b.length&&AdfAgent.AGENT.getAttribute(b[d],"layer")!=A_;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_Z.$s&&c.push(g)}b=c}if(b!=A_)for(c=0;c<b.length;c++)A_k.S(b[c],AdfAgent.AGENT.getAttribute(a,A_Z.xp))};A_g.setupADAExtPivots=function(){this.Nd()!=A_&&this.nn(this.getDomElement())};
A_g.ia=function(a){a.isLeftButtonPressed()&&this.hs(AdfAgent.AGENT.getEventTarget(a.getNativeEvent()))};A_h("AdfDhtmlPivotFilterBarCollectionPeer.prototype.HandleComponentClick",A_Z.prototype.ia);
A_Z.prototype.hs=function(a){var b=a;"A"!=a.tagName&&(b=a.parentNode);if(AdfAgent.AGENT.getAttribute(b.parentNode,"part")==A_Z.uz){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_Ae(this.getComponent(),a,c,b);b.setPartial(A_b);b.queue()}else AdfAgent.AGENT.getAttribute(b.parentNode,"part")==A_Z.$s&&(a=this.Nd(),a!=A_&&(c={},c.fromEdge=A_Z.tf,c.fromLayer=AdfAgent.AGENT.getIntAttribute(b.parentNode,
"_fromLayer"),c.toEdge=AdfAgent.AGENT.getIntAttribute(b.parentNode,"_toEdge"),c.toLayer=0,c.orientation="before",a.getPeer().Qo(this.getComponent(),c)))};A_Z.prototype.Qo=function(a,b){var c=b.fromLayerName;filter=A_Be(this);var d=filter!=A_?parseInt(filter.getAttribute("layer")):-1,e=AdfDropEvent.DROP_ORIENTATION_AFTER,c=new A_Ae(this.getComponent(),c,d,e);c.setPartial(A_b);c.queue();(new AdfCustomEvent(a,"dragDropEnd")).queue()};
A_Z.prototype.$e=function(a){return a.getAttribute("pgId")!=A_?a:a.parentNode!=A_?a.parentNode==this.getDomElement()?A_:this.$e(a.parentNode):A_};A_Z.prototype.pf=function(a){this.gf||(a=a.getNativeEventTarget(),this.Ty?this.Ty=A_c:a.getAttribute("part")==A_Z.WC&&AdfFocusUtils.focusElement(this.getDomElement()),this.mg!=A_?(this.V=this.mg,a=A__(this.V),A_0(this,a,a,"focus"),this.mg=A_):this.V==A_&&this.jc==A_&&(a=A_Ce(this),this.V=a.id,A_0(this,a,a,"focus")),this.Me!=A_&&(clearTimeout(this.Me),delete this.Me))};
A_h("AdfDhtmlPivotFilterBarCollectionPeer.prototype.HandleComponentFocus",A_Z.prototype.pf);A_Z.prototype.Yd=function(){this.gf||(this.hj==A_&&(this.hj=this.createCallback(this.gq)),this.Me=setTimeout(this.hj,10))};A_h("AdfDhtmlPivotFilterBarCollectionPeer.prototype.HandleComponentBlur",A_Z.prototype.Yd);A_Z.prototype.gq=function(){if(this.V!=A_){var a=A__(this.V);A_0(this,a,a,"select");this.mg=this.V}delete this.Me};
A_Z.prototype.bb=function(a){this.gf||(a=a.getNativeEventTarget(),a=this.$e(a),a!=A_&&A_De(this,a.id))};A_h("AdfDhtmlPivotFilterBarCollectionPeer.prototype.HandleComponentMouseDown",A_Z.prototype.bb);A_Z.prototype.HandleComponentMouseOver=function(a){this.gf||(a=a.getNativeEventTarget(),a.getAttribute("part")==A_Z.Ii&&(a.style.cursor="move"))};A_h("AdfDhtmlPivotFilterBarCollectionPeer.prototype.HandleComponentMouseOver",A_Z.prototype.HandleComponentMouseOver);
A_Z.prototype.Ab=function(a){this.gf||(a=a.getNativeEventTarget(),a.getAttribute("part")==A_Z.Ii&&(a.style.cursor="default"))};A_h("AdfDhtmlPivotFilterBarCollectionPeer.prototype.HandleComponentMouseOut",A_Z.prototype.Ab);function A_0(a,b,c,d){A_Ee(a,b,c);c=c.childNodes;for(var e=0;e<c.length;e++){var f=c[e],g=f.getAttribute("part");g==A_Z.Ii?A_Fe(a,f,d):g==A_Z.gt?A_Fe(a,b,d):A_0(a,b,f,d)}}
function A_Fe(a,b,c){"select"==c?A_k.ja(b,a.r(A_Z.Xg))||A_k.sa(b,a.r(A_Z.Xg)):"focus"==c?A_k.ja(b,a.r(A_Z.Wg))||A_k.sa(b,a.r(A_Z.Wg)):"drop"==c&&(A_k.ja(b,a.r(A_Z.Vg))||A_k.sa(b,a.r(A_Z.Vg)))}function A_Ee(a,b,c){c=c.childNodes;for(var d=0;d<c.length;d++){var e=c[d],f=e.getAttribute("part");f==A_Z.Ii?A_Ge(a,e):f==A_Z.gt?A_Ge(a,b):A_Ee(a,b,e)}}function A_Ge(a,b){A_k.ja(b,a.r(A_Z.Xg))&&A_k.S(b,a.r(A_Z.Xg));A_k.ja(b,a.r(A_Z.Wg))&&A_k.S(b,a.r(A_Z.Wg));A_k.ja(b,a.r(A_Z.Vg))&&A_k.S(b,a.r(A_Z.Vg))}
function A__(a){return AdfAgent.AGENT.getElementById(a)}function A_De(a,b){if(a.V!=A_){if(a.V!=b){var c=A__(b),d=A__(a.V);A_Ee(a,d,d);A_0(a,c,c,"focus");a.V=b;a.mg=A_;AdfFocusUtils.focusElement(c)}}else c=A__(b),A_0(a,c,c,"focus"),a.V=b,a.mg=A_,AdfFocusUtils.focusElement(c)}A_Z.prototype.Nd=function(){var a=this.getComponent().getProperty("modelName");return a!=A_&&(a=AdfPage.PAGE.getPageProperty("ROW_AND_COLUMN_EDGE:"+a),a!=A_)?AdfPage.PAGE.findComponent(a):A_};
function A_He(a,b){var c=A_xe(a,a.getDomElement()),d=A_Ce(a),d=AdfAgent.AGENT.getElementPageBounds(d).top,d=AdfAgent.AGENT.getElementPageBounds(b).top-d;c.scrollTop>d&&(c.scrollTop=d)}
function A_Ie(a,b){var c=A_xe(a,a.getDomElement()),d=AdfAgent.AGENT.getElementPageBounds(c),e=A_Ce(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_Je(a){var b=A_xe(a,a.getDomElement()),c=A_Ce(a);c!=A_&&(a=A_Be(a),c=AdfAgent.AGENT.getElementPageBounds(c),a=AdfAgent.AGENT.getElementPageBounds(a),b.scrollTop=a.bottom+c.bottom-2*c.top)}
A_Z.prototype.Sc=function(a){if(!this.gf){a=a.getNativeEvent();var b=a.keyCode;if(b==AdfKeyStroke.ALT_KEY&&this.V!=A_)b=A__(this.V),AdfFocusUtils.focusElement(A_Ke(this,b));else if(b==AdfKeyStroke.TAB_KEY)a.shiftKey?AdfFocusUtils.focusElement(this.getDomElement()):(this.Ty=A_b,AdfFocusUtils.QS(this.getDomElement()));else if(b==AdfKeyStroke.ESC_KEY)b=a.altKey,a=a.shiftKey,b&&a&&this.xe&&(A_Le(this),a=A__(this.B),A_Ee(this,a,a),this.V!=A_&&this.B==this.V&&A_0(this,a,a,"focus"),this.xe=A_c,this.da=this.B=
this.jc=A_);else if(b==AdfKeyStroke.ARROWDOWN_KEY){if(!(this.V==A_&&this.jc==A_)){var b=a.altKey,c=a.ctrlKey;a=a.shiftKey;if(b&&(!c&&a)&&(a=this.Nd(),a!=A_))if(this.xe=A_c,this.jc==A_&&(this.da=this.V),A_Le(this),this.B!=A_&&(b=A__(this.B),A_Ee(this,b,b),this.jc==A_&&this.B==this.da&&A_0(this,b,b,"focus"),this.B=A_),this.jc!=A_)A_Me(a.getPeer(),this.jc),this.jc=A_;else{var b=A__(this.da),c=b.getAttribute("layer"),d={};d.edge=A_Z.tf;d.layer=c;d.layerId=b.getAttribute("name");A_Me(a.getPeer(),d)}}}else if(b==
AdfKeyStroke.ARROWRIGHT_KEY&&!AdfPage.PAGE.getLocaleContext().isRightToLeft()||b==AdfKeyStroke.ARROWLEFT_KEY&&AdfPage.PAGE.getLocaleContext().isRightToLeft())b=a.altKey,c=a.ctrlKey,a=a.shiftKey,b&&!c&&a?this.V==A_&&this.B==A_||(this.xe=A_b,this.U==A_||this.U==A_Z.be?(this.B==A_?(a=A__(this.V),this.da=this.B=this.V):a=A__(this.B),b=A_Ne(a),b!=A_?(A_Ie(this,b),this.da!=A_&&this.B!=this.da?this.da==b.id?(A_Ee(this,a,a),a.id==this.V&&A_0(this,a,a,"focus"),A_0(this,b,b,"drop"),this.B=b.id,this.U=A_Z.Fe):
(A_Ee(this,a,a),a.id==this.V&&A_0(this,a,a,"focus"),A_Oe(this,b),this.B=b.id,this.U=A_Z.Tc):this.da!=A_?(A_0(this,b,b,"drop"),this.B=b.id,this.U=A_Z.be):(A_Ee(this,a,a),a.id==this.V&&A_0(this,a,a,"focus"),A_Oe(this,b),this.B=b.id,this.U=A_Z.Tc)):this.da==A_||this.da!=this.B?(A_Ee(this,a,a),a.id==this.V&&A_0(this,a,a,"focus"),A_Pe(this,AdfAgent.AGENT.getElementPageBounds(a),a.parentNode),A_Je(this),this.U=A_Z.ae):(b=A_Ce(this),b.id!=this.da?(A_He(this,b),A_0(this,a,a,"focus"),A_Oe(this,b),this.B=b.id,
this.U=A_Z.Tc):(this.B=A_,this.xe=A_c))):this.U==A_Z.Tc?(A_Le(this),a=A__(this.B),A_0(this,a,a,"drop"),this.U=A_Z.be):this.U==A_Z.ae?(b=A_Ce(this),b!=A_&&(A_He(this,b),this.da!=A_&&b.id!=this.da||this.da==A_?(A_Oe(this,b),this.B=b.id,this.U=A_Z.Tc):(A_Le(this),A_0(this,b,b,"drop"),this.B=this.da,this.U=A_Z.Fe))):this.U==A_Z.Fe&&(a=A__(this.da),b=A_Ne(a),b!=A_?(A_Ie(this,b),A_0(this,a,a,"focus"),A_0(this,b,b,"drop"),this.B=b.id,this.U=A_Z.be):(b=A_Ce(this),b!=a&&(A_He(this,b),A_0(this,a,a,"focus"),
A_Oe(this,b),this.B=b.id,this.U=A_Z.Tc)))):this.V!=A_&&(AdfFocusUtils.focusElement(this.getDomElement()),a=A__(this.V),b=A_Ne(a),b!=A_&&b.id!=A_&&(A_Ie(this,b),A_De(this,b.id)));else if(b==AdfKeyStroke.ARROWLEFT_KEY&&!AdfPage.PAGE.getLocaleContext().isRightToLeft()||b==AdfKeyStroke.ARROWRIGHT_KEY&&AdfPage.PAGE.getLocaleContext().isRightToLeft())b=a.altKey,c=a.ctrlKey,a=a.shiftKey,b&&!c&&a?this.V==A_&&this.B==A_||(this.xe=A_b,this.U==A_||this.U==A_Z.be?(this.B==A_?(a=A__(this.V),this.da=this.B=this.V):
a=A__(this.B),b=A__(this.B).previousSibling,b!=A_?this.da!=A_&&this.B!=this.da?b.id==this.da?(A_He(this,b),A_Ee(this,a,a),a.id==this.V&&A_0(this,a,a,"focus"),A_0(this,b,b,"drop"),this.B=b.id,this.U=A_Z.Fe):(A_He(this,a),A_Ee(this,a,a),a.id==this.V&&A_0(this,a,a,"focus"),A_Oe(this,a),this.U=A_Z.Tc):this.da!=A_?(A_He(this,b),A_0(this,b,b,"drop"),this.B=b.id,this.U=A_Z.be):(A_He(this,a),A_Ee(this,a,a),a.id==this.V&&A_0(this,a,a,"focus"),A_Oe(this,a),this.U=A_Z.Tc):this.da==A_||this.da!=this.B?(A_He(this,
a),A_Ee(this,a,a),a.id==this.V&&A_0(this,a,a,"focus"),A_Oe(this,a),this.U=A_Z.Tc):(b=A_Be(this),b.id!=this.da?(A_0(this,a,a,"focus"),A_Pe(this,AdfAgent.AGENT.getElementPageBounds(b),b.parentNode),A_Je(this),this.B=b.id,this.U=A_Z.ae):(this.B=A_,this.xe=A_c))):this.U==A_Z.Tc?(b=A__(this.B).previousSibling,b!=A_?(A_He(this,b),A_Le(this),A_0(this,b,b,"drop"),this.B=b.id,this.U=A_Z.be):(b=A_Be(this),b!=A_&&(this.da!=A_&&b.id!=this.da||this.da==A_?(A_Pe(this,AdfAgent.AGENT.getElementPageBounds(b),b.parentNode),
A_Je(this),this.B=b.id,this.U=A_Z.ae):(A_Ie(this,b),A_Le(this),A_0(this,b,b,"drop"),this.B=this.da,this.U=A_Z.Fe)))):this.U==A_Z.ae?this.B!=A_&&(A_Le(this),a=A__(this.B),A_0(this,a,a,"drop"),this.U=A_Z.be):this.U==A_Z.Fe&&(a=A__(this.da),b=a.previousSibling,b!=A_?(A_He(this,b),A_0(this,a,a,"focus"),A_0(this,b,b,"drop"),this.B=b.id,this.U=A_Z.be):(b=A_Be(this),b!=a&&(A_0(this,a,a,"focus"),A_Pe(this,AdfAgent.AGENT.getElementPageBounds(b),b.parentNode),A_Je(this),this.B=b.id,this.U=A_Z.ae)))):this.V!=
A_&&(AdfFocusUtils.focusElement(this.getDomElement()),a=A__(this.V),b=a.previousSibling,b!=A_&&b.id!=A_&&(A_He(this,b),A_De(this,b.id)))}};A_h("AdfDhtmlPivotFilterBarCollectionPeer.prototype.HandleComponentKeyDown",A_Z.prototype.Sc);
A_Z.prototype.HandleComponentKeyUp=function(a){if(!this.gf){var b=a.getNativeEvent();switch(b.keyCode){default:if(this.xe&&(!b.altKey||!b.shiftKey)){this.xe=A_c;b=AdfDropEvent.DROP_ORIENTATION_INSIDE;if(this.U==A_Z.Tc)b=AdfDropEvent.DROP_ORIENTATION_BEFORE;else if(this.U==A_Z.ae)b=AdfDropEvent.DROP_ORIENTATION_AFTER;else if(this.U==A_Z.Fe&&this.B!=A_){a=A__(this.B);A_0(this,a,a,"focus");this.U=this.da=this.B=A_;break}if(this.B!=A_){var c=A__(this.B);A_Ee(this,c,c);if(this.da!=A_){var d=A__(this.da),
d=this.getTransferable(d).getTransferData(AdfDataFlavor.getDataFlavorForClassName("AdfPivotTableData"))[0],b=new A_Ae(this.getComponent(),d.layerId,parseInt(c.getAttribute("layer")),b);b.setPartial(A_b);b.queue()}else this.jc!=A_&&(b=new A_Ae(this.getComponent(),this.jc.layerId,parseInt(c.getAttribute("layer")),b),b.setPartial(A_b),b.queue(),b=this.Nd(),b!=A_&&(b=new AdfCustomEvent(b,"dragDropEnd"),b.queue()))}else this.jc!=A_&&(b=new A_Ae(this.getComponent(),this.jc.layerId,-1,b),b.setPartial(A_b),
b.queue(),b=this.Nd(),b!=A_&&(b=new AdfCustomEvent(b,"dragDropEnd"),b.queue()));this.jc=this.B=this.da=this.U=A_;a.cancel()}}}};A_h("AdfDhtmlPivotFilterBarCollectionPeer.prototype.HandleComponentKeyUp",A_Z.prototype.HandleComponentKeyUp);A_g=A_Z.prototype;
A_g.getTransferable=function(a){var b=parseInt(a.getAttribute("layer")),c=a.getAttribute("pgid"),d={};d.edge=A_Z.tf;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_Ce(a){return A_Qe(a,a.getDomElement(),"0")}
function A_Be(a){for(a=A_Ce(a);a!=A_;){var b=A_Ne(a);if(b!=A_)a=b;else return a}return A_}function A_Qe(a,b,c){if("TABLE"==b.nodeName&&AdfAgent.AGENT.getAttribute(b,"pgid")!=A_){var d=AdfAgent.AGENT.getAttribute(b,"layer");if(d!=A_&&d==c)return b}for(d=0;d<b.childNodes.length;d++){var e=A_Qe(a,b.childNodes[d],c);if(e!=A_)return e}return A_}function A_Ne(a){a=a.nextSibling;return AdfAgent.AGENT.getAttribute(a,"layer")!=A_?a:A_}
function A_Ke(a,b){if("INPUT"==b.nodeName)return b;for(var c=0;c<b.childNodes.length;c++){var d=A_Ke(a,b.childNodes[c]);if(d!=A_)return d}return A_}function A_xe(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_Z.ct)return e;e=A_xe(a,e);if(e!=A_)return e}return A_}A_g.Ra=function(){for(var a=A_xe(this,this.getDomElement()).childNodes,b=0;b<a.length;b++){var c=a[b];if("ghost"==c.getAttribute("part"))return c}return A_};
function A_Re(a){if(a.style.height!=A_){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_g.$e=function(a){return 1!=a.nodeType?A_:a.getAttribute("layer")!=A_&&a.getAttribute("pgid")!=A_?a:a.parentNode==A_?A_:a.parentNode==this.getDomElement()?A_:this.$e(a.parentNode)};function A_Se(a){A_Le(a);a.Bn!=A_&&(A_Ee(a,a.Bn,a.Bn),a.Bn=A_)}
function A_Le(a){a=a.Ra();a!=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_Oe(a,b){var c=AdfAgent.AGENT.getElementPageBounds(b),d=AdfAgent.AGENT.getElementPageBounds(A_Ce(a)),e=AdfAgent.AGENT.getElementPageBounds(b.parentNode),f=a.Ra(),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_Re(f);f.style.height=b.offsetHeight-(f.offsetHeight-c)-h+"px";f.style.visibility="visible"}
function A_Pe(a,b,c){var d=A_Ce(a),e=AdfAgent.AGENT.getElementPageBounds(d);c=AdfAgent.AGENT.getElementPageBounds(c);var f=AdfAgent.AGENT.getElementPageBounds(a.getDomElement());a=a.Ra();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_Re(a);a.style.height=d.offsetHeight-(a.offsetHeight-b)-h+"px";a.style.visibility=
"visible"}function A_Te(a,b){var c=AdfAgent.AGENT.getElementPageBounds(b),d=a.Ra(),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_Re(d);d.style.height=parseInt(c.bottom)-parseInt(c.top)-e-(d.offsetHeight-f)+"px";d.style.visibility="visible"}
A_g.lz=function(a,b,c,d){A_Se(this);if(a=A_k.Sh(this.getDomElement(),c,d))a.getAttribute("part")==A_Z.ct?(b=A_Be(this),b!=A_?A_Pe(this,AdfAgent.AGENT.getElementPageBounds(b),a):A_Te(this,a)):(b=this.$e(a),b!=A_&&(a.getAttribute("part")==A_Z.Ii?(A_Oe(this,b),b.setAttribute("orientation",AdfDropEvent.DROP_ORIENTATION_BEFORE)):a.getAttribute("part")==A_Z.HB?(A_Pe(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_Be(this)&&0<=c-parseInt(bounds.right)||AdfPage.PAGE.getLocaleContext().isRightToLeft()&&b==A_Be(this)&&2>=c-parseInt(bounds.left)?(A_Pe(this,bounds,b.parentNode),b.setAttribute("orientation",AdfDropEvent.DROP_ORIENTATION_AFTER)):(A_0(this,b,b,"drop"),this.Bn=b,b.setAttribute("orientation",AdfDropEvent.DROP_ORIENTATION_INSIDE)))))};function A_Ue(a,b){var c=b.getNativeEventTarget();return c&&(c=a.$e(c),c!=A_)?c:A_}
A_g.r=function(a){if(this.Z==A_a){var b=AdfAgent.AGENT;this.Z={};var c=this.getDomElement();this.Z[A_Z.su]=b.getAttribute(c,A_Z.su);this.Z[A_Z.ru]=b.getAttribute(c,A_Z.ru);this.Z[A_Z.qu]=b.getAttribute(c,A_Z.qu);this.Z[A_Z.ku]=b.getAttribute(c,A_Z.ku);this.Z[A_Z.Xg]=b.getAttribute(c,A_Z.Xg);this.Z[A_Z.Wg]=b.getAttribute(c,A_Z.Wg);this.Z[A_Z.Vg]=b.getAttribute(c,A_Z.Vg);this.Z[A_Z.xp]=b.getAttribute(c,A_Z.xp)}return this.Z[a]};