function A_G(a,b,c){this.Init(a,b,c)}A_h("AdfDvtDragSource",A_G);AdfObject.createSubclass(A_G,AdfDragSource);A_G.prototype.Init=function(a,b,c){A_G.superclass.Init.call(this,a,b);this.Sv=c};A_G.prototype.Init=A_G.prototype.Init;function A_Qb(a,b){if(b){var c=b.getComponent().getClientId();a.ge||(a.ge=[]);a.ge.push(c)}}
A_G.prototype.isAvailable=function(a,b){AdfAssert.assertPrototype(a,AdfDnDContext);AdfAssert.assertPrototype(b,AdfUIInputEvent);AdfAssert.DEBUG&&AdfDnDContext.assertUserAction(a.getUserAction());var c=this.getComponent(A_b).getPeer().Hk(b,this.ge?this.ge:Array(this.getComponent().getClientId()));return c?(this.SF=c,A_b):A_c};A_G.prototype.isAvailable=A_G.prototype.isAvailable;A_G.prototype.so=function(a){return AdfDataFlavor.getObjectFlavor(a,this.ie(a))};
A_G.prototype.GetDragTransferable=function(a){AdfAssert.assertPrototype(a,AdfUIInputEvent);var b=this.getComponent(A_b),c=b.getPeer(),b=c.getDragTransferable(b,a);if(b!=A_){var d=[],e=[];e.push(this.so(b));d.push(this.Dl(b));if(a=c.cf(a))e.push(AdfDataFlavor.getObjectFlavor(a,this.ie(b))),d.push([a]);return new AdfObjectTransferable(d,e)}return A_};A_G.prototype.GetDragTransferable=A_G.prototype.GetDragTransferable;A_G.prototype.Dl=function(a){return[a]};
A_G.prototype.GetDragOverFeedback=function(a){AdfAssert.assertPrototype(a,AdfUIInputEvent);var b=this.getComponent(A_b),c=b.getPeer().getDragOverFeedback(b,a);if(c!=A_){this.$v={width:c.width,height:c.height};this.Vq=A_;if(c==A_)b=A_;else{a=document.createElement("div");a.style.position="absolute";a.style.width=c.width+"px";a.style.height=c.height+"px";b.getPeer().rz()&&(a.className=AdfAgent.DRAG_GHOST_STYLECLASS);if("htmlContent"==c.LS)a.style.overflow="hidden",a.appendChild(c.QT);else if("HTML5"==
b.getPeer().I())a.appendChild(c.BU);else if(AdfDhtmlCommonFlashPeer.gp())a.innerHTML="\x3cimg src\x3d'data:image/png;base64,"+c.img+"'/\x3e";else{AdfDhtmlCommonFlashPeer.UC(b,c.img);var d=document.getElementById(b.getClientId()+"::flashplayer").cloneNode(A_b);d.firstChild.id+="_drag";d=d.innerHTML;c="dragFeedback\x3d"+b.getClientId()+"\x26width\x3d"+c.width+"\x26height\x3d"+c.height;d=d.replace("dragPlaceholder\x3dtrue",c);AdfAgent.AGENT.getElementById(b.getClientId()).appendChild(a);a.innerHTML=
d}b=a}return b}return A_};A_G.prototype.GetDragOverFeedback=A_G.prototype.GetDragOverFeedback;A_G.prototype.getComponent=function(a){return this.Vv&&!a?this.Vv:A_G.superclass.getComponent.call(this)};A_G.prototype.GetDragOffset=function(a){AdfAssert.assertPrototype(a,AdfUIInputEvent);var b=this.getComponent(A_b);return this.hq=b.getPeer().sn(b,a)};A_G.prototype.GetDragOffset=A_G.prototype.GetDragOffset;
A_G.prototype.dragDropEnd=function(){this.getComponent(A_b).getPeer().dragDropEnd();this.Vv=this.SF=A_};A_G.prototype.dragDropEnd=A_G.prototype.dragDropEnd;A_G.prototype.Hg=function(){if(!this.Vq){var a=this.hq.x-this.$v.width/2,b=this.hq.y-this.$v.height/2;this.Vq=this.getComponent(A_b).getPeer().Zr(a,b)}return this.Vq};A_G.prototype.ie=function(){var a=this.getComponent().getDragSource();return a&&a.Sv?a.Sv:A_};