function A_D(){}AdfObject.createSubclass(A_D,AdfDropTarget);A_D.prototype.Init=function(){A_D.superclass.Init.call(this)};A_D.prototype.dragExit=function(a){AdfLogger.LOGGER.finer("dragExit:",this);A_uc(this,a)};
A_D.prototype.drop=function(a,b){AdfLogger.LOGGER.finer("dropped on pivot table:",this);var c=this.getComponent().getPeer(),d=A_vc(a),e=d.edge,d=d.layer,f=a.getDropTargetProperty(A_D.lm);if(null!=f.mg&&(e!=f.mg||d!=f.ng)&&c.Na!=AdfDhtmlPivotTablePeer.Ea)return f.Nx&&(f.Nh="to"),A_wc(c,e,d,f.mg,f.ng,f.Nh),A_uc(this,a),c=a.getDragSource().getComponent(),c.getClientId()!=this.getComponent().getClientId()&&(e=new AdfCustomEvent(c,"dragDropEnd"),c.queueEvent(e)),b};A_D.prototype.drop=A_D.prototype.drop;
function A_vc(a){if(a=a.getTransferable())if(a=a.getTransferData(AdfDataFlavor.ANY_FLAVOR),null!=a&&void 0!=a[0]&&void 0!=a[0].Vd&&void 0!=a[0].Nc)return a[0];return null}
A_D.prototype.AcceptDrag=function(a,b,c,d,e){var f=this.getComponent(),g=f.getPeer(),h=AdfDnDContext.ACTION_NONE;c=A_D.superclass.AcceptDrag.call(this,a,b,c,d,e);if(null!=f.getProperty("modelName")&&f.getProperty("modelName")!=a.getDragSource().getComponent().getProperty("modelName")||null==f.getProperty("modelName")&&"oracle.dss.adf.pivotFilterBar.PivotFilterBar"==a.getDragSource().getComponent().getComponentType())c=AdfDnDContext.ACTION_NONE;var l=A_vc(a);void 0!=l.js&&null!=l.js&&l.js!=f.getClientId()&&
(c=AdfDnDContext.ACTION_NONE);b=f=null;A_kc(g)&&null!=l&&(f=l.Vd,b=l.Nc);if(null==f||null==b)c=AdfDnDContext.ACTION_NONE;AdfLogger.LOGGER.finer("pivot drag source edge:"+f+" layer:"+b);if(c!=AdfDnDContext.ACTION_NONE){l=AdfAgent.AGENT;c=null;var m={};m.x=d;m.y=e;m=A_pc(g,l,m);m==AdfPivotTableUtils.s?c=A_qc(g,l,d):m==AdfPivotTableUtils.o?c=A_rc(g,l,e):m==AdfPivotTableUtils.bd?c=A_qc(g,l,d):m==AdfPivotTableUtils.wd&&(c=A_rc(g,l,e));null!=c&&(d=a.getDropTargetProperty(A_D.lm),null==d&&(d={},a.setDropTargetProperty(A_D.lm,
d)),d.mg=c.Vd,d.ng=c.Nc,d.Nh=c.Vn,d.Nx=c.Yd,0<=c.it&&(g.b.zS[1].scrollLeft=c.it),0<=c.jt&&(g.b.kS[1].scrollTop=c.jt),d.mg!=f||d.ng!=b)&&(e=!0,d.mg==f&&(d.ng==b+1&&"before"==d.Nh&&(e=!1),d.ng==b-1&&"after"==d.Nh&&(e=!1)),e&&(h=AdfDnDContext.ACTION_MOVE,A_xc(g,d.mg,d.ng,d.Nh)));h==AdfDnDContext.ACTION_NONE&&A_uc(this,a)}return h};A_D.prototype.AcceptDrag=A_D.prototype.AcceptDrag;A_D.prototype.GetAllowedFlavors=function(){return[AdfDataFlavor.ANY_FLAVOR]};A_D.prototype.GetAllowedFlavors=A_D.prototype.GetAllowedFlavors;
A_D.prototype.GetAllowedActions=function(){return AdfDnDContext.ACTIONS_ALL};A_D.prototype.GetAllowedActions=A_D.prototype.GetAllowedActions;function A_uc(a,b){A_yc(a.getComponent().getPeer());A_zc(a.getComponent().getPeer());var c=b.getDropTargetProperty(A_D.lm);null!=c&&(c.mg=null,c.ng=null,c.Nh=null,c.Nx=null)}A_D.lm="PivotTableDropTarget:hints";