window.ShowContentDialog=function ShowContentDialog(args){if(args.label&&args.label.toLowerCase().substr(0,6)!=="label.")args.label="Label."+args.label;if(args.title&&args.title.toLowerCase().substr(0,6)!=="label.")args.title="Label."+args.title;eXpress.core.ShowContentDialog(args)};var eXpress;(function(eXpress){var core;(function(core){function ShowContentDialog(args){var contentService=new eXpress.services.ContentService(core.context);var contentManager=new core.ContentManager(contentService);core.StyleguideContentPopup.createDialogAsync(contentManager,{labelContentKey:args.label,titleContentKey:args.title,dialogId:args.dialogId,cssClass:args.cssClass,forceRefresh:args.forceRefresh}).then(function(res){new core.StyleguideContentPopup(res).openAsync();if(args.openFunction)args.openFunction()})}core.ShowContentDialog=ShowContentDialog;function ShowViewDialog(args,data){core.StyleguideViewPopup.createDialogAsync(args,data).then(function(res){return new core.StyleguideViewPopup(res).openAsync()})}core.ShowViewDialog=ShowViewDialog})(core=eXpress.core||(eXpress.core={}))})(eXpress||(eXpress={}));