(function(){"use strict";u8.Crm.Widgets.ResponseDetailsPopup=function(e,t){$.extend(this,u8.Crm.Widgets.ResponseDetailsPopup.defaults,t);this.WidgetContainer();this.element=e;this.$=$w(e).$;this.id=u8.Base.Dom.uniqueId();this._popup=null;if(this.parent&&this.parent.children){this.parent.children.add(this)}this.bind()};u8.Crm.Widgets.ResponseDetailsPopup.makeClass({name:"ResponseDetailsPopup",deriveFrom:u8.Base.Widgets.WidgetContainer,events:[]});u8.Crm.Widgets.ResponseDetailsPopup.defaults={popup:{size:{width:.8,height:.8}}};$.extend(u8.Crm.Widgets.ResponseDetailsPopup.prototype,{open:function(){u8.using({texts:["Campaign_Designer"]},function(){var e=$.extend(this.popup,{autoShow:false,parent:this,onCreate:this._onPopupCreate.bind(this),onClose:this._onPopupClose.bind(this),title:"TXT_Campaign_Designer_205"});var t=$("<div/>");this._popup=new u8.Base.Widgets.Popup(t,e);this._popup.open()}.bind(this))},dispose:function(){if(this._isDisposed){return}this.unbind();this._popup=null;this.WidgetContainer_dispose();if(this.parent&&this.parent.children){this.parent.children.remove(this.id)}},setValue:function(e){this.model=e||null},getValue:function(){return this.model},_onPopupCreate:function(e,t){var i=e.getContent();var s=new u8.Base.Widgets.Form(i,{formName:"ActivityResponse.Details",parent:this.popup,context:this._createBindingContext()});this._popup.autoSizeAndPosition().show()},_onPopupClose:function(){this.dispose()},_createBindingContext:function(){var e=new u8.Base.Model({properties:{fixedFieldValues:this.model.fixedFieldValues,link:this.model.link}});return e}})})();