graphdb-workbench 2.8.0-TR4 → 2.8.0-TR5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (96) hide show
  1. package/dist/{0.b771c387eb20bde9a6ea.bundle.js → 0.6967ab9fb05778bb0f23.bundle.js} +2 -2
  2. package/dist/{1.1a45680f3bec35238550.bundle.js → 1.2d333b1dc9d9d93fa395.bundle.js} +1 -1
  3. package/dist/{11.df90fccb3ff14cb166d8.bundle.js → 11.a9076c27fa7279c46d49.bundle.js} +5 -5
  4. package/dist/{14.14d3683da668325381d3.bundle.js → 14.eaf1fb53a0c7be59d9d5.bundle.js} +2 -2
  5. package/dist/167.d4b7fc5fa09527e47466.bundle.js +1 -1
  6. package/dist/{2.9770846cbe686a33e4f8.bundle.js → 2.3cdecf40af9e7a409ab0.bundle.js} +2 -2
  7. package/dist/{20.6f75ff85c57c42f30433.bundle.js → 20.8d9794d3f726053d668d.bundle.js} +1 -1
  8. package/dist/{21.39dffe7ceff8f6658a56.bundle.js → 21.7951f078016f09edd79a.bundle.js} +1 -1
  9. package/dist/{23.9d9bea64ee0f22ec8159.bundle.js → 23.f14cd250b4fbb29ee2dc.bundle.js} +2 -2
  10. package/dist/{310.82c1148db42192c0090c.bundle.js → 310.469994de69102ac3f19e.bundle.js} +1 -1
  11. package/dist/{311.9874544df1bbafd10692.bundle.js → 311.cf3c7cdc8df9614c5e0d.bundle.js} +1 -1
  12. package/dist/{312.e1b40283b695dcb101b0.bundle.js → 312.71d9b98ccbdfe96b0e27.bundle.js} +1 -1
  13. package/dist/{313.d9cca6e410a0f1a448bb.bundle.js → 313.53a97f9eb084dcae87c9.bundle.js} +1 -1
  14. package/dist/325.993f7143c5d5592ab355.bundle.js +1 -1
  15. package/dist/328.c8475579baf28af54890.bundle.js +1 -1
  16. package/dist/329.29a283ec1f3ceb4adb26.bundle.js +1 -1
  17. package/dist/{33.34c20158a0c7476d953f.bundle.js → 33.4099e6d9a135c8342401.bundle.js} +1 -1
  18. package/dist/330.4e27caee2a547aeaf45b.bundle.js +1 -1
  19. package/dist/{34.cec479590af17a5f1b17.bundle.js → 34.3bd663f40f8e5d487e58.bundle.js} +1 -1
  20. package/dist/360.c02645ba0f7ccc709bd3.bundle.js +1 -1
  21. package/dist/371.4ac7a2c3459079f9fb6a.bundle.js +1 -1
  22. package/dist/372.8c2b50c5a331ae2b9c70.bundle.js +1 -1
  23. package/dist/373.9ed7674129588e479e21.bundle.js +1 -1
  24. package/dist/374.b8ba6d28714210a3468b.bundle.js +1 -1
  25. package/dist/377.ae7fb3655af86acf9cd8.bundle.js +1 -1
  26. package/dist/379.cee485c49fe7cbbf1b00.bundle.js +1 -1
  27. package/dist/{380.19a7d7b2178f303269b4.bundle.js → 380.8d892a8aaba0c859b3c2.bundle.js} +1 -1
  28. package/dist/49.1d0155d2196c26d66a02.bundle.js +1 -1
  29. package/dist/54.d9da92c299b633971397.bundle.js +1 -0
  30. package/dist/58.e5f89a68c158a10169a3.bundle.js +1 -0
  31. package/dist/{6.2cf11b39c0980889d446.bundle.js → 6.bdd0c8920d113c3720a2.bundle.js} +1 -1
  32. package/dist/61.e8a681d3549fc169ec69.bundle.js +1 -1
  33. package/dist/{70.05fb2a311f0b1542c9e3.bundle.js → 70.4c411d83a739e6825088.bundle.js} +1 -1
  34. package/dist/8.1e5e224c88447e09e540.bundle.js +2 -0
  35. package/dist/{83.8225300dc7f6501d3272.bundle.js → 83.5a2605ee11c182a18010.bundle.js} +1 -1
  36. package/dist/{bundle.202db8517acfc0d257cd.bundle.js → bundle.ab46df6bc4d4c7e32a6b.bundle.js} +2 -2
  37. package/dist/index.html +3 -3
  38. package/dist/js/angular/core/directives/autocomplete/templates/autocomplete.html +1 -1
  39. package/dist/js/angular/core/directives/operations-statuses-monitor/templates/operations-statuses-monitor.html +1 -1
  40. package/dist/js/angular/core/directives/rdfresourcesearch/templates/rdfResourceSearchTemplate.html +1 -1
  41. package/dist/js/angular/core/directives/yasgui-component/templates/yasgui-component.html +1 -1
  42. package/dist/js/angular/security/templates/user.html +1 -1
  43. package/dist/js/angular/ttyg/templates/agent-list.html +1 -1
  44. package/dist/js/angular/ttyg/templates/agent-select-menu.html +1 -1
  45. package/dist/js/angular/ttyg/templates/chat-list.html +1 -1
  46. package/dist/js/angular/ttyg/templates/chat-panel.html +1 -1
  47. package/dist/js/angular/ttyg/templates/modal/agent-settings-modal.html +2 -2
  48. package/dist/js/angular/ttyg/templates/no-agents-view.html +1 -1
  49. package/dist/js/angular/ttyg/templates/ttyg.html +2 -2
  50. package/dist/license-checker.json +2 -2
  51. package/dist/pages/aclmanagement.html +2 -2
  52. package/dist/pages/autocomplete.html +1 -1
  53. package/dist/pages/choose-repository-type.html +1 -1
  54. package/dist/pages/cluster-management/clusterInfo.html +3 -3
  55. package/dist/pages/create-index.html +1 -1
  56. package/dist/pages/dependencies.html +1 -1
  57. package/dist/pages/domainRangeInfo.html +2 -2
  58. package/dist/pages/edit.html +1 -1
  59. package/dist/pages/explore.html +1 -1
  60. package/dist/pages/export.html +1 -1
  61. package/dist/pages/find.html +1 -1
  62. package/dist/pages/graph-config/saveGraphConfig.html +8 -8
  63. package/dist/pages/graphs-visualizations.html +7 -7
  64. package/dist/pages/guides.html +1 -1
  65. package/dist/pages/import.html +2 -2
  66. package/dist/pages/jdbc-create.html +1 -1
  67. package/dist/pages/monitor/backup-and-restore.html +1 -1
  68. package/dist/pages/monitor/queries.html +1 -1
  69. package/dist/pages/monitor/resources.html +1 -1
  70. package/dist/pages/namespaces.html +2 -2
  71. package/dist/pages/plugins.html +1 -1
  72. package/dist/pages/rdfClassHierarchyInfo.html +7 -7
  73. package/dist/pages/rdfrank.html +2 -2
  74. package/dist/pages/repositories.html +1 -1
  75. package/dist/pages/repository.html +1 -1
  76. package/dist/pages/similarity-indexes.html +1 -1
  77. package/dist/pages/sparql-editor.html +1 -1
  78. package/dist/pages/sparql-template-create.html +1 -1
  79. package/dist/pages/ux-test1.html +2 -2
  80. package/dist/pages/webapi.html +2 -2
  81. package/dist/res/swagger5/README.md +1 -1
  82. package/dist/res/swagger5/index.css +1 -1
  83. package/dist/res/swagger5/index.html +12 -12
  84. package/dist/res/swagger5/oauth2-redirect.html +6 -6
  85. package/dist/res/swagger5/swagger-initializer.js +5 -0
  86. package/dist/res/swagger5/swagger-ui-bundle.js +1 -1
  87. package/dist/res/swagger5/swagger-ui-es-bundle-core.js +1 -1
  88. package/dist/res/swagger5/swagger-ui-es-bundle-core.js.map +1 -1
  89. package/dist/res/swagger5/swagger-ui-es-bundle.js +1 -1
  90. package/dist/res/swagger5/swagger-ui-standalone-preset.js +1 -1
  91. package/dist/res/swagger5/swagger-ui.js +1 -1
  92. package/dist/res/swagger5/swagger-ui.js.map +1 -1
  93. package/package.json +1 -2
  94. package/dist/54.1a6e4ada1e69a58b2b52.bundle.js +0 -1
  95. package/dist/58.463fc66ca234d1129da3.bundle.js +0 -1
  96. package/dist/8.7f0f98ff96fac525fd5a.bundle.js +0 -1
@@ -1 +1 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([[6,43,68,69,70,97,98,248],{116:function(e,t,s){"use strict";s.r(t),s.d(t,"ChatModel",(function(){return n})),s.d(t,"ChatByDayModel",(function(){return r})),s.d(t,"ChatsListModel",(function(){return i}));var a=s(79);class n{constructor(e,t){this.hashGenerator=t,this._id=e.id,this._name=e.name,this._timestamp=e.timestamp,this._chatHistory=e.chatHistory,this.hash=this.generateHash()}generateHash(){return this.hashGenerator(JSON.stringify(this))}get id(){return this._id}set id(e){this._id=e}get name(){return this._name}set name(e){this.generateHash(),this._name=e}get timestamp(){return this._timestamp}set timestamp(e){this._timestamp=e}get chatHistory(){return this._chatHistory}set chatHistory(e){this._chatHistory=e||new a.ChatItemsListModel}toRenameRequestPayload(){return{name:this._name}}}class r{constructor(e){this._day=e.day,this._timestamp=e.timestamp,this._chats=e.chats}get day(){return this._day}set day(e){this._day=e}get timestamp(){return this._timestamp}set timestamp(e){this._timestamp=e}get chats(){return this._chats}set chats(e){this._chats=e}}class i{constructor(e){this._chats=e||[],this._chatsByDay=[],this._chats.forEach(e=>{const t=new Date(1e3*e.timestamp).toDateString(),s=this._chatsByDay.find(e=>e.day===t);s?s.chats.push(e):this._chatsByDay.push(new r({day:t,timestamp:1e3*e.timestamp,chats:[e]}))})}isEmpty(){return 0===this._chats.length}getFirstChat(){return this._chats[0]}deselectAll(){this._chats.forEach(e=>{e.selected=!1})}selectChat(e){this.deselectAll(),this._chats.forEach(t=>{t.selected=t.id===e.id})}getChat(e){return this._chats.find(t=>t.id===e)}renameChat(e){const t=this._chats.find(t=>t.id===e.id);t&&(t.name=e.name)}get chats(){return this._chats}set chats(e){this._chats=e}get chatsByDay(){return this._chatsByDay}set chatsByDay(e){this._chatsByDay=e}}},117:function(e,t,s){"use strict";s.r(t),s.d(t,"chatMessageModelListMapper",(function(){return r})),s.d(t,"chatItemsModelMapper",(function(){return i})),s.d(t,"chatMessageModelMapper",(function(){return o}));var a=s(72),n=s(79);const r=e=>e?e.map(e=>o(e)):[],i=(e=[])=>{const t=[];let s;return e.forEach(e=>{if(a.CHAT_MESSAGE_ROLE.USER===e.role){s&&t.push(s);const a=e.conversationId,r=e.agentId;s=new n.ChatItemModel(a,r,e)}else s.answer=e}),s&&t.push(s),new n.ChatItemsListModel(t)},o=e=>{if(e)return new a.ChatMessageModel({id:e.id,role:e.role,message:e.message,timestamp:e.timestamp,data:e})}},141:function(e,t,s){"use strict";s.r(t),s.d(t,"TtygRestServiceFakeBackend",(function(){return r}));var a=s(30),n=s(72);class r{constructor(){this.conversations=[...i]}getConversations(){return new Promise(e=>{e({data:Object(a.cloneDeep)(this.conversations)})})}getConversation(e){return Promise.resolve({data:Object(a.cloneDeep)(this.conversations.find(t=>t.id===e))})}renameConversation(e,t){const s=this.conversations.find(t=>t.id===e);return s&&(s.name=t.name),Promise.resolve({data:Object(a.cloneDeep)(s)})}exportConversation(e){return console.log("Exporting conversation with id: ",e),Promise.resolve()}askQuestion(e){const t={id:"msg_Bn07kVDCYT1qmgu1G7Zw0KNe",conversationId:e.conversationId,agentId:null,message:`Reply to '${e.question}'`,role:n.CHAT_MESSAGE_ROLE.USER,timestamp:Date.now()},s={id:"msg_Bn07kVDCYT1qmgu1G7Zw0KNe",conversationId:e.conversationId,agentId:null,message:`Reply to '${e.question}'`,role:n.CHAT_MESSAGE_ROLE.ASSISTANT,timestamp:Date.now()},a=this.conversations.find(t=>t.id===e.conversationId);return a&&(a.messages.push(s),a.messages.push(t)),Promise.resolve({data:s})}deleteConversation(e){return this.conversations=this.conversations.filter(t=>t.id!==e),Promise.resolve()}createConversation(e){const t={id:"thread_"+this.conversations.length,name:"Thread "+this.conversations.length,timestamp:Date.now(),messages:[]};this.conversations.unshift(t);const s=Object(a.cloneDeep)(e);return s.conversationId=t.id,this.askQuestion(s).then(()=>({data:{id:"msg_Bn07kVDCYT1qmgu1G7Zw0KNe",conversationId:t.id,agentId:e.agentId}}))}getAgents(){return Promise.resolve({data:[...o]})}getAgent(e){return Promise.resolve({data:Object(a.cloneDeep)(o.find(t=>t.id===e))})}createAgent(e){return o.push(e),Promise.resolve({data:e})}editAgent(e){return o=o.map(t=>t.id===e.id?e:t),Promise.resolve({data:e})}deleteAgent(e){return o=o.filter(t=>t.id!==e),Promise.resolve()}simulateHttpError(){return Promise.reject({status:500,message:"Internal Server Error"})}}const i=[{id:"thread_jdQBvbkaU6JPoO48oFbC54dA",name:"Very long chat name which does not fit in the sidebar",timestamp:1725235200,messages:[]},{id:"thread_jdQBvbkaU6JPoO48oQaL76dB",name:"Test chat 2",timestamp:1725238800,messages:[]},{id:"thread_jdQBvbkaU6JPoO48oQaL76dC",name:"Test chat 3",timestamp:1725242400,messages:[]},{id:"thread_jdQBvbkaU6JPoO48oFbC54dD",name:"Test chat 4",timestamp:1697331600,messages:[]}];let o=[{id:"asst_gAPcrHQQ9ZIxD5eXWH2BNFfo",name:"agent-1",model:"gpt-4o",temperature:0,topP:0,seed:null,repositoryId:"starwars",instructions:{systemInstruction:"\n\n",userInstruction:""},assistantExtractionMethods:[{ftsMethod:"fts_search"}],maxNumberOfTriplesPerCall:null},{id:"asst_qMyCpCBmqxV9I2B8UoMfFzc5",name:"agent-2",model:"gpt-4o",temperature:0,topP:0,seed:null,repositoryId:null,instructions:{systemInstruction:"string\n\nstring",userInstruction:"string"},assistantExtractionMethods:[{ftsMethod:"fts_search"}],maxNumberOfTriplesPerCall:null},{id:"asst_Cr0RxobrY07WpOvvyQilEWMI",name:"Databricks-general-unbiased",model:"gpt-4o-2024-08-06",temperature:1,topP:1,seed:null,repositoryId:"starwars",instructions:{systemInstruction:"You are helpful assistant in discovering information regarding diagnostic biomarkers.",userInstruction:null},assistantExtractionMethods:[],maxNumberOfTriplesPerCall:null},{id:"asst_5GxNYTdaOh7Tl6lLl6Pya2aH",name:"Databricks-biomarkers",model:"gpt-3.5-turbo-0125",temperature:1,topP:1,seed:null,repositoryId:"biomarkers",instructions:{systemInstruction:"You're a helpful assistant in discovering new diagnostic biomarkers for given diseases. I'll submit a set of publication abstracts discussing given disease and your task is to find in the abstracts any potential new biomarkers which are not yet listed in the appropriate databases. Each abstract is preceded by identifier - its PubMed id called for short PMID. \n\nReturn the set of biomarkers listed one per row, each marker followed by the | and PMID of the respective abstract if was mentioned in.\n\nExample: \nInput: 36418457\t[Amyotrophic lateral sclerosis (ALS) is a genetically and phenotypically heterogeneous disease results in the loss of motor neurons. Mounting information points to involvement of other systems including cognitive impairment. However, neither the valid biomarker for diagnosis nor effective therapeutic intervention is available for ALS. The present study is aimed at identifying potentially genetic biomarker that improves the diagnosis and treatment of ALS patients based on the data of the Gene Expression Omnibus. We retrieved datasets and conducted a weighted gene co-expression network analysis (WGCNA) to identify ALS-related co-expression genes. Functional enrichment analysis was performed to determine the features and pathways of the main modules. We then constructed an ALS-related model using the least absolute shrinkage and selection operator (LASSO) regression analysis and verified the model by the receiver operating characteristic (ROC) curve. Besides we screened the non-preserved gene modules in FTD and ALS-mimic disorders to distinct ALS-related genes from disorders with overlapping genes and features. Altogether, 4198 common genes between datasets with the most variation were analyzed and 16 distinct modules were identified through WGCNA. Blue module had the most correlation with ALS and functionally enriched in pathways of neurodegeneration-multiple diseases', 'amyotrophic lateral sclerosis', and 'endocytosis' KEGG terms. Further, some of other modules related to ALS were enriched in 'autophagy' and 'amyotrophic lateral sclerosis'. The 30 top of hub genes were recruited to a LASSO regression model and 5 genes (BCLAF1, GNA13, ARL6IP5, ARGLU1, and YPEL5) were identified as potentially diagnostic ALS biomarkers with validating of the ROC curve and AUC value.]\n\nYour response: BCLAF1|36418457\nGNA13|36418457\nARL6IP5|36418457\nARGLU1|36418457\nYPEL5|36418457",userInstruction:null},assistantExtractionMethods:[],maxNumberOfTriplesPerCall:null}]},188:function(e,t,s){"use strict";s.r(t),s.d(t,"chatsListMapper",(function(){return o})),s.d(t,"chatModelMapper",(function(){return d}));var a=s(116),n=s(17),r=s(117),i=s(79);const o=e=>{if(!e)return new a.ChatsListModel;const t=e.map(e=>d(e));return new a.ChatsListModel(t)},d=e=>{if(!e)return;const t=Object(n.md5HashGenerator)();return new a.ChatModel({id:e.id,name:e.name,timestamp:e.timestamp,chatHistory:e.messages&&e.messages.length?Object(r.chatItemsModelMapper)(e.messages.reverse()):new i.ChatItemsListModel},t)}},189:function(e,t,s){"use strict";s.r(t);var a=s(141);angular.module("graphdb.framework.rest.ttyg.service",[]).factory("TTYGRestService",n),n.$inject=["$http"];function n(e){new a.TtygRestServiceFakeBackend;return{getConversation:t=>e.get("rest/chat/conversations/"+t),renameConversation:(t,s)=>e.put("rest/chat/conversations/"+t,s),exportConversation:t=>e.post("rest/chat/conversations/export/"+t),askQuestion:t=>e.post("rest/chat/conversations",t),getConversations:()=>e.get("rest/chat/conversations"),deleteConversation:t=>e.delete("rest/chat/conversations/"+t),createConversation:(t={})=>e.post("rest/chat/conversations",t),getAgents:()=>e.get("rest/chat/agents"),getAgent:t=>e.get("rest/chat/agents/"+t),createAgent:t=>e.post("rest/chat/agents",t),editAgent:t=>e.put("rest/chat/agents",t),deleteAgent:t=>e.delete("rest/chat/agents/"+t)}}},273:function(e,t,s){"use strict";s.r(t);var a=s(188),n=(s(189),s(117)),r=s(190);function i(e){return{getConversation:t=>e.getConversation(t).then(e=>Object(a.chatModelMapper)(e.data)),renameConversation:t=>e.renameConversation(t.id,t.toRenameRequestPayload()).then(e=>Object(a.chatModelMapper)(e.data)),exportConversation:t=>e.exportConversation(t),askQuestion:t=>e.askQuestion(t.toAskRequestPayload()).then(e=>Object(n.chatMessageModelMapper)(e.data)),getConversations:(t,s)=>e.getConversations().then(e=>Object(a.chatsListMapper)(e.data)),deleteConversation:t=>e.deleteConversation(t),createConversation:t=>e.createConversation(t.toCreateChatRequestPayload()).then(e=>e.data.conversationId),getAgents:()=>e.getAgents().then(e=>Object(r.agentListMapper)(e.data)),getAgent:t=>e.getAgent(t).then(e=>Object(r.agentModelMapper)(e.data)),createAgent:t=>e.createAgent(t).then(e=>Object(r.agentModelMapper)(e.data)),editAgent:t=>e.editAgent(t).then(e=>Object(r.agentModelMapper)(e.data)),deleteAgent:t=>e.deleteAgent(t)}}angular.module("graphdb.framework.core.services.ttyg-service",["graphdb.framework.rest.ttyg.service"]).factory("TTYGService",i),i.$inject=["TTYGRestService"]},72:function(e,t,s){"use strict";s.r(t),s.d(t,"ChatMessageModel",(function(){return a})),s.d(t,"CHAT_MESSAGE_ROLE",(function(){return n}));class a{constructor(e){this._id=e.id,this._role=e.role,this._message=e.message,this._timestamp=e.timestamp}get id(){return this._id}set id(e){this._id=e}get role(){return this._role}set role(e){this._role=e}get message(){return this._message}set message(e){this._message=e}get timestamp(){return this._timestamp}set timestamp(e){this._timestamp=e}}const n={USER:"user",ASSISTANT:"assistant"}},79:function(e,t,s){"use strict";s.r(t),s.d(t,"ChatItemModel",(function(){return n})),s.d(t,"ChatItemsListModel",(function(){return r}));var a=s(72);class n{constructor(e,t,s,a){this._chatId=e,this._agentId=t,this._question=s,this._answer=a}get chatId(){return this._chatId}set chatId(e){this._chatId=e}get agentId(){return this._agentId}set agentId(e){this._agentId=e}get question(){return this._question}set question(e){this._question=e}get answer(){return this._answer}set answer(e){this._answer=e}setQuestionMessage(e){this._question||(this._question=new a.ChatMessageModel({role:a.CHAT_MESSAGE_ROLE.USER})),this._question.message=e}getQuestionMessage(){return this._question.message}toCreateChatRequestPayload(){return{agentId:this._agentId,question:this._question.message}}toAskRequestPayload(){return{conversationId:this._chatId,agentId:this._agentId,question:this._question.message}}}class r{constructor(e=[]){this._items=e}isEmpty(){return 0===this._items.length}appendItem(e){this._items.push(e)}get items(){return this._items}set items(e){this._items=e||[]}}}}]);
1
+ (window.webpackJsonp=window.webpackJsonp||[]).push([[6,43,68,69,70,97,98,248],{116:function(e,t,s){"use strict";s.r(t),s.d(t,"ChatModel",(function(){return n})),s.d(t,"ChatByDayModel",(function(){return r})),s.d(t,"ChatsListModel",(function(){return i}));var a=s(79);class n{constructor(e,t){this.hashGenerator=t,this._id=e.id,this._name=e.name,this._timestamp=e.timestamp,this._chatHistory=e.chatHistory,this.hash=this.generateHash()}generateHash(){return this.hashGenerator(JSON.stringify(this))}get id(){return this._id}set id(e){this._id=e}get name(){return this._name}set name(e){this.generateHash(),this._name=e}get timestamp(){return this._timestamp}set timestamp(e){this._timestamp=e}get chatHistory(){return this._chatHistory}set chatHistory(e){this._chatHistory=e||new a.ChatItemsListModel}toRenameRequestPayload(){return{name:this._name}}}class r{constructor(e){this._day=e.day,this._timestamp=e.timestamp,this._chats=e.chats}get day(){return this._day}set day(e){this._day=e}get timestamp(){return this._timestamp}set timestamp(e){this._timestamp=e}get chats(){return this._chats}set chats(e){this._chats=e}}class i{constructor(e){this._chats=e||[],this._chatsByDay=[],this._chats.forEach(e=>{const t=new Date(1e3*e.timestamp).toDateString(),s=this._chatsByDay.find(e=>e.day===t);s?s.chats.push(e):this._chatsByDay.push(new r({day:t,timestamp:1e3*e.timestamp,chats:[e]}))})}isEmpty(){return 0===this._chats.length}getFirstChat(){return this._chats[0]}deselectAll(){this._chats.forEach(e=>{e.selected=!1})}selectChat(e){this.deselectAll(),this._chats.forEach(t=>{t.selected=t.id===e.id})}getChat(e){return this._chats.find(t=>t.id===e)}renameChat(e){const t=this._chats.find(t=>t.id===e.id);t&&(t.name=e.name)}get chats(){return this._chats}set chats(e){this._chats=e}get chatsByDay(){return this._chatsByDay}set chatsByDay(e){this._chatsByDay=e}}},117:function(e,t,s){"use strict";s.r(t),s.d(t,"chatMessageModelListMapper",(function(){return r})),s.d(t,"chatItemsModelMapper",(function(){return i})),s.d(t,"chatMessageModelMapper",(function(){return o}));var a=s(72),n=s(79);const r=e=>e?e.map(e=>o(e)):[],i=(e=[])=>{const t=[];let s;return e.forEach(e=>{if(a.CHAT_MESSAGE_ROLE.USER===e.role){s&&t.push(s);const a=e.conversationId,r=e.agentId;s=new n.ChatItemModel(a,r,e)}else s.answer=e}),s&&t.push(s),new n.ChatItemsListModel(t)},o=e=>{if(e)return new a.ChatMessageModel({id:e.id,role:e.role,message:e.message,timestamp:e.timestamp,data:e})}},141:function(e,t,s){"use strict";s.r(t),s.d(t,"TtygRestServiceFakeBackend",(function(){return r}));var a=s(30),n=s(72);class r{constructor(){this.conversations=[...i]}getConversations(){return new Promise(e=>{e({data:Object(a.cloneDeep)(this.conversations)})})}getConversation(e){return Promise.resolve({data:Object(a.cloneDeep)(this.conversations.find(t=>t.id===e))})}renameConversation(e,t){const s=this.conversations.find(t=>t.id===e);return s&&(s.name=t.name),Promise.resolve({data:Object(a.cloneDeep)(s)})}exportConversation(e){return console.log("Exporting conversation with id: ",e),Promise.resolve()}askQuestion(e){const t={id:"msg_Bn07kVDCYT1qmgu1G7Zw0KNe",conversationId:e.conversationId,agentId:null,message:`Reply to '${e.question}'`,role:n.CHAT_MESSAGE_ROLE.USER,timestamp:Date.now()},s={id:"msg_Bn07kVDCYT1qmgu1G7Zw0KNe",conversationId:e.conversationId,agentId:null,message:`Reply to '${e.question}'`,role:n.CHAT_MESSAGE_ROLE.ASSISTANT,timestamp:Date.now()},a=this.conversations.find(t=>t.id===e.conversationId);return a&&(a.messages.push(s),a.messages.push(t)),Promise.resolve({data:s})}deleteConversation(e){return this.conversations=this.conversations.filter(t=>t.id!==e),Promise.resolve()}createConversation(e){const t={id:"thread_"+this.conversations.length,name:"Thread "+this.conversations.length,timestamp:Date.now(),messages:[]};this.conversations.unshift(t);const s=Object(a.cloneDeep)(e);return s.conversationId=t.id,this.askQuestion(s).then(()=>({data:{id:"msg_Bn07kVDCYT1qmgu1G7Zw0KNe",conversationId:t.id,agentId:e.agentId}}))}getAgents(){return Promise.resolve({data:[...o]})}getAgent(e){return Promise.resolve({data:Object(a.cloneDeep)(o.find(t=>t.id===e))})}createAgent(e){return o.push(e),Promise.resolve({data:e})}editAgent(e){return o=o.map(t=>t.id===e.id?e:t),Promise.resolve({data:e})}deleteAgent(e){return o=o.filter(t=>t.id!==e),Promise.resolve()}simulateHttpError(){return Promise.reject({status:500,message:"Internal Server Error"})}}const i=[{id:"thread_jdQBvbkaU6JPoO48oFbC54dA",name:"Very long chat name which does not fit in the sidebar",timestamp:1725235200,messages:[]},{id:"thread_jdQBvbkaU6JPoO48oQaL76dB",name:"Test chat 2",timestamp:1725238800,messages:[]},{id:"thread_jdQBvbkaU6JPoO48oQaL76dC",name:"Test chat 3",timestamp:1725242400,messages:[]},{id:"thread_jdQBvbkaU6JPoO48oFbC54dD",name:"Test chat 4",timestamp:1697331600,messages:[]}];let o=[{id:"asst_gAPcrHQQ9ZIxD5eXWH2BNFfo",name:"agent-1",model:"gpt-4o",temperature:0,topP:0,seed:null,repositoryId:"starwars",instructions:{systemInstruction:"\n\n",userInstruction:""},assistantExtractionMethods:[{ftsMethod:"fts_search"}],maxNumberOfTriplesPerCall:null},{id:"asst_qMyCpCBmqxV9I2B8UoMfFzc5",name:"agent-2",model:"gpt-4o",temperature:0,topP:0,seed:null,repositoryId:null,instructions:{systemInstruction:"string\n\nstring",userInstruction:"string"},assistantExtractionMethods:[{ftsMethod:"fts_search"}],maxNumberOfTriplesPerCall:null},{id:"asst_Cr0RxobrY07WpOvvyQilEWMI",name:"Databricks-general-unbiased",model:"gpt-4o-2024-08-06",temperature:1,topP:1,seed:null,repositoryId:"starwars",instructions:{systemInstruction:"You are helpful assistant in discovering information regarding diagnostic biomarkers.",userInstruction:null},assistantExtractionMethods:[],maxNumberOfTriplesPerCall:null},{id:"asst_5GxNYTdaOh7Tl6lLl6Pya2aH",name:"Databricks-biomarkers",model:"gpt-3.5-turbo-0125",temperature:1,topP:1,seed:null,repositoryId:"biomarkers",instructions:{systemInstruction:"You're a helpful assistant in discovering new diagnostic biomarkers for given diseases. I'll submit a set of publication abstracts discussing given disease and your task is to find in the abstracts any potential new biomarkers which are not yet listed in the appropriate databases. Each abstract is preceded by identifier - its PubMed id called for short PMID. \n\nReturn the set of biomarkers listed one per row, each marker followed by the | and PMID of the respective abstract if was mentioned in.\n\nExample: \nInput: 36418457\t[Amyotrophic lateral sclerosis (ALS) is a genetically and phenotypically heterogeneous disease results in the loss of motor neurons. Mounting information points to involvement of other systems including cognitive impairment. However, neither the valid biomarker for diagnosis nor effective therapeutic intervention is available for ALS. The present study is aimed at identifying potentially genetic biomarker that improves the diagnosis and treatment of ALS patients based on the data of the Gene Expression Omnibus. We retrieved datasets and conducted a weighted gene co-expression network analysis (WGCNA) to identify ALS-related co-expression genes. Functional enrichment analysis was performed to determine the features and pathways of the main modules. We then constructed an ALS-related model using the least absolute shrinkage and selection operator (LASSO) regression analysis and verified the model by the receiver operating characteristic (ROC) curve. Besides we screened the non-preserved gene modules in FTD and ALS-mimic disorders to distinct ALS-related genes from disorders with overlapping genes and features. Altogether, 4198 common genes between datasets with the most variation were analyzed and 16 distinct modules were identified through WGCNA. Blue module had the most correlation with ALS and functionally enriched in pathways of neurodegeneration-multiple diseases', 'amyotrophic lateral sclerosis', and 'endocytosis' KEGG terms. Further, some of other modules related to ALS were enriched in 'autophagy' and 'amyotrophic lateral sclerosis'. The 30 top of hub genes were recruited to a LASSO regression model and 5 genes (BCLAF1, GNA13, ARL6IP5, ARGLU1, and YPEL5) were identified as potentially diagnostic ALS biomarkers with validating of the ROC curve and AUC value.]\n\nYour response: BCLAF1|36418457\nGNA13|36418457\nARL6IP5|36418457\nARGLU1|36418457\nYPEL5|36418457",userInstruction:null},assistantExtractionMethods:[],maxNumberOfTriplesPerCall:null}]},188:function(e,t,s){"use strict";s.r(t),s.d(t,"chatsListMapper",(function(){return o})),s.d(t,"chatModelMapper",(function(){return d}));var a=s(116),n=s(17),r=s(117),i=s(79);const o=e=>{if(!e)return new a.ChatsListModel;const t=e.map(e=>d(e));return new a.ChatsListModel(t)},d=e=>{if(!e)return;const t=Object(n.md5HashGenerator)();return new a.ChatModel({id:e.id,name:e.name,timestamp:e.timestamp,chatHistory:e.messages&&e.messages.length?Object(r.chatItemsModelMapper)(e.messages.reverse()):new i.ChatItemsListModel},t)}},189:function(e,t,s){"use strict";s.r(t);var a=s(141);angular.module("graphdb.framework.rest.ttyg.service",[]).factory("TTYGRestService",n),n.$inject=["$http"];function n(e){new a.TtygRestServiceFakeBackend;return{getConversation:t=>e.get("rest/chat/conversations/"+t),renameConversation:(t,s)=>e.put("rest/chat/conversations/"+t,s),exportConversation:t=>e.get("rest/chat/conversations/export/"+t,{responseType:"blob"}),askQuestion:t=>e.post("rest/chat/conversations",t),getConversations:()=>e.get("rest/chat/conversations"),deleteConversation:t=>e.delete("rest/chat/conversations/"+t),createConversation:(t={})=>e.post("rest/chat/conversations",t),getAgents:()=>e.get("rest/chat/agents"),getAgent:t=>e.get("rest/chat/agents/"+t),createAgent:t=>e.post("rest/chat/agents",t),editAgent:t=>e.put("rest/chat/agents",t),deleteAgent:t=>e.delete("rest/chat/agents/"+t)}}},273:function(e,t,s){"use strict";s.r(t);var a=s(188),n=(s(189),s(117)),r=s(190);function i(e){return{getConversation:t=>e.getConversation(t).then(e=>Object(a.chatModelMapper)(e.data)),renameConversation:t=>e.renameConversation(t.id,t.toRenameRequestPayload()).then(e=>Object(a.chatModelMapper)(e.data)),exportConversation:t=>e.exportConversation(t).then((function(e){const t=e.data,s=e.headers()["content-disposition"];let a="chat-export";return s&&(a=s.split("filename=")[1],a=a.substring(0,a.length)),{data:t,filename:a}})),askQuestion:t=>e.askQuestion(t.toAskRequestPayload()).then(e=>Object(n.chatMessageModelMapper)(e.data)),getConversations:(t,s)=>e.getConversations().then(e=>Object(a.chatsListMapper)(e.data)),deleteConversation:t=>e.deleteConversation(t),createConversation:t=>e.createConversation(t.toCreateChatRequestPayload()).then(e=>e.data.conversationId),getAgents:()=>e.getAgents().then(e=>Object(r.agentListMapper)(e.data)),getAgent:t=>e.getAgent(t).then(e=>Object(r.agentModelMapper)(e.data)),createAgent:t=>e.createAgent(t).then(e=>Object(r.agentModelMapper)(e.data)),editAgent:t=>e.editAgent(t).then(e=>Object(r.agentModelMapper)(e.data)),deleteAgent:t=>e.deleteAgent(t)}}angular.module("graphdb.framework.core.services.ttyg-service",["graphdb.framework.rest.ttyg.service"]).factory("TTYGService",i),i.$inject=["TTYGRestService"]},72:function(e,t,s){"use strict";s.r(t),s.d(t,"ChatMessageModel",(function(){return a})),s.d(t,"CHAT_MESSAGE_ROLE",(function(){return n}));class a{constructor(e){this._id=e.id,this._role=e.role,this._message=e.message,this._timestamp=e.timestamp}get id(){return this._id}set id(e){this._id=e}get role(){return this._role}set role(e){this._role=e}get message(){return this._message}set message(e){this._message=e}get timestamp(){return this._timestamp}set timestamp(e){this._timestamp=e}}const n={USER:"user",ASSISTANT:"assistant"}},79:function(e,t,s){"use strict";s.r(t),s.d(t,"ChatItemModel",(function(){return n})),s.d(t,"ChatItemsListModel",(function(){return r}));var a=s(72);class n{constructor(e,t,s,a){this._chatId=e,this._agentId=t,this._question=s,this._answer=a}get chatId(){return this._chatId}set chatId(e){this._chatId=e}get agentId(){return this._agentId}set agentId(e){this._agentId=e}get question(){return this._question}set question(e){this._question=e}get answer(){return this._answer}set answer(e){this._answer=e}setQuestionMessage(e){this._question||(this._question=new a.ChatMessageModel({role:a.CHAT_MESSAGE_ROLE.USER})),this._question.message=e}getQuestionMessage(){return this._question.message}toCreateChatRequestPayload(){return{agentId:this._agentId,question:this._question.message}}toAskRequestPayload(){return{conversationId:this._chatId,agentId:this._agentId,question:this._question.message}}}class r{constructor(e=[]){this._items=e}isEmpty(){return 0===this._items.length}appendItem(e){this._items.push(e)}get items(){return this._items}set items(e){this._items=e||[]}}}}]);
@@ -1 +1 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([[61,167,169],{226:function(r,i){function e(r){return{restrict:"A",require:"ngModel",link:function(i,e,t,o){o.$parsers.unshift((function(i){const e=r.isValidIri(i,i.toString());return o.$setValidity("validateUri",e),i}))}}}angular.module("graphdb.framework.import.directives.validate-uri",[]).directive("validateUri",e),e.$inject=["UriUtils"]},227:function(r,i){function e(){return{link:function(r,i,e){r.$watch("file.status",(function(){"IMPORTING"!==r.file.status&&"UPLOADING"!==r.file.status||!$(i).has("object").length>0&&$(i).append('<object width="'+e.size+'" height="'+e.size+'" data="js/angular/templates/loader/ot-loader.svg?v=2.8.0-TR4">{{\'common.loading\' | translate}}</object>')}))}}}angular.module("graphdb.framework.import.directives.import-progress-indicator",[]).directive("ImportProgressIndicator",e),e.$inject=[]},311:function(r,i,e){"use strict";e.r(i);e(7),e(31),e(214),e(226),e(227),e(275),e(32),e(65),e(66);angular.module("graphdb.framework.impex.import",["toastr","ngRoute","ngFileUpload","ui.bootstrap","graphdb.framework.impex.import.directives","graphdb.framework.impex.import.controllers","graphdb.framework.core.services.repositories","graphdb.framework.import.directives.validate-uri","graphdb.framework.import.directives.import-progress-indicator","graphdb.framework.import.directives.import-resource-tree"])}}]);
1
+ (window.webpackJsonp=window.webpackJsonp||[]).push([[61,167,169],{226:function(r,i){function e(r){return{restrict:"A",require:"ngModel",link:function(i,e,t,o){o.$parsers.unshift((function(i){const e=r.isValidIri(i,i.toString());return o.$setValidity("validateUri",e),i}))}}}angular.module("graphdb.framework.import.directives.validate-uri",[]).directive("validateUri",e),e.$inject=["UriUtils"]},227:function(r,i){function e(){return{link:function(r,i,e){r.$watch("file.status",(function(){"IMPORTING"!==r.file.status&&"UPLOADING"!==r.file.status||!$(i).has("object").length>0&&$(i).append('<object width="'+e.size+'" height="'+e.size+'" data="js/angular/templates/loader/ot-loader.svg?v=2.8.0-TR5">{{\'common.loading\' | translate}}</object>')}))}}}angular.module("graphdb.framework.import.directives.import-progress-indicator",[]).directive("ImportProgressIndicator",e),e.$inject=[]},311:function(r,i,e){"use strict";e.r(i);e(7),e(31),e(214),e(226),e(227),e(275),e(32),e(65),e(66);angular.module("graphdb.framework.impex.import",["toastr","ngRoute","ngFileUpload","ui.bootstrap","graphdb.framework.impex.import.directives","graphdb.framework.impex.import.controllers","graphdb.framework.core.services.repositories","graphdb.framework.import.directives.validate-uri","graphdb.framework.import.directives.import-progress-indicator","graphdb.framework.import.directives.import-resource-tree"])}}]);
@@ -1 +1 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([[70,98,248],{141:function(e,t,s){"use strict";s.r(t),s.d(t,"TtygRestServiceFakeBackend",(function(){return a}));var n=s(30),r=s(72);class a{constructor(){this.conversations=[...i]}getConversations(){return new Promise(e=>{e({data:Object(n.cloneDeep)(this.conversations)})})}getConversation(e){return Promise.resolve({data:Object(n.cloneDeep)(this.conversations.find(t=>t.id===e))})}renameConversation(e,t){const s=this.conversations.find(t=>t.id===e);return s&&(s.name=t.name),Promise.resolve({data:Object(n.cloneDeep)(s)})}exportConversation(e){return console.log("Exporting conversation with id: ",e),Promise.resolve()}askQuestion(e){const t={id:"msg_Bn07kVDCYT1qmgu1G7Zw0KNe",conversationId:e.conversationId,agentId:null,message:`Reply to '${e.question}'`,role:r.CHAT_MESSAGE_ROLE.USER,timestamp:Date.now()},s={id:"msg_Bn07kVDCYT1qmgu1G7Zw0KNe",conversationId:e.conversationId,agentId:null,message:`Reply to '${e.question}'`,role:r.CHAT_MESSAGE_ROLE.ASSISTANT,timestamp:Date.now()},n=this.conversations.find(t=>t.id===e.conversationId);return n&&(n.messages.push(s),n.messages.push(t)),Promise.resolve({data:s})}deleteConversation(e){return this.conversations=this.conversations.filter(t=>t.id!==e),Promise.resolve()}createConversation(e){const t={id:"thread_"+this.conversations.length,name:"Thread "+this.conversations.length,timestamp:Date.now(),messages:[]};this.conversations.unshift(t);const s=Object(n.cloneDeep)(e);return s.conversationId=t.id,this.askQuestion(s).then(()=>({data:{id:"msg_Bn07kVDCYT1qmgu1G7Zw0KNe",conversationId:t.id,agentId:e.agentId}}))}getAgents(){return Promise.resolve({data:[...o]})}getAgent(e){return Promise.resolve({data:Object(n.cloneDeep)(o.find(t=>t.id===e))})}createAgent(e){return o.push(e),Promise.resolve({data:e})}editAgent(e){return o=o.map(t=>t.id===e.id?e:t),Promise.resolve({data:e})}deleteAgent(e){return o=o.filter(t=>t.id!==e),Promise.resolve()}simulateHttpError(){return Promise.reject({status:500,message:"Internal Server Error"})}}const i=[{id:"thread_jdQBvbkaU6JPoO48oFbC54dA",name:"Very long chat name which does not fit in the sidebar",timestamp:1725235200,messages:[]},{id:"thread_jdQBvbkaU6JPoO48oQaL76dB",name:"Test chat 2",timestamp:1725238800,messages:[]},{id:"thread_jdQBvbkaU6JPoO48oQaL76dC",name:"Test chat 3",timestamp:1725242400,messages:[]},{id:"thread_jdQBvbkaU6JPoO48oFbC54dD",name:"Test chat 4",timestamp:1697331600,messages:[]}];let o=[{id:"asst_gAPcrHQQ9ZIxD5eXWH2BNFfo",name:"agent-1",model:"gpt-4o",temperature:0,topP:0,seed:null,repositoryId:"starwars",instructions:{systemInstruction:"\n\n",userInstruction:""},assistantExtractionMethods:[{ftsMethod:"fts_search"}],maxNumberOfTriplesPerCall:null},{id:"asst_qMyCpCBmqxV9I2B8UoMfFzc5",name:"agent-2",model:"gpt-4o",temperature:0,topP:0,seed:null,repositoryId:null,instructions:{systemInstruction:"string\n\nstring",userInstruction:"string"},assistantExtractionMethods:[{ftsMethod:"fts_search"}],maxNumberOfTriplesPerCall:null},{id:"asst_Cr0RxobrY07WpOvvyQilEWMI",name:"Databricks-general-unbiased",model:"gpt-4o-2024-08-06",temperature:1,topP:1,seed:null,repositoryId:"starwars",instructions:{systemInstruction:"You are helpful assistant in discovering information regarding diagnostic biomarkers.",userInstruction:null},assistantExtractionMethods:[],maxNumberOfTriplesPerCall:null},{id:"asst_5GxNYTdaOh7Tl6lLl6Pya2aH",name:"Databricks-biomarkers",model:"gpt-3.5-turbo-0125",temperature:1,topP:1,seed:null,repositoryId:"biomarkers",instructions:{systemInstruction:"You're a helpful assistant in discovering new diagnostic biomarkers for given diseases. I'll submit a set of publication abstracts discussing given disease and your task is to find in the abstracts any potential new biomarkers which are not yet listed in the appropriate databases. Each abstract is preceded by identifier - its PubMed id called for short PMID. \n\nReturn the set of biomarkers listed one per row, each marker followed by the | and PMID of the respective abstract if was mentioned in.\n\nExample: \nInput: 36418457\t[Amyotrophic lateral sclerosis (ALS) is a genetically and phenotypically heterogeneous disease results in the loss of motor neurons. Mounting information points to involvement of other systems including cognitive impairment. However, neither the valid biomarker for diagnosis nor effective therapeutic intervention is available for ALS. The present study is aimed at identifying potentially genetic biomarker that improves the diagnosis and treatment of ALS patients based on the data of the Gene Expression Omnibus. We retrieved datasets and conducted a weighted gene co-expression network analysis (WGCNA) to identify ALS-related co-expression genes. Functional enrichment analysis was performed to determine the features and pathways of the main modules. We then constructed an ALS-related model using the least absolute shrinkage and selection operator (LASSO) regression analysis and verified the model by the receiver operating characteristic (ROC) curve. Besides we screened the non-preserved gene modules in FTD and ALS-mimic disorders to distinct ALS-related genes from disorders with overlapping genes and features. Altogether, 4198 common genes between datasets with the most variation were analyzed and 16 distinct modules were identified through WGCNA. Blue module had the most correlation with ALS and functionally enriched in pathways of neurodegeneration-multiple diseases', 'amyotrophic lateral sclerosis', and 'endocytosis' KEGG terms. Further, some of other modules related to ALS were enriched in 'autophagy' and 'amyotrophic lateral sclerosis'. The 30 top of hub genes were recruited to a LASSO regression model and 5 genes (BCLAF1, GNA13, ARL6IP5, ARGLU1, and YPEL5) were identified as potentially diagnostic ALS biomarkers with validating of the ROC curve and AUC value.]\n\nYour response: BCLAF1|36418457\nGNA13|36418457\nARL6IP5|36418457\nARGLU1|36418457\nYPEL5|36418457",userInstruction:null},assistantExtractionMethods:[],maxNumberOfTriplesPerCall:null}]},189:function(e,t,s){"use strict";s.r(t);var n=s(141);angular.module("graphdb.framework.rest.ttyg.service",[]).factory("TTYGRestService",r),r.$inject=["$http"];function r(e){new n.TtygRestServiceFakeBackend;return{getConversation:t=>e.get("rest/chat/conversations/"+t),renameConversation:(t,s)=>e.put("rest/chat/conversations/"+t,s),exportConversation:t=>e.post("rest/chat/conversations/export/"+t),askQuestion:t=>e.post("rest/chat/conversations",t),getConversations:()=>e.get("rest/chat/conversations"),deleteConversation:t=>e.delete("rest/chat/conversations/"+t),createConversation:(t={})=>e.post("rest/chat/conversations",t),getAgents:()=>e.get("rest/chat/agents"),getAgent:t=>e.get("rest/chat/agents/"+t),createAgent:t=>e.post("rest/chat/agents",t),editAgent:t=>e.put("rest/chat/agents",t),deleteAgent:t=>e.delete("rest/chat/agents/"+t)}}},72:function(e,t,s){"use strict";s.r(t),s.d(t,"ChatMessageModel",(function(){return n})),s.d(t,"CHAT_MESSAGE_ROLE",(function(){return r}));class n{constructor(e){this._id=e.id,this._role=e.role,this._message=e.message,this._timestamp=e.timestamp}get id(){return this._id}set id(e){this._id=e}get role(){return this._role}set role(e){this._role=e}get message(){return this._message}set message(e){this._message=e}get timestamp(){return this._timestamp}set timestamp(e){this._timestamp=e}}const r={USER:"user",ASSISTANT:"assistant"}}}]);
1
+ (window.webpackJsonp=window.webpackJsonp||[]).push([[70,98,248],{141:function(e,t,s){"use strict";s.r(t),s.d(t,"TtygRestServiceFakeBackend",(function(){return a}));var n=s(30),r=s(72);class a{constructor(){this.conversations=[...i]}getConversations(){return new Promise(e=>{e({data:Object(n.cloneDeep)(this.conversations)})})}getConversation(e){return Promise.resolve({data:Object(n.cloneDeep)(this.conversations.find(t=>t.id===e))})}renameConversation(e,t){const s=this.conversations.find(t=>t.id===e);return s&&(s.name=t.name),Promise.resolve({data:Object(n.cloneDeep)(s)})}exportConversation(e){return console.log("Exporting conversation with id: ",e),Promise.resolve()}askQuestion(e){const t={id:"msg_Bn07kVDCYT1qmgu1G7Zw0KNe",conversationId:e.conversationId,agentId:null,message:`Reply to '${e.question}'`,role:r.CHAT_MESSAGE_ROLE.USER,timestamp:Date.now()},s={id:"msg_Bn07kVDCYT1qmgu1G7Zw0KNe",conversationId:e.conversationId,agentId:null,message:`Reply to '${e.question}'`,role:r.CHAT_MESSAGE_ROLE.ASSISTANT,timestamp:Date.now()},n=this.conversations.find(t=>t.id===e.conversationId);return n&&(n.messages.push(s),n.messages.push(t)),Promise.resolve({data:s})}deleteConversation(e){return this.conversations=this.conversations.filter(t=>t.id!==e),Promise.resolve()}createConversation(e){const t={id:"thread_"+this.conversations.length,name:"Thread "+this.conversations.length,timestamp:Date.now(),messages:[]};this.conversations.unshift(t);const s=Object(n.cloneDeep)(e);return s.conversationId=t.id,this.askQuestion(s).then(()=>({data:{id:"msg_Bn07kVDCYT1qmgu1G7Zw0KNe",conversationId:t.id,agentId:e.agentId}}))}getAgents(){return Promise.resolve({data:[...o]})}getAgent(e){return Promise.resolve({data:Object(n.cloneDeep)(o.find(t=>t.id===e))})}createAgent(e){return o.push(e),Promise.resolve({data:e})}editAgent(e){return o=o.map(t=>t.id===e.id?e:t),Promise.resolve({data:e})}deleteAgent(e){return o=o.filter(t=>t.id!==e),Promise.resolve()}simulateHttpError(){return Promise.reject({status:500,message:"Internal Server Error"})}}const i=[{id:"thread_jdQBvbkaU6JPoO48oFbC54dA",name:"Very long chat name which does not fit in the sidebar",timestamp:1725235200,messages:[]},{id:"thread_jdQBvbkaU6JPoO48oQaL76dB",name:"Test chat 2",timestamp:1725238800,messages:[]},{id:"thread_jdQBvbkaU6JPoO48oQaL76dC",name:"Test chat 3",timestamp:1725242400,messages:[]},{id:"thread_jdQBvbkaU6JPoO48oFbC54dD",name:"Test chat 4",timestamp:1697331600,messages:[]}];let o=[{id:"asst_gAPcrHQQ9ZIxD5eXWH2BNFfo",name:"agent-1",model:"gpt-4o",temperature:0,topP:0,seed:null,repositoryId:"starwars",instructions:{systemInstruction:"\n\n",userInstruction:""},assistantExtractionMethods:[{ftsMethod:"fts_search"}],maxNumberOfTriplesPerCall:null},{id:"asst_qMyCpCBmqxV9I2B8UoMfFzc5",name:"agent-2",model:"gpt-4o",temperature:0,topP:0,seed:null,repositoryId:null,instructions:{systemInstruction:"string\n\nstring",userInstruction:"string"},assistantExtractionMethods:[{ftsMethod:"fts_search"}],maxNumberOfTriplesPerCall:null},{id:"asst_Cr0RxobrY07WpOvvyQilEWMI",name:"Databricks-general-unbiased",model:"gpt-4o-2024-08-06",temperature:1,topP:1,seed:null,repositoryId:"starwars",instructions:{systemInstruction:"You are helpful assistant in discovering information regarding diagnostic biomarkers.",userInstruction:null},assistantExtractionMethods:[],maxNumberOfTriplesPerCall:null},{id:"asst_5GxNYTdaOh7Tl6lLl6Pya2aH",name:"Databricks-biomarkers",model:"gpt-3.5-turbo-0125",temperature:1,topP:1,seed:null,repositoryId:"biomarkers",instructions:{systemInstruction:"You're a helpful assistant in discovering new diagnostic biomarkers for given diseases. I'll submit a set of publication abstracts discussing given disease and your task is to find in the abstracts any potential new biomarkers which are not yet listed in the appropriate databases. Each abstract is preceded by identifier - its PubMed id called for short PMID. \n\nReturn the set of biomarkers listed one per row, each marker followed by the | and PMID of the respective abstract if was mentioned in.\n\nExample: \nInput: 36418457\t[Amyotrophic lateral sclerosis (ALS) is a genetically and phenotypically heterogeneous disease results in the loss of motor neurons. Mounting information points to involvement of other systems including cognitive impairment. However, neither the valid biomarker for diagnosis nor effective therapeutic intervention is available for ALS. The present study is aimed at identifying potentially genetic biomarker that improves the diagnosis and treatment of ALS patients based on the data of the Gene Expression Omnibus. We retrieved datasets and conducted a weighted gene co-expression network analysis (WGCNA) to identify ALS-related co-expression genes. Functional enrichment analysis was performed to determine the features and pathways of the main modules. We then constructed an ALS-related model using the least absolute shrinkage and selection operator (LASSO) regression analysis and verified the model by the receiver operating characteristic (ROC) curve. Besides we screened the non-preserved gene modules in FTD and ALS-mimic disorders to distinct ALS-related genes from disorders with overlapping genes and features. Altogether, 4198 common genes between datasets with the most variation were analyzed and 16 distinct modules were identified through WGCNA. Blue module had the most correlation with ALS and functionally enriched in pathways of neurodegeneration-multiple diseases', 'amyotrophic lateral sclerosis', and 'endocytosis' KEGG terms. Further, some of other modules related to ALS were enriched in 'autophagy' and 'amyotrophic lateral sclerosis'. The 30 top of hub genes were recruited to a LASSO regression model and 5 genes (BCLAF1, GNA13, ARL6IP5, ARGLU1, and YPEL5) were identified as potentially diagnostic ALS biomarkers with validating of the ROC curve and AUC value.]\n\nYour response: BCLAF1|36418457\nGNA13|36418457\nARL6IP5|36418457\nARGLU1|36418457\nYPEL5|36418457",userInstruction:null},assistantExtractionMethods:[],maxNumberOfTriplesPerCall:null}]},189:function(e,t,s){"use strict";s.r(t);var n=s(141);angular.module("graphdb.framework.rest.ttyg.service",[]).factory("TTYGRestService",r),r.$inject=["$http"];function r(e){new n.TtygRestServiceFakeBackend;return{getConversation:t=>e.get("rest/chat/conversations/"+t),renameConversation:(t,s)=>e.put("rest/chat/conversations/"+t,s),exportConversation:t=>e.get("rest/chat/conversations/export/"+t,{responseType:"blob"}),askQuestion:t=>e.post("rest/chat/conversations",t),getConversations:()=>e.get("rest/chat/conversations"),deleteConversation:t=>e.delete("rest/chat/conversations/"+t),createConversation:(t={})=>e.post("rest/chat/conversations",t),getAgents:()=>e.get("rest/chat/agents"),getAgent:t=>e.get("rest/chat/agents/"+t),createAgent:t=>e.post("rest/chat/agents",t),editAgent:t=>e.put("rest/chat/agents",t),deleteAgent:t=>e.delete("rest/chat/agents/"+t)}}},72:function(e,t,s){"use strict";s.r(t),s.d(t,"ChatMessageModel",(function(){return n})),s.d(t,"CHAT_MESSAGE_ROLE",(function(){return r}));class n{constructor(e){this._id=e.id,this._role=e.role,this._message=e.message,this._timestamp=e.timestamp}get id(){return this._id}set id(e){this._id=e}get role(){return this._role}set role(e){this._role=e}get message(){return this._message}set message(e){this._message=e}get timestamp(){return this._timestamp}set timestamp(e){this._timestamp=e}}const r={USER:"user",ASSISTANT:"assistant"}}}]);
@@ -0,0 +1,2 @@
1
+ (window.webpackJsonp=window.webpackJsonp||[]).push([[8,53,58,67,90,113,114,130,177,234,235,268,277,294,295],{110:function(e,t,n){"use strict";n.r(t),n.d(t,"connectorTypesListMapper",(function(){return r})),n.d(t,"connectorsMapper",(function(){return s}));var a=n(93);const r=e=>{const t=new a.ConnectorTypesListModel;return e?(t.connectors=Object.keys(e).map(t=>new a.ConnectorTypeModel({name:t,prefix:e[t]})),t):t},s=e=>{const t=new a.ConnectorListModel;return e?(t.connectors=e.map(e=>new a.ConnectorModel(e)),t):t}},127:function(e,t){function n(e){return{restrict:"E",scope:{fieldName:"@",source:"=",onSave:"&",onCancel:"&",onClick:"&",onDblclick:"&",isEditing:"="},templateUrl:"js/angular/core/directives/inline-editable-text/templates/inline-editable-text.template.html",link:function(t,n){t.editableModel={};const a=[];let r;t.onKeydown=e=>{"Enter"===e.key?(i(),t.editableModel.text!==t.text&&t.onSave({newText:t.editableModel.text,source:t.source})):"Escape"===e.key&&s()},t.onCancelEditing=()=>{s()},t.onSelect=()=>{r?(i(),t.onDblclick({source:t.source})):r=e((function(){t.onClick({source:t.source}),i()}),250)};const s=()=>{i(),t.onCancel()},i=()=>{e.cancel(r),r=void 0};a.push(t.$watch("isEditing",a=>{a&&(t.editableModel.text=t.source[t.fieldName],e(()=>{const e=n.find("input")[0];e.focus(),e.select()},0))}));t.$on("$destroy",()=>{a.forEach(e=>e()),i()})}}}angular.module("graphdb.framework.core.directives.inline-editable-text",[]).directive("inlineEditableText",n),n.$inject=["$timeout"]},139:function(e,t,n){"use strict";n.r(t);n(82);var a=n(110),r=n(77);function s(e){const t=()=>e.getConnectors().then(e=>Object(a.connectorTypesListMapper)(e.data)),n=t=>e.hasConnector(encodeURIComponent(t)).then(e=>Object(a.connectorsMapper)(e.data));return{getConnectorTypes:t,getConnectorsByType:n,getConnectorPrefixByName:e=>t().then(t=>{const n=t.getConnectorByName(e);return n?n.prefix:null}),getConnectorsByTypeAsSelectMenuOptions:e=>n(e).then(e=>e.connectors.map(e=>new r.SelectMenuOptionsModel({value:e.name,label:e.name})))}}angular.module("graphdb.framework.core.services.connectors",["graphdb.framework.rest.connectors.service"]).factory("ConnectorsService",s),s.$inject=["ConnectorsRestService"]},140:function(e,t,n){"use strict";n.r(t);n(94);var a=n(84),r=n(77);function s(e){const t=()=>e.getIndexes().then(e=>Object(a.mapIndexesResponseToSimilarityIndex)(e.data));return{getIndexes:t,getIndexesAsMenuModel:()=>t().then(e=>e.map(e=>new r.SelectMenuOptionsModel({label:e.name,value:e.name})))}}angular.module("graphdb.framework.core.services.similarity",["graphdb.framework.rest.similarity.service"]).factory("SimilarityService",s),s.$inject=["SimilarityRestService"]},262:function(e,t,n){"use strict";n.r(t);n(263),n(264),n(265),n(266),n(267),n(268),n(273);var a=n(75),r=(n(269),n(101)),s=n(111),i=n(116),o=n(190),c=n(77),l=n(21),d=n(503);function g(e,t,n,g,u,h,m,T,p,E,A,y,C){const S=[],f={filter_all:u.instant("ttyg.agent.btn.filter.all")};t.helpTemplateUrl="js/angular/ttyg/templates/chatInfo.html",t.showChats=!0,t.showAgents=!0,t.chats=void 0,t.loadingChats=!1,t.loadingChat=!1,t.agents=void 0,t.loadingAgents=!1,t.reloadingAgents=!1,t.creatingAgent=!1,t.connectorID=void 0,t.agentListFilterModel=[],t.activeRepositoryList=[],t.history=[],t.askSettings={queryTemplate:{query:"string"},groundTruths:[],echoVectorQuery:!1,topK:5},t.startNewChat=()=>{y.selectChat(void 0)},t.onopen=t.onclose=()=>angular.noop(),t.toggleChatsListSidebar=()=>{t.showChats=!t.showChats},t.toggleAgentsListSidebar=()=>{t.showAgents=!t.showAgents},t.getIcon=e=>"question"===e?"user":"assistant"===e?"data":"help",t.clear=()=>{p.openSimpleModal({title:u.instant("common.confirm"),message:u.instant("ttyg.clear.history.confirmation"),warning:!0}).result.then((function(){t.history=[],v()}))},t.openSettings=()=>{h.open({templateUrl:"js/angular/ttyg/templates/modal/settings.html",controller:"AgentSettingsDialogCtrl",size:"lg",resolve:{data:function(){return{askSettings:t.askSettings,connectorID:t.connectorID}}}}).result.then((function(e){t.connectorID=e.connectorID,t.askSettings=e.askSettings,v()}))},t.onExportSelectedChat=()=>{b(y.getSelectedChat())},t.onCreateAgent=()=>{const e=Object(l.repositoryInfoMapper)(m.getActiveRepositoryObject()),n={templateUrl:"js/angular/ttyg/templates/modal/agent-settings-modal.html",controller:"AgentSettingsModalController",windowClass:"agent-settings-modal",resolve:{dialogModel:function(){return{activeRepositoryInfo:e,activeRepositoryList:t.activeRepositoryList,agentFormModel:Object(o.newAgentFormModelProvider)()}}},size:"lg"};h.open(n).result.then(e=>{R(e)},e=>{console.log("create agent rejected",e)})},t.onEditAgent=e=>{let n=e;n||(n=y.getSelectedAgent());const a=Object(o.agentFormModelMapper)(n),r=Object(l.repositoryInfoMapper)(m.getActiveRepositoryObject()),s={templateUrl:"js/angular/ttyg/templates/modal/agent-settings-modal.html",controller:"AgentSettingsModalController",windowClass:"agent-settings-modal",resolve:{dialogModel:function(){return{activeRepositoryInfo:r,activeRepositoryList:t.activeRepositoryList,agentFormModel:a}}},size:"lg"};h.open(s).result.then(e=>{A.editAgent(e).then(t=>{T.success(u.instant("ttyg.agent.messages.agent_save_successfully",{agentName:t.name}));const n=y.getSelectedAgent();n&&e.id===n.id&&y.selectAgent(t),L(!1)}).catch(()=>{T.error(u.instant("ttyg.agent.messages.agent_save_failure",{agentName:e.name}))})})};const v=()=>{const e=E.get("ttyg")||{};e[m.getActiveRepository()]={history:t.history,connectorID:t.connectorID,askSettings:t.askSettings},E.set("ttyg",e)},_=()=>(t.loadingChats=!0,A.getConversations().then(e=>y.updateChats(e)).catch(e=>{T.error(getError(e,0,100)),I(new i.ChatsListModel)}).finally(()=>{t.loadingChats=!1})),L=(e=!0)=>(t.loadingAgents=e,A.getAgents().then(e=>y.updateAgents(e)).catch(e=>{T.error(getError(e,0,100))}).finally(()=>{t.loadingAgents=!1})),I=e=>{e.isEmpty()?t.showChats=!1:(t.showChats=!0,y.getSelectedChat()||y.selectChat(t.chats.getFirstChat()))},b=e=>{A.exportConversation(e.id).then((function({data:t,filename:n}){Object(d.saveAs)(t,n),y.emit(a.TTYGEventName.CHAT_EXPORT_SUCCESSFUL,e),y.emit(a.TTYGEventName.LOAD_CHAT)})).catch(()=>{y.emit(a.TTYGEventName.CHAT_EXPORT_FAILURE),T.error(u.instant("ttyg.chat.messages.export_failure"))})},R=e=>{t.creatingAgent=!0,A.createAgent(e).then(e=>L()).then(()=>{}).catch(e=>{T.error(getError(e,0,100))}).finally(()=>{t.creatingAgent=!1})},N=()=>{const e=m.getActiveRepository(),n=m.getReadableRepositories().map(t=>new s.AgentListFilterModel(t.id,t.id,t.id===e));t.agentListFilterModel=[new s.AgentListFilterModel(r.AGENTS_FILTER_ALL_KEY,f.filter_all),...n]};S.push(t.$watch(t.getActiveRepositoryObject,e=>{e&&((()=>{const e=C.getAgentId();e&&A.getAgent(e).then(e=>{e&&y.selectAgent(e)})})(),t.activeRepositoryList=m.getReadableRepositories().map(e=>new c.SelectMenuOptionsModel({value:e.id,label:e.id})),L().then(()=>(N(),_())),(()=>{const e=m.getActiveRepository();if(e){const n=E.get("ttyg");if(n&&n[e]){const a=n[e];a.history&&(t.history=a.history),t.connectorID=a.connectorID,a.askSettings&&(t.askSettings=a.askSettings)}}})())})),S.push(y.onSelectedChatChanged(e=>{e?A.getConversation(e.id).then(e=>{y.updateSelectedChat(e)}):y.updateSelectedChat(e)})),S.push(y.onChatsListChanged(e=>{t.chats=e,I(e)})),S.push(y.subscribe(y.onAgentsListChanged(e=>{t.agents=e,e.isEmpty()?t.showAgents=!1:t.showAgents=!0}))),S.push(y.subscribe(a.TTYGEventName.CREATE_CHAT,e=>{A.createConversation(e).then(e=>{y.emit(a.TTYGEventName.CREATE_CHAT_SUCCESSFUL),y.selectChat(y.getChats().getChat(e)),y.emit(a.TTYGEventName.LOAD_CHAT)}).catch(()=>{y.emit(a.TTYGEventName.CREATE_CHAT_FAILURE),T.error(u.instant("ttyg.chat.messages.create_failure"))})})),S.push(y.subscribe(a.TTYGEventName.RENAME_CHAT,e=>{A.renameConversation(e).then(()=>{y.emit(a.TTYGEventName.RENAME_CHAT_SUCCESSFUL),y.emit(a.TTYGEventName.LOAD_CHAT)}).catch(()=>{y.emit(a.TTYGEventName.RENAME_CHAT_FAILURE),T.error(u.instant("ttyg.chat.messages.rename_failure"))})})),S.push(y.subscribe(a.TTYGEventName.DELETE_CHAT,e=>{A.deleteConversation(e.id).then(()=>{y.emit(a.TTYGEventName.DELETE_CHAT_SUCCESSFUL,e),y.emit(a.TTYGEventName.LOAD_CHAT)}).catch(()=>{y.emit(a.TTYGEventName.DELETE_CHAT_FAILURE),T.error(u.instant("ttyg.chat.messages.delete_failure"))})})),S.push(y.subscribe(a.TTYGEventName.CHAT_EXPORT,b)),S.push(y.subscribe(a.TTYGEventName.ASK_QUESTION,e=>{A.askQuestion(e).then(t=>{const n=y.getSelectedChat();if(n&&n.id===e.chatId){const a=e;a.answer=t,n.chatHistory.appendItem(a),y.updateSelectedChat(n)}}).catch(e=>T.error(getError(e,0,100)))})),S.push(y.subscribe(a.TTYGEventName.LOAD_CHAT,_)),S.push(y.subscribe(a.TTYGEventName.CREATE_AGENT,t.onCreateAgent)),S.push(y.subscribe(a.TTYGEventName.EDIT_AGENT,t.onEditAgent)),S.push(y.subscribe(a.TTYGEventName.DELETE_AGENT,e=>{y.emit(a.TTYGEventName.DELETING_AGENT,{agentId:e.id,inProgress:!0}),A.deleteAgent(e.id).then(()=>(t.reloadingAgents=!0,A.getAgents().then(e=>y.updateAgents(e)).catch(e=>{T.error(getError(e,0,100))}).finally(()=>{t.reloadingAgents=!1}))).then(()=>{y.emit(a.TTYGEventName.AGENT_DELETED,e)}).catch(e=>{T.error(getError(e,0,100))}).finally(()=>{y.emit(a.TTYGEventName.DELETING_AGENT,{agentId:e.id,inProgress:!1})})})),S.push(y.subscribe(a.TTYGEventName.AGENT_SELECTED,e=>{C.saveAgent(e)})),S.push(y.subscribe(a.TTYGEventName.COPY_ANSWER_TO_CLIPBOARD,e=>{navigator.clipboard&&navigator.clipboard.writeText(e.answer.message).then(()=>y.emit(a.TTYGEventName.COPY_ANSWER_TO_CLIPBOARD_SUCCESSFUL)).catch(()=>y.emit(a.TTYGEventName.COPY_ANSWER_TO_CLIPBOARD_FAILURE))})),S.push(e.$on("$translateChangeSuccess",()=>{f.filter_all=u.instant("ttyg.agent.btn.filter.all"),N()})),t.$on("$destroy",(function(){S.forEach(e=>e())}))}angular.module("graphdb.framework.ttyg.controllers.ttyg-view",["toastr","graphdb.framework.utils.localstorageadapter","graphdb.framework.core.services.ttyg-service","graphdb.framework.ttyg.services.ttygcontext","graphdb.framework.ttyg.services.ttygstorage","graphdb.framework.ttyg.directives.chat-list","graphdb.framework.ttyg.directives.chat-panel","graphdb.framework.ttyg.directives.agent-list","graphdb.framework.ttyg.directives.agent-select-menu","graphdb.framework.ttyg.directives.no-agents-view","graphdb.framework.ttyg.controllers.agent-settings-modal"]).controller("TTYGViewCtrl",g),g.$inject=["$rootScope","$scope","$http","$timeout","$translate","$uibModal","$repositories","toastr","ModalService","LocalStorageAdapter","TTYGService","TTYGContextService","TTYGStorageService"]},263:function(e,t,n){"use strict";n.r(t);n(127);var a=n(0),r=n(75);function s(e,t,n){return{restrict:"E",templateUrl:"js/angular/ttyg/templates/chat-list.html",scope:{chatList:"="},link:(s,i,o)=>{s.selectedChat=void 0,s.renamedChat=void 0,s.onSelectChatForRenaming=e=>{s.renamedChat=e},s.onSelectChat=t=>{s.selectedChat&&s.selectedChat.id===t.id||(e.selectChat(t),s.renamedChat=void 0)},s.onDeleteChat=s=>{const i=n.instant("ttyg.dialog.delete.title"),o=Object(a.decodeHTML)(n.instant("ttyg.dialog.delete.body",{chatName:s.name}));t.openConfirmation(i,o,()=>e.emit(r.TTYGEventName.DELETE_CHAT,s))},s.onRenameChat=(t,n)=>{n.name=t,s.renamedChat=void 0,e.emit(r.TTYGEventName.RENAME_CHAT,n)},s.onExportChat=t=>{e.emit(r.TTYGEventName.CHAT_EXPORT,t)},s.onCancelChatRenaming=()=>{s.renamedChat=void 0};const c=[];c.push(e.onSelectedChatChanged(e=>{s.selectedChat=e})),s.$on("$destroy",()=>{c.forEach(e=>e())})}}}angular.module("graphdb.framework.ttyg.directives.chat-list",["graphdb.framework.core.directives.inline-editable-text"]).directive("chatList",s),s.$inject=["TTYGContextService","ModalService","$translate"]},264:function(e,t,n){"use strict";n.r(t);var a=n(75),r=n(72),s=n(79);function i(e,t,n){return{restrict:"E",templateUrl:"js/angular/ttyg/templates/chat-panel.html",link:(i,o,c)=>{i.chat=void 0,i.selectedAgent=void 0,i.chatItem=void 0,i.ask=()=>{i.chatItem.chatId?d(i.chatItem):l()},i.regenerateQuestion=e=>{const t=g();t.setQuestionMessage(e.getQuestionMessage()),d(t)},i.copyAnswerToClipboard=e=>{n.emit(a.TTYGEventName.COPY_ANSWER_TO_CLIPBOARD,e)};const l=()=>{n.emit(a.TTYGEventName.CREATE_CHAT,i.chatItem)},d=e=>{n.emit(a.TTYGEventName.ASK_QUESTION,e)},g=()=>{const e=new s.ChatItemModel;return e.question=new r.ChatMessageModel({role:r.CHAT_MESSAGE_ROLE.USER}),i.chat&&(e.chatId=i.chat.id),i.selectedAgent&&(e.agentId=i.selectedAgent.id),e},u=[];u.push(i.$watchCollection("chat.chatHistory.items",()=>{const e=o.find(".chat-details")[0];e.scrollTop=e.scrollHeight})),u.push(n.onSelectedChatUpdated(e=>{i.chat=e,i.chatItem=g()})),u.push(n.onSelectedAgentChanged(e=>{i.selectedAgent=e,i.selectedAgent&&(i.chatItem||(i.chatItem=g()),i.chatItem.agentId=i.selectedAgent.id)})),u.push(n.subscribe(a.TTYGEventName.COPY_ANSWER_TO_CLIPBOARD_SUCCESSFUL,()=>{e.success(t.instant("ttyg.chat_panel.messages.answer_copy_successful"))})),u.push(n.subscribe(a.TTYGEventName.COPY_ANSWER_TO_CLIPBOARD_FAILURE,()=>{e.success(t.instant("ttyg.chat_panel.messages.answer_copy_failed"))})),i.$on("$destroy",()=>{u.forEach(e=>e())}),i.chatItem=g()}}}angular.module("graphdb.framework.ttyg.directives.chat-panel",[]).directive("chatPanel",i),i.$inject=["toastr","$translate","TTYGContextService"]},265:function(e,t,n){"use strict";n.r(t);var a=n(0),r=n(75);function s(e,t,n){return{restrict:"E",templateUrl:"js/angular/ttyg/templates/agent-list.html",scope:{agentList:"=",agentListFilterModel:"="},link:(s,i,o)=>{s.selectedAgent=void 0,s.selectedAgentsFilter=void 0,s.deletingAgent=void 0,s.onEditAgent=t=>{e.emit(r.TTYGEventName.EDIT_AGENT,t)},s.onCloneAgent=e=>{console.log("Clone agent",e)},s.onDeleteAgent=s=>{const i=n.instant("ttyg.agent.delete_agent_modal.title"),o=Object(a.decodeHTML)(n.instant("ttyg.agent.delete_agent_modal.body",{agentName:s.name}));t.openConfirmation(i,o,()=>e.emit(r.TTYGEventName.DELETE_AGENT,s))},s.onAgentsFilterChange=e=>{s.selectedAgentsFilter=e,s.agentList.filterByRepository(s.selectedAgentsFilter.key)};const c=()=>{const e=s.agentListFilterModel.find(e=>e.selected);s.selectedAgentsFilter=e||s.agentListFilterModel[0],s.onAgentsFilterChange(s.selectedAgentsFilter)},l=[];l.push(s.$watch("agentListFilterModel",c)),l.push(e.subscribe(r.TTYGEventName.DELETING_AGENT,e=>{s.deletingAgent=e})),l.push(e.onSelectedAgentChanged(e=>{s.selectedAgent=e})),s.$on("$destroy",()=>{l.forEach(e=>e())}),c()}}}angular.module("graphdb.framework.ttyg.directives.agent-list",[]).directive("agentList",s),s.$inject=["TTYGContextService","ModalService","$translate"]},266:function(e,t,n){"use strict";n.r(t);var a=n(77),r=n(75);function s(e,t,n,s){return{restrict:"E",templateUrl:"js/angular/ttyg/templates/agent-select-menu.html",scope:{},link:n=>{n.agentOptionsList=[],n.selectedAgent=void 0,n.onAgentSelected=t=>{i(t),n.selectedAgent=t,e.selectAgent(t)},n.onAgentWithoutRepoSelected=a=>{const o=t.instant("ttyg.agent.agent_select_menu.configure_agent_modal.title"),c=t.instant("ttyg.agent.agent_select_menu.configure_agent_modal.body");s.openConfirmation(o,c,()=>e.emit(r.TTYGEventName.EDIT_AGENT,a.data.agent)),i(a),n.selectedAgent=a.data.agent,e.selectAgent(a.data.agent)};const i=e=>{n.agentOptionsList.forEach(t=>{t.selected=t.data.agent===e})},o=e=>{n.agentOptionsList=e.agents.map(e=>new a.SelectMenuOptionsModel({value:e.id,label:e.name,data:{agent:e}}))},c=[];c.push(e.onAgentsListChanged(e=>{o(e)})),c.push(e.subscribe(r.TTYGEventName.AGENT_DELETED,t=>{n.selectedAgent&&n.selectedAgent.id===t.id&&(n.selectedAgent.isDeleted=!0,e.selectAgent(n.selectedAgent))})),c.push(e.onSelectedAgentChanged(e=>{i(e),n.selectedAgent=e})),n.$on("$destroy",()=>{c.forEach(e=>e())})}}}angular.module("graphdb.framework.ttyg.directives.agent-select-menu",[]).directive("agentSelectMenu",s),s.$inject=["TTYGContextService","$translate","$sce","ModalService"]},267:function(e,t,n){"use strict";n.r(t);var a=n(75);function r(e){return{restrict:"E",templateUrl:"js/angular/ttyg/templates/no-agents-view.html",scope:{},link:(t,n,r)=>{t.onCreateAgent=()=>{e.emit(a.TTYGEventName.CREATE_AGENT)}}}}angular.module("graphdb.framework.ttyg.directives.no-agents-view",[]).directive("noAgentsView",r),r.$inject=["TTYGContextService"]},268:function(e,t,n){"use strict";n.r(t);var a=n(0),r=n(111),s=(n(140),n(139),n(19),n(8));function i(e,t,n,i,o,c,l,d,g,u){e.agentFormModel=u.agentFormModel,e.isEdit=!!e.agentFormModel.id,e.activeRepositoryInfo=u.activeRepositoryInfo,e.extractionMethodLoaderFlags={[r.ExtractionMethod.SIMILARITY]:!1},e.activeRepositoryList=u.activeRepositoryList,e.extractionMethods=r.ExtractionMethod,e.showAdvancedSettings=!1,e.similarityIndexes=[],e.retrievalConnectors=[],e.ftsEnabled=!1,e.toggleExtractionMethod=()=>{e.agentSettingsForm.extractionMethods.$setTouched(),m()},e.onExtractionMethodPanelToggle=e=>{p[e.method](e)},e.getModelHelpMessage=()=>{const e=Object(a.decodeHTML)(g.instant("ttyg.agent.create_agent_modal.form.model.hint"));return c.trustAsHtml(e)},e.getFTSDisabledHelpMessage=()=>{const t=Object(a.decodeHTML)(g.instant("ttyg.agent.create_agent_modal.form.fts_search.fts_disabled_message",{repositoryEditPage:"#/repository/edit/"+e.activeRepositoryInfo.id}));return c.trustAsHtml(t)},e.getNoSimilarityIndexHelpMessage=()=>{const e=Object(a.decodeHTML)(g.instant("ttyg.agent.create_agent_modal.form.similarity_index.no_similarity_index_message",{similarityIndexPage:"#/similarity"}));return c.trustAsHtml(e)},e.getNoRetrievalConnectorHelpMessage=()=>{const e=Object(a.decodeHTML)(g.instant("ttyg.agent.create_agent_modal.form.retrieval_search.no_retrieval_connectors_message",{retrievalConnectorPage:"#/connectors"}));return c.trustAsHtml(e)},e.ok=()=>{const n=e.agentFormModel.toPayload();t.close(n)},e.cancel=function(){t.dismiss({})},e.close=function(){t.dismiss({})},e.onRepositoryChange=()=>{T()};const h=(e,t)=>{console.error(e),l.error(g.instant(t))},m=()=>{e.agentSettingsForm.extractionMethods.$setValidity("required",e.agentFormModel.hasExtractionMethodSelected())},T=()=>{e.agentFormModel.repositoryId&&o.getRepositoryModel({id:e.agentFormModel.repositoryId}).then(t=>{e.ftsEnabled=t.getParamValue(s.REPOSITORY_PARAMS.enableFtsIndex)}).catch(e=>{h(e,"ttyg.agent.messages.error_repository_config_loading")}).finally(()=>{e.extractionMethodLoaderFlags[r.ExtractionMethod.FTS_SEARCH]=!1})},p={[r.ExtractionMethod.FTS_SEARCH]:t=>(t=>{e.extractionMethodLoaderFlags[t.method]=!0,T()})(t),[r.ExtractionMethod.SPARQL]:e=>{},[r.ExtractionMethod.SIMILARITY]:t=>(t=>{e.extractionMethodLoaderFlags[t.method]=!0,n.getIndexesAsMenuModel().then(t=>{e.similarityIndexes=t}).catch(e=>{h(e,"ttyg.agent.messages.error_similarity_indexes_loading")}).finally(()=>{e.extractionMethodLoaderFlags[t.method]=!1})})(t),[r.ExtractionMethod.RETRIEVAL]:t=>(t=>{e.extractionMethodLoaderFlags[t.method]=!0,i.getConnectorPrefixByName("ChatGPT Retrieval").then(e=>i.getConnectorsByTypeAsSelectMenuOptions(e)).then(t=>{e.retrievalConnectors=t}).catch(e=>{h(e,"ttyg.agent.messages.error_retrieval_connectors_loading")}).finally(()=>{e.extractionMethodLoaderFlags[t.method]=!1})})(t)};setTimeout(m,0)}angular.module("graphdb.framework.ttyg.controllers.agent-settings-modal",["graphdb.framework.core.services.similarity","graphdb.framework.core.services.connectors","graphdb.framework.rest.repositories.service"]).controller("AgentSettingsModalController",i),i.$inject=["$scope","$uibModalInstance","SimilarityService","ConnectorsService","RepositoriesRestService","$sce","toastr","UriUtils","$translate","dialogModel"]},269:function(e,t){function n(e,t){const n={agent:{id:void 0},chat:{id:void 0}},a=()=>{let a=e.get(t.TTYG);return a||(a=n),a.agent||(a.agent={}),a.chat||(a.chat={}),a};return{saveAgent:function(n){const r=a();r.agent.id=n.id,e.set(t.TTYG,r)},getAgentId:function(){const e=a();if(e.agent)return e.agent.id}}}angular.module("graphdb.framework.ttyg.services.ttygstorage",[]).factory("TTYGStorageService",n),n.$inject=["LocalStorageAdapter","LSKeys"]},502:function(e,t){(function(t){e.exports=t}).call(this,{})},503:function(e,t,n){var a,r=r||function(e){"use strict";if("undefined"==typeof navigator||!/MSIE [1-9]\./.test(navigator.userAgent)){var t=e.document,n=function(){return e.URL||e.webkitURL||e},a=t.createElementNS("http://www.w3.org/1999/xhtml","a"),r=e.webkitRequestFileSystem,s=e.requestFileSystem||r||e.mozRequestFileSystem,i=function(t){(e.setImmediate||e.setTimeout)((function(){throw t}),0)},o=0,c=function(t){var a=function(){"string"==typeof t?n().revokeObjectURL(t):t.remove()};e.chrome?a():setTimeout(a,500)},l=function(e,t,n){for(var a=(t=[].concat(t)).length;a--;){var r=e["on"+t[a]];if("function"==typeof r)try{r.call(e,n||e)}catch(e){i(e)}}},d=function(e){return/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob(["\ufeff",e],{type:e.type}):e},g=function(t,i){t=d(t);var g,u,h,m=this,T=t.type,p=!1,E=function(){l(m,"writestart progress write writeend".split(" "))},A=function(){(!p&&g||(g=n().createObjectURL(t)),u)?u.location.href=g:null==e.open(g,"_blank")&&"undefined"!=typeof safari&&(e.location.href=g);m.readyState=m.DONE,E(),c(g)},y=function(e){return function(){if(m.readyState!==m.DONE)return e.apply(this,arguments)}},C={create:!0,exclusive:!1};if(m.readyState=m.INIT,i||(i="download"),a)return g=n().createObjectURL(t),a.href=g,a.download=i,void setTimeout((function(){var e,t;e=a,t=new MouseEvent("click"),e.dispatchEvent(t),E(),c(g),m.readyState=m.DONE}));e.chrome&&T&&"application/octet-stream"!==T&&(h=t.slice||t.webkitSlice,t=h.call(t,0,t.size,"application/octet-stream"),p=!0),r&&"download"!==i&&(i+=".download"),("application/octet-stream"===T||r)&&(u=e),s?(o+=t.size,s(e.TEMPORARY,o,y((function(e){e.root.getDirectory("saved",C,y((function(e){var n=function(){e.getFile(i,C,y((function(e){e.createWriter(y((function(n){n.onwriteend=function(t){u.location.href=e.toURL(),m.readyState=m.DONE,l(m,"writeend",t),c(e)},n.onerror=function(){var e=n.error;e.code!==e.ABORT_ERR&&A()},"writestart progress write abort".split(" ").forEach((function(e){n["on"+e]=m["on"+e]})),n.write(t),m.abort=function(){n.abort(),m.readyState=m.DONE},m.readyState=m.WRITING})),A)})),A)};e.getFile(i,{create:!1},y((function(e){e.remove(),n()})),y((function(e){e.code===e.NOT_FOUND_ERR?n():A()})))})),A)})),A)):A()},u=g.prototype;return"undefined"!=typeof navigator&&navigator.msSaveOrOpenBlob?function(e,t){return navigator.msSaveOrOpenBlob(d(e),t)}:(u.abort=function(){this.readyState=this.DONE,l(this,"abort")},u.readyState=u.INIT=0,u.WRITING=1,u.DONE=2,u.error=u.onwritestart=u.onprogress=u.onwrite=u.onabort=u.onerror=u.onwriteend=null,function(e,t){return new g(e,t)})}}("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||this.content);
2
+ /*! @source http://purl.eligrey.com/github/FileSaver.js/blob/master/FileSaver.js */e.exports?e.exports.saveAs=r:null!==n(510)&&null!=n(502)&&(void 0===(a=function(){return r}.apply(t,[]))||(e.exports=a))},510:function(e,t){e.exports=function(){throw new Error("define cannot be used indirect")}},73:function(e,t,n){"use strict";n.r(t),n.d(t,"SimilarityIndexType",(function(){return a}));const a={TEXT:"text",TEXT_LITERAL:"textLiteral",PREDICATION:"predication",isTextType:e=>a.TEXT===e,isTextLiteralType:e=>a.TEXT_LITERAL===e,isPredicationType:e=>a.PREDICATION===e}},74:function(e,t,n){"use strict";n.r(t),n.d(t,"SimilarityIndexStatus",(function(){return a}));const a={CREATING:"CREATING",BUILDING:"BUILDING",BUILT:"BUILT",REBUILDING:"REBUILDING",OUTDATED:"OUTDATED",INTERRUPTED:"INTERRUPTED",OBSOLETE:"OBSOLETE",FAILED:"FAILED",isCreatingStatus:e=>a.CREATING===e,isBuildingStatus:e=>a.BUILDING===e,isBuiltStatus:e=>a.BUILT===e,isRebuildingStatus:e=>a.REBUILDING===e,isOutdatedStatus:e=>a.OUTDATED===e,isInterruptedStatus:e=>a.INTERRUPTED===e,isObsoleteStatus:e=>a.OBSOLETE===e,isFailedStatus:e=>a.FAILED===e}},75:function(e,t,n){"use strict";n.r(t),n.d(t,"TTYGEventName",(function(){return s}));var a=n(30);function r(e){let t=void 0,n=void 0,r=void 0,i=void 0;const o=()=>Object(a.cloneDeep)(t),c=()=>Object(a.cloneDeep)(n),l=()=>Object(a.cloneDeep)(r),d=()=>Object(a.cloneDeep)(i),g=(t,n)=>{e.emitSync(t,Object(a.cloneDeep)(n))},u=(t,n)=>e.subscribeSync(t,e=>n(e));return{emit:g,subscribe:u,getChats:c,updateChats:e=>{n=Object(a.cloneDeep)(e),g(s.CHAT_LIST_UPDATED,c())},onChatsListChanged:e=>(n&&angular.isFunction(e)&&e(c()),u(s.CHAT_LIST_UPDATED,t=>e(t))),getSelectedChat:l,selectChat:e=>{r&&r.id===e||(r=Object(a.cloneDeep)(e),g(s.SELECT_CHAT,l()))},onSelectedChatChanged:e=>(r&&angular.isFunction(e)&&e(l()),u(s.SELECT_CHAT,t=>e(t))),updateSelectedChat:e=>{r&&r.id!==e.id||(r=Object(a.cloneDeep)(e),g(s.SELECTED_CHAT_UPDATED,l()))},onSelectedChatUpdated:e=>(r&&angular.isFunction(e)&&e(l()),u(s.SELECTED_CHAT_UPDATED,t=>e(t))),updateAgents:e=>{t=Object(a.cloneDeep)(e),g(s.AGENT_LIST_UPDATED,o())},onAgentsListChanged:e=>(t&&angular.isFunction(e)&&e(o()),u(s.AGENT_LIST_UPDATED,t=>e(t))),getAgents:o,selectAgent:e=>{i=Object(a.cloneDeep)(e),g(s.AGENT_SELECTED,d())},getSelectedAgent:d,onSelectedAgentChanged:e=>(i&&angular.isFunction(e)&&e(d()),u(s.AGENT_SELECTED,t=>e(t)))}}angular.module("graphdb.framework.ttyg.services.ttygcontext",[]).factory("TTYGContextService",r),r.$inject=["EventEmitterService"];const s={CREATE_CHAT:"createChat",CREATE_CHAT_SUCCESSFUL:"chatCreated",CREATE_CHAT_FAILURE:"chatCreationFailed",RENAME_CHAT:"renameChat",RENAME_CHAT_SUCCESSFUL:"chatRenamed",RENAME_CHAT_FAILURE:"chatRenamedFailure",SELECT_CHAT:"selectChat",SELECTED_CHAT_UPDATED:"selectChatUpdated",DELETE_CHAT:"deleteChat",DELETE_CHAT_SUCCESSFUL:"chatDeleted",DELETE_CHAT_FAILURE:"chatDeletedFailure",CHAT_EXPORT:"chatExport",CHAT_EXPORT_SUCCESSFUL:"chatExportSuccess",CHAT_EXPORT_FAILURE:"chatExportFailure",CHAT_LIST_UPDATED:"chatListUpdated",ASK_QUESTION:"askQuestion",LOAD_CHAT:"loadChat",LOAD_CHAT_SUCCESSFUL:"loadChatSuccess",LOAD_CHAT_FAILURE:"loadChatFailure",AGENT_LIST_UPDATED:"agentListUpdated",CREATE_AGENT:"createAgent",EDIT_AGENT:"editAgent",DELETE_AGENT:"deleteAgent",AGENT_DELETED:"agentDeleted",DELETING_AGENT:"deletingAgent",AGENT_SELECTED:"agentSelected",COPY_ANSWER_TO_CLIPBOARD:"copyAnswerToClipboard",COPY_ANSWER_TO_CLIPBOARD_SUCCESSFUL:"copyAnswerToClipboardSuccess",COPY_ANSWER_TO_CLIPBOARD_FAILURE:"copyAnswerToClipboardFailure"}},78:function(e,t,n){"use strict";n.r(t),n.d(t,"SimilarityIndex",(function(){return s}));var a=n(73),r=n(74);class s{constructor(){this.analyzer="",this.infer=!0,this.options="",this.sameAs=!0,this.searchQuery="",this.selectQuery="",this.stopList=void 0,this.name="",this.type=a.SimilarityIndexType.TEXT,this.status=void 0,this.analogicalQuery=void 0,this.inputIndex=void 0,this.isLiteralIndex=""}isTextType(){return a.SimilarityIndexType.isTextType(this.type)}isTextLiteralType(){return a.SimilarityIndexType.isTextLiteralType(this.type)}isPredicationType(){return a.SimilarityIndexType.isPredicationType(this.type)}isCreatingStatus(){return r.SimilarityIndexStatus.isCreatingStatus(this.status)}isBuildingStatus(){return r.SimilarityIndexStatus.isBuildingStatus(this.status)}isBuiltStatus(){return r.SimilarityIndexStatus.isBuiltStatus(this.status)}isRebuildingStatus(){return r.SimilarityIndexStatus.isRebuildingStatus(this.status)}isOutdatedStatus(){return r.SimilarityIndexStatus.isOutdatedStatus(this.status)}isInterruptedStatus(){return r.SimilarityIndexStatus.isInterruptedStatus(this.status)}isObsoleteStatus(){return r.SimilarityIndexStatus.isObsoleteStatus(this.status)}isFailedStatus(){return r.SimilarityIndexStatus.isFailedStatus(this.status)}}},82:function(e,t){angular.module("graphdb.framework.rest.connectors.service",[]).factory("ConnectorsRestService",n),n.$inject=["$http"];function n(e){return{getConnectors:function(){return e.get("rest/connectors")},initConnector:function(t){return e.get("rest/connectors/options?prefix="+t)},hasConnector:function(t){return e.get("rest/connectors/existing?prefix="+t)},checkConnector:function(t){return e.post("rest/connectors/check",t,{headers:{"Content-Type":"text/plain"}})}}}},84:function(e,t,n){"use strict";n.r(t),n.d(t,"mapIndexesResponseToSimilarityIndex",(function(){return r}));var a=n(78);const r=e=>e.map(e=>{const t=new a.SimilarityIndex;return t.type=e.type,t.stopList=e.stopList,t.status=e.status,t.selectQuery=e.selectQuery,t.searchQuery=e.searchQuery,t.sameAs=e.sameAs,t.options=e.options,t.name=e.name,t.infer=e.infer,t.analyzer=e.analyzer,t.analogicalQuery=e.analogicalQuery,t})},93:function(e,t,n){"use strict";n.r(t),n.d(t,"ConnectorTypesListModel",(function(){return a})),n.d(t,"ConnectorTypeModel",(function(){return r})),n.d(t,"ConnectorListModel",(function(){return s})),n.d(t,"ConnectorModel",(function(){return i})),n.d(t,"ConnectorSettingsModel",(function(){return o}));class a{constructor(e={}){this._connectors=e.connectors||[]}getConnectorByName(e){return this._connectors.find(t=>t.name===e)}get connectors(){return this._connectors}set connectors(e){this._connectors=e}}class r{constructor(e){this._name=e.name,this._prefix=e.prefix}get name(){return this._name}set name(e){this._name=e}get prefix(){return this._prefix}set prefix(e){this._prefix=e}}class s{constructor(e=[]){this._connectors=e.connectors}get connectors(){return this._connectors}set connectors(e){this._connectors=e}}class i{constructor(e){this._name=e.name,this._settings=new o(e)}get settings(){return this._settings}set settings(e){this._settings=e}get name(){return this._name}set name(e){this._name=e}}class o{constructor(e){this._settings=e.values||{}}get settings(){return this._settings}set settings(e){this._settings=e}}},94:function(e,t){angular.module("graphdb.framework.rest.similarity.service",[]).factory("SimilarityRestService",n),n.$inject=["$http","$repositories"];function n(e){return{getIndexes:function(){return e.get("rest/similarity")},getSearchQueries:function(){return e.get("rest/similarity/config")},rebuildIndex:function(e){return t("PUT",e.name,e.options,e.selectQuery,e.searchQuery,e.analogicalQuery,e.stopList,e.infer,e.sameAs,e.type)},deleteIndex:function(t){return e.delete("rest/similarity?name="+t.name)},createIndex:t,getSamples:function(){return e.get("rest/similarity/samples")},getQuery:function(t){return e.get("rest/similarity/query",{params:{name:t.indexName,options:t.indexOptions,stopList:t.indexStopList,selectQuery:t.query,infer:t.queryInference,sameAs:t.querySameAs,type:t.viewType,analyzer:t.indexAnalyzer}})},saveSearchQuery:function(t){return e({method:"put",url:"rest/similarity/search-query",data:t})}};function t(t,n,a,r,s,i,o,c,l,d,g){return e({method:t,url:"rest/similarity",noCancelOnRouteChange:!0,data:{name:n,options:a,selectQuery:r,stopList:o,infer:c,sameAs:l,type:d,analyzer:g,searchQuery:s,analogicalQuery:i}})}}}}]);
@@ -1 +1 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([[83,131],{291:function(e,t,o){"use strict";o.r(t);o(7),o(31),o(274),o(92),o(32),o(509);angular.module("graphdb.framework.impex.export",["ui.bootstrap","toastr","ngRoute","ngCookies","graphdb.framework.impex.export.controllers","graphdb.framework.core.directives.paginations","graphdb.framework.core.services.repositories","graphdb.framework.core.directives"]).config(["$uibTooltipProvider",function(e){e.setTriggers({showExportDDTooltip:"showExportDDTooltip"})}])},92:function(e,t){angular.module("graphdb.framework.core.directives.paginations",[]).directive("paginations",["$translate","$rootScope","$compile",function(e,t,o){return{link:function(e,a){const r=()=>{const t=o('<uib-pagination class="nav navbar-right" total-items="matchedElements.length" items-per-page="pageSize" ng-model="page" ng-change="changePagination()" direction-links="false" boundary-links="true" max-size="5" rotate="true" first-text="{{\'paginator.first.page.label\' | translate}}" last-text="{{\'paginator.last.page.label\' | translate}}"></uib-pagination>')(e);a.html(t)};r();const i=t.$on("$translateChangeSuccess",r);e.$on("$destroy",i)}}}])}}]);
1
+ (window.webpackJsonp=window.webpackJsonp||[]).push([[83,131],{291:function(e,t,o){"use strict";o.r(t);o(7),o(31),o(274),o(92),o(32),o(503);angular.module("graphdb.framework.impex.export",["ui.bootstrap","toastr","ngRoute","ngCookies","graphdb.framework.impex.export.controllers","graphdb.framework.core.directives.paginations","graphdb.framework.core.services.repositories","graphdb.framework.core.directives"]).config(["$uibTooltipProvider",function(e){e.setTriggers({showExportDDTooltip:"showExportDDTooltip"})}])},92:function(e,t){angular.module("graphdb.framework.core.directives.paginations",[]).directive("paginations",["$translate","$rootScope","$compile",function(e,t,o){return{link:function(e,a){const r=()=>{const t=o('<uib-pagination class="nav navbar-right" total-items="matchedElements.length" items-per-page="pageSize" ng-model="page" ng-change="changePagination()" direction-links="false" boundary-links="true" max-size="5" rotate="true" first-text="{{\'paginator.first.page.label\' | translate}}" last-text="{{\'paginator.last.page.label\' | translate}}"></uib-pagination>')(e);a.html(t)};r();const i=t.$on("$translateChangeSuccess",r);e.$on("$destroy",i)}}}])}}]);