define(["introjs","jquery","lodash","moment","session"],function(t,a,r,e,o){"use strict";function n(t,e){return c&&(void 0===e?window.localStorage.getItem(t):window.localStorage.setItem(t,e))}function l(t){if(window.btoa)return window.btoa(t);var e=0;if(0===t.length)return e;for(var o=0;o a");t&&t.click&&t.click()}this._.hideTray()},reset:function(t,e,o){this.resetMega(t,e,o);var i=a(document.body),s="introjs-docked",n="introjs-docked-position";i.removeAttr(n),t&&t.docked?(i.addClass(s),t.dockposition&&i.attr(n,t.dockposition)):i.removeClass(s);var r=i.data("introjs-step-class");r&&i.removeClass(r),t&&t.stepClass&&(i.data("introjs-step-class",t.stepClass),i.addClass(t.stepClass))},openProducts:function(){this._.hideTray(),this._.click("#nav-products > a")},openTools:function(){this._.click("#nav-tools > a")},openSecurity:function(){this._.click("#nav-security > a")},openCommunity:function(){this._.click("#nav-community > a")},openProfile:function(){this._.showTray().children().hide(),a("#account-info").css("opacity","1").show()},openLanguages:function(){this._.showTray().children().hide(),a("#language").css("opacity","1").show()},stripFixParents:function(){a(".introjs-fixParent").removeClass("introjs-fixParent")},returnToLaunch:function(t,e,o){null!==o.currentTour.redirectOnExit&&!1===o.currentTour.redirectOnExit||("www.redhat.com"===window.location.host?window.location="https://access.redhat.com/start/":window.location="/start/")},ensurePath:function(o,i){function t(){var t=h();a(document.body).addClass("introjs-hidden");var e=o.path+"?tour="+t.tour+"&step="+i;if(o.hash&&(e+=o.hash),o.hostname)return window.location=window.location.protocol+"//"+o.hostname+e;window.location=e}var e=window.location.pathname,s=window.location.hash;o&&o.path&&e&&e!==o.path&&t(),o&&o.hash&&s&&s!==o.hash&&t()},waitThenRefresh:function(e,o,i){var s="introjs-loading",n=this.refreshPosition,r=a(document.body);r.addClass(s),this._.waitForElement(e._element,function(t){i.intro._introItems[i.intro._currentStep].element=t,n(e,o,i),r.removeClass(s)})},refreshPosition:function(t,e,o){setTimeout(function(){o&&o.intro&&o.intro.refresh()},600)},loadRecommendations:function(i,s,n){this._.waitForElement(i.element,r.bind(function(){try{var t=angular.element("#rha-product-select").scope(),e=t.ProductsService.products[0];t.CaseService.kase.product=e.value||e.code,t.CaseService.onProductSelectChange(),t.RecommendationsService.getRecommendations();var o=this.refreshPosition;this._.waitForElement("#rha-recommendation-section",function(){o(i,s,n)})}catch(t){}},this))},scrollTop:function(){window.scrollTo(0,0)},affixScrollTop:function(t,e,o){window.scrollTo(0,0),t.affix&&a(t.affix).affix("checkPosition"),this.refreshPosition(t,e,o)},showCloseButton:function(){a(".introjs-skipbutton").css("display","block")},addRemindMeLaterButton:function(){var e=this;a(".introjs-skipbutton").after(''+this.remindMeLaterLabel+""),a(".introjs-remindmebutton").on("click",function(){e._.hideTour(),e._.hideTray();var t=window.localStorage.getItem(p);t=t.replace(e.momento+",",""),window.localStorage.setItem(p,t)})},removeRemindMeLaterButton:function(){a(".introjs-remindmebutton").css("display","none")},showCloseButtonAndRemindMeLaterButton:function(){this.showCloseButton(),this.addRemindMeLaterButton()},remindMeLaterLabel:"Remind Me Later",momento:""},u={1:{path:"(^\\/home\\/?$)|(^\\/$)",overlayOpacity:.1,needsUserInfo:!0,needsAuthentication:!0,steps:[{key:"tour_nimbus_home_welcome",tooltipClass:"tooltip-lg",after:"showCloseButton"},{element:"[data-portal-tour-1='1']",key:"tour_nimbus_home_topNavSubscription",tooltipClass:"tooltip-md",position:"bottom",highlightClass:"light top"},{element:"[data-portal-tour-1='2']",key:"tour_nimbus_home_topNavDownloads",tooltipClass:"tooltip-md",position:"bottom",highlightClass:"light top"},{element:"[data-portal-tour-1='3']",key:"tour_nimbus_home_topNavSupport",tooltipClass:"tooltip-md",position:"bottom",highlightClass:"light top"},{element:"[data-portal-tour-1='4a']",key:"tour_nimbus_home_accountSettingsMenu",tooltipClass:"tooltip-md",position:"left"},{element:"[data-portal-tour-1='4']",key:"tour_nimbus_home_accountSettings1",tooltipClass:"tooltip-md",stepClass:"user-account-highlight",position:"bottom",after:"stripFixParents",before:"openProfile"},{element:"[data-portal-tour-1='5']",key:"tour_nimbus_home_accountSettings2",tooltipClass:"tooltip-md",stepClass:"user-account-highlight",position:"bottom",after:"stripFixParents",before:"openProfile"},{element:"[data-portal-tour-1='6']",key:"tour_nimbus_home_language",tooltipClass:"tooltip-md",stepClass:"user-language-highlight",position:"left",after:"stripFixParents",before:"openLanguages"},{element:"[data-portal-tour-1='7']",key:"tour_nimbus_home_products1",tooltipClass:"tooltip-md",on:"openProducts",position:"right"},{element:"[data-portal-tour-1='8']",key:"tour_nimbus_home_products2",tooltipClass:"tooltip-md",on:"openProducts",position:"left"},{element:"[data-portal-tour-1='9']",key:"tour_nimbus_home_tools",tooltipClass:"tooltip-md",before:"openTools"},{element:"[data-portal-tour-1='10']",key:"tour_nimbus_home_security",tooltipClass:"tooltip-md",before:"openSecurity"},{element:"[data-portal-tour-1='11']",key:"tour_nimbus_home_community",tooltipClass:"tooltip-md",before:"openCommunity"},{element:"[data-portal-tour-1='12']",key:"tour_nimbus_home_helloCard",tooltipClass:"tooltip-md",position:"left",before:"affixScrollTop"},{element:"[data-portal-tour-1='13']",key:"tour_nimbus_home_quickLinks",tooltipClass:"tooltip-md",position:"top",highlightClass:"light"},{key:"tour_nimbus_home_feedback",before:"scrollTop",tooltipClass:"tooltip-lg final"}],callBacks:{before:"reset",on:"ensurePath",exit:"returnToLaunch"},translate:!0,memento:"1014-nimbus-home",startsOn:"20160105",expiresOn:"20171207",hideMobile:"767",disableInteraction:!0,exitOnOverlayClick:!1},2:{title:"Tour the Customer Portal",multipage:!0,launchTour:!0,overlayOpacity:.1,doneLabel:"Finish",steps:[{intro:"

Welcome!

This self-paced tour will guide you through the major features of the Customer Portal.

",path:"/management/",tooltipClass:"tooltip-md"},{element:"#nav-subscription",title:"Subscriptions",intro:"Subscriptions is the place to view, renew, and manage how you use your subscriptions.

Note: Subscription Management is available only to authorized users on your account.",path:"/management/",docked:!0},{element:".band.band-alt.band-narrow > .container .row.push-top",title:"Manage Subscriptions",intro:"If you use portal-based subscription management, this is where you can view and manage your registered systems and Subscription Management Applications like Red Hat Satellite.

Tip: Read the knowledge article Overview of Red Hat Subscription Management for additional information on managing subscriptions.",path:"/management/",docked:!0},{element:"#nav-downloads",title:"Downloads",intro:"Download all of your Red Hat products, find RPM packages, and browse our library of Linux container images. If you are interested in trying a product, you will also find our available product evaluations on this page.",path:"/downloads/",docked:!0},{element:"#nav-support",title:"Support Cases",intro:"Create, track, and manage your support cases here. During the case creation process, our intelligent recommendation engine can often find the resolution to your problem before you finish filing a new case.

Note: Support Cases are available only to authorized users on your account.",path:"/support/cases/",docked:!0},{element:"#account-info .row.account-settings .col-md-6:first-child",title:"Your User Account",intro:"Manage your account details, newsletter preferences, and more. If you are an Organization Administrator, User Management allows you to add an unlimited number of users and control access permissions.

Note: Each individual should have their own unique user account.",stepClass:"user-account-highlight",after:"stripFixParents",before:"openProfile",docked:!0},{element:"#account-info .row.account-settings .col-md-6:last-child",title:"Your User Account (continued)",intro:"Along with your personal profile, The Customer Portal also includes a notification service that will send you email when content you are interested in is updated. Look for the ‘Follow’ button to stay informed about your favorite Articles, Solutions, Discussions, contributors, and more.",stepClass:"user-account-highlight",after:"stripFixParents",before:"openProfile",docked:!0},{element:".products-menu .col-md-6.col-sm-8 .root",title:"Products & Services",intro:"The Products & Services menu is your gateway to product-specific information like evaluations, features, software downloads, documentation and step-by-step details to get you started.",tooltipClass:"tooltip-md",on:"openProducts",docked:!0},{element:".products-menu .col-md-6.col-sm-4.pull-right",title:"Products & Services (continued)",intro:"Also in the Products & Services menu, you’ll find the Red Hat Certification ecosystem as well as direct links to the Red Hat knowledgebase and product documentation. Under Support Policies you will find important information such as Scope of Coverage, SLAs and the Management Escalation process.",tooltipClass:"tooltip-md",on:"openProducts",docked:!0},{element:"#nav-tools",title:"Red Hat Access Labs",intro:"Accessible via the Tools menu in the navigation bar, Red Hat Access Labs is a rapidly growing set of tools developed by Red Hat engineers to help you improve performance, quickly troubleshoot issues, identify security problems, and more.",path:"/labs/",after:"stripFixParents",docked:!0},{element:"#nav-security",title:"Security",intro:"Security is a top priority for us all. This is the place to engage with our Red Hat Product Security team, access security updates, and ensure your environments are not exposed to any known security vulnerabilities.",path:"/security",after:"stripFixParents",docked:!0},{element:"#nav-community",title:"Community",intro:"Community Discussions is the place for Red Hat associates and customers to collaborate. Join 3,500 Red Hat experts, customers, and partners who engage in discussions each year. In Community, you will also find blogs, events, and more.",path:"/discussions/",after:"stripFixParents",docked:!0}],callBacks:{before:"reset",on:"ensurePath",exit:"returnToLaunch"},hideMobile:"767",disableInteraction:!0,exitOnOverlayClick:!1},3:{title:"User Management",multipage:!0,launchTour:!0,overlayOpacity:.1,doneLabel:"Finish",steps:[{intro:"

Welcome!

This self-paced tour will guide you, an Organization Administrator, through the process of creating new Customer Portal user accounts as well as assigning appropriate permissions for each.

",hostname:"www.redhat.com",path:"/wapps/ugc/protected/usermgt/userList.html",tooltipClass:"tooltip-md"},{intro:"To ensure the security of your organization's account and regulate user access to portal features, you or any other Organization Administrator must create a user login for each member of your organization.

Tip: A user account can only be associated with one organization. Users with existing accounts will need to be added as a new user to this account.",hostname:"www.redhat.com",path:"/wapps/ugc/protected/usermgt/userList.html"},{element:"#account-info .row.account-settings .col-md-6:first-child li:nth-child(3)",intro:"When logged in, you can access User Management from any page on the Red Hat Customer Portal by clicking your name then User Management in the Red Hat Account menu.",stepClass:"user-account-highlight",after:"stripFixParents",before:"openProfile",hostname:"www.redhat.com",path:"/wapps/ugc/protected/usermgt/userList.html"},{title:"User List",element:".admin-actions .add-user",intro:"The User List page lists all users associated with your account. From here you can add new users to your account individually using the Add new user button or add multiple users using the Upload new users button.",hostname:"www.redhat.com",path:"/wapps/ugc/protected/usermgt/userList.html"},{title:"Add User",element:"#generalForm .fieldsetform:nth-child(6)",intro:"Be sure to assign the appropriate permissions for the user under the \"Customer Portal Access Permissions\" section. Checking the Organization Administrator box under \"Account Roles\" will give the user all the permissions listed in the Customer Portal Access Permissions section.

Learn more about roles and permissions‌.",position:"bottom-right-aligned",after:"refreshPosition",hostname:"www.redhat.com",path:"/wapps/ugc/protected/usermgt/createNewUser.html"},{title:"Bulk User Creation",element:".admin-actions .add-bulk",intro:"Use the Upload new users button to add multiple users at once.",position:"left",hostname:"www.redhat.com",path:"/wapps/ugc/protected/usermgt/userList.html"},{title:"Bulk User Upload",element:".download-template",intro:"Download and complete the .csv template (according to instructions included in the template) and then upload the file to have multiple users created at once.

Tip: To edit options for several users at once, select the appropriate users from the \"User List\" page and click \"Edit.\" For more info on bulk editing see this instructional video.",position:"left",hostname:"www.redhat.com",path:"/wapps/ugc/protected/usermgt/createNewUsersCSV.html"},{intro:"Every individual within your organization should have his or her own unique user user account. For more information on the benefits of assigning individual user logins, reference this knowledge article.

Tip: In order to effectively and efficiently communicate with each member of your organization, a good best practice is to perform user management maintenance once every quarter.",hostname:"www.redhat.com",path:"/wapps/ugc/protected/usermgt/userList.html"}],callBacks:{before:"reset",on:"ensurePath",exit:"returnToLaunch"},hideMobile:"767",disableInteraction:!0,exitOnOverlayClick:!1},4:{title:"Engaging Red Hat Support",multipage:!0,launchTour:!0,overlayOpacity:.1,doneLabel:"Finish",steps:[{intro:"

Welcome!

This self-paced tour will guide you through the process and policies associated with engaging Red Hat Support using the Customer Portal case management system.

",tooltipClass:"tooltip-md",path:"/support/cases/",hash:"#/case/list"},{title:"Support Cases",element:"#nav-support",intro:"The support case management system is accessible from the Support Cases link. If you have previous cases they will be displayed here. You can search for a case, filter by case group, open, closed or all cases.

Use the Create a New Support Case button to initiate the case creation process.",path:"/support/cases/",hash:"#/case/list"},{title:"Creating Cases",element:"#nav-support",_element:"#rha-case-main-options",intro:"Select product, version, and give the case a name and a detailed description. Attaching logs, an sos report, or other diagnostics files is highly recommended and results in faster average resolution times.",path:"/support/cases/",hash:"#/case/new",before:"waitThenRefresh",on:"loadRecommendations",docked:!0},{title:"Recommendations",element:"#page-wrap",_element:"#rha-recommendation-section",intro:"As you type your case name and description, you will see solution recommendations dynamically update directing you to content which may address your concern.",path:"/support/cases/",hash:"#/case/new",before:"loadRecommendations",on:"waitThenRefresh",dockposition:"left",docked:!0},{title:"Case Options",element:"#page-wrap",_element:"#rha-case-more-options",intro:"Select Support Level, Severity, and then add any other users you'd like to receive notifications on the case. If your account has case groups set up, you can also select a group and the case will only be visible to the users in that Case Group. Once you click Submit, the case will be created and assigned a case number you may use as a reference.",path:"/support/cases/",hash:"#/case/new",before:"waitThenRefresh",docked:!0},{title:"Production SLAs",intro:"Understanding the Support Hours of Coverage and Support Level Agreements is crucial to knowing what to expect from Red Hat Support in the way of engagement and response times, based on the level of support defined by your subscriptions.

The Production SLAs are found under Products & Services, Support Policies.",path:"/support/offerings/production/sla",docked:!0},{title:"Escalations",intro:"If circumstances dictate that you need to raise awareness by means of an escalation, the information on this page will direct you through the process of notifying Red Hat Support management.

The Escalation Process is found under Products & Services, Support Policies.",path:"/support/policy/mgt_escalation/",docked:!0}],callBacks:{before:"reset",on:"ensurePath",exit:"returnToLaunch"},hideMobile:"767",disableInteraction:!0,exitOnOverlayClick:!1},5:{translate:!0,multipage:!0,launchTour:!0,overlayOpacity:.1,doneLabel:"OK",steps:[{key:"tour_subscriptionvalue_welcome",after:"stripFixParents"}],callBacks:{before:"reset",on:"ensurePath"},hideMobile:"767",disableInteraction:!0,exitOnOverlayClick:!1},6:{translate:!0,needsUserInfo:!0,hideMobile:"767",centerAllWidth:767,steps:[{key:"tour_solution_welcome",tooltipClass:"tooltip-lg"},{key:"tour_solution_sidebar",tooltipClass:"tooltip-md"},{element:"#page-wrap",_element:".drawer-nav .toggler",key:"tour_solution_adminDrawer",position:"left",highlightClass:"light top",tooltipClass:"tooltip-md",on:"waitThenRefresh",internalOnly:!0},{element:"#action-nav",key:"tour_solution_actionNav",position:"right",highlightClass:"light top",tooltipClass:"tooltip-md"},{element:"[rh-action-sheet-toggler='helpfulActionSheet']",key:"tour_solution_helpful",position:"right",highlightClass:"light top",tooltipClass:"tooltip-md"},{element:"#page-wrap",_element:"#comments",key:"tour_solution_comments",position:"top",highlightClass:"light top",tooltipClass:"tooltip-md",on:"waitThenRefresh"},{affix:"#action-nav",element:"#action-nav li:last-child",key:"tour_solution_feedback",before:"affixScrollTop",position:"top",highlightClass:"light top",tooltipClass:"tooltip-lg final"}]},7:{translate:!0,needsUserInfo:!0,hideMobile:"767",centerAllWidth:767,steps:[{key:"tour_article_welcome",tooltipClass:"tooltip-lg"},{key:"tour_article_sidebar",tooltipClass:"tooltip-md"},{element:"#page-wrap",_element:".drawer-nav .toggler",key:"tour_article_adminDrawer",position:"left",highlightClass:"light top",tooltipClass:"tooltip-md",on:"waitThenRefresh",internalOnly:!0},{element:"#action-nav",key:"tour_article_actionNav",position:"right",highlightClass:"light top",tooltipClass:"tooltip-md"},{element:"[rh-action-sheet-toggler='helpfulActionSheet']",key:"tour_article_helpful",position:"right",highlightClass:"light top",tooltipClass:"tooltip-md"},{key:"tour_article_tableOfContents",tooltipClass:"tooltip-md"},{element:"#page-wrap",_element:"#comments",key:"tour_article_comments",position:"top",highlightClass:"light top",tooltipClass:"tooltip-md",on:"waitThenRefresh"},{affix:"#action-nav",element:"#action-nav li:last-child",key:"tour_article_feedback",before:"affixScrollTop",position:"top",highlightClass:"light top",tooltipClass:"tooltip-lg final"}]},8:{translate:!0,needsUserInfo:!0,hideMobile:"767",centerAllWidth:767,steps:[{key:"tour_discussion_welcome",tooltipClass:"tooltip-lg"},{key:"tour_discussion_sidebar",tooltipClass:"tooltip-md"},{element:"#page-wrap",_element:".drawer-nav .toggler",key:"tour_discussion_adminDrawer",position:"left",highlightClass:"light top",tooltipClass:"tooltip-md",on:"waitThenRefresh",internalOnly:!0},{element:"#action-nav",key:"tour_discussion_actionNav",position:"right",highlightClass:"light top",tooltipClass:"tooltip-md"},{element:"#main-content .header-tag-list li:first-child",key:"tour_discussion_postedTag",position:"right",highlightClass:"light top",tooltipClass:"tooltip-md"},{element:"[rh-action-sheet-toggler='helpfulActionSheet']",key:"tour_discussion_helpful",position:"right",highlightClass:"light top",tooltipClass:"tooltip-md"},{element:"#page-wrap",_element:"#comments",key:"tour_discussion_responses",position:"top",highlightClass:"light top",tooltipClass:"tooltip-md",on:"waitThenRefresh"},{key:"tour_discussion_bestResponse",before:"affixScrollTop",tooltipClass:"tooltip-lg"},{key:"tour_discussion_bestResponseSearch",before:"affixScrollTop",tooltipClass:"tooltip-lg"},{key:"tour_discussion_feedback",tooltipClass:"tooltip-lg final"}]},9:{translate:!0,needsUserInfo:!1,hideMobile:"767",centerAllWidth:767,memento:"0616-package-search",startsOn:"20160701",expiresOn:"20170701",steps:[{key:"tour_packagesearch_welcome",tooltipClass:"tooltip-lg",after:"showCloseButton"},{element:"#page-wrap",_element:"#search-term",key:"tour_packagesearch_searchbox",position:"bottom",highlightClass:"light top",tooltipClass:"tooltip-md",on:"waitThenRefresh",internalOnly:!0},{element:"#prod_variant_chosen",key:"tour_packagesearch_productbox",position:"bottom",highlightClass:"light top",tooltipClass:"tooltip-md"},{element:"#page-wrap",_element:"#package_browser_list tbody tr:first-child td:last-child",key:"tour_packagesearch_architecture",position:"left",highlightClass:"light top",tooltipClass:"tooltip-md",before:"waitThenRefresh",on:"refreshPosition"},{affix:"#action-nav",element:"#action-nav li:last-child",key:"tour_packagesearch_feedback",position:"top",highlightClass:"light top",tooltipClass:"tooltip-lg final"}]},10:{path:"(^\\/home\\/?$)|(^\\/$)",overlayOpacity:.1,needsUserInfo:!1,needsAuthentication:!1,steps:[{key:"tour_nimbus_home_welcome",tooltipClass:"tooltip-lg",after:"showCloseButton"},{element:"[data-portal-tour-1='1']",key:"tour_nimbus_home_topNavSubscription",tooltipClass:"tooltip-md",position:"bottom",highlightClass:"light top"},{element:"[data-portal-tour-1='2']",key:"tour_nimbus_home_topNavDownloads",tooltipClass:"tooltip-md",position:"bottom",highlightClass:"light top"},{element:"[data-portal-tour-1='3']",key:"tour_nimbus_home_topNavSupport",tooltipClass:"tooltip-md",position:"bottom",highlightClass:"light top"},{element:"[data-portal-tour-1='4a']",key:"tour_nimbus_home_accountSettingsMenu",tooltipClass:"tooltip-md",position:"left"},{element:"[data-portal-tour-1='6']",key:"tour_nimbus_home_language",tooltipClass:"tooltip-md",stepClass:"user-language-highlight",position:"left",after:"stripFixParents",before:"openLanguages"},{element:"[data-portal-tour-1='7']",key:"tour_nimbus_home_products1",tooltipClass:"tooltip-md",on:"openProducts",position:"right"},{element:"[data-portal-tour-1='8']",key:"tour_nimbus_home_products2",tooltipClass:"tooltip-md",on:"openProducts",position:"left"},{element:"[data-portal-tour-1='9']",key:"tour_nimbus_home_tools",tooltipClass:"tooltip-md",before:"openTools"},{element:"[data-portal-tour-1='10']",key:"tour_nimbus_home_security",tooltipClass:"tooltip-md",before:"openSecurity"},{element:"[data-portal-tour-1='11']",key:"tour_nimbus_home_community",tooltipClass:"tooltip-md",before:"openCommunity"},{element:"[data-portal-tour-1='12']",key:"tour_nimbus_home_helloCard",tooltipClass:"tooltip-md",position:"left",after:"affixScrollTop"},{element:"[data-portal-tour-1='13']",key:"tour_nimbus_home_quickLinks",tooltipClass:"tooltip-md",position:"top",highlightClass:"light"},{key:"tour_nimbus_home_feedback",before:"scrollTop",tooltipClass:"tooltip-lg final"}],callBacks:{before:"reset",on:"ensurePath"},translate:!0,memento:"1014-nimbus-home",startsOn:"20160105",expiresOn:"20171207",hideMobile:"767",disableInteraction:!0,exitOnOverlayClick:!1}},c="localStorage"in window&&null!==window.localStorage,p="RHCP-TOUR",h=function(){if(!location.search)return{};for(var t={},e=location.search.slice(1).split("&"),o=e.length,i=0;i