/**
* Licensed Materials - Property of IBM
*
* IBM Cognos Products: CA Home
*
* Copyright IBM Corp. 2017, 2018
*
* US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
*/
define('cahome/nls/CahomeResources',{
"root": true,
"cs": true,
"da": true,
"de": true,
"es": true,
"fi": true,
"fr": true,
"he": true,
"hr": true,
"hu": true,
"it": true,
"ja": true,
"kk": true,
"ko": true,
"no": true,
"nb": true,
"nl": true,
"pl": true,
"pt": true,
"pt-br": true,
"ro": true,
"ru": true,
"sl": true,
"sv": true,
"th": true,
"tr": true,
"zh": true,
"zh-cn": true,
"zh-tw": true
});
/**
* Licensed Materials - Property of IBM
* IBM Cognos Products: ca-home
* (C) Copyright IBM Corp. 2020
* US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
*/
define('cahome/nls/root/CahomeResources',{
"welcome": "Welcome",
"welcomeMsgCA": "Welcome to %{brandName}",
"secondaryWelcomeMsg": "Get started by opening a report, dashboard, story, or an exploration!",
"recent": "Recent",
"unableToOpenFolderMsg": "Unable to open the specified folder",
"viewTitle": "Home",
"showMore": "Show more...",
"showLess": "Show less...",
"quickReference": "Quick reference",
"dndPrompt": "Drag and drop files, open Quick launch or Browse",
"sampleData": "Sample data",
"getStarted": "Get started",
"support": "Support",
"supportVideos": "Support videos",
"droppedFileUpload": "Drop your files to begin upload",
"quality": "Quality: %{quality}%",
"noRecents": "Your content will appear here.",
"trySamples": "Add some data or try our samples to get started.",
"trySamplesNoBrowse": "Try our samples to get started.",
"uploadToFolder": "Upload to %{folderName}
%{launchAction}",
"uploadAndLaunch": "Upload to %{folderName}
and launch%{launchAction}",
"quickLaunch": "Quick launch",
"myContent": "My content",
"unsupportedFilesSingle": "%{files} did not upload because it is invalid for Quick launch.",
"unsupportedFilesMultiple": "The files did not upload because all the files you select must be valid to use Quick launch.",
"unsupportedFilesSingleInvalid": "%{files} is invalid.",
"unsupportedFilesMultipleInvalid": "%{files} are invalid.",
"supportedFileTypes": "Only the following file types are allowed: %{extensions}.",
"upload_progress": "%{percent} uploaded",
"tile_info_waiting": "Uploading...",
"tile_info_pending": "Upload pending...",
"tile_info_transferring": "Uploading...",
"tile_info_creating": "Processing...",
"tile_info_updating": "Updating...",
"tile_info_uploading": "Uploading...",
"tile_info_deleting": "Deleting...",
"tile_info_invalid": "Error loading data",
"tile_info_action_required": "Action required",
"tile_info_reset_required": "Reset required",
"tile_info_resumable": "Error loading data",
"tile_info_inactive": "Delay loading data",
"assetActionMenu": "Action menu",
"tooltip_tileView": "Tile View",
"tooltip_listView": "List View",
"list_header_name": "Name",
"list_header_type": "Type",
"list_header_last_modified": "Last modified",
"welcome_show": "Show welcome",
"welcome_primary_title": "Hello. Welcome to %{brandName}.",
"welcome_secondary_title": "Unearth hidden insights with a personalized analytics experience driven by AI.",
"welcome_tile_title_tour": "Take a quick tour",
"welcome_tile_description_tour": "Experience Cognos Analytics by using guided walkthroughs.",
"welcome_tile_progress_tour": "%{current} of %{total} tours completed",
"welcome_tile_title_sample": "Samples",
"welcome_tile_description_sample": "Get inspired by our samples! See what you can build with Cognos Analytics.",
"welcome_tile_title_how": "How-to videos",
"welcome_tile_description_how": "Watch short videos to learn how to use Cognos Analytics and start gaining insights into your data.",
"welcome_tile_title_accelerator": "Accelerator catalog",
"welcome_tile_description_accelerator": "Browse a growing catalog of assets to enhance your experience. Please see the Accelerator Catalog FAQ for support information.",
"modal_how_title": "Learn how to start",
"modal_how_play": "Play video",
"modal_how_video_title_overview": "Overview",
"modal_how_video_title_exploration": "Create an exploration",
"modal_how_video_title_dashboard": "Create a dashboard",
"modal_sample_title": "Samples",
"modal_sample_description": "You can find samples of Data, Dashboards, Explorations and more in the Samples folder in Team content.",
"modal_sample_button_text": "Go to Samples"
});
/**
* Licensed Materials - Property of IBM
* IBM Cognos Products: BI Cloud (C) Copyright IBM Corp. 2017
* US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
*/
define('cahome/nls/StringResources',['i18n!./CahomeResources', 'polyglot'], (function(localeResources, Polyglot) {
/**
* Module which provides simple access to string resources.
*
*/
var poly = new Polyglot({
phrases: localeResources,
warn: function () {}
});
var StringResources = function() {};
/**
* Get the string resource for the given key and interpolation options
*
* @param key The key of the string to return
* @param interpolationOptions Optional interpolation options (see poly.t documentation for details)
* @returns The string to display
*/
StringResources.prototype.get = function(key, interpolationOptions) {
return poly.t(key, interpolationOptions);
};
// singleton
return new StringResources();
}));
define('text!cahome/views/templates/HomeView.html',[],function () { return '/**\n * Licensed Materials - Property of IBM\n * IBM Cognos Products: ca-home\n * (C) Copyright IBM Corp. 2017, 2018\n * US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.\n */\n
>16&255,c[u++]=e>>8&255,c[u++]=255&e;2===s&&(e=o[t.charCodeAt(n)]<<2|o[t.charCodeAt(n+1)]>>4,c[u++]=255&e);1===s&&(e=o[t.charCodeAt(n)]<<10|o[t.charCodeAt(n+1)]<<4|o[t.charCodeAt(n+2)]>>2,c[u++]=e>>8&255,c[u++]=255&e);return c},e.fromByteArray=function(t){for(var e,n=t.length,o=n%3,i=[],a=0,s=n-o;as?s:a+16383));1===o?(e=t[n-1],i.push(r[e>>2]+r[e<<4&63]+"==")):2===o&&(e=(t[n-2]<<8)+t[n-1],i.push(r[e>>10]+r[e>>4&63]+r[e<<2&63]+"="));return i.join("")};for(var r=[],o=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,c=a.length;s>1,u=-7,p=n?o-1:0,f=n?-1:1,d=t[e+p];for(p+=f,i=d&(1<<-u)-1,d>>=-u,u+=s;u>0;i=256*i+t[e+p],p+=f,u-=8);for(a=i&(1<<-u)-1,i>>=-u,u+=r;u>0;a=256*a+t[e+p],p+=f,u-=8);if(0===i)i=1-l;else{if(i===c)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,r),i-=l}return(d?-1:1)*a*Math.pow(2,i-r)},e.write=function(t,e,n,r,o,i){var a,s,c,l=8*i-o-1,u=(1<
"),l()(r.join(" "))}},{key:"brandNameFormatter",value:function(){var t=this.props.labels;return l()(t.brand)}},{key:"_sendInstrumentationEvtTour",value:function(t){var e=t.getCoreSvc(".Instrumentation"),n="clicked",r="tour_tile";e.enabled&&e.track({type:"CTA Clicked",action:n,uiElement:r,milestoneName:n+"_ui_element_"+r,CTA:"Take a Quick Tour"})}},{key:"_sendInstrumentationEvtVideo",value:function(t){var e=t.getCoreSvc(".Instrumentation"),n="clicked",r="video_tile";e.enabled&&e.track({type:"CTA Clicked",action:n,uiElement:r,milestoneName:n+"_ui_element_"+r,CTA:"Watch How-to Videos"})}},{key:"_sendInstrumentationEvtSample",value:function(t){var e=t.getCoreSvc(".Instrumentation"),n="clicked",r="sample_tile";e.enabled&&e.track({type:"CTA Clicked",action:n,uiElement:r,milestoneName:n+"_ui_element_"+r,CTA:"Visit Samples"})}},{key:"_sendInstrumentationEvtAccelerator",value:function(t){var e=t.getCoreSvc(".Instrumentation"),n="clicked",r="accelerator_tile";e.enabled&&e.track({type:"CTA Clicked",action:n,uiElement:r,milestoneName:n+"_ui_element_"+r,CTA:"Browse Accelerator Catalog"})}},{key:"_isInstrumentationEnabled",value:function(t){return t.getCoreSvc(".Instrumentation").enabled}},{key:"_openModalViaTabbing",value:function(t,e){t.stopPropagation(),("click"==t.type&&!t.shiftKey&&!t.ctrlKey&&3!==t.nativeEvent.which||"keyup"==t.type&&13===t.keyCode)&&(t.persist(),"video"===e?(this._openVideoModal(),this._sendInstrumentationEvtVideo(this.props.glassContext)):"sample"===e?(this._openSampleModal(),this._sendInstrumentationEvtSample(this.props.glassContext)):"tour"===e?this._sendInstrumentationEvtTour(this.props.glassContext):"accelerator"===e&&(this._openAcceleratorCatalogue(),this._sendInstrumentationEvtAccelerator(this.props.glassContext)))}},{key:"_closeVideoModal",value:function(){this.setState({openVideoModal:!1})}},{key:"_openVideoModal",value:function(){this.setState({openVideoModal:!0})}},{key:"_closeSampleModal",value:function(){this.setState({openSampleModal:!1})}},{key:"_openSampleModal",value:function(){this.setState({openSampleModal:!0})}},{key:"_closeSocialModal",value:function(){this.setState({openSocialModal:!1})}},{key:"_openAcceleratorCatalogue",value:function(){window.open("https://community.ibm.com/accelerators/?context=analytics&product=Cognos%20Analytics","_blank")}},{key:"_isSampleInstalled",value:function(){return this.state.sampleInstalled}},{key:"render",value:function(){var t=this,e=this.props,n=e.stringGetter,r=e.glassContext,i=e.sampleOpener,a=e.themeValues,s="common-CA_Avatar_Colour_64"===a.images.brandIcon?o.a.createElement("img",{className:"brandTitleIcon",src:ke.a,alt:a.images.altText}):o.a.createElement("img",{className:"brandTitleIcon",src:a.images.brandIcon,alt:a.images.altText}),c=this._isInstrumentationEnabled(r)&&this._isSampleInstalled()?o.a.createElement(Wn,{className:"tourTile",stringGetter:n,iconID:nn.id,titleKey:"welcome_tile_title_tour",descriptionKey:"welcome_tile_description_tour",onKeyUp:function(e){return t._openModalViaTabbing(e,"tour")},onClick:function(){t._sendInstrumentationEvtTour(r)},isLast:!1}):null,l=o.a.createElement(Wn,{className:"howTile",stringGetter:n,iconID:_e.id,titleKey:"welcome_tile_title_how",descriptionKey:"welcome_tile_description_how",onKeyUp:function(e){return t._openModalViaTabbing(e,"video")},onClick:function(){t._openVideoModal(),t._sendInstrumentationEvtVideo(r)},isLast:!1}),u=this.state.sampleInstalled?o.a.createElement(Wn,{className:"sampleTile",stringGetter:n,iconID:tn.id,titleKey:"welcome_tile_title_sample",descriptionKey:"welcome_tile_description_sample",onKeyUp:function(e){return t._openModalViaTabbing(e,"sample")},onClick:function(){t._openSampleModal(),t._sendInstrumentationEvtSample(r)},isLast:!1}):null,p=o.a.createElement(Wn,{className:"acceleratorTile",stringGetter:n,iconID:on.id,titleKey:"welcome_tile_title_accelerator",descriptionKey:"welcome_tile_description_accelerator",onKeyUp:function(e){return t._openModalViaTabbing(e,"accelerator")},onClick:function(){t._openAcceleratorCatalogue(),t._sendInstrumentationEvtAccelerator(r)},isLast:!0});return o.a.createElement("div",{className:"welcomeViewWrapper"},this.state.openVideoModal&&o.a.createElement(gn,{stringGetter:n,sampleOpener:i,closeHandler:function(){return t._closeVideoModal()}}),this.state.openSampleModal&&o.a.createElement(Bn,{sampleOpener:i,stringGetter:n,closeHandler:function(){return t._closeSampleModal()}}),o.a.createElement("img",{className:"welcomeBackground",src:Qe.a,alt:""}),o.a.createElement("div",{className:"brandTitle"},s),o.a.createElement("div",{className:"primaryTitle"},this.titleFormatter()),o.a.createElement("div",{className:"secondaryTitle"},n.get("welcome_secondary_title")),o.a.createElement("div",{className:"welcomeTileWrapper"},c,l,u,p))}}])&&Mn(e.prototype,n),r&&Mn(e,r),Object.defineProperty(e,"prototype",{writable:!1}),a}(r.Component);In(kn,"propTypes",{className:a.a.string,stringGetter:a.a.object,labels:a.a.object.isRequired,glassContext:a.a.object,sampleOpener:a.a.func,themeValues:a.a.object,sampleChecker:a.a.func});n(211);function Kn(t){return(Kn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Gn(t,e){for(var n=0;n