UNPKG

graphdb-workbench

Version:
2 lines 2.93 kB
export const __webpack_id__=86142;export const __webpack_ids__=[86142];export const __webpack_modules__={86142:()=>{const e="guide.step-action.select-ttyg-agent";PluginRegistry.add("guide.step",[{guideBlockName:"ttyg-select-agent-info-message",getSteps:(t,o)=>{const n=o.GuideUtils;return[{guideBlockName:"info-message",options:{content:"guide.step_plugin.select-ttyg-agent.info.content",...t.mainAction?{}:{title:e},class:"select-ttyg-agent",skipPoint:!0,skipButtonLabel:n.BUTTONS.SKIP_SECTION,disablePreviousFlow:!0,...t,url:"ttyg"}}]}},{guideBlockName:"ttyg-select-agent-dropdown-open",getSteps:(t,o)=>{const n=o.GuideUtils;return[{guideBlockName:"clickable-element",options:{content:"guide.step_plugin.select-ttyg-agent.open-agent-dropdown",...t.mainAction?{}:{title:e},class:"open-agent-dropdown",disableNextFlow:!0,...t,url:"ttyg",elementSelector:n.getGuideElementSelector("select-agent-dropdown")}}]}},{guideBlockName:"ttyg-select-agent-from-dropdown",getSteps:(t,o)=>{const n=o.GuideUtils;return[{guideBlockName:"clickable-element",options:{content:"guide.step_plugin.select-ttyg-agent.select-agent",...t.mainAction?{}:{title:e},disableNextFlow:!0,class:"select-your-agent",...t,elementSelector:n.getGuideElementSelector("select-agent-panel"),show:()=>()=>{const e=document.querySelector(n.getGuideElementSelector("select-agent-dropdown")),o=document.querySelector(n.getGuideElementSelector("select-agent-dropdown-toggle"));t.observer=new MutationObserver(function(e){for(const t of e)"attributes"===t.type&&(t.target.classList.contains("open")||o.click())}),t.observer.observe(e,{attributes:!0})},hide:()=>()=>{t.observer.disconnect()}}}]}},{guideBlockName:"ttyg-select-agent-check-for-missing-repository-cancel",getSteps:(t,o)=>{const n=o.GuideUtils;return[{guideBlockName:"info-message",options:angular.extend({},{beforeShowPromise:(e,t)=>n.getOrWaitFor(n.getElementSelector(".confirm-dialog .cancel-btn"),1).then(()=>{setTimeout(()=>e.next())}).catch(()=>{const o=t.id;setTimeout(()=>e.show(o+2))})},t)},{guideBlockName:"clickable-element",options:{content:"guide.step_plugin.select-ttyg-agent.missing-repository",...t.mainAction?{}:{title:e},...t,elementSelector:n.getElementSelector(".confirm-dialog .cancel-btn"),showOn:()=>n.isVisible(".confirm-dialog .cancel-btn"),onNextClick:()=>{n.clickOnElement(".confirm-dialog .cancel-btn")()},show:(e,t)=>()=>{const o=t.id;$(t.elementSelector).on("click",()=>{e.show(o-3)})},hide:(e,t)=>()=>{$(t.elementSelector).off("click")}}}]}},{guideBlockName:"select-ttyg-agent",getSteps:e=>(e.mainAction="select-ttyg-agent",[{guideBlockName:"ttyg-select-agent-info-message",options:{...e}},{guideBlockName:"ttyg-select-agent-dropdown-open",options:{...e}},{guideBlockName:"ttyg-select-agent-from-dropdown",options:{...e}},{guideBlockName:"ttyg-select-agent-check-for-missing-repository-cancel",options:{...e}}])}])}}; //# sourceMappingURL=86142.04f4e4759998d4c37ccd.bundle.js.map