adf.AMX_DTMODE=adf.mf.environment.profile.dtMode;adf.mf.environment.profile.dtMode||(adf.mf.internal.perf.perfTimings(!1,!1,!0,"Loading trinidad lib"),null!=adf.mf.environment.profile.messageBundleBaseUrl?adf.mf.api.amx.loadTrinidadResources(adf.mf.environment.profile.messageBundleBaseUrl):adf.mf.api.amx.loadTrinidadResources("js"));
function getFeatureRoot(){var a=adf.mf.api.getQueryString(),a=adfc.internal.UrlUtil.getFeatureRoot(a);adf.FEATURE_ROOT=a;null==a?adfc.internal.LogUtil.fine("no feature root specified"):adfc.internal.LogUtil.fine("using feature root of: "+a)}
function getEntryPointDocumentPath(){var a=adf.mf.api.getQueryString(),a=adfc.internal.UrlUtil.getEntryPointDocumentPath(a);if(null==a)throw a=adfc.internal.MsgUtil.getLocalizedText(adfc.internal.MsgUtil.NO_FEATURE_ENTRY_POINT),adfc.internal.LogUtil.showAlert(adf.mf.internal.log.getStringifedIfNeeded(a)),Error(a);return a}
adf.mf.internal.api.showFirstAmxPage=function(){adfc.internal.LogUtil.fine("BEGIN: showFirstAmxPage()");$(document).ready(function(){adf.mf.internal.perf.perfTimings(!1,!1,!0,"document ready event received");adfc.internal.LogUtil.fine("document.ready event received");getFeatureRoot();var a=function(){adf.mf.internal.perf.perfTimings(!1,!1,!0,"END: initialize AdfcContext");var a=getEntryPointDocumentPath();adfc.internal.LogUtil.fine("entryDocPath="+a);var b={};b.entryPoint=a;var d=function(a,b){adf.mf.internal.perf.perfTimings(!1,
!1,!0,"END: determine first viewId");if(b.isNewViewId()){var d=b.getVdlDocumentPath();adfc.internal.LogUtil.fine("displaying initial view, page="+d);adf.mf.internal.perf.perfTimings(!1,!1,!0,"BEGIN: display firxt AMX page");adf.mf.api.amx.displayAmxPage(d).done(function(){adf.mf.internal.perf.perfTimings(!1,!1,!0,"END: display first AMX page")})}else throw adfc.internal.LogUtil.showAlert(adf.mf.internal.log.getStringifedIfNeeded("failed to determine initial view to display")),Error("failed to determine initial view to display");
},k=function(a,b){adfc.internal.LogUtil.showAlert(adf.mf.internal.log.getStringifedIfNeeded(b));throw Error(b);};adf.mf.environment.profile.dtMode?(a=new adfc.NavigationResult(!0,!1,a,a,"",!1),d(b,a)):(adf.mf.internal.perf.perfTimings(!1,!1,!0,"BEGIN: determine first viewId"),adfc.NavigationHandler.getInitialViewId(b,d,k))},b=function(a){adfc.internal.LogUtil.showAlert("Failed to initialize the AdfcContext: "+adf.mf.internal.log.getStringifedIfNeeded(a))};try{adf.mf.environment.profile.dtMode?a():
(adfc.internal.LogUtil.fine("initializing the AdfcContext ..."),adf.mf.internal.perf.perfTimings(!1,!1,!0,"BEGIN: initialize AdfcContext"),adfc.internal.AdfcContext.initialize(a,b))}catch(d){throw adfc.internal.LogUtil.showAlert(adf.mf.internal.log.getStringifedIfNeeded(d.message)),d;}})};adf.mf.internal.BUILD_CONFIGURATION="release";