UNPKG

graphdb-workbench

Version:
2 lines 2.93 kB
export const __webpack_id__=51087;export const __webpack_ids__=[51087];export const __webpack_modules__={51087:()=>{PluginRegistry.add("guide.step",[{guideBlockName:"ask-ttyg-agent",getSteps:(t,n)=>{const o=n.GuideUtils;t.mainAction="ask-ttyg-agent",t.maxWaitTime=10,t.forceReload=!1;const l=t.explain,i=t.explainMore,a=t.exploreSparql,s=[{guideBlockName:"input-element",options:angular.extend({},{skipPoint:!0,content:"guide.step_plugin.ask-ttyg-agent.input-question",class:"input-question",url:"ttyg",elementSelector:o.getGuideElementSelector("question-input"),show:e=>()=>{const t=o.getGuideElementSelector("contenteditable");$(t).on("keydown",n=>{!$(t).text()||"Enter"!==n.key||n.shiftKey||n.ctrlKey||e.next()})},hide:()=>()=>{const e=o.getGuideElementSelector("contenteditable");$(e).off("keydown")},disableNextFlow:!0},t)},e(o,t)];if(l){const n=o.getLastGuideElementSelector("explain-response-btn"),l=o.getLastGuideElementSelector("chat-item",n);s.push({guideBlockName:"info-message",options:angular.extend({},{url:"ttyg",beforeShowPromise:(e,t)=>o.waitFor(l,1).then(()=>{setTimeout(()=>e.next())}).catch(()=>{const n=t.id;setTimeout(()=>e.show(n+3))})},t)},{guideBlockName:"clickable-element",options:angular.extend({},{content:"guide.step_plugin.ask-ttyg-agent.explain-answer",class:"explain-answer",url:"ttyg",elementSelector:l,disableNextFlow:!0},t)},e(o,t))}if(l&&a){const e=o.getLastGuideElementSelector("open-in-sparql-editor-btn"),n=o.getLastGuideElementSelector("chat-item",e);s.push({guideBlockName:"info-message",options:angular.extend({},{url:"ttyg",beforeShowPromise:(e,t)=>o.waitFor(n,1).then(()=>{setTimeout(()=>e.next())}).catch(()=>{const n=t.id;setTimeout(()=>e.show(n+2))})},t)},{guideBlockName:"clickable-element",options:angular.extend({},{content:"guide.step_plugin.ask-ttyg-agent.explore-sparql",class:"explore-sparql",url:"ttyg",disableNextFlow:!0,elementSelector:n},t)})}if(l&&i){const n=o.getLastGuideElementSelector("how-derive-answer-btn"),l=o.getLastGuideElementSelector("chat-item",n);s.push({guideBlockName:"info-message",options:angular.extend({},{url:"ttyg",beforeShowPromise:(e,t)=>o.waitFor(l,1).then(()=>{setTimeout(()=>e.next())}).catch(()=>{const n=t.id;setTimeout(()=>e.show(n+3))})},t)},{guideBlockName:"clickable-element",options:angular.extend({},{content:"guide.step_plugin.ask-ttyg-agent.explain-answer-more",class:"input-agent-name",url:"ttyg",elementSelector:l,show:e=>()=>{$(l).on("click",()=>{e.next()})},hide:()=>()=>{$(l).off("click")},disableNextFlow:!0},t)},e(o,t))}return s}}]);const e=(e,t)=>({guideBlockName:"hold-and-wait-until-hidden",options:angular.extend({},{content:"guide.step_plugin.ask-ttyg-agent.wait-for-answer",class:"wait-for-answer",url:"ttyg",placement:"left",elementSelector:e.getGuideElementSelector("chat-details"),elementSelectorToWait:e.getGuideElementSelector("question-loader")},t)})}}; //# sourceMappingURL=51087.6b58e2df75756078e5e5.bundle.js.map