function Fe(a,b,d,e){this.Init(a,b,d,e)}v("AdfMasonryLayoutBehavior",Fe);z.l(Fe,Da);Fe.prototype.Init=function(a,b,d,e){Fe.f.Init.call(this);this.Pi=a;this.pi=b;this.oi=d;this.YB=e};z.a("AdfMasonryLayoutBehavior.prototype.Init",{Init:Fe.prototype.Init});Fe.prototype.za=function(a){B.J(a,J);a instanceof AdfUICommand&&a.addEventListener(bb.Lc,this.C8,this)};z.a("AdfMasonryLayoutBehavior.prototype.initialize",{za:Fe.prototype.za});
Fe.prototype.C8=function(a){if(a.$C()){var b=a.getSource(),d=a=n;if(this.Pi==n)for(var e=n;b!=n;){if(b instanceof AdfRichMasonryLayout){a=b;d=e;break}e=b;b=b.getParent()}else switch(this.pi){case "delete":case "resize":d=b.j(this.Pi);d!=n&&(a=d.getParent());break;default:a=b.j(this.Pi)}B.assert(a!=n,'The masonryLayout associated with the MasonryLayoutBehavior for\x3d"'+this.Pi+'" could not be found (masonryLayout component \x3d '+a+").");if(a!=n){e='The masonryLayout associated with the MasonryLayoutBehavior for\x3d"'+
this.Pi+'" is not a masonryLayout (masonryLayout component \x3d '+a+").";b=n;if("delete"==this.pi||"resize"==this.pi)B.assert(d!=n,'The tile associated with the MasonryLayoutBehavior for\x3d"'+this.Pi+'" could not be found (tile component \x3d '+d+")."),b=d.e(),B.s(b);switch(this.pi){case "delete":B.assert(a.$x!=n,e);a.$x(b);break;case "resize":B.s(this.YB);B.assert(a.ss!=n,e);a.ss(b,this.YB);break;default:d=parseInt(this.oi),isNaN(d)&&(d=-1),B.s(this.YB),B.assert(a.Uu!=n,e),a.Uu(this.YB,d)}}}};