function A_K(){}AdfObject.createSubclass(A_K,AdfDropTarget);A_K.prototype.Init=function(){A_K.superclass.Init.call(this)};A_K.prototype.dragExit=function(a){AdfLogger.LOGGER.finer("dragExit:",this);A_wc(this,a)};
A_K.prototype.drop=function(a,b){AdfLogger.LOGGER.finer("dropped on pivot table:",this);var c=this.getComponent().getPeer(),d=A_xc(a),e=d.edge,d=d.layer,f=a.getDropTargetProperty(A_K.Kl);if(f.Yf!=A_&&!(e==f.Yf&&d==f.Zf)&&c.Ma!=AdfDhtmlPivotTablePeer.va)return f.Yw&&(f.wh="to"),A_yc(c,e,d,f.Yf,f.Zf,f.wh),A_wc(this,a),c=a.getDragSource().getComponent(),c.getClientId()!=this.getComponent().getClientId()&&(e=new AdfCustomEvent(c,"dragDropEnd"),c.queueEvent(e)),b};
A_h("AdfPivotTableDropTarget.prototype.drop",A_K.prototype.drop);function A_xc(a){if(a=a.getTransferable())if(a=a.getTransferData(AdfDataFlavor.ANY_FLAVOR),a!=A_&&a[0]!=A_a&&a[0].Md!=A_a&&a[0].Fc!=A_a)return a[0];return A_}
A_K.prototype.AcceptDrag=function(a,b,c,d,e){var f=this.getComponent(),g=f.getPeer(),h=AdfDnDContext.ACTION_NONE;c=A_K.superclass.AcceptDrag.call(this,a,b,c,d,e);if(f.getProperty("modelName")!=A_&&f.getProperty("modelName")!=a.getDragSource().getComponent().getProperty("modelName")||f.getProperty("modelName")==A_&&"oracle.dss.adf.pivotFilterBar.PivotFilterBar"==a.getDragSource().getComponent().getComponentType())c=AdfDnDContext.ACTION_NONE;var l=A_xc(a);l.yr!=A_a&&l.yr!=A_&&l.yr!=f.getClientId()&&
(c=AdfDnDContext.ACTION_NONE);b=f=A_;A_mc(g)&&l!=A_&&(f=l.Md,b=l.Fc);if(f==A_||b==A_)c=AdfDnDContext.ACTION_NONE;AdfLogger.LOGGER.finer("pivot drag source edge:"+f+" layer:"+b);if(c!=AdfDnDContext.ACTION_NONE){l=AdfAgent.AGENT;c=A_;var m={};m.x=d;m.y=e;m=A_rc(g,l,m);m==AdfPivotTableUtils.l?c=A_sc(g,l,d):m==AdfPivotTableUtils.n?c=A_tc(g,l,e):m==AdfPivotTableUtils.Uc?c=A_sc(g,l,d):m==AdfPivotTableUtils.pd&&(c=A_tc(g,l,e));if(c!=A_&&(d=a.getDropTargetProperty(A_K.Kl),d==A_&&(d={},a.setDropTargetProperty(A_K.Kl,
d)),d.Yf=c.Md,d.Zf=c.Fc,d.wh=c.pn,d.Yw=c.Pd,0<=c.ws&&(g.b.cS[1].scrollLeft=c.ws),0<=c.xs&&(g.b.AR[1].scrollTop=c.xs),d.Yf!=f||d.Zf!=b))e=A_b,d.Yf==f&&(d.Zf==b+1&&"before"==d.wh&&(e=A_c),d.Zf==b-1&&"after"==d.wh&&(e=A_c)),e&&(h=AdfDnDContext.ACTION_MOVE,A_zc(g,d.Yf,d.Zf,d.wh));h==AdfDnDContext.ACTION_NONE&&A_wc(this,a)}return h};A_h("AdfPivotTableDropTarget.prototype.AcceptDrag",A_K.prototype.AcceptDrag);A_K.prototype.GetAllowedFlavors=function(){return[AdfDataFlavor.ANY_FLAVOR]};
A_h("AdfPivotTableDropTarget.prototype.GetAllowedFlavors",A_K.prototype.GetAllowedFlavors);A_K.prototype.GetAllowedActions=function(){return AdfDnDContext.ACTIONS_ALL};A_h("AdfPivotTableDropTarget.prototype.GetAllowedActions",A_K.prototype.GetAllowedActions);function A_wc(a,b){A_Ac(a.getComponent().getPeer());A_Bc(a.getComponent().getPeer());var c=b.getDropTargetProperty(A_K.Kl);c!=A_&&(c.Yf=A_,c.Zf=A_,c.wh=A_,c.Yw=A_)}A_K.Kl="PivotTableDropTarget:hints";