UNPKG

graphdb-workbench

Version:
1 lines 2.94 kB
var t={d:(e,r)=>{for(var n in r)t.o(r,n)&&!t.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:r[n]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e)},e={};function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}function n(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function o(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function i(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?o(Object(r),!0).forEach(function(e){a(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function a(t,e,n){return(e=function(t){var e=function(t){if("object"!=r(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=r(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==r(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}t.d(e,{k:()=>c});var u={guideBlockName:"conversation-with-ttyg-agent",getSteps:function(t,e){var r=e.GuideUtils;t.mainAction="conversation-with-ttyg-agent";var o=t.startNewConversation,a=[];if(t.showInfo&&a.push({guideBlockName:"ttyg-conversation-info-message",options:i({},t)}),o){var u=r.getGuideElementSelector("create-chat-btn"),c=[{guideBlockName:"info-message",options:angular.extend({},{url:"ttyg",beforeShowPromise:function(t,e){return r.waitFor(u,1).then(function(){setTimeout(function(){return t.next()})}).catch(function(){var r=e.id;setTimeout(function(){return t.show(r+2)})})}},t)},{guideBlockName:"ttyg-click-to-create-new-chat",options:i({},t)}];a.push.apply(a,c)}var f,s=t.questions.map(function(t){return{guideBlockName:"ask-ttyg-agent",options:t}});return a.push.apply(a,function(t){if(Array.isArray(t))return n(t)}(f=s)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(f)||function(t,e){if(t){if("string"==typeof t)return n(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(t,e):void 0}}(f)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),a}};function c(t){t.add("guide.step",u)}const f=e.k;export{f as register};