{"version":3,"sources":["tour-overview.js"],"names":["$","tour","ajaxSetup","cache","$tourContent","doingScreenshot","autoStart","data","startAtStepKey","tooltip","selector","on","e","preventDefault","stopPropagation","$this","this","$reflexChildren","find","length","trigger","step","goTo","alert","browserSupportsFullscreen","fullscreenButton","css","requestFullscreen","document","exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen","window","resize","inFullscreenMode","positionFooter","addEventListener","fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","position","ctrlKey","altKey","lastTourPageLoaded","Tour","name","onStart","appInsights","trackEvent","Name","_options","onEnd","location","assign","onRequestFullscreen","steps","key","container","placement","content","onShow","i","LoadTourPage","onShown","PreloadModelImage","hotspots","element","next","nextSection","nextSectionTitle","PreloadOverviewImage","addClass","prev","hideAllPopups","displayPopup","fadeIn","displayAdditionalImage","ScrollToBottomOfContent","hideAdditionalImage","ScrollToTopOfContent","setTimeout","autoscroll","keyboard","debug","storage","orphan","duration","delay","hotspotCssClass","template","result","prevSection","prevSectionTitle","onTrace","Step","startAtStep","len","pageName","params","historyUrl","pageTitle","path","replace","historyObj","type","stepKey","stepIndex","url","dfd","Deferred","tourContentDiv","console","html","load","response","status","xhr","supportsHistoryApi","pushHistoryUrl","history","pushState","replaceState","title","animate","scrollTop","resolve","PageUrl","Status","Response","responseText","reject","promise","trackPageView","URL","$footer","children","innerHeight","height","bottom","src","Image","elementId","scrollPos","$element","offsetTop","jQuery","scrollHeight","msFullscreenEnabled","fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement","rfs","webkitRequestFullScreen","mozRequestFullScreen","msRequestFullscreen","call","ActiveXObject","wscript","SendKeys","additionalImageId","popupId","stepToReturnTo","$popup","$button","$popupPosition","top","left","outerWidth","off","click","subtitle","text","setCurrentStep","init","ended","restart","start","hasClass"],"mappings":"AAAAA,EAAE,WACE,aAGA,IAAIC,EAGJD,EAAEE,UAAU,CAAEC,OAAO,IAGrB,IAAIC,EAAeJ,EAAE,iB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our variable\r\n var tour;\r\n\r\n // Dont cache page responses (mainly for development)\r\n $.ajaxSetup({ cache: false });\r\n\r\n // Keep a reference to the tour content element\r\n var $tourContent = $('#tour-content');\r\n\r\n // Flag indicating if we're doing a screen shot\r\n var doingScreenshot = false;\r\n\r\n // See if the tour should auto-start\r\n var autoStart = $tourContent.data('autostart');\r\n\r\n // See if we are starting at a particular step by specifying the key\r\n var startAtStepKey = $tourContent.data('startatstepkey');\r\n\r\n // Setup tooltips for any content loaded\r\n $tourContent.tooltip({ selector: 'a[data-toggle=\"tooltip\"]' });\r\n\r\n // Handle clicking on any anchor element in the tour content\r\n $tourContent.on('click', 'a[href=\"#\"]', function (e) {\r\n e.preventDefault();\r\n // Stop the event from bubbling up to other handlers\r\n e.stopPropagation();\r\n\r\n // See if the link contains one of our hotspots that is currently active\r\n // and if so then trigger the elements click event otherwise display a message\r\n // that the link isnt currently active.\r\n var $this = $(this);\r\n var $reflexChildren = $this.find('div.tour-step-element-reflex, div.tour-step-element-hotspot');\r\n if ($reflexChildren.length > 0) {\r\n $($reflexChildren[0]).trigger('click');\r\n }\r\n else {\r\n var step = $this.data('xs-step');\r\n if (step) {\r\n tour.goTo(step);\r\n }\r\n else {\r\n alert('This link is not functional at this point in the tour.');\r\n }\r\n }\r\n\r\n return true;\r\n });\r\n\r\n // Setup fullscreen mode if supported\r\n if (browserSupportsFullscreen()) {\r\n var fullscreenButton = $('#fullscreen-button');\r\n\r\n // Make the button visible;\r\n fullscreenButton.css('display', 'block');\r\n\r\n // Hook the click event of the fullscreen button to request full screen for the content\r\n fullscreenButton.on('click', function () {\r\n requestFullscreen($tourContent[0]);\r\n });\r\n\r\n // Hook the button in the generated content footer to exit full screen mode\r\n $tourContent.on('click', '#exit-fullscreen-button', function () {\r\n exitFullscreen();\r\n });\r\n\r\n // On a window resize reposition the footer when in fullscreen mode\r\n $(window).resize(function () {\r\n if (inFullscreenMode()) {\r\n positionFooter();\r\n }\r\n });\r\n\r\n // Handle the switch in and out of full screen mode\r\n document.addEventListener(getFullscreenChangeEventName(), function (e) {\r\n // When leaving full screen mode put footer back to normal positioning\r\n if (!inFullscreenMode()) {\r\n // Set the footer back to a static position\r\n $(\"#generated-footer\").css({ position: 'static' });\r\n\r\n }\r\n });\r\n }\r\n\r\n // Handle whiteboard base click to hide and size stuff for screen capture\r\n $('#whiteboard-base').on('click', function (e) {\r\n // Only hide anything if the CTRL key is also pressed\r\n if (e.ctrlKey) {\r\n doingScreenshot = true;\r\n\r\n $('#contact-tab').css('display', 'none');\r\n $('#observer').css('display', 'none');\r\n $('#fullscreen-button').css('display', 'none');\r\n\r\n // If the ALT key is also pressed then fix the width and reduce the shadow\r\n if (e.ctrlKey && e.altKey) {\r\n $('#tourframe').css('width', '930px');\r\n }\r\n }\r\n });\r\n\r\n // Keep track of the last tour page that was loaded\r\n var lastTourPageLoaded = null;\r\n\r\n // Instance the tour\r\n tour = new Tour({\r\n // Name is used in CSS classes for the tour as a whole plus individual steps\r\n name: 'overview',\r\n onStart: function (tour) {\r\n // Log event that a tour has been started\r\n appInsights.trackEvent(\"TourStarted\", { Name: tour._options.name });\r\n },\r\n onEnd: function (tour) {\r\n // Log event that a tour has been stopped\r\n appInsights.trackEvent(\"TourEnded\", { Name: tour._options.name });\r\n\r\n // Return to the tours page\r\n if (!doingScreenshot) {\r\n return window.location.assign(\"/tours\");\r\n }\r\n },\r\n onRequestFullscreen: function () {\r\n // Switch the tour content to full screen mode\r\n return requestFullscreen($('#tourframe')[0]/*$tourContent[0]*/);\r\n },\r\n steps: [\r\n // Step 0: Showing Hamburger\r\n {\r\n key: '',\r\n container: '#tour-content',\r\n placement: 'bottombar',\r\n content: '', // Deliberately the empty string so the popup doesnt even show for this page\r\n onShow: function (tour, i) {\r\n return LoadTourPage(tour, i, '_SlideHamburgerPartial');\r\n },\r\n onShown: function (tour) {\r\n // Load the global overview process image in anticipation of going to that next\r\n PreloadModelImage('uuid_DD7CB4D0-45B2-45AF-8F9C-38F1CD8A9A6D_view_p0.png');\r\n }\r\n },\r\n // Step 1: Showing global slide\r\n {\r\n key: 'visualization-global',\r\n container: '#tour-content',\r\n hotspots: [{ element: '#us', step: 2 }],\r\n next: -1,\r\n placement: 'bottombar',\r\n content: ' ',\r\n onShow: function (tour, i) {\r\n return LoadTourPage(tour, i, '_SlideGlobalPartial');\r\n },\r\n onShown: function () {\r\n // Load the USA overview process image in anticipation of going to that next\r\n PreloadModelImage('uuid_078A107B-091B-4260-9206-7F3095ABFB72_view_p0.png');\r\n }\r\n },\r\n // Step 2: Showing USA slide\r\n {\r\n key: 'visualization-usa',\r\n container: '#tour-content',\r\n hotspots: [{ element: '#factory-houston', step: 3 }, { element: '#distribution-harrisburg', step: 4 }],\r\n placement: 'bottombar',\r\n nextSection: 9,\r\n nextSectionTitle: 'Next: One Click Access',\r\n next: -1,\r\n content: ' ',\r\n onShow: function (tour, i) {\r\n return LoadTourPage(tour, i, '_SlideUsaPartial');\r\n },\r\n onShown: function () {\r\n // Load the factory/warehouse process images in anticipation of going to there next\r\n PreloadModelImage('uuid_9564A85D-DFE1-472A-B5F4-9439678B7307_view_p0.png');\r\n PreloadOverviewImage('factory-no-flow-opt.png');\r\n PreloadOverviewImage('factory-yellow-flow-opt.png');\r\n PreloadOverviewImage('factory-blue-flow-opt.png');\r\n PreloadOverviewImage('factory-green-flow-opt.png');\r\n }\r\n },\r\n // Step 3: Showing factory slide\r\n {\r\n key: 'visualization-factory',\r\n container: '#tour-content',\r\n hotspots: [{ element: '#sales-office', step: 5 }],\r\n placement: 'bottombar',\r\n next: -1,\r\n content: ' ',\r\n onShow: function (tour, i) {\r\n return LoadTourPage(tour, i, '_SlideFactoryPartial');\r\n },\r\n onShown: function () {\r\n // Animate the flows\r\n $('img[data-xs-animation]').addClass('fade-in-out');\r\n\r\n // Load the sales office process images in anticipation of going to there next\r\n PreloadModelImage('uuid_D630FEE6-3AB3-49B5-9CB8-3EBC8AAEC9BC_view_p0.png');\r\n }\r\n },\r\n // Step 4: Showing warehouse slide\r\n {\r\n key: 'visualization-warehouse',\r\n container: '#tour-content',\r\n hotspots: [{ element: '#accounts-office', step: 7 }],\r\n placement: 'bottombar',\r\n prev: 2,\r\n next: -1,\r\n content: ' ',\r\n onShow: function (tour, i) {\r\n return LoadTourPage(tour, i, '_SlideWarehousePartial');\r\n },\r\n onShown: function () {\r\n // Load the accounts office process images in anticipation of going to there next\r\n PreloadModelImage('uuid_8372BF92-CBDF-460D-9D7A-CFB9095BFBA4_view_p0.png');\r\n }\r\n },\r\n // Step 5: Showing sales office slide\r\n {\r\n key: 'visualization-salesoffice',\r\n container: '#tour-content',\r\n hotspots: [{ element: '#sales-order-form', step: 6 }],\r\n placement: 'bottombar',\r\n prev: 3,\r\n next: -1,\r\n content: ' ',\r\n onShow: function (tour, i) {\r\n return LoadTourPage(tour, i, '_SlideSalesOfficePartial');\r\n },\r\n onShown: function () {\r\n /* In case we go back to this slide from the next */\r\n hideAllPopups('Navigate to office and desk level');\r\n }\r\n },\r\n // Step 6: Showing sales office slide with order entry screen\r\n {\r\n key: 'visualization-orderentry',\r\n container: '#tour-content',\r\n placement: 'bottombar',\r\n content: ' ',\r\n prev: 5,\r\n next: -1,\r\n onShow: function (tour, i) {\r\n return LoadTourPage(tour, i, '_SlideSalesOfficePartial');\r\n },\r\n onShown: function () {\r\n /* Change the caption */\r\n hideAllPopups('Access ERP/CRM functions');\r\n /* Display the form */\r\n displayPopup('#sales-order-entry-form', 2);\r\n }\r\n },\r\n // Step 7: Showing accounts office slide\r\n {\r\n key: 'visualization-accountsoffice',\r\n container: '#tour-content',\r\n hotspots: [{ element: '#senior-accountant', step: 8 }],\r\n placement: 'bottombar',\r\n content: ' ',\r\n prev: 4,\r\n next: -1,\r\n onShow: function (tour, i) {\r\n return LoadTourPage(tour, i, '_SlideAccountsOfficePartial');\r\n },\r\n onShown: function () {\r\n /* In case we go back to this slide from the next */\r\n hideAllPopups('Mimic the employees’ real world');\r\n }\r\n },\r\n // Step 8: Showing accounts office office slide with spreadsheet\r\n {\r\n key: 'visualization-spreadsheet',\r\n container: '#tour-content',\r\n placement: 'bottombar',\r\n content: ' ',\r\n prev: 7,\r\n next: -1,\r\n onShow: function (tour, i) {\r\n return LoadTourPage(tour, i, '_SlideAccountsOfficePartial');\r\n },\r\n onShown: function () {\r\n /* Change the caption */\r\n hideAllPopups('Access spreadsheets and other software');\r\n /* Display the form */\r\n displayPopup('#accounts-spreadsheet', 2);\r\n }\r\n },\r\n // Step 9: Showing Factory slide\r\n {\r\n key: 'visualization-oneclickaccess',\r\n container: '#tour-content',\r\n hotspots: [\r\n { element: '#machining', step: 10 },\r\n { element: '#qaform', step: 11 },\r\n { element: '#shipping', step: 12 },\r\n { element: '#shipping-website', step: 13 },\r\n { element: '#sales-process', step: 14 },\r\n { element: '#purchasing-desk', step: 15 },\r\n { element: '#planning-desk', step: 16 }\r\n ],\r\n placement: 'bottombar',\r\n nextSection: 18,\r\n nextSectionTitle: 'Next: Workflow',\r\n prev: -1,\r\n next: -1,\r\n content: ' ',\r\n onShow: function (tour, i) {\r\n return LoadTourPage(tour, i, '_SlideFactoryPartial');\r\n },\r\n onShown: function () {\r\n /* In case we go back to this slide from the next */\r\n hideAllPopups('One click access to documents and software');\r\n\r\n // Load the factory workflow image in anticipation of going to there next\r\n PreloadModelImage('factory-workflow-opt.png');\r\n }\r\n },\r\n // Step 10: Showing factory slide with SOP form\r\n {\r\n key: 'visualization-sopform',\r\n container: '#tour-content',\r\n placement: 'bottombar',\r\n content: ' ',\r\n prev: 9,\r\n next: -1,\r\n onShow: function (tour, i) {\r\n return LoadTourPage(tour, i, '_SlideFactoryPartial');\r\n },\r\n onShown: function () {\r\n /* Change the caption */\r\n hideAllPopups('How to perform work');\r\n /* Display the sop form */\r\n displayPopup('#sop-form', 9);\r\n }\r\n },\r\n // Step 11: Showing factory slide with QA form\r\n {\r\n key: 'visualization-qaform',\r\n container: '#tour-content',\r\n placement: 'bottombar',\r\n content: ' ',\r\n prev: 9,\r\n next: -1,\r\n onShow: function (tour, i) {\r\n return LoadTourPage(tour, i, '_SlideFactoryPartial');\r\n },\r\n onShown: function () {\r\n /* Change the caption */\r\n hideAllPopups('Forms to be completed');\r\n /* Display the QA form */\r\n displayPopup('#qa-form', 9);\r\n }\r\n },\r\n // Step 12: Showing factory slide with packing video\r\n {\r\n key: 'visualization-packingvideo',\r\n container: '#tour-content',\r\n placement: 'bottombar',\r\n content: ' ',\r\n prev: 9,\r\n next: -1,\r\n onShow: function (tour, i) {\r\n return LoadTourPage(tour, i, '_SlideFactoryPartial');\r\n },\r\n onShown: function () {\r\n /* Change the caption */\r\n hideAllPopups('Show instructional videos');\r\n /* Display the packing video */\r\n displayPopup('#shipping-video', 9);\r\n }\r\n },\r\n // Step 13: Showing factory slide with shipping website\r\n {\r\n key: 'visualization-shippingwebsite',\r\n container: '#tour-content',\r\n placement: 'bottombar',\r\n content: ' ',\r\n prev: 9,\r\n next: -1,\r\n onShow: function (tour, i) {\r\n return LoadTourPage(tour, i, '_SlideFactoryPartial');\r\n },\r\n onShown: function () {\r\n /* Change the caption */\r\n hideAllPopups('Enable access to other systems');\r\n /* Display the shipping website */\r\n displayPopup('#shipping-website-image', 9);\r\n }\r\n },\r\n // Step 14: Showing factory slide with sales process\r\n {\r\n key: 'visualization-salesprocess',\r\n container: '#tour-content',\r\n placement: 'bottombar',\r\n content: ' ',\r\n prev: 9,\r\n next: -1,\r\n onShow: function (tour, i) {\r\n return LoadTourPage(tour, i, '_SlideFactoryPartial');\r\n },\r\n onShown: function () {\r\n /* Change the caption */\r\n hideAllPopups('Access end-to-end Processes');\r\n /* Display the sales process */\r\n displayPopup('#sales-process-image', 9);\r\n }\r\n },\r\n // Step 15: Showing factory slide with buyer role\r\n {\r\n key: 'visualization-buyerrole',\r\n container: '#tour-content',\r\n placement: 'bottombar',\r\n content: ' ',\r\n prev: 9,\r\n next: -1,\r\n onShow: function (tour, i) {\r\n return LoadTourPage(tour, i, '_SlideFactoryPartial');\r\n },\r\n onShown: function () {\r\n /* Change the caption */\r\n hideAllPopups('Show processes for a Role');\r\n /* Display the buyer role */\r\n displayPopup('#buyer-role-image', 9);\r\n }\r\n },\r\n // Step 16: Showing factory slide with purchasing process\r\n {\r\n key: 'visualization-purchasingprocess',\r\n container: '#tour-content',\r\n placement: 'bottombar',\r\n content: ' ',\r\n prev: 9,\r\n next: -1,\r\n hotspots: [{ element: '#requisition-stage', step: 17 }],\r\n onShow: function (tour, i) {\r\n return LoadTourPage(tour, i, '_SlideFactoryPartial');\r\n },\r\n onShown: function () {\r\n /* Change the caption */\r\n hideAllPopups('Access a procss stage');\r\n /* Display the purchasing process */\r\n $('#purchasing-process-image').fadeIn(900);\r\n }\r\n },\r\n // Step 17: Showing factory slide with purchasing process and create requisition stage\r\n {\r\n key: 'visualization-requisitionstage',\r\n container: '#tour-content',\r\n placement: 'bottombar',\r\n content: ' ',\r\n prev: 9,\r\n next: -1,\r\n onShow: function (tour, i) {\r\n return LoadTourPage(tour, i, '_SlideFactoryPartial');\r\n },\r\n onShown: function () {\r\n /* Change the caption */\r\n hideAllPopups('Access the tasks in a stage');\r\n /* Display the purchasing process in case we came directly to this step */\r\n $('#purchasing-process-image').css('display', 'block');\r\n displayPopup('#requisition-stage-image', 9);\r\n }\r\n },\r\n // Step 18: Showing factory workflow \r\n {\r\n key: 'workflow',\r\n container: '#tour-content',\r\n placement: 'bottombar',\r\n content: ' ',\r\n prev: -1,\r\n hotspots: [{ element: '#take-order', step: 19 }],\r\n onShow: function (tour, i) {\r\n return LoadTourPage(tour, i, '_SlideFactoryWorkflowPartial');\r\n },\r\n onShown: function () {\r\n /* Change the caption */\r\n hideAllPopups('Overlay process workflow');\r\n\r\n // Load the process flow image in anticipation of going to there next\r\n PreloadModelImage('process-workflow.jpg');\r\n }\r\n },\r\n // Step 19: Showing Process Flow \r\n {\r\n key: 'workflow-designprocess',\r\n container: '#tour-content',\r\n placement: 'bottombar',\r\n content: ' ',\r\n hotspots: [{ element: '#take-order', step: 20 }],\r\n onShow: function (tour, i) {\r\n return LoadTourPage(tour, i, '_SlideWorkflowPartial');\r\n },\r\n onShown: function () {\r\n /* Change the caption */\r\n hideAllPopups('Design Process Workflow (Desk to desk)');\r\n }\r\n },\r\n // Step 20: Showing Process Flow and stage flow \r\n {\r\n key: 'workflow-designstage',\r\n container: '#tour-content',\r\n placement: 'bottombar',\r\n content: ' ',\r\n hotspots: [{ element: '#complete-order', step: 21 }],\r\n onShow: function (tour, i) {\r\n return LoadTourPage(tour, i, '_SlideWorkflowPartial');\r\n },\r\n onShown: function () {\r\n /* Change the caption */\r\n hideAllPopups('Define the Tasks done at the Desk and in each Stage of the Process');\r\n displayAdditionalImage('#take-order-stage');\r\n ScrollToBottomOfContent(); \r\n }\r\n },\r\n // Step 21: Showing Process Flow, stage flow, and notes popup\r\n {\r\n key: 'workflow-designstage-tasknotes',\r\n container: '#tour-content',\r\n placement: 'bottombar',\r\n content: ' ',\r\n onShow: function (tour, i) {\r\n return LoadTourPage(tour, i, '_SlideWorkflowPartial');\r\n },\r\n onShown: function () {\r\n /* Change the caption */\r\n hideAllPopups('Add User defined Notes and Metrics');\r\n displayAdditionalImage('#take-order-stage');\r\n ScrollToBottomOfContent();\r\n displayPopup('#task-notes-image', 22);\r\n }\r\n },\r\n // Step 22: Showing Process Flow to create new stage\r\n {\r\n key: 'workflow-create',\r\n container: '#tour-content',\r\n placement: 'bottombar',\r\n content: ' ',\r\n hotspots: [{ element: '#create-workflow', step: 23 }],\r\n onShow: function (tour, i) {\r\n return LoadTourPage(tour, i, '_SlideWorkflowPartial');\r\n },\r\n onShown: function () {\r\n /* Change the caption */\r\n hideAllPopups('Changing Process Workflow is easy');\r\n hideAdditionalImage('#take-order-stage');\r\n hideAdditionalImage('#modified-processflow');\r\n ScrollToTopOfContent();\r\n }\r\n },\r\n // Step 23: Showing modified Process Flow\r\n {\r\n key: 'workflow-create-newflow',\r\n container: '#tour-content',\r\n placement: 'bottombar',\r\n content: ' ',\r\n hotspots: [{ element: '#take-order', step: 24 }],\r\n onShow: function (tour, i) {\r\n return LoadTourPage(tour, i, '_SlideWorkflowPartial');\r\n },\r\n onShown: function () {\r\n /* Change the caption */\r\n hideAllPopups('Drag & drop predefined functions to create complex workflows');\r\n hideAdditionalImage('#take-order-stage');\r\n displayAdditionalImage('#modified-processflow');\r\n }\r\n },\r\n // Step 24: Showing Process Flow and stage flow\r\n {\r\n key: 'workflow-designstage-capturephoto',\r\n container: '#tour-content',\r\n placement: 'bottombar',\r\n content: ' ',\r\n hotspots: [{ element: '#printer-photo', step: 25 }, { element: '#screen-photo', step: 26 }],\r\n nextSection: 27,\r\n nextSectionTitle: 'Next: Knowledgebase',\r\n next: -1,\r\n onShow: function (tour, i) {\r\n return LoadTourPage(tour, i, '_SlideWorkflowPartial');\r\n },\r\n onShown: function () {\r\n /* Change the caption */\r\n hideAllPopups('Use a camera for quick detail capture');\r\n hideAdditionalImage('#modified-processflow');\r\n displayAdditionalImage('#take-order-stage');\r\n ScrollToBottomOfContent(); \r\n\r\n // Load the role matrix image in anticipation of going to there next\r\n PreloadModelImage('rolematrix-base-opt.png');\r\n }\r\n },\r\n // Step 25: Showing Process Flow, stage flow and printer popup\r\n {\r\n key: 'workflow-designstage-printerphoto',\r\n container: '#tour-content',\r\n placement: 'bottombar',\r\n content: ' ',\r\n onShow: function (tour, i) {\r\n return LoadTourPage(tour, i, '_SlideWorkflowPartial');\r\n },\r\n onShown: function () {\r\n /* Change the caption */\r\n hideAllPopups('Attach Photos for each task in a stage');\r\n hideAdditionalImage('#modified-processflow');\r\n displayAdditionalImage('#take-order-stage');\r\n ScrollToBottomOfContent();\r\n displayPopup('#printer-image', 24);\r\n }\r\n },\r\n // Step 26: Showing Process Flow, stage flow and screen image\r\n {\r\n key: 'workflow-designstage-screenphoto',\r\n container: '#tour-content',\r\n placement: 'bottombar',\r\n content: ' ',\r\n onShow: function (tour, i) {\r\n return LoadTourPage(tour, i, '_SlideWorkflowPartial');\r\n },\r\n onShown: function () {\r\n /* Change the caption */\r\n hideAllPopups('Capture existing computer system details');\r\n hideAdditionalImage('#modified-processflow');\r\n displayAdditionalImage('#take-order-stage');\r\n ScrollToBottomOfContent();\r\n displayPopup('#screen-image', 24);\r\n }\r\n },\r\n // Step 27: Showing Role Matrix Report\r\n {\r\n key: 'knowledgebase-rolematrix',\r\n container: '#tour-content',\r\n placement: 'bottombar',\r\n content: ' ',\r\n hotspots: [{ element: '#distribution-rolegroup', step: 28 }],\r\n onShow: function (tour, i) {\r\n return LoadTourPage(tour, i, '_SlideRoleMatrixReportPartial');\r\n },\r\n onShown: function () {\r\n /* Change the caption */\r\n hideAllPopups('The Role Matrix Report - See Who does What');\r\n hideAdditionalImage('#distribution-image');\r\n hideAdditionalImage('#purchasing-image');\r\n }\r\n },\r\n // Step 28: Showing Role Matrix Report and distribution role group\r\n {\r\n key: 'knowledgebase-rolematrix-distribution',\r\n container: '#tour-content',\r\n placement: 'bottombar',\r\n content: ' ',\r\n hotspots: [{ element: '#purchasing-processgroup', step: 29 }],\r\n onShow: function (tour, i) {\r\n return LoadTourPage(tour, i, '_SlideRoleMatrixReportPartial');\r\n },\r\n onShown: function () {\r\n /* Change the caption */\r\n hideAllPopups('See where Distribution roles are used in Sales?');\r\n hideAdditionalImage('#purchasing-image');\r\n displayAdditionalImage('#distribution-image', 100);\r\n\r\n // Scroll to he bottom after a delay\r\n window.setTimeout(function () { ScrollToBottomOfContent(); }, 2000);\r\n }\r\n },\r\n // Step 29: Showing Role Matrix Report, distribution role group, and Purchasing Process Group\r\n {\r\n key: 'knowledgebase-rolematrix-purchasing',\r\n container: '#tour-content',\r\n placement: 'bottombar',\r\n content: ' ',\r\n nextSection: 30,\r\n nextSectionTitle: 'Next: Analytics Matrix',\r\n next: -1,\r\n onShow: function (tour, i) {\r\n return LoadTourPage(tour, i, '_SlideRoleMatrixReportPartial');\r\n },\r\n onShown: function () {\r\n /* Change the caption */\r\n hideAllPopups('See what roles are employed in Purchasing');\r\n displayAdditionalImage('#distribution-image', 100);\r\n displayAdditionalImage('#purchasing-image', 100);\r\n ScrollToTopOfContent('#purchasing-image');\r\n\r\n // Load the note matrix image in anticipation of going to there next\r\n PreloadModelImage('notematrix-base-opt.png');\r\n }\r\n },\r\n // Step 30: Showing Note Matrix Report\r\n {\r\n key: 'knowledgebase-analyticsmatrix',\r\n container: '#tour-content',\r\n placement: 'bottombar',\r\n content: ' ',\r\n hotspots: [{ element: '#apap-process', step: 31 }],\r\n onShow: function (tour, i) {\r\n return LoadTourPage(tour, i, '_SlideNotesReportPartial');\r\n },\r\n onShown: function () {\r\n /* Change the caption */\r\n hideAllPopups('The Analytics Matrix Report - See where to improve');\r\n hideAdditionalImage('#apap-process-image');\r\n hideAdditionalImage('#rei-stage-image');\r\n }\r\n },\r\n // Step 31: Showing Note Matrix Report with process expanded\r\n {\r\n key: 'knowledgebase-analyticsmatrix-process',\r\n container: '#tour-content',\r\n placement: 'bottombar',\r\n content: ' ',\r\n hotspots: [{ element: '#rei-stage', step: 32 }],\r\n onShow: function (tour, i) {\r\n return LoadTourPage(tour, i, '_SlideNotesReportPartial');\r\n },\r\n onShown: function () {\r\n /* Change the caption */\r\n hideAllPopups('Drill down to see each desk and each Stage of the Process');\r\n hideAdditionalImage('#rei-stage-image');\r\n displayAdditionalImage('#apap-process-image', 100);\r\n }\r\n },\r\n // Step 32: Showing Note Matrix Report with process and stage expanded\r\n {\r\n key: 'knowledgebase-notesmatrix-stage',\r\n container: '#tour-content',\r\n placement: 'bottombar',\r\n content: ' ',\r\n nextSection: 33,\r\n nextSectionTitle: 'Next: Process Conformance',\r\n next: -1,\r\n onShow: function (tour, i) {\r\n return LoadTourPage(tour, i, '_SlideNotesReportPartial');\r\n },\r\n onShown: function () {\r\n /* Change the caption */\r\n hideAllPopups('Drill down to see tasks');\r\n displayAdditionalImage('#apap-process-image', 100);\r\n displayAdditionalImage('#rei-stage-image', 100);\r\n\r\n // Load the process conformance image in anticipation of going to there next\r\n PreloadModelImage('process-conformance-opt.png');\r\n }\r\n },\r\n // Step 33: Showing Process Compliance\r\n {\r\n key: 'knowledgebase-conformance',\r\n container: '#tour-content',\r\n placement: 'bottombar',\r\n content: ' ',\r\n nextSection: 34,\r\n nextSectionTitle: 'Next: Process Improvement',\r\n next: -1,\r\n onShow: function (tour, i) {\r\n return LoadTourPage(tour, i, '_SlideProcessConformancePartial');\r\n },\r\n onShown: function () {\r\n /* Change the caption */\r\n hideAllPopups('Process conformance – for any compliance regime');\r\n\r\n // Load the process improvement image in anticipation of going to there next\r\n PreloadModelImage('process-improvement-opt.png');\r\n }\r\n },\r\n // Step 34: Showing Process Improvement\r\n {\r\n key: 'knowledgebase-improvement',\r\n container: '#tour-content',\r\n placement: 'bottombar',\r\n content: ' ',\r\n hotspots: [{ element: '#rei-stage', step: 35 }],\r\n onShow: function (tour, i) {\r\n return LoadTourPage(tour, i, '_SlideProcessManipulationPartial');\r\n },\r\n onShown : function () {\r\n /* Change the caption */\r\n hideAllPopups('Process manipulation - See where to improve');\r\n\r\n // Load the process imrovement stage image in anticipation of going to there next\r\n PreloadModelImage('process-improvement-stage-opt.png');\r\n }\r\n },\r\n // Step 35: Showing Process Improvement Stage flow\r\n {\r\n key: 'knowledgebase-improvement-stageflow',\r\n container: '#tour-content',\r\n placement: 'bottombar',\r\n content: ' ',\r\n onShow: function (tour, i) {\r\n return LoadTourPage(tour, i, '_SlideProcessManipulationStagePartial');\r\n },\r\n onShown: function () {\r\n /* Change the caption */\r\n hideAllPopups('Process manipulation - See where to improve');\r\n }\r\n }\r\n ],\r\n /* Turn off auto scrolling as we are displaying on a scrolling 'page' within the main page */\r\n autoscroll: true,\r\n container: 'body',\r\n keyboard: true,\r\n debug: false,\r\n storage: false,\r\n orphan: true,\r\n duration: false,\r\n delay: false,\r\n hotspotCssClass: 'tour-step-element-ring',\r\n template: function (i, step) {\r\n var result = '
' +\r\n '
' +\r\n '
' +\r\n '
' +\r\n '
';\r\n if (step.nextSection >= 0 || step.prevSection >= 0) {\r\n result += '
';\r\n \r\n if (step.prevSection >= 0) {\r\n var prevSectionTitle = step.prevSectionTitle ? step.prevSectionTitle : 'Prev Section';\r\n result += ' ';\r\n }\r\n\r\n if (step.nextSection >= 0) {\r\n var nextSectionTitle = step.nextSectionTitle ? step.nextSectionTitle : 'Next Section';\r\n result += ' ';\r\n }\r\n result += '
';\r\n }\r\n\r\n result +=\r\n '
' +\r\n '' +\r\n '
';\r\n '
' +\r\n '
' +\r\n '
';\r\n\r\n return result;\r\n },\r\n onTrace: function (tour, step) {\r\n\r\n // Log an event to Application Insights giving details about the tour step displayed\r\n appInsights.trackEvent(\"TourStep\", { Name: tour._options.name, Step: step.key });\r\n }\r\n });\r\n\r\n // Add a reference to the tour variable on the body so we can interogate it later \r\n $('body').data('xs-tour', tour);\r\n\r\n // Start at the beginning by default \r\n var startAtStep = 0;\r\n\r\n // If a start key has been specified see if we can find the matching step and update the step to start with\r\n if (startAtStepKey) {\r\n // Find a step with a matching key\r\n for (var i = 0, len = tour._options.steps.length; i < len; i++) {\r\n if (tour._options.steps[i].key === startAtStepKey)\r\n {\r\n // Specify that we will start at this step\r\n startAtStep = i;\r\n break;\r\n }\r\n }\r\n }\r\n\r\n // When this script runs the page that hosts the tour is being loaded which means we came from a real URL\r\n // and dont need to push the URL to the browser history.\r\n tour.pushHistoryUrl = false;\r\n\r\n // Setup the tour to start at the appropriate step\r\n if (startAtStep !== 0) {\r\n // But when starting from a particular step we dont need to push the history URL\r\n tour.setCurrentStep(startAtStep);\r\n }\r\n\r\n // Initialize the tour\r\n tour.init();\r\n\r\n // Either start the tour straight away or handle the start button click\r\n if (autoStart) {\r\n // Start the tour\r\n if (tour.ended()) {\r\n tour.restart();\r\n }\r\n else {\r\n tour.start(true);\r\n }\r\n } else {\r\n // Hook up a handler onto the start tour button\r\n $('#tour-start').on('click', function (e) {\r\n e.preventDefault();\r\n\r\n if ($(this).hasClass('disabled')) {\r\n return;\r\n }\r\n $(this).addClass('disabled');\r\n\r\n if (tour.ended()) {\r\n tour.restart();\r\n }\r\n else {\r\n tour.start(true);\r\n }\r\n });\r\n }\r\n\r\n // Load content for a tour page into the appropriate element\r\n function LoadTourPage(tour, i, pageName, params) {\r\n\r\n // Build up the history URL for the step\r\n var step = tour._options.steps[i];\r\n var historyUrl = '/tours/overview';\r\n var pageTitle = 'Overview Tour ';\r\n if (step.key && step.key.length > 0) {\r\n var path = step.key.replace(/-/g, '/');\r\n historyUrl += '/' + path;\r\n pageTitle += '- ' + path + ' ';\r\n }\r\n pageTitle += '• XSOL';\r\n var historyObj = { type: 'tour', name: tour._options.name, stepKey: step.key, stepIndex: i, pageTitle: pageTitle, url: historyUrl };\r\n\r\n // Dont load the page if the requested page is already loaded.\r\n // Note: Each step tries to load the page it uses so that going back to a previous or random\r\n // step will load to appropriate content.\r\n if (lastTourPageLoaded === pageName) {\r\n\r\n // Push an entry to the browser history so we can see the URL and come back if requested\r\n if (tour.pushHistoryUrl && supportsHistoryApi()) {\r\n history.pushState(historyObj, '', historyUrl);\r\n if (tour._options.debug) {\r\n console.debug('Push existing page: ' + historyObj.type + ', ' + historyObj.name + ', ' + historyObj.step + ', ' + historyUrl);\r\n }\r\n\r\n // Update the title of the page\r\n document.title = historyObj.pageTitle;\r\n\r\n // Log this as a page view so it appears in the analytics \r\n appInsights.trackPageView(historyUrl, document.URL);\r\n }\r\n\r\n return;\r\n }\r\n\r\n var url = '/tours/overview/page/' + pageName;\r\n if (params) {\r\n url = url + '?' + params;\r\n }\r\n var dfd = $.Deferred();\r\n var tourContentDiv = $('#tour-content');\r\n\r\n if (tour._options.debug) {\r\n console.debug('XSOL: Set page loading..');\r\n }\r\n\r\n // Show loading...\r\n tourContentDiv.html('


Loading...

');\r\n\r\n // Load the page content\r\n tourContentDiv.load(url, function (response, status, xhr) {\r\n if (status === 'success' || status === 'notmodified') {\r\n if (tour._options.debug) {\r\n console.debug('XSOL: Page loaded');\r\n }\r\n\r\n // Remember the current page\r\n lastTourPageLoaded = pageName;\r\n\r\n // Manipulate the browser history if supported\r\n if (supportsHistoryApi()) {\r\n if (tour.pushHistoryUrl) {\r\n // Push an entry to the browser history so we can see the URL and come back if requested\r\n history.pushState(historyObj, '', historyUrl);\r\n }\r\n else {\r\n // Update the entry for the browser history adding state information so we can come back if requested\r\n history.replaceState(historyObj, '', historyUrl);\r\n }\r\n\r\n // Update the title of the page\r\n document.title = historyObj.pageTitle;\r\n\r\n // Add debug message\r\n if (tour._options.debug) {\r\n console.debug((tour.pushHistoryUrl ? 'Push' : 'Replace') + ' new page: ' + historyObj.type + ', ' + historyObj.name + ', ' + historyObj.step + ', ' + historyUrl);\r\n }\r\n }\r\n\r\n // For subsequent steps in this tour instance we need to push the history URL\r\n tour.pushHistoryUrl = true;\r\n\r\n // When in full screen mode adjust the position of the footer for 'short' pages\r\n if (inFullscreenMode()) {\r\n positionFooter();\r\n }\r\n\r\n // Scroll to the top of the page\r\n $('#tour-content').animate({ scrollTop: 0 }, 0, function () {\r\n if (tour._options.debug) {\r\n console.debug('XSOL: Page scrolled');\r\n }\r\n\r\n // Loading is done\r\n dfd.resolve();\r\n });\r\n } else {\r\n // Log an event to Application Insights \r\n appInsights.trackEvent(\"TourPageLoadFailed\", { PageUrl: url, Status: xhr.status, Response: xhr.responseText });\r\n\r\n // Page load failed so show an error\r\n $('#tour-content').html('


Page ' + pageName + ' for the visualization tour failed to load.
Please contact XSOL to report the issue.

');\r\n dfd.reject();\r\n }\r\n });\r\n\r\n // Return the promise to ensure the calling code waits\r\n return dfd.promise();\r\n }\r\n\r\n // For pages without much content we may need to push the footer to the bottom of the page\r\n function positionFooter() {\r\n var $footer = $('#fullscreen-footer');\r\n\r\n if (($('#presentation-content').children().innerHeight() + $footer.height()) < $('#presentation-content').height()) {\r\n $footer.css({\r\n position: 'absolute'\r\n }).css({\r\n bottom: '0px'\r\n });\r\n } else {\r\n $footer.css({\r\n position: 'static'\r\n });\r\n }\r\n }\r\n\r\n // To help speed up navigation to the next page we can load the overview image for the page into the cache\r\n function PreloadOverviewImage(src) {\r\n if (tour._options.debug) {\r\n console.debug('XSOL: Pre-load overview image ' + src);\r\n }\r\n var image = new Image();\r\n image.src = '/Images/tour/overview/' + src;\r\n }\r\n\r\n // To help speed up navigation to the next page we can load the model image for the page into the cache\r\n function PreloadModelImage(src) {\r\n if (tour._options.debug) {\r\n console.debug('XSOL: Pre-load model image ' + src);\r\n }\r\n var image = new Image();\r\n image.src = '/Images/tour/model/' + src;\r\n }\r\n\r\n function ScrollToTopOfContent(elementId) {\r\n var dfd = $.Deferred();\r\n\r\n // If an element id is supplied then find its offset from the top\r\n var scrollPos = 0;\r\n var $element = $(elementId);\r\n if ($element.length === 1) {\r\n scrollPos = $element[0].offsetTop;\r\n }\r\n\r\n // Scroll so the element is displayed at the top\r\n $('div.slide-content').animate({ scrollTop: scrollPos }, 600, function () {\r\n dfd.resolve();\r\n });\r\n\r\n return dfd.promise();\r\n }\r\n\r\n function ScrollToBottomOfContent() {\r\n var dfd = jQuery.Deferred();\r\n\r\n $('div.slide-content').animate({ scrollTop: $('div.slide-content')[0].scrollHeight }, 1200, function () {\r\n dfd.resolve();\r\n });\r\n\r\n return dfd.promise();\r\n }\r\n\r\n function browserSupportsFullscreen() {\r\n return document.fullscreenEnabled || document.webkitFullscreenEnabled || document.mozFullScreenEnabled || document.msFullscreenEnabled;\r\n }\r\n\r\n function inFullscreenMode() {\r\n return document.fullscreenElement || document.webkitFullscreenElement || document.mozFullScreenElement || document.msFullscreenElement;\r\n }\r\n\r\n function requestFullscreen(element) {\r\n var rfs = element.requestFullscreen || element.webkitRequestFullScreen || element.mozRequestFullScreen || element.msRequestFullscreen;\r\n if (typeof rfs !== 'undefined' && rfs) {\r\n rfs.call(element);\r\n } else if (typeof window.ActiveXObject !== 'undefined') {\r\n // for Internet Explorer\r\n var wscript = new ActiveXObject('WScript.Shell');\r\n if (wscript !== null) {\r\n wscript.SendKeys('{F11}');\r\n }\r\n }\r\n }\r\n\r\n function exitFullscreen() {\r\n if (document.exitFullscreen) {\r\n document.exitFullscreen();\r\n } else if (document.webkitExitFullscreen) {\r\n document.webkitExitFullscreen();\r\n } else if (document.mozCancelFullScreen) {\r\n document.mozCancelFullScreen();\r\n } else if (document.msExitFullscreen) {\r\n document.msExitFullscreen();\r\n }\r\n }\r\n\r\n function getFullscreenChangeEventName() {\r\n if (document.fullscreenEnabled) {\r\n return 'fullscreenchange';\r\n } else if (document.webkitFullscreenEnabled) {\r\n return 'webkitfullscreenchange';\r\n } else if (document.mozFullScreenEnabled) {\r\n return 'mozfullscreenchange';\r\n } else {\r\n return 'MSFullscreenChange';\r\n }\r\n }\r\n\r\n function keyboardEquivalentsText() {\r\n var shortcuts = '
,
Navigate backwards and forwards through the tour.
e
End the tour at it's current step.
';\r\n if (browserSupportsFullscreen()) {\r\n shortcuts += '
Enter
Enter full screen mode.
Esc
Leave full screen mode.
';\r\n }\r\n\r\n return '

Keyboard shortcuts:

' + shortcuts + '
';\r\n }\r\n\r\n // Display the element with the id supplied \r\n function displayAdditionalImage(additionalImageId, delay) {\r\n if (!delay) {\r\n delay = 800;\r\n }\r\n\r\n // Find the element with the id supplied and fade it in\r\n var $additionalImage = $(additionalImageId);\r\n $additionalImage.fadeIn(800);\r\n }\r\n\r\n // Hide the element with the id supplied \r\n function hideAdditionalImage(additionalImageId) {\r\n // Find the element with the id supplied and hide it\r\n var $additionalImage = $(additionalImageId);\r\n $additionalImage.css('display', 'none');\r\n }\r\n\r\n // Display the element with the id supplied and position the close button over the top right edge.\r\n // When the close button is pressed then go to the specified step in the tour.\r\n function displayPopup(popupId, stepToReturnTo) {\r\n\r\n // Find the element with the id supplied and fade it in\r\n var $popup = $(popupId);\r\n $popup.fadeIn(800);\r\n\r\n // Find the close button\r\n var $button = $('#close-button');\r\n\r\n // Find the position of the popup element\r\n var $popupPosition = $popup.position();\r\n\r\n // Display the close button over the top right corner of the popup element\r\n $button.css('top', $popupPosition.top).css('left', $popupPosition.left + $popup.outerWidth()).css('display', 'block');\r\n\r\n // Handle the close button click event and go to the specified step\r\n $('#close-button, ' + popupId).off('click').click(function () {\r\n tour.goTo(stepToReturnTo);\r\n });\r\n }\r\n\r\n // Make sure any popups from previous steps are hidden\r\n function hideAllPopups(subtitle) {\r\n // Hide the close button\r\n $('#close-button').css('display', 'none');\r\n\r\n /* Hide all popup elements */\r\n $('[data-xs-popup]').css('display', 'none');\r\n $('img.popup-image').css('display', 'none');\r\n\r\n // Update the slide sub-title if requested\r\n if (subtitle) {\r\n $('#figure-caption').text(subtitle);\r\n }\r\n }\r\n}\r\n);\r\n\r\n"]}