function A_z(a,b,c){this.Init(a,b,c)}A_a("AdfDvtDragSource",A_z);AdfObject.createSubclass(A_z,AdfDragSource);A_z.prototype.Init=function(a,b,c){A_z.superclass.Init.call(this,a,b);this.Hw=c};A_z.prototype.Init=A_z.prototype.Init;function A_Ob(a,b){if(b){var c=b.getComponent().getClientId();a.re||(a.re=[]);a.re.push(c)}}A_z.prototype.getAllowedActions=function(a){var b=this.getComponent(),c=this.getComponent(!0);return b!=c?b.getDragSource().getAllowedActions(a):A_z.superclass.getAllowedActions.call(this)};
A_z.prototype.getDefaultAction=function(a){var b=this.getComponent(),c=this.getComponent(!0);return b!=c?b.getDragSource().getDefaultAction(a):A_z.superclass.getDefaultAction.call(this)};
A_z.prototype.isAvailable=function(a,b){AdfAssert.assertPrototype(a,AdfDnDContext);AdfAssert.assertPrototype(b,AdfUIInputEvent);AdfAssert.St&&AdfDnDContext.assertUserAction(a.getUserAction());var c=this.getComponent(!0).getPeer().hl(b,this.re?this.re:Array(this.getComponent().getClientId()));return c?(this.Nq=c,!0):!1};A_z.prototype.isAvailable=A_z.prototype.isAvailable;A_z.prototype.Zo=function(a){return AdfDataFlavor.getObjectFlavor(a,this.ue(a))};
A_z.prototype.initiateDrag=function(a,b){var c=this.getComponent(!0);this.Nq==c.getClientId()?this.Om=c:this.Om=AdfPage.PAGE.findComponent(this.Nq);A_z.superclass.initiateDrag.call(this,a,b)};
A_z.prototype.GetDragTransferable=function(a){AdfAssert.assertPrototype(a,AdfUIInputEvent);var b=this.getComponent(!0),c=b.getPeer(),b=c.getDragTransferable(b,a);if(null!=b){var d=[],e=[];e.push(this.Zo(b));d.push(this.em(b));if(a=c.rf(a))e.push(AdfDataFlavor.getObjectFlavor(a,this.ue(b))),d.push([a]);return new AdfObjectTransferable(d,e)}return null};A_z.prototype.GetDragTransferable=A_z.prototype.GetDragTransferable;A_z.prototype.em=function(a){return[a]};
A_z.prototype.GetDragOverFeedback=function(a){AdfAssert.assertPrototype(a,AdfUIInputEvent);var b=this.getComponent(!0),c=b.getPeer().getDragOverFeedback(b,a);if(null!=c){this.Ow={width:c.width,height:c.height};this.Gr=null;if(null==c)b=null;else{a=document.createElement("div");a.style.position="absolute";a.style.width=c.width+"px";a.style.height=c.height+"px";b.getPeer().gA()&&(a.className=AdfAgent.DRAG_GHOST_STYLECLASS);if("htmlContent"==c.XS)a.style.overflow="hidden",a.appendChild(c.bU);else if("HTML5"==
b.getPeer().L())a.appendChild(c.GU);else if(AdfDhtmlCommonFlashPeer.Np())a.innerHTML="\x3cimg src\x3d'data:image/png;base64,"+c.img+"'/\x3e";else{AdfDhtmlCommonFlashPeer.OD(b,c.img);var d=document.getElementById(b.getClientId()+"::flashplayer").cloneNode(!0);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 null};A_z.prototype.GetDragOverFeedback=A_z.prototype.GetDragOverFeedback;A_z.prototype.getComponent=function(a){return this.Om&&!a?this.Om:A_z.superclass.getComponent.call(this)};A_z.prototype.GetDragOffset=function(a){AdfAssert.assertPrototype(a,AdfUIInputEvent);var b=this.getComponent(!0);return this.Oq=b.getPeer().Yn(b,a)};A_z.prototype.GetDragOffset=A_z.prototype.GetDragOffset;
A_z.prototype.dragDropEnd=function(){this.getComponent(!0).getPeer().dragDropEnd();this.Om=this.Nq=null};A_z.prototype.dragDropEnd=A_z.prototype.dragDropEnd;A_z.prototype.Xg=function(){if(!this.Gr){var a=this.Oq.x-this.Ow.width/2,b=this.Oq.y-this.Ow.height/2;this.Gr=this.getComponent(!0).getPeer().Ks(a,b)}return this.Gr};A_z.prototype.ue=function(){var a=this.getComponent().getDragSource();return a&&a.Hw?a.Hw:null};