(function(){page.activityExecution={onFormCreate:function(e){this.updateRadioButtons=this.updateRadioButtons.bind(this,e);e.context.bind("PropertyChange",this._onModelPropertyChange.bind(this));this.updateRadioButtons();this.setActiveEmailForm(e)},_onModelPropertyChange:function(e,t){if(t.propertyName.endsWith("Variable")){this.updateRadioButtons()}},updateRadioButtons:function(e){var t=e.context,i=e.getComponent("fixedType");if(!t){return}if(t.get("phoneVariable")!="false"||t.get("emailVariable")!="false"||t.get("faxVariable")!="false"||t.get("smsVariable")!="false"||t.get("letterVariable")!="false"||t.get("inPersonVariable")!="false"){i.setChecked(false);i.setValue(null);i.setDisabled(true)}else{i.setDisabled(false)}},setActiveEmailForm:function(e){if(e.formName!=="ActivityExecution"){return}var t=page.url.getUid();var i=e.widgets["emailForm"];var a=e.widgets["emailFormLyris"];if(u8.services.lyris){u8.services.lyris.getLyrisInformationState(t,function(e){i.options.visible=!e.lyrisIsEnabled;a.options.visible=e.lyrisIsEnabled})}else{i.options.visible=true;a.options.visible=true}}}})();