graphdb-workbench 2.8.0-TR2 → 2.8.0-TR3

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 (214) hide show
  1. package/dist/{1.a0b75d45735a22f37ddc.bundle.js → 1.2dda9a5cb7583ef78f5c.bundle.js} +1 -1
  2. package/dist/10.d5925e58aa46c190355c.bundle.js +1 -0
  3. package/dist/{101.033154cfbe16d0474fc2.bundle.js → 101.36c2d56e11e392b20f52.bundle.js} +1 -1
  4. package/dist/{10.898fa2a36737f95067a6.bundle.js → 11.7dd13f73090a380d7884.bundle.js} +1 -1
  5. package/dist/{111.4cf8ef55422eab73d874.bundle.js → 111.50a450e85aba9de91fdc.bundle.js} +1 -1
  6. package/dist/{112.401fb8c98ab73e208730.bundle.js → 112.b07ed5633bcc5388a2ba.bundle.js} +1 -1
  7. package/dist/113.6823f4e7dc7b7c6a02d3.bundle.js +1 -0
  8. package/dist/{119.e46cd3518e0dbf3169bb.bundle.js → 119.daaf67dc419095bd957c.bundle.js} +1 -1
  9. package/dist/{11.e430b38a9a250b880d28.bundle.js → 12.173d48c02678a24fe199.bundle.js} +1 -1
  10. package/dist/{121.a9992f7ff46cf77b304c.bundle.js → 121.db7131aafbfbe030ea35.bundle.js} +1 -1
  11. package/dist/{122.1c9c84436c94b46fe056.bundle.js → 122.84e526566281dfe79ede.bundle.js} +1 -1
  12. package/dist/{123.83252c0af670f08d60cd.bundle.js → 123.c71d121e1573d4e732c0.bundle.js} +1 -1
  13. package/dist/{124.cf9703439aa0c9313b50.bundle.js → 124.1d2113ee6e00c6a13c91.bundle.js} +1 -1
  14. package/dist/{126.8c636a630d2d121743c5.bundle.js → 126.647aad60fac180a58296.bundle.js} +1 -1
  15. package/dist/{127.332e86694914476a6176.bundle.js → 127.099000071b2c1e40bd35.bundle.js} +1 -1
  16. package/dist/128.4fea7408f39af1661363.bundle.js +1 -0
  17. package/dist/{129.047b0311e394c752a6a9.bundle.js → 129.2bb252b6083db5cbfccf.bundle.js} +1 -1
  18. package/dist/{12.afb551efb4792fb9eb1d.bundle.js → 13.06c49327a3b1a4c80ad6.bundle.js} +1 -1
  19. package/dist/{131.ef612c8696bb612a9331.bundle.js → 131.d620cb87c7bce0386b4f.bundle.js} +1 -1
  20. package/dist/{134.191e4cec3a9f7d292909.bundle.js → 134.4db49e7aeaad82c760a6.bundle.js} +1 -1
  21. package/dist/14.2595a3b694cb9dc1f604.bundle.js +2 -0
  22. package/dist/{14.86cc7f1cd846ca4c89f0.bundle.js → 15.2baef0055d58658c7ea8.bundle.js} +1 -1
  23. package/dist/{15.926edf6efc64325909c5.bundle.js → 16.cdbcf340f02b0c8977b8.bundle.js} +1 -1
  24. package/dist/{165.43dabca3ac2700b7a4c0.bundle.js → 165.eaf6deb8350b98160966.bundle.js} +1 -1
  25. package/dist/168.7fe1f6eb6698093fa80c.bundle.js +1 -1
  26. package/dist/{16.8bc6a8a10c03ec785174.bundle.js → 17.2310d8a43230a4a587cc.bundle.js} +1 -1
  27. package/dist/{178.b4a67f2d275aa4e7c7e6.bundle.js → 178.9b1842e598ad462cd17b.bundle.js} +1 -1
  28. package/dist/{179.90b68b334b6faf134682.bundle.js → 179.e5b4cccecf38f13f6a41.bundle.js} +1 -1
  29. package/dist/{17.0add578b712aeaedb5a0.bundle.js → 18.bbbc086a88d188729ac0.bundle.js} +1 -1
  30. package/dist/{187.34becb6d27cbfd4b074d.bundle.js → 187.5a7992e400ef07f94f16.bundle.js} +1 -1
  31. package/dist/{189.7b0a1c093716b939fd52.bundle.js → 189.ccc44faa2fc4cca06c72.bundle.js} +1 -1
  32. package/dist/{18.9b6042eb938bed7eb676.bundle.js → 19.f30c48aa8a599e62fc76.bundle.js} +1 -1
  33. package/dist/{190.ea276a38d182b5f1ee5d.bundle.js → 190.dff617079c829ec6d17d.bundle.js} +1 -1
  34. package/dist/{191.bd22587f391925a001a4.bundle.js → 191.ea991b8037f39257f684.bundle.js} +1 -1
  35. package/dist/{196.fbea7e355a6df1f8aee0.bundle.js → 196.0d98ec3b872108f046bc.bundle.js} +1 -1
  36. package/dist/{197.9750357510c52edc3a12.bundle.js → 197.e344caec4f0cb4d2012b.bundle.js} +1 -1
  37. package/dist/{198.d25dbf25a09e68bed5a8.bundle.js → 198.1bd94bb0be99782ea98c.bundle.js} +1 -1
  38. package/dist/{199.727623492df97b809e5f.bundle.js → 199.b43a12bd069705c3c29f.bundle.js} +1 -1
  39. package/dist/2.83ac91f6c9d0d7ab1819.bundle.js +2 -0
  40. package/dist/{19.f1b9c74ef0c256da2eca.bundle.js → 20.5be549e284f9d9ef9e79.bundle.js} +2 -2
  41. package/dist/200.4c9bc00fd17bb2192bd9.bundle.js +1 -0
  42. package/dist/{205.d7c86c03230059559e3b.bundle.js → 205.6c74e9480df3f72a358f.bundle.js} +1 -1
  43. package/dist/{207.af83fd1ffcdc9a322f6c.bundle.js → 207.9ead4a33702a134fca3b.bundle.js} +1 -1
  44. package/dist/{20.4c4d231852e056d4c705.bundle.js → 21.6bffc436fdd37503c522.bundle.js} +2 -2
  45. package/dist/{213.9cbbf239525e01e98b16.bundle.js → 213.4e5867645049ff1e5184.bundle.js} +1 -1
  46. package/dist/{214.ee6729fffbd79f1304e3.bundle.js → 214.3a9d944eb79dc5fb6dba.bundle.js} +1 -1
  47. package/dist/22.8dccb31dce30f0b00d7f.bundle.js +1 -0
  48. package/dist/{223.b7e2302ce49d6efe51f1.bundle.js → 223.e5f58b0691d3d21099dd.bundle.js} +1 -1
  49. package/dist/{229.cc86db36d4eed5ffc13d.bundle.js → 229.3dd9c23a3b95ffa6e948.bundle.js} +1 -1
  50. package/dist/23.d27e1bdf1f2e6bb62fa4.bundle.js +2 -0
  51. package/dist/{232.9da2520175cf682c5ba9.bundle.js → 232.566b87ef4976f79cea65.bundle.js} +1 -1
  52. package/dist/{238.e7da1693dc6480734527.bundle.js → 238.5e228bd5c12ece1093cc.bundle.js} +1 -1
  53. package/dist/{239.5a0e3e9d302c61c9dd2a.bundle.js → 239.8e061122b61743b3465f.bundle.js} +1 -1
  54. package/dist/{23.65519943d430769ff624.bundle.js → 24.92bf4e49692b9c75a55d.bundle.js} +1 -1
  55. package/dist/241.f9f39df3f0ec396ae5b5.bundle.js +1 -0
  56. package/dist/{242.4b96aef3e71a70c1c5dc.bundle.js → 242.c3f7c90837740f461b3b.bundle.js} +1 -1
  57. package/dist/{244.38f4a20f1b3a17482909.bundle.js → 244.3110bb5a8300d195e1f2.bundle.js} +1 -1
  58. package/dist/{246.69bb254202ff33946ba4.bundle.js → 246.2d6e5f29e5f75762eb07.bundle.js} +1 -1
  59. package/dist/248.037043809398c10fc5ef.bundle.js +1 -0
  60. package/dist/{24.ce44938fc8e7e0dd20a8.bundle.js → 25.76313d3de180de838f79.bundle.js} +1 -1
  61. package/dist/{250.1e06d075be2d6fab28da.bundle.js → 250.abf997bb3a868bcffa61.bundle.js} +1 -1
  62. package/dist/{25.dc83aef89e5a2d728c9a.bundle.js → 26.babc1c6662b9ba067177.bundle.js} +1 -1
  63. package/dist/{263.74a323fb27a3b00879e9.bundle.js → 263.2ff1f20fd7dc88370164.bundle.js} +1 -1
  64. package/dist/{267.c0c12cb49bc1e89c7b94.bundle.js → 267.5f65d2ac3a94255050c6.bundle.js} +1 -1
  65. package/dist/{26.810adeabe76dd0774dcd.bundle.js → 27.ed092438f83fe9075f02.bundle.js} +1 -1
  66. package/dist/{270.785670697c0455ac4b52.bundle.js → 270.df0269e47d234e3c7b53.bundle.js} +1 -1
  67. package/dist/{275.dcef80da1502f7da8c09.bundle.js → 275.963caf205807a9629ce2.bundle.js} +1 -1
  68. package/dist/{278.384136e3d0926f51464c.bundle.js → 278.aac622323c504e577b2a.bundle.js} +1 -1
  69. package/dist/{27.b41b821eff22e1910c8e.bundle.js → 28.48b50b803b4baaa34846.bundle.js} +1 -1
  70. package/dist/{282.bb843b144879c7953fae.bundle.js → 282.dd2315477a98a3ff5f83.bundle.js} +1 -1
  71. package/dist/{285.eb0437c8ef1eb29f15a2.bundle.js → 285.fe1f3516ae2d0723a085.bundle.js} +1 -1
  72. package/dist/{28.2a5850ca91ebaccf5ed6.bundle.js → 29.55c290bfb5c4616d2d81.bundle.js} +1 -1
  73. package/dist/294.b7b4f37beb07369dd85e.bundle.js +1 -0
  74. package/dist/{29.9f64f22c46c7b02a0ec8.bundle.js → 30.1b73d7094674c61834ba.bundle.js} +1 -1
  75. package/dist/{302.b20c8d1e643b2fdc4564.bundle.js → 302.89060f1450aaaa8329bf.bundle.js} +1 -1
  76. package/dist/{304.28ee878b3769022514fe.bundle.js → 304.65aa89b76b934124dbee.bundle.js} +1 -1
  77. package/dist/{30.75b398d38eabe765da4e.bundle.js → 31.85e82cea20093fb38001.bundle.js} +1 -1
  78. package/dist/{31.6e0bf46006dfb4b7338c.bundle.js → 32.febd6dc42d5e2a4244c8.bundle.js} +1 -1
  79. package/dist/326.8a369e8cb3db85e5fd21.bundle.js +1 -1
  80. package/dist/329.95f8d46ef472c45724ef.bundle.js +1 -1
  81. package/dist/{32.60795cfcb9c447399fc2.bundle.js → 33.94d61e47c49d1dc0d799.bundle.js} +1 -1
  82. package/dist/330.b557e07136977ad81a04.bundle.js +1 -1
  83. package/dist/331.70b775db910815aec7d5.bundle.js +1 -1
  84. package/dist/{33.d19f2c40b3b42b314591.bundle.js → 34.1fd643b9432470f8a604.bundle.js} +1 -1
  85. package/dist/{34.cd22a42400934b4cdf87.bundle.js → 35.af4ea855fb946c6455a8.bundle.js} +1 -1
  86. package/dist/{35.cfb69109b2c7ebc2d1ef.bundle.js → 36.0530100261e4e11638bf.bundle.js} +1 -1
  87. package/dist/361.48dd1b79917eaa9b7e6a.bundle.js +1 -1
  88. package/dist/{36.a7b1ed685913595d40e9.bundle.js → 37.8cd574980043ce8ce2c5.bundle.js} +1 -1
  89. package/dist/372.5e3859739cd36c6ffd8a.bundle.js +1 -1
  90. package/dist/373.6e2258b5ab6ced0f532d.bundle.js +1 -1
  91. package/dist/374.9e21d915726536564967.bundle.js +1 -1
  92. package/dist/375.fd66d9e99c21bb8621a7.bundle.js +1 -1
  93. package/dist/378.655ee2a6b9445fb98536.bundle.js +1 -0
  94. package/dist/{37.7a0d6e8f543f2ab93d6d.bundle.js → 38.50c1f0dadd0b2a1f2d5b.bundle.js} +1 -1
  95. package/dist/380.a1095e01a9df1355fd0a.bundle.js +1 -1
  96. package/dist/381.d57b46174191d9f426e9.bundle.js +1 -0
  97. package/dist/{38.f53ead5a867b583684cc.bundle.js → 39.17dd78ea525a513bc542.bundle.js} +1 -1
  98. package/dist/4.9a24659420974a60e2bd.bundle.js +1 -0
  99. package/dist/{39.b424e4c3cad0e7af5ac6.bundle.js → 40.135a8b3dbb9bfe3a30b4.bundle.js} +1 -1
  100. package/dist/{40.6479ea8c327190f89451.bundle.js → 41.b736d1963250d40b37f8.bundle.js} +1 -1
  101. package/dist/{42.c8adf98ad0104887b4ec.bundle.js → 42.edb1b0aa4f57312318a3.bundle.js} +1 -1
  102. package/dist/{43.f49aac05f6879c3dac89.bundle.js → 43.b67550476de4e84f6d54.bundle.js} +1 -1
  103. package/dist/{44.4322dcdd5bf0de55e04e.bundle.js → 44.0dcf36e865d7ccc58a98.bundle.js} +2 -2
  104. package/dist/45.27d67df97d00698f054a.bundle.js +1 -0
  105. package/dist/{47.0d580dbe9ed87bce496c.bundle.js → 47.d1aedf3c8b21df0c0db6.bundle.js} +1 -1
  106. package/dist/{48.fb09364abedeac430971.bundle.js → 48.d80d61369975c89e80db.bundle.js} +1 -1
  107. package/dist/{5.d34980533e122f4791f4.bundle.js → 5.016cab5488e6dabbbcb7.bundle.js} +1 -1
  108. package/dist/50.ec14ac614772913e0be0.bundle.js +1 -1
  109. package/dist/{51.8689b92a13bd2b2a3074.bundle.js → 51.ea2981187a41b2830b12.bundle.js} +1 -1
  110. package/dist/{53.3d653040b7defd01415f.bundle.js → 53.9230da51045afcd8b497.bundle.js} +1 -1
  111. package/dist/{57.0d4caf8a82a7ff1f1dca.bundle.js → 57.eeae8574f1671e69cc95.bundle.js} +1 -1
  112. package/dist/{58.c4cb8de207c705cee7a1.bundle.js → 58.bca4759e835334e5e710.bundle.js} +1 -1
  113. package/dist/{59.821da70e952924981e80.bundle.js → 59.aa594f0e5ea5ef6ab2a2.bundle.js} +1 -1
  114. package/dist/6.b9f1177353b195a6d88e.bundle.js +1 -0
  115. package/dist/{60.8deab4881eaf63bcd6a4.bundle.js → 60.039181bd14444d1ea257.bundle.js} +1 -1
  116. package/dist/61.7736faf8cd8733139f11.bundle.js +1 -1
  117. package/dist/{62.518759d544e052fd9256.bundle.js → 62.a1550d756c7796721dc1.bundle.js} +1 -1
  118. package/dist/{63.31bff84c37ea1de0acef.bundle.js → 63.57c05d1f522958467257.bundle.js} +1 -1
  119. package/dist/{64.3bac8674c52226912630.bundle.js → 64.3d6c08808a56fda8c18a.bundle.js} +1 -1
  120. package/dist/{65.a36fbde317ab57cce415.bundle.js → 65.530bfe6d5589879af56a.bundle.js} +1 -1
  121. package/dist/{66.8f8126d5175f62c3face.bundle.js → 66.592b440583a6e7c48336.bundle.js} +1 -1
  122. package/dist/{6.c639b6efdd4f0ac3d584.bundle.js → 7.542348a49b096f91f943.bundle.js} +1 -1
  123. package/dist/70.b7bc7b875addfff41525.bundle.js +1 -0
  124. package/dist/{74.e9db7f3271c826c88a78.bundle.js → 74.b027d1ed936bc8477060.bundle.js} +1 -1
  125. package/dist/{75.c25619a16d098a2721be.bundle.js → 75.46b361955c7b29de651b.bundle.js} +1 -1
  126. package/dist/{76.14ae4b937c879f457b25.bundle.js → 76.a33b72d5a897ff6f997e.bundle.js} +1 -1
  127. package/dist/{77.463f82a88b3c6e954c01.bundle.js → 77.66e2f439385f8b80c2d0.bundle.js} +1 -1
  128. package/dist/{78.1fa69d08bd50f06f636a.bundle.js → 78.1e4e853ae303c2980a07.bundle.js} +1 -1
  129. package/dist/{79.d5735446205c02c627cb.bundle.js → 79.91afac30b1857d2c92a7.bundle.js} +1 -1
  130. package/dist/8.f209baf701ce824606aa.bundle.js +1 -0
  131. package/dist/{80.9c57ff6117953efd9e90.bundle.js → 80.13225c4f7ca42fa0d371.bundle.js} +1 -1
  132. package/dist/81.cc5452e74f002eb3fc9d.bundle.js +1 -0
  133. package/dist/82.bb1512ea446fc990ee27.bundle.js +1 -0
  134. package/dist/{83.f9c096421bb5c0b29ba9.bundle.js → 83.ddb9d63112221a854b07.bundle.js} +1 -1
  135. package/dist/{84.514756b3a32bb6873cc1.bundle.js → 84.7979d2956e92650723eb.bundle.js} +1 -1
  136. package/dist/{85.70d008d869c71199d1e9.bundle.js → 85.f16029ac40b8d3d39fc0.bundle.js} +1 -1
  137. package/dist/{86.08b4429bf0ec0b5dcde0.bundle.js → 86.3e1118b3b3b2afa9bb66.bundle.js} +1 -1
  138. package/dist/{87.1b3837e239bd74b553ee.bundle.js → 87.678958410087d805075c.bundle.js} +1 -1
  139. package/dist/{89.6355fb17f7c9088bd61d.bundle.js → 89.6ac5c16928e147cba2dc.bundle.js} +1 -1
  140. package/dist/{8.b2bab85e9d32868938e8.bundle.js → 9.d94d4bf6e7269f1f1727.bundle.js} +1 -1
  141. package/dist/{90.c0be68f3cc4c02f18818.bundle.js → 90.1e1e6b754b039dd0b8de.bundle.js} +1 -1
  142. package/dist/{91.8a23e41280e7b69dba09.bundle.js → 91.e3a89118ae2dc2f1dc0f.bundle.js} +1 -1
  143. package/dist/{93.d7428790221f27764822.bundle.js → 93.a1f7a0484491627fbcc7.bundle.js} +1 -1
  144. package/dist/{94.f353e48cd582c9a3eeea.bundle.js → 94.3b61b1bbef667eb95aca.bundle.js} +1 -1
  145. package/dist/{95.2b1230102fa575c74b94.bundle.js → 95.4901c21c6119f2dcf99c.bundle.js} +1 -1
  146. package/dist/96.48ec2dc5cafc428581d6.bundle.js +1 -0
  147. package/dist/98.7bac7bac2ad7abf2e083.bundle.js +1 -0
  148. package/dist/{bundle.3cbc347e3527f274db18.bundle.js → bundle.08cbe1859ba528283283.bundle.js} +4 -4
  149. package/dist/i18n/locale-en.json +10 -2
  150. package/dist/i18n/locale-fr.json +10 -2
  151. package/dist/index.html +3 -3
  152. package/dist/js/angular/core/directives/autocomplete/templates/autocomplete.html +1 -1
  153. package/dist/js/angular/core/directives/operations-statuses-monitor/templates/operations-statuses-monitor.html +1 -1
  154. package/dist/js/angular/core/directives/rdfresourcesearch/templates/rdfResourceSearchTemplate.html +1 -1
  155. package/dist/js/angular/core/directives/yasgui-component/templates/yasgui-component.html +1 -1
  156. package/dist/js/angular/security/templates/user.html +1 -1
  157. package/dist/js/angular/ttyg/templates/modal/agent-settings-modal.html +2 -2
  158. package/dist/js/angular/ttyg/templates/ttyg.html +1 -1
  159. package/dist/license-checker-static.json +7 -0
  160. package/dist/license-checker.json +2 -2
  161. package/dist/pages/aclmanagement.html +2 -2
  162. package/dist/pages/autocomplete.html +1 -1
  163. package/dist/pages/choose-repository-type.html +1 -1
  164. package/dist/pages/cluster-management/clusterInfo.html +3 -3
  165. package/dist/pages/create-index.html +1 -1
  166. package/dist/pages/dependencies.html +1 -1
  167. package/dist/pages/domainRangeInfo.html +2 -2
  168. package/dist/pages/edit.html +3 -3
  169. package/dist/pages/explore.html +1 -1
  170. package/dist/pages/export.html +1 -1
  171. package/dist/pages/find.html +1 -1
  172. package/dist/pages/graph-config/saveGraphConfig.html +8 -8
  173. package/dist/pages/graphs-visualizations.html +7 -7
  174. package/dist/pages/guides.html +1 -1
  175. package/dist/pages/import.html +2 -2
  176. package/dist/pages/jdbc-create.html +1 -1
  177. package/dist/pages/monitor/backup-and-restore.html +1 -1
  178. package/dist/pages/monitor/queries.html +1 -1
  179. package/dist/pages/monitor/resources.html +1 -1
  180. package/dist/pages/namespaces.html +2 -2
  181. package/dist/pages/plugins.html +1 -1
  182. package/dist/pages/rdfClassHierarchyInfo.html +7 -7
  183. package/dist/pages/rdfrank.html +2 -2
  184. package/dist/pages/repositories.html +1 -1
  185. package/dist/pages/repository.html +1 -1
  186. package/dist/pages/similarity-indexes.html +1 -1
  187. package/dist/pages/sparql-editor.html +1 -1
  188. package/dist/pages/sparql-template-create.html +1 -1
  189. package/dist/pages/ux-test1.html +2 -2
  190. package/dist/pages/webapi.html +2 -2
  191. package/dist/res/swagger5/index.html +12 -12
  192. package/package.json +1 -1
  193. package/dist/113.6d341bb94caa74a19866.bundle.js +0 -1
  194. package/dist/128.f414d604bcd013bf911d.bundle.js +0 -1
  195. package/dist/13.dd3daf303c726658ee20.bundle.js +0 -2
  196. package/dist/2.5ecba6f91ee9aba0f72b.bundle.js +0 -2
  197. package/dist/200.92f1a086ea5aef9edf3b.bundle.js +0 -1
  198. package/dist/21.54344d162b6a34c9b801.bundle.js +0 -1
  199. package/dist/22.d0b623eb0f96c9aa6b24.bundle.js +0 -2
  200. package/dist/241.0d40fca2dbe1e4286b0a.bundle.js +0 -1
  201. package/dist/248.1c51c8776dafd2938c2f.bundle.js +0 -1
  202. package/dist/294.2cce50bef12473652329.bundle.js +0 -1
  203. package/dist/378.3bd7c408c54fcd423c10.bundle.js +0 -1
  204. package/dist/381.104beacb095b894100a3.bundle.js +0 -1
  205. package/dist/4.a6011f0d50143709767a.bundle.js +0 -1
  206. package/dist/41.4d964baeed672c11337a.bundle.js +0 -1
  207. package/dist/45.c7588a46eb35e1030511.bundle.js +0 -1
  208. package/dist/7.83006fb76d213f065ce3.bundle.js +0 -1
  209. package/dist/70.70bb2af41d1cec8e2fa0.bundle.js +0 -1
  210. package/dist/81.6abcbb0a4f0c5371da19.bundle.js +0 -1
  211. package/dist/82.3a7ddfc6c1efaf493f3f.bundle.js +0 -1
  212. package/dist/9.c92dd64e96b478a92d2e.bundle.js +0 -1
  213. package/dist/96.701d4c87469fd1ae6073.bundle.js +0 -1
  214. package/dist/98.9ce0dc28adca0979eac7.bundle.js +0 -1
@@ -1 +0,0 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([[128],{101:function(e,n,o){"use strict";function t(e,n,o,t,r){e.JSONLDModes=[{name:"framed",link:"http://www.w3.org/ns/json-ld#framed"},{name:"expanded",link:"http://www.w3.org/ns/json-ld#expanded"},{name:"flattened",link:"http://www.w3.org/ns/json-ld#flattened"},{name:"compacted",link:"http://www.w3.org/ns/json-ld#compacted"}],e.JSONLDModesNames=e.JSONLDModes.reduce((function(e,n){return e[n.name]=n.name,e}),{}),e.JSONLDFramedModes=[e.JSONLDModesNames.framed],e.JSONLDContextModes=[e.JSONLDModesNames.compacted,e.JSONLDModesNames.flattened],e.defaultMode=e.JSONLDModes.find(e=>"expanded"===e.name),e.currentMode=e.defaultMode,e.link=null,e.fileFormat=r.toLowerCase(),e.setJSONLDSettingsToLocalStorage=function(e,n,r){o.set(t.JSONLD_EXPORT_SETTINGS,JSON.stringify({jsonldFormName:e,jsonldFormLink:n,jsonldLink:r}))},e.cancel=function(){n.dismiss()},e.reset=function(){e.currentMode=e.defaultMode,e.link="",e.setJSONLDSettingsToLocalStorage(e.currentMode.name,e.currentMode.link,e.link)},e.clearLinkInput=function(){e.link="",e.setJSONLDSettingsToLocalStorage(e.currentMode.name,e.currentMode.link,e.link)},e.exportJsonLD=function(){e.setJSONLDSettingsToLocalStorage(e.currentMode.name,e.currentMode.link,e.link),n.close({currentMode:e.currentMode,link:e.link})};!function(){const n=o.get(t.JSONLD_EXPORT_SETTINGS);n&&(e.currentMode=e.JSONLDModes.find(e=>e.name===n.jsonldFormName),e.link=n.jsonldLink)}()}o.r(n),o.d(n,"ExportSettingsCtrl",(function(){return t})),angular.module("graphdb.framework.core.components.export-settings-modal",["graphdb.framework.utils.localstorageadapter"]).controller("ExportSettingsCtrl",t),t.$inject=["$scope","$uibModalInstance","LocalStorageAdapter","LSKeys","format"]}}]);
@@ -1,2 +0,0 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([[13,128,271,298],{101:function(e,t,n){"use strict";function o(e,t,n,o,r){e.JSONLDModes=[{name:"framed",link:"http://www.w3.org/ns/json-ld#framed"},{name:"expanded",link:"http://www.w3.org/ns/json-ld#expanded"},{name:"flattened",link:"http://www.w3.org/ns/json-ld#flattened"},{name:"compacted",link:"http://www.w3.org/ns/json-ld#compacted"}],e.JSONLDModesNames=e.JSONLDModes.reduce((function(e,t){return e[t.name]=t.name,e}),{}),e.JSONLDFramedModes=[e.JSONLDModesNames.framed],e.JSONLDContextModes=[e.JSONLDModesNames.compacted,e.JSONLDModesNames.flattened],e.defaultMode=e.JSONLDModes.find(e=>"expanded"===e.name),e.currentMode=e.defaultMode,e.link=null,e.fileFormat=r.toLowerCase(),e.setJSONLDSettingsToLocalStorage=function(e,t,r){n.set(o.JSONLD_EXPORT_SETTINGS,JSON.stringify({jsonldFormName:e,jsonldFormLink:t,jsonldLink:r}))},e.cancel=function(){t.dismiss()},e.reset=function(){e.currentMode=e.defaultMode,e.link="",e.setJSONLDSettingsToLocalStorage(e.currentMode.name,e.currentMode.link,e.link)},e.clearLinkInput=function(){e.link="",e.setJSONLDSettingsToLocalStorage(e.currentMode.name,e.currentMode.link,e.link)},e.exportJsonLD=function(){e.setJSONLDSettingsToLocalStorage(e.currentMode.name,e.currentMode.link,e.link),t.close({currentMode:e.currentMode,link:e.link})};!function(){const t=n.get(o.JSONLD_EXPORT_SETTINGS);t&&(e.currentMode=e.JSONLDModes.find(e=>e.name===t.jsonldFormName),e.link=t.jsonldLink)}()}n.r(t),n.d(t,"ExportSettingsCtrl",(function(){return o})),angular.module("graphdb.framework.core.components.export-settings-modal",["graphdb.framework.utils.localstorageadapter"]).controller("ExportSettingsCtrl",o),o.$inject=["$scope","$uibModalInstance","LocalStorageAdapter","LSKeys","format"]},112:function(e,t){angular.module("graphdb.workbench.utils.filetypes",[]).value("FileTypes",[{name:"JSON",translateKey:"download.as.json",type:"application/rdf+json",extension:".json"},{name:"JSON-LD",translateKey:"download.as.jsonld",type:"application/ld+json",extension:".jsonld"},{name:"NDJSON-LD",translateKey:"download.as.ndjsonld",type:"application/x-ld+ndjson",extension:".ndjsonld"},{name:"RDF-XML",translateKey:"download.as.rdfxml",type:"application/rdf+xml",extension:".rdf"},{name:"N3",translateKey:"download.as.n3",type:"text/rdf+n3",extension:".n3"},{name:"N-Triples",translateKey:"download.as.ntriples",type:"text/plain",extension:".nt"},{name:"N-Quads",translateKey:"download.as.nquads",type:"text/x-nquads",extension:".nq"},{name:"Turtle",translateKey:"download.as.turtle",type:"text/turtle",extension:".ttl"},{name:"Turtle*",translateKey:"download.as.turtlestar",type:"application/x-turtlestar",extension:".ttls"},{name:"TriX",translateKey:"download.as.trix",type:"application/trix",extension:".trix"},{name:"TriG",translateKey:"download.as.trig",type:"application/x-trig",extension:".trig"},{name:"TriG*",translateKey:"download.as.trigstar",type:"application/x-trigstar",extension:".trigs"},{name:"Binary RDF",translateKey:"download.as.binaryrdf",type:"application/x-binary-rdf",extension:".brf"}])},196:function(e,t){angular.module("graphdb.framework.rest.export.service",[]).factory("ExportRestService",n),n.$inject=["$http","$repositories","$translate"];function n(e,t,n){return{getExportedStatementsAsJSONLD:function(t,n,o,r,a){const i=`repositories/${n.id}/statements?infer=false`,s={location:n.location},l={accept:a.accept};Array.isArray(t)?s.context=t.map(e=>decodeURIComponent(e)):t&&(s.context=decodeURIComponent(o[t.value].exportUri));r&&(s.authToken=r);a.link&&""!==a.link&&(l.link=a.link);return e({url:i,method:"GET",params:s,headers:l,responseType:"blob"}).then((function(e){const t=e.data;let n=e.headers()["content-disposition"].split("filename=")[1];return n=n.substring(0,n.length),{data:t,filename:n}}))}}}},275:function(e,t,n){"use strict";n.r(t);n(7),n(32),n(33),n(112),n(196);var o=n(510),r=n(0),a=n(30),i=n(101);angular.module("graphdb.framework.impex.export.controllers",["ngCookies","ui.bootstrap","toastr","graphdb.framework.core.services.repositories","graphdb.framework.core.services.jwtauth","graphdb.workbench.utils.filetypes","graphdb.framework.rest.export.service"]).controller("ExportCtrl",["$scope","$http","$location","$timeout","ModalService","filterFilter","$repositories","toastr","ExportRestService","RDF4JRepositoriesRestService","FileTypes","$translate","AuthTokenService","$uibModal",function(e,t,n,s,l,p,c,d,u,g,f,h,m,x){e.getActiveRepository=function(){return c.getActiveRepository()},e.exportFormats=f,e.deleting={},e.showExportDDTooltip=!0,e.page=1,e.pageSize=10,e.pageSizeOptions=[10,20,50,100],e.displayGraphs=[],e.exportFilter="",e.export=!0,e.exportMultipleGraphs=!1,e.repoExportFormat={name:"TriG",type:"application/x-trig",extension:".trig"},e.selectedGraphs={exportGraphs:{}},e.$watch((function(){return c.getActiveRepository()}),(function(){e.exportFilter="",e.getGraphs(),e.selectedAll=!1,s((function(){e.changePageSize(10)}),100)})),e.isShacl=function(e){return"http%3A%2F%2Frdf4j.org%2Fschema%2Frdf4j%23SHACLShapeGraph"===e},e.getGraphs=function(){e.getActiveRepository()?(e.loader=!0,g.getGraphs(e.getActiveRepository()).success((function(t){t.results.bindings.unshift({contextID:{type:"default",value:"import.default.graph"}}),e.graphsByValue={},Object.keys(t.results.bindings).forEach((function(n){const o=t.results.bindings[n];"bnode"===o.contextID.type?o.contextID.value="_:"+o.contextID.value:"default"===o.contextID.type?(o.contextID.uri=encodeURIComponent("http://www.openrdf.org/schema/sesame#nil"),o.contextID.clearUri="DEFAULT",o.contextID.exportUri="null",o.contextID.longName="default graph"):(o.contextID.uri=encodeURIComponent(o.contextID.value),o.contextID.clearUri="GRAPH <"+o.contextID.value+">",o.contextID.exportUri=encodeURIComponent("<"+o.contextID.value+">"),o.contextID.longName="named graph "+o.contextID.value),e.graphsByValue[o.contextID.value]=o.contextID})),e.graphs=t.results.bindings,e.filteredGraphs=Object(a.cloneDeep)(e.graphs),e.displayGraphs=e.filteredGraphs.slice(e.pageSize*(e.page-1),e.pageSize*e.page),e.loader=!1,e.selectedGraphs.exportGraphs={},e.matchedElements=e.graphs})).error((function(t,n){const o=getError(t,n);"There is no active location!"===o&&(c.setRepository(""),d.error(o,h.instant("common.error"))),e.loader=!1}))):e.loader=!1},e.onGraphSearch=function(){e.matchedElements=[],e.deselectAll(),e.filterResults()},e.filterResults=function(){angular.forEach(e.graphs,(function(t){-1!==t.contextID.value.indexOf(e.exportFilter)&&e.matchedElements.push(t)}))},e.downloadExport=function(e,t){let n=e+"&Accept="+encodeURIComponent(t.type);const o=m.getAuthToken();o&&(n=n+"&authToken="+encodeURIComponent(o));let r=window.open(n);s((function(){"about:blank"!==r.document.location.href&&(r.close(),d.error("Could not export graph. Check GraphDB logs for detailed reason."))}),100)},e.openExportDDTooltip=function(){e.showExportDDTooltip&&(s((function(){$("#tooltipTarget").trigger("showExportDDTooltip")}),0),s((function(){$("#tooltipTarget").trigger("showExportDDTooltip")}),3e3),e.showExportDDTooltip=!1)},e.exportRepo=function(t,n){"application/rdf+xml"===t.type||"text/plain"===t.type||"text/turtle"===t.type||"application/x-turtlestar"===t.type||"text/rdf+n3"===t.type?l.openSimpleModal({title:h.instant("common.warning"),message:Object(r.decodeHTML)(h.instant("export.format.warning.msg")),warning:!0}).result.then((function(){e.startDownload(t,n)})):e.startDownload(t,n)},e.openJSONLDExportSettings=function(t,n){x.open({templateUrl:"js/angular/core/components/export-settings-modal/exportSettingsModal.html",controller:i.ExportSettingsCtrl,size:"lg",scope:e,resolve:{format:function(){return t.name}}}).result.then((function(r){const a="framed"===r.currentMode.name?"frame":"context",i=r.link?`<${r.link}>; rel="http://www.w3.org/ns/json-ld#${a}"`:"";!function(e,t,n,r,a,i){const s={accept:e.type+";profile="+i.link,link:n};u.getExportedStatementsAsJSONLD(t,r,a,m.getAuthToken(),s).then((function({data:e,filename:t}){Object(o.saveAs)(e,t)})).catch((function(e){e.data.text().then(t=>{431===e.status?d.error(e.statusText,h.instant("common.error")):d.error(t,h.instant("common.error"))})}))}(t,n,i,c.getActiveRepositoryObject(),e.graphsByValue,r.currentMode)}))},e.startDownload=function(t,n){let o;const r=c.getActiveRepositoryObject();o=n?`repositories/${r.id}/statements?infer=false&context=${e.graphsByValue[n.value].exportUri}&location=${encodeURIComponent(r.location)}`:`repositories/${r.id}/statements?infer=false&location=${encodeURIComponent(r.location)}`,e.downloadExport(o,t)},e.hasMultipleSelected=function(){if(_.isEmpty(e.selectedGraphs.exportGraphs))return!_.isEmpty(e.selectedGraphs.exportGraphs);for(const t in e.selectedGraphs.exportGraphs)if(!0===e.selectedGraphs.exportGraphs[t])return!0;return!1},e.openJSONLDExportSettingsForSelectedGraphs=function(t){const n=Object.keys(e.selectedGraphs.exportGraphs).filter(t=>e.selectedGraphs.exportGraphs[t]).map(t=>e.graphsByValue[t].exportUri);n?e.openJSONLDExportSettings(t,n):l.openSimpleModal({title:h.instant("export.multiple.graph"),message:h.instant("export.check.graphs.msg"),warning:!0})},e.exportSelectedGraphs=function(t){let n="";for(const t in e.selectedGraphs.exportGraphs)e.selectedGraphs.exportGraphs[t]&&(n+="context="+e.graphsByValue[t].exportUri+"&");if(n){const o=function(){n=n.substring(0,n.length-1);const o="repositories/"+e.getActiveRepository()+"/statements?infer=false&"+n;e.downloadExport(o,t)};"application/rdf+xml"===t.type||"text/plain"===t.type||"text/turtle"===t.type||"application/x-turtlestar"===t.type||"text/rdf+n3"===t.type?l.openSimpleModal({title:h.instant("common.warning"),message:Object(r.decodeHTML)(h.instant("export.format.warning.msg")),warning:!0}).result.then((function(){o()})):o()}else l.openSimpleModal({title:h.instant("export.multiple.graph"),message:h.instant("export.check.graphs.msg"),warning:!0})},e.$watch("exportFilter",(function(){if(e.filteredGraphs=p(e.graphs,e.exportFilter),e.getActiveRepository()&&angular.element(document).find(".btn.btn-secondary.btn-sm.dropdown-toggle span").length){const t=angular.element(document).find(".btn.btn-secondary.btn-sm.dropdown-toggle span")[0].innerHTML.trim();let n;"All"===t&&(n=e.filteredGraphs.length),e.filteredGraphs&&e.filteredGraphs.length>e.pageSize&&"All"!==t&&(n=e.pageSize),e.changePageSize(n),e.changePagination()}})),e.changePagination=function(){e.selectedAll=!1,angular.isDefined(e.filteredGraphs)&&(e.displayGraphs=e.filteredGraphs.slice(e.pageSize*(e.page-1),e.pageSize*e.page))},e.changePageSize=function(t){$(".ot-graph-page-size").removeClass("active"),e.page=1,t&&(e.pageSize=t,e.changePagination()),e.filteredGraphs&&""!==e.exportFilter&&(e.displayGraphs=e.filteredGraphs)},e.checkAll=function(){e.selectedAll=e.selectedAll||!1,angular.forEach(e.displayGraphs,(function(t){t.contextID.uri&&(e.selectedGraphs.exportGraphs[t.contextID.value]=e.selectedAll)}))},e.deselectAll=function(){e.selectedAll=!1,angular.forEach(e.displayGraphs,(function(t){t.contextID.uri&&(e.selectedGraphs.exportGraphs[t.contextID.value]=!1)}))},e.dropRepository=function(){e.canWriteActiveRepo()&&(e.deleting["*"]=!0,l.openSimpleModal({title:h.instant("export.confirm.clear.msg"),message:h.instant("export.warning.clear.repo.msg",{repo:c.getActiveRepository()}),warning:!0}).result.then((function(){s((function(){g.addStatements(c.getActiveRepository(),"update=CLEAR ALL").then((function(){e.deleting["*"]=!1,d.success(h.instant("export.cleared.repo",{repo:c.getActiveRepository()})),e.getGraphs()}),(function(t){e.deleting["*"]=!1;const n=t.data;"string"==typeof n&&n.indexOf("Clearing all statements in the repository is incompatible with collecting history")>-1?d.error(h.instant("export.clearing.statements.warning")):d.error(h.instant("export.cleared.repo.failed.msg",{repo:c.getActiveRepository()}),t)}))}),100)})))},e.dropContext=function(t){e.canWriteActiveRepo()&&(angular.isDefined(t)?function(t){const n=t.contextID.longName;e.deleting[t]=!0,l.openSimpleModal({title:h.instant("export.confirm.clear.graph"),message:h.instant("export.clear.graph.warning",{longName:n}),warning:!0}).result.then((function(){s((function(){const o="update=CLEAR "+t.contextID.clearUri;g.addStatements(c.getActiveRepository(),o).then((function(){e.deleting[t]=!1,d.success(h.instant("export.cleared.graph",{longName:n})),e.getGraphs(),e.exportFilter="",e.filteredGraphs.length=0,e.updateResults(),e.changePageSize(e.pageSize)}),(function(o){e.deleting[t]=!1,d.error(h.instant("export.clear.graph.msg",{longName:n}),getError(o,o.status))}))}),100)}),(function(){e.deleting[t]=!1}))}(t):function(t){const n=[];angular.forEach(e.selectedGraphs.exportGraphs,(function(e,t){e&&n.push(t)})),n.length>0&&(e.deleting[t]=!0,l.openSimpleModal({title:h.instant("export.confirm.clear.graph"),message:h.instant("export.warning.clear.graph.msg"),warning:!0}).result.then((function(){s((function(){let t=0;angular.forEach(n,(function(o){const r="update=CLEAR "+e.graphsByValue[o].clearUri;g.addStatements(c.getActiveRepository(),r).then((function(){e.loader=!0,e.selectedGraphs.exportGraphs[o]=!1,delete e.selectedGraphs.exportGraphs[o],t++,n.length===t&&(e.selectedAll=!1,e.exportFilter="",e.filteredGraphs.length=0,e.getGraphs(),e.updateResults(),e.changePageSize(e.pageSize),d.success(h.instant("export.cleared.graph.msg")),e.loader=!1)}),(function(t){const n=e.graphsByValue[o].longName;d.error(h.instant("export.clear.graph.msg",{longName:n}),getError(t,t.status)),e.selectedAll=!1}))}))}),100)}),(function(){e.deleting[t]=!1})))}(t))}}])},509:function(e,t){(function(t){e.exports=t}).call(this,{})},510:function(e,t,n){var o,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},o=t.createElementNS("http://www.w3.org/1999/xhtml","a"),r=e.webkitRequestFileSystem,a=e.requestFileSystem||r||e.mozRequestFileSystem,i=function(t){(e.setImmediate||e.setTimeout)((function(){throw t}),0)},s=0,l=function(t){var o=function(){"string"==typeof t?n().revokeObjectURL(t):t.remove()};e.chrome?o():setTimeout(o,500)},p=function(e,t,n){for(var o=(t=[].concat(t)).length;o--;){var r=e["on"+t[o]];if("function"==typeof r)try{r.call(e,n||e)}catch(e){i(e)}}},c=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},d=function(t,i){t=c(t);var d,u,g,f=this,h=t.type,m=!1,x=function(){p(f,"writestart progress write writeend".split(" "))},y=function(){(!m&&d||(d=n().createObjectURL(t)),u)?u.location.href=d:null==e.open(d,"_blank")&&"undefined"!=typeof safari&&(e.location.href=d);f.readyState=f.DONE,x(),l(d)},w=function(e){return function(){if(f.readyState!==f.DONE)return e.apply(this,arguments)}},S={create:!0,exclusive:!1};if(f.readyState=f.INIT,i||(i="download"),o)return d=n().createObjectURL(t),o.href=d,o.download=i,void setTimeout((function(){var e,t;e=o,t=new MouseEvent("click"),e.dispatchEvent(t),x(),l(d),f.readyState=f.DONE}));e.chrome&&h&&"application/octet-stream"!==h&&(g=t.slice||t.webkitSlice,t=g.call(t,0,t.size,"application/octet-stream"),m=!0),r&&"download"!==i&&(i+=".download"),("application/octet-stream"===h||r)&&(u=e),a?(s+=t.size,a(e.TEMPORARY,s,w((function(e){e.root.getDirectory("saved",S,w((function(e){var n=function(){e.getFile(i,S,w((function(e){e.createWriter(w((function(n){n.onwriteend=function(t){u.location.href=e.toURL(),f.readyState=f.DONE,p(f,"writeend",t),l(e)},n.onerror=function(){var e=n.error;e.code!==e.ABORT_ERR&&y()},"writestart progress write abort".split(" ").forEach((function(e){n["on"+e]=f["on"+e]})),n.write(t),f.abort=function(){n.abort(),f.readyState=f.DONE},f.readyState=f.WRITING})),y)})),y)};e.getFile(i,{create:!1},w((function(e){e.remove(),n()})),w((function(e){e.code===e.NOT_FOUND_ERR?n():y()})))})),y)})),y)):y()},u=d.prototype;return"undefined"!=typeof navigator&&navigator.msSaveOrOpenBlob?function(e,t){return navigator.msSaveOrOpenBlob(c(e),t)}:(u.abort=function(){this.readyState=this.DONE,p(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 d(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(521)&&null!=n(509)&&(void 0===(o=function(){return r}.apply(t,[]))||(e.exports=o))},521:function(e,t){e.exports=function(){throw new Error("define cannot be used indirect")}}}]);
@@ -1,2 +0,0 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([[2,24,34,86,95,112,128,134,202,203,204,205,206,207,208,211,212,213,214,216,217,225,244,246,250,302],{101:function(e,t,n){"use strict";function r(e,t,n,r,o){e.JSONLDModes=[{name:"framed",link:"http://www.w3.org/ns/json-ld#framed"},{name:"expanded",link:"http://www.w3.org/ns/json-ld#expanded"},{name:"flattened",link:"http://www.w3.org/ns/json-ld#flattened"},{name:"compacted",link:"http://www.w3.org/ns/json-ld#compacted"}],e.JSONLDModesNames=e.JSONLDModes.reduce((function(e,t){return e[t.name]=t.name,e}),{}),e.JSONLDFramedModes=[e.JSONLDModesNames.framed],e.JSONLDContextModes=[e.JSONLDModesNames.compacted,e.JSONLDModesNames.flattened],e.defaultMode=e.JSONLDModes.find(e=>"expanded"===e.name),e.currentMode=e.defaultMode,e.link=null,e.fileFormat=o.toLowerCase(),e.setJSONLDSettingsToLocalStorage=function(e,t,o){n.set(r.JSONLD_EXPORT_SETTINGS,JSON.stringify({jsonldFormName:e,jsonldFormLink:t,jsonldLink:o}))},e.cancel=function(){t.dismiss()},e.reset=function(){e.currentMode=e.defaultMode,e.link="",e.setJSONLDSettingsToLocalStorage(e.currentMode.name,e.currentMode.link,e.link)},e.clearLinkInput=function(){e.link="",e.setJSONLDSettingsToLocalStorage(e.currentMode.name,e.currentMode.link,e.link)},e.exportJsonLD=function(){e.setJSONLDSettingsToLocalStorage(e.currentMode.name,e.currentMode.link,e.link),t.close({currentMode:e.currentMode,link:e.link})};!function(){const t=n.get(r.JSONLD_EXPORT_SETTINGS);t&&(e.currentMode=e.JSONLDModes.find(e=>e.name===t.jsonldFormName),e.link=t.jsonldLink)}()}n.r(t),n.d(t,"ExportSettingsCtrl",(function(){return r})),angular.module("graphdb.framework.core.components.export-settings-modal",["graphdb.framework.utils.localstorageadapter"]).controller("ExportSettingsCtrl",r),r.$inject=["$scope","$uibModalInstance","LocalStorageAdapter","LSKeys","format"]},102:function(e,t,n){"use strict";n.r(t),n.d(t,"EventDataType",(function(){return r}));const r={DOWNLOAD_AS:"downloadAs",NOTIFICATION_MESSAGE:"notificationMessage",QUERY:"query",COUNT_QUERY:"countQuery",COUNT_QUERY_RESPONSE:"countQueryResponse",REQUEST_ABORTED:"requestAborted",QUERY_EXECUTED:"queryExecuted",SAVE_QUERY_OPENED:"saveQueryOpened"}},106:function(e,t,n){"use strict";n.r(t);n(185),n(186);var r=n(128),o=n(30),s=n(510),a=n(187),i=n(102),u=n(13),c=n(138),d=n(606),l=n(109),p=n(188),y=n(15),g=n(189),E=n(190),m=n(101);function f(e,t,n,f,h,S,T,v,_,R,b,O,N,C,A,w){return{restrict:"E",templateUrl:"js/angular/core/directives/yasgui-component/templates/yasgui-component.html",scope:{yasguiConfig:"=",afterInit:"&",queryChanged:"&"},link:(f,w,q)=>{f.classToApply=q.class||"";const Q=new Map,L=f.yasguiConfig&&f.yasguiConfig.outputHandlers?new Map(f.yasguiConfig.outputHandlers):new Map;let D=void 0;f.getOntotextYasguiElements=()=>w.find("ontotext-yasgui"),f.getOntotextYasguiElement=()=>new p.YasguiComponent(f.getOntotextYasguiElements()[0]),f.createSavedQuery=e=>{const t=Object(r.queryPayloadFromEvent)(e);C.addNewSavedQuery(t).then(()=>z(t)).catch(J)},f.updateSavedQuery=e=>{const t=Object(r.queryPayloadFromEvent)(e);C.editSavedQuery(t).then(()=>X(t)).catch(J)},f.deleteSavedQuery=e=>{const t=Object(r.queryPayloadFromEvent)(e);C.deleteSavedQuery(t.name).then(()=>{_.success(n.instant("query.editor.delete.saved.query.success.msg",{savedQueryName:t.name}))}).catch(e=>{const t=getError(e);_.error(t,n.instant("query.editor.delete.saved.query.error"))})},f.shareSavedQuery=e=>{const t=Object(r.queryPayloadFromEvent)(e);f.savedQueryConfig={shareQueryLink:A.createShareSavedQueryLink(t.name,t.owner)}},f.shareQuery=e=>{const t=Object(r.queryPayloadFromEvent)(e);f.savedQueryConfig={shareQueryLink:A.createShareQueryLink(t)}},f.queryShareLinkCopied=()=>{_.success(n.instant("modal.ctr.copy.url.success"))},f.loadSavedQueries=()=>{C.getSavedQueries().then(e=>{const t=Object(r.savedQueriesResponseMapper)(e);f.savedQueryConfig={savedQueries:t}}).catch(e=>{const t=getError(e);_.error(t,n.instant("query.editor.get.saved.queries.error"))})},f.saveQueryOpened=e=>{y.YasguiComponentDirectiveUtil.highlightTabName(Object(a.toYasguiOutputModel)(e).getTab())},f.output=e=>{const t=Object(a.toYasguiOutputModel)(e);L.has(t.TYPE)&&L.get(t.TYPE)(t)};L.set(i.EventDataType.QUERY,e=>{const t=e.getPageNumber(),n=e.getPageSize();n&&t&&(e.setOffset((t-1)*(n-1)),e.setLimit(n)),e.setPageNumber(void 0),e.setPageSize(void 0)});L.set(i.EventDataType.COUNT_QUERY,e=>{e.setPageSize(void 0),e.setPageNumber(void 0),e.setCount(1)});L.set(i.EventDataType.COUNT_QUERY_RESPONSE,e=>{e.setTotalElements(B(e))});L.set(i.EventDataType.DOWNLOAD_AS,e=>{const t=Q.get(e.pluginName);t&&t(e)});L.set(i.EventDataType.NOTIFICATION_MESSAGE,e=>{const t=_[e.messageType];Object(o.isFunction)(t)&&t(e.message)});Q.set("extended_response",e=>{"application/sparql-results+json"===e.contentType?f.getOntotextYasguiElement().getEmbeddedResultAsJson().then(t=>{const n=JSON.stringify(t,null,"\t");Object(a.downloadAsFile)(j()+"_queryResults.json",e.contentType,n)}):"text/csv"===e.contentType&&f.getOntotextYasguiElement().getEmbeddedResultAsCSV().then(t=>{Object(a.downloadAsFile)(j()+"_queryResults.csv",e.contentType,t)})});const P=(e,r,o,a,i,u)=>{const c={query:e,infer:r,sameAs:o,authToken:a};O.downloadResultsAsFile(t.getActiveRepository(),c,i,u).then((function({data:e,filename:t}){Object(s.saveAs)(e,t)})).catch((function(e){e.data.text().then(t=>{431===e.status?_.error(e.statusText,n.instant("common.error")):_.error(t,n.instant("common.error"))})})).finally(()=>{f.setLoader(!1)})};Q.set(c.YasrPluginName.EXTENDED_TABLE,e=>{const t=e.query,n=e.infer,r=e.sameAs,o=e.contentType,s=T.getAuthToken()||"";if("application/ld+json"===e.contentType||"application/x-ld+ndjson"===e.contentType){S.open({templateUrl:"js/angular/core/components/export-settings-modal/exportSettingsModal.html",controller:m.ExportSettingsCtrl,size:"lg",scope:f,resolve:{format:function(){return"application/ld+json"===e.contentType?"JSON-LD":"NDJSON-LD"}}}).result.then((function(e){const a="framed"===e.currentMode.name?"frame":"context",i=o+";profile="+e.currentMode.link,u=e.link?`<${e.link}>; rel="http://www.w3.org/ns/json-ld#${a}"`:"";P(t,n,r,s,i,u)}))}else P(t,n,r,s,o,"")});const M=[],Y=()=>f.getOntotextYasguiElement().getQuery().then(e=>{D=JSON.stringify(e)});M.push(f.$watch("yasguiConfig",(r,o)=>{if(!f.ontotextYasguiConfig&&r||r&&!Object(d.isEqual)(r,o)){const o=t.isActiveRepoOntopType(),s={isVirtualRepository:o,infer:o||r.infer,immutableInfer:o,sameAs:o||r.sameAs,immutableSameAs:o,yasqeAutocomplete:{LocalNamesAutocompleter:t=>{const n=e.defer();return W(t,n)}},language:h.getLanguage(),i18n:R.getTranslations(),getRepositoryStatementsCount:V,onQueryAborted:K};if(angular.extend(s,$(),f.yasguiConfig),void 0===s.showQueryButton||s.showQueryButton){const e=s.keyboardShortcutConfiguration||{};e[g.KeyboardShortcutName.EXECUTE_EXPLAIN_PLAN_FOR_QUERY]=!0,e[g.KeyboardShortcutName.EXECUTE_CHAT_GPT_EXPLAIN_PLAN_FOR_QUERY]=!0,s.keyboardShortcutConfiguration=e}else{const e=s.keyboardShortcutConfiguration||{};e[g.KeyboardShortcutName.EXECUTE_QUERY_OR_UPDATE]=!1,e[g.KeyboardShortcutName.EXECUTE_EXPLAIN_PLAN_FOR_QUERY]=!1,e[g.KeyboardShortcutName.EXECUTE_CHAT_GPT_EXPLAIN_PLAN_FOR_QUERY]=!1,e[g.KeyboardShortcutName.CREATE_TAB]=!1,e[g.KeyboardShortcutName.CREATE_SAVE_QUERY]=!1,e[g.KeyboardShortcutName.SWITCH_NEXT_TAB]=!1,e[g.KeyboardShortcutName.SWITCH_PREVIOUS_TAB]=!1,e[g.KeyboardShortcutName.CLOSES_ALL_TABS]=!1,s.keyboardShortcutConfiguration=e}E.YasguiPersistenceMigrationService.isMigrationNeeded()&&E.YasguiPersistenceMigrationService.migrateYasguiPersistence(n.instant("sparql.tab.directive.unnamed.tab.title")),f.ontotextYasguiConfig=s,U(),Y().then(()=>{angular.isFunction(f.afterInit)&&f.afterInit()})}}));const I=()=>{let e;const t=f.getOntotextYasguiElement();t.getQuery().then(t=>(e=JSON.stringify(t),e)).then(C.addKnownPrefixes).then(n=>{e=n.data,t.setQuery(e)}).then(()=>{x(JSON.stringify(e))}).catch(e=>{const t=getError(e);_.error(t,n.instant("common.add.known.prefixes.error"))})},U=()=>{const e=v((function(){const t=f.getOntotextYasguiElements();t&&(t.on("paste.sparqlQuery",".CodeMirror",I),t.on("keyup.sparqlQuery",".CodeMirror textarea",k),v.cancel(e))}))},k=e=>{f.getOntotextYasguiElement().getQuery().then(e=>{x(JSON.stringify(e))})},x=e=>{f.queryChanged(e),f.$emit("queryChanged",{dirty:D!==e})};M.push(f.$on("language-changed",(function(e,t){f.language=t.locale})));f.$on("$destroy",()=>{M.forEach(e=>e());const e=f.getOntotextYasguiElements();e.off("paste.sparqlQuery"),e.off("keyup.sparqlQuery")});const j=()=>{const e=new Date;return`${e.toLocaleDateString(f.language)}_${e.toLocaleTimeString(f.language)}`},B=e=>{if(e.isResponseNumber())return e.getResponseBody();if(e.isResponseArray()){const t=e.getResponseBody();if(t["http://www.ontotext.com/"])return t["http://www.ontotext.com/"]["http://www.ontotext.com/"][0].value}if(e.hasBindingResponse()){const t=e.getResponseBody();if(t){const e=t.results.bindings[0],n=t.head.vars,r=Object.keys(e).find((function(t){return n.indexOf(t)>-1&&!isNaN(e[t].value)}));if(r.length>0)return e[r].value}}},F=e=>{const n=e.getTab().getYasqe(),r={"Content-Type":"application/x-www-form-urlencoded","X-GraphDB-Local-Consistency":"updating","X-GraphDB-Catch":n.getPageSize()+"; throw","X-GraphDB-Track-Alias":`yasgui-component-${performance.now()}-${Date.now()}`,"X-GraphDB-Repository-Location":t.getActiveRepositoryObject().location,"X-Requested-With":"XMLHttpRequest"},o=T.getAuthToken();o&&(r.Authorization=o);const s=n.getQueryType();return u.QueryMode.UPDATE===n.getQueryMode()?r.Accept="text/plain,/;q=0.9":l.QueryType.CONSTRUCT===s||l.QueryType.DESCRIBE===s?r.Accept="application/x-graphdb-table-results+json, application/rdf+json;q=0.9, */*;q=0.8":r.Accept="application/x-sparqlstar-results+json, application/sparql-results+json;q=0.9, */*;q=0.8",r},$=()=>({showEditorTabs:!0,showToolbar:!0,componentId:"yasgui-component",headers:F,pageSize:1e3,maxPersistentResponseSize:5e5,showResultTabs:!0}),J=e=>{const t=getError(e),r=n.instant("query.editor.create.saved.query.error");_.error(t,r),f.savedQueryConfig=Object(o.merge)({},f.savedQueryConfig,{saveSuccess:!1,errorMessage:[r]})},X=e=>G(n.instant("query.editor.edit.saved.query.success.msg",{name:e.name})),z=e=>G(n.instant("query.editor.save.saved.query.success.msg",{name:e.name})),G=e=>{_.success(e),f.savedQueryConfig=Object(o.merge)({},f.savedQueryConfig,{saveSuccess:!0})},W=(e,t)=>b.getAutocompleteSuggestions(e,t.promise).then((function(e){return t=null,e.data})),V=()=>O.getRepositorySize(t.getActiveRepository()).then(e=>parseInt(e.data)).catch((function(e){const r={repo:t.getActiveRepository(),error:getError(e)};_.warning(n.instant("query.editor.repo.size.error",r))})),K=e=>{if(e){const t=e.url.substring(e.url.lastIndexOf("/")+1),n=e.header["X-GraphDB-Track-Alias"];return N.deleteQuery(n,t)}}}}}angular.module("graphdb.framework.core.directives.yasgui-component",["graphdb.framework.core.services.translation-service","graphdb.framework.sparql-editor.share-query.service"]).directive("yasguiComponent",f),f.$inject=["$q","$repositories","$translate","$location","$languageService","$uibModal","AuthTokenService","$interval","toastr","TranslationService","AutocompleteRestService","RDF4JRepositoriesRestService","MonitoringRestService","SparqlRestService","ShareQueryLinkService","ModalService"]},107:function(e,t,n){"use strict";n.r(t),n.d(t,"RouteConstants",(function(){return r}));const r={savedQueryName:"savedQueryName",savedQueryOwner:"owner",query:"query",name:"name",owner:"owner"}},108:function(e,t,n){"use strict";n.r(t),n.d(t,"TabQueryModel",(function(){return r}));class r{constructor(e,t,n,r=!0){this.queryName=e,this.query=t,this.owner=n,this.isPublic=r}}},109:function(e,t,n){"use strict";n.r(t),n.d(t,"QueryType",(function(){return r}));const r={SELECT:"SELECT",CONSTRUCT:"CONSTRUCT",ASK:"ASK",DESCRIBE:"DESCRIBE",INSERT:"INSERT",DELETE:"DELETE",LOAD:"LOAD",CLEAR:"CLEAR",CREATE:"CREATE",DROP:"DROP",COPY:"COPY",MOVE:"MOVE",ADD:"ADD"}},110:function(e,t,n){"use strict";n.r(t),n.d(t,"VIEW_SPARQL_EDITOR",(function(){return r}));const r="graphdb-workbench-sparql-editor"},128:function(e,t,n){"use strict";n.r(t),n.d(t,"buildQueryModel",(function(){return o})),n.d(t,"savedQueriesResponseMapper",(function(){return s})),n.d(t,"savedQueryResponseMapper",(function(){return a})),n.d(t,"queryPayloadFromEvent",(function(){return i}));var r=n(108);const o=(e,t,n,o)=>new r.TabQueryModel(t,e,n,o),s=e=>e&&e.data?e.data.map?e.data.map(e=>o(e.body,e.name,e.owner,e.shared)):[o(e.data.body,e.data.name,e.data.owner,e.data.shared)]:[],a=e=>{const t=s(e);return t.length?t[0]:null},i=e=>({name:e.detail.queryName,body:e.detail.query,shared:e.detail.isPublic})},129:function(e,t,n){"use strict";n.r(t),n.d(t,"EventData",(function(){return r}));class r{constructor(e,t){this.TYPE=e,this.payload=t}}},130:function(e,t,n){"use strict";n.r(t),n.d(t,"QueryRequestEvent",(function(){return r}));class r{constructor(e){this.TYPE=e.TYPE,this.query=e.payload.query,this.queryMode=e.payload.queryMode,this.queryType=e.payload.queryType,this.pageSize=e.payload.pageSize,this.request=e.payload.request}setPageSize(e){this.request._data.pageSize=e}getPageSize(){return this.request._data.pageSize?parseInt(this.request._data.pageSize):void 0}setPageNumber(e){this.request._data.pageNumber=e}getPageNumber(){return this.request._data.pageNumber?parseInt(this.request._data.pageNumber):void 0}setOffset(e){this.request._data.offset=e}setLimit(e){this.request._data.limit=e}}},131:function(e,t,n){"use strict";n.r(t),n.d(t,"CountQueryResponseEvent",(function(){return o}));var r=n(30);class o{constructor(e){this.TYPE=e.TYPE,this.response=e.payload.response}hasResponse(){return this.response&&this.response.body}getResponseBody(){if(this.hasResponse())return this.response.body}isResponseNumber(){return!!this.hasResponse()&&Object(r.isNumber)(this.response.body)}isResponseArray(){return!!this.hasResponse()&&Array.isArray(this.response.body)}getBindings(){if(this.hasResponse())return this.response.body.results.bindings}hasBindingResponse(){return!!this.hasResponse()&&this.response.body.results.bindings[0]}setTotalElements(e){this.response.body.totalElements=e}}},132:function(e,t,n){"use strict";n.r(t),n.d(t,"CountQueryRequestEvent",(function(){return r}));class r{constructor(e){this.TYPE=e.TYPE,this.query=e.payload.query,this.queryMode=e.payload.queryMode,this.queryType=e.payload.queryType,this.pageSize=e.payload.pageSize,this.request=e.payload.request}setPageSize(e){this.request._data.pageSize=e}setPageNumber(e){this.request._data.pageNumber=e}setCount(e){this.request._data.count=e}}},133:function(e,t,n){"use strict";n.r(t),n.d(t,"DownloadAsEvent",(function(){return r}));class r{constructor(e){this.TYPE=e.TYPE,this.contentType=e.payload.value,this.pluginName=e.payload.pluginName,this.query=e.payload.query,this.infer=e.payload.infer,this.sameAs=e.payload.sameAs}}},134:function(e,t,n){"use strict";n.r(t),n.d(t,"NotificationMessageEvent",(function(){return r}));class r{constructor(e){this.TYPE=e.TYPE,this.message=e.payload.message,this.code=e.payload.code,this.messageType=e.payload.messageType}}},135:function(e,t,n){"use strict";n.r(t),n.d(t,"QueryExecutedEvent",(function(){return r}));class r{constructor(e){this.TYPE=e.TYPE,this.duration=e.payload.duration,this.tabId=e.payload.tabId}}},136:function(e,t,n){"use strict";n.r(t),n.d(t,"SaveQueryOpened",(function(){return r}));class r{constructor(e){this.tab=e.payload.tab}getTab(){return this.tab}}},137:function(e,t,n){"use strict";n.r(t),n.d(t,"RequestAbortedEvent",(function(){return r}));class r{constructor(e){this.TYPE=e.TYPE,this.request=e.payload.request,this.queryMode=e.payload.queryMode}getQueryTrackAlias(){if(this.request)return this.request.header["X-GraphDB-Track-Alias"]}getRepository(){if(this.request){const e=this.request.url;return e.substring(e.lastIndexOf("/")+1)}}}},138:function(e,t,n){"use strict";n.r(t),n.d(t,"YasrPluginName",(function(){return r}));const r={EXTENDED_TABLE:"extended_table",RAW_RESPONSE:"response",TABLE:"table"}},185:function(e,t){function n(e){const t=["en","fr"];let n;return{getTranslations:()=>(n||(n={},t.forEach(t=>n[t]=e.getTranslationTable(t))),n)}}angular.module("graphdb.framework.core.services.translation-service",[]).service("TranslationService",n),n.$inject=["$translate"]},186:function(e,t,n){"use strict";n.r(t);var r=n(107);angular.module("graphdb.framework.sparql-editor.share-query.service",[]).factory("ShareQueryLinkService",(function(){return{createShareSavedQueryLink:function(t,n){let o=`${e()}?${r.RouteConstants.savedQueryName}=${encodeURIComponent(t)}`;null!=n&&(o+=`&${r.RouteConstants.savedQueryOwner}=${encodeURIComponent(n)}`);return o},createShareQueryLink:function(t){return e()+"?"+$.param({name:t.name,query:t.body,infer:t.inference||!0,sameAs:t.sameAs||!0})}};function e(){return[location.protocol,"//",location.host,location.pathname].join("")}}))},187:function(e,t,n){"use strict";n.r(t),n.d(t,"toEventData",(function(){return y})),n.d(t,"toYasguiOutputModel",(function(){return g})),n.d(t,"downloadAsFile",(function(){return E}));var r=n(129),o=n(102),s=n(130),a=n(131),i=n(132),u=n(133),c=n(134),d=n(135),l=n(136),p=n(137);const y=e=>new r.EventData(e.detail.TYPE,e.detail.payload),g=e=>{const t=y(e);switch(t.TYPE){case o.EventDataType.DOWNLOAD_AS:return new u.DownloadAsEvent(t);case o.EventDataType.NOTIFICATION_MESSAGE:return new c.NotificationMessageEvent(t);case o.EventDataType.COUNT_QUERY:return new i.CountQueryRequestEvent(t);case o.EventDataType.COUNT_QUERY_RESPONSE:return new a.CountQueryResponseEvent(t);case o.EventDataType.QUERY:return new s.QueryRequestEvent(t);case o.EventDataType.QUERY_EXECUTED:return new d.QueryExecutedEvent(t);case o.EventDataType.SAVE_QUERY_OPENED:return new l.SaveQueryOpened(t);case o.EventDataType.REQUEST_ABORTED:return new p.RequestAbortedEvent(t);default:return t}},E=(e,t,n)=>{const r=document.createElement("a");r.setAttribute("href",`data:${t};charset=utf-8, + ${encodeURIComponent(n)}`),r.setAttribute("download",e),r.style.display="none",document.body.appendChild(r),r.click(),document.body.removeChild(r)}},188:function(e,t,n){"use strict";n.r(t),n.d(t,"YasguiComponent",(function(){return o}));var r=n(15);class o{constructor(e=r.YasguiComponentDirectiveUtil.getOntotextYasguiElement("#query-editor")){this.yasguiComponent=e}changeRenderMode(e){return this.yasguiComponent.changeRenderMode(e)}setQuery(e){return this.yasguiComponent.setQuery(e)}query(e){return this.yasguiComponent.query(e)}getQuery(){return this.yasguiComponent.getQuery()}isQueryValid(){return this.yasguiComponent.isQueryValid()}openTab(e){return this.yasguiComponent.openTab(e)}getQueryMode(){return this.yasguiComponent.getQueryMode()}getQueryType(){return this.yasguiComponent.getQueryType()}getEmbeddedResultAsJson(){return this.yasguiComponent.getEmbeddedResultAsJson()}getEmbeddedResultAsCSV(){return this.yasguiComponent.getEmbeddedResultAsCSV()}hideYasqeActionButton(e){return this.yasguiComponent.hideYasqeActionButton(e)}showYasqeActionButton(e){return this.yasguiComponent.showYasqeActionButton(e)}abortQuery(){return this.yasguiComponent.abortQuery()}getOngoingRequestsInfo(){return this.yasguiComponent.getOngoingRequestsInfo()}abortAllRequests(){return this.yasguiComponent.abortAllRequests()}reInitYasgui(e){return this.yasguiComponent.reInitYasgui(e)}}},189:function(e,t,n){"use strict";n.r(t),n.d(t,"KeyboardShortcutName",(function(){return r}));const r={TRIGGER_AUTOCOMPLETION:"trigger_autocompletion",DELETE_CURRENT_LINE:"delete_current_line",COMMENT_SELECTED_LINE:"comment_selected_line",COPY_LINE_DOWN:"copy_line_down",COPY_LINE_UP:"copy_line_up",AUTO_FORMAT_SELECTED_LINE:"auto_format_selected_line",INDENT_CURRENT_LINE_MORE:"indent_current_line_more",INDENT_CURRENT_LINE_LESS:"indent_current_line_less",EXECUTE_QUERY_OR_UPDATE:"execute_query_or_update",EXECUTE_EXPLAIN_PLAN_FOR_QUERY:"execute_explain_plan_for_query",EXECUTE_CHAT_GPT_EXPLAIN_PLAN_FOR_QUERY:"execute_chat_gpt_explain_plan_for_query",CREATE_TAB:"create_tab",CREATE_SAVE_QUERY:"create_save_query",SWITCH_NEXT_TAB:"switch_next_tab",SWITCH_PREVIOUS_TAB:"switch_previous_tab",CLOSES_ALL_TABS:"closes_all_tabs",FULL_SCREEN:"full_screen",ESC:"esc"}},190:function(e,t,n){"use strict";n.r(t),n.d(t,"YasguiPersistenceMigrationService",(function(){return i}));var r=n(110);const o="yagui__"+r.VIEW_SPARQL_EDITOR,s="completed",a="rejected",i=function(){const e=()=>({val:{active:null,tabs:[],tabConfig:{}}}),t=(e,t,n=null)=>{e.val.migration={date:(new Date).toISOString(),status:t,error:n}},n=(e,t)=>{e.val.tabs.push(t)},r=(e,t)=>{e.val.tabConfig[t.id]=t},i=e=>{let t=localStorage.getItem(e);if(t)return t=JSON.parse(t),t},u=e=>{e.val.tabs=e.val.tabs.filter(e=>!e.startsWith("_"))},c=e=>{for(const t in e.val.tabConfig)t.startsWith("_")&&delete e.val.tabConfig[t]},d=(e,t)=>{localStorage.setItem(e,JSON.stringify(t))},l=(e,t)=>`${t} ${e}`,p=()=>Math.random().toString(36).substring(7);return{isMigrationNeeded:()=>{const e=i(o);let t=!1;return e&&(t=e.val.migration&&(e.val.migration.status===s||e.val.migration.status===a)),!(!localStorage.getItem("ls.tabs-state")||t)},revertMigration:()=>{const e=i(o);u(e),c(e),d(o,e)},migrateYasguiPersistence:a=>{let u=i("ls.tabs-state");u=Object.freeze(u);let c=i(o);c||(c=e()),u.map(e=>({id:e.id,name:e.name,yasqe:{value:e.query,sameAs:e.sameAs,infer:e.inference,pageSize:1e3,pageNumber:1},yasr:{response:null,settings:{selectedPlugin:"extended_table",pluginsConfig:{}}},requestConfig:{method:"POST"}})).forEach((e,t)=>{e.id="_"+p(),e.name=e.name||l(t,a),n(c,e.id),r(c,e)}),c.val.active=c.val.tabs[0],t(c,s),d(o,c)},rejectMigration:()=>{const e=i(o);t(e,a),d(o,e)}}}()},510:function(e,t,n){var r,o=o||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},r=t.createElementNS("http://www.w3.org/1999/xhtml","a"),o=e.webkitRequestFileSystem,s=e.requestFileSystem||o||e.mozRequestFileSystem,a=function(t){(e.setImmediate||e.setTimeout)((function(){throw t}),0)},i=0,u=function(t){var r=function(){"string"==typeof t?n().revokeObjectURL(t):t.remove()};e.chrome?r():setTimeout(r,500)},c=function(e,t,n){for(var r=(t=[].concat(t)).length;r--;){var o=e["on"+t[r]];if("function"==typeof o)try{o.call(e,n||e)}catch(e){a(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},l=function(t,a){t=d(t);var l,p,y,g=this,E=t.type,m=!1,f=function(){c(g,"writestart progress write writeend".split(" "))},h=function(){(!m&&l||(l=n().createObjectURL(t)),p)?p.location.href=l:null==e.open(l,"_blank")&&"undefined"!=typeof safari&&(e.location.href=l);g.readyState=g.DONE,f(),u(l)},S=function(e){return function(){if(g.readyState!==g.DONE)return e.apply(this,arguments)}},T={create:!0,exclusive:!1};if(g.readyState=g.INIT,a||(a="download"),r)return l=n().createObjectURL(t),r.href=l,r.download=a,void setTimeout((function(){var e,t;e=r,t=new MouseEvent("click"),e.dispatchEvent(t),f(),u(l),g.readyState=g.DONE}));e.chrome&&E&&"application/octet-stream"!==E&&(y=t.slice||t.webkitSlice,t=y.call(t,0,t.size,"application/octet-stream"),m=!0),o&&"download"!==a&&(a+=".download"),("application/octet-stream"===E||o)&&(p=e),s?(i+=t.size,s(e.TEMPORARY,i,S((function(e){e.root.getDirectory("saved",T,S((function(e){var n=function(){e.getFile(a,T,S((function(e){e.createWriter(S((function(n){n.onwriteend=function(t){p.location.href=e.toURL(),g.readyState=g.DONE,c(g,"writeend",t),u(e)},n.onerror=function(){var e=n.error;e.code!==e.ABORT_ERR&&h()},"writestart progress write abort".split(" ").forEach((function(e){n["on"+e]=g["on"+e]})),n.write(t),g.abort=function(){n.abort(),g.readyState=g.DONE},g.readyState=g.WRITING})),h)})),h)};e.getFile(a,{create:!1},S((function(e){e.remove(),n()})),S((function(e){e.code===e.NOT_FOUND_ERR?n():h()})))})),h)})),h)):h()},p=l.prototype;return"undefined"!=typeof navigator&&navigator.msSaveOrOpenBlob?function(e,t){return navigator.msSaveOrOpenBlob(d(e),t)}:(p.abort=function(){this.readyState=this.DONE,c(this,"abort")},p.readyState=p.INIT=0,p.WRITING=1,p.DONE=2,p.error=p.onwritestart=p.onprogress=p.onwrite=p.onabort=p.onerror=p.onwriteend=null,function(e,t){return new l(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=o:null!==n(521)&&null!=n(509)&&(void 0===(r=function(){return o}.apply(t,[]))||(e.exports=r))}}]);
@@ -1 +0,0 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([[200],{158:function(n,o,r){"use strict";r.r(o),r.d(o,"OntopRepositoryError",(function(){return s}));class s extends Error{}}}]);
@@ -1 +0,0 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([[21,28,39,54,67,90,96,178,179,235,236,269,278,294],{111:function(t,e,s){"use strict";s.r(e),s.d(e,"connectorTypesListMapper",(function(){return n})),s.d(e,"connectorsMapper",(function(){return i}));var r=s(94);const n=t=>{const e=new r.ConnectorTypesListModel;return t?(e.connectors=Object.keys(t).map(e=>new r.ConnectorTypeModel({name:e,prefix:t[e]})),e):e},i=t=>{const e=new r.ConnectorListModel;return t?(e.connectors=t.map(t=>new r.ConnectorModel(t)),e):e}},140:function(t,e,s){"use strict";s.r(e);s(82);var r=s(111),n=s(76);function i(t){const e=()=>t.getConnectors().then(t=>Object(r.connectorTypesListMapper)(t.data)),s=e=>t.hasConnector(encodeURIComponent(e)).then(t=>Object(r.connectorsMapper)(t.data));return{getConnectorTypes:e,getConnectorsByType:s,getConnectorPrefixByName:t=>e().then(e=>{const s=e.getConnectorByName(t);return s?s.prefix:null}),getConnectorsByTypeAsSelectMenuOptions:t=>s(t).then(t=>t.connectors.map(t=>new n.SelectMenuOptionsModel({value:t.name,label:t.name})))}}angular.module("graphdb.framework.core.services.connectors",["graphdb.framework.rest.connectors.service"]).factory("ConnectorsService",i),i.$inject=["ConnectorsRestService"]},141:function(t,e,s){"use strict";s.r(e);s(95);var r=s(84),n=s(76);function i(t){const e=()=>t.getIndexes().then(t=>Object(r.mapIndexesResponseToSimilarityIndex)(t.data));return{getIndexes:e,getIndexesAsMenuModel:()=>e().then(t=>t.map(t=>new n.SelectMenuOptionsModel({label:t.name,value:t.name})))}}angular.module("graphdb.framework.core.services.similarity",["graphdb.framework.rest.similarity.service"]).factory("SimilarityService",i),i.$inject=["SimilarityRestService"]},269:function(t,e,s){"use strict";s.r(e);var r=s(0),n=s(96),i=(s(141),s(140),s(19),s(8));function o(t,e,s,o,a,c,l,u,d,h){t.agentFormModel=h.agentFormModel,t.activeRepositoryInfo=h.activeRepositoryInfo,t.extractionMethodLoaderFlags={[n.ExtractionMethod.SIMILARITY]:!1},t.activeRepositoryList=h.activeRepositoryList,t.extractionMethods=n.ExtractionMethod,t.showAdvancedSettings=!1,t.similarityIndexes=[],t.retrievalConnectors=[],t.ftsEnabled=!1,t.toggleExtractionMethod=()=>{t.agentSettingsForm.extractionMethods.$setTouched(),g()},t.onExtractionMethodPanelToggle=t=>{_[t.method](t)},t.getModelHelpMessage=()=>{const t=Object(r.decodeHTML)(d.instant("ttyg.agent.create_agent_modal.form.model.hint"));return c.trustAsHtml(t)},t.getFTSDisabledHelpMessage=()=>{const e=Object(r.decodeHTML)(d.instant("ttyg.agent.create_agent_modal.form.fts_search.fts_disabled_message",{repositoryEditPage:"#/repository/edit/"+t.activeRepositoryInfo.id}));return c.trustAsHtml(e)},t.getNoSimilarityIndexHelpMessage=()=>{const t=Object(r.decodeHTML)(d.instant("ttyg.agent.create_agent_modal.form.similarity_index.no_similarity_index_message",{similarityIndexPage:"#/similarity"}));return c.trustAsHtml(t)},t.getNoRetrievalConnectorHelpMessage=()=>{const t=Object(r.decodeHTML)(d.instant("ttyg.agent.create_agent_modal.form.retrieval_search.no_retrieval_connectors_message",{retrievalConnectorPage:"#/connectors"}));return c.trustAsHtml(t)},t.ok=()=>{const s=t.agentFormModel.toPayload();e.close(s)},t.cancel=function(){e.dismiss({})},t.close=function(){e.dismiss({})},t.onRepositoryChange=()=>{y()};const m=(t,e)=>{console.error(t),l.error(d.instant(e))},g=()=>{t.agentSettingsForm.extractionMethods.$setValidity("required",t.agentFormModel.hasExtractionMethodSelected())},y=()=>{t.agentFormModel.repositoryId&&a.getRepositoryModel({id:t.agentFormModel.repositoryId}).then(e=>{t.ftsEnabled=e.getParamValue(i.REPOSITORY_PARAMS.enableFtsIndex)}).catch(t=>{m(t,"ttyg.agent.messages.error_repository_config_loading")}).finally(()=>{t.extractionMethodLoaderFlags[n.ExtractionMethod.FTS_SEARCH]=!1})},_={[n.ExtractionMethod.FTS_SEARCH]:e=>(e=>{t.extractionMethodLoaderFlags[e.method]=!0,y()})(e),[n.ExtractionMethod.SPARQL]:t=>{},[n.ExtractionMethod.SIMILARITY]:e=>(e=>{t.extractionMethodLoaderFlags[e.method]=!0,s.getIndexesAsMenuModel().then(e=>{t.similarityIndexes=e}).catch(t=>{m(t,"ttyg.agent.messages.error_similarity_indexes_loading")}).finally(()=>{t.extractionMethodLoaderFlags[e.method]=!1})})(e),[n.ExtractionMethod.RETRIEVAL]:e=>(e=>{t.extractionMethodLoaderFlags[e.method]=!0,o.getConnectorPrefixByName("ChatGPT Retrieval").then(t=>o.getConnectorsByTypeAsSelectMenuOptions(t)).then(e=>{t.retrievalConnectors=e}).catch(t=>{m(t,"ttyg.agent.messages.error_retrieval_connectors_loading")}).finally(()=>{t.extractionMethodLoaderFlags[e.method]=!1})})(e)};setTimeout(g,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",o),o.$inject=["$scope","$uibModalInstance","SimilarityService","ConnectorsService","RepositoriesRestService","$sce","toastr","UriUtils","$translate","dialogModel"]},73:function(t,e,s){"use strict";s.r(e),s.d(e,"SimilarityIndexType",(function(){return r}));const r={TEXT:"text",TEXT_LITERAL:"textLiteral",PREDICATION:"predication",isTextType:t=>r.TEXT===t,isTextLiteralType:t=>r.TEXT_LITERAL===t,isPredicationType:t=>r.PREDICATION===t}},74:function(t,e,s){"use strict";s.r(e),s.d(e,"SimilarityIndexStatus",(function(){return r}));const r={CREATING:"CREATING",BUILDING:"BUILDING",BUILT:"BUILT",REBUILDING:"REBUILDING",OUTDATED:"OUTDATED",INTERRUPTED:"INTERRUPTED",OBSOLETE:"OBSOLETE",FAILED:"FAILED",isCreatingStatus:t=>r.CREATING===t,isBuildingStatus:t=>r.BUILDING===t,isBuiltStatus:t=>r.BUILT===t,isRebuildingStatus:t=>r.REBUILDING===t,isOutdatedStatus:t=>r.OUTDATED===t,isInterruptedStatus:t=>r.INTERRUPTED===t,isObsoleteStatus:t=>r.OBSOLETE===t,isFailedStatus:t=>r.FAILED===t}},76:function(t,e,s){"use strict";s.r(e),s.d(e,"SelectMenuOptionsModel",(function(){return r})),s.d(e,"TextFieldModel",(function(){return n})),s.d(e,"NumericRangeModel",(function(){return i}));class r{constructor({label:t,value:e,selected:s=!1,data:r={}}){this._label=t,this._value=e,this._selected=s,this._data=r}get label(){return this._label}set label(t){this._label=t}get value(){return this._value}set value(t){this._value=t}get selected(){return this._selected}set selected(t){this._selected=t}get data(){return this._data}set data(t){this._data=t}}class n{constructor(t){this._value=t.value,this._minLength=t.minLength,this._maxLength=t.maxLength}get value(){return this._value}set value(t){this._value=t}get maxLength(){return this._maxLength}set maxLength(t){this._maxLength=t}get minLength(){return this._minLength}set minLength(t){this._minLength=t}}class i{constructor(t){this._value=t.value,this._minValue=t.minValue,this._maxValue=t.maxValue,this._step=t.step}get value(){return this._value}set value(t){this._value=t}get minValue(){return this._minValue}set minValue(t){this._minValue=t}get maxValue(){return this._maxValue}set maxValue(t){this._maxValue=t}get step(){return this._step}set step(t){this._step=t}}},78:function(t,e,s){"use strict";s.r(e),s.d(e,"SimilarityIndex",(function(){return i}));var r=s(73),n=s(74);class i{constructor(){this.analyzer="",this.infer=!0,this.options="",this.sameAs=!0,this.searchQuery="",this.selectQuery="",this.stopList=void 0,this.name="",this.type=r.SimilarityIndexType.TEXT,this.status=void 0,this.analogicalQuery=void 0,this.inputIndex=void 0,this.isLiteralIndex=""}isTextType(){return r.SimilarityIndexType.isTextType(this.type)}isTextLiteralType(){return r.SimilarityIndexType.isTextLiteralType(this.type)}isPredicationType(){return r.SimilarityIndexType.isPredicationType(this.type)}isCreatingStatus(){return n.SimilarityIndexStatus.isCreatingStatus(this.status)}isBuildingStatus(){return n.SimilarityIndexStatus.isBuildingStatus(this.status)}isBuiltStatus(){return n.SimilarityIndexStatus.isBuiltStatus(this.status)}isRebuildingStatus(){return n.SimilarityIndexStatus.isRebuildingStatus(this.status)}isOutdatedStatus(){return n.SimilarityIndexStatus.isOutdatedStatus(this.status)}isInterruptedStatus(){return n.SimilarityIndexStatus.isInterruptedStatus(this.status)}isObsoleteStatus(){return n.SimilarityIndexStatus.isObsoleteStatus(this.status)}isFailedStatus(){return n.SimilarityIndexStatus.isFailedStatus(this.status)}}},82:function(t,e){angular.module("graphdb.framework.rest.connectors.service",[]).factory("ConnectorsRestService",s),s.$inject=["$http"];function s(t){return{getConnectors:function(){return t.get("rest/connectors")},initConnector:function(e){return t.get("rest/connectors/options?prefix="+e)},hasConnector:function(e){return t.get("rest/connectors/existing?prefix="+e)},checkConnector:function(e){return t.post("rest/connectors/check",e,{headers:{"Content-Type":"text/plain"}})}}}},84:function(t,e,s){"use strict";s.r(e),s.d(e,"mapIndexesResponseToSimilarityIndex",(function(){return n}));var r=s(78);const n=t=>t.map(t=>{const e=new r.SimilarityIndex;return e.type=t.type,e.stopList=t.stopList,e.status=t.status,e.selectQuery=t.selectQuery,e.searchQuery=t.searchQuery,e.sameAs=t.sameAs,e.options=t.options,e.name=t.name,e.infer=t.infer,e.analyzer=t.analyzer,e.analogicalQuery=t.analogicalQuery,e})},88:function(t,e,s){"use strict";s.r(e),s.d(e,"AGENT_ID",(function(){return r})),s.d(e,"AGENTS_FILTER_ALL_KEY",(function(){return n}));const r="asst_uoKp5kgnPlyZHhRXY7P2r9D7",n="ALL"},94:function(t,e,s){"use strict";s.r(e),s.d(e,"ConnectorTypesListModel",(function(){return r})),s.d(e,"ConnectorTypeModel",(function(){return n})),s.d(e,"ConnectorListModel",(function(){return i})),s.d(e,"ConnectorModel",(function(){return o})),s.d(e,"ConnectorSettingsModel",(function(){return a}));class r{constructor(t={}){this._connectors=t.connectors||[]}getConnectorByName(t){return this._connectors.find(e=>e.name===t)}get connectors(){return this._connectors}set connectors(t){this._connectors=t}}class n{constructor(t){this._name=t.name,this._prefix=t.prefix}get name(){return this._name}set name(t){this._name=t}get prefix(){return this._prefix}set prefix(t){this._prefix=t}}class i{constructor(t=[]){this._connectors=t.connectors}get connectors(){return this._connectors}set connectors(t){this._connectors=t}}class o{constructor(t){this._name=t.name,this._settings=new a(t)}get settings(){return this._settings}set settings(t){this._settings=t}get name(){return this._name}set name(t){this._name=t}}class a{constructor(t){this._settings=t.values||{}}get settings(){return this._settings}set settings(t){this._settings=t}}},95:function(t,e){angular.module("graphdb.framework.rest.similarity.service",[]).factory("SimilarityRestService",s),s.$inject=["$http","$repositories"];function s(t){return{getIndexes:function(){return t.get("rest/similarity")},getSearchQueries:function(){return t.get("rest/similarity/config")},rebuildIndex:function(t){return e("PUT",t.name,t.options,t.selectQuery,t.searchQuery,t.analogicalQuery,t.stopList,t.infer,t.sameAs,t.type)},deleteIndex:function(e){return t.delete("rest/similarity?name="+e.name)},createIndex:e,getSamples:function(){return t.get("rest/similarity/samples")},getQuery:function(e){return t.get("rest/similarity/query",{params:{name:e.indexName,options:e.indexOptions,stopList:e.indexStopList,selectQuery:e.query,infer:e.queryInference,sameAs:e.querySameAs,type:e.viewType,analyzer:e.indexAnalyzer}})},saveSearchQuery:function(e){return t({method:"put",url:"rest/similarity/search-query",data:e})}};function e(e,s,r,n,i,o,a,c,l,u,d){return t({method:e,url:"rest/similarity",noCancelOnRouteChange:!0,data:{name:s,options:r,selectQuery:n,stopList:a,infer:c,sameAs:l,type:u,analyzer:d,searchQuery:i,analogicalQuery:o}})}}},96:function(t,e,s){"use strict";s.r(e),s.d(e,"AgentModel",(function(){return i})),s.d(e,"AgentInstructionsModel",(function(){return o})),s.d(e,"ExtractionMethodModel",(function(){return a})),s.d(e,"AdditionalExtractionMethodsModel",(function(){return c})),s.d(e,"AdditionalExtractionMethodModel",(function(){return l})),s.d(e,"AgentListModel",(function(){return u})),s.d(e,"ExtractionMethod",(function(){return d})),s.d(e,"AdditionalExtractionMethod",(function(){return h})),s.d(e,"AgentListFilterModel",(function(){return m}));var r=s(30),n=s(88);class i{constructor(t,e){this.hashGenerator=e,this._isDeleted=!1,this._id=t.id,this._name=t.name,this._repositoryId=t.repositoryId,this._model=t.model,this._temperature=t.temperature,this._topP=t.topP,this._seed=t.seed,this._instructions=t.instructions,this._assistantExtractionMethods=t.assistantExtractionMethods,this._additionalExtractionMethods=t.additionalExtractionMethods}get isDeleted(){return this._isDeleted}set isDeleted(t){this._isDeleted=t}get id(){return this._id}set id(t){this._id=t}get name(){return this._name}set name(t){this._name=t}get repositoryId(){return this._repositoryId}set repositoryId(t){this._repositoryId=t}get model(){return this._model}set model(t){this._model=t}get temperature(){return this._temperature}set temperature(t){this._temperature=t}get topP(){return this._topP}set topP(t){this._topP=t}get seed(){return this._seed}set seed(t){this._seed=t}get instructions(){return this._instructions}set instructions(t){this._instructions=t}get assistantExtractionMethods(){return this._assistantExtractionMethods}set assistantExtractionMethods(t){this._assistantExtractionMethods=t}get additionalExtractionMethods(){return this._additionalExtractionMethods}set additionalExtractionMethods(t){this._additionalExtractionMethods=t}}class o{constructor(t){this._systemInstruction=t.systemInstruction,this._userInstruction=t.userInstruction}get systemInstruction(){return this._systemInstruction}set systemInstruction(t){this._systemInstruction=t}get userInstruction(){return this._userInstruction}set userInstruction(t){this._userInstruction=t}}class a{constructor(t){this._method=t.method,this._ontologyGraph=t.ontologyGraph,this._sparqlQuery=t.sparqlQuery,this._maxNumberOfTriplesPerCall=t._maxNumberOfTriplesPerCall,this._similarityIndex=t.similarityIndex,this._similarityIndexThreshold=t.similarityIndexThreshold,this._queryTemplate=t.queryTemplate,this._retrievalConnectorInstance=t.retrievalConnectorInstance}get method(){return this._method}set method(t){this._method=t}get sparqlQuery(){return this._sparqlQuery}set sparqlQuery(t){this._sparqlQuery=t}get ontologyGraph(){return this._ontologyGraph}set ontologyGraph(t){this._ontologyGraph=t}get maxNumberOfTriplesPerCall(){return this._maxNumberOfTriplesPerCall}set maxNumberOfTriplesPerCall(t){this._maxNumberOfTriplesPerCall=t}get similarityIndex(){return this._similarityIndex}set similarityIndex(t){this._similarityIndex=t}get similarityIndexThreshold(){return this._similarityIndexThreshold}set similarityIndexThreshold(t){this._similarityIndexThreshold=t}get queryTemplate(){return this._queryTemplate}set queryTemplate(t){this._queryTemplate=t}get retrievalConnectorInstance(){return this._retrievalConnectorInstance}set retrievalConnectorInstance(t){this._retrievalConnectorInstance=t}}class c{constructor(t){this._additionalExtractionMethods=t}get additionalExtractionMethods(){return this._additionalExtractionMethods}set additionalExtractionMethods(t){this._additionalExtractionMethods=t}}class l{constructor(t){this._method=t._method}get method(){return this._method}set method(t){this._method=t}}class u{constructor(t=[]){this._agents=t,this._filterableAgents=Object(r.cloneDeep)(t)}isEmpty(){return 0===this._agents.length}filterByRepository(t){this._filterableAgents=this._agents.filter(e=>t===n.AGENTS_FILTER_ALL_KEY||(e.repositoryId===t?e:void 0))}get agents(){return this._agents}set agents(t){this._agents=t}get filterableAgents(){return this._filterableAgents}set filterableAgents(t){this._filterableAgents=t}}const d={FTS_SEARCH:"fts_search",SPARQL:"sparql_search",SIMILARITY:"similarity_search",RETRIEVAL:"retrieval_search"},h={IRI_DISCOVERY_SEARCH:"iri_discovery_search"};class m{constructor(t,e,s=!1){this._key=t,this._label=e,this._selected=s}get key(){return this._key}set key(t){this._key=t}get label(){return this._label}set label(t){this._label=t}get selected(){return this._selected}set selected(t){this._selected=t}}}}]);
@@ -1,2 +0,0 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([[22,66,128,215,229,230,232,270,298],{101:function(e,t,n){"use strict";function o(e,t,n,o,r){e.JSONLDModes=[{name:"framed",link:"http://www.w3.org/ns/json-ld#framed"},{name:"expanded",link:"http://www.w3.org/ns/json-ld#expanded"},{name:"flattened",link:"http://www.w3.org/ns/json-ld#flattened"},{name:"compacted",link:"http://www.w3.org/ns/json-ld#compacted"}],e.JSONLDModesNames=e.JSONLDModes.reduce((function(e,t){return e[t.name]=t.name,e}),{}),e.JSONLDFramedModes=[e.JSONLDModesNames.framed],e.JSONLDContextModes=[e.JSONLDModesNames.compacted,e.JSONLDModesNames.flattened],e.defaultMode=e.JSONLDModes.find(e=>"expanded"===e.name),e.currentMode=e.defaultMode,e.link=null,e.fileFormat=r.toLowerCase(),e.setJSONLDSettingsToLocalStorage=function(e,t,r){n.set(o.JSONLD_EXPORT_SETTINGS,JSON.stringify({jsonldFormName:e,jsonldFormLink:t,jsonldLink:r}))},e.cancel=function(){t.dismiss()},e.reset=function(){e.currentMode=e.defaultMode,e.link="",e.setJSONLDSettingsToLocalStorage(e.currentMode.name,e.currentMode.link,e.link)},e.clearLinkInput=function(){e.link="",e.setJSONLDSettingsToLocalStorage(e.currentMode.name,e.currentMode.link,e.link)},e.exportJsonLD=function(){e.setJSONLDSettingsToLocalStorage(e.currentMode.name,e.currentMode.link,e.link),t.close({currentMode:e.currentMode,link:e.link})};!function(){const t=n.get(o.JSONLD_EXPORT_SETTINGS);t&&(e.currentMode=e.JSONLDModes.find(e=>e.name===t.jsonldFormName),e.link=t.jsonldLink)}()}n.r(t),n.d(t,"ExportSettingsCtrl",(function(){return o})),angular.module("graphdb.framework.core.components.export-settings-modal",["graphdb.framework.utils.localstorageadapter"]).controller("ExportSettingsCtrl",o),o.$inject=["$scope","$uibModalInstance","LocalStorageAdapter","LSKeys","format"]},112:function(e,t){angular.module("graphdb.workbench.utils.filetypes",[]).value("FileTypes",[{name:"JSON",translateKey:"download.as.json",type:"application/rdf+json",extension:".json"},{name:"JSON-LD",translateKey:"download.as.jsonld",type:"application/ld+json",extension:".jsonld"},{name:"NDJSON-LD",translateKey:"download.as.ndjsonld",type:"application/x-ld+ndjson",extension:".ndjsonld"},{name:"RDF-XML",translateKey:"download.as.rdfxml",type:"application/rdf+xml",extension:".rdf"},{name:"N3",translateKey:"download.as.n3",type:"text/rdf+n3",extension:".n3"},{name:"N-Triples",translateKey:"download.as.ntriples",type:"text/plain",extension:".nt"},{name:"N-Quads",translateKey:"download.as.nquads",type:"text/x-nquads",extension:".nq"},{name:"Turtle",translateKey:"download.as.turtle",type:"text/turtle",extension:".ttl"},{name:"Turtle*",translateKey:"download.as.turtlestar",type:"application/x-turtlestar",extension:".ttls"},{name:"TriX",translateKey:"download.as.trix",type:"application/trix",extension:".trix"},{name:"TriG",translateKey:"download.as.trig",type:"application/x-trig",extension:".trig"},{name:"TriG*",translateKey:"download.as.trigstar",type:"application/x-trigstar",extension:".trigs"},{name:"Binary RDF",translateKey:"download.as.binaryrdf",type:"application/x-binary-rdf",extension:".brf"}])},113:function(e,t,n){"use strict";n.r(t),n.d(t,"ResourceDetails",(function(){return o}));class o{constructor(){this.image=void 0,this.uri=void 0,this.label=void 0,this.encodeURI=void 0,this.comment=void 0,this.context=void 0}}},144:function(e,t){angular.module("graphdb.framework.rest.explore.rest.service",[]).factory("ExploreRestService",n),n.$inject=["$http"];function n(e){return{getResourceDetails:(t,n,o,r)=>e.get("rest/explore/details",{params:{uri:t,triple:n,context:o},headers:{Accept:r||"application/json"}}),getGraph:(t,n,o)=>e.get("rest/explore/graph",{params:{uri:t.uri,triple:t.triple,inference:t.contextType.id,role:t.role,bnodes:t.blanks,sameAs:t.sameAs,context:t.context},headers:{Accept:n||"application/x-graphdb-table-results+json",Link:o?"<"+o+">":""}}).then(e=>e.data)}}},145:function(e,t,n){"use strict";n.r(t),n.d(t,"ResourceInfo",(function(){return s}));var o=n(113),r=n(97);class s{constructor(){this.role="subject",this.uri=void 0,this.triple=void 0,this.context=void 0,this.contextType=r.ContextTypes.EXPLICIT,this.sameAs=!0,this.details=new o.ResourceDetails,this.blanks=!0}}},146:function(e,t,n){"use strict";n.r(t),n.d(t,"RoleType",(function(){return o}));const o={SUBJECT:"subject",PREDICATE:"predicate",OBJECT:"object",CONTEXT:"context",ALL:"all"}},194:function(e,t,n){"use strict";n.r(t);n(112),n(144);var o=n(510),r=n(0),s=n(145),a=n(97),i=n(146),c=n(70),l=n(15),u=n(590),p=n(101);function d(e,t,n,r,d,f,m,g,x,w,h,y,R,S){let T;e.ContextTypes=a.ContextTypes,e.contextTypes=a.ContextType.getAllType(),e.currentContextTypeId=a.ContextTypes.EXPLICIT.id,e.roles=[i.RoleType.SUBJECT,i.RoleType.PREDICATE,i.RoleType.OBJECT,i.RoleType.CONTEXT,i.RoleType.ALL],e.resourceInfo=void 0,e.isLoading=!1,e.fileTypes=w,e.toggleSameAs=()=>{e.resourceInfo.sameAs=!e.resourceInfo.sameAs,e.exploreResource()},e.getActiveRepository=()=>d.getActiveRepository(),e.isTripleResource=()=>!!e.resourceInfo.triple,e.encodeURIComponent=e=>encodeURIComponent(e),e.getRdfStarLocalNames=e=>{let t=e.slice();return e.replace(/[<>]+/g,"").split(" ").forEach(e=>{t=t.replace(e,m.getLocalName(e))}),t},e.getLocalName=e=>m.getLocalName(e);e.loadResource=()=>{S.getResourceDetails(e.resourceInfo.uri,e.resourceInfo.triple,e.resourceInfo.context).success(t=>{e.resourceInfo.details=t,e.resourceInfo.context=e.resourceInfo.details.context,"object"!==e.resourceInfo.uri&&(e.resourceInfo.details.encodeURI=encodeURIComponent(e.resourceInfo.details.uri))}).error(e=>n.error(y.instant("explore.error.resource.details",{data:getError(e)}))),e.exploreResource()},e.isContextAvailable=()=>null!==e.resourceInfo.context&&"http://rdf4j.org/schema/rdf4j#SHACLShapeGraph"===e.resourceInfo.context,e.goToGraphsViz=()=>{t.path("graphs-visualizations").search("uri",e.resourceInfo.uri)},e.exploreResource=()=>{I(!0),null!=r.context&&(e.resourceInfo.context=r.context),t.search("role",e.resourceInfo.role),t.replace(),O()},e.downloadExport=t=>{S.getGraph(e.resourceInfo,t.type).then(e=>{t.type.indexOf("json")>-1&&(e=JSON.stringify(e));const n=navigator.userAgent.toLowerCase();if(-1!==n.indexOf("safari")&&-1===n.indexOf("chrome"))window.open('data:attachment/csv;filename="statements.'+t.extension+'",'+encodeURIComponent(e),"statements."+t.extension);else{const n=new Blob([e],{type:t.type});Object(o.saveAs)(n,"statements"+t.extension)}}).catch(e=>{n.error(getError(e),y.instant("common.error"))}).finally(()=>{I(!1)})},e.openJSONLDExportSettings=function(t){f.open({templateUrl:"js/angular/core/components/export-settings-modal/exportSettingsModal.html",controller:p.ExportSettingsCtrl,size:"lg",scope:e,resolve:{format:function(){return t.name}}}).result.then((function(n){e.downloadJSONLDExport(t,n.link,n.currentMode)}))},e.downloadJSONLDExport=function(t,r,s){S.getGraph(e.resourceInfo,t.type,r).then((async function(e){if("JSON"===t.name&&(e=JSON.stringify(e)),"JSON-LD"===t.name)switch(s.name){case"expanded":e=await u.expand(e),e=JSON.stringify(e);break;case"flattened":e=await u.flatten(e,r),e=JSON.stringify(e);break;case"compacted":e=await u.compact(e,r),e=JSON.stringify(e);break;case"context":e=await u.context(e,r),e=JSON.stringify(e);break;case"frame":e=await u.frame(e,r),e=JSON.stringify(e);break;case"framed":e=await u.compact(e,r),e=JSON.stringify(e)}const n=navigator.userAgent.toLowerCase();if(-1!==n.indexOf("safari")&&-1===n.indexOf("chrome"))window.open('data:attachment/csv;filename="statements.'+t.extension+'",'+encodeURIComponent(e),"statements."+t.extension);else{const n=new Blob([e],{type:t.type});Object(o.saveAs)(n,"statements"+t.extension)}})).catch((function(e){const t=getError(e);n.error(t,y.instant("common.error"))}))},e.changeRole=t=>{e.resourceInfo.role=t,e.resourceInfo.role===i.RoleType.CONTEXT&&(e.resourceInfo.contextType=a.ContextTypes.EXPLICIT),e.exploreResource()},e.changeInference=t=>{e.resourceInfo.contextType=a.ContextType.getContextType(t),e.exploreResource()},e.copyToClipboardResult=e=>{g.openCopyToClipboardModal(e)};const v=()=>{var n;e.resourceInfo||(e.resourceInfo=new s.ResourceInfo,n=e.resourceInfo,r.prefix&&r.localName&&T[r.prefix]?n.uri=T[r.prefix]+r.localName:t.search().uri?n.uri=t.search().uri+(t.hash()?"#"+t.hash():""):t.search().triple?n.triple=t.search().triple+(t.hash()?"#"+t.hash():""):n.uri=t.absUrl(),n.uri=n.uri&&n.uri.replace(/<|>/g,""),null!=r.context&&(e.resourceInfo.context=r.context),e.resourceInfo.role=t.search().role?t.search().role:i.RoleType.SUBJECT)},I=t=>{e.isLoading=!!t},b=()=>({showEditorTabs:!1,showToolbar:!1,showResultTabs:!1,showResultInfo:!0,downloadAsOn:!1,showQueryButton:!1,componentId:"resource-view-component",prefixes:T,maxPersistentResponseSize:0,render:c.RenderingMode.YASR,showYasqeActionButtons:!1,yasqeActionButtons:l.DISABLE_YASQE_BUTTONS_CONFIGURATION}),O=()=>{S.getGraph(e.resourceInfo).then(t=>{((t={})=>{const n={};angular.extend(n,e.yasguiConfig||b(),t),e.yasguiConfig=n})({sparqlResponse:t})}).catch(e=>{n.error(y.instant("explore.error.resource",{data:getError(e)}))}).finally(()=>{I(!1)})},E=t=>{e.resourceInfo.contextType=t.appSettings.DEFAULT_INFERENCE&&!e.resourceInfo.role===i.RoleType.CONTEXT?a.ContextTypes.ALL:a.ContextTypes.EXPLICIT,e.resourceInfo.sameAs=t.appSettings.DEFAULT_INFERENCE&&t.appSettings.DEFAULT_SAMEAS};e.$on("$destroy",()=>{N.forEach(e=>e())});const N=[];N.push(e.$watch((function(){return e.getActiveRepositoryObject()}),(function(t){t&&Promise.all([h.getPrincipal(),d.getPrefixes(d.getActiveRepository())]).then(([t,n])=>{v(),E(t),T=n,e.loadResource()}).catch(e=>{n.error(y.instant("get.namespaces.error.msg",{error:getError(e)}))})})))}function f(e,t,n,o,s,a,i,c,l,u,p,d){function f(){c.checkAutocompleteStatus().success((function(t){if(!t){const e=Object(r.decodeHTML)(d.instant("explore.autocomplete.warning.msg"));i.warning("",`<div class="autocomplete-toast"><a href="autocomplete">${e}</a></div>`,{allowHtml:!0})}e.autocompleteEnabled=t})).error((function(){i.error(d.instant("explore.error.autocomplete"))}))}function m(){p.getNamespaces(o.getActiveRepository()).success((function(t){e.namespaces=t.results.bindings.map((function(e){return{prefix:e.prefix.value,uri:e.namespace.value}})),e.loader=!1})).error((function(t){const n=getError(t);i.error(n,d.instant("common.error")),e.loader=!1}))}function g(e){const t=e.indexOf("<")>=0&&e.lastIndexOf(">")===e.length-1,n=-1===e.indexOf("<")&&-1===e.lastIndexOf(">"),o=/^<?[http|urn].*>?$/.test(e)&&(t||n);let r=!1;if(o)if(e.indexOf("http")>=0){const t=e.indexOf("//");r=t>4&&e.substring(t+2).length>0}else e.indexOf("urn")>=0&&(r=e.substring(4).length>0);return o&&r}let x,w;function h(t){function o(t){a((function(){e.form&&(e.form.$dirty=t)}))}t||(t=document.getElementById("resources_finder_value").value),t&&g(t)?(o(!1),n.path("resource").search("uri",t)):(o(!0),t&&i.error(d.instant("explore.error.invalid.input")))}e.submit=h,e.getAutocompleteSuggestions=function(t){if(!/<|>/.test(t)&&":"===t.slice(-1)){const n=l.getNamespaceUriForPrefix(e.namespaces,t.slice(0,-1));w=n!==w?n:w,w&&$("#resources_finder_value").val(w)}let n;if(e.autocompleteEnabled){const e=t.replace(w,w+";");n=c.getAutocompleteSuggestions(e)}else n=s.when(e.autocompleteEnabled);return n},e.inputChangedFn=function(){x=document.getElementById("resources_finder_value").value,e.form.$dirty=!(x&&g(x))},e.selectedUriCallback=function(t){e.selectedUri={name:t.title},h(e.selectedUri.name)},e.selectedUri={name:""},e.autocompleteEnabled=!1,angular.isDefined(u.search)&&a((function(){$("#resources_finder_value").val(u.search),$(".search-button").click()}),500),e.getActiveRepository()&&(f(),m()),e.$on("repositoryIsSet",(function(){f(),m()}))}function m(e,t,n,o,r,s,a,i,c,l,u){e.uriParam=n.search().uri,e.newRow={subject:e.uriParam,object:{type:"uri",datatype:""}},e.newResource=!1,e.datatypeOptions=c.getDatatypeOptions(),e.activeRepository=function(){return r.getActiveRepository()},e.getClassInstancesDetails=function(){l.getNamespaces(e.activeRepository()).success((function(t){e.namespaces=t.results.bindings.map((function(e){return{prefix:e.prefix.value,uri:e.namespace.value}})),e.loader=!1})).error((function(t){const n=getError(t);o.error(n,u.instant("common.error")),e.loader=!1})),i.getDetails(e.uriParam).success((function(t){e.details=t,e.details.encodeURI=encodeURIComponent(e.details.uri)})).error((function(e){o.error(u.instant("explore.error.resource.details",{data:getError(e)}))})),i.getGraph(e.uriParam).then((function(t){const n=c.buildStatements(t,e.uriParam);e.statements=n,e.newResource=!n.length}))},e.addStatement=function(){e.newRowPredicate.$setSubmitted(),e.newRowObject.$setSubmitted(),e.newRowContext.$setSubmitted(),e.newRowPredicate.$valid&&e.newRowObject.$valid&&e.newRowContext.$valid&&(e.statements.push(_.cloneDeep(e.newRow)),e.newRow={subject:e.uriParam,object:{type:"uri",datatype:""}},e.newRowPredicate.$setPristine(),e.newRowPredicate.$setUntouched(),e.newRowObject.$setPristine(),e.newRowObject.$setUntouched(),e.newRowContext.$setPristine(),e.newRowContext.$setUntouched())},e.removeStatement=function(t){e.statements.splice(t,1)},e.getLocalName=function(e){return i.getLocalName(e)},e.checkValid=function(e){if(!angular.isUndefined(e))return!0;return u.instant("explore.validation")},e.validEditRow=function(){return e.rowform.$valid},e.viewTrig=function(){s.open({templateUrl:"js/angular/explore/templates/viewTrig.html",controller:"ViewTrigCtrl",size:"lg",resolve:{data:function(){return c.transformToTrig(e.statements)}}})},e.save=function(){const r=e.newResource?"POST":"PUT";t({method:r,url:"rest/resource?uri="+encodeURIComponent(e.uriParam),headers:{"Content-Type":"application/x-trig"},data:c.transformToTrig(e.statements)}).success((function(){o.success(u.instant("explore.resource.saved"));const t=a((function(){n.path("resource").search("uri",e.uriParam)}),500);e.$on("$destroy",(function(){a.cancel(t)}))})).error((function(e){o.error(getError(e))}))},e.$watch((function(){return r.getActiveRepository()}),(function(){e.activeRepository()&&e.getClassInstancesDetails()})),e.validateUri=function(t){let n=!0;const o=t||"";if(-1===o.indexOf(":"))n=!1;else{const t=o.substring(0,o.indexOf(":"));if(""===i.getNamespaceUriForPrefix(e.namespaces,t)){!1===/^(http:\/\/www\.|https:\/\/www\.|http:\/\/|https:\/\/)[a-z0-9]+([\-\.]{1}[a-z0-9]+)*\.[a-z]{2,5}(:[0-9]{1,5})?(\/.*)?$/.test(o)&&(n=!1);const e=o.match(/\//g);(void 0===e||e.length<3)&&(n=!1)}else{o.substring(o.indexOf(":")+1).trim().length<1&&(n=!1)}}return n}}function g(e,t,n){e.trig=n,e.cancel=function(){t.dismiss("cancel")}}angular.module("graphdb.framework.explore.controllers",["ngCookies","ngRoute","ui.bootstrap","toastr","graphdb.framework.core","graphdb.framework.core.services.repositories","graphdb.framework.explore.services","graphdb.workbench.utils.filetypes","graphdb.framework.rest.explore.rest.service"]).controller("FindResourceCtrl",f).controller("ExploreCtrl",d).controller("EditResourceCtrl",m).controller("ViewTrigCtrl",g),d.$inject=["$scope","$location","toastr","$routeParams","$repositories","$uibModal","ClassInstanceDetailsService","ModalService","RDF4JRepositoriesRestService","FileTypes","$jwtAuth","$translate","$q","ExploreRestService"],f.$inject=["$scope","$http","$location","$repositories","$q","$timeout","toastr","AutocompleteRestService","ClassInstanceDetailsService","$routeParams","RDF4JRepositoriesRestService","$translate"],m.$inject=["$scope","$http","$location","toastr","$repositories","$uibModal","$timeout","ClassInstanceDetailsService","StatementsService","RDF4JRepositoriesRestService","$translate"],g.$inject=["$scope","$uibModalInstance","data"]},509:function(e,t){(function(t){e.exports=t}).call(this,{})},510:function(e,t,n){var o,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},o=t.createElementNS("http://www.w3.org/1999/xhtml","a"),r=e.webkitRequestFileSystem,s=e.requestFileSystem||r||e.mozRequestFileSystem,a=function(t){(e.setImmediate||e.setTimeout)((function(){throw t}),0)},i=0,c=function(t){var o=function(){"string"==typeof t?n().revokeObjectURL(t):t.remove()};e.chrome?o():setTimeout(o,500)},l=function(e,t,n){for(var o=(t=[].concat(t)).length;o--;){var r=e["on"+t[o]];if("function"==typeof r)try{r.call(e,n||e)}catch(e){a(e)}}},u=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},p=function(t,a){t=u(t);var p,d,f,m=this,g=t.type,x=!1,w=function(){l(m,"writestart progress write writeend".split(" "))},h=function(){(!x&&p||(p=n().createObjectURL(t)),d)?d.location.href=p:null==e.open(p,"_blank")&&"undefined"!=typeof safari&&(e.location.href=p);m.readyState=m.DONE,w(),c(p)},y=function(e){return function(){if(m.readyState!==m.DONE)return e.apply(this,arguments)}},R={create:!0,exclusive:!1};if(m.readyState=m.INIT,a||(a="download"),o)return p=n().createObjectURL(t),o.href=p,o.download=a,void setTimeout((function(){var e,t;e=o,t=new MouseEvent("click"),e.dispatchEvent(t),w(),c(p),m.readyState=m.DONE}));e.chrome&&g&&"application/octet-stream"!==g&&(f=t.slice||t.webkitSlice,t=f.call(t,0,t.size,"application/octet-stream"),x=!0),r&&"download"!==a&&(a+=".download"),("application/octet-stream"===g||r)&&(d=e),s?(i+=t.size,s(e.TEMPORARY,i,y((function(e){e.root.getDirectory("saved",R,y((function(e){var n=function(){e.getFile(a,R,y((function(e){e.createWriter(y((function(n){n.onwriteend=function(t){d.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&&h()},"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})),h)})),h)};e.getFile(a,{create:!1},y((function(e){e.remove(),n()})),y((function(e){e.code===e.NOT_FOUND_ERR?n():h()})))})),h)})),h)):h()},d=p.prototype;return"undefined"!=typeof navigator&&navigator.msSaveOrOpenBlob?function(e,t){return navigator.msSaveOrOpenBlob(u(e),t)}:(d.abort=function(){this.readyState=this.DONE,l(this,"abort")},d.readyState=d.INIT=0,d.WRITING=1,d.DONE=2,d.error=d.onwritestart=d.onprogress=d.onwrite=d.onabort=d.onerror=d.onwriteend=null,function(e,t){return new p(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(521)&&null!=n(509)&&(void 0===(o=function(){return r}.apply(t,[]))||(e.exports=o))},521:function(e,t){e.exports=function(){throw new Error("define cannot be used indirect")}},595:function(e,t){},70:function(e,t,n){"use strict";n.r(t),n.d(t,"RenderingMode",(function(){return o}));const o={YASGUI:"mode-yasgui",YASQE:"mode-yasqe",YASR:"mode-yasr"}},97:function(e,t,n){"use strict";n.r(t),n.d(t,"ContextType",(function(){return o})),n.d(t,"ContextTypes",(function(){return r}));class o{constructor(e,t){this.id=e,this.labelKey=t}static getAllType(){return[r.ALL,r.EXPLICIT,r.IMPLICIT]}static getContextType(e){return this.getAllType().find(t=>t.id===e)}}const r={ALL:new o("all","explore.explicit.implicit"),EXPLICIT:new o("explicit","explore.explicit"),IMPLICIT:new o("implicit","explore.implicit")}}}]);
@@ -1 +0,0 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([[241],{161:function(r,n,e){"use strict";e.r(n),e.d(n,"SparqlTemplateError",(function(){return o}));class o extends Error{}}}]);
@@ -1 +0,0 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([[248],{143:function(t,e,s){"use strict";s.r(e),s.d(e,"AgentFormModel",(function(){return r})),s.d(e,"ExtractionMethodsFormModel",(function(){return i})),s.d(e,"ExtractionMethodFormModel",(function(){return o})),s.d(e,"AdditionalExtractionMethodsFormModel",(function(){return n})),s.d(e,"AdditionalExtractionMethodFormModel",(function(){return a})),s.d(e,"AgentInstructionsFormModel",(function(){return h}));class r{constructor(t){this._name=t.name,this._repositoryId=t.repositoryId,this._model=t.model,this._temperature=t.temperature,this._topP=t.topP,this._seed=t.seed,this._instructions=t.instructions,this._assistantExtractionMethods=t.assistantExtractionMethods,this._additionalExtractionMethods=t.additionalExtractionMethods}toPayload(){return{name:this._name,repositoryId:this._repositoryId,model:this._model,temperature:this._temperature.value,topP:this._topP.value,seed:this._seed,assistantsInstructions:this._instructions.toPayload(),assistantExtractionMethods:this._assistantExtractionMethods.toPayload(),additionalExtractionMethods:this._additionalExtractionMethods.toPayload()}}hasExtractionMethodSelected(){return this._assistantExtractionMethods.extractionMethods.some(t=>t.selected)}get id(){return this._id}set id(t){this._id=t}get name(){return this._name}set name(t){this._name=t}get repositoryId(){return this._repositoryId}set repositoryId(t){this._repositoryId=t}get model(){return this._model}set model(t){this._model=t}get temperature(){return this._temperature}set temperature(t){this._temperature=t}get topP(){return this._topP}set topP(t){this._topP=t}get seed(){return this._seed}set seed(t){this._seed=t}get instructions(){return this._instructions}set instructions(t){this._instructions=t}get assistantExtractionMethods(){return this._assistantExtractionMethods}set assistantExtractionMethods(t){this._assistantExtractionMethods=t}get additionalExtractionMethods(){return this._additionalExtractionMethods}set additionalExtractionMethods(t){this._additionalExtractionMethods=t}}class i{constructor(t){this._extractionMethods=t}toPayload(){return this._extractionMethods.filter(t=>t.selected).map(t=>t.toPayload())}get extractionMethods(){return this._extractionMethods}set extractionMethods(t){this._extractionMethods=t}}class o{constructor(t){this._selected=t.selected||!1,this._method=t.method,this._sparqlOption=t.sparqlOption,this._ontologyGraph=t.ontologyGraph,this._sparqlQuery=t.sparqlQuery,this._maxNumberOfTriplesPerCall=t.maxNumberOfTriplesPerCall,this._similarityIndex=t.similarityIndex,this._similarityIndexThreshold=t.similarityIndexThreshold,this._queryTemplate=t.queryTemplate,this._retrievalConnectorInstance=t.retrievalConnectorInstance}toPayload(){const t={};return t.method=this._method?this._method:null,"ontologyGraph"===this._sparqlOption?t.ontologyGraph=this._ontologyGraph?this._ontologyGraph:null:"sparqlQuery"===this._sparqlOption&&(t.constructQuery=this._sparqlQuery?this._sparqlQuery.value:null),this._maxNumberOfTriplesPerCall&&(t.maxNumberOfTriplesPerCall=this._maxNumberOfTriplesPerCall),this._similarityIndex&&(t.similarityIndex=this._similarityIndex),this._similarityIndexThreshold&&this._similarityIndexThreshold.value&&(t.similarityIndexThreshold=parseFloat(this._similarityIndexThreshold.value)),this._queryTemplate&&this._queryTemplate.value&&(t.queryTemplate=this._queryTemplate.value),this._retrievalConnectorInstance&&(t.retrievalConnectorInstance=this._retrievalConnectorInstance),t}get selected(){return this._selected}set selected(t){this._selected=t}get method(){return this._method}set method(t){this._method=t}get sparqlOption(){return this._sparqlOption}set sparqlOption(t){this._sparqlOption=t}get sparqlQuery(){return this._sparqlQuery}set sparqlQuery(t){this._sparqlQuery=t}get ontologyGraph(){return this._ontologyGraph}set ontologyGraph(t){this._ontologyGraph=t}get maxNumberOfTriplesPerCall(){return this._maxNumberOfTriplesPerCall}set maxNumberOfTriplesPerCall(t){this._maxNumberOfTriplesPerCall=t}get similarityIndex(){return this._similarityIndex}set similarityIndex(t){this._similarityIndex=t}get similarityIndexThreshold(){return this._similarityIndexThreshold}set similarityIndexThreshold(t){this._similarityIndexThreshold=t}get queryTemplate(){return this._queryTemplate}set queryTemplate(t){this._queryTemplate=t}get retrievalConnectorInstance(){return this._retrievalConnectorInstance}set retrievalConnectorInstance(t){this._retrievalConnectorInstance=t}}class n{constructor(t){this._additionalExtractionMethods=t}toPayload(){return this._additionalExtractionMethods.map(t=>t.toPayload())}get additionalExtractionMethods(){return this._additionalExtractionMethods}set additionalExtractionMethods(t){this._additionalExtractionMethods=t}}class a{constructor(t){this._selected=t.selected||!1,this._method=t.method}toPayload(){return{method:this._method}}get selected(){return this._selected}set selected(t){this._selected=t}get method(){return this._method}set method(t){this._method=t}}class h{constructor(t){this._systemInstruction=t.systemInstruction,this._userInstruction=t.userInstruction}toPayload(){return{systemInstruction:this._systemInstruction,userInstruction:this._userInstruction}}get systemInstruction(){return this._systemInstruction}set systemInstruction(t){this._systemInstruction=t}get userInstruction(){return this._userInstruction}set userInstruction(t){this._userInstruction=t}}}}]);
@@ -1 +0,0 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([[294],{88:function(n,o,t){"use strict";t.r(o),t.d(o,"AGENT_ID",(function(){return s})),t.d(o,"AGENTS_FILTER_ALL_KEY",(function(){return u}));const s="asst_uoKp5kgnPlyZHhRXY7P2r9D7",u="ALL"}}]);
@@ -1 +0,0 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([[378],{480:function(module,exports){module.exports=function(obj){obj||(obj={});var __t,__p="";with(obj)__p+='<link href="css/ttyg/agent-settings-modal.css?v=2.8.0-TR2" rel="stylesheet"/>\n<link href="js/lib/rzslider/rzslider.min.css?v=2.8.0-TR2" rel="stylesheet"/>\n\n<div class="modal-header">\n <button type="button" class="close" ng-click="close()"></button>\n <h4 class="modal-title">{{\'ttyg.agent.create_agent_modal.title\' | translate}}</h4>\n</div>\n\n<div class="modal-body">\n <form novalidate name="agentSettingsForm" id="agentSettingsForm" class="agent-settings-form">\n <div class="form-group agent-name">\n <label for="name">{{\'ttyg.agent.create_agent_modal.form.agent_name.label\' | translate}}</label>\n <input type="text" class="form-control" id="name" name="name" ng-model="agentFormModel.name"\n required autocomplete="off"\n placeholder="{{\'ttyg.agent.create_agent_modal.form.agent_name.placeholder\' | translate}}">\n <div class="alert alert-danger"\n ng-if="agentSettingsForm.name.$touched && agentSettingsForm.name.$invalid">\n {{\'required.field\' | translate}}\n </div>\n </div>\n <div class="form-group repository-id">\n <label for="repositoryId">{{\'ttyg.agent.create_agent_modal.form.repository.label\' | translate}}</label>\n <select class="form-control" id="repositoryId" name="repositoryId" ng-model="agentFormModel.repositoryId"\n required ng-change="onRepositoryChange()"\n ng-options="repository.value as repository.label for repository in activeRepositoryList">\n </select>\n <div class="alert alert-danger"\n ng-if="agentSettingsForm.repositoryId.$touched && agentSettingsForm.repositoryId.$invalid">\n {{\'required.field\' | translate}}\n </div>\n </div>\n <div class="form-group extraction-methods-group">\n <label for="extractionMethods">{{\'ttyg.agent.create_agent_modal.form.extraction_method.label\' |\n translate}}</label>\n <div id="extractionMethods" name="extractionMethods"\n ng-model="agentFormModel.assistantExtractionMethods.extractionMethods"\n required class="accordion extraction-methods"\n ng-class="{\'has-error\': agentSettingsForm.extractionMethods.$touched && agentSettingsForm.extractionMethods.$invalid}">\n <div ng-repeat="extractionMethod in agentFormModel.assistantExtractionMethods.extractionMethods"\n class="extraction-method">\n <div id="{{extractionMethod.method + \'_method_heading\'}}" class="extraction-method-heading"\n ng-class="{\'selected\': extractionMethod.selected}">\n <div class="mr-0 extraction-method-toggle">\n <input type="checkbox" id="{{extractionMethod.method + \'_checkbox\'}}"\n name="{{extractionMethod}}" class="switch"\n ng-change="toggleExtractionMethod()"\n ng-model="extractionMethod.selected"/>\n <label for="{{extractionMethod.method + \'_checkbox\'}}"></label>\n </div>\n <a class="btn btn-link panel-toggle-link collapsed" data-toggle="collapse"\n data-target="#{{extractionMethod.method + \'_method_content\'}}"\n aria-expanded="false" aria-controls="{{extractionMethod.method + \'_method_content\'}}"\n ng-click="onExtractionMethodPanelToggle(extractionMethod)">\n <span class="mr-1">{{\'ttyg.agent.create_agent_modal.form.\' + extractionMethod.method + \'.label\' | translate}}</span>\n <i class="fa-regular fa-chevron-down toggle-icon"></i>\n </a>\n </div>\n\n <div id="{{extractionMethod.method + \'_method_content\'}}"\n class="collapse show extraction-method-content"\n aria-labelledby="{{extractionMethod.method + \'_method_heading\'}}"\n data-parent="#extractionMethods">\n\n \x3c!-- SPARQL method settings --\x3e\n\n <div ng-if="extractionMethod.method === extractionMethods.SPARQL"\n class="extraction-method-options"\n ng-class="{\'has-error\': extractionMethod.selected && !extractionMethod.sparqlOption}">\n <div class="sparql-option ontology-graph-option">\n <label class="radio-inline">\n <input type="radio" name="sparqlOption" ng-required="extractionMethod.selected"\n ng-model="extractionMethod.sparqlOption" value="ontologyGraph">\n {{\'ttyg.agent.create_agent_modal.form.ontology_graph.label\' | translate}}\n </label>\n <div class="panel" ng-show="extractionMethod.sparqlOption === \'ontologyGraph\'">\n <div class="form-group">\n <input type="text" class="form-control" id="ontologyGraph"\n name="ontologyGraph"\n ng-required="extractionMethod.selected && extractionMethod.sparqlOption === \'ontologyGraph\'"\n ng-model="extractionMethod.ontologyGraph">\n </div>\n </div>\n </div>\n <div class="sparql-option sparql-query-option">\n <label class="radio-inline">\n <input type="radio" name="sparqlOption" ng-required="extractionMethod.selected"\n ng-model="extractionMethod.sparqlOption" value="sparqlQuery">\n {{\'ttyg.agent.create_agent_modal.form.construct_query.label\' | translate}}\n </label>\n <div class="panel" ng-show="extractionMethod.sparqlOption === \'sparqlQuery\'">\n <div class="form-group">\n <textarea type="text" class="form-control" id="sparqlQuery"\n name="sparqlQuery"\n ng-required="extractionMethod.selected && extractionMethod.sparqlOption === \'sparqlQuery\'"\n ng-minlength="extractionMethod.sparqlQuery.minLength"\n ng-maxlength="extractionMethod.sparqlQuery.maxLength"\n ng-model="extractionMethod.sparqlQuery.value">\n </textarea>\n </div>\n </div>\n </div>\n <div class="alert alert-danger sparql-method-option-required-error mb-0"\n ng-if="extractionMethod.selected && !extractionMethod.sparqlOption">\n {{\'ttyg.agent.create_agent_modal.form.sparql_search.required_option\' | translate}}\n </div>\n </div>\n\n \x3c!-- FTS method settings --\x3e\n\n <div ng-if="extractionMethod.method === extractionMethods.FTS_SEARCH"\n class="extraction-method-options">\n <div class="alert alert-danger missing-repositoryid-error mb-0"\n ng-if="!agentFormModel.repositoryId">\n {{\'ttyg.agent.create_agent_modal.form.fts_search.missing_repository_id\' | translate}}\n </div>\n <div ng-if="!ftsEnabled && agentFormModel.repositoryId" class="fts-disabled-message"\n ng-bind-html="getFTSDisabledHelpMessage()">\n </div>\n <div class="form-group max-triples" ng-show="ftsEnabled && agentFormModel.repositoryId">\n <label for="{{extractionMethods.FTS_SEARCH + \'_maxNumberOfTriplesPerCall\'}}">\n {{\'ttyg.agent.create_agent_modal.form.max_number_of_triples_per_call.label\' |\n translate}}\n </label>\n <input type="number" class="form-control"\n id="{{extractionMethods.FTS_SEARCH + \'_maxNumberOfTriplesPerCall\'}}"\n name="maxNumberOfTriplesPerCall" min="0"\n ng-model="extractionMethod.maxNumberOfTriplesPerCall"\n placeholder="{{\'ttyg.agent.create_agent_modal.form.max_number_of_triples_per_call.placeholder\' | translate}}">\n </div>\n </div>\n\n \x3c!-- Similarity method settings --\x3e\n\n <div ng-if="extractionMethod.method === extractionMethods.SIMILARITY"\n class="extraction-method-options">\n <div ng-if="!similarityIndexes.length" class="no-similarity-index-message"\n ng-bind-html="getNoSimilarityIndexHelpMessage()">\n </div>\n <div ng-show="similarityIndexes.length">\n <div class="form-group similarity-index">\n <label for="similarityIndex">{{\'ttyg.agent.create_agent_modal.form.similarity_index.label\'\n | translate}}</label>\n <span ng-if="extractionMethodLoaderFlags.similarity_search" onto-loader-fancy\n size="16"></span>\n <select class="form-control" id="similarityIndex" name="similarityIndex"\n ng-required="extractionMethod.selected"\n ng-if="!extractionMethodLoaderFlags.similarity_search"\n ng-model="extractionMethod.similarityIndex"\n ng-options="similarityIndex.value as similarityIndex.label for similarityIndex in similarityIndexes">\n </select>\n <div class="alert alert-danger"\n ng-if="extractionMethod.similarityIndex.$touched && extractionMethod.similarityIndex.$invalid">\n {{\'required.field\' | translate}}\n </div>\n </div>\n <div class="form-group similarity-index-threshold">\n <label for="similarityIndexThreshold">{{\'ttyg.agent.create_agent_modal.form.similarity_threshold.label\'\n | translate}}</label>\n <input type="text" class="form-control" id="similarityIndexThreshold"\n name="similarityIndexThreshold" readonly\n ng-model="extractionMethod.similarityIndexThreshold.value">\n <input id="similarityIndexThresholdSlider" name="similarityIndexThreshold"\n type="range" ng-required="extractionMethod.selected"\n min="{{extractionMethod.similarityIndexThreshold.minValue}}"\n max="{{extractionMethod.similarityIndexThreshold.maxValue}}"\n step="{{extractionMethod.similarityIndexThreshold.step}}"\n ng-model="extractionMethod.similarityIndexThreshold.value"/>\n </div>\n <div class="form-group similarity-max-triples">\n <label for="{{extractionMethods.SIMILARITY + \'_maxNumberOfTriplesPerCall\'}}">\n {{\'ttyg.agent.create_agent_modal.form.max_number_of_triples_per_call.label\'\n | translate}}</label>\n <input type="number" class="form-control"\n id="{{extractionMethods.SIMILARITY + \'_maxNumberOfTriplesPerCall\'}}"\n name="maxNumberOfTriplesPerCall" min="0"\n ng-model="extractionMethod.maxNumberOfTriplesPerCall"\n placeholder="{{\'ttyg.agent.create_agent_modal.form.max_number_of_triples_per_call.placeholder\' | translate}}">\n </div>\n </div>\n </div>\n\n \x3c!-- Retrieval method settings --\x3e\n\n <div ng-if="extractionMethod.method === extractionMethods.RETRIEVAL"\n class="extraction-method-options">\n <div ng-if="!retrievalConnectors.length" class="no-retrieval-connector-message"\n ng-bind-html="getNoRetrievalConnectorHelpMessage()">\n </div>\n <div ng-show="retrievalConnectors.length">\n <div class="form-group retrieval-connector">\n <label for="retrievalConnectorInstance">{{\'ttyg.agent.create_agent_modal.form.connector_id.label\'\n | translate}}</label>\n <span ng-if="extractionMethodLoaderFlags.retrieval_search" onto-loader-fancy\n size="16"></span>\n <select class="form-control" id="retrievalConnectorInstance"\n name="retrievalConnectorInstance"\n ng-required="extractionMethod.selected"\n ng-if="!extractionMethodLoaderFlags.retrieval_search"\n ng-model="extractionMethod.retrievalConnectorInstance"\n ng-options="retrievalConnector.value as retrievalConnector.label for retrievalConnector in retrievalConnectors">\n </select>\n <div class="alert alert-danger"\n ng-if="extractionMethod.retrievalConnectorInstance.$touched && extractionMethod.retrievalConnectorInstance.$invalid">\n {{\'required.field\' | translate}}\n </div>\n </div>\n <div class="form-group query-template">\n <label for="queryTemplate">{{\'ttyg.agent.create_agent_modal.form.query_template.label\'\n |\n translate}}</label>\n <textarea type="text" class="form-control" id="queryTemplate" name="queryTemplate"\n ng-required="extractionMethod.selected"\n ng-minlength="extractionMethod.queryTemplate.minLength"\n ng-maxlength="extractionMethod.queryTemplate.maxLength"\n ng-model="extractionMethod.queryTemplate.value">\n </textarea>\n <div class="alert alert-danger"\n ng-if="extractionMethod.name.$touched && extractionMethod.name.$invalid">\n {{\'required.field\' | translate}}\n </div>\n </div>\n <div class="form-group retrieval-connector-max-triples">\n <label for="{{extractionMethods.RETRIEVAL + \'_maxNumberOfTriplesPerCall\'}}">\n {{\'ttyg.agent.create_agent_modal.form.max_number_of_triples_per_call.label\'\n | translate}}</label>\n <input type="number" class="form-control"\n id="{{extractionMethods.RETRIEVAL + \'_maxNumberOfTriplesPerCall\'}}"\n name="maxNumberOfTriplesPerCall" min="0"\n ng-model="extractionMethod.maxNumberOfTriplesPerCall"\n placeholder="{{\'ttyg.agent.create_agent_modal.form.max_number_of_triples_per_call.placeholder\' | translate}}">\n </div>\n </div>\n </div>\n\n </div>\n </div>\n </div>\n <div class="alert alert-danger extraction-method-required-error"\n ng-if="agentSettingsForm.extractionMethods.$touched && agentSettingsForm.extractionMethods.$invalid">\n {{\'ttyg.agent.create_agent_modal.form.extraction_method.required\' | translate}}\n </div>\n </div>\n\n <div class="form-group additional-extraction-methods">\n <label>{{\'ttyg.agent.create_agent_modal.form.additional_query_methods.label\' | translate}}</label>\n <div\n ng-repeat="additionalExtractionMethod in agentFormModel.additionalExtractionMethods.additionalExtractionMethods"\n class="additional-extraction-method">\n <input type="checkbox" id="{{additionalExtractionMethod.method + \'_checkbox\'}}"\n name="{{additionalExtractionMethod.method}}" class="switch"\n ng-model="additionalExtractionMethod.selected"/>\n <label for="{{additionalExtractionMethod.method + \'_checkbox\'}}"></label>\n <span class="extraction-method-label">{{\'ttyg.agent.create_agent_modal.form.additional_query_methods.method.\' +\n additionalExtractionMethod.method | translate}}</span>\n </div>\n </div>\n\n <div class="form-group gpt-model">\n <label for="model">{{\'ttyg.agent.create_agent_modal.form.model.label\' | translate}}</label>\n <input type="text" class="form-control" id="model" name="model" ng-model="agentFormModel.model"\n required autocomplete="off">\n <small id="modelHelp" class="form-text text-muted"\n ng-bind-html="getModelHelpMessage()">\n </small>\n <div class="alert alert-danger"\n ng-if="agentSettingsForm.model.$touched && agentSettingsForm.model.$invalid">\n {{\'required.field\' | translate}}\n </div>\n </div>\n\n <div class="form-row clearfix">\n <div class="form-group temperature col-md-4 pl-0">\n <label for="temperature">{{\'ttyg.agent.create_agent_modal.form.temperature.label\' | translate}}</label>\n <input type="text" class="form-control" id="temperature" name="temperature" readonly\n ng-model="agentFormModel.temperature.value">\n <input id="temperatureSlider" name="temperature" type="range"\n min="{{agentFormModel.temperature.minValue}}"\n max="{{agentFormModel.temperature.maxValue}}" step="{{agentFormModel.temperature.step}}"\n ng-model="agentFormModel.temperature.value"/>\n </div>\n <div class="form-group top-p col-md-4">\n <label for="topP">{{\'ttyg.agent.create_agent_modal.form.top_p.label\' | translate}}</label>\n <input type="text" class="form-control" id="topP" name="topP" readonly\n ng-model="agentFormModel.topP.value">\n <input id="topPSlider" name="topP" type="range" min="{{agentFormModel.topP.minValue}}"\n max="{{agentFormModel.topP.maxValue}}" step="{{agentFormModel.topP.step}}"\n ng-model="agentFormModel.topP.value"/>\n </div>\n <div class="form-group seed col-md-4 pr-0">\n <label for="seed">{{\'ttyg.agent.create_agent_modal.form.seed.label\' | translate}}</label>\n <input type="number" class="form-control" id="seed" name="seed" min="0" ng-model="agentFormModel.seed"\n placeholder="{{\'ttyg.agent.create_agent_modal.form.seed.hint\' | translate}}">\n </div>\n </div>\n\n <div class="text-xs-center">\n <button type="button" ng-click="showAdvancedSettings = !showAdvancedSettings"\n class="btn btn-link btn-sm toggle-advanced-settings">\n <span ng-hide="showAdvancedSettings">{{\'ttyg.agent.create_agent_modal.advanced_settings.show\' | translate}}<em\n class="icon-caret-down"></em></span>\n <span ng-show="showAdvancedSettings">{{\'ttyg.agent.create_agent_modal.advanced_settings.hide\' | translate}}<em\n class="icon-caret-up"></em></span>\n </button>\n </div>\n\n <div ng-show="showAdvancedSettings" class="advanced-settings">\n <div class="form-group system-instructions">\n <label for="systemInstruction">{{\'ttyg.agent.create_agent_modal.form.system_instruction.label\' |\n translate}}</label>\n <textarea type="text" class="form-control" id="systemInstruction" name="systemInstruction"\n ng-model="agentFormModel.instructions.systemInstruction"\n placeholder="{{\'ttyg.agent.create_agent_modal.form.system_instruction.placeholder\' | translate}}">\n </textarea>\n </div>\n <div class="form-group user-instructions">\n <label for="userInstruction">{{\'ttyg.agent.create_agent_modal.form.user_instruction.label\' |\n translate}}</label>\n <textarea type="text" class="form-control" id="userInstruction" name="userInstruction"\n ng-model="agentFormModel.instructions.userInstruction"\n placeholder="{{\'ttyg.agent.create_agent_modal.form.user_instruction.placeholder\' | translate}}">\n </textarea>\n </div>\n </div>\n </form>\n</div>\n\n<div class="modal-footer">\n <button type="button" ng-click="cancel()" class="btn btn-link cancel-btn">\n {{\'ttyg.agent.create_agent_modal.btn.cancel.label\' | translate}}\n </button>\n <button type="button" ng-click="ok()" ng-disabled="agentSettingsForm.$invalid"\n class="btn btn-primary save-agent-settings-btn">\n {{\'ttyg.agent.create_agent_modal.btn.create.label\' | translate}}\n </button>\n</div>\n';return __p}}}]);
@@ -1 +0,0 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([[381],{483:function(module,exports){module.exports=function(obj){obj||(obj={});var __t,__p="";with(obj)__p+='<link href="css/ttyg/ttyg.css?v=2.8.0-TR2" rel="stylesheet"/>\n\n<div class="ttyg-view">\n <h1 id="ttyg-view-title">\n {{ title }}\n <span class="btn btn-link"\n uib-popover-template="\'js/angular/templates/titlePopoverTemplate.html\'"\n popover-trigger="mouseenter"\n popover-placement="bottom-right"\n popover-append-to-body="true"><span class="icon-info text-tertiary"></span></span>\n </h1>\n\n <div core-errors></div>\n\n <div onto-loader-new\n ng-show="loadingAgents"\n class="ttyg-page-loader"\n size="100">\n </div>\n\n <no-agents-view ng-cloak ng-if="!loadingAgents && (!agents || agents.isEmpty())"></no-agents-view>\n\n <div id="ttyg-container" class="ttyg-container" ng-show="getActiveRepository() && !loadingAgents && agents && !agents.isEmpty()">\n\n <div id="left-sidebar" class="left-sidebar sidebar" ng-class="showChats ? \'expanded\' : \'collapsed\'">\n <div class="toolbar">\n <button class="btn btn-link secondary btn-sm toggle-chats-sidebar-btn"\n ng-if="true"\n ng-click="toggleChatsListSidebar()"\n ng-disabled="false"\n gdb-tooltip="{{\'ttyg.chat.btn.\' + (showChats ? \'close_sidebar\' : \'open_sidebar\') + \'.tooltip\' | translate}}">\n <i class="fa-regular fa-sidebar"></i>\n </button>\n <button class="btn btn-link secondary btn-sm create-chat-btn"\n ng-if="chats && !chats.isEmpty()"\n ng-click="startNewChat()"\n ng-disabled="false"\n gdb-tooltip="{{\'ttyg.chat.btn.create_chat.tooltip\' | translate}}">\n <i class="fa-regular fa-pen-to-square"></i>\n </button>\n </div>\n <pageslide\n ps-class="chat-list-panel slide-panel"\n ps-container="left-sidebar"\n ps-open="showChats"\n onopen="onopen"\n onclose="onclose"\n ps-side="left"\n ps-click-outside="false"\n ps-size="80vw">\n <div class="sidebar-content">\n <chat-list ng-if="chats" chat-list="chats"></chat-list>\n <div ng-if="loadingChats" onto-loader-fancy message="{{\'ttyg.chat.loading_chats\' | translate}}"\n size="25" style="height: 75vh; display: flex;"></div>\n </div>\n </pageslide>\n </div>\n\n <div class="chat-content">\n <div class="toolbar">\n <agent-select-menu class="mr-1"></agent-select-menu>\n <button class="btn btn-link secondary btn-sm edit-current-agent-btn mr-1"\n ng-if="true"\n ng-click="editAgent()"\n ng-disabled="false"\n gdb-tooltip="{{\'ttyg.agent.btn.edit_agent.tooltip\' | translate}}">\n <i class="fa-regular fa-gear"></i>\n </button>\n <button class="btn btn-link secondary btn-sm export-current-chat-btn"\n ng-if="true"\n ng-click="onExportSelectedChat()"\n ng-disabled="false"\n gdb-tooltip="{{\'ttyg.chat.btn.export_chat.tooltip\' | translate}}">\n <i class="fa-regular fa-arrow-down-to-line"></i>\n </button>\n </div>\n\n <div class="chat">\n <div uib-collapse="!isCollapsed" id="ot-help-text" class="alert alert-info">\n <button type="button" ng-click="isCollapsed = false" gdb-tooltip="{{\'common.close\' | translate}}"\n class="close"\n aria-label="Close"></button>\n <div ng-include="helpTemplateUrl"></div>\n </div>\n\n <chat-panel class="selected-chat-panel"></chat-panel>\n </div>\n \x3c!-- <div class="controls">--\x3e\n \x3c!-- <button class="btn btn-link btn-lg" ng-click="isCollapsed = !isCollapsed">--\x3e\n \x3c!-- <i class="icon-help"></i>--\x3e\n \x3c!-- </button>--\x3e\n \x3c!-- <button class="btn btn-link btn-lg" ng-click="openSettings()">--\x3e\n \x3c!-- <i class="icon-settings"></i>--\x3e\n \x3c!-- </button>--\x3e\n \x3c!-- <a class="btn btn-link btn-lg secondary" ng-click="clear()">--\x3e\n \x3c!-- <i class="icon-trash"></i>--\x3e\n \x3c!-- </a>--\x3e\n \x3c!-- </div>--\x3e\n </div>\n\n <div id="right-sidebar" class="right-sidebar sidebar" ng-class="showAgents ? \'expanded\' : \'collapsed\'">\n <div class="toolbar">\n <button class="btn btn-link secondary btn-sm help-btn"\n ng-if="true"\n ng-click="openHelp()"\n ng-disabled="false"\n gdb-tooltip="{{\'ttyg.help.btn.show_help.tooltip\' | translate}}">\n <i class="fa-regular fa-circle-question"></i>\n </button>\n <button class="btn btn-link secondary btn-sm create-agent-btn"\n ng-if="true"\n ng-click="onCreateAgent()"\n ng-disabled="false"\n gdb-tooltip="{{\'ttyg.agent.btn.create_agent.tooltip\' | translate}}">\n <i class="fa-regular fa-circle-plus"></i>\n </button>\n <button class="btn btn-link secondary btn-sm toggle-agents-sidebar-btn"\n ng-if="true"\n ng-click="toggleAgentsListSidebar()"\n ng-disabled="false"\n gdb-tooltip="{{\'ttyg.agent.btn.\' + (showAgents ? \'close_sidebar\' : \'open_sidebar\') + \'.tooltip\' | translate}}">\n <i class="fa-regular" ng-class="showAgents ? \'fa-xmark\' : \'fa-message-bot\'"></i>\n </button>\n </div>\n\n <pageslide\n ps-class="agent-list-panel slide-panel"\n ps-container="right-sidebar"\n ps-open="showAgents"\n onopen="onopen"\n onclose="onclose"\n ps-side="right"\n ps-click-outside="false"\n ps-size="80vw">\n <div class="sidebar-content">\n <agent-list ng-if="agents" agent-list="agents"\n agent-list-filter-model="agentListFilterModel"></agent-list>\n <div ng-if="reloadingAgents" onto-loader-fancy message="{{\'ttyg.agent.loading_agents\' | translate}}"\n size="25" style="height: 75vh; display: flex;"></div>\n </div>\n </pageslide>\n </div>\n </div>\n</div>\n';return __p}}}]);
@@ -1 +0,0 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([[4,41,43,68,69,70,96,97,98,179,248,249,294],{116:function(t,e,s){"use strict";s.r(e),s.d(e,"ChatModel",(function(){return i})),s.d(e,"ChatByDayModel",(function(){return n})),s.d(e,"ChatsListModel",(function(){return a}));var r=s(79);class i{constructor(t,e){this.hashGenerator=e,this._id=t.id,this._name=t.name,this._timestamp=t.timestamp,this._chatHistory=t.chatHistory,this.hash=this.generateHash()}generateHash(){return this.hashGenerator(JSON.stringify(this))}get id(){return this._id}set id(t){this._id=t}get name(){return this._name}set name(t){this.generateHash(),this._name=t}get timestamp(){return this._timestamp}set timestamp(t){this._timestamp=t}get chatHistory(){return this._chatHistory}set chatHistory(t){this._chatHistory=t||new r.ChatItemsListModel}toRenameRequestPayload(){return{name:this._name}}}class n{constructor(t){this._day=t.day,this._timestamp=t.timestamp,this._chats=t.chats}get day(){return this._day}set day(t){this._day=t}get timestamp(){return this._timestamp}set timestamp(t){this._timestamp=t}get chats(){return this._chats}set chats(t){this._chats=t}}class a{constructor(t){this._chats=t||[],this._chatsByDay=[],this._chats.forEach(t=>{const e=new Date(1e3*t.timestamp).toDateString(),s=this._chatsByDay.find(t=>t.day===e);s?s.chats.push(t):this._chatsByDay.push(new n({day:e,timestamp:1e3*t.timestamp,chats:[t]}))})}isEmpty(){return 0===this._chats.length}getFirstChat(){return this._chats[0]}deselectAll(){this._chats.forEach(t=>{t.selected=!1})}selectChat(t){this.deselectAll(),this._chats.forEach(e=>{e.selected=e.id===t.id})}getChat(t){return this._chats.find(e=>e.id===t)}renameChat(t){const e=this._chats.find(e=>e.id===t.id);e&&(e.name=t.name)}get chats(){return this._chats}set chats(t){this._chats=t}get chatsByDay(){return this._chatsByDay}set chatsByDay(t){this._chatsByDay=t}}},117:function(t,e,s){"use strict";s.r(e),s.d(e,"chatMessageModelListMapper",(function(){return n})),s.d(e,"chatItemsModelMapper",(function(){return a})),s.d(e,"chatMessageModelMapper",(function(){return o}));var r=s(72),i=s(79);const n=t=>t?t.map(t=>o(t)):[],a=(t=[])=>{const e=[];let s;return t.forEach(t=>{if(r.CHAT_MESSAGE_ROLE.USER===t.role){s&&e.push(s);const r=t.conversationId,n=t.agentId;s=new i.ChatItemModel(r,n,t)}else s.answer=t}),s&&e.push(s),new i.ChatItemsListModel(e)},o=t=>{if(t)return new r.ChatMessageModel({id:t.id,role:t.role,message:t.message,timestamp:t.timestamp,data:t})}},142:function(t,e,s){"use strict";s.r(e),s.d(e,"TtygRestServiceFakeBackend",(function(){return n}));var r=s(30),i=s(72);class n{constructor(){this.conversations=[...a]}getConversations(){return new Promise(t=>{t({data:Object(r.cloneDeep)(this.conversations)})})}getConversation(t){return Promise.resolve({data:Object(r.cloneDeep)(this.conversations.find(e=>e.id===t))})}renameConversation(t,e){const s=this.conversations.find(e=>e.id===t);return s&&(s.name=e.name),Promise.resolve({data:Object(r.cloneDeep)(s)})}exportConversation(t){return console.log("Exporting conversation with id: ",t),Promise.resolve()}askQuestion(t){const e={id:"msg_Bn07kVDCYT1qmgu1G7Zw0KNe",conversationId:t.conversationId,agentId:null,message:`Reply to '${t.question}'`,role:i.CHAT_MESSAGE_ROLE.USER,timestamp:Date.now()},s={id:"msg_Bn07kVDCYT1qmgu1G7Zw0KNe",conversationId:t.conversationId,agentId:null,message:`Reply to '${t.question}'`,role:i.CHAT_MESSAGE_ROLE.ASSISTANT,timestamp:Date.now()},r=this.conversations.find(e=>e.id===t.conversationId);return r&&(r.messages.push(s),r.messages.push(e)),Promise.resolve({data:s})}deleteConversation(t){return this.conversations=this.conversations.filter(e=>e.id!==t),Promise.resolve()}createConversation(t){const e={id:"thread_"+this.conversations.length,name:"Thread "+this.conversations.length,timestamp:Date.now(),messages:[]};this.conversations.unshift(e);const s=Object(r.cloneDeep)(t);return s.conversationId=e.id,this.askQuestion(s).then(()=>({data:{id:"msg_Bn07kVDCYT1qmgu1G7Zw0KNe",conversationId:e.id,agentId:t.agentId}}))}getAgents(){return Promise.resolve({data:[...o]})}getAgent(t){return Promise.resolve({data:Object(r.cloneDeep)(o.find(e=>e.id===t))})}createAgent(t){return o.push(t),Promise.resolve({data:t})}deleteAgent(t){return o=o.filter(e=>e.id!==t),Promise.resolve()}simulateHttpError(){return Promise.reject({status:500,message:"Internal Server Error"})}}const a=[{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}]},143:function(t,e,s){"use strict";s.r(e),s.d(e,"AgentFormModel",(function(){return r})),s.d(e,"ExtractionMethodsFormModel",(function(){return i})),s.d(e,"ExtractionMethodFormModel",(function(){return n})),s.d(e,"AdditionalExtractionMethodsFormModel",(function(){return a})),s.d(e,"AdditionalExtractionMethodFormModel",(function(){return o})),s.d(e,"AgentInstructionsFormModel",(function(){return h}));class r{constructor(t){this._name=t.name,this._repositoryId=t.repositoryId,this._model=t.model,this._temperature=t.temperature,this._topP=t.topP,this._seed=t.seed,this._instructions=t.instructions,this._assistantExtractionMethods=t.assistantExtractionMethods,this._additionalExtractionMethods=t.additionalExtractionMethods}toPayload(){return{name:this._name,repositoryId:this._repositoryId,model:this._model,temperature:this._temperature.value,topP:this._topP.value,seed:this._seed,assistantsInstructions:this._instructions.toPayload(),assistantExtractionMethods:this._assistantExtractionMethods.toPayload(),additionalExtractionMethods:this._additionalExtractionMethods.toPayload()}}hasExtractionMethodSelected(){return this._assistantExtractionMethods.extractionMethods.some(t=>t.selected)}get id(){return this._id}set id(t){this._id=t}get name(){return this._name}set name(t){this._name=t}get repositoryId(){return this._repositoryId}set repositoryId(t){this._repositoryId=t}get model(){return this._model}set model(t){this._model=t}get temperature(){return this._temperature}set temperature(t){this._temperature=t}get topP(){return this._topP}set topP(t){this._topP=t}get seed(){return this._seed}set seed(t){this._seed=t}get instructions(){return this._instructions}set instructions(t){this._instructions=t}get assistantExtractionMethods(){return this._assistantExtractionMethods}set assistantExtractionMethods(t){this._assistantExtractionMethods=t}get additionalExtractionMethods(){return this._additionalExtractionMethods}set additionalExtractionMethods(t){this._additionalExtractionMethods=t}}class i{constructor(t){this._extractionMethods=t}toPayload(){return this._extractionMethods.filter(t=>t.selected).map(t=>t.toPayload())}get extractionMethods(){return this._extractionMethods}set extractionMethods(t){this._extractionMethods=t}}class n{constructor(t){this._selected=t.selected||!1,this._method=t.method,this._sparqlOption=t.sparqlOption,this._ontologyGraph=t.ontologyGraph,this._sparqlQuery=t.sparqlQuery,this._maxNumberOfTriplesPerCall=t.maxNumberOfTriplesPerCall,this._similarityIndex=t.similarityIndex,this._similarityIndexThreshold=t.similarityIndexThreshold,this._queryTemplate=t.queryTemplate,this._retrievalConnectorInstance=t.retrievalConnectorInstance}toPayload(){const t={};return t.method=this._method?this._method:null,"ontologyGraph"===this._sparqlOption?t.ontologyGraph=this._ontologyGraph?this._ontologyGraph:null:"sparqlQuery"===this._sparqlOption&&(t.constructQuery=this._sparqlQuery?this._sparqlQuery.value:null),this._maxNumberOfTriplesPerCall&&(t.maxNumberOfTriplesPerCall=this._maxNumberOfTriplesPerCall),this._similarityIndex&&(t.similarityIndex=this._similarityIndex),this._similarityIndexThreshold&&this._similarityIndexThreshold.value&&(t.similarityIndexThreshold=parseFloat(this._similarityIndexThreshold.value)),this._queryTemplate&&this._queryTemplate.value&&(t.queryTemplate=this._queryTemplate.value),this._retrievalConnectorInstance&&(t.retrievalConnectorInstance=this._retrievalConnectorInstance),t}get selected(){return this._selected}set selected(t){this._selected=t}get method(){return this._method}set method(t){this._method=t}get sparqlOption(){return this._sparqlOption}set sparqlOption(t){this._sparqlOption=t}get sparqlQuery(){return this._sparqlQuery}set sparqlQuery(t){this._sparqlQuery=t}get ontologyGraph(){return this._ontologyGraph}set ontologyGraph(t){this._ontologyGraph=t}get maxNumberOfTriplesPerCall(){return this._maxNumberOfTriplesPerCall}set maxNumberOfTriplesPerCall(t){this._maxNumberOfTriplesPerCall=t}get similarityIndex(){return this._similarityIndex}set similarityIndex(t){this._similarityIndex=t}get similarityIndexThreshold(){return this._similarityIndexThreshold}set similarityIndexThreshold(t){this._similarityIndexThreshold=t}get queryTemplate(){return this._queryTemplate}set queryTemplate(t){this._queryTemplate=t}get retrievalConnectorInstance(){return this._retrievalConnectorInstance}set retrievalConnectorInstance(t){this._retrievalConnectorInstance=t}}class a{constructor(t){this._additionalExtractionMethods=t}toPayload(){return this._additionalExtractionMethods.map(t=>t.toPayload())}get additionalExtractionMethods(){return this._additionalExtractionMethods}set additionalExtractionMethods(t){this._additionalExtractionMethods=t}}class o{constructor(t){this._selected=t.selected||!1,this._method=t.method}toPayload(){return{method:this._method}}get selected(){return this._selected}set selected(t){this._selected=t}get method(){return this._method}set method(t){this._method=t}}class h{constructor(t){this._systemInstruction=t.systemInstruction,this._userInstruction=t.userInstruction}toPayload(){return{systemInstruction:this._systemInstruction,userInstruction:this._userInstruction}}get systemInstruction(){return this._systemInstruction}set systemInstruction(t){this._systemInstruction=t}get userInstruction(){return this._userInstruction}set userInstruction(t){this._userInstruction=t}}},164:function(t,e,s){"use strict";s.r(e),s.d(e,"newAgentFormModelProvider",(function(){return d})),s.d(e,"agentListMapper",(function(){return l})),s.d(e,"agentModelMapper",(function(){return c}));var r=s(96),i=s(143),n=s(76),a=s(17),o=s(30);const h={name:"",repositoryId:"",model:"gpt-4o",temperature:new n.NumericRangeModel({value:.7,minValue:0,maxValue:2,step:.1}),topP:new n.NumericRangeModel({value:1,minValue:0,maxValue:1,step:.1}),seed:1,instructions:new i.AgentInstructionsFormModel({systemInstruction:"",userInstruction:""}),assistantExtractionMethods:new i.ExtractionMethodsFormModel([new i.ExtractionMethodFormModel({method:r.ExtractionMethod.SPARQL,ontologyGraph:"http://example.com/swgraph",sparqlQuery:new n.TextFieldModel({value:"select ?s ?p ?o where {?s ?p ?o .}",minLength:1,maxLength:2380}),selected:!1}),new i.ExtractionMethodFormModel({method:r.ExtractionMethod.FTS_SEARCH,maxNumberOfTriplesPerCall:null,selected:!1}),new i.ExtractionMethodFormModel({method:r.ExtractionMethod.SIMILARITY,similarityIndex:null,similarityIndexThreshold:new n.NumericRangeModel({value:.6,minValue:0,maxValue:1,step:.1}),maxNumberOfTriplesPerCall:null,selected:!1}),new i.ExtractionMethodFormModel({method:r.ExtractionMethod.RETRIEVAL,retrievalConnectorInstance:null,maxNumberOfTriplesPerCall:null,queryTemplate:new n.TextFieldModel({value:'{"query": "string"}',minLength:1,maxLength:2380}),selected:!1})]),additionalExtractionMethods:new i.AdditionalExtractionMethodsFormModel([new i.AdditionalExtractionMethodFormModel({method:r.AdditionalExtractionMethod.IRI_DISCOVERY_SEARCH})])},d=()=>new i.AgentFormModel(Object(o.cloneDeep)(h)),l=t=>{if(!t)return new r.AgentListModel;const e=t.map(t=>c(t));return new r.AgentListModel(e)},c=t=>{if(!t)return;const e=Object(a.md5HashGenerator)();return new r.AgentModel({id:t.id,name:t.name,repositoryId:t.repositoryId,model:t.model,temperature:t.temperature,topP:t.topP,seed:t.seed,instructions:g(t.instructions),assistantExtractionMethods:u(t.assistantExtractionMethods),additionalExtractionMethods:_(t.additionalExtractionMethods)},e)},u=t=>{if(t)return t.map(t=>m(t))},m=t=>{if(t)return new r.ExtractionMethodModel({method:t.method,ontologyGraph:t.ontologyGraph,sparqlQuery:t.sparqlQuery,similarityIndex:t.similarityIndex,similarityIndexThreshold:t.similarityIndexThreshold,maxNumberOfTriplesPerCall:t.maxNumberOfTriplesPerCall,queryTemplate:t.queryTemplate,retrievalConnectorInstance:t.retrievalConnectorInstance})},_=t=>{if(t)return t.map(t=>p(t))},p=t=>{if(t)return new r.AdditionalExtractionMethodModel({method:t.method})},g=t=>{if(t)return new r.AgentInstructionsModel({systemInstruction:t.systemInstruction,userInstruction:t.userInstruction})}},191:function(t,e,s){"use strict";s.r(e),s.d(e,"chatsListMapper",(function(){return o})),s.d(e,"chatModelMapper",(function(){return h}));var r=s(116),i=s(17),n=s(117),a=s(79);const o=t=>{if(!t)return new r.ChatsListModel;const e=t.map(t=>h(t));return new r.ChatsListModel(e)},h=t=>{if(!t)return;const e=Object(i.md5HashGenerator)();return new r.ChatModel({id:t.id,name:t.name,timestamp:t.timestamp,chatHistory:t.messages&&t.messages.length?Object(n.chatItemsModelMapper)(t.messages.reverse()):new a.ChatItemsListModel},e)}},192:function(t,e,s){"use strict";s.r(e);var r=s(142);angular.module("graphdb.framework.rest.ttyg.service",[]).factory("TTYGRestService",i),i.$inject=["$http"];function i(t){new r.TtygRestServiceFakeBackend;return{getConversation:e=>t.get("rest/chat/conversations/"+e),renameConversation:(e,s)=>t.put("rest/chat/conversations/"+e,s),exportConversation:e=>t.post("rest/chat/conversations/export/"+e),askQuestion:e=>t.post("rest/chat/conversations",e),getConversations:()=>t.get("rest/chat/conversations"),deleteConversation:e=>t.delete("rest/chat/conversations/"+e),createConversation:(e={})=>t.post("rest/chat/conversations",e),getAgents:()=>t.get("rest/chat/agents"),getAgent:e=>t.get("rest/chat/agents/"+e),createAgent:e=>t.post("rest/chat/agents",e),deleteAgent:e=>t.delete("rest/chat/agents/"+e)}}},274:function(t,e,s){"use strict";s.r(e);var r=s(191),i=(s(192),s(117)),n=s(164);function a(t){return{getConversation:e=>t.getConversation(e).then(t=>Object(r.chatModelMapper)(t.data)),renameConversation:e=>t.renameConversation(e.id,e.toRenameRequestPayload()).then(t=>Object(r.chatModelMapper)(t.data)),exportConversation:e=>t.exportConversation(e),askQuestion:e=>t.askQuestion(e.toAskRequestPayload()).then(t=>Object(i.chatMessageModelMapper)(t.data)),getConversations:(e,s)=>t.getConversations().then(t=>Object(r.chatsListMapper)(t.data)),deleteConversation:e=>t.deleteConversation(e),createConversation:e=>t.createConversation(e.toCreateChatRequestPayload()).then(t=>t.data.conversationId),getAgents:()=>t.getAgents().then(t=>Object(n.agentListMapper)(t.data)),getAgent:e=>t.getAgent(e).then(t=>Object(n.agentModelMapper)(t.data)),createAgent:e=>t.createAgent(e).then(t=>Object(n.agentModelMapper)(t.data)),deleteAgent:e=>t.deleteAgent(e)}}angular.module("graphdb.framework.core.services.ttyg-service",["graphdb.framework.rest.ttyg.service"]).factory("TTYGService",a),a.$inject=["TTYGRestService"]},72:function(t,e,s){"use strict";s.r(e),s.d(e,"ChatMessageModel",(function(){return r})),s.d(e,"CHAT_MESSAGE_ROLE",(function(){return i}));class r{constructor(t){this._id=t.id,this._role=t.role,this._message=t.message,this._timestamp=t.timestamp}get id(){return this._id}set id(t){this._id=t}get role(){return this._role}set role(t){this._role=t}get message(){return this._message}set message(t){this._message=t}get timestamp(){return this._timestamp}set timestamp(t){this._timestamp=t}}const i={USER:"user",ASSISTANT:"assistant"}},76:function(t,e,s){"use strict";s.r(e),s.d(e,"SelectMenuOptionsModel",(function(){return r})),s.d(e,"TextFieldModel",(function(){return i})),s.d(e,"NumericRangeModel",(function(){return n}));class r{constructor({label:t,value:e,selected:s=!1,data:r={}}){this._label=t,this._value=e,this._selected=s,this._data=r}get label(){return this._label}set label(t){this._label=t}get value(){return this._value}set value(t){this._value=t}get selected(){return this._selected}set selected(t){this._selected=t}get data(){return this._data}set data(t){this._data=t}}class i{constructor(t){this._value=t.value,this._minLength=t.minLength,this._maxLength=t.maxLength}get value(){return this._value}set value(t){this._value=t}get maxLength(){return this._maxLength}set maxLength(t){this._maxLength=t}get minLength(){return this._minLength}set minLength(t){this._minLength=t}}class n{constructor(t){this._value=t.value,this._minValue=t.minValue,this._maxValue=t.maxValue,this._step=t.step}get value(){return this._value}set value(t){this._value=t}get minValue(){return this._minValue}set minValue(t){this._minValue=t}get maxValue(){return this._maxValue}set maxValue(t){this._maxValue=t}get step(){return this._step}set step(t){this._step=t}}},79:function(t,e,s){"use strict";s.r(e),s.d(e,"ChatItemModel",(function(){return i})),s.d(e,"ChatItemsListModel",(function(){return n}));var r=s(72);class i{constructor(t,e,s,r){this._chatId=t,this._agentId=e,this._question=s,this._answer=r}get chatId(){return this._chatId}set chatId(t){this._chatId=t}get agentId(){return this._agentId}set agentId(t){this._agentId=t}get question(){return this._question}set question(t){this._question=t}get answer(){return this._answer}set answer(t){this._answer=t}setQuestionMessage(t){this._question||(this._question=new r.ChatMessageModel({role:r.CHAT_MESSAGE_ROLE.USER})),this._question.message=t}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 n{constructor(t=[]){this._items=t}isEmpty(){return 0===this._items.length}appendItem(t){this._items.push(t)}get items(){return this._items}set items(t){this._items=t||[]}}},88:function(t,e,s){"use strict";s.r(e),s.d(e,"AGENT_ID",(function(){return r})),s.d(e,"AGENTS_FILTER_ALL_KEY",(function(){return i}));const r="asst_uoKp5kgnPlyZHhRXY7P2r9D7",i="ALL"},96:function(t,e,s){"use strict";s.r(e),s.d(e,"AgentModel",(function(){return n})),s.d(e,"AgentInstructionsModel",(function(){return a})),s.d(e,"ExtractionMethodModel",(function(){return o})),s.d(e,"AdditionalExtractionMethodsModel",(function(){return h})),s.d(e,"AdditionalExtractionMethodModel",(function(){return d})),s.d(e,"AgentListModel",(function(){return l})),s.d(e,"ExtractionMethod",(function(){return c})),s.d(e,"AdditionalExtractionMethod",(function(){return u})),s.d(e,"AgentListFilterModel",(function(){return m}));var r=s(30),i=s(88);class n{constructor(t,e){this.hashGenerator=e,this._isDeleted=!1,this._id=t.id,this._name=t.name,this._repositoryId=t.repositoryId,this._model=t.model,this._temperature=t.temperature,this._topP=t.topP,this._seed=t.seed,this._instructions=t.instructions,this._assistantExtractionMethods=t.assistantExtractionMethods,this._additionalExtractionMethods=t.additionalExtractionMethods}get isDeleted(){return this._isDeleted}set isDeleted(t){this._isDeleted=t}get id(){return this._id}set id(t){this._id=t}get name(){return this._name}set name(t){this._name=t}get repositoryId(){return this._repositoryId}set repositoryId(t){this._repositoryId=t}get model(){return this._model}set model(t){this._model=t}get temperature(){return this._temperature}set temperature(t){this._temperature=t}get topP(){return this._topP}set topP(t){this._topP=t}get seed(){return this._seed}set seed(t){this._seed=t}get instructions(){return this._instructions}set instructions(t){this._instructions=t}get assistantExtractionMethods(){return this._assistantExtractionMethods}set assistantExtractionMethods(t){this._assistantExtractionMethods=t}get additionalExtractionMethods(){return this._additionalExtractionMethods}set additionalExtractionMethods(t){this._additionalExtractionMethods=t}}class a{constructor(t){this._systemInstruction=t.systemInstruction,this._userInstruction=t.userInstruction}get systemInstruction(){return this._systemInstruction}set systemInstruction(t){this._systemInstruction=t}get userInstruction(){return this._userInstruction}set userInstruction(t){this._userInstruction=t}}class o{constructor(t){this._method=t.method,this._ontologyGraph=t.ontologyGraph,this._sparqlQuery=t.sparqlQuery,this._maxNumberOfTriplesPerCall=t._maxNumberOfTriplesPerCall,this._similarityIndex=t.similarityIndex,this._similarityIndexThreshold=t.similarityIndexThreshold,this._queryTemplate=t.queryTemplate,this._retrievalConnectorInstance=t.retrievalConnectorInstance}get method(){return this._method}set method(t){this._method=t}get sparqlQuery(){return this._sparqlQuery}set sparqlQuery(t){this._sparqlQuery=t}get ontologyGraph(){return this._ontologyGraph}set ontologyGraph(t){this._ontologyGraph=t}get maxNumberOfTriplesPerCall(){return this._maxNumberOfTriplesPerCall}set maxNumberOfTriplesPerCall(t){this._maxNumberOfTriplesPerCall=t}get similarityIndex(){return this._similarityIndex}set similarityIndex(t){this._similarityIndex=t}get similarityIndexThreshold(){return this._similarityIndexThreshold}set similarityIndexThreshold(t){this._similarityIndexThreshold=t}get queryTemplate(){return this._queryTemplate}set queryTemplate(t){this._queryTemplate=t}get retrievalConnectorInstance(){return this._retrievalConnectorInstance}set retrievalConnectorInstance(t){this._retrievalConnectorInstance=t}}class h{constructor(t){this._additionalExtractionMethods=t}get additionalExtractionMethods(){return this._additionalExtractionMethods}set additionalExtractionMethods(t){this._additionalExtractionMethods=t}}class d{constructor(t){this._method=t._method}get method(){return this._method}set method(t){this._method=t}}class l{constructor(t=[]){this._agents=t,this._filterableAgents=Object(r.cloneDeep)(t)}isEmpty(){return 0===this._agents.length}filterByRepository(t){this._filterableAgents=this._agents.filter(e=>t===i.AGENTS_FILTER_ALL_KEY||(e.repositoryId===t?e:void 0))}get agents(){return this._agents}set agents(t){this._agents=t}get filterableAgents(){return this._filterableAgents}set filterableAgents(t){this._filterableAgents=t}}const c={FTS_SEARCH:"fts_search",SPARQL:"sparql_search",SIMILARITY:"similarity_search",RETRIEVAL:"retrieval_search"},u={IRI_DISCOVERY_SEARCH:"iri_discovery_search"};class m{constructor(t,e,s=!1){this._key=t,this._label=e,this._selected=s}get key(){return this._key}set key(t){this._key=t}get label(){return this._label}set label(t){this._label=t}get selected(){return this._selected}set selected(t){this._selected=t}}}}]);
@@ -1 +0,0 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([[41,96,179,248,294],{143:function(t,e,s){"use strict";s.r(e),s.d(e,"AgentFormModel",(function(){return r})),s.d(e,"ExtractionMethodsFormModel",(function(){return i})),s.d(e,"ExtractionMethodFormModel",(function(){return n})),s.d(e,"AdditionalExtractionMethodsFormModel",(function(){return o})),s.d(e,"AdditionalExtractionMethodFormModel",(function(){return a})),s.d(e,"AgentInstructionsFormModel",(function(){return l}));class r{constructor(t){this._name=t.name,this._repositoryId=t.repositoryId,this._model=t.model,this._temperature=t.temperature,this._topP=t.topP,this._seed=t.seed,this._instructions=t.instructions,this._assistantExtractionMethods=t.assistantExtractionMethods,this._additionalExtractionMethods=t.additionalExtractionMethods}toPayload(){return{name:this._name,repositoryId:this._repositoryId,model:this._model,temperature:this._temperature.value,topP:this._topP.value,seed:this._seed,assistantsInstructions:this._instructions.toPayload(),assistantExtractionMethods:this._assistantExtractionMethods.toPayload(),additionalExtractionMethods:this._additionalExtractionMethods.toPayload()}}hasExtractionMethodSelected(){return this._assistantExtractionMethods.extractionMethods.some(t=>t.selected)}get id(){return this._id}set id(t){this._id=t}get name(){return this._name}set name(t){this._name=t}get repositoryId(){return this._repositoryId}set repositoryId(t){this._repositoryId=t}get model(){return this._model}set model(t){this._model=t}get temperature(){return this._temperature}set temperature(t){this._temperature=t}get topP(){return this._topP}set topP(t){this._topP=t}get seed(){return this._seed}set seed(t){this._seed=t}get instructions(){return this._instructions}set instructions(t){this._instructions=t}get assistantExtractionMethods(){return this._assistantExtractionMethods}set assistantExtractionMethods(t){this._assistantExtractionMethods=t}get additionalExtractionMethods(){return this._additionalExtractionMethods}set additionalExtractionMethods(t){this._additionalExtractionMethods=t}}class i{constructor(t){this._extractionMethods=t}toPayload(){return this._extractionMethods.filter(t=>t.selected).map(t=>t.toPayload())}get extractionMethods(){return this._extractionMethods}set extractionMethods(t){this._extractionMethods=t}}class n{constructor(t){this._selected=t.selected||!1,this._method=t.method,this._sparqlOption=t.sparqlOption,this._ontologyGraph=t.ontologyGraph,this._sparqlQuery=t.sparqlQuery,this._maxNumberOfTriplesPerCall=t.maxNumberOfTriplesPerCall,this._similarityIndex=t.similarityIndex,this._similarityIndexThreshold=t.similarityIndexThreshold,this._queryTemplate=t.queryTemplate,this._retrievalConnectorInstance=t.retrievalConnectorInstance}toPayload(){const t={};return t.method=this._method?this._method:null,"ontologyGraph"===this._sparqlOption?t.ontologyGraph=this._ontologyGraph?this._ontologyGraph:null:"sparqlQuery"===this._sparqlOption&&(t.constructQuery=this._sparqlQuery?this._sparqlQuery.value:null),this._maxNumberOfTriplesPerCall&&(t.maxNumberOfTriplesPerCall=this._maxNumberOfTriplesPerCall),this._similarityIndex&&(t.similarityIndex=this._similarityIndex),this._similarityIndexThreshold&&this._similarityIndexThreshold.value&&(t.similarityIndexThreshold=parseFloat(this._similarityIndexThreshold.value)),this._queryTemplate&&this._queryTemplate.value&&(t.queryTemplate=this._queryTemplate.value),this._retrievalConnectorInstance&&(t.retrievalConnectorInstance=this._retrievalConnectorInstance),t}get selected(){return this._selected}set selected(t){this._selected=t}get method(){return this._method}set method(t){this._method=t}get sparqlOption(){return this._sparqlOption}set sparqlOption(t){this._sparqlOption=t}get sparqlQuery(){return this._sparqlQuery}set sparqlQuery(t){this._sparqlQuery=t}get ontologyGraph(){return this._ontologyGraph}set ontologyGraph(t){this._ontologyGraph=t}get maxNumberOfTriplesPerCall(){return this._maxNumberOfTriplesPerCall}set maxNumberOfTriplesPerCall(t){this._maxNumberOfTriplesPerCall=t}get similarityIndex(){return this._similarityIndex}set similarityIndex(t){this._similarityIndex=t}get similarityIndexThreshold(){return this._similarityIndexThreshold}set similarityIndexThreshold(t){this._similarityIndexThreshold=t}get queryTemplate(){return this._queryTemplate}set queryTemplate(t){this._queryTemplate=t}get retrievalConnectorInstance(){return this._retrievalConnectorInstance}set retrievalConnectorInstance(t){this._retrievalConnectorInstance=t}}class o{constructor(t){this._additionalExtractionMethods=t}toPayload(){return this._additionalExtractionMethods.map(t=>t.toPayload())}get additionalExtractionMethods(){return this._additionalExtractionMethods}set additionalExtractionMethods(t){this._additionalExtractionMethods=t}}class a{constructor(t){this._selected=t.selected||!1,this._method=t.method}toPayload(){return{method:this._method}}get selected(){return this._selected}set selected(t){this._selected=t}get method(){return this._method}set method(t){this._method=t}}class l{constructor(t){this._systemInstruction=t.systemInstruction,this._userInstruction=t.userInstruction}toPayload(){return{systemInstruction:this._systemInstruction,userInstruction:this._userInstruction}}get systemInstruction(){return this._systemInstruction}set systemInstruction(t){this._systemInstruction=t}get userInstruction(){return this._userInstruction}set userInstruction(t){this._userInstruction=t}}},164:function(t,e,s){"use strict";s.r(e),s.d(e,"newAgentFormModelProvider",(function(){return h})),s.d(e,"agentListMapper",(function(){return d})),s.d(e,"agentModelMapper",(function(){return u}));var r=s(96),i=s(143),n=s(76),o=s(17),a=s(30);const l={name:"",repositoryId:"",model:"gpt-4o",temperature:new n.NumericRangeModel({value:.7,minValue:0,maxValue:2,step:.1}),topP:new n.NumericRangeModel({value:1,minValue:0,maxValue:1,step:.1}),seed:1,instructions:new i.AgentInstructionsFormModel({systemInstruction:"",userInstruction:""}),assistantExtractionMethods:new i.ExtractionMethodsFormModel([new i.ExtractionMethodFormModel({method:r.ExtractionMethod.SPARQL,ontologyGraph:"http://example.com/swgraph",sparqlQuery:new n.TextFieldModel({value:"select ?s ?p ?o where {?s ?p ?o .}",minLength:1,maxLength:2380}),selected:!1}),new i.ExtractionMethodFormModel({method:r.ExtractionMethod.FTS_SEARCH,maxNumberOfTriplesPerCall:null,selected:!1}),new i.ExtractionMethodFormModel({method:r.ExtractionMethod.SIMILARITY,similarityIndex:null,similarityIndexThreshold:new n.NumericRangeModel({value:.6,minValue:0,maxValue:1,step:.1}),maxNumberOfTriplesPerCall:null,selected:!1}),new i.ExtractionMethodFormModel({method:r.ExtractionMethod.RETRIEVAL,retrievalConnectorInstance:null,maxNumberOfTriplesPerCall:null,queryTemplate:new n.TextFieldModel({value:'{"query": "string"}',minLength:1,maxLength:2380}),selected:!1})]),additionalExtractionMethods:new i.AdditionalExtractionMethodsFormModel([new i.AdditionalExtractionMethodFormModel({method:r.AdditionalExtractionMethod.IRI_DISCOVERY_SEARCH})])},h=()=>new i.AgentFormModel(Object(a.cloneDeep)(l)),d=t=>{if(!t)return new r.AgentListModel;const e=t.map(t=>u(t));return new r.AgentListModel(e)},u=t=>{if(!t)return;const e=Object(o.md5HashGenerator)();return new r.AgentModel({id:t.id,name:t.name,repositoryId:t.repositoryId,model:t.model,temperature:t.temperature,topP:t.topP,seed:t.seed,instructions:x(t.instructions),assistantExtractionMethods:c(t.assistantExtractionMethods),additionalExtractionMethods:_(t.additionalExtractionMethods)},e)},c=t=>{if(t)return t.map(t=>m(t))},m=t=>{if(t)return new r.ExtractionMethodModel({method:t.method,ontologyGraph:t.ontologyGraph,sparqlQuery:t.sparqlQuery,similarityIndex:t.similarityIndex,similarityIndexThreshold:t.similarityIndexThreshold,maxNumberOfTriplesPerCall:t.maxNumberOfTriplesPerCall,queryTemplate:t.queryTemplate,retrievalConnectorInstance:t.retrievalConnectorInstance})},_=t=>{if(t)return t.map(t=>p(t))},p=t=>{if(t)return new r.AdditionalExtractionMethodModel({method:t.method})},x=t=>{if(t)return new r.AgentInstructionsModel({systemInstruction:t.systemInstruction,userInstruction:t.userInstruction})}},76:function(t,e,s){"use strict";s.r(e),s.d(e,"SelectMenuOptionsModel",(function(){return r})),s.d(e,"TextFieldModel",(function(){return i})),s.d(e,"NumericRangeModel",(function(){return n}));class r{constructor({label:t,value:e,selected:s=!1,data:r={}}){this._label=t,this._value=e,this._selected=s,this._data=r}get label(){return this._label}set label(t){this._label=t}get value(){return this._value}set value(t){this._value=t}get selected(){return this._selected}set selected(t){this._selected=t}get data(){return this._data}set data(t){this._data=t}}class i{constructor(t){this._value=t.value,this._minLength=t.minLength,this._maxLength=t.maxLength}get value(){return this._value}set value(t){this._value=t}get maxLength(){return this._maxLength}set maxLength(t){this._maxLength=t}get minLength(){return this._minLength}set minLength(t){this._minLength=t}}class n{constructor(t){this._value=t.value,this._minValue=t.minValue,this._maxValue=t.maxValue,this._step=t.step}get value(){return this._value}set value(t){this._value=t}get minValue(){return this._minValue}set minValue(t){this._minValue=t}get maxValue(){return this._maxValue}set maxValue(t){this._maxValue=t}get step(){return this._step}set step(t){this._step=t}}},88:function(t,e,s){"use strict";s.r(e),s.d(e,"AGENT_ID",(function(){return r})),s.d(e,"AGENTS_FILTER_ALL_KEY",(function(){return i}));const r="asst_uoKp5kgnPlyZHhRXY7P2r9D7",i="ALL"},96:function(t,e,s){"use strict";s.r(e),s.d(e,"AgentModel",(function(){return n})),s.d(e,"AgentInstructionsModel",(function(){return o})),s.d(e,"ExtractionMethodModel",(function(){return a})),s.d(e,"AdditionalExtractionMethodsModel",(function(){return l})),s.d(e,"AdditionalExtractionMethodModel",(function(){return h})),s.d(e,"AgentListModel",(function(){return d})),s.d(e,"ExtractionMethod",(function(){return u})),s.d(e,"AdditionalExtractionMethod",(function(){return c})),s.d(e,"AgentListFilterModel",(function(){return m}));var r=s(30),i=s(88);class n{constructor(t,e){this.hashGenerator=e,this._isDeleted=!1,this._id=t.id,this._name=t.name,this._repositoryId=t.repositoryId,this._model=t.model,this._temperature=t.temperature,this._topP=t.topP,this._seed=t.seed,this._instructions=t.instructions,this._assistantExtractionMethods=t.assistantExtractionMethods,this._additionalExtractionMethods=t.additionalExtractionMethods}get isDeleted(){return this._isDeleted}set isDeleted(t){this._isDeleted=t}get id(){return this._id}set id(t){this._id=t}get name(){return this._name}set name(t){this._name=t}get repositoryId(){return this._repositoryId}set repositoryId(t){this._repositoryId=t}get model(){return this._model}set model(t){this._model=t}get temperature(){return this._temperature}set temperature(t){this._temperature=t}get topP(){return this._topP}set topP(t){this._topP=t}get seed(){return this._seed}set seed(t){this._seed=t}get instructions(){return this._instructions}set instructions(t){this._instructions=t}get assistantExtractionMethods(){return this._assistantExtractionMethods}set assistantExtractionMethods(t){this._assistantExtractionMethods=t}get additionalExtractionMethods(){return this._additionalExtractionMethods}set additionalExtractionMethods(t){this._additionalExtractionMethods=t}}class o{constructor(t){this._systemInstruction=t.systemInstruction,this._userInstruction=t.userInstruction}get systemInstruction(){return this._systemInstruction}set systemInstruction(t){this._systemInstruction=t}get userInstruction(){return this._userInstruction}set userInstruction(t){this._userInstruction=t}}class a{constructor(t){this._method=t.method,this._ontologyGraph=t.ontologyGraph,this._sparqlQuery=t.sparqlQuery,this._maxNumberOfTriplesPerCall=t._maxNumberOfTriplesPerCall,this._similarityIndex=t.similarityIndex,this._similarityIndexThreshold=t.similarityIndexThreshold,this._queryTemplate=t.queryTemplate,this._retrievalConnectorInstance=t.retrievalConnectorInstance}get method(){return this._method}set method(t){this._method=t}get sparqlQuery(){return this._sparqlQuery}set sparqlQuery(t){this._sparqlQuery=t}get ontologyGraph(){return this._ontologyGraph}set ontologyGraph(t){this._ontologyGraph=t}get maxNumberOfTriplesPerCall(){return this._maxNumberOfTriplesPerCall}set maxNumberOfTriplesPerCall(t){this._maxNumberOfTriplesPerCall=t}get similarityIndex(){return this._similarityIndex}set similarityIndex(t){this._similarityIndex=t}get similarityIndexThreshold(){return this._similarityIndexThreshold}set similarityIndexThreshold(t){this._similarityIndexThreshold=t}get queryTemplate(){return this._queryTemplate}set queryTemplate(t){this._queryTemplate=t}get retrievalConnectorInstance(){return this._retrievalConnectorInstance}set retrievalConnectorInstance(t){this._retrievalConnectorInstance=t}}class l{constructor(t){this._additionalExtractionMethods=t}get additionalExtractionMethods(){return this._additionalExtractionMethods}set additionalExtractionMethods(t){this._additionalExtractionMethods=t}}class h{constructor(t){this._method=t._method}get method(){return this._method}set method(t){this._method=t}}class d{constructor(t=[]){this._agents=t,this._filterableAgents=Object(r.cloneDeep)(t)}isEmpty(){return 0===this._agents.length}filterByRepository(t){this._filterableAgents=this._agents.filter(e=>t===i.AGENTS_FILTER_ALL_KEY||(e.repositoryId===t?e:void 0))}get agents(){return this._agents}set agents(t){this._agents=t}get filterableAgents(){return this._filterableAgents}set filterableAgents(t){this._filterableAgents=t}}const u={FTS_SEARCH:"fts_search",SPARQL:"sparql_search",SIMILARITY:"similarity_search",RETRIEVAL:"retrieval_search"},c={IRI_DISCOVERY_SEARCH:"iri_discovery_search"};class m{constructor(t,e,s=!1){this._key=t,this._label=e,this._selected=s}get key(){return this._key}set key(t){this._key=t}get label(){return this._label}set label(t){this._label=t}get selected(){return this._selected}set selected(t){this._selected=t}}}}]);
@@ -1 +0,0 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([[45],{180:function(e,t,n){"use strict";n.r(t);n(11),n(181);var o=n(100),r=n(30),a=n(92);let s=240;const i={no_cluster_configured:"",create_cluster_btn:"",legend_node_state:"",legend_link_state:"",node_state_leader:"Leader",node_state_follower:"Follower",node_state_candidate:"Candidate",node_state_no_cluster:"No cluster",node_state_out_of_sync:"Out of sync",node_state_no_connection:"No connection",node_state_read_only:"Read only",node_state_restricted:"Restricted",link_state_in_sync:"In sync",link_state_syncing:"Syncing",link_state_out_of_sync:"Out of sync",recovery_state:{searching_for_node:"Searching for node",waiting_for_snapshot:"Waiting for snapshot from node",receiving_snapshot:"Receiving a snapshot from node",applying_snapshot:"Applying a snapshot",building_snapshot:"Building a snapshot for node",sending_snapshot:"Sending a snapshot to node",recovery_operation_failure_warning:"Node unable to recover. Action required"}},c={node_state:"legend_node_state",link_state:"legend_link_state"};angular.module("graphdb.framework.clustermanagement.directives.cluster-graphical-view",["graphdb.framework.utils.localstorageadapter","graphdb.framework.clustermanagement.directives.cluster-legend"]).directive("clusterGraphicalView",["$window","LocalStorageAdapter","LSKeys","UriUtils","$translate","$jwtAuth","$rootScope","ClusterViewContextService",function(e,t,n,l,u,d,f,g){return{restrict:"E",scope:{clusterModel:"="},link:function(p,h){const m=angular.element(e),_=[];let w,C,y,v,E,k=D(),b=O(),A=Math.min(k,b)/2-100,S=k/2,M=b/2;function N(){const e=g.getClusterViewD3Container();k=D(),b=O(),e.attr("width",k),e.attr("height",b),U()}function L(e,t=""){Object.keys(e).forEach(n=>{let o="";t&&(o+=t),o+="."+n;const r=e[n];"string"==typeof r?e[n]=u.instant("cluster_management.cluster_graphical_view"+o):"object"==typeof r&&L(r,o)})}function D(){const o="collapsedMenu"===t.get(n.MENU_STATE);return s=o?70:240,Math.max(Math.floor(.95*(e.innerWidth-s)),600)}function O(){return Math.max(.95*(e.innerHeight-250),675)}function j(){o.updateClusterZoneLabels(C,y,i),Object.keys(c).forEach(e=>{d3.select("#"+e).text(function(e){return i[c[e]]}(e))})}function T(){A=Math.min(k,b)/2-100,S=k/2,M=b/2,o.moveElement(y,S,M),y.select(".cluster-zone").attr("r",A)}function R(e){p.$emit(a.CLICK_IN_VIEW,e.target)}function U(){T(),C!==p.clusterModel.hasCluster&&(C=!!p.clusterModel.hasCluster,function(e){o.setCreateClusterZone(e,y,i,w),!e&&w&&y.on("mouseup",()=>{p.$emit(a.CREATE_CLUSTER)})}(C));const e=function(){const e=Object(r.cloneDeep)(p.clusterModel.nodes)||[];return e.forEach(e=>{if(e.hostname=l.shortenIri(e.endpoint),!Object(r.isEmpty)(e.recoveryStatus)){let t="cluster_management.cluster_graphical_view.recovery_state."+e.recoveryStatus.state.toLowerCase();e.recoveryStatus.affectedNodes&&e.recoveryStatus.affectedNodes.length>0&&(t+="_with_affected_node"),e.recoveryStatus.message=u.instant(t,{node:e.recoveryStatus.affectedNodes.join(", ")})}}),e}();!function(e){const t=v.selectAll("#node-group").data(e,e=>e.address),n=o.createNodes(t,45);n.on("click",(e,t)=>{p.$emit(a.NODE_SELECTED,t);const n=d3.select(".nodetooltip"),o=$(window).width();e.pageX<o/2?(n.style("left",e.pageX+"px"),n.style("right","")):(n.style("left",""),n.style("right",o-e.pageX+"px")),n.style("top",e.pageY-28+"px")}),o.updateNodes(n),o.positionNodesOnClusterZone(n,S,M,A)}(e);!function(e,t){const n=E.selectAll(".link").data(e,e=>e.id);o.createLinks(n),o.updateLinks(n,t)}(Object(r.cloneDeep)(p.clusterModel.links)||[],e)}p.width=function(){return k},p.height=function(){return b};p.$on("$destroy",(function(){m.unbind("resize",N),m.unbind("mousedown",R),o.removeEventListeners(),_.forEach(e=>e())})),w=d.isAdmin(),m.bind("resize",N),m.bind("mousedown",R),_.push(f.$on("$translateChangeSuccess",(function(){L(i),j()}))),_.push(p.$on(a.MODEL_UPDATED,(function(){U()}))),L(i),function(e){const t=o.createClusterSvgElement(h[0]).attr("width",k).attr("height",b);y=o.createClusterZone(t,e),E=t.append("g").attr("id","links-group"),v=t.append("g").attr("id","nodes-group"),o.addArrowHead(t,o.ARROW_CONFIG.BIG),o.addArrowHead(t,o.ARROW_CONFIG.SMALL),g.updateClusterViewD3Container(t)}(!(!p.clusterModel.nodes||!p.clusterModel.nodes.length)),U()}}}])},183:function(e,t,n){"use strict";n.r(t);var o=n(92);function r(e,t,n,r,a){return{restrict:"E",templateUrl:"js/angular/clustermanagement/templates/cluster-configuration.html",scope:{currentNode:"=",clusterModel:"=",clusterConfiguration:"="},link:n=>{n.isAdmin=!1,n.closeClusterConfigurationPanel=()=>{a.hideClusterConfigurationPanel()},n.showEditConfigurationDialog=()=>{t.open({templateUrl:"js/angular/clustermanagement/templates/modal/cluster-edit-dialog.html",controller:"EditClusterCtrl",size:"lg",resolve:{data:()=>({clusterConfiguration:n.clusterConfiguration})}}).result.finally((function(){n.$emit(o.UPDATE_CLUSTER,{force:!0})}))},n.showDeleteDialog=()=>{t.open({templateUrl:"js/angular/clustermanagement/templates/modal/cluster-delete-dialog.html",controller:"DeleteClusterCtrl"}).result.then(e=>{n.$emit(o.DELETE_CLUSTER,{force:e})})};n.isAdmin=e.isAuthenticated()&&e.isAdmin()}}}angular.module("graphdb.framework.clustermanagement.directives.cluster-configuration",[]).directive("clusterConfiguration",r),r.$inject=["$jwtAuth","$uibModal","$translate","toastr","ClusterViewContextService"]},288:function(e,t,n){"use strict";n.r(t);n(7),n(31),n(273),n(180),n(183),n(32),n(491),n(271);angular.module("graphdb.framework.clustermanagement",["ngAnimate","toastr","graphdb.framework.clustermanagement.controllers.cluster-management","graphdb.framework.clustermanagement.directives.cluster-graphical-view","graphdb.framework.clustermanagement.directives.cluster-configuration"])},491:function(e,t,n){var o,r;o=[n(499)],void 0===(r=function(){function e(e,t){return e.each((function(){var e=t.apply(this,arguments),n=select(this);for(var o in e)n.attr(o,e[o])}))}function t(e,t){for(var n in t)e.attr(n,t[n]);return e}return"undefined"==typeof d3&&(d3=n(499)),d3.selection.prototype.attrs=function(n){return("function"==typeof n?e:t)(this,n)},d3.selection.prototype.moveToFront=function(){return this.each((function(){d3.select(this.parentNode.appendChild(this))}))},d3.selection.prototype.moveToBack=function(){return this.each((function(){const e=this.parentNode.firstChild;e&&this.parentNode.insertBefore(this,e)}))},d3}.apply(t,o))||(e.exports=r)}}]);
@@ -1 +0,0 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([[7,46,54,67,90,113,114,130,132,178,235,236,269,278,295,296],{111:function(e,t,n){"use strict";n.r(t),n.d(t,"connectorTypesListMapper",(function(){return s})),n.d(t,"connectorsMapper",(function(){return r}));var a=n(94);const s=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},r=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 s;t.onKeydown=e=>{"Enter"===e.key?(i(),t.editableModel.text!==t.text&&t.onSave({newText:t.editableModel.text,source:t.source})):"Escape"===e.key&&r()},t.onCancelEditing=()=>{r()},t.onSelect=()=>{s?(i(),t.onDblclick({source:t.source})):s=e((function(){t.onClick({source:t.source}),i()}),250)};const r=()=>{i(),t.onCancel()},i=()=>{e.cancel(s),s=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){angular.module("graphdb.framework.core.filters.readable_titmestamp",[]).filter("readableTimestamp",(function(e){return function(t){const n=new Date(t),a=new Date,s=new Date(a.getFullYear(),a.getMonth(),a.getDate()),r=new Date(s);r.setDate(s.getDate()-1);const i=new Date(n.getFullYear(),n.getMonth(),n.getDate());return i.getTime()===s.getTime()?e.instant("common.dates.today"):i.getTime()===r.getTime()?e.instant("common.dates.yesterday"):n.toLocaleDateString()}}))},140:function(e,t,n){"use strict";n.r(t);n(82);var a=n(111),s=n(76);function r(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 s.SelectMenuOptionsModel({value:e.name,label:e.name})))}}angular.module("graphdb.framework.core.services.connectors",["graphdb.framework.rest.connectors.service"]).factory("ConnectorsService",r),r.$inject=["ConnectorsRestService"]},141:function(e,t,n){"use strict";n.r(t);n(95);var a=n(84),s=n(76);function r(e){const t=()=>e.getIndexes().then(e=>Object(a.mapIndexesResponseToSimilarityIndex)(e.data));return{getIndexes:t,getIndexesAsMenuModel:()=>t().then(e=>e.map(e=>new s.SelectMenuOptionsModel({label:e.name,value:e.name})))}}angular.module("graphdb.framework.core.services.similarity",["graphdb.framework.rest.similarity.service"]).factory("SimilarityService",r),r.$inject=["SimilarityRestService"]},263:function(e,t,n){"use strict";n.r(t);n(264),n(265),n(266),n(267),n(268),n(269),n(274);var a=n(75),s=(n(270),n(88)),r=n(96),i=n(116),o=n(164),c=n(76),l=n(21);function d(e,t,n,d,g,u,h,m,T,E,p,A,C){const y=[],S={filter_all:g.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=()=>{A.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=()=>{T.openSimpleModal({title:g.instant("common.confirm"),message:g.instant("ttyg.clear.history.confirmation"),warning:!0}).result.then((function(){t.history=[],_()}))},t.openSettings=()=>{u.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,_()}))},t.onExportSelectedChat=()=>{I(A.getSelectedChat())},t.onCreateAgent=()=>{const e=Object(l.repositoryInfoMapper)(h.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"};u.open(n).result.then(e=>{b(e)},e=>{console.log("create agent rejected",e)})},t.onEditAgent=e=>{console.log("Edit agent",e)};const _=()=>{const e=E.get("ttyg")||{};e[h.getActiveRepository()]={history:t.history,connectorID:t.connectorID,askSettings:t.askSettings},E.set("ttyg",e)},f=()=>(t.loadingChats=!0,p.getConversations().then(e=>A.updateChats(e)).catch(e=>{m.error(getError(e,0,100)),L(new i.ChatsListModel)}).finally(()=>{t.loadingChats=!1})),v=()=>(t.loadingAgents=!0,p.getAgents().then(e=>A.updateAgents(e)).catch(e=>{m.error(getError(e,0,100))}).finally(()=>{t.loadingAgents=!1})),L=e=>{e.isEmpty()?t.showChats=!1:(t.showChats=!0,A.getSelectedChat()||A.selectChat(t.chats.getFirstChat()))},I=e=>{p.exportConversation(e.id).then(()=>{A.emit(a.TTYGEventName.CHAT_EXPORT_SUCCESSFUL,e),A.emit(a.TTYGEventName.LOAD_CHAT)}).catch(e=>{A.emit(a.TTYGEventName.CHAT_EXPORT_FAILURE),m.error(g.instant("ttyg.chat.messages.export_failure"))})},b=e=>{t.creatingAgent=!0,p.createAgent(e).then(e=>v()).then(()=>{}).catch(e=>{m.error(getError(e,0,100))}).finally(()=>{t.creatingAgent=!1})},R=()=>{const e=h.getActiveRepository(),n=h.getReadableRepositories().map(t=>new r.AgentListFilterModel(t.id,t.id,t.id===e));t.agentListFilterModel=[new r.AgentListFilterModel(s.AGENTS_FILTER_ALL_KEY,S.filter_all),...n]};y.push(t.$watch(t.getActiveRepositoryObject,e=>{e&&((()=>{const e=C.getAgentId();e&&p.getAgent(e).then(e=>{e&&A.selectAgent(e)})})(),t.activeRepositoryList=h.getReadableRepositories().map(e=>new c.SelectMenuOptionsModel({value:e.id,label:e.id})),v().then(()=>(R(),f())),(()=>{const e=h.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)}}})())})),y.push(A.onSelectedChatChanged(e=>{e?p.getConversation(e.id).then(e=>{A.updateSelectedChat(e)}):A.updateSelectedChat(e)})),y.push(A.onChatsListChanged(e=>{t.chats=e,L(e)})),y.push(A.subscribe(A.onAgentsListChanged(e=>{t.agents=e,e.isEmpty()?t.showAgents=!1:t.showAgents=!0}))),y.push(A.subscribe(a.TTYGEventName.CREATE_CHAT,e=>{p.createConversation(e).then(e=>{A.emit(a.TTYGEventName.CREATE_CHAT_SUCCESSFUL),A.selectChat(A.getChats().getChat(e)),A.emit(a.TTYGEventName.LOAD_CHAT)}).catch(e=>{A.emit(a.TTYGEventName.CREATE_CHAT_FAILURE),m.error(g.instant("ttyg.chat.messages.create_failure"))})})),y.push(A.subscribe(a.TTYGEventName.RENAME_CHAT,e=>{p.renameConversation(e).then(()=>{A.emit(a.TTYGEventName.RENAME_CHAT_SUCCESSFUL),A.emit(a.TTYGEventName.LOAD_CHAT)}).catch(e=>{A.emit(a.TTYGEventName.RENAME_CHAT_FAILURE),m.error(g.instant("ttyg.chat.messages.rename_failure"))})})),y.push(A.subscribe(a.TTYGEventName.DELETE_CHAT,e=>{p.deleteConversation(e.id).then(()=>{A.emit(a.TTYGEventName.DELETE_CHAT_SUCCESSFUL,e),A.emit(a.TTYGEventName.LOAD_CHAT)}).catch(e=>{A.emit(a.TTYGEventName.DELETE_CHAT_FAILURE),m.error(g.instant("ttyg.chat.messages.delete_failure"))})})),y.push(A.subscribe(a.TTYGEventName.CHAT_EXPORT,I)),y.push(A.subscribe(a.TTYGEventName.ASK_QUESTION,e=>{p.askQuestion(e).then(t=>{const n=A.getSelectedChat();if(n&&n.id===e.chatId){const a=e;a.answer=t,n.chatHistory.appendItem(a),A.updateSelectedChat(n)}}).catch(e=>m.error(getError(e,0,100)))})),y.push(A.subscribe(a.TTYGEventName.LOAD_CHAT,f)),y.push(A.subscribe(a.TTYGEventName.CREATE_AGENT,t.onCreateAgent)),y.push(A.subscribe(a.TTYGEventName.EDIT_AGENT,t.onEditAgent)),y.push(A.subscribe(a.TTYGEventName.DELETE_AGENT,e=>{A.emit(a.TTYGEventName.DELETING_AGENT,{agentId:e.id,inProgress:!0}),p.deleteAgent(e.id).then(()=>(t.reloadingAgents=!0,p.getAgents().then(e=>A.updateAgents(e)).catch(e=>{m.error(getError(e,0,100))}).finally(()=>{t.reloadingAgents=!1}))).then(()=>{A.emit(a.TTYGEventName.AGENT_DELETED,e)}).catch(e=>{m.error(getError(e,0,100))}).finally(()=>{A.emit(a.TTYGEventName.DELETING_AGENT,{agentId:e.id,inProgress:!1})})})),y.push(A.subscribe(a.TTYGEventName.AGENT_SELECTED,e=>{C.saveAgent(e)})),y.push(A.subscribe(a.TTYGEventName.COPY_ANSWER_TO_CLIPBOARD,e=>{navigator.clipboard&&navigator.clipboard.writeText(e.answer.message).then(()=>A.emit(a.TTYGEventName.COPY_ANSWER_TO_CLIPBOARD_SUCCESSFUL)).catch(()=>A.emit(a.TTYGEventName.COPY_ANSWER_TO_CLIPBOARD_FAILURE))})),y.push(e.$on("$translateChangeSuccess",()=>{S.filter_all=g.instant("ttyg.agent.btn.filter.all"),R()})),t.$on("$destroy",(function(){y.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",d),d.$inject=["$rootScope","$scope","$http","$timeout","$translate","$uibModal","$repositories","toastr","ModalService","LocalStorageAdapter","TTYGService","TTYGContextService","TTYGStorageService"]},264:function(e,t,n){"use strict";n.r(t);n(139),n(127);var a=n(0),s=n(75);function r(e,t,n){return{restrict:"E",templateUrl:"js/angular/ttyg/templates/chat-list.html",scope:{chatList:"="},link:(r,i,o)=>{r.selectedChat=void 0,r.renamedChat=void 0,r.onSelectChatForRenaming=e=>{r.renamedChat=e},r.onSelectChat=t=>{r.selectedChat&&r.selectedChat.id===t.id||(e.selectChat(t),r.renamedChat=void 0)},r.onDeleteChat=r=>{const i=n.instant("ttyg.dialog.delete.title"),o=Object(a.decodeHTML)(n.instant("ttyg.dialog.delete.body",{chatName:r.name}));t.openConfirmation(i,o,()=>e.emit(s.TTYGEventName.DELETE_CHAT,r))},r.onRenameChat=(t,n)=>{n.name=t,r.renamedChat=void 0,e.emit(s.TTYGEventName.RENAME_CHAT,n)},r.onExportChat=t=>{e.emit(s.TTYGEventName.CHAT_EXPORT,t)},r.onCancelChatRenaming=()=>{r.renamedChat=void 0};const c=[];c.push(e.onSelectedChatChanged(e=>{r.selectedChat=e})),r.$on("$destroy",()=>{c.forEach(e=>e())}),console.log("ChatListComponent initialized")}}}angular.module("graphdb.framework.ttyg.directives.chat-list",["graphdb.framework.core.filters.readable_titmestamp","graphdb.framework.core.directives.inline-editable-text"]).directive("chatList",r),r.$inject=["TTYGContextService","ModalService","$translate"]},265:function(e,t,n){"use strict";n.r(t);var a=n(75),s=n(72),r=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 r.ChatItemModel;return e.question=new s.ChatMessageModel({role:s.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.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"]},266:function(e,t,n){"use strict";n.r(t);var a=n(0),s=n(75);function r(e,t,n){return{restrict:"E",templateUrl:"js/angular/ttyg/templates/agent-list.html",scope:{agentList:"=",agentListFilterModel:"="},link:(r,i,o)=>{r.selectedAgent=void 0,r.selectedAgentsFilter=void 0,r.deletingAgent=void 0,r.onEditAgent=e=>{console.log("Edit agent",e)},r.onCloneAgent=e=>{console.log("Clone agent",e)},r.onDeleteAgent=r=>{const i=n.instant("ttyg.agent.delete_agent_modal.title"),o=Object(a.decodeHTML)(n.instant("ttyg.agent.delete_agent_modal.body",{agentName:r.name}));t.openConfirmation(i,o,()=>e.emit(s.TTYGEventName.DELETE_AGENT,r))},r.onAgentsFilterChange=e=>{r.selectedAgentsFilter=e,r.agentList.filterByRepository(r.selectedAgentsFilter.key)};const c=()=>{const e=r.agentListFilterModel.find(e=>e.selected);r.selectedAgentsFilter=e||r.agentListFilterModel[0],r.onAgentsFilterChange(r.selectedAgentsFilter)},l=[];l.push(r.$watch("agentListFilterModel",c)),l.push(e.subscribe(s.TTYGEventName.DELETING_AGENT,e=>{r.deletingAgent=e})),l.push(e.onSelectedAgentChanged(e=>{r.selectedAgent=e})),r.$on("$destroy",()=>{l.forEach(e=>e())}),c()}}}angular.module("graphdb.framework.ttyg.directives.agent-list",[]).directive("agentList",r),r.$inject=["TTYGContextService","ModalService","$translate"]},267:function(e,t,n){"use strict";n.r(t);var a=n(76),s=n(75);function r(e,t,n,r){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");r.openConfirmation(o,c,()=>e.emit(s.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(s.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",r),r.$inject=["TTYGContextService","$translate","$sce","ModalService"]},268:function(e,t,n){"use strict";n.r(t);var a=n(75);function s(e){return{restrict:"E",templateUrl:"js/angular/ttyg/templates/no-agents-view.html",scope:{},link:(t,n,s)=>{t.onCreateAgent=()=>{e.emit(a.TTYGEventName.CREATE_AGENT)}}}}angular.module("graphdb.framework.ttyg.directives.no-agents-view",[]).directive("noAgentsView",s),s.$inject=["TTYGContextService"]},269:function(e,t,n){"use strict";n.r(t);var a=n(0),s=n(96),r=(n(141),n(140),n(19),n(8));function i(e,t,n,i,o,c,l,d,g,u){e.agentFormModel=u.agentFormModel,e.activeRepositoryInfo=u.activeRepositoryInfo,e.extractionMethodLoaderFlags={[s.ExtractionMethod.SIMILARITY]:!1},e.activeRepositoryList=u.activeRepositoryList,e.extractionMethods=s.ExtractionMethod,e.showAdvancedSettings=!1,e.similarityIndexes=[],e.retrievalConnectors=[],e.ftsEnabled=!1,e.toggleExtractionMethod=()=>{e.agentSettingsForm.extractionMethods.$setTouched(),m()},e.onExtractionMethodPanelToggle=e=>{E[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(r.REPOSITORY_PARAMS.enableFtsIndex)}).catch(e=>{h(e,"ttyg.agent.messages.error_repository_config_loading")}).finally(()=>{e.extractionMethodLoaderFlags[s.ExtractionMethod.FTS_SEARCH]=!1})},E={[s.ExtractionMethod.FTS_SEARCH]:t=>(t=>{e.extractionMethodLoaderFlags[t.method]=!0,T()})(t),[s.ExtractionMethod.SPARQL]:e=>{},[s.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),[s.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"]},270: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 s=a();s.agent.id=n.id,e.set(t.TTYG,s)},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"]},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 r}));var a=n(30);function s(e){let t=void 0,n=void 0,s=void 0,i=void 0;const o=()=>Object(a.cloneDeep)(t),c=()=>Object(a.cloneDeep)(n),l=()=>Object(a.cloneDeep)(s),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(r.CHAT_LIST_UPDATED,c())},onChatsListChanged:e=>(n&&angular.isFunction(e)&&e(c()),u(r.CHAT_LIST_UPDATED,t=>e(t))),getSelectedChat:l,selectChat:e=>{s&&s.id===e||(s=Object(a.cloneDeep)(e),g(r.SELECT_CHAT,l()))},onSelectedChatChanged:e=>(s&&angular.isFunction(e)&&e(l()),u(r.SELECT_CHAT,t=>e(t))),updateSelectedChat:e=>{s&&s.id!==e.id||(s=Object(a.cloneDeep)(e),g(r.SELECTED_CHAT_UPDATED,l()))},onSelectedChatUpdated:e=>(s&&angular.isFunction(e)&&e(l()),u(r.SELECTED_CHAT_UPDATED,t=>e(t))),updateAgents:e=>{t=Object(a.cloneDeep)(e),g(r.AGENT_LIST_UPDATED,o())},onAgentsListChanged:e=>(t&&angular.isFunction(e)&&e(o()),u(r.AGENT_LIST_UPDATED,t=>e(t))),getAgents:o,selectAgent:e=>{i=Object(a.cloneDeep)(e),g(r.AGENT_SELECTED,d())},getSelectedAgent:d,onSelectedAgentChanged:e=>(i&&angular.isFunction(e)&&e(d()),u(r.AGENT_SELECTED,t=>e(t)))}}angular.module("graphdb.framework.ttyg.services.ttygcontext",[]).factory("TTYGContextService",s),s.$inject=["EventEmitterService"];const r={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 r}));var a=n(73),s=n(74);class r{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 s.SimilarityIndexStatus.isCreatingStatus(this.status)}isBuildingStatus(){return s.SimilarityIndexStatus.isBuildingStatus(this.status)}isBuiltStatus(){return s.SimilarityIndexStatus.isBuiltStatus(this.status)}isRebuildingStatus(){return s.SimilarityIndexStatus.isRebuildingStatus(this.status)}isOutdatedStatus(){return s.SimilarityIndexStatus.isOutdatedStatus(this.status)}isInterruptedStatus(){return s.SimilarityIndexStatus.isInterruptedStatus(this.status)}isObsoleteStatus(){return s.SimilarityIndexStatus.isObsoleteStatus(this.status)}isFailedStatus(){return s.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 s}));var a=n(78);const s=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})},94:function(e,t,n){"use strict";n.r(t),n.d(t,"ConnectorTypesListModel",(function(){return a})),n.d(t,"ConnectorTypeModel",(function(){return s})),n.d(t,"ConnectorListModel",(function(){return r})),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 s{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 r{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}}},95: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,s,r,i,o,c,l,d,g){return e({method:t,url:"rest/similarity",noCancelOnRouteChange:!0,data:{name:n,options:a,selectQuery:s,stopList:o,infer:c,sameAs:l,type:d,analyzer:g,searchQuery:r,analogicalQuery:i}})}}}}]);
@@ -1 +0,0 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([[70,98,249],{142: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})}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}]},192:function(e,t,s){"use strict";s.r(t);var n=s(142);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),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 +0,0 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([[81,124],{180:function(e,t,n){"use strict";n.r(t);n(11),n(181);var o=n(100),r=n(30),s=n(92);let a=240;const i={no_cluster_configured:"",create_cluster_btn:"",legend_node_state:"",legend_link_state:"",node_state_leader:"Leader",node_state_follower:"Follower",node_state_candidate:"Candidate",node_state_no_cluster:"No cluster",node_state_out_of_sync:"Out of sync",node_state_no_connection:"No connection",node_state_read_only:"Read only",node_state_restricted:"Restricted",link_state_in_sync:"In sync",link_state_syncing:"Syncing",link_state_out_of_sync:"Out of sync",recovery_state:{searching_for_node:"Searching for node",waiting_for_snapshot:"Waiting for snapshot from node",receiving_snapshot:"Receiving a snapshot from node",applying_snapshot:"Applying a snapshot",building_snapshot:"Building a snapshot for node",sending_snapshot:"Sending a snapshot to node",recovery_operation_failure_warning:"Node unable to recover. Action required"}},c={node_state:"legend_node_state",link_state:"legend_link_state"};angular.module("graphdb.framework.clustermanagement.directives.cluster-graphical-view",["graphdb.framework.utils.localstorageadapter","graphdb.framework.clustermanagement.directives.cluster-legend"]).directive("clusterGraphicalView",["$window","LocalStorageAdapter","LSKeys","UriUtils","$translate","$jwtAuth","$rootScope","ClusterViewContextService",function(e,t,n,d,l,u,_,f){return{restrict:"E",scope:{clusterModel:"="},link:function(p,g){const h=angular.element(e),E=[];let w,m,C,y,v,S=N(),k=O(),L=Math.min(S,k)/2-100,b=S/2,A=k/2;function M(){const e=f.getClusterViewD3Container();S=N(),k=O(),e.attr("width",S),e.attr("height",k),U()}function D(e,t=""){Object.keys(e).forEach(n=>{let o="";t&&(o+=t),o+="."+n;const r=e[n];"string"==typeof r?e[n]=l.instant("cluster_management.cluster_graphical_view"+o):"object"==typeof r&&D(r,o)})}function N(){const o="collapsedMenu"===t.get(n.MENU_STATE);return a=o?70:240,Math.max(Math.floor(.95*(e.innerWidth-a)),600)}function O(){return Math.max(.95*(e.innerHeight-250),675)}function T(){o.updateClusterZoneLabels(m,C,i),Object.keys(c).forEach(e=>{d3.select("#"+e).text(function(e){return i[c[e]]}(e))})}function R(){L=Math.min(S,k)/2-100,b=S/2,A=k/2,o.moveElement(C,b,A),C.select(".cluster-zone").attr("r",L)}function I(e){p.$emit(s.CLICK_IN_VIEW,e.target)}function U(){R(),m!==p.clusterModel.hasCluster&&(m=!!p.clusterModel.hasCluster,function(e){o.setCreateClusterZone(e,C,i,w),!e&&w&&C.on("mouseup",()=>{p.$emit(s.CREATE_CLUSTER)})}(m));const e=function(){const e=Object(r.cloneDeep)(p.clusterModel.nodes)||[];return e.forEach(e=>{if(e.hostname=d.shortenIri(e.endpoint),!Object(r.isEmpty)(e.recoveryStatus)){let t="cluster_management.cluster_graphical_view.recovery_state."+e.recoveryStatus.state.toLowerCase();e.recoveryStatus.affectedNodes&&e.recoveryStatus.affectedNodes.length>0&&(t+="_with_affected_node"),e.recoveryStatus.message=l.instant(t,{node:e.recoveryStatus.affectedNodes.join(", ")})}}),e}();!function(e){const t=y.selectAll("#node-group").data(e,e=>e.address),n=o.createNodes(t,45);n.on("click",(e,t)=>{p.$emit(s.NODE_SELECTED,t);const n=d3.select(".nodetooltip"),o=$(window).width();e.pageX<o/2?(n.style("left",e.pageX+"px"),n.style("right","")):(n.style("left",""),n.style("right",o-e.pageX+"px")),n.style("top",e.pageY-28+"px")}),o.updateNodes(n),o.positionNodesOnClusterZone(n,b,A,L)}(e);!function(e,t){const n=v.selectAll(".link").data(e,e=>e.id);o.createLinks(n),o.updateLinks(n,t)}(Object(r.cloneDeep)(p.clusterModel.links)||[],e)}p.width=function(){return S},p.height=function(){return k};p.$on("$destroy",(function(){h.unbind("resize",M),h.unbind("mousedown",I),o.removeEventListeners(),E.forEach(e=>e())})),w=u.isAdmin(),h.bind("resize",M),h.bind("mousedown",I),E.push(_.$on("$translateChangeSuccess",(function(){D(i),T()}))),E.push(p.$on(s.MODEL_UPDATED,(function(){U()}))),D(i),function(e){const t=o.createClusterSvgElement(g[0]).attr("width",S).attr("height",k);C=o.createClusterZone(t,e),v=t.append("g").attr("id","links-group"),y=t.append("g").attr("id","nodes-group"),o.addArrowHead(t,o.ARROW_CONFIG.BIG),o.addArrowHead(t,o.ARROW_CONFIG.SMALL),f.updateClusterViewD3Container(t)}(!(!p.clusterModel.nodes||!p.clusterModel.nodes.length)),U()}}}])},92:function(e,t,n){"use strict";n.r(t),n.d(t,"UPDATE_CLUSTER",(function(){return o})),n.d(t,"DELETE_CLUSTER",(function(){return r})),n.d(t,"CLICK_IN_VIEW",(function(){return s})),n.d(t,"NODE_SELECTED",(function(){return a})),n.d(t,"CREATE_CLUSTER",(function(){return i})),n.d(t,"MODEL_UPDATED",(function(){return c}));const o="updateCluster",r="deleteCluster",s="clickInView",a="nodeSelected",i="createCluster",c="modelUpdated"}}]);