(function(){page.onFormCreate=function(a){};page.campaignSaveAs={save:function(a){var e=a.page;var t=u8.Base.Widgets.Tools.closest(a,"Form");var i=t.context,n=i.get("campaignName"),g=i.get("campaignStartDate");var c=t.getWidget("labelValidationMessage");if(!n){$(c.element).show();return}u8.services.campaignManagement.saveAs({templateUid:e.url.getUid(),campaignName:n,campaignStartDate:g},function(a,t){if(u8.isValidRecordUid(t.uid)){e.proceed({newUid:t.uid})}})}}})();