12345678910 |
- /**
- * IBM Confidential OCO Source Materials IBM Business Platform: Content Apps
- * (C) Copyright IBM Corp. 2016, 2018
- *
- * The source code for this program is not published or otherwise divested of
- * its trade secrets, irrespective of what has been deposited with the U.S.
- * Copyright Office
- */
- define("bacontentnav/nls/ContentNavResources",{root:!0,cs:!0,da:!0,de:!0,es:!0,fi:!0,fr:!0,he:!0,hr:!0,hu:!0,it:!0,ja:!0,kk:!0,ko:!0,no:!0,nb:!0,nl:!0,pl:!0,pt:!0,"pt-br":!0,ro:!0,ru:!0,sl:!0,sv:!0,th:!0,tr:!0,zh:!0,"zh-cn":!0,"zh-tw":!0}),define("bacontentnav/nls/root/ContentNavResources",{allContent:"All content",allGenericItems:"All",myContent:"My content",copy:"Copy to",confirmDelete:"Confirm delete",confirmDeleteMessage:"Deleting entries can break links. Are you sure you want to delete the selected entries?",dashboards:"Dashboards",explorations:"Explorations",delete:"Delete",edit:"Edit",notebooks:"Notebooks",modificationTime:"Modified",modifiedWithColon:"Modified:",move:"Move to",name:"Name",tenant:"Tenant",tenantSettings:"Tenant Settings",tenantSet:"Tenant updated",tenantSetError:"Error setting tenant",tenantClear:"Tenant cleared",tenantClearError:"Error clearing tenant",owner:"Owner",reports:"Reports",copyMove:"Copy or move:",copyOnly:"Copy",noOfItemSelected:"%{noOfItems} selected",selectDestination:"Select a destination",selectAccountGroupOrRole:"Select groups, users or roles",members:"Members",teamContent:"Team content",folderTeamContent:"Folder (Team Content)",folders:"Folders",goToCloudLocation:"Go to cloud location",type:"Type",typeWithColon:"Type:",others:"Other",unknown:"Unknown",description:"Description",general:"General",advancedProperties:"Advanced",location:"Location",schedule:"Schedule",created:"Created",createdWithColon:"Created:",disableThisEntry:"Disable this entry",hideThisEntry:"Hide this entry",indexed:"Indexed",language:"Language",reportOutputVersions:"Report output versions",reportOutputVersion:"Report output version",rowsPerPageHtmlReport:"Rows per page in HTML Reports",package:"Package",data:"Data",dataModule:"Data module",mode:"Mode",live:"Live",snapshot:"Snapshot",noSnapshotsFound:"No Snapshot found",uploadedFile:"Uploaded file",fileUpload:"Upload files",dataSetEx:"Data set",externalRepository:"External repository",queryMode:"Query mode",queryModeCompatible:"Compatible",queryModeDynamic:"Dynamic",report:"Report",activeReport:"Active Report",query:"Query",analysis:"Analysis",permission:"Permissions",capabilities:"Capabilities",newItemMenuLabel:"New",newFolderDefaultName:"New Folder",newFolderLabel:"New folder",switchViewsLabel:"Switch Views",emptyTableContentMessage:"There's nothing in this folder.",emptyRecentList:"You haven't viewed any content recently.",back:"Back",optionsMenuLabel:"Options",defaultAction:"Default action",reportOptions:"Report options",promptValues:"Prompt values",runTheReport:"Run the report",viewMostRecentReport:"View most recent report",openWithReportStudio:"Open with Report Studio",comingSoon:"Coming soon",recentlyViewed:"Recently viewed",destination:"Destination:",lastUsed:"Last Used",reportView:"Report View",reportViews:"Report Views",adminFolder:"Administration",folder:"Folder",dashboard:"Dashboard",dashboardTemplate:"Dashboard Template",exploration:"Exploration",story:"Story",stories:"Stories",notebook:"Notebook",workspace:"Workspace",pagelet:"Page",content:"Content",directory:"Namespaces",dataSet:"Data set",powerPlayCube:"PowerPlay Cube",powerPlayReport:"PowerPlay Report",powerPlay8Report:"PowerPlay Report",powerPlay8ReportView:"PowerPlay Report View",reportTemplate:"Report Template",packageConfigurations:"Package Configuration",agent:"Agent",agentDefinition:"Agent Definition",agentDefinitionView:"Agent View",dataMovementTask:"Data Movement Task",dataMovementTaskAlias:"Data Movement Task Alias",document:"Document",DocumentRetention:"Document properties",jobDefinition:"Job Definition",job:"Job",jobs:"Jobs",metricsDataSourceETLTask:"Metrics Data Source ETL Task",metricsExportTask:"Metrics Export Task",metricsFileImportTask:"Metrics File Import Task",metricsMaintenanceTask:"Metrics Maintenance Task",planningTask:"Planning Task",shortcut:"Shortcut",shortcuts:"Shortcuts",URL:"URL",launchable:"Launchable",dataSetFolder:"Data Set Folder",ViewAccessibleLabel:"View %{label}",overrideReportOptions:"Override the default report options",formats:"Formats",saveReport:"Save the report",promptForValues:"Prompt me",html:"HTML",pdf:"PDF",spreadsheetML:"Excel",xlsxData:"Excel Data",csv:"CSV",xml:"XML",runAs:"Run as",permissionHeader:"Permission",read:"Read",write:"Write",execute:"Execute",setPolicy:"Set Policy",full:"Full",traverse:"Traverse",toastDoneMoving:"%{noOfItems} items were moved.",toastDoneCopying:"%{noOfItems} items were copied.",toastDoneShortcutting:"%{noOfItems} shortcuts were created.",toastDoneDeleting:"%{noOfItems} items were deleted.",toastDoneMovingSingular:"%{nameOfItem} was moved.",toastDoneCopyingSingular:"%{nameOfItem} was copied.",toastDoneShortcuttingSingular:"%{nameOfItem} was created.",toastCreateNewFolder:"%{nameOfFolder} was created.",toastDoneDeletingSingular:"%{nameOfItem} was deleted.",toastLaunchPerspectiveError:"Cannot open %{objectType}.",toastItemsWereAdded:"%{noOfItems} items were added to the profile.",toastItemsWereAddedSingular:"%{noOfItems} item was added to the profile.",toastItemsAlreadyAddedSingular:"Item has already been added to the profile.",toastItemsAlreadyAdded:"Items have already been added to the profile.",toastRunRequestWasSubmitted:"Run request was submitted.",toastNoCapabilityForContainer:"No capabilities or permissions to save into '%{nameOfContainer}'.",shortCutName:"%{nameOfItem}%{shortCutLabel}",ok:"OK",cancel:"Cancel",permissionDetails:"Permission Details",grant:"Grant",deny:"Deny",overrideParentPermissions:"Override parent permissions",applyToAllChildren:"Apply to all children",policiesTableLable:"Policies",policesAddButtonLabel:"Member",policesAddMemberButtonLabel:"Add",policesRemove:"Remove",policiesFindAUserHint:"Search",policiesFindModeMenuTip:"Search method",policiesFindMode:"Search",policiesTypeInMode:"Type in",policyFilterAccounts:"Users",policyFilterRoles:"Roles",policyFilterGroups:"Groups",policyToastMessageSyntax:"Type the names of the entries to find, separated by semi-colons. Use the format namespace/user, group or role; For example, type Cognos/Everyone",policyToastMessageNamespace:"You must first select a namespace.",emptyPolicyList:"Nothing found",applyLabel:"Apply",permissionRead:"Read",permissionRun:"Run",permissionWrite:"Write",permissionFull:"Full",permissionCustom:"Custom",permissionDetailsColumnAccess:"Access",permissionDetailsColumnPermission:"Permission",permissionDetailsColumnAction:"Action",permissionSetAccess:"Set access",preferencesMyCredentials:"My credentials",preferencesCredentialsLabel:"Credentials",preferencesDataSourceCredentialsLabel:"Data Servers",preferencesDatasourceTitle:"Data server credentials",preferencesDatasourceHeader:"Data server name",preferencesGroupsAndRoles:"Groups and Roles",preferencesMyCapabilities:"My Capabilities",preferencesCredentialsHintText:"Specify the users, groups or roles that can use your credentials to run activities:",preferencesCapabilitiesHintText:"These capabilities are available to you:",preferencesGroupsAndRolesHintText:"In this session, you can use the access permissions of these groups and roles:",preferencesDataSourceCredentialsHintText:"You have saved credentials for these data servers:",enableAccessibilitySupport:"Enable accessibility support",languages:"Languages",True:"True",False:"False",id:"ID",run:"Run",createVersion:"Create a version",create:"Create",size:"Size",sizeByte:"%{value} B",sizeKiloByte:"%{value} KB",sizeMegaByte:"%{value} MB",sizeGigaByte:"%{value} GB",sizeTeraByte:"%{value} TB",sizePetaByte:"%{value} PB",refreshedDatetime:"Refreshed time",dataRefreshed:"Data refreshed",dataRefWithColon:"Data refreshed:",missingPermissions:"You need permissions to view the properties for this item.",missingPolicies:"You only see entries that you have permissions for. You might see different entries if you sign in to a different namespace",versions:"Versions",archives:"Archives",occurrences:"Occurrences",days:"Day(s)",months:"Month(s)",errorMessages:"Messages",errorMessageLengthFolderName:"Please enter a folder name that does not exceed 255 characters.",errorMessageApostropheError:"Please enter a file name that does not contain both ' and \" characters",error:"Error",warn:"Warning",fatal:"Fatal",debug:"Debug",info:"Information",runTime:"Run time",requestTime:"Request time",startTime:"Start time",endTime:"End time",successful:"Successful",failed:"Failed",noSavedOutputs:"There are no saved outputs.",noVersions:"No versions available",noReportOptionsAvailable:"No report options record available.",showDetails:"Open details panel",unavailable:"Unavailable",runInBackgroundOption:"Run in background",selectAFormat:"Please select a format",delivery:"Delivery",now:"Now",later:"Later",invalidTime:"Time selected is earlier than current time. Please select again.",executionPrompt:"Prompt for values",currentValues:"Current values",noPromptsValuesSet:"You currently have no prompt values set",setValues:"Set values",numOfPromptValues:"prompt values",clear:"Clear",sourceReport:"Source Report",reportName:"Report Name",reportLocation:"Report Location",burst:"Burst the report",sourcePackage:"Source Package",packageName:"Package Name",packageLocation:"Package Location",confirmTakeOwnership:"Confirm Take Ownership",confirmTakeOwnershipMessage:"Are you sure you want to take ownership of the selected entries?",SetLabel:"Set...",externalRepositories:"External Repositories",toastTakeOwnership:"You now own %{noOfItemsClaimed} of %{noOfItems} selected items.",runAsUser:"With user's credentials",runWithOwnerCapabilities:"With owner capabilities",runAsOwner:"As %{ownerName}",pdfOptions:"PDF options",set:"Set",passwordNotMatched:"Passwords don't match or are missing",Orientation:"Orientation",default:"Default",portrait:"Portrait",landscape:"Landscape",pageSize:"Paper size",letter:"Letter",legal:"Legal","11x17":"11x17",A3:"A3",A4:"A4",B4JIS:"B4 JIS",B5JIS:"B5 JIS",requiresPasswordToOpenReport:"Requires a password to open the report",requiresPasswordToAccessOptions:"Requires a password to access options",password:"Password:",confirmPassword:"Confirm Password:",runHistory:"Run History",viewRunHistory:"View...",jobAdvancedProperties:"Properties",scheduleAJob:"Schedule Job",viewCurrentVersions:"View document versions",viewArchivedVersions:"View archived versions",renameCollisionError:"%{name} already exists. Try a different name.",nameCollision:"An item with this name already exists:",nameCollisionMessage:"What do you want to do?",copyReplace:"Copy and replace",keepBoth:"Keep both",copySkip:"Don't copy",moveReplace:"Move and replace",moveSkip:"Don't move",repeatNameCollisionAction:"Do this for the next %{noItems} conflicts",repeatNameCollisionActionSingular:"Do this for the next conflict",bulkNameCollision:"There are %{noOfItems} items with names that already exist",overwrite:"Overwrite",rename:"Rename",nameCollisionGeneric:"There are one or more items with a name that already exists.",repeatedDeleteError:"One or more of these items are already in the process of being deleted. Wait until the delete action completes and try again.",repeatedDeleteErrorTitle:"Repeated delete",details:"Details:",role:"Role",account:"Account",contact:"Contact",distributionList:"Distribution list",group:"Group",namespace:"Namespace",SetLanguagesLabel:"Set...",SetExternalRespostoryLabel:"Set...",SetCapabilitiesLabel:"Set...",JobAdvancedSettings:"Set...",JobSchedule:"Set...",JobAdvancedRunHistory:"View...",invalidNumber:"The value entered is not a number. Type a number.",exceedMaxLength:"The text is too long. Shorten to %{maxLength} characters.",invalidInput:"Invalid input",invalidEmailMessage:"Email address is not valid.",typeInHintText:"Example: Namespace1/name; Namespace2/name;",importDeployment:"Import deployment",exportDeployment:"Export deployment",between:"Between",greaterOrEqual:"Greater than or equal to %{upperboundValue}",lessOrEqual:"Less than or equal to %{lowerboundValue}",and:"and",properties:"Properties - %{objectName}",none:"None",objectDeleted:"This object doesn't exist",PageLayout:"Page Layout",PageStyle:"Style",Gateway:"Gateway",PowerPlayReport:"PowerPlay Report",more:"More",title:"Title",itemName:"Item name",showMissingPolicies:"show",hideMissingPolicies:"hide",nowOrLaterRadioOptions:"Run now or later options",runHistoryUnits:"Run history units",reportOutputVersionsUnits:"Report output versions units",breadCrumbsAccessibleLabel:"Ancestor Folders",selectAllFolder:"Select all in folder",deselectAllFolder:"Deselect all in folder",clearAllSelected:"Clear all selected",a11yContentListUpdatedNotification:"Now showing contents of %{folderOrPackageName}",a11yPropertyPane:"Properties of object %{nameOfObject}",moreActionsMenu:"More Actions Menu",itemType:"Item type",confirmCancelMessage:"Do you want to discard your changes?",confirmCancel:"Confirm cancel",formatOptions:"Format options",listControlColumns:"List Columns",source:"Source",external:"External",removeSelectedItem:"Remove selected item",deleteReportVersion:"Delete report version",dataset:"Data set",numberRows:"Number of rows",numberColumns:"Number of columns",TimeToRefresh:"Time to refresh",LastRefreshedBy:"Refreshed by",OverwriteFileSuccessfully:"Successfully overwrote the object %{nameOfObject}",RenameFileSuccessfully:"Successfully renamed the object from %{originalNameOfObject} to %{newNameOfObject}",showAllHistory:"Show all history",history:"History",user:"User",confirmDeleteAllowed:"You do not have permission to delete: %{number} item(s). Would you like to proceed and delete the rest?",download:"Download",personal:"Personal",customization:"Customization",schemas:"Schemas",connections:"Connections",numberOutOfRange:"The value entered must be a number between %{min} and %{max}",numberTooSmall:"The value entered must be a number greater than %{min}",numberTooBig:"The value entered must be a number less than %{max}",searchReturnedNoResults:"Your search returned no results.",tryChangingSearchTerms:"Please try a different search term.",searchAllYourData:"Search all your data",search:"Search",saveSearch:"Save search",narrowYourSearch:"Narrow your search",all:"All",packages:"Packages",savedSearch:"Saved searches",haventSavedSearches:"You haven't saved any searches.",clickTheSaveButton:"Tap the Save search icon after you search.",remove:"Remove",searchWasDeleted:"Search was deleted",searchWasntDeleted:"Search wasn't deleted",searchWasSaved:"Search was saved",searchWasntSaved:"Search wasn't saved",socialInsightsProject:"Social Insights",errorWithSearch:"There was an error with your search.",saveTenSearches:"You can save 10 searches.",deleteASearch:"Delete one to save another.",models:"Models",today:"Today",yesterday:"Yesterday",date:"Date",clearAll:"Clear all",EnterSearchTerms:"Enter a search term before you select a filter type.",pastWeek:"Past week",pastMonth:"Past month",createShortcut:"Create shortcut",createShortcutDialogTitle:"Create shortcut:",shortcutTo:"Shortcut to",shortcutToItem:"Shortcut to %{itemName}",add:"Add",close:"Close",confirmClearTenant:"Confirm clear tenant",confirmClearTenantText:'Clearing the tenant will change the value to "None" and might allow other tenants to access the content.<br><br>Click OK to make the entry public or Cancel to keep the current tenant',changeTenantWarning:"Changing the tenant of an entry also changes the tenant of child entries.",dataSource:"Data Server",dataSourceConnection:"Connection",dataSourceSignon:"Sign on",searchForAssets:"You can search for assets",results:"Results",filterBy:"Filter by",resultLimit:"Result limit",noAccessRecent:"No access",noAccessRecentMsg:"You don't have access to this asset. It might have been disabled or deleted, or your permissions might have been reduced. Verify the state of the asset at its expected source location. You can remove the asset from your recent items by clicking OK.",capability:"Capability",loading:"Loading",save:"Save",saveAs:"Save as",saveAsLabel:"Save as:",teamFolders:"Team Folders",open:"Open",openDialogTitle:"Open file",openDialogFooter:"Open and cancel button",saveDialogTitle:"Save as",saveDialogFooter:"Save and cancel button",toastSaveErrorSameNameDifferentType:"'%{nameOfItem}' already exists with a different type. Please choose a different name.",filesToOpen:"Files to open:",confirmRefreshUpload:"Confirm replacement of existing data",msgConfirmRefreshUpload:"The file '%{fileName}' already exists. Do you want to replace its data with the data contained in the selected file?",userDataSource:"CSV",dataAsset:"XLS",xls:"XLS",xlsx:"XLSX",sav:"SAV",txt:"TXT",circle:"In progress",sortHeader:"Sort by",filterHeader:"Filter by",sort:"Sort",sortBy:"Sort by",order:"Order",previous:"Previous",collapsedBreadCrumb:"Collapsed items",sortedAscending:"Ascending",sortedDescending:"Descending",itemsOverLimit:"The specified name '%{itemName}' has exceeded the maximum (20) limit. Please specify a different name to continue.",searchFolder:"Type any text",text:"Keywords",noFilterResult:"No data matched your search.",tryOtherFilter:"Try selecting a different filter.",visualization:"Visualization",cosConnection:"Cloud object storage connection",cosConnections:"Cloud object storage connections",cosLocation:"Cloud location",resourceFolder:"Resource folder",unableToOpenFolderMsg:"Unable to open the specified folder"}),define("bacontentnav/nls/StringResource",["i18n!./ContentNavResources","polyglot"],function(t,e){"use strict";var n=new e({phrases:t}),i=function(){};return i.prototype.get=function(t,e){return n.t(t,e)},new i}),define("bacontentnav/utils/GlassContextHelper",[],function(){"use strict";var t=null,e=function(){if(e.prototype._singletonInstance)return e.prototype._singletonInstance;e.prototype._singletonInstance=this};return e.prototype.showAjaxServiceErrorMessage=function(t,e){var n="";if(e){var i=e.responseJSON;if(i){if(i.messages)n=e.responseJSON.messages.join("\n");else if(i.cause)try{var o=JSON.parse(i.cause);o.messages&&(n=o.messages.join("\n"))}catch(t){n=i.cause}}else n=e.responseText}n&&0<n.length&&t.appController.showErrorMessage(n,"Error")},e.prototype.showAjaxServiceError=function(t,e){this.showAjaxServiceErrorMessage(t,e.jqXHR)},e.prototype.displayToast=function(t,e,n){t.appController.showToast(e,n)},e.prototype.getUserPreference=function(t,e){return t.getCoreSvc(".UserProfile").preferences[e]},e.prototype.getContentLocales=function(t){return t.getCoreSvc(".Config").getContentLocales()},e.prototype.getLocaleTime=function(t){var e=t?t.getCoreSvc(".UserProfile").preferences:{};return{timeZone:e.timeZoneID||"America/New_York",contentLocale:e.contentLocale||"en"}},function(){return t||(t=new e),t}()}),define("bacontentnav/utils/ContentServiceUrls",[],function(){return{baseContentServiceURL:"v1/objects",basePathURL:"v1/path?path=",baseSearchPathURL:"v1/search_path?searchPath=",baseUserProfileServiceURL:"v1/users",baseNamespaceServiceURL:"v1/namespaces",getMyFoldersURL:function(){return this.baseContentServiceURL+"/.my_folders"},getMyFoldersContentURL:function(){return this.getMyFoldersURL()+"/items"},getOtherUsersFoldersURL:function(){return this.baseContentServiceURL+"/.users"},getBaseNamespaceURL:function(){return this.baseNamespaceServiceURL},getPublicFoldersURL:function(){return this.baseContentServiceURL+"/.public_folders"},getPublicFoldersContentURL:function(){return this.getPublicFoldersURL()+"/items"},getRootPublicFolderName:function(){return null},getRootMyFolderName:function(){return null},getMRUURL:function(){return this.baseUserProfileServiceURL+"/~/mrus"},getBaseObjectsURL:function(){return this.baseContentServiceURL},getBasePathURL:function(){return this.basePathURL},getBaseSearchPathURL:function(){return this.baseSearchPathURL},getDefaultUploadLocationURL:function(){return this.baseUserProfileServiceURL+"/_tilde_/user_profile_settings?fields=fileUpload_location"}}}),define("bacontentnav/utils/ContentStoreObject",["underscore","../nls/StringResource","../lib/@waca/core-client/js/core-client/utils/DateTimeUtils","./GlassContextHelper","./ContentServiceUrls"],function(o,s,a,c,i){"use strict";var t=null,e=function(){if(e.prototype._singletonInstance)return e.prototype._singletonInstance;this.ID="id",this.TYPE="type",this.DEFAULT_NAME="defaultName",this.MODIFICATION_TIME="modificationTime",this.SEARCH_PATH="searchPath",this.TENANT_NAME="tenantName",this.TENANT_ID="tenantID",this.CREATION_TIME="creationTime",this.OWNER="owner",this.META="_meta",this.LINKS="links",this.URL="url",this.selfURL="selfUrl",this.SELF="self",this.ITEMS="items",this.ICON="iconURI",this.DEFAULT_TOOLTIP="defaultScreenTip",this.MODELS="models",this.DEFAULT_DESCRIPTION="defaultDescription",this.ANCESTORS="ancestors",this.DEFAULT_PORTAL_ACTION="defaultPortalAction",this.RUN_AS_OWNER="runAsOwner",this.RUN_WITH_OWNER_CAPABILITIES="runWithOwnerCapabilities",this.RUN_AS_USER="runAsUser",this.HIDDEN="hidden",this.DISABLED="disabled",this.MIME_TYPE="mimeType",this.OPTIONS="options",this.PERMISSIONS="permissions",this.SCHEMAINFO="schemaInfo",this.POLICIES="policies",this.ACQUIRED="acquired",this.HISTORY="history",this.DATA_DESCRIPTOR="dataDescriptor",this.BASE="base",this.METADATA_MODEL_PACKAGE="metadataModelPackage",this.MODULE="module",this.TAGS="tags",this.REFERENCES="references",this.SURNAME="surname",this.GIVENNAME="givenName",this.HISTORIES="histories",this.VERSIONS="versions",this.DETAILS="details",this.REQUESTED_TIME="requestedExecutionTime",this.EXECUTION_TIME="actualExecutionTime",this.COMPLETION_TIME="actualCompletionTime",this.STATUS="status",this.OUTPUT="output",this.OUTPUTS="outputs",this.MESSAGES="messages",this.MESSAGES_DETAIL="detail",this.MESSAGES_SEVERITY="severity",this.REQUEST_ARGUMENTS="requestArguments",this.PARAMETERS="parameters",this.EXECUTION_PROMPT="executionPrompt",this.BURSTKEY="burstKey",this.FORMAT="format",this.LOCALE="locale",this.CONTENT="content",this.RUN_IN_ADVANCED_VIEWER="runInAdvancedViewer",this.OPTION_OUTPUT_FORMAT="outputFormat",this.OPTION_OUTPUT_LOCALE="outputLocale",this.OPTION_ACCESSIBILITY_FEATURES="http://developer.cognos.com/ceba/constants/systemOptionEnum#accessibilityFeatures",this.OPTION_PROMPT="prompt",this.OPTION_HTML_ROWS_PER_PAGE="verticalElements",this.OPTION_SELECTION_BASED_FEATURES="selectionBasedFeatures",this.OPTION_ENABLE_ALLOW_NOTIFICATION="allowNotification",this.OPTION_ENABLE_USER_FEATURE_SAVED_OUTPUT="advancedOutput",this.EFFECTIVE_USER_CAPABILITIES="effectiveUserCapabilities",(e.prototype._singletonInstance=this)._getMetaLinksURL=function(t,e){var n=t[this.META]&&t[this.META][this.LINKS]&&t[this.META][this.LINKS][e];return n&&n[this.URL]||null},this._getBaseType=function(t){var e=this.getBase(t);return e&&this.getType(e)||null},this._getFormatedDateTime=function(t,e,n,i,o){var s=t[i]||null;if(e&&s){var r=this.glassContext?c.getLocaleTime(this.glassContext):{};s=o?a.formatDateTime(s,n,r):a.formatDate(s,n,r)}return s}};return e.prototype.setGlassContext=function(t){this.glassContext=t},e.prototype.setContentService=function(t){console.warn("ContentStoreObject.setContentService method is deprectated; Use ContentStoreObject.setGlassContext"),t&&t.glassContext&&(this.glassContext=t.glassContext)},e.prototype.getObjectListIds=function(t){var e=[];return t.forEach(function(t){t.id&&e.push(t.id)}),e},e.prototype.isPoliciesAcquired=function(t){return t[this.META]&&t[this.META][this.SCHEMAINFO]&&t[this.META][this.SCHEMAINFO][this.POLICIES]&&t[this.META][this.SCHEMAINFO][this.POLICIES][this.ACQUIRED]},e.prototype.getObjectId=function(t){return t.id||""},e.prototype.getSearchPath=function(t){return t.searchPath||""},e.prototype.isTeamContent=function(t){return t&&"content"===t.type},e.prototype.getType=function(t){return t&&t[this.TYPE]||null},e.prototype.getIcon=function(t){return t[this.ICON]||null},e.prototype.getTooltip=function(t){return t[this.DEFAULT_TOOLTIP]||null},e.prototype.getTags=function(t){return t[this.TAGS]||null},e.prototype.getBaseObjectType=function(i){var t=this.getType(i);if(t&&/view$/.test(t.toLowerCase())){var e=this._getBaseType(i);if(e)return Promise.resolve(e);var n=this.getSelfLink(i);return this.glassContext.getCoreSvc(".Ajax").ajax({url:n,type:"GET",dataType:"json",data:{fields:"base.type"}}).then(function(t){var e=t&&t.data&&t.data.data,n=this.getBase(e[0]);return i.base=[n],this.getType(n)}.bind(this))}return Promise.resolve(t)},e.prototype._isUserFolder=function(t){return!(!t.ancestors||1!==t.ancestors.length)&&!(!t.ancestors[0]||".other_users_folders"!==t.ancestors[0].id)},e.prototype._getUserFolderName=function(t){return t.createdBy&&t.createdBy.defaultName||""},e.prototype.getItemsLink=function(t){var e=t.type;if("namespace"===e)return"v1/namespaces/"+t.id+"/items";if("namespaceFolder"===e)return"v1/namespaces/"+t.id+"/items?page=0|0&sorting=defaultName|asc";if("agentDefinition"===e||this._isUserFolder(t)){var n=this._getMetaLinksURL(t,this.SELF);if(n)return n+"/items"}return this._getMetaLinksURL(t,this.ITEMS)},e.prototype.getSelfLink=function(t){return this._getMetaLinksURL(t,this.SELF)||t[this.selfURL]||"v1/objects/"+t[this.ID]},e.prototype.getHistories=function(t,e){var n=this._getMetaLinksURL(t,this.HISTORIES);return n?this.glassContext.getCoreSvc(".Ajax").ajax({dataType:"json",type:"GET",url:n,data:{fields:e}}).then(function(t){var e=t.data;return!!(e.data&&0<e.data.length)&&e.data}):Promise.resolve(!1)},e.prototype.getVersions=function(t,e){var n=this.getVersionsLink(t);return n?this.glassContext.getCoreSvc(".Ajax").ajax({dataType:"json",type:"GET",url:n,data:{fields:e}}).then(function(t){var e=t.data;return!!(e.data&&0<e.data.length)&&e.data}):Promise.resolve(!1)},e.prototype.getVersionsLink=function(t){return this._getMetaLinksURL(t,this.VERSIONS)},e.prototype.getDetailsLink=function(t){return this._getMetaLinksURL(t,this.DETAILS)},e.prototype.getOutputsLink=function(t){var e=t[this.OUTPUT]&&t[this.OUTPUT][0];return e&&this._getMetaLinksURL(e,this.OUTPUTS)||null},e.prototype.getVersionLink=function(t){var e=t[this.OUTPUT]&&t[this.OUTPUT][0];return e&&this.getSelfLink(e)||null},e.prototype.getOutputContentLink=function(t){return this._getMetaLinksURL(t,this.CONTENT)},e.prototype.getModelsLink=function(t){return this._getMetaLinksURL(t,this.MODELS)},e.prototype.getDetailsReportVersionOptions=function(t){return t[this.REQUEST_ARGUMENTS]&&t[this.REQUEST_ARGUMENTS][this.OPTIONS]||null},e.prototype.getDetailsReportVersionParameters=function(t){return t[this.REQUEST_ARGUMENTS]&&t[this.REQUEST_ARGUMENTS][this.PARAMETERS]||null},e.prototype.getOwnerName=function(t){return t&&t[this.OWNER]?$.isArray(t[this.OWNER])?t[this.OWNER][0]&&t[this.OWNER][0][this.DEFAULT_NAME]?t[this.GIVENNAME]&&t[this.SURNAME]&&t[this.OWNER][0][this.DEFAULT_NAME]===t.defaultName?t[this.GIVENNAME]+" "+t[this.SURNAME]:t[this.OWNER][0][this.DEFAULT_NAME]:s.get("unknown"):t[this.OWNER]:s.get("unknown")},e.prototype.getObjectName=function(t){return t&&t.defaultName?t.defaultName:s.get("unknown")},e.prototype.getOwnerId=function(t){return!t[this.OWNER]||t[this.OWNER].length<1?null:t[this.OWNER][0]&&t[this.OWNER][0][this.ID]||null},e.prototype.getOwnerSelfLink=function(t){return t[this.OWNER]&&0<t[this.OWNER].length?this.getSelfLink(t[this.OWNER][0]):null},e.prototype.isOwner=function(t){var e=this.getOwnerId(t);return!(!e||e!==this.glassContext.getCoreSvc(".UserProfile").preferences.id)},e.prototype.getRequestedTime=function(t,e,n){return this._getFormatedDateTime(t,e,n,this.REQUESTED_TIME,!0)},e.prototype.getExecutionTime=function(t,e,n){return this._getFormatedDateTime(t,e,n,this.EXECUTION_TIME,!0)},e.prototype.getCompletionTime=function(t,e,n){return this._getFormatedDateTime(t,e,n,this.COMPLETION_TIME,!0)},e.prototype.getCreationTime=function(t,e,n){return this._getFormatedDateTime(t,e,n,this.CREATION_TIME,!1)},e.prototype.getCreationDate=function(t,e,n,i){return this._getFormatedDateTime(t,e,n,this.CREATION_TIME,i)},e.prototype.getModificationTime=function(t,e,n,i){return this._getFormatedDateTime(t,e,n,this.MODIFICATION_TIME,i)},e.prototype.getRunHistoryConfig=function(t){return this._getRetentionPropertyInfo("history",t)},e.prototype.getReportOutputVersionsConfig=function(t){return this._getRetentionPropertyInfo("reportVersion",t)},e.prototype._getRetentionPropertyInfo=function(t,e){if(!e.retentions)return null;for(var n=e.retentions.length,i=0;i<n;i+=1)if(e.retentions[i].objectClass===t)return e.retentions[i];return null},e.prototype.getLocation=function(t,e){var n=this.getAncestors(t);if(!n)return null;var i=[];return n.forEach(function(t){i.push(t.defaultName)}),e&&this.getName(t)&&i.push(this.getName(t)),i.join(" > ")},e.prototype.getName=function(t){return t[this.DEFAULT_NAME]},e.prototype.hasBase=function(t){return this.getBase(t)||t[this.REFERENCES]&&t[this.REFERENCES][0]},e.prototype.getBase=function(t){return t[this.BASE]&&t[this.BASE][0]||null},e.prototype.getPermissionsAndBasePermissions=function(t,e,n){return e?!n&&t[this.PERMISSIONS]&&this.getBasePermissions(t)?Promise.resolve({permissions:t[this.PERMISSIONS],base:t[this.BASE]}):this.glassContext.getCoreSvc(".Ajax").ajax({url:this.getSelfLink(t)+"?fields=permissions,base.permissions",dataType:"json",type:"GET"}).then(function(t){var e=t.data;return{permissions:e.data[0].permissions,base:e.data[0].base}}):t?{permissions:t[this.PERMISSIONS],base:t[this.BASE]}:null},e.prototype.getPermissionsOwnerIdAndBasePermissions=function(t,e,n){return e?!n&&t[this.PERMISSIONS]&&this.getOwnerId(t)&&this.getBasePermissions(t)?Promise.resolve({permissions:t[this.PERMISSIONS],owner:t[this.OWNER],base:t[this.BASE]}):this.glassContext.getCoreSvc(".Ajax").ajax({url:this.getSelfLink(t)+"?fields=permissions,owner.id,base.permissions",dataType:"json",type:"GET"}).then(function(t){var e=t.data;return{permissions:e.data[0].permissions,owner:e.data[0].owner,base:e.data[0].base}}):t?{permissions:t[this.PERMISSIONS],owner:t[this.OWNER],base:t[this.BASE]}:null},e.prototype.getPermissionsAndMetadataModelPackageEffectiveUserCapabilities=function(t,e){return e?t[this.PERMISSIONS]&&this.getMetadataModelPackageEffectiveUserCapabilities(t)?Promise.resolve({permissions:t[this.PERMISSIONS],metadataModelPackage:t[this.METADATA_MODEL_PACKAGE]}):this.glassContext.getCoreSvc(".Ajax").ajax({url:this.getSelfLink(t)+"?fields=permissions,metadataModelPackage.effectiveUserCapabilities",dataType:"json",type:"GET"}).then(function(t){var e=t.data;return{permissions:e.data[0].permissions,metadataModelPackage:e.data[0].metadataModelPackage}}):t?{permissions:t[this.PERMISSIONS],metadataModelPackage:t[this.METADATA_MODEL_PACKAGE]}:null},e.prototype.getPermissionsOwnerIdAndMetadataModelPackageEffectiveUserCapabilities=function(t,e){return e?t[this.PERMISSIONS]&&this.getOwnerId(t)&&this.getMetadataModelPackageEffectiveUserCapabilities(t)?Promise.resolve({permissions:t[this.PERMISSIONS],owner:t[this.OWNER],metadataModelPackage:t[this.METADATA_MODEL_PACKAGE]}):this.glassContext.getCoreSvc(".Ajax").ajax({url:this.getSelfLink(t)+"?fields=permissions,owner.id,metadataModelPackage.effectiveUserCapabilities",dataType:"json",type:"GET"}).then(function(t){var e=t.data;return{permissions:e.data[0].permissions,owner:e.data[0].owner,metadataModelPackage:e.data[0].metadataModelPackage}}):t?{permissions:t[this.PERMISSIONS],owner:t[this.OWNER],metadataModelPackage:t[this.METADATA_MODEL_PACKAGE]}:null},e.prototype.getPermissionsAndCapabilities=function(t,e){return e?t[this.PERMISSIONS]&&t[this.EFFECTIVE_USER_CAPABILITIES]?Promise.resolve({permissions:t[this.PERMISSIONS],effectiveUserCapabilities:t[this.EFFECTIVE_USER_CAPABILITIES]}):this.glassContext.getCoreSvc(".Ajax").ajax({url:this.getSelfLink(t)+"?fields=permissions,effectiveUserCapabilities",dataType:"json",type:"GET"}).then(function(t){var e=t.data;return{permissions:e.data[0].permissions,effectiveUserCapabilities:e.data[0].effectiveUserCapabilities}}):t?{permissions:t[this.PERMISSIONS],effectiveUserCapabilities:t[this.EFFECTIVE_USER_CAPABILITIES]}:null},e.prototype.getPermissionsOwnerIdAndCapabilities=function(t,e){return e?t[this.PERMISSIONS]&&this.getOwnerId(t)&&t[this.EFFECTIVE_USER_CAPABILITIES]?Promise.resolve({permissions:t[this.PERMISSIONS],owner:t[this.OWNER],effectiveUserCapabilities:t[this.EFFECTIVE_USER_CAPABILITIES]}):this.glassContext.getCoreSvc(".Ajax").ajax({url:this.getSelfLink(t)+"?fields=permissions,owner.id,effectiveUserCapabilities",dataType:"json",type:"GET"}).then(function(t){var e=t.data;return{permissions:e.data[0].permissions,owner:e.data[0].owner,effectiveUserCapabilities:e.data[0].effectiveUserCapabilities}}):t?{permissions:t[this.PERMISSIONS],owner:t[this.OWNER],effectiveUserCapabilities:t[this.EFFECTIVE_USER_CAPABILITIES]}:null},e.prototype.getPermissions=function(t,e){return e?t[this.PERMISSIONS]?Promise.resolve(t[this.PERMISSIONS]):this.glassContext.getCoreSvc(".Ajax").ajax({url:this.getSelfLink(t)+"?fields=permissions",dataType:"json",type:"GET"}).then(function(t){return t.data.data[0].permissions}):t?t[this.PERMISSIONS]:null},e.prototype.getDefaultPortalAction=function(t,e){return e?t[this.DEFAULT_PORTAL_ACTION]?Promise.resolve(t[this.DEFAULT_PORTAL_ACTION]):this.glassContext.getCoreSvc(".Ajax").ajax({url:this.getSelfLink(t)+"?fields=defaultPortalAction",dataType:"json",type:"GET"}).then(function(t){return t.data.data[0].defaultPortalAction}):t?t[this.DEFAULT_PORTAL_ACTION]:null},e.prototype.getTargetDefaultPortalAction=function(t,e){return e?t[this.DEFAULT_PORTAL_ACTION]?Promise.resolve(t[this.DEFAULT_PORTAL_ACTION]):this.glassContext.getCoreSvc(".Ajax").ajax({url:this.getSelfLink(t)+"?fields=target.defaultPortalAction",dataType:"json",type:"GET"}).then(function(t){return t.data.data[0].target[0].defaultPortalAction}):t?t[this.DEFAULT_PORTAL_ACTION]:null},e.prototype.getTargetFileNameFromSearchPath=function(t){if(t){var e=t.split("/");if(0<e.length)return(e=e[e.length-1].split("'"))[1]}return null},e.prototype.getTargetSearchPath=function(t,e){return e?t.target&&t.target.length&&t.target[0].searchPath?Promise.resolve(t.target[0]):this.glassContext.getCoreSvc(".Ajax").ajax({url:this.getSelfLink(t)+"?fields=target.searchPath",dataType:"json",type:"GET"}).then(function(t){var e=t.data;if(e.data&&e.data.length&&e.data[0].target&&e.data[0].target.length)return e.data[0].target[0]}):t&&t.target&&t.target.length?t.target[0]:null},e.prototype.hasPermissions=function(t,e){var n=this.getPermissions(t);return!!n&&o.intersection(n,e).length===e.length},e.prototype.hasTag=function(t,e){return!(!t[this.TAGS]||-1===t[this.TAGS].indexOf(e))},e.prototype.getDescription=function(t){var e=t[this.DEFAULT_DESCRIPTION];if(o.isEmpty(e)){var n=this.getBase(t);n&&(e=n[this.DEFAULT_DESCRIPTION])}return e},e.prototype.getReportRetentions=function(t){return(null===t.retentions||$.isEmptyObject(t.retentions))&&(t.retentions=[]),t.retentions},e.prototype.getOptions=function(t){return(null===t[this.OPTIONS]||$.isEmptyObject(t[this.OPTIONS]))&&(t[this.OPTIONS]=[]),t[this.OPTIONS]},e.prototype.getOption=function(t,e){var n=this.getOptions(t);if(n)for(var i=0;i<n.length;i+=1)if(n[i].name===e)return n[i].value instanceof Array?n[i].value[0]:n[i].value;return null},e.prototype.getRunAsOwner=function(t){return t[this.RUN_AS_OWNER]||!1},e.prototype.getRunWithOwnerCapabilities=function(t){return t[this.RUN_WITH_OWNER_CAPABILITIES]||!1},e.prototype.getRunAsOwnerValue=function(t){var e=this.getRunWithOwnerCapabilities(t)?this.RUN_WITH_OWNER_CAPABILITIES:this.RUN_AS_USER;return e=this.getRunAsOwner(t)?this.RUN_AS_OWNER:e},e.prototype.getStatus=function(t){return t[this.STATUS]||!1},e.prototype.getMessages=function(t){return t[this.MESSAGES]||!1},e.prototype.getMessageDetail=function(t){return t[this.MESSAGES_DETAIL]||!1},e.prototype.getMessageSeverity=function(t){return t[this.MESSAGES_SEVERITY]||!1},e.prototype.getFormat=function(t){return t[this.FORMAT]||!1},e.prototype.getLocale=function(t){return t[this.LOCALE]||!1},e.prototype.getBurstKey=function(t){return t[this.BURSTKEY]||!1},e.prototype.getHidden=function(t){return"true"===(t[this.HIDDEN]?t[this.HIDDEN].toString():"false").toLowerCase()},e.prototype.getDisabled=function(t){var e=t[this.DISABLED]?t[this.DISABLED].toString():"false",n=this.isTargetDisabled(t);return"true"===e.toLowerCase()||n},e.prototype.isTargetDisabled=function(t){return!!(t.target&&t.target.length&&t.target[0])&&t.target[0][this.DISABLED]},e.prototype.getAncestors=function(t){if(!t[this.ANCESTORS]||0===t[this.ANCESTORS].length)return null;var e=t[this.ANCESTORS][0];if(e.type){var n=e.type.toLowerCase();if("directory"===n&&".my_folders"!==e.id){for(;e=t[this.ANCESTORS].shift(),0<t[this.ANCESTORS].length&&"folder"!==t[this.ANCESTORS][0].type;);t[this.ANCESTORS][0]=this.getRootMyFoldersAncestors()}else"content"===n&&(t[this.ANCESTORS][0]=this.getRootPublicFoldersAncestor())}return t[this.ANCESTORS]},e.prototype.ancestorsEqual=function(t,e){if(!t||!e)return!1;if(t.length!==e.length)return!1;for(var n=0;n<t.length;n+=1)if(t[n].id!==e[n].id)return!1;return!0},e.prototype.getHistoryConfig=function(t){return t[this.HISTORY]&&JSON.parse(t[this.HISTORY])},e.prototype.getDataDescriptor=function(t){return t&&t.dataDescriptor||{}},e.prototype.buildAncestorEntry=function(t){var e={};if(e[this.ID]=t[this.ID],this._isUserFolder(t)?e[this.DEFAULT_NAME]=this._getUserFolderName(t):e[this.DEFAULT_NAME]=t[this.DEFAULT_NAME],t[this.META])e[this.META]=t[this.META];else{var n=this.getSelfLink(t),i=this.getItemsLink(t);i||(i=n+"/items"),e[this.META]=this._buildMetaSection(i,n)}return e[this.TYPE]=t[this.TYPE],e[this.PERMISSIONS]=t[this.PERMISSIONS],e},e.prototype.buildAncestorTree=function(t){var e=[];return t[this.ANCESTORS]&&(o.each(this.getAncestors(t),function(t){e.push(this.buildAncestorEntry(t))}.bind(this)),e.push(this.buildAncestorEntry(t))),e},e.prototype._buildMetaSection=function(t,e){var n={};n[this.MIME_TYPE]="application/json",n[this.URL]=t;var i={};i[this.MIME_TYPE]="application/json",i[this.URL]=e;var o={};o[this.ITEMS]=n,o[this.SELF]=i;var s={};return s[this.LINKS]=o,s},e.prototype.getRootPublicFoldersAncestor=function(){var t=i.getRootPublicFolderName(),e=i.getPublicFoldersURL(),n={};return n[this.ID]=".public_folders",n[this.DEFAULT_NAME]=t||s.get("teamContent"),n[this.META]=this._buildMetaSection(e+"/items",e),n[this.TYPE]="content",n},e.prototype.getRootMyFoldersAncestors=function(){var t=i.getRootMyFolderName(),e=i.getMyFoldersURL(),n={};return n[this.ID]=".my_folders",n[this.DEFAULT_NAME]=t||s.get("myContent"),n[this.META]=this._buildMetaSection(e+"/items",e),n[this.TYPE]="directory",n},e.prototype.getRootOtherUsersFoldersAncestors=function(t){var e={};e[this.ID]=".other_users_folders",e[this.DEFAULT_NAME]=t.defaultName||"";var n=i.getOtherUsersFoldersURL();return e[this.META]=this._buildMetaSection(n+"/items",n),e[this.TYPE]="folder",e},e.prototype.getRootNamespacesAncestors=function(){var t=i.getBaseNamespaceURL(),e={};return e[this.ID]=".directory",e[this.DEFAULT_NAME]=s.get("directory"),e[this.META]=this._buildMetaSection(t,t),e[this.TYPE]="directory",e},e.prototype.getExecutionPrompt=function(t){return void 0===t[this.EXECUTION_PROMPT]||t[this.EXECUTION_PROMPT]},e.prototype.getOptionValue=function(t,e,n){var i=o.find(t.options,function(t){return t.name===e});return void 0===i?n:i.value},e.prototype.getParameters=function(t){return t[this.PARAMETERS]||[]},e.prototype.getAllowNotification=function(t){return t[this.OPTION_ENABLE_ALLOW_NOTIFICATION]||null},e.prototype.getPromptsDisplayValues=function(t,e){var n,i=[];if(t)for(n=0;n<t.length;n+=1){for(var o=t[n].value,s="",r=0;r<o.length;r+=1)0===r?s+=this.buildPromptsDisplayValues(o[r]):s=e?s+", "+this.buildPromptsDisplayValues(o[r]):s+","+this.buildPromptsDisplayValues(o[r]);i.push({name:t[n].name,display:s})}return i},e.prototype.buildPromptsDisplayValues=function(t){var e,n=t.use?t.use:null;if("simpleParmValueItem"===t.type)e=void 0===t.display||""===t.display?n:t.display;else if("boundRangeParmValueItem"===t.type)(t.start||t.end)&&(e=s.get("between"),t.start&&(e+=" ",e+=void 0===t.start.display||""===t.start.display?t.start.use:t.start.display),e+=" ",e+=s.get("and"),t.end&&(e+=" ",e+=void 0===t.end.display||""===t.end.display?t.end.use:t.end.display));else if("unboundedEndRangeParmValueItem"===t.type){if(t.start){var i=void 0===t.start.display||""===t.start.display?t.start.use:t.start.display;e=s.get("greaterOrEqual",{upperboundValue:i})}}else if("unboundedStartRangeParmValueItem"===t.type&&t.end){var o=void 0===t.end.display||""===t.end.display?t.end.use:t.end.display;e=s.get("lessOrEqual",{lowerboundValue:o})}return e},e.prototype.getModule=function(t){return t[this.MODULE]&&t[this.MODULE][0]||null},e.prototype.getMetadataModelPackage=function(t){return t[this.METADATA_MODEL_PACKAGE]&&t[this.METADATA_MODEL_PACKAGE][0]||null},e.prototype.getBaseMetadataModelPackage=function(t){var e=t[this.BASE]&&t[this.BASE][0]&&t[this.BASE][0][this.METADATA_MODEL_PACKAGE];return e&&e[0]||null},e.prototype.getBasePermissions=function(t){return t[this.BASE]&&t[this.BASE][0]&&t[this.BASE][0][this.PERMISSIONS]?t[this.BASE][0][this.PERMISSIONS]:null},e.prototype.getMetadataModelPackageEffectiveUserCapabilities=function(t){return t[this.METADATA_MODEL_PACKAGE]&&t[this.METADATA_MODEL_PACKAGE][0]&&t[this.METADATA_MODEL_PACKAGE][0][this.EFFECTIVE_USER_CAPABILITIES]?t[this.METADATA_MODEL_PACKAGE][0][this.EFFECTIVE_USER_CAPABILITIES]:null},e.prototype.getBaseModule=function(t){var e=t[this.BASE]&&t[this.BASE][0]&&t[this.BASE][0][this.MODULE];return e&&e[0]||null},e.prototype.getRunInAdvancedViewer=function(t){return!!t[this.RUN_IN_ADVANCED_VIEWER]},e.prototype.getEffectiveUserCapabilities=function(n,t){return t?n[this.EFFECTIVE_USER_CAPABILITIES]?Promise.resolve(n[this.EFFECTIVE_USER_CAPABILITIES]):this.glassContext.getCoreSvc(".Ajax").ajax({url:this.getSelfLink(n)+"?fields=effectiveUserCapabilities",dataType:"json",type:"GET"}).then(function(t){var e=t.data;return n[this.EFFECTIVE_USER_CAPABILITIES]=e.data[0].effectiveUserCapabilities,n[this.EFFECTIVE_USER_CAPABILITIES]}.bind(this)):n?n[this.EFFECTIVE_USER_CAPABILITIES]:null},e.prototype.hasCapabilities=function(t,e){var n=this.getEffectiveUserCapabilities(t);return!!n&&o.intersection(n,e).length===e.length},e.prototype.canBurst=function(t){var e=this.getBase(t);return t.canBurst||e&&e.canBurst},function(){return t||(t=new e),t}()}),function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e(require("@ba-ui-toolkit/ba-graphics/dist/illustrations-js/ba-graphics-icons-commons.js"));else if("function"==typeof define&&define.amd)define("bacontentnav/lib/@ba-ui-toolkit/ba-graphics/dist/illustrations-js/no-detail_128",["@ba-ui-toolkit/ba-graphics/dist/illustrations-js/ba-graphics-icons-commons.js"],e);else{var n=e("object"==typeof exports?require("@ba-ui-toolkit/ba-graphics/dist/illustrations-js/ba-graphics-icons-commons.js"):t["@ba-ui-toolkit/ba-graphics/dist/illustrations-js/ba-graphics-icons-commons.js"]);for(var i in n)("object"==typeof exports?exports:t)[i]=n[i]}}("undefined"!=typeof self?self:this,function(n){return webpackJsonPBaGraphics([68],{"3865314c5959606874d4":function(t,e){t.exports=n},"81b6137299c348072845":function(t,e,n){"use strict";var i=n("9689a9c94ae38b47fa2c"),o=n.n(i),s=n("9ce58a7deea14f49ef01"),r=n.n(s),a=new o.a({id:"no-detail_128_v7",use:"no-detail_128_v7-usage",viewBox:"0 0 200 200",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200" id="no-detail_128_v7"><circle class="ba-graphics-neutral-white4" cx="100" cy="100" r="100" /><path class="ba-graphics-white" d="M14.97 170.08h135.66" /><path class="ba-graphics-gray60" d="M150.63 172.08H15a2 2 0 110-4h135.63a2 2 0 010 4z" /><path class="ba-graphics-white" d="M2 170.08h4.97" /><path class="ba-graphics-gray60" d="M7 172.08H2a2 2 0 010-4h5a2 2 0 010 4z" /><path class="ba-graphics-white" d="M179.03 170.08H198" /><path class="ba-graphics-gray60" d="M198 172.08h-19a2 2 0 010-4h19a2 2 0 010 4z" /><rect class="ba-graphics-gray80" style="opacity:.1" x="79.35" y="45.75" width="87.73" height="107.48" rx="4" transform="rotate(6.89 123.277 99.528)" /><rect class="ba-graphics-white" x="76.15" y="41.66" width="87.73" height="107.48" rx="4" transform="rotate(6.89 120.115 95.467)" /><path class="ba-graphics-gray60" d="M86.4 37.24v3.82l79.15 9.57a.18.18 0 01.16.2l-12 98.76a.18.18 0 01-.19.16l-79.15-9.57a.17.17 0 01-.15-.2l12.01-98.76a.18.18 0 01.17-.16v-3.82m0 0a4 4 0 00-4 3.52l-12 98.76A4 4 0 0074 144l79.15 9.57a3.87 3.87 0 00.48 0 4 4 0 004-3.52l11.94-98.76a4 4 0 00-3.57-4.45l-79.11-9.57h-.49z" /><path class="ba-graphics-white" d="M97.8 59.92l50.31 6.05" /><path class="ba-graphics-gray40" d="M148.11 68h-.24l-50.31-6a2 2 0 11.48-4l50.31 6a2 2 0 01-.24 4z" /><path class="ba-graphics-white" d="M95.88 75.78l44.61 5.39" /><path class="ba-graphics-gray40" d="M140.49 83.17h-.24l-44.61-5.41a2 2 0 01.48-4l44.61 5.39a2 2 0 01-.24 4z" /><path class="ba-graphics-white" d="M93.97 91.63l47.68 5.77" /><path class="ba-graphics-gray40" d="M141.65 99.4h-.24l-47.68-5.78a2 2 0 11.48-4l47.68 5.76a2 2 0 01-.24 4z" /><path class="ba-graphics-white" d="M90.14 123.35l27.78 3.35" /><path class="ba-graphics-gray40" d="M117.92 128.7h-.24l-27.78-3.37a2 2 0 11.48-4l27.77 3.36a2 2 0 01-.23 4z" /><path class="ba-graphics-white" d="M92.05 107.49l34.35 4.15" /><path class="ba-graphics-gray40" d="M126.4 113.64h-.24l-34.35-4.15a2 2 0 01.48-4l34.35 4.15a2 2 0 01-.24 4z" /><path class="ba-graphics-white" d="M158.63 170.08h12.4" /><path class="ba-graphics-gray60" d="M171 172.08h-12.4a2 2 0 010-4H171a2 2 0 010 4z" /><rect class="ba-graphics-gray80" style="opacity:.1" x="46.02" y="39.26" width="91.22" height="111.76" rx="4" transform="rotate(-7.43 91.57 95.108)" /><rect class="ba-graphics-white" x="41.75" y="35.97" width="91.22" height="111.76" rx="4" transform="rotate(-7.43 87.3 91.815)" /><path class="ba-graphics-gray60" d="M121.91 34.84a.19.19 0 01.18.16l13.41 102.89a.18.18 0 01-.16.2L52.8 148.85a.19.19 0 01-.18-.16L39.21 45.8a.18.18 0 01.16-.2l82.51-10.76m0-3.82a3.12 3.12 0 00-.52 0L38.87 41.81a4 4 0 00-3.45 4.49l13.41 102.88a4 4 0 004 3.49 3.12 3.12 0 00.52 0l82.51-10.75a4 4 0 003.45-4.48L125.87 34.51a4 4 0 00-4-3.49z" /><path class="ba-graphics-white" d="M55.84 61.77l52.24-6.85" /><path class="ba-graphics-gray40" d="M55.84 63.77a2 2 0 01-.26-4l52.24-6.84a2 2 0 01.52 4L56.1 63.75z" /><path class="ba-graphics-white" d="M57.99 78.23l46.32-6.04" /><path class="ba-graphics-gray40" d="M58 80.23a2 2 0 01-.25-4l46.32-6a2 2 0 11.52 4l-46.33 6z" /><path class="ba-graphics-white" d="M60.13 94.7l49.52-6.46" /><path class="ba-graphics-gray40" d="M60.13 96.7a2 2 0 01-.26-4l49.52-6.46a2 2 0 01.52 4l-49.52 6.44z" /><path class="ba-graphics-white" d="M64.43 127.63l28.85-3.76" /><path class="ba-graphics-gray40" d="M64.43 129.63a2 2 0 01-.26-4L93 121.89a2 2 0 01.52 4l-28.85 3.77z" /><path class="ba-graphics-white" d="M62.28 111.17l35.67-4.65" /><path class="ba-graphics-gray40" d="M62.28 113.17a2 2 0 01-.26-4l35.67-4.65a2 2 0 01.52 4l-35.67 4.65z" /><circle class="ba-graphics-gray60" cx="119.33" cy="13.5" r="2" /><circle class="ba-graphics-gray60" cx="26.56" cy="87.62" r="2" /><path class="ba-graphics-gray60" d="M80.16 19.25a2.1 2.1 0 002.09-2.09.52.52 0 011 0 2.1 2.1 0 002.09 2.09.52.52 0 110 1 2.1 2.1 0 00-2.09 2.09.52.52 0 11-1 0 2.1 2.1 0 00-2.09-2.09.52.52 0 110-1z" /></symbol>'});r.a.add(a),e.a=a},"94499d8163892e59406b":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("3865314c5959606874d4"),o=(n.n(i),n("81b6137299c348072845"));e.default=o.a}},["94499d8163892e59406b"])}),define("text!bacontentnav/config/ca.json",[],function(){return'{\n\t"copyright": "Licensed Materials - Property of IBM. IBM Cognos Products: BI Cloud(C) Copyright IBM Corp. 2017,2021. US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.",\n\t"samples": {\n\t\t"url": "https://www.ibm.com/communities/analytics/cognos-analytics-blog/guide-to-sample-data-sets/"\n\t},\n\t"modulePaths": {\n\t\t"myContent": "bi/content_apps/CAMyContentView",\n\t\t"teamContent": "bi/content_apps/CATeamFoldersView"\n\t},\n\t"contextMenuId": "com.ibm.bi.contentApps.listViewMenu",\n\t"capabilities": {\n\t\t"saveAs": {\n\t\t\t"publicFolder": false,\n\t\t\t"requiresParentWritePermissions": true\n\t\t}\n\t},\n\t"search": {\n\t\t"URL": "v1/search/cm",\n\t\t"savedURL": "v1/users/~/searches",\n\t\t"returnParams": "defaultName|selfUrl|hidden|type|disabled|id|ancestors|snapShotEnabled|iconURI|defaultScreenTip|tags|references",\n\t\t"disabledActions": ["ManageContentAction", "DeleteAction", "ShortcutContentAction"]\n\t},\n\t"sort": {\n\t\t"indexes": {\n\t\t\t"folders": "0",\n\t\t\t"reports": "1",\n\t\t\t"dashboards": "2",\n\t\t\t"data": "3",\n\t\t\t"packages": "4",\n\t\t\t"explorations": "5",\n\t\t\t"stories": "6",\n\t\t\t"notebook": "7",\n\t\t\t"others": "8"\n\t\t}\n\t},\n\t"filter": {\n\t\t"items": ["allContent", "reports", "reportViews", "dashboards", "data", "packages", "explorations", "stories", "folders", "notebook", "jobs", "shortcuts"],\n\t\t"facets": [\n\t\t\t{"msgKey": "folders", "group": "folder"},\n\t\t\t{"msgKey": "dashboards", "group": "dashboard"},\n\t\t\t{"msgKey": "data", "group": "data"},\n\t\t\t{"msgKey": "packages", "group": "packages"},\n\t\t\t{"msgKey": "explorations", "group": "exploration"},\n\t\t\t{"msgKey": "stories", "group": "stories"},\n\t\t\t{"msgKey": "reports", "group": "report"},\n\t\t\t{"msgKey": "reportViews", "group": "reportView"},\n\t\t\t{"msgKey": "notebooks", "group":"notebook"},\n\t\t\t{"msgKey": "jobs", "group": "job"},\n\t\t\t{"msgKey": "shortcuts", "group": "shortcut"}\n\t\t]\n\t},\n\t"uiTypes": {\n\t\t"account": {\n\t\t\t"icon": "#common-user",\n\t\t\t"msgKey": "user",\n\t\t\t"options": ["tenant"]\n\t\t},\n\t\t"adminFolder": {\n\t\t\t"icon": "#common-folder_16",\n\t\t\t"msgKey": "adminFolder",\n\t\t\t"options": ["container"]\n\t\t},\n\t\t"resourceFolder": {\n\t\t\t"icon": "#common-folder_16",\n\t\t\t"msgKey": "resourceFolder",\n\t\t\t"options": ["container"]\n\t\t},\n\t\t"cosConnection": {\n\t\t\t"icon": "#ba_content_nav-cloud_32",\n\t\t\t"msgKey": "cosConnection",\n\t\t\t"options": ["container"]\n\t\t},\n\t\t"cosLocation": {\n\t\t\t"icon": "#ba_content_nav-cloud_32",\n\t\t\t"msgKey": "cosLocation",\n\t\t\t"options": ["container"]\n\t\t},\n\t\t"agentDefinition": {\n\t\t\t"icon": "#common-agent",\n\t\t\t"msgKey": "agent",\n\t\t\t"options": ["content"],\n\t\t\t"properties": "agent"\n\t\t},\n\t\t"agentDefinitionView": {\n\t\t\t"baseTypes": ["agentDefinition"],\n\t\t\t"icon": "#common-agent",\n\t\t\t"msgKey": "agentDefinitionView",\n\t\t\t"options": ["view","decorateIcon","content"],\n\t\t\t"properties": "agentDefinitionView"\n\t\t},\n\t\t"analysis": {\n\t\t\t"groups": ["report"],\n\t\t\t"icon": "#common-analysis_studio_report",\n\t\t\t"msgKey": "analysis",\n\t\t\t"options": ["versions","content"],\n\t\t\t"properties": "report"\n\t\t},\n\t\t"contact": {\n\t "icon": "#email_16",\n\t\t "msgKey": "contact",\n\t\t "options": ["tenant"]\n\t },\n\t\t"content": {\n\t\t\t"icon": "#ba_content_nav-shared_24",\n\t\t\t"msgKey": "content",\n\t\t\t"options": ["container","teamroot","mruDisabled"],\n\t\t\t"properties": "content"\n\t\t},\n\t\t"csv": {\n\t\t\t"derived": "uploadedFile",\n\t\t\t"groups": ["data"],\n\t\t\t"icon": "#common-csv_icon",\n\t\t\t"msgKey": "csv"\n\t\t},\n\t\t"dashboard": {\n\t\t\t"groups": ["dashboard"],\n\t\t\t"icon": "#common-workspace",\n\t\t\t"msgKey": "workspace",\n\t\t\t"options": ["content"],\n\t\t\t"properties": "dashboard"\n\t\t},\n\t\t"dataMovementTask": {\n\t\t\t"icon": "#common-dataMovement",\n\t\t\t"msgKey": "dataMovementTask",\n\t\t\t"options": ["content"]\n\t\t},\n\t\t"dataMovementTaskAlias": {\n\t\t\t"icon": "#common-dataMovement",\n\t\t\t"msgKey": "dataMovementTaskAlias",\n\t\t\t"options": ["content"]\n\t\t},\n\t\t"dataSet": {\n\t\t\t"groups": ["data"],\n\t\t\t"icon": "#common-question-mark",\n\t\t\t"msgKey": "dataSet"\n\t\t},\n\t\t"dataSet2": {\n\t\t\t"groups": ["data"],\n\t\t\t"icon": "#common-dataset",\n\t\t\t"msgKey": "dataset",\n\t\t\t"options": ["content"],\n\t\t\t"properties": "dataSet2"\n\t\t},\n\t\t"dataSetFolder": {\n\t\t\t"icon": "#common-question-mark",\n\t\t\t"msgKey": "dataSetFolder",\n\t\t\t"options": ["container","teamroot","mruDisabled"]\n\t\t},\n\t\t"dataSource": {\n\t\t\t"icon": "#common-data_source",\n\t\t\t"msgKey": "dataSource",\n\t\t\t"options": ["tenant"]\n\t\t},\n\t\t"dataSourceSchema": {\n\t\t\t"icon": "#common-data_source",\n\t\t\t"msgKey": "dataSourceConnection",\n\t\t\t"options": ["tenant"]\n\t\t},\n\t\t"dataSourceConnection": {\n\t\t\t"icon": "#common-database-server",\n\t\t\t"msgKey": "dataSourceConnection",\n\t\t\t"options": ["tenant"]\n\t\t},\n\t\t"dataSourceCredential": {\n\t\t\t"icon": "#common-dataset",\n\t\t\t"msgKey": "dataSourceCredential"\n\t\t},\n\t\t"dataSourceSignon": {\n\t\t\t"icon": "#ba_content_nav-password-key",\n\t\t\t"msgKey": "dataSourceSignon"\n\t\t},\n\t\t"directory": {\n\t\t\t"icon": "#ba_content_nav-personal_24",\n\t\t\t"msgKey": "directory",\n\t\t\t"options": ["container","teamroot","mruDisabled"]\n\t\t},\n\t\t"distributionList": {\n\t\t\t "icon": "#bulleted-list_16",\n\t\t\t "msgKey": "distributionList",\n\t\t\t "options": ["tenant"]\n\t\t },\n\t\t"document": {\n\t\t\t"icon": "#common-document",\n\t\t\t"msgKey": "document",\n\t\t\t"properties": "document",\n\t\t\t"options": ["content"]\n\t\t},\n\t\t"exploration": {\n\t\t\t"groups": ["dashboard"],\n\t\t\t"icon": "#common-dashboard_24",\n\t\t\t"mruFields": ["defaultScreenTip","iconURI","tags"],\n\t\t\t"msgKey": "dashboard",\n\t\t\t"options": ["content"],\n\t\t\t"subtypes": [\n\t\t\t\t{ "check": { "field": "defaultScreenTip", "test": "equal", "value": "story" },\n\t\t\t\t\t"type": "story"\n\t\t\t\t},\n\t\t\t\t{ "check": { "field": "tags", "test": "contains", "value": "story" },\n\t\t\t\t\t"type": "story"\n\t\t\t\t},\n\t\t\t\t{ "check": { "field": "tags", "test": "contains", "value": "explore" },\n\t\t\t\t\t"type": "explore"\n\t\t\t\t},\n\t\t\t\t{ "check": { "field": "tags", "test": "contains", "value": "dashboard_template" },\n\t\t\t\t\t"type": "dashboard_template"\n },\n { "check": { "field": "tags", "test": "contains", "value": "dashboard",\n "type": "dashboard"\n }\n }\n\t\t\t]\n\t\t},\n\t\t"dashboard_template": {\n\t\t\t"derived": "exploration",\n\t\t\t"filterType": "dashboard_template",\n\t\t\t"groups": ["dashboard"],\n\t\t\t"icon": "#ba_content_nav-template_32",\n\t\t\t"msgKey": "dashboardTemplate",\n\t\t\t"mruFields": ["tags"]\n\t\t},\n\t\t"explore": {\n\t\t\t"derived": "exploration",\n\t\t\t"filterType": "explore",\n\t\t\t"groups": ["exploration"],\n\t\t\t"icon": "#common-explore",\n\t\t\t"msgKey": "exploration",\n\t\t\t"mruFields": ["tags"]\n\t\t},\n\t\t"exportDeployment": {\n\t\t\t"icon": "#common-archive",\n\t\t\t"msgKey": "exportDeployment"\n\t\t},\n\t\t"folder": {\n\t\t\t"groups": ["folder"],\n\t\t\t"icon": "#common-folder_16",\n\t\t\t"msgKey": "folder",\n\t\t\t"options": ["container","teamroot","content","mruDisabled"],\n\t\t\t"properties": "folder"\n\t\t},\n\t\t"group": {\n\t\t\t"icon": "#common-group",\n\t\t\t"msgKey": "group",\n\t\t\t"options": ["tenant"]\n\t\t},\n\t\t"importDeployment": {\n\t\t\t"icon": "#common-archive",\n\t\t\t"msgKey": "importDeployment"\n\t\t},\n\t\t"interactiveReport": {\n\t\t\t"groups": ["report"],\n\t\t\t"icon": "#ba_content_nav-activereport_16",\n\t\t\t"msgKey": "activeReport",\n\t\t\t"options": ["versions","content"],\n\t\t\t"properties": "report"\n\t\t},\n\t\t"jobDefinition": {\n\t\t\t"groups": ["job"],\n\t\t\t"icon": "#ba_content_nav-job_16",\n\t\t\t"msgKey": "job",\n\t\t\t"properties": "jobDefinition",\n\t\t\t"options": ["content"]\n\t\t},\n\t\t"jupyterNotebook": {\n\t\t\t"groups": ["notebook"],\n\t\t\t"icon": "#data-notebook",\n\t\t\t"msgKey": "notebook",\n\t\t\t"properties": "jupyterNotebook",\n\t\t\t"options": ["content"]\n\t\t},\n\t\t"launchable": {\n\t\t\t"icon": "#common-question-mark",\n\t\t\t"msgKey": "launchable",\n\t\t\t"options": ["teamroot"]\n\t\t},\n\t\t"metricsDataSourceETLTask": {\n\t\t\t"icon": "#common-metricsDataSource",\n\t\t\t"msgKey": "metricsDataSourceETLTask",\n\t\t\t"options": ["content"],\n\t\t\t"properties": "metricsDataSourceETLTask"\n\t\t},\n\t\t"metricsExportTask": {\n\t\t\t"icon": "#common-metricsExport",\n\t\t\t"msgKey": "metricsExportTask",\n\t\t\t"options": ["content"],\n\t\t\t"properties": "metricsExportTask"\n\t\t},\n\t\t"metricsFileImportTask": {\n\t\t\t"icon": "#common-metricsImport",\n\t\t\t"msgKey": "metricsFileImportTask",\n\t\t\t"options": ["content"],\n\t\t\t"properties": "metricsFileImportTask"\n\t\t},\n\t\t"metricsMaintenanceTask": {\n\t\t\t"icon": "#common-metricsMaintenance",\n\t\t\t"msgKey": "metricsMaintenanceTask",\n\t\t\t"options": ["content"],\n\t\t\t"properties": "metricsMaintenanceTask"\n\t\t},\n\t\t"module": {\n\t\t\t"groups": ["data"],\n\t\t\t"icon": "#ba_content_nav-data_model_16",\n\t\t\t"msgKey": "dataModule",\n\t\t\t"options": ["content"],\n\t\t\t"properties": "module"\n\t\t},\n\t\t"namespace": {\n\t\t\t"icon": "#common-namespace",\n\t\t\t"msgKey": "namespace",\n\t\t\t"options": ["container","teamroot","mruDisabled"]\n\t\t},\n\t\t"namespaceFolder": {\n\t\t\t"icon": "#common-folder_16",\n\t\t\t"msgKey": "folder",\n\t\t\t"options": ["container","teamroot","mruDisabled","tenant"]\n\t\t},\n\t\t"newsItem": {\n\t\t\t"icon": "#ba_content_nav-data_16",\n\t\t\t"msgKey": "newsItem",\n\t\t\t"options": ["content"]\n\t\t},\n\t\t"notebook": {\n\t\t\t"groups":["notebook"],\n\t\t\t"msgKey":"notebook",\n\t\t\t"options":["content"]\n\t\t},\n\t\t"package": {\n\t\t\t"groups": ["packages"],\n\t\t\t"icon": "#common-repository-archive",\n\t\t\t"msgKey": "package",\n\t\t\t"options": ["container","teamroot","content","mruDisabled"],\n\t\t\t"properties": "package"\n\t\t},\n\t\t"packageConfigurations": {\n\t\t\t"icon": "#common-question-mark",\n\t\t\t"msgKey": "packageConfigurations"\n\t\t},\n\t\t"pagelet": {\n\t\t\t"groups": ["dashboard"],\n\t\t\t"icon": "#common-pagelet",\n\t\t\t"msgKey": "pagelet",\n\t\t\t"options": ["content"]\n\t\t},\n\t\t"myPageletRef": {\n\t\t\t"icon": "#common-shortcut",\n\t\t\t"msgKey": "shortcut"\n\t\t},\n\t\t"pageletRefs": {\n\t\t\t"icon": "#ba_content_nav-folder-portal-pages_16",\n\t\t\t"msgKey": "pagelet"\n\t\t},\n\t\t"planningTask": {\n\t\t\t"icon": "#common-planning",\n\t\t\t"msgKey": "planningTask",\n\t\t\t"options": ["content"],\n\t\t\t"properties": "planningTask"\n\t\t},\n\t\t"powerPlayCube": {\n\t\t\t"icon": "#common-powerPlayCube",\n\t\t\t"msgKey": "powerPlayCube",\n\t\t\t"options": ["content"]\n\t\t},\n\t\t"powerPlayReport": {\n\t\t\t"groups": ["report"],\n\t\t\t"icon": "#ba_content_nav-powerplayreport_16",\n\t\t\t"msgKey": "powerPlayReport",\n\t\t\t"options": ["versions","content"],\n\t\t\t"properties": "powerPlayReport"\n\t\t},\n\t\t"powerPlay8Report": {\n\t\t\t"groups": ["report"],\n\t\t\t"icon": "#ba_content_nav-powerplayreport_16",\n\t\t\t"msgKey": "powerPlay8Report",\n\t\t\t"options": ["versions","content","powerPlay8"],\n\t\t\t"properties": "report"\n\t\t},\n\t\t"powerPlay8ReportView": {\n\t\t\t"baseTypes": ["powerPlay8Report"],\n\t\t\t"groups": ["report"],\n\t\t\t"icon": "#common-powerPlay8_report",\n\t\t\t"mruFields": ["base"],\n\t\t\t"msgKey": "powerPlay8ReportView",\n\t\t\t"options": ["invalidWithoutBase","view","decorateIcon","versions","content","powerPlay8"],\n\t\t\t"properties": "powerPlay8ReportView"\n\t\t},\n\t\t"query": {\n\t\t\t"groups": ["report"],\n\t\t\t"icon": "#common-queryReport",\n\t\t\t"msgKey": "query",\n\t\t\t"options": ["versions","content"],\n\t\t\t"properties": "report"\n\t\t},\n\t\t"report": {\n\t\t\t"groups": ["report"],\n\t\t\t"icon": "#common-report",\n\t\t\t"msgKey": "report",\n\t\t\t"options": ["versions","content"],\n\t\t\t"properties": "report"\n\t\t},\n\t\t"reportTemplate": {\n\t\t\t"groups": ["report"],\n\t\t\t"icon": "#ba_content_nav-reporttemplate_16",\n\t\t\t"msgKey": "reportTemplate",\n\t\t\t"options": ["versions","content"]\n\t\t},\n\t\t"reportView": {\n\t\t\t"baseTypes": ["report","query","analysis","interactiveReport"],\n\t\t\t"groups": ["reportView"],\n\t\t\t"icon": "#common-report_view",\n\t\t\t"mruFields": ["base"],\n\t\t\t"msgKey": "reportView",\n\t\t\t"options": ["invalidWithoutBase","view","versions","content"],\n\t\t\t"properties": "reportView"\n\t\t},\n\t\t"role": {\n\t\t\t"icon": "#common-role",\n\t\t\t"msgKey": "role",\n\t\t\t"options": ["tenant"]\n\t\t},\n\t\t"securedFeature": {\n\t\t\t"msgKey": "capability",\n\t\t\t"icon": "#capability_32"\n\t\t},\n\t\t"securedFunction": {\n\t\t\t"msgKey": "capability",\n\t\t\t"icon": "#capability_32"\n\t\t},\n\t\t"productCapability": {\n\t\t\t"msgKey": "capability",\n\t\t\t"icon": "#capability_32"\n\t\t},\n\t\t"shortcut": {\n\t\t\t"icon": "#common-shortcut",\n\t\t\t"msgKey": "shortcut",\n\t\t\t"groups": ["shortcut"],\n\t\t\t"options": ["content","hasSource","mruDisabled"],\n\t\t\t"properties": "shortcut"\n },\n "socialMediaProject": {\n "icon": "#ba_content_nav-social-insights-project_16",\n "msgKey": "socialInsightsProject",\n "groups": ["data"]\n },\n\t\t"story": {\n\t\t\t"derived": "exploration",\n\t\t\t"filterType": "story",\n\t\t\t"groups": ["stories"],\n\t\t\t"icon": "#common-story",\n\t\t\t"msgKey": "story",\n\t\t\t"mruFields": ["defaultScreenTip","iconURI"]\n\t\t},\n\t\t"tenant": {\n\t\t\t"icon": "#common-multi_tenant",\n\t\t\t"msgKey": "tenant"\n\t\t},\n\t\t"txt": {\n\t\t\t"derived": "uploadedFile",\n\t\t\t"groups": ["data"],\n\t\t\t"icon": "#ba_content_nav-text-file_24",\n\t\t\t"msgKey": "txt"\n\t\t},\n\t\t"uploadedFile": {\n\t\t\t"groups": ["data"],\n\t\t\t"icon": "#common-upload",\n\t\t\t"msgKey": "uploadedFile",\n\t\t\t"options": ["content"],\n\t\t\t"properties": "uploadedFile",\n\t\t\t"subtypes": [\n\t\t\t\t{ "check": { "field": "defaultName", "test": "extension", "values": ["csv","txt","xls","xlsx"] } }\n\t\t\t]\n\t\t},\n\t\t"fileUpload": {\n\t\t\t"icon": "#common-upload",\n\t\t\t"msgKey": "fileUpload"\n\t\t},\n\t\t"unknown": {\n\t\t\t"icon": "#ba_content_nav-data_16",\n\t\t\t"mruFields": ["base","defaultScreenTip","iconURI","tags"],\n\t\t\t"msgKey": "unknown"\n\t\t},\n\t\t"urlItem": {\n\t\t\t"icon": "#ba_content_nav-data_16",\n\t\t\t"msgKey": "urlItem",\n\t\t\t"options": ["content"]\n\t\t},\n\t\t"URL": {\n\t\t\t"icon": "#ba_content_nav-url_32",\n\t\t\t"msgKey": "URL",\n\t\t\t"options": ["content"]\n\t\t},\n\t\t"xls": {\n\t\t\t"derived": "uploadedFile",\n\t\t\t"groups": ["data"],\n\t\t\t"icon": "#common-excel_icon",\n\t\t\t"msgKey": "xls"\n\t\t},\n\t\t"xlsx": {\n\t\t\t"derived": "uploadedFile",\n\t\t\t"groups": ["data"],\n\t\t\t"icon": "#common-excel_icon",\n\t\t\t"msgKey": "xlsx"\n\t\t},\n\t\t"visualization": {\n\t\t\t"icon": "#change-visualization_16",\n\t\t\t"msgKey": "visualization"\n\t\t}\n\t}\n}\n'}),define("bacontentnav/utils/UIHelper",["underscore","../nls/StringResource","../lib/@waca/core-client/js/core-client/i18n/Formatter","../lib/@waca/core-client/js/core-client/ui/dialogs/MessageBox","./ContentStoreObject","../lib/@ba-ui-toolkit/ba-graphics/dist/illustrations-js/no-detail_128","text!../config/ca.json"],function(r,c,i,l,a,o,t){"use strict";var e=null,s=["defaultName","type","ancestors","permissions","disabled"],u=["hidden","owner"],n=function(){if(n.prototype._singletonInstance)return n.prototype._singletonInstance;(n.prototype._singletonInstance=this)._UI_CONFIG=JSON.parse(t),this._UI_REGISTRY=this._UI_CONFIG.uiTypes,this._CONFIG_TYPE="ca",this._filterFacets={},this._CONTENT_NAV_LS_KEY="waca-nav-ls",this._sortCollator=null,this._getSubtype=function(o){var s,t=a.getType(o);return!t&&o.securityObject?s=o.securityObject.type:r.find(this._UI_REGISTRY[t]&&this._UI_REGISTRY[t].subtypes||[],function(t){var e=o[t.check.field];if(e)switch(t.check.test){case"equal":s=e===t.check.value&&t.type;break;case"contains":s=-1!==e.indexOf(t.check.value)&&t.type;break;case"extension":var n=e.split(".").pop(),i=n&&t.check.values.indexOf(n.toLowerCase());s=-1!==i&&t.check.values[i]}return!!s}.bind(this)),s},this._isDerived=function(t){return!!(this._UI_REGISTRY[t]||this._UI_REGISTRY.unknown).derived||!1},this._hasOption=function(t,e){var n=this._UI_REGISTRY[t]||this._UI_REGISTRY.unknown;return n.options&&-1!==n.options.indexOf(e)},this._hasOptionFromObject=function(t,e){return this._hasOption(a.getType(t),e)},this._validateIsNumber=function(t){return r.isNumber(t)},this._validateIsEmail=function(t){return 0===t.length||/^([a-zA-Z0-9]+[_|-|.]?)*[a-zA-Z0-9]+@([a-zA-Z0-9]+[_|-|.]?)*[a-zA-Z0-9]+.[a-zA-Z]{2,3}$/.test(t)},this._validateMaxLength=function(t,e){return!t||t.toString().length<=e.maxLength},this._validateNumericRange=function(t,e){return!(void 0!==e.numericRange.min&&t<e.numericRange.min)&&!(void 0!==e.numericRange.max&&t>e.numericRange.max)},this._GET_VALIDATION_MESSAGES={isNumber:function(){return c.get("invalidNumber")},isEmail:function(){return c.get("invalidEmailMessage")},maxLength:function(t,e){return e=e||{},c.get("exceedMaxLength",{maxLength:i.formatNumber(t.maxLength,{locale:e.contentLocale})})}.bind(this),numericRange:function(t,e){var n;return void 0!==t.numericRange.min&&void 0!==t.numericRange.max?n=c.get("numberOutOfRange",{min:i.formatNumber(t.numericRange.min,{locale:e.contentLocale}),max:i.formatNumber(t.numericRange.max,{locale:e.contentLocale})}):void 0!==t.numericRange.min?n=c.get("numberTooSmall",{min:i.formatNumber(t.numericRange.min,{locale:e.contentLocale})}):void 0!==t.numericRange.max&&(n=c.get("numberTooBig",{max:i.formatNumber(t.numericRange.max,{locale:e.contentLocale})})),n}}};return n.prototype.init=function(t){r.extend(this,t)},n.prototype.initializeRegistry=function(t){var e=t&&t.getCoreSvc(".Context").get("config"),i=(e&&e.productType||"ca").toLowerCase();return this._CONFIG_TYPE===i?Promise.resolve():(this._CONFIG_TYPE=i,new Promise(function(n){require(["text!bacontentnav/config/"+i+".json"],function(t){var e=JSON.parse(t);e&&e.uiTypes&&(this._UI_CONFIG=e,this._UI_REGISTRY=e.uiTypes),n()}.bind(this))}.bind(this)))},n.prototype.renderInfoMessage=function(t,e,n){var i='<svg class="svgIcon" role="img" focusable="false"> \t\t\t<use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#'+(n=n||o).default.id+'"></use> \t\t</svg>';t.html('<div class="contentApps_comingSoon"><div class="emptyTableImage">'+i+'</div><div class="emptyTableText">'+e+"</div></div>")},n.prototype.getDisplayType=function(t){var e=a.getType(t);if(t)switch(t.state){case"valid":case void 0:e=this._getSubtype(t,e)||e;break;default:e="circle"}return e||"unknown"},n.prototype.getFilterType=function(t){var e=this.getDisplayType(t);return(e&&this._UI_REGISTRY[e]||this._UI_REGISTRY.unknown).filterType||a.getType(t)},n.prototype.getTypes=function(e){return r.filter(Object.keys(this._UI_REGISTRY),function(t){return!this._isDerived(t)&&(!e||0<r.intersection(e,this._UI_REGISTRY[t].options).length)}.bind(this))},n.prototype.getFilterFacets=function(t){var e=t?t.join(","):"all";if(!this._filterFacets[e]){var n=function(n){var i=[];return r.each(Object.keys(this._UI_REGISTRY),function(t){var e=this._UI_REGISTRY[t];n?this.isGroup(t,n)&&i.push(t):e.groups||i.push(t)}.bind(this)),i}.bind(this),i={},o=this.getConfiguration("filter").facets;r.each(o,function(t){i[t.msgKey]=n(t.group).join("|")}),i.others=n(null).join("|"),this._filterFacets[e]=i}return this._filterFacets[e]},n.prototype.getMRUFields=function(t,e){if(e)return s;var n=this._UI_REGISTRY[t]||this._UI_REGISTRY.unknown;return s.concat(u).concat(n.mruFields||[])},n.prototype.isContainer=function(t){return!!this._hasOption(t,"container")},n.prototype.isGroup=function(t,e){var n=this._UI_REGISTRY[t]||this._UI_REGISTRY.unknown;return n.groups&&e&&-1!==n.groups.indexOf(e)},n.prototype.isAllowedInTeamRoot=function(t){return!!this._hasOptionFromObject(t,"teamroot")},n.prototype.hasTenantOption=function(t){return!!this._hasOptionFromObject(t,"tenant")},n.prototype.hasSource=function(t){return!!this._hasOptionFromObject(t,"hasSource")},n.prototype.isVersionsSupported=function(t){return!(!a.getVersionsLink(t)&&!this._hasOptionFromObject(t,"versions"))},n.prototype.getSVGIconForType=function(t){return(this._UI_REGISTRY[t]||this._UI_REGISTRY.unknown).icon},n.prototype.isSVGIconDecorated=function(t){return!!this._hasOption(t,"decorateIcon")},n.prototype.getType=function(t){return(this._UI_REGISTRY[t]||this._UI_REGISTRY.unknown).derived||t},n.prototype.getTypeName=function(t){var e=this._UI_REGISTRY[t]||this._UI_REGISTRY.unknown;return e.msg||c.get(e.msgKey)},n.prototype.getTypeNameFromObject=function(t){return this.getTypeName(this.getDisplayType(t))},n.prototype.getIconTooltipForType=function(t){return this.getTypeName(t)},n.prototype.getTypeSVGIconFromObject=function(t){return this.getSVGIconForType(this.getDisplayType(t))},n.prototype.getIconFill=function(t){return(this._UI_REGISTRY[t]||this._UI_REGISTRY.unknown).iconFill||null},n.prototype.getProperties=function(t){return(this._UI_REGISTRY[t]||this._UI_REGISTRY.unknown).properties||null},n.prototype.getConfiguration=function(t){return(this._UI_CONFIG||{})[t]||{}},n.prototype.isLocalStorageSupported=function(){try{var t="testKey";return localStorage.setItem(t,"1"),localStorage.removeItem(t),!0}catch(t){return!1}},n.prototype.hasPermissions=function(t,e){return r.intersection(e,t).length===e.length},n.prototype.validateInput=function(t,e,n,i){var o=function(t){return t.stopPropagation(),l.inherited("ok",this,arguments),n&&n(),!1};for(var s in e)if(e.hasOwnProperty(s)){var r="_validate"+s.charAt(0).toUpperCase()+s.slice(1);if(this[r]&&!this[r](t,e)){var a=new l("warning",c.get("invalidInput"),this._GET_VALIDATION_MESSAGES[s](e,i));return a.ok=o,a.open(),!1}}return!0},n.prototype.isValid=function(t){return!this._hasOptionFromObject(t,"invalidWithoutBase")||!!a.hasBase(t)},n.prototype.isMRUSupported=function(t){var e=a.getType(t);return!(!e||this._isDerived(e)||this._hasOption(e,"mruDisabled"))},n.prototype.getBaseTypes=function(t){return(this._UI_REGISTRY[t]||this._UI_REGISTRY.unknown).baseTypes||null},n.prototype.addStroke=function(t){this.removeStroke(t);var e=$(t).find("use.ba_content_nav-filter_circle");if(e.length)e.attr("visibility","visible");else if(t&&t.length){var n=document.createElementNS("http://www.w3.org/2000/svg","use");n.setAttributeNS("http://www.w3.org/1999/xlink","href","#ba_content_nav-filter_circle"),n.setAttribute("height","12"),n.setAttribute("stroke","#ffffff"),n.setAttribute("fill","#1f57a4"),n.setAttribute("class","ba_content_nav-filter_circle"),$(t).attr("style","height: 25px;"),$(t).append(n)}},n.prototype.removeStroke=function(t){$(t).find("use.ba_content_nav-filter_circle").attr("visibility","hidden")},n.prototype.hasRequiredCapabilities=function(t,e,n){return void 0===n||0===n.length||(a.getType(t)===a.MODULE||(-1===r.indexOf(e,a.getType(t))||a.hasCapabilities(t,n)))},n.prototype.saveSlideoutWidth=function(t,e){var n=this.getSlideoutObject()||{};n||(n={}),n[t]=e,this.saveSlideoutObject(n)},n.prototype.getSlideoutWidth=function(t){var e=this.getSlideoutObject();return e&&e[t]||null},n.prototype.getSlideoutObject=function(){var t=window.localStorage||null;if(t)try{var e=t.getItem(this._CONTENT_NAV_LS_KEY);return JSON.parse(e)}catch(t){return null}return null},n.prototype.saveSlideoutObject=function(t){var e=window.localStorage||null;if(e)try{e.setItem(this._CONTENT_NAV_LS_KEY,JSON.stringify(t))}catch(t){}},n.prototype.getCollator=function(){return this._sortCollator||this._createSortCollator(),this._sortCollator},n.prototype._createSortCollator=function(){window.Intl?this._sortCollator=new Intl.Collator:this._sortCollator={compare:function(t,e){return t.toString().toLowerCase()>e.toString().toLowerCase()}}},function(){return e||(e=new n),e}()}),define("bacontentnav/utils/CookieJar",["../lib/@waca/baglass/js/baglass/utils/Utils"],function(e){return{getCookieValue:function(t){return e.getCookieValue(t)},setCookie:function(t,e,n,i,o,s){document.cookie=t+"="+encodeURIComponent(e)+(n?"; expires="+n.toUTCString():"")+(i?"; path="+i:"")+(o?"; domain="+o:"")+(s?"; secure":"")},deleteCookie:function(t,e,n){document.cookie=t+"="+(e?"; path="+e:"")+(n?"; domain="+n:"")+"; expires=Thu, 1 Jan 1970 00:00:01 UTC"}}}),define("bacontentnav/services/MRUClientStore",["jquery","../lib/@waca/core-client/js/core-client/ui/core/Class","../utils/CookieJar","../utils/GlassContextHelper","../utils/UIHelper","../lib/@waca/core-client/js/core-client/utils/BrowserUtils","underscore"],function(r,t,i,e,o,s,a){"use strict";return t.extend({init:function(t,e){this._FOLDER="formatedPath",this._NAME="defaultName",this._DELETE_VALUE="delete",this._TIMESTAMP_NUMERICAL_VALUE="_timestamp",this._TIMESTAMP_DATE_VALUE="timestamp",this._LIST_VALUE="list",this._ID_VALUE="id",this._DEFAULT_URL="v1/users/~/mrus",this._LIST_ID="data",this._DUMP_PERIOD=3e5,this._QUEUE_MAX_SIZE=20,this._hasBeenPopulated=!1,this._MRU_COOKIE_KEY="MRUStorage",this._CONFIG_SECURE_COOKIES="cookieSecure",this._CONFIG_COOKIE_PATH="cookiePath",this._SELFURL_VALUE="selfUrl",this._listObject={},this._queue=[],this._cycleID=-1,this._needsRefresh=!1,this._compareTo=e||function(t,e){return t===e}},initialize:function(t){if(!this._initialized&&t){if(this.glassContext=t,this._logger=t.getCoreSvc(".Logger"),this._USER_ID=t.profile.account.id,this._LOCAL_STORAGE_KEY="MRUStorage_"+this._USER_ID,this._GATEWAY=t.gateway||"",this._isCAPASSOEnv=t.getCoreSvc(".FeatureChecker").checkValue("contentNav","CAPASSO","enabled"),o.isLocalStorageSupported())if(this._getUserMRUCookie()){var e=localStorage.getItem(this._LOCAL_STORAGE_KEY);if(e){try{this._queue=JSON.parse(e)}catch(t){this._logger.error("Failed to restore MRU queue from local storage",t)}localStorage.removeItem(this._LOCAL_STORAGE_KEY)}}else this._setUserMRUCookie();var n=function(t,e){var n=this._doFinalDump(t);return e?n:void 0}.bind(this);s.isIPad()?r(window).blur(n.bind(this,!1,!1)):r(window).bind("beforeunload",n.bind(this,!1,!1));try{return t.getSvc(".Logout").then(function(t){return t.registerPreLogout(n.bind(this,!0,!0)),this}.bind(this))}catch(t){this._logger.error(t)}finally{this.cycle(),this._initialized=!0}}return Promise.resolve(this)},_doFinalDump:function(t){try{if(this.cycle(!1),this._needsRefresh)return o.isLocalStorageSupported()&&(this._getUserMRUCookie()?localStorage.setItem(this._LOCAL_STORAGE_KEY,JSON.stringify(this._queue)):localStorage.getItem(this._LOCAL_STORAGE_KEY)&&localStorage.removeItem(this._LOCAL_STORAGE_KEY)),this.dump(t,!0)}catch(t){this.glassContext.getCoreSvc(".Logger").error(t)}finally{this._needsRefresh=!1}return Promise.resolve()},_getUserMRUCookie:function(){var t=i.getCookieValue(this._MRU_COOKIE_KEY);return(t=t?JSON.parse(t):{})[this._USER_ID]},_setUserMRUCookie:function(){var n=i.getCookieValue(this._MRU_COOKIE_KEY);(n=n?JSON.parse(n):{})[this._USER_ID]=!0,this._getCookiePath().then(function(e){this._isSecureCookies().then(function(t){i.setCookie(this._MRU_COOKIE_KEY,JSON.stringify(n),void 0,e,void 0,t)}.bind(this))}.bind(this))},_isSecureCookies:function(){return this.glassContext.getCoreSvc(".Config").getConfigValue(this._CONFIG_SECURE_COOKIES).then(function(t){return!(!t||"true"!==t)})},_getCookiePath:function(){return this.glassContext.getCoreSvc(".Config").getConfigValue(this._CONFIG_COOKIE_PATH).then(function(t){if(t)return t})},push:function(t,e,n){this._delete(t),this._append(t,e,n),this._needsRefresh=!0},updateEntry:function(t,e){if(e&&t){var n=this.contains(t);-1!==n&&(this._queue[n].elem=a.extend(this._queue[n].elem,e),this._needsRefresh=!0)}},_delete:function(t){var e=this.contains(t),n=null;return-1!==e&&(n=this._queue[e].elem,this._queue.splice(e,1),this._needsRefresh=!0),n},contains:function(n){var i=-1;return r.each(this._queue,function(t,e){if(this._compareTo(n,e.key))return i=t,!1}.bind(this)),i},_append:function(t,e,n){if(this.isFull()&&this._queue.shift(),n){var i=new Date;e[this._TIMESTAMP_NUMERICAL_VALUE]=i.getTime(),e[this._TIMESTAMP_DATE_VALUE]=i.toISOString()}this._queue.push({key:t,elem:e})},cycle:function(t){window.clearInterval(this._cycleID),(void 0===t||t)&&(this._cycleID=window.setInterval(function(){this.dump()}.bind(this),this._DUMP_PERIOD))},dump:function(e,n){return new Promise(function(t){this._needsRefresh?!1===e?this.getFromMRU(e,n).then(function(){this.putToMRU(e,n).then(function(){this._needsRefresh=!1,t()}.bind(this))}.bind(this)):this.getFromMRU().then(function(){this.putToMRU().then(function(){this._needsRefresh=!1,t()}.bind(this))}.bind(this)):t()}.bind(this))},refresh:function(){return this.dump().then(function(){return this._hasBeenPopulated=!1,this._listObject={},this._queue=[],this._populateQueue()}.bind(this))},mergeArrays:function(t,e){var n=this._queue;this.clear();var i=[],o=[];for(t=t.sort(this.sortTimestamp.bind(this)),e=e.sort(this.sortTimestamp.bind(this));!this.isEmpty(t)||!this.isEmpty(e);)t.length&&e.length&&this._compareTo(t[0].key,e[0].key)?(t[0].elem._timestamp>=e[0].elem._timestamp?this.push(t[0].key,t[0].elem):this.push(e[0].key,e[0].elem),i.push(t.shift()),o.push(e.shift())):t.length&&!e.length||t.length&&e.length&&t[0].elem._timestamp<=e[0].elem._timestamp?(this.push(t[0].key,t[0].elem),i.push(t.shift())):(!t.length&&e.length||t.length&&e.length&&t[0].elem._timestamp>e[0].elem._timestamp)&&(this.push(e[0].key,e[0].elem),o.push(e.shift()));var s=this._queue;for(this._queue=n;0<i.length;)t.push(i.shift());for(;0<o.length;)e.push(o.shift());return s},sortTimestamp:function(t,e){var n=t.elem[this._TIMESTAMP_NUMERICAL_VALUE],i=e.elem[this._TIMESTAMP_NUMERICAL_VALUE];return n<i?-1:i<n?1:0},addKeysToArray:function(t){if(!t[0]||!t[0].id)return[];var e=this._queue;this.clear(),r.each(t,function(t,e){this.push(e.id,e)}.bind(this));var n=this._queue;return this._queue=e,n},getFromMRU:function(e,n){return new Promise(function(o){e=!1!==e,n=!0===n;var s=this._DEFAULT_URL,t={url:s,dataType:"json",async:e,skipErrorHandling:n,data:{}};this.glassContext.getCoreSvc(".Ajax").ajax(t).then(function(t){t=t.data;var e=!1,n=[],i=this.findList(t);-1!==i?(this._listObject[this._LIST_VALUE]||(this._listObject=t[i],this._listObject[this._ID_VALUE]=t[i][this._ID_VALUE]),this._listObject[this._LIST_VALUE]&&r.isArray(this._listObject[this._LIST_VALUE])&&(n=this._listObject[this._LIST_VALUE].reverse()),1<t.length&&(e=!0,this.trimMRU(t,s,0,i).then(o))):t.length&&(e=!0,this.trimMRU(t,s).then(o)),this._queue=this.mergeArrays(this._queue,this.addKeysToArray(n)),e||o()}.bind(this)).catch(this._handleMRUError.bind(this))}.bind(this))},findList:function(t){var n=-1;return r.isArray(t)&&r.each(t,function(t,e){e.hasOwnProperty(this._LIST_VALUE)&&e[this._ID_VALUE]===this._LIST_ID&&(n=t)}.bind(this)),n},trimMRU:function(t,e,n,i){if(n||(n=0),n>t.length-1)return Promise.resolve();var o;if(n!==i){var s=e+"/"+t[n].id;this.counter=this.counter+1;var r={url:s,type:"DELETE",dataType:"json"};o=this.glassContext.getCoreSvc(".Ajax").ajax(r)}else o=Promise.resolve();return o.then(this.trimMRU.bind(this,t,e,n+1,i)).catch(function(t){this._logger.error(t),this.cycle(!1)}.bind(this))},putToMRU:function(n,i){var o=this._DEFAULT_URL;return n=!1!==n,i=!0===i,this.getQueue(!0).then(function(t){this._listObject[this._LIST_VALUE]=t,this._listObject[this._ID_VALUE]=this._LIST_ID,o+="/"+this._listObject[this._ID_VALUE];var e={contentType:"application/json",dataType:"json",async:n,skipErrorHandling:i,type:"PUT",url:o,data:JSON.stringify(this._listObject)};return this.glassContext.getCoreSvc(".Ajax").ajax(e).then(function(){this.printQueue()}.bind(this)).catch(this._handleMRUError.bind(this))}.bind(this))},_handleMRUError:function(t){return this._logger.error("Failed to get/set MRU",t),Promise.reject(t)},remove:function(t){var e=this._delete(t);null!==e&&(e[this._DELETE_VALUE]=!0,this._append(t,e,!0))},removeContainer:function(o){return o.ancestors?this.getQueue().then(function(t){r.each(t,function(t,e){var n=e[this._FOLDER].split(" > "),i=!1;r.each(o.ancestors,function(t,e){if(e[this._NAME]!==n[t])return!1;t===o.ancestors.length-1&&n[t+1]&&n[t+1]===o.defaultName&&(i=!0)}.bind(this)),i&&e.id&&this.remove(e.id)}.bind(this))}.bind(this)):(this._logger.warn("Missing ancestors info"),Promise.resolve())},getQueue:function(i){return this._populateQueue().then(function(){var n=[];return this._removeDuplicateElements(),r.each(this._queue,function(t,e){!i&&(e.elem[this._DELETE_VALUE]||e.elem[this._SELFURL_VALUE]&&0!==e.elem[this._SELFURL_VALUE].indexOf(this._GATEWAY)&&!this._isCAPASSOEnv)||n.push(e.elem)}.bind(this)),n.reverse()}.bind(this))},_populateQueue:function(){return this._hasBeenPopulated||this._listObject[this._LIST_VALUE]?Promise.resolve("populated"):this.getFromMRU().then(function(){this._hasBeenPopulated=!0}.bind(this))},_removeDuplicateElements:function(){r.each(this._queue,function(t,e){var n=e.elem;this._isDuplicate(n)&&(n[this._DELETE_VALUE]=!0)}.bind(this))},_isDuplicate:function(t){return!t[this._DELETE_VALUE]&&this._hasNewerVersion(t)},_hasNewerVersion:function(e){return this._queue.some(function(t){return this._isNewerVersion(t.elem,e)}.bind(this))},_isNewerVersion:function(t,e){return t.id!==e.id&&!t[this._DELETE_VALUE]&&t[this._FOLDER]===e[this._FOLDER]&&t[this._NAME]===e[this._NAME]&&t[this._TIMESTAMP_NUMERICAL_VALUE]>=e[this._TIMESTAMP_NUMERICAL_VALUE]},_clearLastDeletedElem:function(){for(;this._queue[0]&&this._queue[0].elem[this._DELETE_VALUE]&&this._queue.length>this._QUEUE_MAX_SIZE;)this._queue.shift()},isFull:function(){if(this._queue.length<this._QUEUE_MAX_SIZE||0===this._QUEUE_MAX_SIZE)return!1;this._clearLastDeletedElem();var e=0;return r.each(this._queue,function(t){this._queue[t].elem[this._DELETE_VALUE]||(e+=1)}.bind(this)),e>=this._QUEUE_MAX_SIZE},isEmpty:function(t){return t?!t.length:!this._queue.length},clear:function(){this._queue=[]},printQueue:function(){this._logger.info("Printing the queue"),this._logger.info(this._queue)},getMaxSize:function(){return this._QUEUE_MAX_SIZE}})}),define("bacontentnav/services/ContentService",["../lib/@waca/baglass/js/baglass/app/services/AjaxService","../lib/@waca/core-client/js/core-client/utils/Utils","../utils/ContentStoreObject","../utils/GlassContextHelper","../utils/UIHelper","../utils/ContentServiceUrls","./MRUClientStore","../nls/StringResource","jquery","underscore"],function(t,e,o,n,a,i,s,r,c,l){"use strict";var u={formatedPath:"getLocation",defaultName:"getName",type:"getType",disabled:"getDisabled",permissions:"getPermissions",selfUrl:"getSelfLink"},p={defaultScreenTip:"getTooltip",hidden:"getHidden",iconURI:"getIcon",owner:"getOwnerName",tags:"getTags"},h=["defaultName","type","owner","permissions","disabled","hidden","iconURI","defaultScreenTip"],d=t.extend({init:function(t){d.inherited("init",this,arguments),l.extend(this,t),this.initialize(this.glassContext)},get:function(t,e,n){var i=e&&e.data&&e.data.fields,o=e&&e.MRUInfo&&e.MRUInfo.type||"unknown",s=(i?i.split(","):[]).concat(a.getMRUFields(o));s=l.uniq(s),(e=e||{}).data=e.data||{},e.data.fields=s.join(",");var r=c.Deferred();return d.inherited("get",this,arguments).then(function(){r.resolve.apply(r,arguments),e.MRUInfo&&this._addToMRU(arguments[0].data[0])}.bind(this),function(){r.reject.apply(r,arguments)}),r.promise()},post:function(t,i,e){var o=c.Deferred();return d.inherited("post",this,arguments).then(function(t,e,n){o.resolve.apply(o,arguments),i.MRUInfo&&(i.MRUInfo.selfUrl=n.getResponseHeader("location"),this._fetchAndAddToMRU(i.MRUInfo))}.bind(this),function(){o.reject.apply(o,arguments)}),o.promise()},put:function(t,e,n){var i=c.Deferred();return d.inherited("put",this,arguments).then(function(){i.resolve.apply(i,arguments),e.MRUInfo&&this._fetchAndAddToMRU(e.MRUInfo)}.bind(this),function(){i.reject.apply(i,arguments)}),i.promise()},delete:function(t,e,n){return e.MRUInfo&&e.MRUInfo.id&&(e.headers=e.headers||[],e.headers["X-BI-MRU-PUT"]=JSON.stringify({category:"CONTENT_MRU",key:e.MRUInfo.id})),d.inherited("delete",this,arguments)},_getMRUEntry:function(e){var n={};n[o.ID]=e.id,l.each(Object.keys(u),function(t){n[t]=o[u[t]](e)});var i=a.getMRUFields(o.getType(e));return l.each(Object.keys(p),function(t){-1!==i.indexOf(t)&&e.hasOwnProperty(t)&&(n[t]=o[p[t]](e))}),-1!==i.indexOf("base")&&o.getBase(e)&&(n.base=[o.getBase(e)]),n},_addToMRU:function(e){if(!l.some(a.getMRUFields(o.getType(e),!0),function(t){return void 0===e[t]||null===e[t]})){var t=this._getMRUEntry(e);this.mruQueue.push(t.id,t,!0),this.eventRouter.trigger("home:refresh",{dump:!1})}else this.logger.debug("Not adding to asset to MRU list: "+e.id)},_fetchAndAddToMRU:function(t){if(a.isMRUSupported(t)){var e={url:o.getSelfLink(t),dataType:"json",type:"GET",data:{fields:a.getMRUFields(o.getType(t)).join(",")}};this.glassContext.getCoreSvc(".Ajax").ajax(e).then(function(t){this._addToMRU(t.data.data[0])}.bind(this)).catch(function(t){this.logger.error(t)}.bind(this))}},_getEncodedPath:function(t){var e=t?t.replace(/^\//,""):t;return encodeURIComponent(e)},addToMRU:function(t){this._fetchAndAddToMRU(t)},updateMRUEntry:function(e){if(e&&e.id){var n=this._getMRUEntry(e);l.each(h,function(t){void 0!==e[t]&&null!==e[t]&&""!==e[t]||delete n[t]}),e.ancestors||delete n.formatedPath,delete n.selfUrl,this.mruQueue.updateEntry(n.id,n),this.eventRouter.trigger("home:refresh",{dump:!1})}},removeFromMRU:function(t){return t&&t.id?(a.isContainer(o.getType(t))&&this.mruQueue.removeContainer(t),this.mruQueue.remove(t.id),this.eventRouter.trigger("home:refresh",{dump:!1})):this.logger.debug("Missing information to remove from the MRU List: "+t),c.Deferred().resolve(!0).promise()},getBaseObjectsURL:function(){return i.getBaseObjectsURL()},getBasePathURL:function(){return i.getBasePathURL()},getPathUrl:function(t){return i.getBasePathURL()+this._getEncodedPath(t)},getSearchPathUrl:function(t){return i.getBaseSearchPathURL()+this._getEncodedPath(t)},getMyFoldersURL:function(){return i.getMyFoldersURL()},getOtherUsersFoldersURL:function(){return i.getOtherUsersFoldersURL()},getBaseNamespaceURL:function(){return i.getBaseNamespaceURL()},getPublicFoldersURL:function(){return i.getPublicFoldersURL()},refreshMRU:function(){return this.mruQueue.refresh()},getMRUList:function(){return this.mruQueue.getQueue().then(function(t){return n.getUserPreference(this.glassContext,"showHiddenObjects")||(t=l.filter(t,function(t){return!o.getHidden(t)})),t||[]}.bind(this))},getLocation:function(t){return o.getLocation(t)},getMRUMaxSize:function(){return this.mruQueue.getMaxSize()},initialize:function(t){if(t)return this.glassContext=t,this.eventRouter=this.glassContext.getCoreSvc(".Events"),this.logger=this.glassContext.getCoreSvc(".Logger"),o.setGlassContext(t),l.isFunction(e.init)&&e.init({glassContext:this.glassContext}),this.mruQueue=new s,this.mruQueue.initialize(t)},getRootPublicFolderName:function(){return i.getRootPublicFolderName()},getRootMyFolderName:function(){return i.getRootMyFolderName()},showFolder:function(t){return this._getFolderData(t).then(function(t){t&&this._openFolder(t)}.bind(this))},_getFolderData:function(e){var t={dataType:"json",type:"GET",url:"v1/path?path="+encodeURIComponent(e),data:{fields:"id,type,defaultName,ancestors,shown"}};return this.glassContext.getCoreSvc(".Ajax").ajax(t).then(function(t){var e=t.data.data[0];return"folder"!==e.type&&e.ancestors&&e.ancestors.length?this._getFolderData(e.ancestors.pop().id):t.data.data[0]}.bind(this)).catch(function(t){this.logger.error("Failed to retrieve objInfo for pathRef="+e,t),this._showUnableToOpenFolderMessage()}.bind(this))},_isTopLevel:function(t){if(t.ancestors){for(var e=0;e<t.ancestors.length;e++)if("folder"===t.ancestors[e].type)return!1;return!0}},_openFolder:function(e){if(!0===e.shown){var t=this._isTopLevel(e),n=this._isUserContent(e,t)?"com.ibm.bi.contentApps.myContentFoldersSlideout":"com.ibm.bi.contentApps.teamFoldersSlideout",i=this.glassContext.appController.findPlugin(n);if(i)return i.getActionController().then(function(t){i.itemSpec.options.content.initialFolder=e,t.onPress({glassContext:this.glassContext,pushState:!0,target:{plugin:i}})}.bind(this));this.logger.error('Cannot find plugin with id="'+n+'"'),this._showUnableToOpenFolderMessage()}else this._showUnableToOpenFolderMessage()},_showUnableToOpenFolderMessage:function(){this.glassContext.appController.showToast(r.get("unableToOpenFolderMsg"),{type:"error",preventDuplicates:!0})},_isUserContent:function(t,e){var n=o.getAncestors(t);if(n&&0<n.length)var i=o.getSelfLink(n[0]);return e&&i===this.getMyFoldersURL()&&(t.ancestors=[],t.defaultName=r.get("myContent")),i===this.getMyFoldersURL()}});return d}),define("bi/content_apps/api/ContentSlideoutController",["bi/glass/app/NavbarButtonSlideoutController","bacontentnav/utils/ContentStoreObject","bacontentnav/utils/UIHelper","underscore"],function(t,r,a,c){"use strict";var o=t.extend({getCustomSpec:function(e){var t=o.inherited("getCustomSpec",this,arguments),n=e.glassContext.appController.getCurrentContentView();if(this._hasInitialFolder(t)||this._needToOpenSpecificFolder(n))try{this._addFolderInfoInSpec(t,n)}catch(t){e.glassContext.getCoreSvc(".Logger").error("Cannot add folder info in spec",t)}if(t.options&&t.options.content.id){var i=a.getSlideoutWidth(t.options.content.id);i&&(i=parseInt(i),(i+=9)<$(document).width()&&(t.options.width=i+"px"))}return t},_needToOpenSpecificFolder:function(t){return t&&"cahome/views/CAHomeView"===t.module&&c.isFunction(t.getFolderInfo)&&c.isFunction(t.resetFolderInfo)},onShowCallback:function(){this._slideout&&this._slideout.contentView&&this._isNotLegacyView(this._slideout.contentView.moduleID)&&(this._slideout.contentView.toggleSlideoutOpen(),this._slideout.contentView.render(this.targetFolder))},_addFolderInfoInSpec:function(t,e){this.targetFolder=t.options.content.initialFolder,this.renderFromReact=t.options.content.renderFromReact;var n=e.getFolderInfo&&e.getFolderInfo();if(this.targetURL=t.options.content.url,t.options.content.initialFolder&&(n=t.options.content.initialFolder,delete t.options.content.initialFolder),e.resetFolderInfo&&e.resetFolderInfo(),c.isObject(n)){var i=c.clone(r.getAncestors(n));if(i?a.isContainer(r.getType(n))?i.push(c.pick(n,"id","type","defaultName","_meta")):n=i[i.length-1]:i=[],t.options.label=n.defaultName,t.options.content.ancestors=i,t.options.content.url=r.getItemsLink(n),t.options.content.selfUrl=r.getSelfLink(n),this._slideout&&this._slideout.contentView){for(var o=[],s=0;s<i.length;s++)i[s].id!==n.id&&o.push(i[s]);n.ancestors=o,this.renderFromReact||(this._slideout.contentView.ancestors=n.ancestors,this._slideout.contentView.navigate(n))}}},_hasInitialFolder:function(t){return t&&t.options&&t.options.content&&c.isObject(t.options.content.initialFolder)},_isNotLegacyView:function(t){return t&&-1===t.indexOf("LegacyCAMyContentView")&&-1===t.indexOf("LegacyCATeamFoldersView")}});return o}),define("js/content_apps/contentBundle",function(){});
|