(function(){"use strict";var e;page.commandBindings=$.extend(page.commandBindings,{ExpandAll:a,CollapseAll:a,ZoomIn:a,ZoomOut:a,ZoomToOriginalSize:a});page.using={types:["CampaignDesigner","Lyris"],texts:["Campaign_Designer"]};page.onInit=function(){u8.services.campaignManagementProcess.setProcessToDesignerStage()};page.onLoad=function(){var a=this.url,i={headerGroupName:a.get(["headerGroupName","HeaderType"],"Special"),headerName:a.get("headerName","CampaignDesigner")};var n={headerGroupName:i.headerGroupName,headerName:i.headerName,loadTableCaption:true,showCaption:false,uid:this.url.getUid(),isDefault:true,parent:page,parameters:{1:this.url.getUid()}};$("#header").widget("Header",n);var r={parent:page,size:{height:$(page.element).innerHeight()-50,width:$(page.element).innerWidth()-50},rootRecordUid:this.url.getUid(),selectedRecordUid:u8.parseRecordUid(this.url.get("selectedRecordUid")),isDefault:true};var t=$("#campaignDesigner").uniqueId("campaignDesigner",true);e=u8.widget("CampaignDesigner",t,r)};function a(a,i){if(i=="ExpandAll"){e.setContainersExpandState(true)}else if(i=="CollapseAll"){e.setContainersExpandState(false)}else if(i=="ZoomIn"){e.zoom({direction:"in"})}else if(i=="ZoomOut"){e.zoom({direction:"out"})}else if(i=="ZoomToOriginalSize"){e.zoomToOriginalSize()}}})();