function A_H(a){this.Init(a)}A_h("AdfDvtDropTarget",A_H);AdfObject.createSubclass(A_H,AdfDropTarget);A_H.prototype.Init=function(a){A_H.superclass.Init.call(this);a?(this.ov=a.GetAllowedActions(A_),this.pv=a.GetAllowedFlavors(A_),this.Wv=a.Wv):(this.ov=AdfDnDContext.ACTIONS_ALL,this.pv=[AdfDataFlavor.ANY_FLAVOR])};A_H.prototype.Init=A_H.prototype.Init;function A_Rb(a,b){if(b){var c=b.getComponent().getClientId();a.ge||(a.ge=[]);a.ge.push(c)}}
A_H.prototype.dragExit=function(){this.getComponent().getPeer().dragExit();this.om=A_};A_H.prototype.drop=function(a,b,c,d){AdfAssert.assert(b!=AdfDnDContext.ACTION_NONE);b=A_fc(this,a,b,c,d);if(b==AdfDnDContext.ACTION_NONE)return b;var e=this.getComponent(),f=e.getPeer().getPagePosition(e);c-=f.x;d-=f.y;if((f=a.getDragSource())&&f.Hg){var g=f.Hg();c-=g.x;d-=g.y}e=e.getPeer().tn(c,d);(new AdfDropEvent(A_cc(this),f,a.getTransferable(),b,c,d,AdfDropEvent.DROP_ORIENTATION_INSIDE,e,-1)).queue();return AdfDnDContext.ACTION_NONE};
A_H.prototype.drop=A_H.prototype.drop;
A_H.prototype.AcceptDrag=function(a,b,c,d,e){var f=this.getComponent(),g=f.getPeer(),h=f.getPeer().getPagePosition(f),l=d-h.x,m=e-h.y;if((h=a.getDragSource())&&h.Hg)var n=h.Hg(),l=l-n.x,m=m-n.y;return(l=g.Gh(l,m,this.ht(),a))?(l=l==f.getClientId()?f:AdfPage.PAGE.findComponent(l),this.om!=l&&(this.om=l,a.setDropTargetProperty("DropTarget:flavorAcceptance",A_)),a=A_H.superclass.AcceptDrag.call(this,a,b,c,d,e),a==AdfDnDContext.ACTION_MOVE&&(h==f.getDragSource()&&this.Rt())&&(f=AdfAgent.AGENT.getCursor("move"),
AdfAgent.AGENT.setCursor(AdfPage.PAGE.getGlassPane(),f)),(a&this.GetAllowedActions())!=AdfDnDContext.ACTION_NONE&&("HTML5"==g.I()?g.c&&g.c.dragAccepted&&g.c.dragAccepted():(g=g.pa())&&g.dragAccepted&&g.dragAccepted()),a):AdfDnDContext.ACTION_NONE};A_H.prototype.AcceptDrag=A_H.prototype.AcceptDrag;A_H.prototype.AcceptedDragEnter=function(){this.getComponent().getPeer().dragEnter()};A_H.prototype.AcceptedDragEnter=A_H.prototype.AcceptedDragEnter;A_H.prototype.Rt=A_f(A_c);
A_H.prototype.GetAllowedActions=function(a){var b=A_cc(this);return b!=this.getComponent()?b.getDropTarget().GetAllowedActions(a):this.ov};A_H.prototype.GetAllowedActions=A_H.prototype.GetAllowedActions;A_H.prototype.GetAllowedFlavors=function(a){var b=A_cc(this);return b!=this.getComponent()?b.getDropTarget().GetAllowedFlavors(a):this.pv};A_H.prototype.GetAllowedFlavors=A_H.prototype.GetAllowedFlavors;
function A_fc(a,b,c,d,e){var f=A_cc(a);if(f!=a.getComponent())return A_fc(f.getDropTarget(),b,c,d,e);f=a.Wv;a=f!=A_?f.call(a,b,c,d,e):c;AdfAssert.assertNumber(a);if(a==AdfDnDContext.ACTION_NONE)return a;AdfAssert.assert(0==(a&~AdfDnDContext.ACTIONS_ALL),"Invalid userAction:"+a);return a}A_H.prototype.ht=function(){return this.ge?this.ge:Array(this.getComponent().getClientId())};function A_cc(a){return a.om?a.om:a.getComponent()};