(window.webpackJsonp=window.webpackJsonp||[]).push([[124],{240:function(e,t){const o=(e,t)=>e.$repositories.getRepositories().find(e=>e.id===t.repositoryId)?t.repositoryId:t.repositoryIdBase,i=(e,t)=>e.GuideUtils.getGuideElementSelector(`repository-${o(e,t)}-button`);PluginRegistry.add("guide.step",[{guideBlockName:"select-repository-dropdown",getSteps:(e,t)=>{const s=t.GuideUtils;return e.mainAction="select-repository",e.getRepositoryId=()=>o(t,e),[{guideBlockName:"clickable-element",options:angular.extend({},{skipPoint:!0,content:"guide.step_plugin.choose-repository.content",elementSelector:s.getGuideElementSelector("repositoriesGroupButton"),class:"repositories-group-button-guide-dialog",onNextClick:e=>s.clickOnGuideElement("repositoriesGroupButton")().then(()=>e.next())},e)},{guideBlockName:"clickable-element",options:angular.extend({},{content:"guide.step_plugin.select-repository.content",elementSelector:()=>i(t,e),class:"repository-select-button-guide-dialog",advanceOn:void 0,beforeShowPromise:()=>t.GuideUtils.waitFor(i(t,e),1).catch(e=>{throw t.toastr.error(t.$translate.instant("guide.unexpected.error.message")),e}),show:o=>()=>{$("#repositorySelectDropdown").addClass("autoCloseOff"),$(i(t,e)).on("mouseup.selectRepositoryButtonClick",(function(){o.next()}))},onNextClick:o=>{$(i(t,e)).off("mouseup.selectRepositoryButtonClick"),$("#repositorySelectDropdown").removeClass("autoCloseOff"),s.clickOnElement(i(t,e))().then(()=>o.next())},hide:()=>()=>{$("#repositorySelectDropdown").removeClass("autoCloseOff"),$(i(t,e)).off("mouseup.selectRepositoryButtonClick")},canBePaused:!1},e)}]}},{guideBlockName:"select-repository-plug",getSteps:(e,t)=>{const o=t.GuideUtils;return[{guideBlockName:"clickable-element",options:angular.extend({},{content:"guide.step_plugin.select-repository-plug.content",elementSelector:o.getGuideElementSelector(`repository-${e.repositoryId}-plug`),onNextClick:o.getGuideElementSelector(`repository-${e.repositoryId}-plug`)},e)}]}}])}}]);