graphdb-workbench 2.8.1 → 2.8.2-RC1

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 (391) hide show
  1. package/dist/{0.93ef946b5d439221c394.bundle.js → 0.875d283bdf36007c6bbd.bundle.js} +3 -3
  2. package/dist/{1.a73a929263b6072ffe55.bundle.js → 1.83e339e4c5b2f2a08282.bundle.js} +1 -1
  3. package/dist/{100.81ded34d7fde61c38c9f.bundle.js → 100.3070964de5ddded48e3a.bundle.js} +1 -1
  4. package/dist/{101.03dce7284e0849b17a77.bundle.js → 101.0fd41887967b49f39f58.bundle.js} +1 -1
  5. package/dist/{103.41f921c4a65160dce11a.bundle.js → 103.b5bd5321c481e68d396b.bundle.js} +1 -1
  6. package/dist/{104.5610e2ec109654922537.bundle.js → 104.d7d9aff95b38499d3aa0.bundle.js} +1 -1
  7. package/dist/{108.131328ca1d67057fdb43.bundle.js → 108.e184704d2ebdc80a7ee0.bundle.js} +1 -1
  8. package/dist/{109.ab2007ce0897221e9dc7.bundle.js → 109.b9c13b701dd08bc1b422.bundle.js} +1 -1
  9. package/dist/{11.89e2336d213a154b77f8.bundle.js → 11.3b26459dee52279f0651.bundle.js} +1 -1
  10. package/dist/{110.af135801398303553036.bundle.js → 110.8a4f076940157a84d267.bundle.js} +1 -1
  11. package/dist/{111.ad7b205b5f380f161952.bundle.js → 111.1ff0066dab6a696ff2c7.bundle.js} +1 -1
  12. package/dist/{112.4b95b5e7e5034ac8718e.bundle.js → 112.a1f756d183625ee8e0c1.bundle.js} +1 -1
  13. package/dist/{113.d0ae979cfab5bcc7889a.bundle.js → 113.bc87ac23aabd8fe5a0ef.bundle.js} +1 -1
  14. package/dist/{114.37cfdc58c1101bb5faec.bundle.js → 114.b970709a8de043954db8.bundle.js} +1 -1
  15. package/dist/{115.c4311bcd11e7401b38f2.bundle.js → 115.b1a88743d68279399186.bundle.js} +1 -1
  16. package/dist/{116.d3298cdbe473c4859be0.bundle.js → 116.742e96a8f2027b81c82a.bundle.js} +1 -1
  17. package/dist/{117.eb040b49b8f68c9023e6.bundle.js → 117.ab380fa1b030d30c3977.bundle.js} +1 -1
  18. package/dist/{118.2581b5984f2215217317.bundle.js → 118.2bff88becdd96deaaea4.bundle.js} +1 -1
  19. package/dist/{119.594356fa685a2a21b8c5.bundle.js → 119.cb91f0b2ad6626f00efb.bundle.js} +1 -1
  20. package/dist/{12.eafc81263d8d64b426fe.bundle.js → 12.4e8ae7aac23a6c003d88.bundle.js} +1 -1
  21. package/dist/{120.082e673858610e5055af.bundle.js → 120.614dce012aa3b989d4dc.bundle.js} +1 -1
  22. package/dist/{121.cd9b4b81650e4ac5b802.bundle.js → 121.20b39f86e31dd0ce45f0.bundle.js} +1 -1
  23. package/dist/{122.b3177006c337fb555c21.bundle.js → 122.f07cffa5c6f2b6da76d8.bundle.js} +1 -1
  24. package/dist/{123.65cd6a98a6c3e27a1e60.bundle.js → 123.09964a279d1388c4e047.bundle.js} +1 -1
  25. package/dist/{124.e89e3fee558b4edf4bad.bundle.js → 124.9b87abcc7ca11755db81.bundle.js} +1 -1
  26. package/dist/{125.de1c18a0eb08e22e3624.bundle.js → 125.3c5ba4200594eb881242.bundle.js} +1 -1
  27. package/dist/126.fc4ea5fb039085308920.bundle.js +1 -0
  28. package/dist/{128.01074ce4644234d25596.bundle.js → 128.ec3183584234d09953ab.bundle.js} +1 -1
  29. package/dist/{13.02f91d1e051781f6b67b.bundle.js → 13.d5bc9e1e4864588bcb20.bundle.js} +1 -1
  30. package/dist/{130.0ce3a70e7e5705e61670.bundle.js → 130.e7806c205e23b43f2f1d.bundle.js} +1 -1
  31. package/dist/{132.25094e9c07f5efcb34b2.bundle.js → 132.85a60427f6aa22772958.bundle.js} +1 -1
  32. package/dist/{135.a9fc7400422a5a15a95f.bundle.js → 135.3cbbea5828709edaedbf.bundle.js} +1 -1
  33. package/dist/{137.50d3f73e37365e6d1927.bundle.js → 137.913cce2cb8ff8f1b4cd5.bundle.js} +1 -1
  34. package/dist/{14.e4770ab66956f0aae86e.bundle.js → 14.873536b236982db5438c.bundle.js} +11 -11
  35. package/dist/{15.e804c8ea193f9f0401c0.bundle.js → 15.90fb2b6d344d229f244b.bundle.js} +1 -1
  36. package/dist/{153.c2c3d34c96b4bb7c2bdb.bundle.js → 153.1f82d0ce7325ee3d51d1.bundle.js} +1 -1
  37. package/dist/{155.824842fa18302aebe5a4.bundle.js → 155.3f1475184740f15a2034.bundle.js} +1 -1
  38. package/dist/{157.b0c4feabee929ccf8a5c.bundle.js → 157.d9d0604fc87477a2ef6b.bundle.js} +1 -1
  39. package/dist/{16.2f1a9a9d1433f7ea6f11.bundle.js → 16.0e576f47a0b23261a71a.bundle.js} +1 -1
  40. package/dist/{165.8c936f8350a0352fe33a.bundle.js → 165.93cb4b6ee26de93c6e7b.bundle.js} +1 -1
  41. package/dist/{168.38dbbebd88da57b3ae35.bundle.js → 168.cec2ad6112b0094c5b47.bundle.js} +1 -1
  42. package/dist/{169.245ee4b967e1b8879358.bundle.js → 169.5ae1d776e238c9754b74.bundle.js} +1 -1
  43. package/dist/{17.783a24e8cb2819cc5909.bundle.js → 17.f84b9b805ad5f34f0e69.bundle.js} +1 -1
  44. package/dist/{170.e253c0170034a3f97336.bundle.js → 170.025043e57628877951bb.bundle.js} +1 -1
  45. package/dist/{171.fb19b792123f0251daaf.bundle.js → 171.8055ed62647646ef3b48.bundle.js} +1 -1
  46. package/dist/{172.c2999c73126f04810b46.bundle.js → 172.c1b60fddbd8423d146a1.bundle.js} +1 -1
  47. package/dist/{173.f10cc8249c5c6bd4a853.bundle.js → 173.184f4d5e98357e4f7715.bundle.js} +1 -1
  48. package/dist/{174.6ae0de8881f3c2379c53.bundle.js → 174.8162300e8078bed57602.bundle.js} +1 -1
  49. package/dist/{175.3da8cdc348e5341ca1c9.bundle.js → 175.5efa45e87d30fc7e3963.bundle.js} +1 -1
  50. package/dist/{176.f78a6898f07f2d523227.bundle.js → 176.4408a8721b3b284049ff.bundle.js} +1 -1
  51. package/dist/{177.88a27f82ee6835f26e09.bundle.js → 177.a891ea07c91258fc75e0.bundle.js} +1 -1
  52. package/dist/{178.0fa14533f1a361282a18.bundle.js → 178.7206f1fb15c2408b030b.bundle.js} +1 -1
  53. package/dist/{179.507b9f6d22b008299110.bundle.js → 179.8fe7b6c29eb1bfeee43c.bundle.js} +1 -1
  54. package/dist/{18.6f4a46573cdde105d447.bundle.js → 18.8a0539ca040757e9a832.bundle.js} +2 -2
  55. package/dist/{180.58fe04c74100d9f113f2.bundle.js → 180.ba4ca65858c2db566396.bundle.js} +1 -1
  56. package/dist/{181.50637e050234a6966c94.bundle.js → 181.3322c1514c4c867903ad.bundle.js} +1 -1
  57. package/dist/{183.53e87e91190814612b6e.bundle.js → 183.4a835a0db500db0a2177.bundle.js} +1 -1
  58. package/dist/186.2c2a3daf2e31a391bc75.bundle.js +1 -1
  59. package/dist/{189.8cbd6dbda31320678237.bundle.js → 189.dae4929566ab24c55087.bundle.js} +1 -1
  60. package/dist/{19.53e2e72c7895a8dbd47c.bundle.js → 19.ebb4cb8c5a0659966c33.bundle.js} +1 -1
  61. package/dist/{191.c981e0fba087d2e799a6.bundle.js → 191.41ab10faa0816085a3aa.bundle.js} +1 -1
  62. package/dist/{193.4c02ced7a1c44850598f.bundle.js → 193.bd9ddbfa6b4cb293dcf0.bundle.js} +1 -1
  63. package/dist/{194.7ec15a64658c1f97c8eb.bundle.js → 194.6813d8c56c11390cfa92.bundle.js} +1 -1
  64. package/dist/{197.2a0f5d280127e30e6a21.bundle.js → 197.e8524fe997ed01e55565.bundle.js} +1 -1
  65. package/dist/{2.9a7bb4072beb72168b07.bundle.js → 2.2871269b61d4779c47ad.bundle.js} +2 -2
  66. package/dist/{20.4e8e5f274166f7216846.bundle.js → 20.5b25b7f7b3a456363eca.bundle.js} +1 -1
  67. package/dist/{201.ecd6f5a0b1e07259609b.bundle.js → 201.cc7a5466d090c33c783d.bundle.js} +1 -1
  68. package/dist/{204.90c80b56283809b7025e.bundle.js → 204.bd0d51de50c536c2c4bb.bundle.js} +1 -1
  69. package/dist/{207.439cff6991fd256e5aa1.bundle.js → 207.4ee221db4a770eebce82.bundle.js} +1 -1
  70. package/dist/{208.c653cb276b43b29cce49.bundle.js → 208.b924ad169be9d4847c4f.bundle.js} +1 -1
  71. package/dist/{209.8285dee1da75e605749e.bundle.js → 209.15103e9e147dcba149d1.bundle.js} +1 -1
  72. package/dist/21.8a61ee37137bbfe54420.bundle.js +1 -0
  73. package/dist/{210.a2ea30efd2122d5a8f2f.bundle.js → 210.9f92acbed186c03bd5b0.bundle.js} +1 -1
  74. package/dist/{211.de53552e0b8e59e26d71.bundle.js → 211.46270d6715304c58b7af.bundle.js} +1 -1
  75. package/dist/{212.f80d06d279d2dc0aae74.bundle.js → 212.15d33c078f2f4f1ac04c.bundle.js} +1 -1
  76. package/dist/{213.3b1ed0016e75a097798d.bundle.js → 213.6fb1a65f99cd8d40fc54.bundle.js} +1 -1
  77. package/dist/{214.e66c5e02cd8628abb86d.bundle.js → 214.f9261566d82114f627db.bundle.js} +1 -1
  78. package/dist/{215.bd7d215f0b4c30c41150.bundle.js → 215.42d69e9212356478f659.bundle.js} +1 -1
  79. package/dist/{216.596ffaba4897a3b8f57e.bundle.js → 216.2076e1eb5acb1ac528b6.bundle.js} +1 -1
  80. package/dist/{218.c9ebeca0a0601cbfdd49.bundle.js → 218.67fc3e0158706d2d19e1.bundle.js} +1 -1
  81. package/dist/{219.49b7f67206dc1b550fcd.bundle.js → 219.82f128fcf9898ff88aa9.bundle.js} +1 -1
  82. package/dist/{22.a4bca55317e2e42facec.bundle.js → 22.d8521525335ed75c3aab.bundle.js} +1 -1
  83. package/dist/{220.60aae5815d2081a0e83a.bundle.js → 220.608ce297387048adc0bd.bundle.js} +1 -1
  84. package/dist/221.aaeca7d1bf1ddc2ffa3d.bundle.js +1 -0
  85. package/dist/{222.ca41fa6721e4e66ed399.bundle.js → 222.d6561cf288d4ec6e5cca.bundle.js} +1 -1
  86. package/dist/{223.54c4cac06e4519e3efb0.bundle.js → 223.de870637bd935f4ea0aa.bundle.js} +1 -1
  87. package/dist/{224.f7199477314a1768db47.bundle.js → 224.cf0fe6d4c5eb729a080d.bundle.js} +1 -1
  88. package/dist/{225.6a3fe206268377dad69d.bundle.js → 225.98b5c0f9809559a72469.bundle.js} +1 -1
  89. package/dist/{227.ae93e62e09fd4d381d07.bundle.js → 227.a7e55927a6b08c8945c4.bundle.js} +1 -1
  90. package/dist/{229.7a0284ae7edfa27eb8a1.bundle.js → 229.4f30e3eacebdd89ec353.bundle.js} +1 -1
  91. package/dist/23.b33b628c8b874334cdb1.bundle.js +3 -0
  92. package/dist/{230.1d9ce4dbc6dc22371a26.bundle.js → 230.4b14f50f5fd6c781f408.bundle.js} +1 -1
  93. package/dist/{231.c353755e4c1b58e65ec4.bundle.js → 231.10ea181aeb4f3d1348b9.bundle.js} +1 -1
  94. package/dist/{232.5a8fdf0f56be1ae7cc82.bundle.js → 232.9866a4fa25183fbbe913.bundle.js} +1 -1
  95. package/dist/{233.d6ef0f5bb2b6375bd52f.bundle.js → 233.649d7320c465b7155b36.bundle.js} +1 -1
  96. package/dist/{237.377279922b3917eb2125.bundle.js → 237.d17033c4e48dc08c7240.bundle.js} +1 -1
  97. package/dist/{238.dbeb2c0bf3dccf39339b.bundle.js → 238.fde323d482ca17168f48.bundle.js} +1 -1
  98. package/dist/{239.6b9bf48532f001f4c735.bundle.js → 239.fa9944a77aa51d069e55.bundle.js} +1 -1
  99. package/dist/{24.8f112e678308ce7d3626.bundle.js → 24.52e2cf624e0b3d6f078c.bundle.js} +2 -2
  100. package/dist/{242.bd036e6b1bdd54dd1ae7.bundle.js → 242.e5a0106b578088db4bee.bundle.js} +1 -1
  101. package/dist/243.6f0afa45e9d47531843c.bundle.js +1 -0
  102. package/dist/{245.fdb7b2fe10dcea472879.bundle.js → 245.e931b23663d1aae91b9f.bundle.js} +1 -1
  103. package/dist/{246.c8b41d4b12b1250e01ed.bundle.js → 246.4a1eca8315b6bba57f66.bundle.js} +1 -1
  104. package/dist/{247.37b6eb2ecc53b255c33a.bundle.js → 247.a04b3beb96bd5d2736fa.bundle.js} +1 -1
  105. package/dist/{248.0c33aa07abd48a74725d.bundle.js → 248.21ce03494616592a9819.bundle.js} +1 -1
  106. package/dist/{249.88fea9574f0fce1953cf.bundle.js → 249.b47d83be62691e6ac4b4.bundle.js} +1 -1
  107. package/dist/{25.94015e8699386efadfd0.bundle.js → 25.65540894612004a2a4d1.bundle.js} +2 -2
  108. package/dist/{252.93d6b6a7e44fb9741804.bundle.js → 252.e302f8ff8fa7d485b4d7.bundle.js} +1 -1
  109. package/dist/{253.930cda0de4ec25344bff.bundle.js → 253.8abde27ec7983be54332.bundle.js} +1 -1
  110. package/dist/255.51b41a07994b78c7c322.bundle.js +1 -0
  111. package/dist/{26.67ef26e6953e52d38857.bundle.js → 26.09647564e5578b83b0f2.bundle.js} +1 -1
  112. package/dist/{260.db455f2124cbe43df61c.bundle.js → 260.99725daf615101d61a10.bundle.js} +1 -1
  113. package/dist/263.8a676fbdb257ed60ec65.bundle.js +1 -0
  114. package/dist/{264.bc7ad7396bfced9e76ef.bundle.js → 264.e06977c7db42c4db8ff7.bundle.js} +1 -1
  115. package/dist/265.8e0cc01745eba2bfe677.bundle.js +1 -0
  116. package/dist/{267.c07b3f034458a2331538.bundle.js → 267.6e7dc18a24868955c3b1.bundle.js} +1 -1
  117. package/dist/269.4bbbc2124a8900906ae8.bundle.js +1 -0
  118. package/dist/{27.00b495e785c07902e77c.bundle.js → 27.8d852db7688ae40156b7.bundle.js} +2 -2
  119. package/dist/{270.4ccea89d95972bf06d46.bundle.js → 270.cff454ea1725b1c53507.bundle.js} +1 -1
  120. package/dist/{278.b2ecdbeb6efe166a4138.bundle.js → 278.ccd757f1042c06691003.bundle.js} +1 -1
  121. package/dist/{279.a9cab23ebf26fca2a9cf.bundle.js → 279.e25a22085a6f79e895c0.bundle.js} +1 -1
  122. package/dist/{28.eb86a8896c02b26d60a9.bundle.js → 28.1bbb9752bb68838cfdf0.bundle.js} +1 -1
  123. package/dist/{280.5c4b2ddc7618a469c7fe.bundle.js → 280.4097e69e196573f3473f.bundle.js} +1 -1
  124. package/dist/{282.e2cbab0c480d7b8dfa6a.bundle.js → 282.7e84e1061f139e9f7bef.bundle.js} +1 -1
  125. package/dist/{284.f361457d23176846d939.bundle.js → 284.250f179d5d5beae0484e.bundle.js} +1 -1
  126. package/dist/{285.ef26d39638b16bacab4c.bundle.js → 285.c3ff49b2330f917e9cae.bundle.js} +1 -1
  127. package/dist/{287.f7bc3db6a00eb98cf7b5.bundle.js → 287.852accd13971b53be6e6.bundle.js} +1 -1
  128. package/dist/{289.bba52a396013e1f71326.bundle.js → 289.2472f3aab87d7282c977.bundle.js} +1 -1
  129. package/dist/{29.b2217c006814c00e92b6.bundle.js → 29.4e89354c0831d42f0419.bundle.js} +1 -1
  130. package/dist/{290.41b13ee58ca90a12eced.bundle.js → 290.a7debd92c6ef38b09080.bundle.js} +1 -1
  131. package/dist/{291.34e6e289ace8f72b99b0.bundle.js → 291.2213e5ee6e0f3bab4710.bundle.js} +1 -1
  132. package/dist/{292.5a049771b8c51d82bdc7.bundle.js → 292.4d6493d7e277731dc74a.bundle.js} +1 -1
  133. package/dist/{295.495163add3be67d633b4.bundle.js → 295.4773144d2d91f7798248.bundle.js} +1 -1
  134. package/dist/{3.5419ae7eb3fbc9d6bdee.bundle.js → 3.9bf69b8707359646aece.bundle.js} +1 -1
  135. package/dist/305.a35eb6e4a2cc93c4571b.bundle.js +1 -0
  136. package/dist/{305.5835c4a6e2f972ee490f.bundle.js → 306.9c43427f80fc44ebaf03.bundle.js} +1 -1
  137. package/dist/{306.41277b4d3b9380d54d30.bundle.js → 307.cf5b1fcbc5b811e904dc.bundle.js} +1 -1
  138. package/dist/{307.a8f42225ca98e3ebf656.bundle.js → 308.d6c225f8eb69699fd868.bundle.js} +1 -1
  139. package/dist/{308.2be4226a575d34b0cd73.bundle.js → 309.46f3386d8ee633c9f033.bundle.js} +1 -1
  140. package/dist/{31.519fa2d00495176c01c4.bundle.js → 31.4781af7013be3a9537a1.bundle.js} +1 -1
  141. package/dist/{309.c84682804a521a8b2a77.bundle.js → 310.d8b85223e04094ba9cd5.bundle.js} +1 -1
  142. package/dist/{310.e6762b117cb6ae5ad44f.bundle.js → 311.4273624f139c61d65818.bundle.js} +1 -1
  143. package/dist/{311.1eb3449e915d4daf5c1d.bundle.js → 312.99cd284601a941dd18a0.bundle.js} +1 -1
  144. package/dist/{312.c4b2d6fa63a3389f22d3.bundle.js → 313.bb4c9d7c47f5e1f5093b.bundle.js} +1 -1
  145. package/dist/{313.1ebabec29606c0b5c29e.bundle.js → 314.521aefe149e0e16bd107.bundle.js} +1 -1
  146. package/dist/{314.366b9d03d5e93dd8779d.bundle.js → 315.2044d86e021057c6acf3.bundle.js} +1 -1
  147. package/dist/{315.3579a19e49a159f01af3.bundle.js → 316.390155e3fc6e06a67262.bundle.js} +1 -1
  148. package/dist/{316.1714889dd79b839b2c13.bundle.js → 317.7675975ff1a1bf7e238c.bundle.js} +1 -1
  149. package/dist/{317.03873f861bdb32a06fd1.bundle.js → 318.4fc98b66b041f45c882a.bundle.js} +1 -1
  150. package/dist/319.509f49d398affc8a7749.bundle.js +1 -0
  151. package/dist/{32.b302966aa4bede5d7e30.bundle.js → 32.44b933fc43cce88c0817.bundle.js} +1 -1
  152. package/dist/{319.6551554a97d7ae4741a3.bundle.js → 320.f94035002d905bf2e7a8.bundle.js} +1 -1
  153. package/dist/{320.68be8ddd757494458e92.bundle.js → 321.7c9f324f162db476455e.bundle.js} +1 -1
  154. package/dist/{321.4b5c5975a3eb3290576a.bundle.js → 322.f6b68acd9be3b72ef4ec.bundle.js} +1 -1
  155. package/dist/{322.37874a32a3b840b2bc18.bundle.js → 323.56ffdd901c5855cf54bc.bundle.js} +1 -1
  156. package/dist/{323.e4db3f0a06377f6d5ffd.bundle.js → 324.41e42a31205c6b1bc8d2.bundle.js} +1 -1
  157. package/dist/{324.19edead008e4e4ed38de.bundle.js → 325.d22be9aef19451f3a3f4.bundle.js} +1 -1
  158. package/dist/{325.f5af4954c4c7b5edd6b5.bundle.js → 326.c1dea79839228c056244.bundle.js} +1 -1
  159. package/dist/{326.104705396eb92eb1ad1d.bundle.js → 327.4c6ad5e51522d2f25717.bundle.js} +1 -1
  160. package/dist/{327.bf1af0af04aa7aff6074.bundle.js → 328.33ff1874c05507057222.bundle.js} +1 -1
  161. package/dist/{328.341f20bda7f187c90eae.bundle.js → 329.b04c4cb798bf7b539ffc.bundle.js} +1 -1
  162. package/dist/{33.948f4d1d7c7a25c68c20.bundle.js → 33.b031d67be0132a717f0b.bundle.js} +1 -1
  163. package/dist/{329.c72b59163f6842d84b42.bundle.js → 330.8db27d0e4eb0dc16e622.bundle.js} +1 -1
  164. package/dist/{330.f4a8e20c39fcf8a6329e.bundle.js → 331.ae880da05b0d8989d172.bundle.js} +1 -1
  165. package/dist/{336.1bc4977d8c53cc1b0234.bundle.js → 337.29f196f56c553bfd0b4b.bundle.js} +1 -1
  166. package/dist/{337.648ebc23bd110d807f96.bundle.js → 338.dfe94264d9215fa5da30.bundle.js} +1 -1
  167. package/dist/{338.c73c7473c913105b91b7.bundle.js → 339.5427076e7d3df4f7a05a.bundle.js} +1 -1
  168. package/dist/{34.63bcd4f233c8c700d893.bundle.js → 34.77a7804500fbc4245997.bundle.js} +1 -1
  169. package/dist/{339.9f752190a8075a585893.bundle.js → 340.95eca8daf4aeda81a903.bundle.js} +1 -1
  170. package/dist/{340.3a6f2a972ba03df3a892.bundle.js → 341.d6fcc8c673c35f534e93.bundle.js} +1 -1
  171. package/dist/{341.4cdd6fa08575fc4e3038.bundle.js → 342.e8719a0972bd1a58683e.bundle.js} +1 -1
  172. package/dist/{342.4460f42722f320863837.bundle.js → 343.5a8fb316d17b6c66c3c7.bundle.js} +1 -1
  173. package/dist/{343.3bcf18842dac8f9814fb.bundle.js → 344.6d9fd02b3652616a643b.bundle.js} +1 -1
  174. package/dist/{344.251d1e4c0513fc6f6f68.bundle.js → 345.8ffda125f47c13040f84.bundle.js} +1 -1
  175. package/dist/{345.dfaa8f10271321ec18b2.bundle.js → 346.8e445257fcf6506e51fd.bundle.js} +1 -1
  176. package/dist/{346.275291fef805d19a0594.bundle.js → 347.7c19c94950fb3d001238.bundle.js} +1 -1
  177. package/dist/348.c84b812c3cefa18bcdd0.bundle.js +1 -0
  178. package/dist/{348.9d188fb860eb90c98d08.bundle.js → 349.8533333a2b15cfefe7d1.bundle.js} +1 -1
  179. package/dist/{35.f556eeb37786469e255c.bundle.js → 35.28617c0288b3278d9368.bundle.js} +1 -1
  180. package/dist/{349.30e6c2d544cb5062ffae.bundle.js → 350.3964bd5fb40f24ef51ec.bundle.js} +1 -1
  181. package/dist/{350.ef6ee52efdfc21bdaa67.bundle.js → 351.8601a63e68f7ede9a254.bundle.js} +1 -1
  182. package/dist/{351.f1d51e5853e47a85db53.bundle.js → 352.15ad04f8cc7549c08b2e.bundle.js} +1 -1
  183. package/dist/{352.955d0f08ada9009a848f.bundle.js → 353.52798c81f9b365367ced.bundle.js} +1 -1
  184. package/dist/354.17ed256eb667904d08df.bundle.js +1 -0
  185. package/dist/{354.10e714b1265e02bba235.bundle.js → 355.f35f28cd6e0e6f7e111f.bundle.js} +1 -1
  186. package/dist/{355.11ac5e75ef62b26f3e6a.bundle.js → 356.8bbd6c666a0018b5e940.bundle.js} +1 -1
  187. package/dist/357.bfd7aad3bdb3409ea17c.bundle.js +1 -0
  188. package/dist/358.c1194b10992666401cb5.bundle.js +1 -0
  189. package/dist/359.504a602752407371e3a4.bundle.js +1 -0
  190. package/dist/{36.0c3211079c87e02dc179.bundle.js → 36.7c3318e965fb19a54c09.bundle.js} +1 -1
  191. package/dist/360.ec800e7ccf7c65846eac.bundle.js +1 -0
  192. package/dist/361.b515829257fc43342570.bundle.js +1 -0
  193. package/dist/{361.19e47a37db3a034f11b3.bundle.js → 362.392f858ec8629388f98f.bundle.js} +1 -1
  194. package/dist/{362.dd6626f5e714733db97a.bundle.js → 363.b2ad8ddefc6ce78b3c81.bundle.js} +1 -1
  195. package/dist/{363.0eaafc923989076350ca.bundle.js → 364.31b030bb5331b6ad017a.bundle.js} +1 -1
  196. package/dist/{364.e47d4b0808023243e495.bundle.js → 365.d94cbd7d086b574a92d5.bundle.js} +1 -1
  197. package/dist/{365.25243b31f316f0709a39.bundle.js → 366.e67318394ed1e5bc4816.bundle.js} +1 -1
  198. package/dist/{366.f5ffb64d172e5bf20af7.bundle.js → 367.3d38866206a577e9b540.bundle.js} +1 -1
  199. package/dist/{367.9ecf8c66399c5eb4fa6f.bundle.js → 368.8888845737a9d1a65834.bundle.js} +1 -1
  200. package/dist/{368.a1cc59c92c37a3a74e46.bundle.js → 369.fe00977127c1226e0d91.bundle.js} +1 -1
  201. package/dist/{37.ca1a4d87ac7adf39ed4b.bundle.js → 37.d891daa3e46551e8356a.bundle.js} +1 -1
  202. package/dist/{369.6b67ecef87b43c66b042.bundle.js → 370.0600b476b6dfd7c7d6c9.bundle.js} +1 -1
  203. package/dist/{370.97c470c1d62a597814f7.bundle.js → 371.6470242667e0f266ef98.bundle.js} +1 -1
  204. package/dist/{371.0fe4cdde0c41e177a87e.bundle.js → 372.7c7d8e17415db1ca678a.bundle.js} +1 -1
  205. package/dist/{372.44806d1ec03b1b3d0dcf.bundle.js → 373.94cf68530127f3288c33.bundle.js} +1 -1
  206. package/dist/{373.09e562b380789fe476de.bundle.js → 374.2f3c2ca891f0d4ee92fb.bundle.js} +1 -1
  207. package/dist/{374.e25d5b6b4dd87b1be3f2.bundle.js → 375.fb8d72780a72c2cf706b.bundle.js} +1 -1
  208. package/dist/{375.6ea69c8a14d728f29122.bundle.js → 376.0f918b74ae270f734095.bundle.js} +1 -1
  209. package/dist/{376.06b974e5fc3bcd56b62d.bundle.js → 377.d10f0b0c42990ee49b92.bundle.js} +1 -1
  210. package/dist/{377.abc11ae0635ffd8c15ed.bundle.js → 378.391cf597867e0390320a.bundle.js} +1 -1
  211. package/dist/{378.f82f1a99fe16c28ebebb.bundle.js → 379.76e6d1706b50516df9de.bundle.js} +1 -1
  212. package/dist/{379.ffbb53f8d5e5afff60c7.bundle.js → 380.5e6d6d72a5810ac5d248.bundle.js} +1 -1
  213. package/dist/{380.08cea5e4c44980bf940e.bundle.js → 381.a9e42d4333e35a1cf527.bundle.js} +1 -1
  214. package/dist/{381.d6b888b78e2d1b73f12e.bundle.js → 382.e62499447a434fcded05.bundle.js} +1 -1
  215. package/dist/{382.441c501fc2f3bfced158.bundle.js → 383.49468bf2718457348f9f.bundle.js} +1 -1
  216. package/dist/{383.c0c1af01db655690eb57.bundle.js → 384.88ba757161284f9d1fdf.bundle.js} +1 -1
  217. package/dist/{384.cc9d743c30a973a28c33.bundle.js → 385.29110be1055dc453aaa0.bundle.js} +1 -1
  218. package/dist/{385.9664f45dc2325d2d6527.bundle.js → 386.9f5e211dd65b9a26babd.bundle.js} +1 -1
  219. package/dist/{386.e50766d6caa933d42584.bundle.js → 387.9a09d8394ac762fbaf96.bundle.js} +1 -1
  220. package/dist/{387.3e6f6632ced052beb517.bundle.js → 388.9a4baa576b19a57cc880.bundle.js} +1 -1
  221. package/dist/{388.bd4dbc8bc1c4d7f5106f.bundle.js → 389.7918999aa7ffee42241c.bundle.js} +1 -1
  222. package/dist/{39.038879a8833f3817093d.bundle.js → 39.73ff8f083bc3bbee61c1.bundle.js} +1 -1
  223. package/dist/{389.ad25bb02cb3a9c2413b5.bundle.js → 390.b6be850fc7505d1de88d.bundle.js} +1 -1
  224. package/dist/391.0666a2c713a150170ff5.bundle.js +1 -0
  225. package/dist/{391.66b7ca48385310ebcf7b.bundle.js → 392.f34148770c768383744d.bundle.js} +1 -1
  226. package/dist/{392.5f61cc2fcec97682c31a.bundle.js → 393.05f47c41cc1d7b54adc0.bundle.js} +1 -1
  227. package/dist/{393.ad60a160f6d8f07db066.bundle.js → 394.86c3ac40b9fb6469c496.bundle.js} +1 -1
  228. package/dist/{394.945a629ae80e98a3842c.bundle.js → 395.b38a677c2f2b1ccb3476.bundle.js} +1 -1
  229. package/dist/{395.1f45e91da65c4b15e7b7.bundle.js → 396.b5f4054944651ae5180c.bundle.js} +1 -1
  230. package/dist/{396.19f00beeb595f6a0f097.bundle.js → 397.f2b5b26b77b1fd7f248d.bundle.js} +1 -1
  231. package/dist/{397.6aed7b44e353db151018.bundle.js → 398.796968f13733f535d020.bundle.js} +1 -1
  232. package/dist/{398.e0bcc3c752132fc25da7.bundle.js → 399.b7c7337a66ba8bdbc012.bundle.js} +1 -1
  233. package/dist/{4.361006ddfb9bbb7d67df.bundle.js → 4.4a106c0d5b80241a34a4.bundle.js} +1 -1
  234. package/dist/{40.e592bbbeb7155297dd8f.bundle.js → 40.67ce61c6380c388312c4.bundle.js} +1 -1
  235. package/dist/{399.eba5e66616fb20d1f217.bundle.js → 400.eb31061e4a8e21d5bcde.bundle.js} +1 -1
  236. package/dist/{400.f7a109f7fd41e7c4ec9f.bundle.js → 401.430d48aba92b6a8e4153.bundle.js} +1 -1
  237. package/dist/{401.8acac08b0a8c32b47774.bundle.js → 402.cf54af8859c0b1b67682.bundle.js} +1 -1
  238. package/dist/403.d87d414670015e4f18cd.bundle.js +1 -0
  239. package/dist/404.4efe8914c8cbf7591932.bundle.js +1 -0
  240. package/dist/405.bb51a207dbe9fbfcd773.bundle.js +1 -0
  241. package/dist/406.0fe82124cb33838472c3.bundle.js +1 -0
  242. package/dist/407.d4525d358e6005ee0b02.bundle.js +1 -0
  243. package/dist/{407.442379ae0047095fc75c.bundle.js → 408.ff4e24330c6f3997f2b8.bundle.js} +1 -1
  244. package/dist/409.3c99979a0c06f995a321.bundle.js +1 -0
  245. package/dist/{41.fa23b31a4328e38c548e.bundle.js → 41.1d2945e92ac1076af6ec.bundle.js} +1 -1
  246. package/dist/410.8e4e7b4205a7320a7640.bundle.js +1 -0
  247. package/dist/411.f1439685bbeb41c2ab30.bundle.js +1 -0
  248. package/dist/412.28a43e9de915ef681ee5.bundle.js +1 -0
  249. package/dist/413.9e47843c56126c145a46.bundle.js +1 -0
  250. package/dist/414.7e33a7290dfb52ebadfc.bundle.js +1 -0
  251. package/dist/{414.f7f1d8e7cfb5f16cd505.bundle.js → 415.4ae770f1c792a7e3d97d.bundle.js} +1 -1
  252. package/dist/{415.4f10529e67213d7b6d84.bundle.js → 416.199966edb0124bcdc6fe.bundle.js} +1 -1
  253. package/dist/{416.4d2b094d54d2052d87eb.bundle.js → 417.86e1a50751d6b250e186.bundle.js} +1 -1
  254. package/dist/{417.504d13b7f74634324cf5.bundle.js → 418.5fb3eefd141f863f0d6f.bundle.js} +1 -1
  255. package/dist/42.245988033c04d2389901.bundle.js +1 -0
  256. package/dist/43.d473040175d53a3dc19a.bundle.js +1 -0
  257. package/dist/{44.766b82ce5de1a524cc3f.bundle.js → 44.629ba0bb8617b75b9e18.bundle.js} +1 -1
  258. package/dist/{45.805cb81e8bd5e16d6614.bundle.js → 45.18fb9380db5ca1299c58.bundle.js} +1 -1
  259. package/dist/{46.8519664b24972b0782c8.bundle.js → 46.a5ab1e307c231829db33.bundle.js} +1 -1
  260. package/dist/{48.cefc88274887fbd818bb.bundle.js → 48.2daa6db29a43f428bec3.bundle.js} +1 -1
  261. package/dist/{5.c7f5c26819f9c1274988.bundle.js → 5.644cd1846e3c9119b69f.bundle.js} +1 -1
  262. package/dist/{50.b67a8bf19f5ba40d211d.bundle.js → 50.c0264a35d5a6770c7099.bundle.js} +1 -1
  263. package/dist/{52.01117e4b38baeac7e827.bundle.js → 52.09592231802ba57684f4.bundle.js} +1 -1
  264. package/dist/{53.1c209e38bc652bc802a3.bundle.js → 53.1e27523131cb43ae9164.bundle.js} +1 -1
  265. package/dist/{54.7e75dbcdbc39dbec90c4.bundle.js → 54.4c32e98dc7d5f10f818c.bundle.js} +1 -1
  266. package/dist/{55.55159c353664aaa65f20.bundle.js → 55.76f515faee295d0bddf5.bundle.js} +1 -1
  267. package/dist/{56.9535d85cb3dee788f807.bundle.js → 56.73dd6bd38ca3d86f9c4c.bundle.js} +1 -1
  268. package/dist/{57.1b0a2dda660da0ff1ebf.bundle.js → 57.e9bf37d59424bf7d57d6.bundle.js} +1 -1
  269. package/dist/{58.4d15f0ad937826e84e09.bundle.js → 58.cfb0de1cb17f24797a22.bundle.js} +1 -1
  270. package/dist/{6.0acc78945eb1297c0a53.bundle.js → 6.6a3fafaf62366478abcf.bundle.js} +1 -1
  271. package/dist/{60.2c5027dea3e3703d7c38.bundle.js → 60.f6a79c3c7e6f4927286e.bundle.js} +1 -1
  272. package/dist/61.8a54322d4b106608e0e8.bundle.js +1 -0
  273. package/dist/{62.64013e3b3891db8e214b.bundle.js → 62.595e7a8f405c67d74084.bundle.js} +1 -1
  274. package/dist/{64.cb099060a9e5142b2a34.bundle.js → 64.3e15db2ddfc15a3fd2fb.bundle.js} +1 -1
  275. package/dist/{67.d7be53a97d6bf1135546.bundle.js → 67.00fdf021533b515a83ef.bundle.js} +2 -2
  276. package/dist/{68.5af0fbaa99335f8bb96e.bundle.js → 68.4ddd8f42233cef1a90bc.bundle.js} +1 -1
  277. package/dist/{69.4a7177444dc0e4b94315.bundle.js → 69.1572347a6b37649d0a51.bundle.js} +1 -1
  278. package/dist/{7.daca4c258c5846916933.bundle.js → 7.fa770bea495e515b454f.bundle.js} +1 -1
  279. package/dist/{70.0e9e1543e9156f9c8233.bundle.js → 70.99dae552249a5f47a419.bundle.js} +1 -1
  280. package/dist/{71.2977a633f1a95a9d26e9.bundle.js → 71.2757370b0e4e644f7faa.bundle.js} +1 -1
  281. package/dist/72.43568229dc07f2bd1d87.bundle.js +1 -0
  282. package/dist/{74.45817f2a0eb750af3acb.bundle.js → 74.72417242867006a157dc.bundle.js} +1 -1
  283. package/dist/{75.1eaa235bbff5daf4df2d.bundle.js → 75.4a164bc17bda94c27048.bundle.js} +1 -1
  284. package/dist/{77.0aeceb0259e18b2839ed.bundle.js → 77.3d7096096e8042edbae9.bundle.js} +1 -1
  285. package/dist/{8.d891a8afeaf11c649a13.bundle.js → 8.bca750bf5df1cd0f0ef7.bundle.js} +1 -1
  286. package/dist/{81.66475d9be7fdfd0aff8e.bundle.js → 81.b6af119c791c71ccb10e.bundle.js} +1 -1
  287. package/dist/{82.baf988276ed830f4c619.bundle.js → 82.7f4aa24040cc974faad9.bundle.js} +1 -1
  288. package/dist/83.beffe2d64d0a5c2fdf25.bundle.js +1 -0
  289. package/dist/{84.9c2217ed7d51b9587b34.bundle.js → 84.ea14f1c945f5cb371786.bundle.js} +1 -1
  290. package/dist/{85.f5022d593fa18e7b6e2f.bundle.js → 85.fa3fc124b6577722efab.bundle.js} +1 -1
  291. package/dist/{86.b1867ffb28ea1d2ee860.bundle.js → 86.27e0125762c7931f5f06.bundle.js} +1 -1
  292. package/dist/{88.1d5fba0d6977f63971c0.bundle.js → 88.849205389ccad69d0f36.bundle.js} +1 -1
  293. package/dist/{9.3dc9baf7ba9cade788d4.bundle.js → 9.ccfffb58a0d41b10046b.bundle.js} +1 -1
  294. package/dist/{92.c51359902266bcccf8b5.bundle.js → 92.08c2a19329fec4752d1e.bundle.js} +1 -1
  295. package/dist/{93.fd7426d3c440f994b6c9.bundle.js → 93.13f947e1df84a809231c.bundle.js} +1 -1
  296. package/dist/{95.d15d8c36116342281f3a.bundle.js → 95.4cdbb81af9dc2b808731.bundle.js} +1 -1
  297. package/dist/{bundle.f64830972ccb2587bed5.bundle.js → bundle.93f30706a751eb3541c1.bundle.js} +12 -12
  298. package/dist/css/sparql-editor.css +4 -1
  299. package/dist/i18n/locale-en.json +1 -1
  300. package/dist/i18n/locale-fr.json +1 -1
  301. package/dist/index.html +3 -3
  302. package/dist/js/angular/clustermanagement/templates/cluster-configuration/multi-region.html +2 -1
  303. package/dist/js/angular/core/directives/autocomplete/templates/autocomplete.html +1 -1
  304. package/dist/js/angular/core/directives/operations-statuses-monitor/templates/operations-statuses-monitor.html +1 -1
  305. package/dist/js/angular/core/directives/rdfresourcesearch/templates/rdfResourceSearchTemplate.html +1 -1
  306. package/dist/js/angular/core/directives/yasgui-component/templates/yasgui-component.html +1 -1
  307. package/dist/js/angular/core/templates/cookie-policy/cookie-consent.html +1 -1
  308. package/dist/js/angular/core/templates/cookie-policy/cookie-policy.html +1 -1
  309. package/dist/js/angular/import/templates/fileSizeLimitInfo.html +1 -1
  310. package/dist/js/angular/security/templates/user.html +2 -2
  311. package/dist/js/angular/ttyg/templates/agent-list.html +1 -1
  312. package/dist/js/angular/ttyg/templates/agent-select-menu.html +1 -1
  313. package/dist/js/angular/ttyg/templates/chat-item-detail.html +1 -1
  314. package/dist/js/angular/ttyg/templates/chat-list.html +1 -1
  315. package/dist/js/angular/ttyg/templates/chat-panel.html +1 -1
  316. package/dist/js/angular/ttyg/templates/modal/agent-instructions-explain-modal.html +1 -1
  317. package/dist/js/angular/ttyg/templates/modal/agent-settings-modal.html +1 -1
  318. package/dist/js/angular/ttyg/templates/no-agents-view.html +2 -2
  319. package/dist/js/angular/ttyg/templates/ttyg.html +1 -1
  320. package/dist/license-checker.json +2 -2
  321. package/dist/{main.f3d65bbba1196d025a67.bundle.js → main.bf58e480a34744fc7586.bundle.js} +1 -1
  322. package/dist/pages/aclmanagement.html +15 -14
  323. package/dist/pages/autocomplete.html +1 -1
  324. package/dist/pages/choose-repository-type.html +1 -1
  325. package/dist/pages/cluster-management/clusterInfo.html +3 -3
  326. package/dist/pages/create-index.html +1 -1
  327. package/dist/pages/dependencies.html +1 -1
  328. package/dist/pages/domainRangeInfo.html +2 -2
  329. package/dist/pages/edit.html +1 -1
  330. package/dist/pages/explore.html +1 -1
  331. package/dist/pages/export.html +1 -1
  332. package/dist/pages/find.html +1 -1
  333. package/dist/pages/graph-config/saveGraphConfig.html +8 -8
  334. package/dist/pages/graphs-visualizations.html +7 -7
  335. package/dist/pages/guides.html +1 -1
  336. package/dist/pages/import.html +2 -2
  337. package/dist/pages/jdbc-create.html +1 -1
  338. package/dist/pages/monitor/backup-and-restore.html +1 -1
  339. package/dist/pages/monitor/queries.html +1 -1
  340. package/dist/pages/monitor/resources.html +1 -1
  341. package/dist/pages/namespaces.html +2 -2
  342. package/dist/pages/plugins.html +1 -1
  343. package/dist/pages/rdfClassHierarchyInfo.html +7 -7
  344. package/dist/pages/rdfrank.html +2 -2
  345. package/dist/pages/repositories.html +1 -1
  346. package/dist/pages/repository.html +1 -1
  347. package/dist/pages/similarity-indexes.html +1 -1
  348. package/dist/pages/sparql-editor.html +3 -3
  349. package/dist/pages/sparql-template-create.html +1 -1
  350. package/dist/pages/ux-test1.html +2 -2
  351. package/dist/pages/webapi.html +2 -2
  352. package/dist/{polyfills-dom.fb0575ac1c147db1a811.bundle.js → polyfills-dom.07ad95d09eead5ed0798.bundle.js} +1 -1
  353. package/dist/res/swagger5/index.html +12 -12
  354. package/dist/{vendor.c2676bb2d145f8aed2a0.bundle.js → vendor.5fdbbc3c2f956ce0d5b0.bundle.js} +4 -4
  355. package/dist/{vendors~polyfills-core-js.168d234b1f056561696f.bundle.js → vendors~polyfills-core-js.e016374302ce3e1c774e.bundle.js} +1 -1
  356. package/package.json +1 -1
  357. package/dist/126.fb13c3af04bb0f1577cc.bundle.js +0 -1
  358. package/dist/21.5804fc4f2c76826296ea.bundle.js +0 -1
  359. package/dist/221.9ddd6a25f2977a63833b.bundle.js +0 -1
  360. package/dist/23.0ed551f7233a7eecb7d9.bundle.js +0 -3
  361. package/dist/243.684335d32b3e2db71742.bundle.js +0 -1
  362. package/dist/255.20192dfc724463dab127.bundle.js +0 -1
  363. package/dist/263.9313cb2696d2d844849a.bundle.js +0 -1
  364. package/dist/265.ffbab37e1a761ec07b60.bundle.js +0 -1
  365. package/dist/269.8e8d3873f1c7018bedbc.bundle.js +0 -1
  366. package/dist/318.55e49c3e196d797ba501.bundle.js +0 -1
  367. package/dist/347.02ce6e0b6d5c5f809701.bundle.js +0 -1
  368. package/dist/353.e09a678885b9f58b5bfa.bundle.js +0 -1
  369. package/dist/356.3fd23c353a63f5814ef0.bundle.js +0 -1
  370. package/dist/357.4cfa3ac31c756fbea15c.bundle.js +0 -1
  371. package/dist/358.cf91186112fbb9528fb1.bundle.js +0 -1
  372. package/dist/359.8c70e4e004683f761bf6.bundle.js +0 -1
  373. package/dist/360.0b216b42c3b91d8beb75.bundle.js +0 -1
  374. package/dist/390.59af16a17510fb088b23.bundle.js +0 -1
  375. package/dist/402.2ef4344492d68f055819.bundle.js +0 -1
  376. package/dist/403.1d5681bf228979543c7b.bundle.js +0 -1
  377. package/dist/404.e9b5e7705921b8ec0081.bundle.js +0 -1
  378. package/dist/405.f87fbb7fcf93b52d72d7.bundle.js +0 -1
  379. package/dist/406.f4b991230b8c43c64eab.bundle.js +0 -1
  380. package/dist/408.d10880277e9e99f32a49.bundle.js +0 -1
  381. package/dist/409.2fe904fe914dc62950d7.bundle.js +0 -1
  382. package/dist/410.5f8fefeb5ea73ed7f63f.bundle.js +0 -1
  383. package/dist/411.76741a256e08034ede0e.bundle.js +0 -1
  384. package/dist/412.80d2e5441334ac9b28a0.bundle.js +0 -1
  385. package/dist/413.479f974bbd17255bc83f.bundle.js +0 -1
  386. package/dist/42.981459b944d366411351.bundle.js +0 -1
  387. package/dist/43.f97141cf3b00b959acfe.bundle.js +0 -1
  388. package/dist/61.a1919d783086b54de2f4.bundle.js +0 -1
  389. package/dist/72.9b46af75f4baffcb308d.bundle.js +0 -1
  390. package/dist/83.f53e5a2963a770c3b641.bundle.js +0 -1
  391. /package/dist/{127.32f4a1c4a2ed2e324f4d.bundle.js → 127.3e150ab2e0f39ccb0924.bundle.js} +0 -0
@@ -1 +1 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([[50,141,144,192,195,196],{107:function(t,e,s){"use strict";s.r(e),s.d(e,"Location",(function(){return n})),s.d(e,"Node",(function(){return i})),s.d(e,"TopologyStatus",(function(){return r})),s.d(e,"Link",(function(){return o})),s.d(e,"ClusterModel",(function(){return a})),s.d(e,"ClusterViewModel",(function(){return l})),s.d(e,"ClusterItemViewModel",(function(){return d})),s.d(e,"ClusterConfiguration",(function(){return u}));class n{constructor(t,e=null,s=null,n=!1,i=!1){this._endpoint=t,this._rpcAddress=e,this._error=s,this._isAvailable=n,this._isLocal=i}get isLocal(){return this._isLocal}get endpoint(){return this._endpoint}get rpcAddress(){return this._rpcAddress}get error(){return this._error}get isAvailable(){return this._isAvailable}set endpoint(t){this._endpoint=t}set rpcAddress(t){this._rpcAddress=t}set error(t){this._error=t}set isAvailable(t){this._isAvailable=t}set isLocal(t){this._isLocal=t}static fromJSON({endpoint:t,rpcAddress:e,error:s=null,isAvailable:i=!1,isLocal:r=!1}){return new n(t,e,s,i,r)}}class i{constructor(t,e,s,n,i,o,a,l,d){this._address=t,this._nodeState=e,this._term=s,this._syncStatus=n,this._lastLogTerm=i,this._lastLogIndex=o,this._endpoint=a,this._recoveryStatus=l,this._topologyStatus=r.fromJSON(d)}get address(){return this._address}get nodeState(){return this._nodeState}get term(){return this._term}get syncStatus(){return this._syncStatus}get lastLogTerm(){return this._lastLogTerm}get lastLogIndex(){return this._lastLogIndex}get endpoint(){return this._endpoint}get recoveryStatus(){return this._recoveryStatus}set address(t){this._address=t}set nodeState(t){this._nodeState=t}set term(t){this._term=t}set syncStatus(t){this._syncStatus=t}set lastLogTerm(t){this._lastLogTerm=t}set lastLogIndex(t){this._lastLogIndex=t}set endpoint(t){this._endpoint=t}set recoveryStatus(t){this._recoveryStatus=t}get topologyStatus(){return this._topologyStatus}set topologyStatus(t){return this._topologyStatus=t}static fromJSON({address:t,nodeState:e,term:s,syncStatus:n,lastLogTerm:r,lastLogIndex:o,endpoint:a,recoveryStatus:l,topologyStatus:d}){return new i(t,e,s,n,r,o,a,l,d)}}class r{constructor(t,e=new Map,s,n){this._state=t,this._primaryTags=e,this._primaryIndex=s,this._primaryLeader=n}get state(){return this._state}get primaryTags(){return this._primaryTags}get primaryIndex(){return this._primaryIndex}get primaryLeader(){return this._primaryLeader}static fromJSON({state:t,primaryTags:e={},primaryIndex:s,primaryLeader:n}){const i=Object.entries(e);return new r(t,i,s,n)}}class o{constructor(t,e,s,n){this._id=t,this._source=e,this._target=s,this._status=n}static fromJSON({id:t,source:e,target:s,status:n}){return new o(t,e,s,n)}}class a{constructor(t,e,s,n){this._locations=t,this._hasCluster=e,this._nodes=s,this._links=n}get locations(){return this._locations}set locations(t){this._locations=t}get hasCluster(){return this._hasCluster}set hasCluster(t){this._hasCluster=t}get nodes(){return this._nodes}set nodes(t){this._nodes=t}get links(){return this._links}set links(t){this._links=t}static fromJSON(t){const e=t.locations.map(n.fromJSON),s=t.nodes.map(i.fromJSON),r=t.links.map(o.fromJSON);return new a(e,t.hasCluster,s,r)}}class l{constructor(t){this._clusterModel=a.fromJSON(t),this._addToCluster=new Map,this._deleteFromCluster=new Map,this._currentNodesCount=0,this._clusterConfiguration=new u,this._localNodeEndpoint=t.locations.find(t=>t.isLocal).endpoint,this.MINIMUM_NODES_REQUIRED=2}getAttached(){const t=this._clusterModel.nodes.concat(Array.from(this._addToCluster.values()));return this._currentNodesCount=t.filter(t=>!this._deleteFromCluster.has(t.endpoint)).length,t}getViewModel(){let t=0;return this.getAttached().map(e=>{const s=new d(e);return this._deleteFromCluster.has(e.endpoint)?s.isDeleted=!0:s.index=t++,this._localNodeEndpoint===e.endpoint&&(s.isLocal=!0),s})}getAvailable(t=!1){const e=this._clusterModel.nodes;return this._clusterModel.locations.filter(s=>{const n=!this.isPresentInList(e,s.endpoint),i=s.isAvailable,r=!this._addToCluster.has(s.endpoint),o=!!t||!this._deleteFromCluster.has(s.endpoint);return n&&i&&o&&r})}getAvailableNodeEndpoints(){return this.getAvailable().map(t=>t.endpoint)}getLocalNode(){return this._clusterModel.locations.find(t=>t.isLocal)}addToCluster(t){const e=t.endpoint;t.endpoint&&this.addToLocations(t),this._deleteFromCluster.has(e)?this._deleteFromCluster.delete(e):this._addToCluster.set(e,t)}addToLocations(t){const e=c.findIndexByEndpoint(this._clusterModel.locations,t.endpoint);-1===e?this._clusterModel.locations.push(t):this._clusterModel.locations.splice(e,1)}deleteFromCluster(t){const e=t.endpoint;this._addToCluster.has(e)?this._addToCluster.delete(e):this._deleteFromCluster.set(e,t)}getDeleteFromCluster(){return Array.from(this._deleteFromCluster.values())}getUpdateActions(){const t=Array.from(this._addToCluster.values()).map(t=>t.endpoint),e={addNodes:t,removeNodes:Array.from(this._deleteFromCluster.values()).map(t=>t.endpoint)},s=this.updateClusterConfiguration(t);return s&&(e.clusterConfiguration=s),e}updateClusterConfiguration(t){return this.hasCluster()?null:(this._clusterConfiguration.nodes=t,this._clusterConfiguration.toJSON())}getClusterConfiguration(){return this._clusterConfiguration}restoreFromDeletion(t){this._deleteFromCluster.delete(t.endpoint)}isChanged(){return this._addToCluster.size>0||this._deleteFromCluster.size>0}isPresentInList(t,e){return c.isPresentInList(t,e)}findByEndpoint(t,e){return c.findByEndpoint(t,e)}findIndexByEndpoint(t,e){return c.findIndexByEndpoint(t,e)}hasValidNodesCount(){return this._currentNodesCount>=this.MINIMUM_NODES_REQUIRED}canDeleteNode(){const t=Math.floor(this._clusterModel.nodes.length/2);return this._deleteFromCluster.size<t}hasCluster(){return this._clusterModel.hasCluster}}class d{constructor(t){this._item=t,this._endpoint=t.endpoint,this._isDeleted=!1,this._index=void 0,this._isLocal=!1}getEndPoint(){return this._item.endpoint}getAddress(){return void 0!==this._item._address?this._item._address:void 0!==this._item.rpcAddress?this._item.rpcAddress:null}isNode(){return void 0!==this._item._address}isLocation(){return void 0===this._item._address}getNodeState(){return this.isNode()?this._item._nodeState:null}getIsAvailable(){return this.isNode()?null:this._item.isAvailable}getTerm(){return this.isNode()?this._item.term:null}getSyncStatus(){return this.isNode()?this._item.syncStatus:null}getIsLocal(){return this.isNode()?null:this._item.isLocal}get item(){return this._item}get endpoint(){return this._endpoint}set endpoint(t){return this._endpoint=t}get isDeleted(){return this._isDeleted}set isDeleted(t){this._isDeleted=t}get index(){return this._index}set index(t){this._index=t}get isLocal(){return this._isLocal}set isLocal(t){this._isLocal=t}}class u{constructor({electionMinTimeout:t=8e3,electionRangeTimeout:e=6e3,heartbeatInterval:s=2e3,messageSizeKB:n=64,verificationTimeout:i=1500,transactionLogMaximumSizeGB:r=50,batchUpdateInterval:o=5e3,nodes:a=[],secondaryTag:l,primaryNodes:d}={}){this._electionMinTimeout=t,this._electionRangeTimeout=e,this._heartbeatInterval=s,this._messageSizeKB=n,this._verificationTimeout=i,this._transactionLogMaximumSizeGB=r,this._batchUpdateInterval=o,this._nodes=a,this._secondaryTag=l,this._primaryNodes=d}static fromJSON(t){return new u(t)}get electionMinTimeout(){return this._electionMinTimeout}set electionMinTimeout(t){this._electionMinTimeout=t}get electionRangeTimeout(){return this._electionRangeTimeout}set electionRangeTimeout(t){this._electionRangeTimeout=t}get heartbeatInterval(){return this._heartbeatInterval}set heartbeatInterval(t){this._heartbeatInterval=t}get messageSizeKB(){return this._messageSizeKB}set messageSizeKB(t){this._messageSizeKB=t}get verificationTimeout(){return this._verificationTimeout}set verificationTimeout(t){this._verificationTimeout=t}get transactionLogMaximumSizeGB(){return this._transactionLogMaximumSizeGB}set transactionLogMaximumSizeGB(t){this._transactionLogMaximumSizeGB=t}get nodes(){return this._nodes}set nodes(t){this._nodes=t}get batchUpdateInterval(){return this._batchUpdateInterval}set batchUpdateInterval(t){this._batchUpdateInterval=t}get secondaryTag(){return this._secondaryTag}set secondaryTag(t){this._secondaryTag=t}get primaryNodes(){return this._primaryNodes}set primaryNodes(t){this._primaryNodes=t}toJSON(){const t={electionMinTimeout:this._electionMinTimeout,electionRangeTimeout:this._electionRangeTimeout,heartbeatInterval:this._heartbeatInterval,messageSizeKB:this._messageSizeKB,verificationTimeout:this._verificationTimeout,transactionLogMaximumSizeGB:this._transactionLogMaximumSizeGB,batchUpdateInterval:this._batchUpdateInterval,nodes:this._nodes};return void 0!==this._secondaryTag&&(t.secondaryTag=this._secondaryTag),void 0!==this._primaryNodes&&(t.primaryNodes=this._primaryNodes),t}}class c{static isPresentInList(t,e){return t.some(t=>t.endpoint===e)}static findByEndpoint(t,e){return t.find(t=>t.endpoint===e)}static findIndexByEndpoint(t,e){return t.findIndex(t=>t.endpoint===e)}}},135:function(t,e){angular.module("graphdb.framework.core.directives.ascii-validator",[]).directive("asciiValidator",(function(){return{restrict:"A",require:"ngModel",link:function(t,e,s,n){function i(t){const e=/^[\x21-\x7E]*$/.test(t);return n.$setValidity("asciiValidator",e),t}n.$parsers.push(i),n.$formatters.push(i)}}}))},136:function(t,e){angular.module("graphdb.framework.core.directives.length-validator",[]).directive("lengthValidator",(function(){return{restrict:"A",require:"ngModel",link:function(t,e,s,n){function i(t){const e=s.minLength?parseInt(s.minLength,10):0,i=s.maxLength?parseInt(s.maxLength,10):1/0,r=t&&t.length>=e&&t.length<=i;return n.$setValidity("lengthValidator",r),t}n.$parsers.push(i),n.$formatters.push(i)}}}))},160:function(t,e,s){"use strict";s.r(e);s(135),s(136);var n=s(107),i=s(97);const r={minLen:"3",maxLen:"255"};function o(t,e,s,o,a,l,d){return{restrict:"E",templateUrl:"js/angular/clustermanagement/templates/cluster-configuration/multi-region.html",scope:{clusterModel:"=",clusterConfiguration:"="},link:u=>{const c=[];u.topology=void 0,u.TopologyState=i.TopologyState,u.isAdmin=!1,u.addingTag=!1,u.loaderTimeout=void 0,u.secondaryTag=void 0,u.TagLengthConstraints=r,u.add=()=>{u.addingTag=!0},u.cancel=()=>{u.addingTag=!1},u.createTag=t=>{const s={tag:t};return m(!0),l.addCusterTag(s).then(()=>{o.success(e.instant("cluster_management.cluster_configuration_multi_region.created_tag",{tag:t}))}).catch(t=>{const s=getError(t);o.error(s,e.instant("cluster_management.cluster_configuration_multi_region.error.creating"))}).finally(()=>{u.addingTag=!1,m(!1)})},u.deleteTag=t=>{a.openSimpleModal({title:e.instant("cluster_management.cluster_configuration_multi_region.confirm.delete",{tag:t}),message:e.instant("cluster_management.cluster_configuration_multi_region.confirm.warning"),warning:!0,backdrop:"static",stopPropagation:!0}).result.then(()=>(m(!0),l.deleteClusterTag(t))).then(()=>o.success(e.instant("cluster_management.cluster_configuration_multi_region.deleted_tag",{tag:t}))).catch(t=>{if("cancel"===t||"escape key press"===t)return;const s=getError(t);o.error(s,e.instant("cluster_management.cluster_configuration_multi_region.error.deleting"))}).finally(()=>m(!1))},u.enableSecondaryMode=()=>{u.addingTag=!1;const t={title:e.instant("cluster_management.cluster_configuration_multi_region.confirm.enable_secondary"),message:e.instant("cluster_management.cluster_configuration_multi_region.confirm.enable_secondary_warning"),warning:!0,backdrop:"static",confirmButtonKey:"common.ok.btn",stopPropagation:!0};a.openSimpleModal(t).result.then(()=>_()).then(t=>(m(!0),l.enableSecondaryMode(t))).then(()=>o.success(e.instant("cluster_management.cluster_configuration_multi_region.secondary_enabled"))).catch(t=>{if("cancel"===t||"escape key press"===t)return;const s=getError(t);o.error(s,e.instant("cluster_management.cluster_configuration_multi_region.error.secondary"))}).finally(()=>m(!1))},u.disableSecondaryMode=()=>{a.openSimpleModal({title:e.instant("cluster_management.cluster_configuration_multi_region.confirm.disable_secondary_mode"),message:e.instant("cluster_management.cluster_configuration_multi_region.confirm.disable_secondary_mode_warning"),warning:!0,backdrop:"static",stopPropagation:!0}).result.then(()=>(m(!0),l.disableSecondaryMode())).then(()=>o.success(e.instant("cluster_management.cluster_configuration_multi_region.disabled_secondary_mode"))).catch(t=>{if("cancel"===t||"escape key press"===t)return;const s=getError(t);o.error(s,e.instant("cluster_management.cluster_configuration_multi_region.error.disabling"))}).finally(()=>m(!1))};const _=()=>{const t={title:e.instant("cluster_management.cluster_configuration_multi_region.secondary_cluster_settings"),templateUrl:"js/angular/clustermanagement/templates/modal/secondary-mode-modal.html",controller:["$scope","$uibModalInstance","config",function(t,e,s){t.rpcAddress="",t.tag="",t.title=s.title,t.onClick=t=>t.stopPropagation(),t.ok=()=>{e.close({primaryNode:t.rpcAddress,tag:t.tag})},t.cancel=()=>{e.dismiss("cancel")}}],size:"lg",warning:!0,backdrop:"static"};return a.openCustomModal(t).result},g=t=>{m(!0),l.getClusterConfig().then(e=>{u.secondaryTag=n.ClusterConfiguration.fromJSON(e.data).secondaryTag,(t=>{const e=t.nodes.find(t=>t.nodeState===i.NodeState.LEADER);u.topology=e.topologyStatus})(n.ClusterModel.fromJSON(t))}).catch(t=>{const s=getError(t);o.error(s,e.instant("cluster_management.cluster_configuration_multi_region.error.disabling"))}).finally(()=>m(!1))},h=t=>{t||(u.addingTag=!1)},m=(t,e)=>{s.cancel(u.loaderTimeout),t?(u.loaderMessage=e,u.loaderTimeout=s(()=>{u.loader=t},150)):u.loader=!1};u.$on("$destroy",(function(){c.forEach(t=>t())}));u.isAdmin=t.isAuthenticated()&&t.isAdmin(),c.push(u.$watch("clusterModel",(function(t,e){t!==e&&g(t)}),!0)),c.push(d.onShowClusterConfigurationPanel(h)),g(u.clusterModel)}}}angular.module("graphdb.framework.clustermanagement.directives.cluster-configuration.multi-region",["graphdb.framework.core.directives.ascii-validator","graphdb.framework.core.directives.length-validator"]).directive("multiRegion",o),o.$inject=["$jwtAuth","$translate","$timeout","toastr","ModalService","ClusterRestService","ClusterViewContextService"]},97:function(t,e,s){"use strict";s.r(e),s.d(e,"NodeState",(function(){return n})),s.d(e,"RecoveryState",(function(){return i})),s.d(e,"LinkState",(function(){return r})),s.d(e,"TopologyState",(function(){return o}));const n={LEADER:"LEADER",FOLLOWER:"FOLLOWER",CANDIDATE:"CANDIDATE",OUT_OF_SYNC:"OUT_OF_SYNC",NO_CONNECTION:"NO_CONNECTION",READ_ONLY:"READ_ONLY",RESTRICTED:"RESTRICTED",NO_CLUSTER:"NO_CLUSTER"},i={SEARCHING_FOR_NODE:"SEARCHING_FOR_NODE",WAITING_FOR_SNAPSHOT:"WAITING_FOR_SNAPSHOT",RECEIVING_SNAPSHOT:"RECEIVING_SNAPSHOT",APPLYING_SNAPSHOT:"APPLYING_SNAPSHOT",BUILDING_SNAPSHOT:"BUILDING_SNAPSHOT",SENDING_SNAPSHOT:"SENDING_SNAPSHOT",RECOVERY_OPERATION_FAILURE_WARNING:"RECOVERY_OPERATION_FAILURE_WARNING"},r={IN_SYNC:"IN_SYNC",OUT_OF_SYNC:"OUT_OF_SYNC",SYNCING:"SYNCING",NO_CONNECTION:"NO_CONNECTION",RECEIVING_SNAPSHOT:"RECEIVING_SNAPSHOT"},o={PRIMARY_NODE:"PRIMARY_NODE",SECONDARY_NODE:"SECONDARY_NODE"}}}]);
1
+ (window.webpackJsonp=window.webpackJsonp||[]).push([[50,141,144,192,195,196],{107:function(t,e,s){"use strict";s.r(e),s.d(e,"Location",(function(){return n})),s.d(e,"Node",(function(){return i})),s.d(e,"TopologyStatus",(function(){return r})),s.d(e,"Link",(function(){return o})),s.d(e,"ClusterModel",(function(){return a})),s.d(e,"ClusterViewModel",(function(){return l})),s.d(e,"ClusterItemViewModel",(function(){return d})),s.d(e,"ClusterConfiguration",(function(){return u}));class n{constructor(t,e=null,s=null,n=!1,i=!1){this._endpoint=t,this._rpcAddress=e,this._error=s,this._isAvailable=n,this._isLocal=i}get isLocal(){return this._isLocal}get endpoint(){return this._endpoint}get rpcAddress(){return this._rpcAddress}get error(){return this._error}get isAvailable(){return this._isAvailable}set endpoint(t){this._endpoint=t}set rpcAddress(t){this._rpcAddress=t}set error(t){this._error=t}set isAvailable(t){this._isAvailable=t}set isLocal(t){this._isLocal=t}static fromJSON({endpoint:t,rpcAddress:e,error:s=null,isAvailable:i=!1,isLocal:r=!1}){return new n(t,e,s,i,r)}}class i{constructor(t,e,s,n,i,o,a,l,d){this._address=t,this._nodeState=e,this._term=s,this._syncStatus=n,this._lastLogTerm=i,this._lastLogIndex=o,this._endpoint=a,this._recoveryStatus=l,this._topologyStatus=r.fromJSON(d)}get address(){return this._address}get nodeState(){return this._nodeState}get term(){return this._term}get syncStatus(){return this._syncStatus}get lastLogTerm(){return this._lastLogTerm}get lastLogIndex(){return this._lastLogIndex}get endpoint(){return this._endpoint}get recoveryStatus(){return this._recoveryStatus}set address(t){this._address=t}set nodeState(t){this._nodeState=t}set term(t){this._term=t}set syncStatus(t){this._syncStatus=t}set lastLogTerm(t){this._lastLogTerm=t}set lastLogIndex(t){this._lastLogIndex=t}set endpoint(t){this._endpoint=t}set recoveryStatus(t){this._recoveryStatus=t}get topologyStatus(){return this._topologyStatus}set topologyStatus(t){return this._topologyStatus=t}static fromJSON({address:t,nodeState:e,term:s,syncStatus:n,lastLogTerm:r,lastLogIndex:o,endpoint:a,recoveryStatus:l,topologyStatus:d}){return new i(t,e,s,n,r,o,a,l,d)}}class r{constructor(t,e=new Map,s,n){this._state=t,this._primaryTags=e,this._primaryIndex=s,this._primaryLeader=n}get state(){return this._state}get primaryTags(){return this._primaryTags}get primaryIndex(){return this._primaryIndex}get primaryLeader(){return this._primaryLeader}static fromJSON({state:t,primaryTags:e={},primaryIndex:s,primaryLeader:n}){const i=Object.entries(e);return new r(t,i,s,n)}}class o{constructor(t,e,s,n){this._id=t,this._source=e,this._target=s,this._status=n}static fromJSON({id:t,source:e,target:s,status:n}){return new o(t,e,s,n)}}class a{constructor(t,e,s,n){this._locations=t,this._hasCluster=e,this._nodes=s,this._links=n}get locations(){return this._locations}set locations(t){this._locations=t}get hasCluster(){return this._hasCluster}set hasCluster(t){this._hasCluster=t}get nodes(){return this._nodes}set nodes(t){this._nodes=t}get links(){return this._links}set links(t){this._links=t}static fromJSON(t){const e=t.locations.map(n.fromJSON),s=t.nodes.map(i.fromJSON),r=t.links.map(o.fromJSON);return new a(e,t.hasCluster,s,r)}}class l{constructor(t){this._clusterModel=a.fromJSON(t),this._addToCluster=new Map,this._deleteFromCluster=new Map,this._currentNodesCount=0,this._clusterConfiguration=new u,this._localNodeEndpoint=t.locations.find(t=>t.isLocal).endpoint,this.MINIMUM_NODES_REQUIRED=2}getAttached(){const t=this._clusterModel.nodes.concat(Array.from(this._addToCluster.values()));return this._currentNodesCount=t.filter(t=>!this._deleteFromCluster.has(t.endpoint)).length,t}getViewModel(){let t=0;return this.getAttached().map(e=>{const s=new d(e);return this._deleteFromCluster.has(e.endpoint)?s.isDeleted=!0:s.index=t++,this._localNodeEndpoint===e.endpoint&&(s.isLocal=!0),s})}getAvailable(t=!1){const e=this._clusterModel.nodes;return this._clusterModel.locations.filter(s=>{const n=!this.isPresentInList(e,s.endpoint),i=s.isAvailable,r=!this._addToCluster.has(s.endpoint),o=!!t||!this._deleteFromCluster.has(s.endpoint);return n&&i&&o&&r})}getAvailableNodeEndpoints(){return this.getAvailable().map(t=>t.endpoint)}getLocalNode(){return this._clusterModel.locations.find(t=>t.isLocal)}addToCluster(t){const e=t.endpoint;t.endpoint&&this.addToLocations(t),this._deleteFromCluster.has(e)?this._deleteFromCluster.delete(e):this._addToCluster.set(e,t)}addToLocations(t){const e=c.findIndexByEndpoint(this._clusterModel.locations,t.endpoint);-1===e?this._clusterModel.locations.push(t):this._clusterModel.locations.splice(e,1)}deleteFromCluster(t){const e=t.endpoint;this._addToCluster.has(e)?this._addToCluster.delete(e):this._deleteFromCluster.set(e,t)}getDeleteFromCluster(){return Array.from(this._deleteFromCluster.values())}getUpdateActions(){const t=Array.from(this._addToCluster.values()).map(t=>t.endpoint),e={addNodes:t,removeNodes:Array.from(this._deleteFromCluster.values()).map(t=>t.endpoint)},s=this.updateClusterConfiguration(t);return s&&(e.clusterConfiguration=s),e}updateClusterConfiguration(t){return this.hasCluster()?null:(this._clusterConfiguration.nodes=t,this._clusterConfiguration.toJSON())}getClusterConfiguration(){return this._clusterConfiguration}restoreFromDeletion(t){this._deleteFromCluster.delete(t.endpoint)}isChanged(){return this._addToCluster.size>0||this._deleteFromCluster.size>0}isPresentInList(t,e){return c.isPresentInList(t,e)}findByEndpoint(t,e){return c.findByEndpoint(t,e)}findIndexByEndpoint(t,e){return c.findIndexByEndpoint(t,e)}hasValidNodesCount(){return this._currentNodesCount>=this.MINIMUM_NODES_REQUIRED}canDeleteNode(){const t=Math.floor(this._clusterModel.nodes.length/2);return this._deleteFromCluster.size<t}hasCluster(){return this._clusterModel.hasCluster}}class d{constructor(t){this._item=t,this._endpoint=t.endpoint,this._isDeleted=!1,this._index=void 0,this._isLocal=!1}getEndPoint(){return this._item.endpoint}getAddress(){return void 0!==this._item._address?this._item._address:void 0!==this._item.rpcAddress?this._item.rpcAddress:null}isNode(){return void 0!==this._item._address}isLocation(){return void 0===this._item._address}getNodeState(){return this.isNode()?this._item._nodeState:null}getIsAvailable(){return this.isNode()?null:this._item.isAvailable}getTerm(){return this.isNode()?this._item.term:null}getSyncStatus(){return this.isNode()?this._item.syncStatus:null}getIsLocal(){return this.isNode()?null:this._item.isLocal}get item(){return this._item}get endpoint(){return this._endpoint}set endpoint(t){return this._endpoint=t}get isDeleted(){return this._isDeleted}set isDeleted(t){this._isDeleted=t}get index(){return this._index}set index(t){this._index=t}get isLocal(){return this._isLocal}set isLocal(t){this._isLocal=t}}class u{constructor({electionMinTimeout:t=8e3,electionRangeTimeout:e=6e3,heartbeatInterval:s=2e3,messageSizeKB:n=64,verificationTimeout:i=1500,transactionLogMaximumSizeGB:r=50,batchUpdateInterval:o=5e3,nodes:a=[],secondaryTag:l,primaryNodes:d}={}){this._electionMinTimeout=t,this._electionRangeTimeout=e,this._heartbeatInterval=s,this._messageSizeKB=n,this._verificationTimeout=i,this._transactionLogMaximumSizeGB=r,this._batchUpdateInterval=o,this._nodes=a,this._secondaryTag=l,this._primaryNodes=d}static fromJSON(t){return new u(t)}get electionMinTimeout(){return this._electionMinTimeout}set electionMinTimeout(t){this._electionMinTimeout=t}get electionRangeTimeout(){return this._electionRangeTimeout}set electionRangeTimeout(t){this._electionRangeTimeout=t}get heartbeatInterval(){return this._heartbeatInterval}set heartbeatInterval(t){this._heartbeatInterval=t}get messageSizeKB(){return this._messageSizeKB}set messageSizeKB(t){this._messageSizeKB=t}get verificationTimeout(){return this._verificationTimeout}set verificationTimeout(t){this._verificationTimeout=t}get transactionLogMaximumSizeGB(){return this._transactionLogMaximumSizeGB}set transactionLogMaximumSizeGB(t){this._transactionLogMaximumSizeGB=t}get nodes(){return this._nodes}set nodes(t){this._nodes=t}get batchUpdateInterval(){return this._batchUpdateInterval}set batchUpdateInterval(t){this._batchUpdateInterval=t}get secondaryTag(){return this._secondaryTag}set secondaryTag(t){this._secondaryTag=t}get primaryNodes(){return this._primaryNodes}set primaryNodes(t){this._primaryNodes=t}toJSON(){const t={electionMinTimeout:this._electionMinTimeout,electionRangeTimeout:this._electionRangeTimeout,heartbeatInterval:this._heartbeatInterval,messageSizeKB:this._messageSizeKB,verificationTimeout:this._verificationTimeout,transactionLogMaximumSizeGB:this._transactionLogMaximumSizeGB,batchUpdateInterval:this._batchUpdateInterval,nodes:this._nodes};return void 0!==this._secondaryTag&&(t.secondaryTag=this._secondaryTag),void 0!==this._primaryNodes&&(t.primaryNodes=this._primaryNodes),t}}class c{static isPresentInList(t,e){return t.some(t=>t.endpoint===e)}static findByEndpoint(t,e){return t.find(t=>t.endpoint===e)}static findIndexByEndpoint(t,e){return t.findIndex(t=>t.endpoint===e)}}},135:function(t,e){angular.module("graphdb.framework.core.directives.ascii-validator",[]).directive("asciiValidator",(function(){return{restrict:"A",require:"ngModel",link:function(t,e,s,n){function i(t){const e=/^[\x21-\x7E]*$/.test(t);return n.$setValidity("asciiValidator",e),t}n.$parsers.push(i),n.$formatters.push(i)}}}))},136:function(t,e){angular.module("graphdb.framework.core.directives.length-validator",[]).directive("lengthValidator",(function(){return{restrict:"A",require:"ngModel",link:function(t,e,s,n){function i(t){const e=s.minLength?parseInt(s.minLength,10):0,i=s.maxLength?parseInt(s.maxLength,10):1/0,r=t&&t.length>=e&&t.length<=i;return n.$setValidity("lengthValidator",r),t}n.$parsers.push(i),n.$formatters.push(i)}}}))},159:function(t,e,s){"use strict";s.r(e);s(135),s(136);var n=s(107),i=s(97);const r={minLen:"3",maxLen:"255"};function o(t,e,s,o,a,l,d){return{restrict:"E",templateUrl:"js/angular/clustermanagement/templates/cluster-configuration/multi-region.html",scope:{clusterModel:"=",clusterConfiguration:"="},link:u=>{const c=[];u.topology=void 0,u.TopologyState=i.TopologyState,u.isAdmin=!1,u.addingTag=!1,u.loaderTimeout=void 0,u.secondaryTag=void 0,u.TagLengthConstraints=r,u.add=()=>{u.addingTag=!0},u.cancel=()=>{u.addingTag=!1},u.createTag=t=>{const s={tag:t};return m(!0),l.addCusterTag(s).then(()=>{o.success(e.instant("cluster_management.cluster_configuration_multi_region.created_tag",{tag:t}))}).catch(t=>{const s=getError(t);o.error(s,e.instant("cluster_management.cluster_configuration_multi_region.error.creating"))}).finally(()=>{u.addingTag=!1,m(!1)})},u.deleteTag=t=>{a.openSimpleModal({title:e.instant("cluster_management.cluster_configuration_multi_region.confirm.delete",{tag:t}),message:e.instant("cluster_management.cluster_configuration_multi_region.confirm.warning"),warning:!0,backdrop:"static",stopPropagation:!0}).result.then(()=>(m(!0),l.deleteClusterTag(t))).then(()=>o.success(e.instant("cluster_management.cluster_configuration_multi_region.deleted_tag",{tag:t}))).catch(t=>{if("cancel"===t||"escape key press"===t)return;const s=getError(t);o.error(s,e.instant("cluster_management.cluster_configuration_multi_region.error.deleting"))}).finally(()=>m(!1))},u.enableSecondaryMode=()=>{u.addingTag=!1;const t={title:e.instant("cluster_management.cluster_configuration_multi_region.confirm.enable_secondary"),message:e.instant("cluster_management.cluster_configuration_multi_region.confirm.enable_secondary_warning"),warning:!0,backdrop:"static",confirmButtonKey:"common.ok.btn",stopPropagation:!0};a.openSimpleModal(t).result.then(()=>_()).then(t=>(m(!0),l.enableSecondaryMode(t))).then(()=>o.success(e.instant("cluster_management.cluster_configuration_multi_region.secondary_enabled"))).catch(t=>{if("cancel"===t||"escape key press"===t)return;const s=getError(t);o.error(s,e.instant("cluster_management.cluster_configuration_multi_region.error.secondary"))}).finally(()=>m(!1))},u.disableSecondaryMode=()=>{a.openSimpleModal({title:e.instant("cluster_management.cluster_configuration_multi_region.confirm.disable_secondary_mode"),message:e.instant("cluster_management.cluster_configuration_multi_region.confirm.disable_secondary_mode_warning"),warning:!0,backdrop:"static",stopPropagation:!0}).result.then(()=>(m(!0),l.disableSecondaryMode())).then(()=>o.success(e.instant("cluster_management.cluster_configuration_multi_region.disabled_secondary_mode"))).catch(t=>{if("cancel"===t||"escape key press"===t)return;const s=getError(t);o.error(s,e.instant("cluster_management.cluster_configuration_multi_region.error.disabling"))}).finally(()=>m(!1))};const _=()=>{const t={title:e.instant("cluster_management.cluster_configuration_multi_region.secondary_cluster_settings"),templateUrl:"js/angular/clustermanagement/templates/modal/secondary-mode-modal.html",controller:["$scope","$uibModalInstance","config",function(t,e,s){t.rpcAddress="",t.tag="",t.title=s.title,t.onClick=t=>t.stopPropagation(),t.ok=()=>{e.close({primaryNode:t.rpcAddress,tag:t.tag})},t.cancel=()=>{e.dismiss("cancel")}}],size:"lg",warning:!0,backdrop:"static"};return a.openCustomModal(t).result},g=t=>{m(!0),l.getClusterConfig().then(e=>{u.secondaryTag=n.ClusterConfiguration.fromJSON(e.data).secondaryTag,(t=>{const e=t.nodes.find(t=>t.nodeState===i.NodeState.LEADER);u.topology=e.topologyStatus})(n.ClusterModel.fromJSON(t))}).catch(t=>{const s=getError(t);o.error(s,e.instant("cluster_management.cluster_configuration_multi_region.error.disabling"))}).finally(()=>m(!1))},h=t=>{t||(u.addingTag=!1)},m=(t,e)=>{s.cancel(u.loaderTimeout),t?(u.loaderMessage=e,u.loaderTimeout=s(()=>{u.loader=t},150)):u.loader=!1};u.$on("$destroy",(function(){c.forEach(t=>t())}));u.isAdmin=t.isAuthenticated()&&t.isAdmin(),c.push(u.$watch("clusterModel",(function(t,e){t!==e&&g(t)}),!0)),c.push(d.onShowClusterConfigurationPanel(h)),g(u.clusterModel)}}}angular.module("graphdb.framework.clustermanagement.directives.cluster-configuration.multi-region",["graphdb.framework.core.directives.ascii-validator","graphdb.framework.core.directives.length-validator"]).directive("multiRegion",o),o.$inject=["$jwtAuth","$translate","$timeout","toastr","ModalService","ClusterRestService","ClusterViewContextService"]},97:function(t,e,s){"use strict";s.r(e),s.d(e,"NodeState",(function(){return n})),s.d(e,"RecoveryState",(function(){return i})),s.d(e,"LinkState",(function(){return r})),s.d(e,"TopologyState",(function(){return o}));const n={LEADER:"LEADER",FOLLOWER:"FOLLOWER",CANDIDATE:"CANDIDATE",OUT_OF_SYNC:"OUT_OF_SYNC",NO_CONNECTION:"NO_CONNECTION",READ_ONLY:"READ_ONLY",RESTRICTED:"RESTRICTED",NO_CLUSTER:"NO_CLUSTER"},i={SEARCHING_FOR_NODE:"SEARCHING_FOR_NODE",WAITING_FOR_SNAPSHOT:"WAITING_FOR_SNAPSHOT",RECEIVING_SNAPSHOT:"RECEIVING_SNAPSHOT",APPLYING_SNAPSHOT:"APPLYING_SNAPSHOT",BUILDING_SNAPSHOT:"BUILDING_SNAPSHOT",SENDING_SNAPSHOT:"SENDING_SNAPSHOT",RECOVERY_OPERATION_FAILURE_WARNING:"RECOVERY_OPERATION_FAILURE_WARNING"},r={IN_SYNC:"IN_SYNC",OUT_OF_SYNC:"OUT_OF_SYNC",SYNCING:"SYNCING",NO_CONNECTION:"NO_CONNECTION",RECEIVING_SNAPSHOT:"RECEIVING_SNAPSHOT"},o={PRIMARY_NODE:"PRIMARY_NODE",SECONDARY_NODE:"SECONDARY_NODE"}}}]);
@@ -1 +1 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([[52,96,205,206,208,328],{100:function(e,t,n){"use strict";n.r(t),n.d(t,"removeSpecialChars",(function(){return r})),n.d(t,"toBoolean",(function(){return c})),n.d(t,"toTitleCase",(function(){return s}));var o=n(18);const r=e=>e.replace(/[()']/g,""),c=e=>"string"==typeof e?"true"===e:Boolean(e),s=e=>e?Object(o.upperFirst)(e.toLowerCase()):e},112:function(e,t,n){"use strict";n.r(t),n.d(t,"ImportResourceType",(function(){return o}));const o={DIRECTORY:"directory",FILE:"file",URL:"url",TEXT:"text"}},116:function(e,t,n){"use strict";n.r(t),n.d(t,"TABS",(function(){return c}));var o=n(18),r=n(90);const c={USER:"user",SERVER:"server"};function s(e){let t=c.USER,n=[],s=[],u=[],i=!0,d=[];return{updateActiveTabId:function(n){t=n,e.emitSync("activeTabIdUpdated",f())},getActiveTabId:f,onActiveTabIdUpdated:function(t){return e.subscribeSync("activeTabIdUpdated",e=>t(e))},getFiles:R,addFile:function(t){const n=R();n.push(t),l(n),e.emitSync("fileAdded",Object(o.cloneDeep)(t))},updateFiles:l,onFilesUpdated:function(t){return e.subscribeSync("filesUpdated",e=>t(e))},getImportedResources:m,updateImportedResources:function(t){n=t,e.emitSync("importedResourcesUpdated",m()),e.emitSync("resourcesUpdated",U())},onImportedResourcesUpdated:function(t){return e.subscribeSync("importedResourcesUpdated",e=>t(e))},getResources:U,onResourcesUpdated:function(t){return e.subscribeSync("resourcesUpdated",e=>t(e))},updateShowLoader:function(t){i=t,e.emitSync("showLoaderUpdated",p())},getShowLoader:p,onShowLoaderUpdated:function(t){return e.subscribeSync("showLoaderUpdated",e=>t(e))},updateSelectedFilesNames:function(t){d=Object(o.cloneDeep)(t),e.emitSync("selectedFilesNamesUpdated",a())},getSelectedFilesNames:a,onSelectedFilesNamesUpdated:function(t){return e.subscribeSync("selectedFilesNamesUpdated",e=>t(e))},updateResourceForUpload:function(e){const t=O(),n=t.find(({name:t})=>t===e.name);n?Object.assign(n,e):t.push(e);E(t)},getResourceForUpload:function(e){return Object(o.cloneDeep)(s.find(({name:t})=>t===e))},updateResourcesForUpload:E,getResourcesForUpload:O,onResourcesForUploadChanged:function(t){return e.subscribeSync("resourcesForUploadChanged",e=>t(e))}};function a(){return Object(o.cloneDeep)(d)}function p(){return i}function f(){return t}function l(t){u=Object(o.cloneDeep)(t),e.emitSync("filesUpdated",R())}function R(){return Object(o.cloneDeep)(u)}function m(){return Object(o.cloneDeep)(n)||[]}function U(){const e=m();let t=O();const n=[],o=[];return e.forEach(({name:e})=>{const c=t.find(({name:t})=>t===e);c&&(c.status===r.ImportResourceStatus.UPLOADED?n.push(c):o.push(c))}),n.length>0&&(t=t.filter(({name:e})=>!n.some(({name:t})=>t===e)),E(t,!1)),e.filter(({name:e})=>!o.some(t=>e===t)).concat(t)}function E(t,n=!0){s=Object(o.cloneDeep)(t),e.emitSync("resourcesForUploadChanged",O()),n&&e.emitSync("resourcesUpdated",U())}function O(){return Object(o.cloneDeep)(s)||[]}}angular.module("graphdb.framework.import.services.importcontext",[]).factory("ImportContextService",s),s.$inject=["EventEmitterService"]},179:function(e,t,n){"use strict";n.r(t),n.d(t,"SortingType",(function(){return o}));const o={NAME:"NAME",SIZE:"SIZE",MODIFIED:"MODIFIED",IMPORTED:"IMPORTED",CONTEXT:"CONTEXT"}},90:function(e,t,n){"use strict";n.r(t),n.d(t,"ImportResourceStatus",(function(){return o}));const o={NONE:"NONE",UPLOADING:"UPLOADING",UPLOAD_ERROR:"UPLOAD_ERROR",UPLOADED:"UPLOADED",PENDING:"PENDING",IMPORTING:"IMPORTING",DONE:"DONE",ERROR:"ERROR",INTERRUPTING:"INTERRUPTING"}}}]);
1
+ (window.webpackJsonp=window.webpackJsonp||[]).push([[52,96,205,206,208,329],{100:function(e,t,n){"use strict";n.r(t),n.d(t,"removeSpecialChars",(function(){return r})),n.d(t,"toBoolean",(function(){return c})),n.d(t,"toTitleCase",(function(){return s}));var o=n(18);const r=e=>e.replace(/[()']/g,""),c=e=>"string"==typeof e?"true"===e:Boolean(e),s=e=>e?Object(o.upperFirst)(e.toLowerCase()):e},112:function(e,t,n){"use strict";n.r(t),n.d(t,"ImportResourceType",(function(){return o}));const o={DIRECTORY:"directory",FILE:"file",URL:"url",TEXT:"text"}},116:function(e,t,n){"use strict";n.r(t),n.d(t,"TABS",(function(){return c}));var o=n(18),r=n(90);const c={USER:"user",SERVER:"server"};function s(e){let t=c.USER,n=[],s=[],u=[],i=!0,d=[];return{updateActiveTabId:function(n){t=n,e.emitSync("activeTabIdUpdated",f())},getActiveTabId:f,onActiveTabIdUpdated:function(t){return e.subscribeSync("activeTabIdUpdated",e=>t(e))},getFiles:R,addFile:function(t){const n=R();n.push(t),l(n),e.emitSync("fileAdded",Object(o.cloneDeep)(t))},updateFiles:l,onFilesUpdated:function(t){return e.subscribeSync("filesUpdated",e=>t(e))},getImportedResources:m,updateImportedResources:function(t){n=t,e.emitSync("importedResourcesUpdated",m()),e.emitSync("resourcesUpdated",U())},onImportedResourcesUpdated:function(t){return e.subscribeSync("importedResourcesUpdated",e=>t(e))},getResources:U,onResourcesUpdated:function(t){return e.subscribeSync("resourcesUpdated",e=>t(e))},updateShowLoader:function(t){i=t,e.emitSync("showLoaderUpdated",p())},getShowLoader:p,onShowLoaderUpdated:function(t){return e.subscribeSync("showLoaderUpdated",e=>t(e))},updateSelectedFilesNames:function(t){d=Object(o.cloneDeep)(t),e.emitSync("selectedFilesNamesUpdated",a())},getSelectedFilesNames:a,onSelectedFilesNamesUpdated:function(t){return e.subscribeSync("selectedFilesNamesUpdated",e=>t(e))},updateResourceForUpload:function(e){const t=O(),n=t.find(({name:t})=>t===e.name);n?Object.assign(n,e):t.push(e);E(t)},getResourceForUpload:function(e){return Object(o.cloneDeep)(s.find(({name:t})=>t===e))},updateResourcesForUpload:E,getResourcesForUpload:O,onResourcesForUploadChanged:function(t){return e.subscribeSync("resourcesForUploadChanged",e=>t(e))}};function a(){return Object(o.cloneDeep)(d)}function p(){return i}function f(){return t}function l(t){u=Object(o.cloneDeep)(t),e.emitSync("filesUpdated",R())}function R(){return Object(o.cloneDeep)(u)}function m(){return Object(o.cloneDeep)(n)||[]}function U(){const e=m();let t=O();const n=[],o=[];return e.forEach(({name:e})=>{const c=t.find(({name:t})=>t===e);c&&(c.status===r.ImportResourceStatus.UPLOADED?n.push(c):o.push(c))}),n.length>0&&(t=t.filter(({name:e})=>!n.some(({name:t})=>t===e)),E(t,!1)),e.filter(({name:e})=>!o.some(t=>e===t)).concat(t)}function E(t,n=!0){s=Object(o.cloneDeep)(t),e.emitSync("resourcesForUploadChanged",O()),n&&e.emitSync("resourcesUpdated",U())}function O(){return Object(o.cloneDeep)(s)||[]}}angular.module("graphdb.framework.import.services.importcontext",[]).factory("ImportContextService",s),s.$inject=["EventEmitterService"]},178:function(e,t,n){"use strict";n.r(t),n.d(t,"SortingType",(function(){return o}));const o={NAME:"NAME",SIZE:"SIZE",MODIFIED:"MODIFIED",IMPORTED:"IMPORTED",CONTEXT:"CONTEXT"}},90:function(e,t,n){"use strict";n.r(t),n.d(t,"ImportResourceStatus",(function(){return o}));const o={NONE:"NONE",UPLOADING:"UPLOADING",UPLOAD_ERROR:"UPLOAD_ERROR",UPLOADED:"UPLOADED",PENDING:"PENDING",IMPORTING:"IMPORTING",DONE:"DONE",ERROR:"ERROR",INTERRUPTING:"INTERRUPTING"}}}]);
@@ -1 +1 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([[53,64,203,205,206],{112:function(e,t,s){"use strict";s.r(t),s.d(t,"ImportResourceType",(function(){return r}));const r={DIRECTORY:"directory",FILE:"file",URL:"url",TEXT:"text"}},145:function(e,t,s){"use strict";s.r(t),s.d(t,"ImportParsingSettings",(function(){return r}));class r{constructor(){this.contextLink=void 0,this.preserveBNodeIds=!1,this.failOnUnknownDataTypes=!1,this.verifyDataTypeValues=!1,this.normalizeDataTypeValues=!1,this.failOnUnknownLanguageTags=!1,this.verifyLanguageTags=!1,this.normalizeLanguageTags=!1,this.stopOnError=!0}}},178:function(e,t,s){"use strict";s.r(t),s.d(t,"ImportResource",(function(){return n}));var r=s(90),i=s(145),o=s(112);class n{constructor(e,t){this.hash=t(JSON.stringify(e)),this.name=e?e.name:void 0,this.status=e?e.status:r.ImportResourceStatus.NONE,this.message=e&&e.message?e.message:"",this.context=e&&e.context?e.context:"",this.replaceGraphs=e?e.replaceGraphs:[],this.baseURI=e?e.baseURI:void 0,this.forceSerial=!!e&&e.forceSerial,this.type=e?e.type:void 0,this.format=e?e.format:void 0,this.data=e?e.data:void 0,this.modifiedOn=e?e.lastModified:void 0,this.importedOn=e?e.imported:void 0,this.size=e?e.size:"",this.addedStatements=e?e.addedStatements:0,this.removedStatements=e?e.removedStatements:0,this.numReplacedGraphs=e?e.numReplacedGraphs:0,this.parserSettings=e?e.parserSettings:new i.ImportParsingSettings,this.requestIdHeadersToForward=e?e.requestIdHeadersToForward:void 0}isDirectory(){return o.ImportResourceType.DIRECTORY===this.type}isFile(){return o.ImportResourceType.FILE===this.type||o.ImportResourceType.URL===this.type||o.ImportResourceType.TEXT===this.type}isURL(){return o.ImportResourceType.URL===this.type}isText(){return o.ImportResourceType.TEXT===this.type}}},275:function(e,t,s){"use strict";s.r(t),s.d(t,"toImportResource",(function(){return o})),s.d(t,"fileToImportResource",(function(){return n})),s.d(t,"filesToImportResource",(function(){return a}));var r=s(178),i=s(20);const o=e=>{const t=Object(i.md5HashGenerator)();return e.map(e=>new r.ImportResource(e,t))},n=e=>{const t=Object(i.md5HashGenerator)();return new r.ImportResource({name:e.name,size:e.size,type:"file",modifiedOn:e.lastModified,file:e},t)},a=(e,t)=>{const s=Object(i.md5HashGenerator)();return e.map(e=>new r.ImportResource({name:e.name,size:e.size,type:"file",modifiedOn:void 0,file:e,status:t},s))}},90:function(e,t,s){"use strict";s.r(t),s.d(t,"ImportResourceStatus",(function(){return r}));const r={NONE:"NONE",UPLOADING:"UPLOADING",UPLOAD_ERROR:"UPLOAD_ERROR",UPLOADED:"UPLOADED",PENDING:"PENDING",IMPORTING:"IMPORTING",DONE:"DONE",ERROR:"ERROR",INTERRUPTING:"INTERRUPTING"}}}]);
1
+ (window.webpackJsonp=window.webpackJsonp||[]).push([[53,64,203,205,206],{112:function(e,t,s){"use strict";s.r(t),s.d(t,"ImportResourceType",(function(){return r}));const r={DIRECTORY:"directory",FILE:"file",URL:"url",TEXT:"text"}},145:function(e,t,s){"use strict";s.r(t),s.d(t,"ImportParsingSettings",(function(){return r}));class r{constructor(){this.contextLink=void 0,this.preserveBNodeIds=!1,this.failOnUnknownDataTypes=!1,this.verifyDataTypeValues=!1,this.normalizeDataTypeValues=!1,this.failOnUnknownLanguageTags=!1,this.verifyLanguageTags=!1,this.normalizeLanguageTags=!1,this.stopOnError=!0}}},177:function(e,t,s){"use strict";s.r(t),s.d(t,"ImportResource",(function(){return n}));var r=s(90),i=s(145),o=s(112);class n{constructor(e,t){this.hash=t(JSON.stringify(e)),this.name=e?e.name:void 0,this.status=e?e.status:r.ImportResourceStatus.NONE,this.message=e&&e.message?e.message:"",this.context=e&&e.context?e.context:"",this.replaceGraphs=e?e.replaceGraphs:[],this.baseURI=e?e.baseURI:void 0,this.forceSerial=!!e&&e.forceSerial,this.type=e?e.type:void 0,this.format=e?e.format:void 0,this.data=e?e.data:void 0,this.modifiedOn=e?e.lastModified:void 0,this.importedOn=e?e.imported:void 0,this.size=e?e.size:"",this.addedStatements=e?e.addedStatements:0,this.removedStatements=e?e.removedStatements:0,this.numReplacedGraphs=e?e.numReplacedGraphs:0,this.parserSettings=e?e.parserSettings:new i.ImportParsingSettings,this.requestIdHeadersToForward=e?e.requestIdHeadersToForward:void 0}isDirectory(){return o.ImportResourceType.DIRECTORY===this.type}isFile(){return o.ImportResourceType.FILE===this.type||o.ImportResourceType.URL===this.type||o.ImportResourceType.TEXT===this.type}isURL(){return o.ImportResourceType.URL===this.type}isText(){return o.ImportResourceType.TEXT===this.type}}},275:function(e,t,s){"use strict";s.r(t),s.d(t,"toImportResource",(function(){return o})),s.d(t,"fileToImportResource",(function(){return n})),s.d(t,"filesToImportResource",(function(){return a}));var r=s(177),i=s(20);const o=e=>{const t=Object(i.md5HashGenerator)();return e.map(e=>new r.ImportResource(e,t))},n=e=>{const t=Object(i.md5HashGenerator)();return new r.ImportResource({name:e.name,size:e.size,type:"file",modifiedOn:e.lastModified,file:e},t)},a=(e,t)=>{const s=Object(i.md5HashGenerator)();return e.map(e=>new r.ImportResource({name:e.name,size:e.size,type:"file",modifiedOn:void 0,file:e,status:t},s))}},90:function(e,t,s){"use strict";s.r(t),s.d(t,"ImportResourceStatus",(function(){return r}));const r={NONE:"NONE",UPLOADING:"UPLOADING",UPLOAD_ERROR:"UPLOAD_ERROR",UPLOADED:"UPLOADED",PENDING:"PENDING",IMPORTING:"IMPORTING",DONE:"DONE",ERROR:"ERROR",INTERRUPTING:"INTERRUPTING"}}}]);
@@ -1 +1 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([[54,79,105,272,273,274],{110:function(t,e,s){"use strict";s.r(e),s.d(e,"ChatModel",(function(){return h})),s.d(e,"ChatByDayModel",(function(){return n})),s.d(e,"ChatsListModel",(function(){return r}));var a=s(95),i=s(20);class h{static getEmptyChat(){const t={name:"· · ·",timestamp:Math.floor(Date.now()/1e3)};return new h(t,Object(i.md5HashGenerator)())}constructor(t,e){this.hashGenerator=e,this._id=t.id,this._name=t.name,this._timestamp=t.timestamp,this._chatHistory=t.chatHistory||new a.ChatItemsListModel,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 a.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 r{constructor(t){this._chats=t||[],this._chatsByDay=[],this.sortByTime(),this.updateChatsByDay()}sortByTime(){this._chats.sort((t,e)=>e.timestamp-t.timestamp)}updateChatTimestamp(t,e){const s=this._chats.find(e=>e.id===t);s&&(s.timestamp=e,this.sortByTime(),this.updateChatsByDay())}updateChatName(t,e){const s=this._chats.find(e=>e.id===t);s&&(s.name=e)}deleteChat(t){this._chats=this._chats.filter(e=>e.id!==t.id),this.sortByTime(),this.updateChatsByDay()}updateChatsByDay(){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]}))})}appendChat(t){this._chats.push(t),this.sortByTime(),this.updateChatsByDay()}replaceChat(t,e){this._chats=this._chats.map(s=>s.id===e.id?t:s),this.sortByTime(),this.updateChatsByDay()}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)}getNonPersistedChat(){return this._chats.find(t=>!t.id)}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}}},131:function(t,e,s){"use strict";s.r(e),s.d(e,"ExplainResponseModel",(function(){return a})),s.d(e,"ExplainQueryMethodsListModel",(function(){return i})),s.d(e,"ExplainQueryMethodModel",(function(){return h})),s.d(e,"ExplainQueryType",(function(){return n}));class a{constructor(t={}){this._chatId=t.chatId,this._answerId=t.answerId,this._queryMethods=t.queryMethods,this._expanded=void 0===t.expanded||t.expanded}get chatId(){return this._chatId}set chatId(t){this._chatId=t}get answerId(){return this._answerId}set answerId(t){this._answerId=t}get queryMethods(){return this._queryMethods}set queryMethods(t){this._queryMethods=t}get expanded(){return this._expanded}set expanded(t){this._expanded=t}}class i{constructor(t=[]){this._items=t}get items(){return this._items}set items(t){this._items=t}}class h{constructor(t={}){this._name=t.name,this._rawQuery=t.rawQuery,this._query=t.query,this._queryType=t.queryType,this._errorMessage=t.errorOutput}get name(){return this._name}set name(t){this._name=t}get rawQuery(){return this._rawQuery}set rawQuery(t){this._rawQuery=t}get query(){return this._query}set query(t){this._query=t}get queryType(){return this._queryType}set queryType(t){this._queryType=t}get errorMessage(){return this._errorMessage}set errorMessage(t){this._errorMessage=t}}const n={SPARQL:"sparql",JSON:"json",OTHER:"other"}},200:function(t,e,s){"use strict";s.r(e);s(210);var a=s(87),i=s(88),h=s(95),n=s(18),r=s(0),c=s(110);function o(t,e,s){return{restrict:"E",templateUrl:"js/angular/ttyg/templates/chat-panel.html",link:(t,o,d)=>{t.chat=void 0,t.selectedAgent=void 0,t.chatItem=void 0,t.askingChatItem=void 0,t.waitingForLastMessage=!1,t.loadingChat=!0,t.ask=()=>{t.chatItem.question.timestamp=Date.now(),t.askingChatItem=Object(n.cloneDeep)(t.chatItem),t.chatItem.chatId?m(t.chatItem):u(),t.chatItem=_(),p(),y()},t.regenerateQuestion=e=>{const s=_();s.setQuestionMessage(e.getQuestionMessage()),s.question.timestamp=Date.now(),t.askingChatItem=s,m(s),p()},t.onKeypressOnInput=e=>{"Enter"!==e.key||e.shiftKey||e.ctrlKey||t.ask()},t.onAskHowDeliveredAnswer=()=>{const s=_();s.setQuestionMessage(e.instant("ttyg.chat_panel.btn.derive_answer.label")),s.question.timestamp=Date.now(),t.askingChatItem=Object(n.cloneDeep)(s),m(s),p()},t.getAgentName=t=>{const a=s.getAgent(t);return a?a.name:Object(r.decodeHTML)(e.instant("ttyg.chat_panel.deleted_agent"))};const u=()=>{t.waitingForLastMessage=!0,s.emit(a.TTYGEventName.CREATE_CHAT,t.chatItem)},m=e=>{t.waitingForLastMessage=!0,s.emit(a.TTYGEventName.ASK_QUESTION,e)},g=()=>{t.chatItem=Object(n.cloneDeep)(t.askingChatItem),t.askingChatItem=void 0,t.waitingForLastMessage=!1},_=()=>{const e=new h.ChatItemModel;return e.question=new i.ChatMessageModel({role:i.CHAT_MESSAGE_ROLE.USER}),t.chat&&(e.chatId=t.chat.id),t.selectedAgent&&(e.agentId=t.selectedAgent.id),e},y=()=>{const t=o.find(".question-input");t.length&&t[0].focus()},p=()=>{setTimeout(()=>{const t=o.find(".chat-details")[0];t&&(t.scrollTop=t.scrollHeight)})},l=()=>{t.chat=c.ChatModel.getEmptyChat(),t.loadingChat=!1,t.chatItem=_(),t.askingChatItem=void 0,t.waitingForLastMessage=!1,y()},I=[];I.push(t.$watchCollection("chat.chatHistory.items",p)),I.push(s.onSelectedChatUpdated(e=>{if(t.chat=e,e&&(e.id||!t.askingChatItem)){if(t.loadingChat=!1,t.chatItem=_(),t.askingChatItem=void 0,t.chat){const e=t.chat.chatHistory.getLast();e&&e.agentId&&s.selectAgent(s.getAgent(e.agentId))}y()}})),I.push(s.onLastMessageReceived(()=>{t.waitingForLastMessage=!1})),I.push(s.onSelectedAgentChanged(e=>{t.selectedAgent=e,t.selectedAgent&&t.chatItem&&(t.chatItem.agentId=t.selectedAgent.id)})),I.push(s.onSelectedChatChanged(e=>{e?(t.loadingChat=e&&e.id,t.chatItem=_(),y()):l()})),I.push(s.subscribe(a.TTYGEventName.LOAD_CHAT_FAILURE,()=>{t.loadingChat=!1,t.chatItem=_(),y()})),I.push(s.subscribe(a.TTYGEventName.ASK_QUESTION_FAILURE,g)),I.push(s.subscribe(a.TTYGEventName.CREATE_CHAT_FAILURE,g)),I.push(s.subscribe(a.TTYGEventName.DELETE_CHAT_SUCCESSFUL,e=>{t.chat&&e.id===t.chat.id&&l()})),t.$on("$destroy",()=>{I.forEach(t=>t())}),t.chat=c.ChatModel.getEmptyChat(),t.chatItem=_(),y()}}}angular.module("graphdb.framework.ttyg.directives.chat-panel",["graphdb.framework.ttyg.directives.chat-item-detail"]).directive("chatPanel",o),o.$inject=["toastr","$translate","TTYGContextService"]},88:function(t,e,s){"use strict";s.r(e),s.d(e,"ChatMessageModel",(function(){return a})),s.d(e,"CHAT_MESSAGE_ROLE",(function(){return i}));class a{constructor(t){this._id=t.id,this._role=t.role,this._message=t.message,this._timestamp=1e3*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"}},95:function(t,e,s){"use strict";s.r(e),s.d(e,"ChatItemModel",(function(){return i})),s.d(e,"ChatItemsListModel",(function(){return h}));var a=s(88);class i{constructor(t,e){this._chatId=t,this._agentId=void 0,this._question=e,this._answers=[]}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 answers(){return this._answers}set answers(t){this._answers=t}setQuestionMessage(t){this._question||(this._question=new a.ChatMessageModel({role:a.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,tzOffset:-(new Date).getTimezoneOffset()}}toExplainResponsePayload(t){return{conversationId:this._chatId,answerId:t}}}class h{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||[]}getLast(){if(!this.isEmpty())return this._items[this._items.length-1]}}}}]);
1
+ (window.webpackJsonp=window.webpackJsonp||[]).push([[54,79,105,272,273,274],{110:function(t,e,s){"use strict";s.r(e),s.d(e,"ChatModel",(function(){return h})),s.d(e,"ChatByDayModel",(function(){return n})),s.d(e,"ChatsListModel",(function(){return r}));var a=s(95),i=s(20);class h{static getEmptyChat(){const t={name:"· · ·",timestamp:Math.floor(Date.now()/1e3)};return new h(t,Object(i.md5HashGenerator)())}constructor(t,e){this.hashGenerator=e,this._id=t.id,this._name=t.name,this._timestamp=t.timestamp,this._chatHistory=t.chatHistory||new a.ChatItemsListModel,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 a.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 r{constructor(t){this._chats=t||[],this._chatsByDay=[],this.sortByTime(),this.updateChatsByDay()}sortByTime(){this._chats.sort((t,e)=>e.timestamp-t.timestamp)}updateChatTimestamp(t,e){const s=this._chats.find(e=>e.id===t);s&&(s.timestamp=e,this.sortByTime(),this.updateChatsByDay())}updateChatName(t,e){const s=this._chats.find(e=>e.id===t);s&&(s.name=e)}deleteChat(t){this._chats=this._chats.filter(e=>e.id!==t.id),this.sortByTime(),this.updateChatsByDay()}updateChatsByDay(){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]}))})}appendChat(t){this._chats.push(t),this.sortByTime(),this.updateChatsByDay()}replaceChat(t,e){this._chats=this._chats.map(s=>s.id===e.id?t:s),this.sortByTime(),this.updateChatsByDay()}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)}getNonPersistedChat(){return this._chats.find(t=>!t.id)}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}}},131:function(t,e,s){"use strict";s.r(e),s.d(e,"ExplainResponseModel",(function(){return a})),s.d(e,"ExplainQueryMethodsListModel",(function(){return i})),s.d(e,"ExplainQueryMethodModel",(function(){return h})),s.d(e,"ExplainQueryType",(function(){return n}));class a{constructor(t={}){this._chatId=t.chatId,this._answerId=t.answerId,this._queryMethods=t.queryMethods,this._expanded=void 0===t.expanded||t.expanded}get chatId(){return this._chatId}set chatId(t){this._chatId=t}get answerId(){return this._answerId}set answerId(t){this._answerId=t}get queryMethods(){return this._queryMethods}set queryMethods(t){this._queryMethods=t}get expanded(){return this._expanded}set expanded(t){this._expanded=t}}class i{constructor(t=[]){this._items=t}get items(){return this._items}set items(t){this._items=t}}class h{constructor(t={}){this._name=t.name,this._rawQuery=t.rawQuery,this._query=t.query,this._queryType=t.queryType,this._errorMessage=t.errorOutput}get name(){return this._name}set name(t){this._name=t}get rawQuery(){return this._rawQuery}set rawQuery(t){this._rawQuery=t}get query(){return this._query}set query(t){this._query=t}get queryType(){return this._queryType}set queryType(t){this._queryType=t}get errorMessage(){return this._errorMessage}set errorMessage(t){this._errorMessage=t}}const n={SPARQL:"sparql",JSON:"json",OTHER:"other"}},199:function(t,e,s){"use strict";s.r(e);s(209);var a=s(87),i=s(88),h=s(95),n=s(18),r=s(0),c=s(110);function o(t,e,s){return{restrict:"E",templateUrl:"js/angular/ttyg/templates/chat-panel.html",link:(t,o,d)=>{t.chat=void 0,t.selectedAgent=void 0,t.chatItem=void 0,t.askingChatItem=void 0,t.waitingForLastMessage=!1,t.loadingChat=!0,t.ask=()=>{t.chatItem.question.timestamp=Date.now(),t.askingChatItem=Object(n.cloneDeep)(t.chatItem),t.chatItem.chatId?m(t.chatItem):u(),t.chatItem=_(),p(),y()},t.regenerateQuestion=e=>{const s=_();s.setQuestionMessage(e.getQuestionMessage()),s.question.timestamp=Date.now(),t.askingChatItem=s,m(s),p()},t.onKeypressOnInput=e=>{"Enter"!==e.key||e.shiftKey||e.ctrlKey||t.ask()},t.onAskHowDeliveredAnswer=()=>{const s=_();s.setQuestionMessage(e.instant("ttyg.chat_panel.btn.derive_answer.label")),s.question.timestamp=Date.now(),t.askingChatItem=Object(n.cloneDeep)(s),m(s),p()},t.getAgentName=t=>{const a=s.getAgent(t);return a?a.name:Object(r.decodeHTML)(e.instant("ttyg.chat_panel.deleted_agent"))};const u=()=>{t.waitingForLastMessage=!0,s.emit(a.TTYGEventName.CREATE_CHAT,t.chatItem)},m=e=>{t.waitingForLastMessage=!0,s.emit(a.TTYGEventName.ASK_QUESTION,e)},g=()=>{t.chatItem=Object(n.cloneDeep)(t.askingChatItem),t.askingChatItem=void 0,t.waitingForLastMessage=!1},_=()=>{const e=new h.ChatItemModel;return e.question=new i.ChatMessageModel({role:i.CHAT_MESSAGE_ROLE.USER}),t.chat&&(e.chatId=t.chat.id),t.selectedAgent&&(e.agentId=t.selectedAgent.id),e},y=()=>{const t=o.find(".question-input");t.length&&t[0].focus()},p=()=>{setTimeout(()=>{const t=o.find(".chat-details")[0];t&&(t.scrollTop=t.scrollHeight)})},l=()=>{t.chat=c.ChatModel.getEmptyChat(),t.loadingChat=!1,t.chatItem=_(),t.askingChatItem=void 0,t.waitingForLastMessage=!1,y()},I=[];I.push(t.$watchCollection("chat.chatHistory.items",p)),I.push(s.onSelectedChatUpdated(e=>{if(t.chat=e,e&&(e.id||!t.askingChatItem)){if(t.loadingChat=!1,t.chatItem=_(),t.askingChatItem=void 0,t.chat){const e=t.chat.chatHistory.getLast();e&&e.agentId&&s.selectAgent(s.getAgent(e.agentId))}y()}})),I.push(s.onLastMessageReceived(()=>{t.waitingForLastMessage=!1})),I.push(s.onSelectedAgentChanged(e=>{t.selectedAgent=e,t.selectedAgent&&t.chatItem&&(t.chatItem.agentId=t.selectedAgent.id)})),I.push(s.onSelectedChatChanged(e=>{e?(t.loadingChat=e&&e.id,t.chatItem=_(),y()):l()})),I.push(s.subscribe(a.TTYGEventName.LOAD_CHAT_FAILURE,()=>{t.loadingChat=!1,t.chatItem=_(),y()})),I.push(s.subscribe(a.TTYGEventName.ASK_QUESTION_FAILURE,g)),I.push(s.subscribe(a.TTYGEventName.CREATE_CHAT_FAILURE,g)),I.push(s.subscribe(a.TTYGEventName.DELETE_CHAT_SUCCESSFUL,e=>{t.chat&&e.id===t.chat.id&&l()})),t.$on("$destroy",()=>{I.forEach(t=>t())}),t.chat=c.ChatModel.getEmptyChat(),t.chatItem=_(),y()}}}angular.module("graphdb.framework.ttyg.directives.chat-panel",["graphdb.framework.ttyg.directives.chat-item-detail"]).directive("chatPanel",o),o.$inject=["toastr","$translate","TTYGContextService"]},88:function(t,e,s){"use strict";s.r(e),s.d(e,"ChatMessageModel",(function(){return a})),s.d(e,"CHAT_MESSAGE_ROLE",(function(){return i}));class a{constructor(t){this._id=t.id,this._role=t.role,this._message=t.message,this._timestamp=1e3*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"}},95:function(t,e,s){"use strict";s.r(e),s.d(e,"ChatItemModel",(function(){return i})),s.d(e,"ChatItemsListModel",(function(){return h}));var a=s(88);class i{constructor(t,e){this._chatId=t,this._agentId=void 0,this._question=e,this._answers=[]}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 answers(){return this._answers}set answers(t){this._answers=t}setQuestionMessage(t){this._question||(this._question=new a.ChatMessageModel({role:a.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,tzOffset:-(new Date).getTimezoneOffset()}}toExplainResponsePayload(t){return{conversationId:this._chatId,answerId:t}}}class h{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||[]}getLast(){if(!this.isEmpty())return this._items[this._items.length-1]}}}}]);
@@ -1 +1 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([[55,143,320,322],{137: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 i;t.onKeydown=e=>{"Enter"===e.key?(c(),t.editableModel.text!==t.text&&t.onSave({newText:t.editableModel.text,source:t.source})):"Escape"===e.key&&o()},t.onCancelEditing=()=>{o()},t.onSelect=()=>{i?(c(),t.onDblclick({source:t.source})):i=e((function(){t.onClick({source:t.source}),c()}),250)};const o=()=>{c(),t.onCancel()},c=()=>{e.cancel(i),i=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()),c()})}}}angular.module("graphdb.framework.core.directives.inline-editable-text",[]).directive("inlineEditableText",n),n.$inject=["$timeout"]},146:function(e,t,n){"use strict";n.r(t),n.d(t,"getHumanReadableTimestamp",(function(){return a}));const a=(e,t,n,a={})=>{if(!n)return"";const i=new Date(n),o=new Date,c=new Date(o.getFullYear(),o.getMonth(),o.getDate()),E=new Date(c);E.setDate(c.getDate()-1);const d=new Date(i.getFullYear(),i.getMonth(),i.getDate()),l=a.timeFormat?t("date")(i,a.timeFormat):"";if(d.getTime()===c.getTime())return e.instant("common.dates.today")+l;if(d.getTime()===E.getTime())return e.instant("common.dates.yesterday")+l;{const e=a.dateFormat||"yyyy-MM-dd";return t("date")(i,e)+l}}},199:function(e,t,n){"use strict";n.r(t);n(137);var a=n(87),i=n(146),o=n(0);function c(e,t,n,c){return{restrict:"E",templateUrl:"js/angular/ttyg/templates/chat-list.html",link:E=>{E.selectedChat=void 0,E.renamedChat=void 0,E.deletingChat=void 0,E.onSelectChatForRenaming=e=>{E.renamedChat=e},E.onSelectChat=t=>{if(!E.selectedChat||E.selectedChat.id!==t.id){const n=e.getChats().getNonPersistedChat();n&&e.deleteChat(n),e.selectChat(t),E.renamedChat=void 0}},E.onDeleteChat=i=>{const c=n.instant("ttyg.dialog.delete.title"),E=Object(o.decodeHTML)(n.instant("ttyg.dialog.delete.body",{chatName:i.name}));t.openConfirmation(c,E,()=>e.emit(a.TTYGEventName.DELETE_CHAT,i))},E.onRenameChat=(t,n)=>{n.name=t,E.renamedChat=void 0,e.emit(a.TTYGEventName.RENAME_CHAT,n)},E.onExportChat=t=>{e.emit(a.TTYGEventName.CHAT_EXPORT,t)},E.onCancelChatRenaming=()=>{E.renamedChat=void 0},E.getHumanReadableChatGroupTimestamp=e=>Object(i.getHumanReadableTimestamp)(n,c,e);const d=e=>{E.selectedChat=e},l=[];l.push(e.onSelectedChatChanged(d)),l.push(e.onSelectedChatUpdated(d)),l.push(e.onChatsListChanged(e=>{E.chatList=e})),l.push(e.subscribe(a.TTYGEventName.DELETING_CHAT,e=>{E.deletingChat=e})),E.$on("$destroy",()=>{l.forEach(e=>e())})}}}angular.module("graphdb.framework.ttyg.directives.chat-list",["graphdb.framework.core.directives.inline-editable-text"]).directive("chatList",c),c.$inject=["TTYGContextService","ModalService","$translate","$filter"]},87:function(e,t,n){"use strict";n.r(t),n.d(t,"TTYGEventName",(function(){return o}));var a=n(18);function i(e){let t=void 0,n=void 0,i=void 0,c=void 0,E={},d=void 0,l=!1;const C=()=>Object(a.cloneDeep)(t),s=()=>Object(a.cloneDeep)(n),T=e=>{n=Object(a.cloneDeep)(e),u(o.CHAT_LIST_UPDATED,s())},r=()=>Object(a.cloneDeep)(i),A=()=>Object(a.cloneDeep)(c),_=()=>Object(a.cloneDeep)(E),g=e=>!!E[e],h=()=>l,u=(t,n)=>{e.emitSync(t,Object(a.cloneDeep)(n))},D=(t,n)=>e.subscribeSync(t,e=>n(e));return{resetContext:()=>{t=void 0,n=void 0,i=void 0,c=void 0,E={},d=void 0,l=!1},emit:u,subscribe:D,getChats:s,updateChats:T,addChat:e=>{n.appendChat(e),T(n)},replaceChat:(e,t)=>{n.replaceChat(e,t),T(n)},onChatsListChanged:e=>(n&&angular.isFunction(e)&&e(s()),D(o.CHAT_LIST_UPDATED,t=>e(t))),getSelectedChat:r,selectChat:e=>{i&&i.id===e.id||(i=Object(a.cloneDeep)(e),u(o.SELECT_CHAT,r()))},deselectChat:()=>{i=void 0,u(o.SELECT_CHAT,r())},deleteChat:e=>{n.deleteChat(e),T(n)},onSelectedChatChanged:e=>(angular.isFunction(e)&&e(r()),D(o.SELECT_CHAT,t=>e(t))),updateSelectedChat:e=>{i&&i.id&&e&&i.id!==e.id||(i=Object(a.cloneDeep)(e),u(o.SELECTED_CHAT_UPDATED,r()))},onSelectedChatUpdated:e=>(i&&angular.isFunction(e)&&e(r()),D(o.SELECTED_CHAT_UPDATED,t=>e(t))),onLastMessageReceived:e=>(i&&angular.isFunction(e)&&e(r()),D(o.LAST_MESSAGE_RECEIVED,t=>e(t))),updateAgents:e=>{t=Object(a.cloneDeep)(e),u(o.AGENT_LIST_UPDATED,C())},onAgentsListChanged:e=>(t&&angular.isFunction(e)&&e(C()),D(o.AGENT_LIST_UPDATED,t=>e(t))),getAgents:C,getAgent:e=>{if(t)return Object(a.cloneDeep)(t.getAgent(e))},selectAgent:e=>{c=Object(a.cloneDeep)(e),u(o.AGENT_SELECTED,A())},getSelectedAgent:A,onSelectedAgentChanged:e=>(c&&angular.isFunction(e)&&e(A()),D(o.AGENT_SELECTED,t=>e(t))),getDefaultAgent:()=>Object(a.cloneDeep)(d),setDefaultAgent:e=>{d=e},setCanModifyAgent:e=>{l=Object(a.cloneDeep)(e),u(o.CAN_MODIFY_AGENT_UPDATED,h())},getCanModifyAgent:h,onCanUpdateAgentUpdated:e=>(angular.isFunction(e)&&e(h()),D(o.CAN_MODIFY_AGENT_UPDATED,t=>e(t))),hasExplainResponse:g,toggleExplainResponse:e=>{g(e)&&(E[e].expanded=!E[e].expanded,u(o.EXPLAIN_RESPONSE_CACHE_UPDATED,_()))},getExplainResponse:e=>Object(a.cloneDeep)(E[e]),addExplainResponseCache:e=>{E[e.answerId]=Object(a.cloneDeep)(e),u(o.EXPLAIN_RESPONSE_CACHE_UPDATED,_())},onExplainResponseCacheUpdated:e=>(angular.isFunction(e)&&e(_()),D(o.EXPLAIN_RESPONSE_CACHE_UPDATED,t=>e(t)))}}angular.module("graphdb.framework.ttyg.services.ttygcontext",[]).factory("TTYGContextService",i),i.$inject=["EventEmitterService","TTYGService"];const o={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",LAST_MESSAGE_RECEIVED:"lastMessageReceived",DELETING_CHAT:"deletingChat",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",ASK_QUESTION_FAILURE:"askQuestionFailure",CONTINUE_CHAT_RUN:"continueChatRun",LOAD_CHATS:"loadChats",LOAD_CHAT_SUCCESSFUL:"loadChatSuccess",LOAD_CHAT_FAILURE:"loadChatFailure",AGENT_LIST_UPDATED:"agentListUpdated",OPEN_AGENT_SETTINGS:"openAgentSettings",EDIT_AGENT:"editAgent",CLONE_AGENT:"cloneAgent",DELETE_AGENT:"deleteAgent",AGENT_DELETED:"agentDeleted",DELETING_AGENT:"deletingAgent",AGENT_SELECTED:"agentSelected",GO_TO_CREATE_SIMILARITY_VIEW:"goToCreateSimilarityView",GO_TO_CONNECTORS_VIEW:"goToConnectorsView",EXPLAIN_RESPONSE:"explainResponse",EXPLAIN_RESPONSE_CACHE_UPDATED:"explainResponseCacheUpdated",GO_TO_SPARQL_EDITOR:"openQueryInSparqlEditor",CAN_MODIFY_AGENT_UPDATED:"canModifyAgentUpdated"}}}]);
1
+ (window.webpackJsonp=window.webpackJsonp||[]).push([[55,143,321,323],{137: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 i;t.onKeydown=e=>{"Enter"===e.key?(c(),t.editableModel.text!==t.text&&t.onSave({newText:t.editableModel.text,source:t.source})):"Escape"===e.key&&o()},t.onCancelEditing=()=>{o()},t.onSelect=()=>{i?(c(),t.onDblclick({source:t.source})):i=e((function(){t.onClick({source:t.source}),c()}),250)};const o=()=>{c(),t.onCancel()},c=()=>{e.cancel(i),i=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()),c()})}}}angular.module("graphdb.framework.core.directives.inline-editable-text",[]).directive("inlineEditableText",n),n.$inject=["$timeout"]},146:function(e,t,n){"use strict";n.r(t),n.d(t,"getHumanReadableTimestamp",(function(){return a}));const a=(e,t,n,a={})=>{if(!n)return"";const i=new Date(n),o=new Date,c=new Date(o.getFullYear(),o.getMonth(),o.getDate()),E=new Date(c);E.setDate(c.getDate()-1);const d=new Date(i.getFullYear(),i.getMonth(),i.getDate()),l=a.timeFormat?t("date")(i,a.timeFormat):"";if(d.getTime()===c.getTime())return e.instant("common.dates.today")+l;if(d.getTime()===E.getTime())return e.instant("common.dates.yesterday")+l;{const e=a.dateFormat||"yyyy-MM-dd";return t("date")(i,e)+l}}},198:function(e,t,n){"use strict";n.r(t);n(137);var a=n(87),i=n(146),o=n(0);function c(e,t,n,c){return{restrict:"E",templateUrl:"js/angular/ttyg/templates/chat-list.html",link:E=>{E.selectedChat=void 0,E.renamedChat=void 0,E.deletingChat=void 0,E.onSelectChatForRenaming=e=>{E.renamedChat=e},E.onSelectChat=t=>{if(!E.selectedChat||E.selectedChat.id!==t.id){const n=e.getChats().getNonPersistedChat();n&&e.deleteChat(n),e.selectChat(t),E.renamedChat=void 0}},E.onDeleteChat=i=>{const c=n.instant("ttyg.dialog.delete.title"),E=Object(o.decodeHTML)(n.instant("ttyg.dialog.delete.body",{chatName:i.name}));t.openConfirmation(c,E,()=>e.emit(a.TTYGEventName.DELETE_CHAT,i))},E.onRenameChat=(t,n)=>{n.name=t,E.renamedChat=void 0,e.emit(a.TTYGEventName.RENAME_CHAT,n)},E.onExportChat=t=>{e.emit(a.TTYGEventName.CHAT_EXPORT,t)},E.onCancelChatRenaming=()=>{E.renamedChat=void 0},E.getHumanReadableChatGroupTimestamp=e=>Object(i.getHumanReadableTimestamp)(n,c,e);const d=e=>{E.selectedChat=e},l=[];l.push(e.onSelectedChatChanged(d)),l.push(e.onSelectedChatUpdated(d)),l.push(e.onChatsListChanged(e=>{E.chatList=e})),l.push(e.subscribe(a.TTYGEventName.DELETING_CHAT,e=>{E.deletingChat=e})),E.$on("$destroy",()=>{l.forEach(e=>e())})}}}angular.module("graphdb.framework.ttyg.directives.chat-list",["graphdb.framework.core.directives.inline-editable-text"]).directive("chatList",c),c.$inject=["TTYGContextService","ModalService","$translate","$filter"]},87:function(e,t,n){"use strict";n.r(t),n.d(t,"TTYGEventName",(function(){return o}));var a=n(18);function i(e){let t=void 0,n=void 0,i=void 0,c=void 0,E={},d=void 0,l=!1;const C=()=>Object(a.cloneDeep)(t),s=()=>Object(a.cloneDeep)(n),T=e=>{n=Object(a.cloneDeep)(e),u(o.CHAT_LIST_UPDATED,s())},r=()=>Object(a.cloneDeep)(i),A=()=>Object(a.cloneDeep)(c),_=()=>Object(a.cloneDeep)(E),g=e=>!!E[e],h=()=>l,u=(t,n)=>{e.emitSync(t,Object(a.cloneDeep)(n))},D=(t,n)=>e.subscribeSync(t,e=>n(e));return{resetContext:()=>{t=void 0,n=void 0,i=void 0,c=void 0,E={},d=void 0,l=!1},emit:u,subscribe:D,getChats:s,updateChats:T,addChat:e=>{n.appendChat(e),T(n)},replaceChat:(e,t)=>{n.replaceChat(e,t),T(n)},onChatsListChanged:e=>(n&&angular.isFunction(e)&&e(s()),D(o.CHAT_LIST_UPDATED,t=>e(t))),getSelectedChat:r,selectChat:e=>{i&&i.id===e.id||(i=Object(a.cloneDeep)(e),u(o.SELECT_CHAT,r()))},deselectChat:()=>{i=void 0,u(o.SELECT_CHAT,r())},deleteChat:e=>{n.deleteChat(e),T(n)},onSelectedChatChanged:e=>(angular.isFunction(e)&&e(r()),D(o.SELECT_CHAT,t=>e(t))),updateSelectedChat:e=>{i&&i.id&&e&&i.id!==e.id||(i=Object(a.cloneDeep)(e),u(o.SELECTED_CHAT_UPDATED,r()))},onSelectedChatUpdated:e=>(i&&angular.isFunction(e)&&e(r()),D(o.SELECTED_CHAT_UPDATED,t=>e(t))),onLastMessageReceived:e=>(i&&angular.isFunction(e)&&e(r()),D(o.LAST_MESSAGE_RECEIVED,t=>e(t))),updateAgents:e=>{t=Object(a.cloneDeep)(e),u(o.AGENT_LIST_UPDATED,C())},onAgentsListChanged:e=>(t&&angular.isFunction(e)&&e(C()),D(o.AGENT_LIST_UPDATED,t=>e(t))),getAgents:C,getAgent:e=>{if(t)return Object(a.cloneDeep)(t.getAgent(e))},selectAgent:e=>{c=Object(a.cloneDeep)(e),u(o.AGENT_SELECTED,A())},getSelectedAgent:A,onSelectedAgentChanged:e=>(c&&angular.isFunction(e)&&e(A()),D(o.AGENT_SELECTED,t=>e(t))),getDefaultAgent:()=>Object(a.cloneDeep)(d),setDefaultAgent:e=>{d=e},setCanModifyAgent:e=>{l=Object(a.cloneDeep)(e),u(o.CAN_MODIFY_AGENT_UPDATED,h())},getCanModifyAgent:h,onCanUpdateAgentUpdated:e=>(angular.isFunction(e)&&e(h()),D(o.CAN_MODIFY_AGENT_UPDATED,t=>e(t))),hasExplainResponse:g,toggleExplainResponse:e=>{g(e)&&(E[e].expanded=!E[e].expanded,u(o.EXPLAIN_RESPONSE_CACHE_UPDATED,_()))},getExplainResponse:e=>Object(a.cloneDeep)(E[e]),addExplainResponseCache:e=>{E[e.answerId]=Object(a.cloneDeep)(e),u(o.EXPLAIN_RESPONSE_CACHE_UPDATED,_())},onExplainResponseCacheUpdated:e=>(angular.isFunction(e)&&e(_()),D(o.EXPLAIN_RESPONSE_CACHE_UPDATED,t=>e(t)))}}angular.module("graphdb.framework.ttyg.services.ttygcontext",[]).factory("TTYGContextService",i),i.$inject=["EventEmitterService","TTYGService"];const o={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",LAST_MESSAGE_RECEIVED:"lastMessageReceived",DELETING_CHAT:"deletingChat",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",ASK_QUESTION_FAILURE:"askQuestionFailure",CONTINUE_CHAT_RUN:"continueChatRun",LOAD_CHATS:"loadChats",LOAD_CHAT_SUCCESSFUL:"loadChatSuccess",LOAD_CHAT_FAILURE:"loadChatFailure",AGENT_LIST_UPDATED:"agentListUpdated",OPEN_AGENT_SETTINGS:"openAgentSettings",EDIT_AGENT:"editAgent",CLONE_AGENT:"cloneAgent",DELETE_AGENT:"deleteAgent",AGENT_DELETED:"agentDeleted",DELETING_AGENT:"deletingAgent",AGENT_SELECTED:"agentSelected",GO_TO_CREATE_SIMILARITY_VIEW:"goToCreateSimilarityView",GO_TO_CONNECTORS_VIEW:"goToConnectorsView",EXPLAIN_RESPONSE:"explainResponse",EXPLAIN_RESPONSE_CACHE_UPDATED:"explainResponseCacheUpdated",GO_TO_SPARQL_EDITOR:"openQueryInSparqlEditor",CAN_MODIFY_AGENT_UPDATED:"canModifyAgentUpdated"}}}]);
@@ -1 +1 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([[56,71,149,150],{138:function(e,n,r){"use strict";r.r(n),r.d(n,"markdownCodeCopyPlugin",(function(){return c}));const t={buttonStyle:"position: absolute; top: 0; right: 0;",buttonClass:""};function o(e,n){return n=_.merge({},t,n),(...r)=>{const[t,o]=r,c=t[o],s=t[o].content.replaceAll('"',"&quot;").replaceAll("'","&apos;"),i=e(...r);return"fence"===c.type&&i.trim()?`<div style="position: relative">\n ${i}\n <copy-to-clipboard\n style="${n.buttonStyle}"\n class="${n.buttonClass}"\n tooltip-text="ttyg.chat_panel.btn.copy_sparql.tooltip"\n text-to-copy="${s}">\n </copy-to-clipboard>\n </div>`:i}}const c=(e,n)=>{e.renderer.rules.code_block=o(e.renderer.rules.code_block,n),e.renderer.rules.fence=o(e.renderer.rules.fence,n)}},139:function(e,n,r){"use strict";r.r(n),r.d(n,"markdownOpenInSparqlEditorPlugin",(function(){return c}));const t={buttonStyle:"position: absolute; top: 0; right: 0;",buttonClass:""};function o(e,n){return n=_.merge({},t,n),(...r)=>{const[t,o]=r,c=t[o],s=t[o].content.replaceAll('"',"&quot;").replaceAll("'","&apos;"),i=e(...r);return"fence"===c.type&&"sparql"===c.info&&i.trim()?`<div style="position: relative">\n ${i}\n <open-in-sparql-editor\n style="${n.buttonStyle}"\n class="${n.buttonClass}"\n execute-query="${n.executeQuery}"\n repository-id="${n.repositoryId}"\n query="${s}">\n </open-in-sparql-editor>\n </div>`:i}}const c=(e,n)=>{e.renderer.rules.code_block=o(e.renderer.rules.code_block,n),e.renderer.rules.fence=o(e.renderer.rules.fence,n)}},161:function(e,n,r){"use strict";r.r(n);var t=r(606),o=r(138),c=r(139);const s={buttonStyle:"position: absolute; top: 0; right: 0; margin-right: 24px"};function i(e){const n=Object(t.a)().use(o.markdownCodeCopyPlugin).use(c.markdownOpenInSparqlEditorPlugin,s);return{renderMarkdown:(r,i)=>{try{return e.trustAsHtml((e=>e?Object(t.a)().use(o.markdownCodeCopyPlugin,e).use(c.markdownOpenInSparqlEditorPlugin,_.merge({},s,e)):n)(i).render(r))}catch(n){return console.error("Error rendering markdown:",n),e.trustAsHtml(r)}}}}angular.module("graphdb.framework.core.services.markdown-service",[]).service("MarkdownService",i),i.$inject=["$sce"]},230:function(e,n,r){"use strict";r.r(n);r(161);function t(e,n){return{template:'<div class="markdown-content" ng-bind-html="markdownContent"></div>',restrict:"E",scope:{content:"@",options:"="},link:function(r,t){r.markdownContent=void 0;const o=()=>{r.$evalAsync(()=>{const n=t.find(".markdown-content");e(angular.element(n).contents())(r)})};r.markdownContent=n.renderMarkdown(r.content,r.options),o()}}}angular.module("graphdb.framework.core.directives.markdown-content",["graphdb.framework.core.services.markdown-service"]).directive("markdownContent",t),t.$inject=["$compile","MarkdownService"]}}]);
1
+ (window.webpackJsonp=window.webpackJsonp||[]).push([[56,71,149,150],{138:function(e,n,r){"use strict";r.r(n),r.d(n,"markdownCodeCopyPlugin",(function(){return c}));const t={buttonStyle:"position: absolute; top: 0; right: 0;",buttonClass:""};function o(e,n){return n=_.merge({},t,n),(...r)=>{const[t,o]=r,c=t[o],s=t[o].content.replaceAll('"',"&quot;").replaceAll("'","&apos;"),i=e(...r);return"fence"===c.type&&i.trim()?`<div style="position: relative">\n ${i}\n <copy-to-clipboard\n style="${n.buttonStyle}"\n class="${n.buttonClass}"\n tooltip-text="ttyg.chat_panel.btn.copy_sparql.tooltip"\n text-to-copy="${s}">\n </copy-to-clipboard>\n </div>`:i}}const c=(e,n)=>{e.renderer.rules.code_block=o(e.renderer.rules.code_block,n),e.renderer.rules.fence=o(e.renderer.rules.fence,n)}},139:function(e,n,r){"use strict";r.r(n),r.d(n,"markdownOpenInSparqlEditorPlugin",(function(){return c}));const t={buttonStyle:"position: absolute; top: 0; right: 0;",buttonClass:""};function o(e,n){return n=_.merge({},t,n),(...r)=>{const[t,o]=r,c=t[o],s=t[o].content.replaceAll('"',"&quot;").replaceAll("'","&apos;"),i=e(...r);return"fence"===c.type&&"sparql"===c.info&&i.trim()?`<div style="position: relative">\n ${i}\n <open-in-sparql-editor\n style="${n.buttonStyle}"\n class="${n.buttonClass}"\n execute-query="${n.executeQuery}"\n repository-id="${n.repositoryId}"\n query="${s}">\n </open-in-sparql-editor>\n </div>`:i}}const c=(e,n)=>{e.renderer.rules.code_block=o(e.renderer.rules.code_block,n),e.renderer.rules.fence=o(e.renderer.rules.fence,n)}},160:function(e,n,r){"use strict";r.r(n);var t=r(607),o=r(138),c=r(139);const s={buttonStyle:"position: absolute; top: 0; right: 0; margin-right: 24px"};function i(e){const n=Object(t.a)().use(o.markdownCodeCopyPlugin).use(c.markdownOpenInSparqlEditorPlugin,s);return{renderMarkdown:(r,i)=>{try{return e.trustAsHtml((e=>e?Object(t.a)().use(o.markdownCodeCopyPlugin,e).use(c.markdownOpenInSparqlEditorPlugin,_.merge({},s,e)):n)(i).render(r))}catch(n){return console.error("Error rendering markdown:",n),e.trustAsHtml(r)}}}}angular.module("graphdb.framework.core.services.markdown-service",[]).service("MarkdownService",i),i.$inject=["$sce"]},230:function(e,n,r){"use strict";r.r(n);r(160);function t(e,n){return{template:'<div class="markdown-content" ng-bind-html="markdownContent"></div>',restrict:"E",scope:{content:"@",options:"="},link:function(r,t){r.markdownContent=void 0;const o=()=>{r.$evalAsync(()=>{const n=t.find(".markdown-content");e(angular.element(n).contents())(r)})};r.markdownContent=n.renderMarkdown(r.content,r.options),o()}}}angular.module("graphdb.framework.core.directives.markdown-content",["graphdb.framework.core.services.markdown-service"]).directive("markdownContent",t),t.$inject=["$compile","MarkdownService"]}}]);
@@ -1 +1 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([[57,69,146,168],{118:function(e,a){angular.module("graphdb.framework.core.directives.paginations",[]).directive("paginations",["$translate","$rootScope","$compile",function(e,a,i){return{link:function(e,t){const n=()=>{const a=i('<uib-pagination class="nav navbar-right" total-items="matchedElements.length" items-per-page="pageSize" ng-model="page" ng-change="changePagination()" direction-links="false" boundary-links="true" max-size="5" rotate="true" first-text="{{\'paginator.first.page.label\' | translate}}" last-text="{{\'paginator.last.page.label\' | translate}}"></uib-pagination>')(e);t.html(a)};n();const s=a.$on("$translateChangeSuccess",n);e.$on("$destroy",s)}}}])},177:function(e,a,i){"use strict";i.r(a),i.d(a,"GuideLevel",(function(){return t}));const t=Object.freeze({BEGINNER:0,INTERMEDIATE:1,ADVANCED:2})},264:function(e,a,i){"use strict";i.r(a);i(51),i(118);var t=i(2),n=i(177);function s(e,a,i,s,r,o,g){e.guides=[],e.pageSizeOptions=[10,20,50,100],e.page=1,e.pageSize=e.pageSizeOptions[0],e.translationSubscription=void 0,e.startGuide=e=>{i.startGuide(e)},e.changePagination=()=>{angular.isDefined(e.guides)&&(e.displayedGuides=e.guides.slice(e.pageSize*(e.page-1),e.pageSize*e.page))},e.changePageSize=function(a){e.page=1,e.pageSize=a||e.pageSizeOptions[0],e.changePagination()};const d=()=>i.getGuides().then(a=>{e.guides=s("orderBy")(a,"guideOrder"),u(),e.matchedElements=e.guides,e.changePagination()}),u=()=>{e.guides.forEach(e=>{switch(e.guideLevel){case void 0:case n.GuideLevel.BEGINNER:e.guideLevelLabel="view.guides.level.beginner";break;case n.GuideLevel.INTERMEDIATE:e.guideLevelLabel="view.guides.level.intermediate";break;default:e.guideLevelLabel="view.guides.level.advanced"}})},l=()=>{e.guides.forEach(e=>{e.translatedGuideName=t.GuideUtils.translateLocalMessage(r,o,e.guideName),e.translatedGuideDescription=t.GuideUtils.translateLocalMessage(r,o,e.guideDescription)})},c=[];c.push(a.$on("$translateChangeSuccess",l)),c.push(e.$on("$destroy",()=>{c.forEach(e=>e())})),d().then(l)}angular.module("graphdb.framework.guides.controllers",["ui.bootstrap","graphdb.framework.guides.services","graphdb.framework.core.directives.paginations"]).controller("GuidesCtrl",s),s.$inject=["$scope","$rootScope","GuidesService","$filter","$translate","$interpolate","toastr"]},339:function(e,a,i){"use strict";i.r(a);i(264);angular.module("graphdb.framework.guides",["ui.bootstrap","graphdb.framework.guides.controllers"])}}]);
1
+ (window.webpackJsonp=window.webpackJsonp||[]).push([[57,69,146,168],{118:function(e,a){angular.module("graphdb.framework.core.directives.paginations",[]).directive("paginations",["$translate","$rootScope","$compile",function(e,a,i){return{link:function(e,t){const n=()=>{const a=i('<uib-pagination class="nav navbar-right" total-items="matchedElements.length" items-per-page="pageSize" ng-model="page" ng-change="changePagination()" direction-links="false" boundary-links="true" max-size="5" rotate="true" first-text="{{\'paginator.first.page.label\' | translate}}" last-text="{{\'paginator.last.page.label\' | translate}}"></uib-pagination>')(e);t.html(a)};n();const s=a.$on("$translateChangeSuccess",n);e.$on("$destroy",s)}}}])},176:function(e,a,i){"use strict";i.r(a),i.d(a,"GuideLevel",(function(){return t}));const t=Object.freeze({BEGINNER:0,INTERMEDIATE:1,ADVANCED:2})},264:function(e,a,i){"use strict";i.r(a);i(51),i(118);var t=i(2),n=i(176);function s(e,a,i,s,r,o,g){e.guides=[],e.pageSizeOptions=[10,20,50,100],e.page=1,e.pageSize=e.pageSizeOptions[0],e.translationSubscription=void 0,e.startGuide=e=>{i.startGuide(e)},e.changePagination=()=>{angular.isDefined(e.guides)&&(e.displayedGuides=e.guides.slice(e.pageSize*(e.page-1),e.pageSize*e.page))},e.changePageSize=function(a){e.page=1,e.pageSize=a||e.pageSizeOptions[0],e.changePagination()};const d=()=>i.getGuides().then(a=>{e.guides=s("orderBy")(a,"guideOrder"),u(),e.matchedElements=e.guides,e.changePagination()}),u=()=>{e.guides.forEach(e=>{switch(e.guideLevel){case void 0:case n.GuideLevel.BEGINNER:e.guideLevelLabel="view.guides.level.beginner";break;case n.GuideLevel.INTERMEDIATE:e.guideLevelLabel="view.guides.level.intermediate";break;default:e.guideLevelLabel="view.guides.level.advanced"}})},l=()=>{e.guides.forEach(e=>{e.translatedGuideName=t.GuideUtils.translateLocalMessage(r,o,e.guideName),e.translatedGuideDescription=t.GuideUtils.translateLocalMessage(r,o,e.guideDescription)})},c=[];c.push(a.$on("$translateChangeSuccess",l)),c.push(e.$on("$destroy",()=>{c.forEach(e=>e())})),d().then(l)}angular.module("graphdb.framework.guides.controllers",["ui.bootstrap","graphdb.framework.guides.services","graphdb.framework.core.directives.paginations"]).controller("GuidesCtrl",s),s.$inject=["$scope","$rootScope","GuidesService","$filter","$translate","$interpolate","toastr"]},340:function(e,a,i){"use strict";i.r(a);i(264);angular.module("graphdb.framework.guides",["ui.bootstrap","graphdb.framework.guides.controllers"])}}]);
@@ -1 +1 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([[58,146,276,277],{118:function(e,a){angular.module("graphdb.framework.core.directives.paginations",[]).directive("paginations",["$translate","$rootScope","$compile",function(e,a,t){return{link:function(e,n){const s=()=>{const a=t('<uib-pagination class="nav navbar-right" total-items="matchedElements.length" items-per-page="pageSize" ng-model="page" ng-change="changePagination()" direction-links="false" boundary-links="true" max-size="5" rotate="true" first-text="{{\'paginator.first.page.label\' | translate}}" last-text="{{\'paginator.last.page.label\' | translate}}"></uib-pagination>')(e);n.html(a)};s();const r=a.$on("$translateChangeSuccess",s);e.$on("$destroy",r)}}}])},299:function(e,a,t){"use strict";t.r(a);t(9),t(42),t(41),t(49);const n=angular.module("graphdb.framework.namespaces.controllers",["ui.bootstrap","graphdb.framework.core.services.repositories","graphdb.framework.core.services.jwtauth","graphdb.framework.rest.repositories.service","graphdb.framework.rest.rdf4j.repositories.service","toastr"]),s=function(){const e="[A-Z]|[a-z]|[À-Ö]|[Ø-ö]|[ø-˿]|[Ͱ-ͽ]|[Ϳ-῿]|[‌-‍]|[⁰-↏]|[Ⰰ-⿯]|[、-퟿]|[豈-﷏]|[ﷰ-�]",a="[A-Z]|[a-z]|[À-Ö]|[Ø-ö]|[ø-˿]|[Ͱ-ͽ]|[Ϳ-῿]|[‌-‍]|[⁰-↏]|[Ⰰ-⿯]|[、-퟿]|[豈-﷏]|[ﷰ-�]|_|-|[0-9]|·|[̀-ͯ]|[‿-⁀]";return new RegExp("^(?:"+e+")(?:(?:"+a+"|\\.)*(?:"+a+"))?$")}();n.controller("NamespacesCtrl",["$scope","$http","$repositories","toastr","$uibModal","ModalService","RepositoriesRestService","RDF4JRepositoriesRestService","$translate",function(e,a,t,n,r,c,i,o,p){e.namespaces={},e.namespace={},e.loader=!1,e.haveSelected=!1,e.pageSizeOptions=[10,20,50,100],e.page=1,e.pageSize=e.pageSizeOptions[0],e.displayedNamespaces=[],e.getNamespaces=function(){t.getActiveRepository()&&(e.loader=!0,e.namespaces={},o.getNamespaces(t.getActiveRepository()).success((function(a){e.namespaces=a.results.bindings.map((function(e){return{prefix:e.prefix.value,namespace:e.namespace.value}})),e.namespaces.length>0&&(e.namespaces.sort((function(e,a){const t=e.prefix.toUpperCase(),n=a.prefix.toUpperCase();return t<n?-1:t>n?1:0})),e.matchedElements=e.namespaces,l()),0===e.namespaces.length&&(e.loader=!1)})).error((function(a){const t=getError(a);n.error(t),e.loader=!1})))};const l=function(){angular.isDefined(e.namespaces)&&(e.displayedNamespaces=e.namespaces.slice(e.pageSize*(e.page-1),e.pageSize*e.page))};e.changePageSize=function(a){$(".ot-graph-page-size").removeClass("active"),e.page=1,e.searchNamespaces="",a&&(e.getNamespaces(),e.pageSize=a)},e.$watch("matchedElements",(function(){angular.isDefined(e.matchedElements)&&(e.displayedNamespaces=e.matchedElements.slice(e.pageSize*(e.page-1),e.pageSize*e.page))})),e.$watch((function(){return t.getActiveRepository()}),(function(){e.searchNamespaces="",e.getNamespaces(),e.selectedAll=!1})),e.onNamespaceSearch=function(){e.haveSelected=!1,e.selectedAll=!1,e.matchedElements=[],h(),m()};const m=function(){angular.forEach(e.namespaces,(function(a){-1===a.namespace.indexOf(e.searchNamespaces)&&-1===a.prefix.indexOf(e.searchNamespaces)||e.matchedElements.push(a)}))};e.saveNamespace=function(a,s){return e.loader=!0,o.updateNamespacePrefix(t.getActiveRepository(),s,a).then((function(){e.getNamespaces(),n.success(p.instant("namespace.saved")),e.loader=!1})).catch((function(a){const t=getError(a);return n.error(t,p.instant("common.error")),e.loader=!1,Promise.reject(a)}))},e.editPrefix=function(a,s){e.loader=!0,i.getPrefix(t.getActiveRepository(),{from:a,to:s,location:t.getActiveRepositoryObject().location}).success((function(){e.getNamespaces(),e.loader=!1})).error((function(a){const t=getError(a);n.error(t,p.instant("common.error")),e.loader=!1}))};e.editPrefixAndNamespace=async(e,a,t)=>{try{const n=a;let s=e;if(e||(s=""),!v(s,n))return"Prefix or namespace is invalid";const r=t.prefix;return d(s,r)&&await c.openSimpleModal({title:p.instant("namespace.confirm.replace"),message:p.instant("namespace.already.exists.msg"),warning:!0}).result,f(s,r,n)}catch(e){return"Prefix overwrite cancelled"}};const d=(a,t)=>!!e.namespaces.find(e=>e.prefix===a&&t!==a),f=(a,t,n)=>e.saveNamespace(t,n).then((function(){t!==a&&e.editPrefix(t,a)}));e.addNamespace=function(){if(e.namespace.prefix||(e.namespace.prefix=""),!v(e.namespace.prefix,e.namespace.namespace))return;e.selectedAll=!1;let a=!1;for(let t=0;t<e.namespaces.length;t++)e.namespaces[t].prefix===e.namespace.prefix&&(a=!0);a?c.openSimpleModal({title:p.instant("namespace.confirm.replace"),message:p.instant("namespace.already.exists.msg"),warning:!0}).result.then(u):u()};const u=()=>{e.saveNamespace(e.namespace.prefix,e.namespace.namespace).then(()=>{e.namespace.namespace="",e.namespace.prefix="",setTimeout(()=>{e.form.$setUntouched(),e.form.$setPristine()})}).catch(()=>{})};e.removeNamespace=function(e){c.openSimpleModal({title:p.instant("common.confirm.delete"),message:p.instant("namespace.warning.delete.msg",{prefix:e.prefix}),warning:!0}).result.then((function(){g(e)}))},e.checkAll=function(){angular.forEach(e.displayedNamespaces,(function(a){a.selected=e.selectedAll}))},e.deleteSelected=function(){let a=!1;angular.forEach(e.displayedNamespaces,(function(t){a||t.selected&&(a=!0,c.openSimpleModal({title:p.instant("common.confirm.delete"),message:p.instant("namespace.warning.delete.selected"),warning:!0}).result.then((function(){e.loader=!0;const a=[];angular.forEach(e.displayedNamespaces,(function(e){e.selected&&a.push(e)})),g(a.shift(),a),e.selectedAll=!1}),(function(){e.getNamespaces(),e.selectedAll=!1,e.searchNamespaces=""})))}))};const g=(a,s)=>{let r;r="object"==typeof a?a.prefix:a,o.deleteNamespacePrefix(t.getActiveRepository(),r).success((function(){s&&s.length>0?(a=s.shift(),g(a,s)):(e.selectedAll=!1,e.namespace={},e.getNamespaces(),e.searchNamespaces="",e.haveSelected=!1,e.loader=!1,e.displayedNamespaces=[],void 0===s?n.success(p.instant("namespace.prefix.deleted.successfully",{prefix:r}),""):n.success(p.instant("namespace.selected.namespaces.deleted.successfully"),""))})).error((function(a){const t=getError(a);n.error(t,p.instant("common.error")),e.loader=!1}))};e.checkIfSelectedNamespace=function(){e.haveSelected=!1,angular.forEach(e.namespaces,(function(a){a.selected&&(e.haveSelected=!0)}))};const h=function(){angular.forEach(e.namespaces,(function(e){e.selected=!1}))},v=(e,a)=>function(e){return""===e||e.match(s)}(e)?!angular.isUndefined(a)&&""!==a||(n.error(p.instant("namespace.warning.provide.namespace"),p.instant("common.error")),!1):(n.error(p.instant("namespace.invalid.prefix",{prefix:e},p.instant("common.error"))),!1)}]),n.controller("StandartModalCtrl",["$scope","$uibModalInstance",function(e,a){e.ok=function(){a.close(!0)},e.cancel=function(){a.dismiss("cancel")}}])},300:function(e,a){angular.module("graphdb.framework.namespaces.directives",["ngRoute"]).directive("loaderPostRepeatDirective",["$timeout",function(e){return function(a){a.$last&&e((function(){a.$parent.loader=!1}),0)}}])},379:function(e,a,t){"use strict";t.r(a);t(9),t(40),t(41),t(299),t(300),t(118),t(651);angular.module("graphdb.framework.namespaces",["LocalStorageModule","xeditable","ngAnimate","ngRoute","toastr","graphdb.framework.namespaces.controllers","graphdb.framework.namespaces.directives","graphdb.framework.core.services.repositories","graphdb.framework.core.directives","graphdb.framework.core.directives.paginations"]).run(["editableOptions",function(e){e.theme="bs3"}])}}]);
1
+ (window.webpackJsonp=window.webpackJsonp||[]).push([[58,146,276,277],{118:function(e,a){angular.module("graphdb.framework.core.directives.paginations",[]).directive("paginations",["$translate","$rootScope","$compile",function(e,a,t){return{link:function(e,n){const s=()=>{const a=t('<uib-pagination class="nav navbar-right" total-items="matchedElements.length" items-per-page="pageSize" ng-model="page" ng-change="changePagination()" direction-links="false" boundary-links="true" max-size="5" rotate="true" first-text="{{\'paginator.first.page.label\' | translate}}" last-text="{{\'paginator.last.page.label\' | translate}}"></uib-pagination>')(e);n.html(a)};s();const r=a.$on("$translateChangeSuccess",s);e.$on("$destroy",r)}}}])},299:function(e,a,t){"use strict";t.r(a);t(9),t(42),t(41),t(49);const n=angular.module("graphdb.framework.namespaces.controllers",["ui.bootstrap","graphdb.framework.core.services.repositories","graphdb.framework.core.services.jwtauth","graphdb.framework.rest.repositories.service","graphdb.framework.rest.rdf4j.repositories.service","toastr"]),s=function(){const e="[A-Z]|[a-z]|[À-Ö]|[Ø-ö]|[ø-˿]|[Ͱ-ͽ]|[Ϳ-῿]|[‌-‍]|[⁰-↏]|[Ⰰ-⿯]|[、-퟿]|[豈-﷏]|[ﷰ-�]",a="[A-Z]|[a-z]|[À-Ö]|[Ø-ö]|[ø-˿]|[Ͱ-ͽ]|[Ϳ-῿]|[‌-‍]|[⁰-↏]|[Ⰰ-⿯]|[、-퟿]|[豈-﷏]|[ﷰ-�]|_|-|[0-9]|·|[̀-ͯ]|[‿-⁀]";return new RegExp("^(?:"+e+")(?:(?:"+a+"|\\.)*(?:"+a+"))?$")}();n.controller("NamespacesCtrl",["$scope","$http","$repositories","toastr","$uibModal","ModalService","RepositoriesRestService","RDF4JRepositoriesRestService","$translate",function(e,a,t,n,r,c,i,o,p){e.namespaces={},e.namespace={},e.loader=!1,e.haveSelected=!1,e.pageSizeOptions=[10,20,50,100],e.page=1,e.pageSize=e.pageSizeOptions[0],e.displayedNamespaces=[],e.getNamespaces=function(){t.getActiveRepository()&&(e.loader=!0,e.namespaces={},o.getNamespaces(t.getActiveRepository()).success((function(a){e.namespaces=a.results.bindings.map((function(e){return{prefix:e.prefix.value,namespace:e.namespace.value}})),e.namespaces.length>0&&(e.namespaces.sort((function(e,a){const t=e.prefix.toUpperCase(),n=a.prefix.toUpperCase();return t<n?-1:t>n?1:0})),e.matchedElements=e.namespaces,l()),0===e.namespaces.length&&(e.loader=!1)})).error((function(a){const t=getError(a);n.error(t),e.loader=!1})))};const l=function(){angular.isDefined(e.namespaces)&&(e.displayedNamespaces=e.namespaces.slice(e.pageSize*(e.page-1),e.pageSize*e.page))};e.changePageSize=function(a){$(".ot-graph-page-size").removeClass("active"),e.page=1,e.searchNamespaces="",a&&(e.getNamespaces(),e.pageSize=a)},e.$watch("matchedElements",(function(){angular.isDefined(e.matchedElements)&&(e.displayedNamespaces=e.matchedElements.slice(e.pageSize*(e.page-1),e.pageSize*e.page))})),e.$watch((function(){return t.getActiveRepository()}),(function(){e.searchNamespaces="",e.getNamespaces(),e.selectedAll=!1})),e.onNamespaceSearch=function(){e.haveSelected=!1,e.selectedAll=!1,e.matchedElements=[],h(),m()};const m=function(){angular.forEach(e.namespaces,(function(a){-1===a.namespace.indexOf(e.searchNamespaces)&&-1===a.prefix.indexOf(e.searchNamespaces)||e.matchedElements.push(a)}))};e.saveNamespace=function(a,s){return e.loader=!0,o.updateNamespacePrefix(t.getActiveRepository(),s,a).then((function(){e.getNamespaces(),n.success(p.instant("namespace.saved")),e.loader=!1})).catch((function(a){const t=getError(a);return n.error(t,p.instant("common.error")),e.loader=!1,Promise.reject(a)}))},e.editPrefix=function(a,s){e.loader=!0,i.getPrefix(t.getActiveRepository(),{from:a,to:s,location:t.getActiveRepositoryObject().location}).success((function(){e.getNamespaces(),e.loader=!1})).error((function(a){const t=getError(a);n.error(t,p.instant("common.error")),e.loader=!1}))};e.editPrefixAndNamespace=async(e,a,t)=>{try{const n=a;let s=e;if(e||(s=""),!v(s,n))return"Prefix or namespace is invalid";const r=t.prefix;return d(s,r)&&await c.openSimpleModal({title:p.instant("namespace.confirm.replace"),message:p.instant("namespace.already.exists.msg"),warning:!0}).result,f(s,r,n)}catch(e){return"Prefix overwrite cancelled"}};const d=(a,t)=>!!e.namespaces.find(e=>e.prefix===a&&t!==a),f=(a,t,n)=>e.saveNamespace(t,n).then((function(){t!==a&&e.editPrefix(t,a)}));e.addNamespace=function(){if(e.namespace.prefix||(e.namespace.prefix=""),!v(e.namespace.prefix,e.namespace.namespace))return;e.selectedAll=!1;let a=!1;for(let t=0;t<e.namespaces.length;t++)e.namespaces[t].prefix===e.namespace.prefix&&(a=!0);a?c.openSimpleModal({title:p.instant("namespace.confirm.replace"),message:p.instant("namespace.already.exists.msg"),warning:!0}).result.then(u):u()};const u=()=>{e.saveNamespace(e.namespace.prefix,e.namespace.namespace).then(()=>{e.namespace.namespace="",e.namespace.prefix="",setTimeout(()=>{e.form.$setUntouched(),e.form.$setPristine()})}).catch(()=>{})};e.removeNamespace=function(e){c.openSimpleModal({title:p.instant("common.confirm.delete"),message:p.instant("namespace.warning.delete.msg",{prefix:e.prefix}),warning:!0}).result.then((function(){g(e)}))},e.checkAll=function(){angular.forEach(e.displayedNamespaces,(function(a){a.selected=e.selectedAll}))},e.deleteSelected=function(){let a=!1;angular.forEach(e.displayedNamespaces,(function(t){a||t.selected&&(a=!0,c.openSimpleModal({title:p.instant("common.confirm.delete"),message:p.instant("namespace.warning.delete.selected"),warning:!0}).result.then((function(){e.loader=!0;const a=[];angular.forEach(e.displayedNamespaces,(function(e){e.selected&&a.push(e)})),g(a.shift(),a),e.selectedAll=!1}),(function(){e.getNamespaces(),e.selectedAll=!1,e.searchNamespaces=""})))}))};const g=(a,s)=>{let r;r="object"==typeof a?a.prefix:a,o.deleteNamespacePrefix(t.getActiveRepository(),r).success((function(){s&&s.length>0?(a=s.shift(),g(a,s)):(e.selectedAll=!1,e.namespace={},e.getNamespaces(),e.searchNamespaces="",e.haveSelected=!1,e.loader=!1,e.displayedNamespaces=[],void 0===s?n.success(p.instant("namespace.prefix.deleted.successfully",{prefix:r}),""):n.success(p.instant("namespace.selected.namespaces.deleted.successfully"),""))})).error((function(a){const t=getError(a);n.error(t,p.instant("common.error")),e.loader=!1}))};e.checkIfSelectedNamespace=function(){e.haveSelected=!1,angular.forEach(e.namespaces,(function(a){a.selected&&(e.haveSelected=!0)}))};const h=function(){angular.forEach(e.namespaces,(function(e){e.selected=!1}))},v=(e,a)=>function(e){return""===e||e.match(s)}(e)?!angular.isUndefined(a)&&""!==a||(n.error(p.instant("namespace.warning.provide.namespace"),p.instant("common.error")),!1):(n.error(p.instant("namespace.invalid.prefix",{prefix:e},p.instant("common.error"))),!1)}]),n.controller("StandartModalCtrl",["$scope","$uibModalInstance",function(e,a){e.ok=function(){a.close(!0)},e.cancel=function(){a.dismiss("cancel")}}])},300:function(e,a){angular.module("graphdb.framework.namespaces.directives",["ngRoute"]).directive("loaderPostRepeatDirective",["$timeout",function(e){return function(a){a.$last&&e((function(){a.$parent.loader=!1}),0)}}])},380:function(e,a,t){"use strict";t.r(a);t(9),t(40),t(41),t(299),t(300),t(118),t(652);angular.module("graphdb.framework.namespaces",["LocalStorageModule","xeditable","ngAnimate","ngRoute","toastr","graphdb.framework.namespaces.controllers","graphdb.framework.namespaces.directives","graphdb.framework.core.services.repositories","graphdb.framework.core.directives","graphdb.framework.core.directives.paginations"]).run(["editableOptions",function(e){e.theme="bs3"}])}}]);
@@ -1 +1 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([[6,49,66,79,80,103,105,106,107,270,271,272,273,274,318],{110:function(e,t,s){"use strict";s.r(t),s.d(t,"ChatModel",(function(){return a})),s.d(t,"ChatByDayModel",(function(){return i})),s.d(t,"ChatsListModel",(function(){return o}));var n=s(95),r=s(20);class a{static getEmptyChat(){const e={name:"· · ·",timestamp:Math.floor(Date.now()/1e3)};return new a(e,Object(r.md5HashGenerator)())}constructor(e,t){this.hashGenerator=t,this._id=e.id,this._name=e.name,this._timestamp=e.timestamp,this._chatHistory=e.chatHistory||new n.ChatItemsListModel,this.hash=this.generateHash()}generateHash(){return this.hashGenerator(JSON.stringify(this))}get id(){return this._id}set id(e){this._id=e}get name(){return this._name}set name(e){this.generateHash(),this._name=e}get timestamp(){return this._timestamp}set timestamp(e){this._timestamp=e}get chatHistory(){return this._chatHistory}set chatHistory(e){this._chatHistory=e||new n.ChatItemsListModel}toRenameRequestPayload(){return{name:this._name}}}class i{constructor(e){this._day=e.day,this._timestamp=e.timestamp,this._chats=e.chats}get day(){return this._day}set day(e){this._day=e}get timestamp(){return this._timestamp}set timestamp(e){this._timestamp=e}get chats(){return this._chats}set chats(e){this._chats=e}}class o{constructor(e){this._chats=e||[],this._chatsByDay=[],this.sortByTime(),this.updateChatsByDay()}sortByTime(){this._chats.sort((e,t)=>t.timestamp-e.timestamp)}updateChatTimestamp(e,t){const s=this._chats.find(t=>t.id===e);s&&(s.timestamp=t,this.sortByTime(),this.updateChatsByDay())}updateChatName(e,t){const s=this._chats.find(t=>t.id===e);s&&(s.name=t)}deleteChat(e){this._chats=this._chats.filter(t=>t.id!==e.id),this.sortByTime(),this.updateChatsByDay()}updateChatsByDay(){this._chatsByDay=[],this._chats.forEach(e=>{const t=new Date(1e3*e.timestamp).toDateString(),s=this._chatsByDay.find(e=>e.day===t);s?s.chats.push(e):this._chatsByDay.push(new i({day:t,timestamp:1e3*e.timestamp,chats:[e]}))})}appendChat(e){this._chats.push(e),this.sortByTime(),this.updateChatsByDay()}replaceChat(e,t){this._chats=this._chats.map(s=>s.id===t.id?e:s),this.sortByTime(),this.updateChatsByDay()}isEmpty(){return 0===this._chats.length}getFirstChat(){return this._chats[0]}deselectAll(){this._chats.forEach(e=>{e.selected=!1})}selectChat(e){this.deselectAll(),this._chats.forEach(t=>{t.selected=t.id===e.id})}getChat(e){return this._chats.find(t=>t.id===e)}getNonPersistedChat(){return this._chats.find(e=>!e.id)}renameChat(e){const t=this._chats.find(t=>t.id===e.id);t&&(t.name=e.name)}get chats(){return this._chats}set chats(e){this._chats=e}get chatsByDay(){return this._chatsByDay}set chatsByDay(e){this._chatsByDay=e}}},114:function(e,t,s){"use strict";s.r(t);var n=s(239),r=(s(142),s(150)),a=s(172),i=s(241),o=s(242);function h(e,t){return{getConversation:t=>e.getConversation(t).then(e=>Object(n.chatModelMapper)(e.data)),renameConversation:t=>e.renameConversation(t.id,t.toRenameRequestPayload()).then(e=>Object(n.chatModelMapper)(e.data)),exportConversation:t=>e.exportConversation(t).then((function(e){const t=e.data,s=e.headers()["content-disposition"];let n="chat-export";return s&&(n=s.split("filename=")[1],n=n.substring(0,n.length)),{data:t,filename:n}})),askQuestion:t=>e.askQuestion(t.toAskRequestPayload()).then(e=>Object(r.chatAnswerModelMapper)(e.data)),continueChatRun:t=>{const s=t.toContinueRunRequestPayload();return e.continueChatRun(s).then(e=>Object(r.chatAnswerModelMapper)(e.data))},getConversations:(t,s)=>e.getConversations().then(e=>Object(n.chatsListMapper)(e.data)),deleteConversation:t=>e.deleteConversation(t),createConversation:t=>e.createConversation(t.toCreateChatRequestPayload()).then(e=>Object(r.chatAnswerModelMapper)(e.data)),getAgents:()=>{const s=t.getLocalReadablGraphdbRepositoryIds();return e.getAgents().then(e=>Object(a.agentListMapper)(e.data,s))},getAgent:s=>{const n=t.getLocalReadablGraphdbRepositoryIds();return e.getAgent(s).then(e=>Object(a.agentModelMapper)(e.data,n))},createAgent:s=>{const n=t.getLocalReadablGraphdbRepositoryIds();return e.createAgent(s).then(e=>Object(a.agentModelMapper)(e.data,n))},editAgent:s=>{const n=t.getLocalReadablGraphdbRepositoryIds();return e.editAgent(s).then(e=>Object(a.agentModelMapper)(e.data,n))},deleteAgent:t=>e.deleteAgent(t),explainResponse:(t,s)=>e.explainResponse(t.toExplainResponsePayload(s)).then(e=>Object(i.explainResponseMapper)(e.data)),getDefaultAgent:()=>{const s=t.getLocalReadablGraphdbRepositoryIds();return e.getAgentDefaultValues().then(e=>Object(a.agentModelMapper)(e.data,s))},explainAgentSettings:t=>e.explainAgentSettings(t).then(e=>Object(o.agentInstructionsExplainMapper)(e.data))}}angular.module("graphdb.framework.core.services.ttyg-service",["graphdb.framework.rest.ttyg.service"]).factory("TTYGService",h),h.$inject=["TTYGRestService","$repositories"]},120:function(e,t,s){"use strict";s.r(t),s.d(t,"TtygRestServiceFakeBackend",(function(){return a}));var n=s(18),r=s(88);class a{constructor(){this.conversations=[...i]}getConversations(){return new Promise(e=>{setTimeout(()=>e({data:Object(n.cloneDeep)(this.conversations)}),2e3)})}getConversation(e){return new Promise(t=>{setTimeout(()=>t({data:Object(n.cloneDeep)(this.conversations.find(t=>t.id===e))}),2e3)})}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:""+e.question,role:r.CHAT_MESSAGE_ROLE.USER,timestamp:Math.floor(Date.now()/1e3)},s=this.conversations.find(t=>t.id===e.conversationId),n={id:e.conversationId,name:s?s.name:"Han Solo is a character in the Star Wars...",timestamp:Math.floor(Date.now()/1e3),messages:[{id:"msg_Bn07kVDCYT1qmgu1G7Zw0KNe_"+Date.now(),conversationId:e.conversationId,role:r.CHAT_MESSAGE_ROLE.ASSISTANT,agentId:e.agentId,message:'Certainly! Here\'s a random example that incorporates code, JSON, and a SPARQL query:\n\n### Code (Python)\n\n```python\ndef greet(name):\n return f"Hello, {name}!"\n\nprint(greet("World"))\n```\n\n### JSON\n\n```json\n{\n "greeting": "Hello",\n "target": "World",\n "language": "English"\n}\n```\n\n### SPARQL Query\n\n```sparql\nSELECT ?person ?name\nWHERE {\n ?person a ex:Person .\n ?person ex:hasName ?name .\n}\nLIMIT 10\n```\n\nThis example demonstrates a simple Python function for greeting, a JSON object representing a greeting structure, and a SPARQL query to retrieve names of persons from a dataset.',timestamp:Math.floor(Date.now()/1e3),name:null},{id:"msg_Bn07kVDCYT1qmgu1G7Zw0KNeс_"+Date.now(),conversationId:e.conversationId,role:r.CHAT_MESSAGE_ROLE.ASSISTANT,agentId:e.agentId,message:`Reply to '${e.question}' It seems there was an error with the query. Let me rectify this and try again.`,timestamp:Math.floor(Date.now()/1e3),name:null}]};return s&&(s.messages.push(t),s.messages.push(...n.messages)),new Promise(e=>setTimeout(()=>e({data:n}),2e3))}continueChatRun(e){alert("continueChatRun() not implemented")}deleteConversation(e){return this.conversations=this.conversations.filter(t=>t.id!==e),new Promise(e=>setTimeout(()=>e(),2e3))}createConversation(e){const t={id:"thread_"+this.conversations.length,name:"Thread "+this.conversations.length,timestamp:Math.floor(Date.now()/1e3),messages:[]};this.conversations.unshift(t);const s=Object(n.cloneDeep)(e);return s.conversationId=t.id,this.askQuestion(s)}getAgents(){return new Promise(e=>setTimeout(()=>e({data:[...o]}),2e3))}getAgent(e){return Promise.resolve({data:Object(n.cloneDeep)(o.find(t=>t.id===e))})}createAgent(e){return"err"===e.name?new Promise((e,t)=>setTimeout(()=>t({status:500,message:"Internal Server Error"}),2e3)):(o.push(e),new Promise(t=>setTimeout(()=>t({data:e}),2e3)))}editAgent(e){return"err"===e.name?new Promise((e,t)=>setTimeout(()=>t({status:500,message:"Internal Server Error"}),2e3)):(o=o.map(t=>t.id===e.id?e:t),new Promise(t=>setTimeout(()=>t({data:e}),2e3)))}deleteAgent(e){return o=o.filter(t=>t.id!==e),Promise.resolve()}getAgentDefaultValues(){return Promise.resolve({data:h})}explainAgentSettings(){return Promise.resolve({data:{}})}simulateHttpError(){return Promise.reject({status:500,message:"Internal Server Error"})}explainResponse(e){return Promise.resolve({data:{conversationId:e.conversationId,answerId:e.answerId,queryMethods:[{name:"sparql_query",rawQuery:'SELECT ?character ?name ?height WHERE {\n ?character a voc:Character;\n rdfs:label ?name;\n voc:height ?height.\n FILTER(?name = "Luke Skywalker" || ?name = "Leia Organa")\n}',query:'SELECT ?character ?name ?height WHERE {\n ?character a voc:Character;\n rdfs:label ?name;\n voc:height ?height.\n FILTER(?name = "Luke Skywalker" || ?name = "Leia Organa")\n}',queryType:"sparql",errorOutput:"Error: org.eclipse.rdf4j.query.MalformedQueryException: org.eclipse.rdf4j.query.parser.sparql.ast.VisitorException: QName 'voc:Character' uses an undefined prefix"},{name:"retrieval_search",rawQuery:'{"queries":[{"query":"pilots that work with Luke Skywalker","filter":{"document_id":"https://swapi.co/resource/human/1"},"top_k":3}]}',query:'{\n "queries" : [ {\n "query" : "pilots that work with Luke Skywalker",\n "filter" : {\n "document_id" : "https://swapi.co/resource/human/1"\n },\n "top_k" : 3\n } ]\n}',queryType:"json",errorOutput:null},{name:"iri_discovery",rawQuery:"Luke Skywalker",query:"PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>\nPREFIX skos: <http://www.w3.org/2004/02/skos/core#>\nPREFIX onto: <http://www.ontotext.com/>\nSELECT ?label ?iri {\n ?label onto:fts ('''Luke~ Skywalker~''' '*') .\n ?iri rdfs:label|skos:prefLabel ?label .\n}",queryType:"sparql",errorOutput:null},{name:"sparql_query",rawQuery:"SELECT ?height WHERE {\n <https://swapi.co/resource/human/1> voc:height ?height.\n}",query:"SELECT ?height WHERE {\n <https://swapi.co/resource/human/1> voc:height ?height.\n}",queryType:"sparql",errorOutput:"Error: org.eclipse.rdf4j.query.MalformedQueryException: org.eclipse.rdf4j.query.parser.sparql.ast.VisitorException: QName 'voc:height' uses an undefined prefix"},{name:"sparql_query",rawQuery:'PREFIX voc: <https://swapi.co/vocabulary/>\nSELECT ?name ?height WHERE {\n ?character voc:height ?height;\n rdfs:label ?name.\n FILTER(?name = "Luke Skywalker" || ?name = "Leia Organa")\n}',query:'PREFIX voc: <https://swapi.co/vocabulary/>\nSELECT ?name ?height WHERE {\n ?character voc:height ?height;\n rdfs:label ?name.\n FILTER(?name = "Luke Skywalker" || ?name = "Leia Organa")\n}',queryType:"sparql",errorOutput:null},{name:"fts_search",rawQuery:"Second Luke",query:"PREFIX onto: <http://www.ontotext.com/>\nDESCRIBE ?iri {\n\t?x onto:fts '''Second Luke''' .\n\t{\n\t\t?x ?p ?iri .\n\t} union {\n\t\t?iri ?p ?x .\n\t}\n}",queryType:"sparql",errorOutput:null},{name:"similarity_search",rawQuery:"Second Luke",query:"PREFIX onto: <http://www.ontotext.com/>\nDESCRIBE ?iri {\n\t?x onto:fts '''Second Luke''' .\n\t{\n\t\t?x ?p ?iri .\n\t} union {\n\t\t?iri ?p ?x .\n\t}\n}",queryType:"sparql",errorOutput:null},{name:"iri_discovery",rawQuery:"Luke Skywalker",query:"PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>\nPREFIX skos: <http://www.w3.org/2004/02/skos/core#>\nPREFIX onto: <http://www.ontotext.com/>\nSELECT ?label ?iri {\n ?label onto:fts ('''Luke~ Skywalker~''' '*') .\n ?iri rdfs:label|skos:prefLabel ?label .\n}",queryType:"sparql",errorOutput:null},{name:"sparql_query",rawQuery:"SELECT ?name ?height WHERE { ?character voc:name ?name ; voc:height ?height . FILTER (?name = 'Luke Skywalker' || ?name = 'Leia Organa') }",query:"SELECT ?name ?height WHERE { ?character voc:name ?name ; voc:height ?height . FILTER (?name = 'Luke Skywalker' || ?name = 'Leia Organa') }",queryType:"sparql",errorOutput:"Error: java.lang.IllegalArgumentException: The following IRIs are not used in the data stored in GraphDB: https://swapi.co/vocabulary/name"},{name:"sparql_query",rawQuery:"SELECT ?character ?height WHERE { ?character voc:height ?height . FILTER (?character = <https://swapi.co/resource/human/1> || ?character = <https://swapi.co/resource/human/5>) }",query:"SELEdCT ?character ?height WHERE { ?character voc:height ?height . FILTER (?character = <https://swapi.co/resource/human/1> || ?character = <https://swapi.co/resource/human/5>) }",queryType:"sparql",errorOutput:null}]}})}}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:"Non existing repo",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},{id:"asst_qMyCpCBmqxV9I2B8UoMfFzc555",name:"agent with long name long long long long long long long long long long long long",model:"gpt-4o",temperature:0,topP:0,seed:null,repositoryId:"Non existing repo",instructions:{systemInstruction:"string\n\nstring",userInstruction:"string"},assistantExtractionMethods:[{ftsMethod:"fts_search"}],maxNumberOfTriplesPerCall:null},{id:"asst_qMyCpCBmqxV9I2B8UoMfFzcр555",name:"Long_agent_with_long_name_long_long_long_long_long_long_long_long_long_long_long_long",model:"gpt-4o",temperature:0,topP:0,seed:null,repositoryId:"Non existing repo",instructions:{systemInstruction:"string\n\nstring",userInstruction:"string"},assistantExtractionMethods:[{ftsMethod:"fts_search"}],maxNumberOfTriplesPerCall:null},{id:"asst_qMyCpCBmqxV9I2B8UoMfFzc55д5",name:"agent with long name long long long long long long long long long long long long",model:"gpt-4o",temperature:0,topP:0,seed:null,repositoryId:"starwars",instructions:{systemInstruction:"string\n\nstring",userInstruction:"string"},assistantExtractionMethods:[{ftsMethod:"fts_search"}],maxNumberOfTriplesPerCall:null},{id:"asst_qMyCpCBmqxV9I2B8UoMfFzcя555",name:"Long_agent_with_long_name_long_long_long_long_long_long_long_long_long_long_long_long",model:"gpt-4o",temperature:0,topP:0,seed:null,repositoryId:"starwars",instructions:{systemInstruction:"string\n\nstring",userInstruction:"string"},assistantExtractionMethods:[{ftsMethod:"fts_search"}],maxNumberOfTriplesPerCall:null}];const h={id:"id",name:"Quadro",model:"gpt-4o",temperature:.7,topP:1,seed:0,repositoryId:"test-repository",instructions:{systemInstruction:"You are a helpful, knowledgeable, and friendly assistant. Your goal is to provide clear and accurate information while being polite, respectful, and professional.",userInstruction:"If you need to write a SPARQL query, use only the classes and properties provided in the schema and don't invent or guess any. Always try to return human-readable names or labels and not only the IRIs. If SPARQL fails to provide the necessary information you can try another tool too."},assistantExtractionMethods:[{method:"sparql_search",ontologyGraph:"http://example.com",sparqlQuery:"CONSTRUCT {?s ?p ?o} WHERE {GRAPH <http://example.org/ontology> {?s ?p ?o .}}"},{method:"fts_search",maxNumberOfTriplesPerCall:0},{method:"similarity_search",similarityIndex:"similarity-index",similarityIndexThreshold:.6,maxNumberOfTriplesPerCall:0},{method:"retrieval_search",retrievalConnectorInstance:"retrieval-connector",queryTemplate:'{"query": "string"}',maxNumberOfTriplesPerCall:0}],additionalExtractionMethods:[{method:"iri_discovery_search"}]}},121:function(e,t,s){"use strict";s.r(t),s.d(t,"ChatAnswerModel",(function(){return n})),s.d(t,"ContinueChatRun",(function(){return r}));class n{constructor(e={}){this._chatId=e.chatId,this._chatName=e.chatName||"",this._timestamp=e.timestamp,this._messages=e.messages||[],this._continueRunId=e.continueRunId}get chatId(){return this._chatId}set chatId(e){this._chatId=e}get chatName(){return this._chatName}set chatName(e){this._chatName=e}get timestamp(){return this._timestamp}set timestamp(e){this._timestamp=e}get messages(){return this._messages}set messages(e){this._messages=e}get continueRunId(){return this._continueRunId}set continueRunId(e){this._continueRunId=e}}class r{constructor(e,t){this._chatItem=e,this._runId=t}get chatId(){return this._chatItem.chatId}toContinueRunRequestPayload(){return{conversationId:this.chatId,runId:this._runId,agentId:this._chatItem.agentId,tzOffset:-(new Date).getTimezoneOffset()}}}},131:function(e,t,s){"use strict";s.r(t),s.d(t,"ExplainResponseModel",(function(){return n})),s.d(t,"ExplainQueryMethodsListModel",(function(){return r})),s.d(t,"ExplainQueryMethodModel",(function(){return a})),s.d(t,"ExplainQueryType",(function(){return i}));class n{constructor(e={}){this._chatId=e.chatId,this._answerId=e.answerId,this._queryMethods=e.queryMethods,this._expanded=void 0===e.expanded||e.expanded}get chatId(){return this._chatId}set chatId(e){this._chatId=e}get answerId(){return this._answerId}set answerId(e){this._answerId=e}get queryMethods(){return this._queryMethods}set queryMethods(e){this._queryMethods=e}get expanded(){return this._expanded}set expanded(e){this._expanded=e}}class r{constructor(e=[]){this._items=e}get items(){return this._items}set items(e){this._items=e}}class a{constructor(e={}){this._name=e.name,this._rawQuery=e.rawQuery,this._query=e.query,this._queryType=e.queryType,this._errorMessage=e.errorOutput}get name(){return this._name}set name(e){this._name=e}get rawQuery(){return this._rawQuery}set rawQuery(e){this._rawQuery=e}get query(){return this._query}set query(e){this._query=e}get queryType(){return this._queryType}set queryType(e){this._queryType=e}get errorMessage(){return this._errorMessage}set errorMessage(e){this._errorMessage=e}}const i={SPARQL:"sparql",JSON:"json",OTHER:"other"}},142:function(e,t,s){"use strict";s.r(t);var n=s(120);angular.module("graphdb.framework.rest.ttyg.service",[]).factory("TTYGRestService",r),r.$inject=["$http"];function r(e){new n.TtygRestServiceFakeBackend;return{getConversation:t=>e.get("rest/chat/conversations/"+t),renameConversation:(t,s)=>e.put("rest/chat/conversations/"+t,s),exportConversation:t=>e.get("rest/chat/conversations/export/"+t,{responseType:"blob"}),askQuestion:t=>e.post("rest/chat/conversations",t),continueChatRun:t=>e.post("rest/chat/conversations/continue",t),getConversations:()=>e.get("rest/chat/conversations"),deleteConversation:t=>e.delete("rest/chat/conversations/"+t),createConversation:(t={})=>e.post("rest/chat/conversations",t),getAgents:()=>e.get("rest/chat/agents"),getAgent:t=>e.get("rest/chat/agents/"+t),createAgent:t=>e.post("rest/chat/agents",t),editAgent:t=>e.put("rest/chat/agents",t),deleteAgent:t=>e.delete("rest/chat/agents/"+t),explainResponse:(t={})=>e.post("rest/chat/conversations/explain",t),getAgentDefaultValues:()=>e.get("rest/chat/agents/default"),explainAgentSettings:t=>e.post("rest/chat/agents/explain",t)}}},150:function(e,t,s){"use strict";s.r(t),s.d(t,"chatMessageModelListMapper",(function(){return i})),s.d(t,"chatItemsModelMapper",(function(){return o})),s.d(t,"chatMessageModelMapper",(function(){return h})),s.d(t,"chatAnswerModelMapper",(function(){return u}));var n=s(88),r=s(95),a=s(121);const i=e=>e?e.map(e=>h(e)):[],o=(e=[])=>{const t=[];let s;return e.forEach(e=>{const a=e.conversationId;n.CHAT_MESSAGE_ROLE.USER===e.role?(s&&t.push(s),s=new r.ChatItemModel(a,h(e))):(s||(s=new r.ChatItemModel(a,null)),s.answers.push(h(e)),s.agentId=e.agentId)}),s&&t.push(s),new r.ChatItemsListModel(t)},h=e=>{if(e)return new n.ChatMessageModel({id:e.id,role:e.role,message:e.message,timestamp:e.timestamp,data:e})},u=e=>{if(e)return new a.ChatAnswerModel({chatId:e.id,chatName:e.name,timestamp:e.timestamp,messages:i(e.messages),continueRunId:e.continueRunId})}},172:function(e,t,s){"use strict";s.r(t),s.d(t,"agentFormModelMapper",(function(){return h})),s.d(t,"agentListMapper",(function(){return c})),s.d(t,"agentModelMapper",(function(){return l}));var n=s(115),r=s(240),a=s(92),i=s(20),o=s(106);const h=(e,t,s)=>{if(!e)return;const n=new r.AgentFormModel;return n.id=e.id||t.id,n.name=e.name||t.name,n.repositoryId=e.repositoryId||t.repositoryId,n.model=e.model||t.model,n.temperature.value=void 0!==e.temperature?e.temperature:t.temperature,n.topP.value=void 0!==e.topP?e.topP:t.topP,n.seed=e.seed||t.seed,n.instructions=u(e.instructions,t.instructions),d(n,s,t.assistantExtractionMethods,e.assistantExtractionMethods),n.additionalExtractionMethods.additionalExtractionMethods.forEach(t=>{t.selected=e.additionalExtractionMethods&&e.additionalExtractionMethods.some(e=>e.method===t.method)}),n},u=(e,t)=>{if(!e&&!t)return;const s=e&&e.systemInstruction||t.systemInstruction,n=e&&e.userInstruction||t.userInstruction;return new r.AgentInstructionsFormModel({systemInstruction:s,userInstruction:n,defaultSystemInstruction:t.systemInstruction,defaultUserInstruction:t.userInstruction})},d=(e,t,s,n=[])=>{const i=s.filter(e=>!n.some(t=>t.method===e.method));[...n,...i].forEach(s=>{const i=n.some(e=>e.method===s.method);let h="";i&&"sparql_search"===s.method&&(o.AGENT_OPERATION.CREATE===t?h="":s.sparqlQuery?h="sparqlQuery":s.ontologyGraph&&(h="ontologyGraph"));const u=t===o.AGENT_OPERATION.EDIT||t===o.AGENT_OPERATION.CLONE,d=new r.ExtractionMethodFormModel({selected:u&&i,method:s.method,sparqlOption:h,ontologyGraph:s.ontologyGraph,addMissingNamespaces:s.addMissingNamespaces,sparqlQuery:s.sparqlQuery&&new a.TextFieldModel({value:s.sparqlQuery,minLength:1,maxLength:2380}),similarityIndex:s.similarityIndex,similarityIndexThreshold:s.similarityIndexThreshold&&new a.NumericRangeModel({value:s.similarityIndexThreshold,minValue:0,maxValue:1,step:.1}),maxNumberOfTriplesPerCall:0===s.maxNumberOfTriplesPerCall?null:s.maxNumberOfTriplesPerCall,queryTemplate:s.queryTemplate&&new a.TextFieldModel({value:s.queryTemplate,minLength:1,maxLength:2380}),retrievalConnectorInstance:s.retrievalConnectorInstance});e.assistantExtractionMethods.setExtractionMethod(d)})},c=(e,t)=>{if(!e)return new n.AgentListModel;const s=e.map(e=>l(e,t));return new n.AgentListModel(s)},l=(e,t)=>{if(!e)return;const s=Object(i.md5HashGenerator)();return new n.AgentModel({id:e.id,name:e.name,repositoryId:e.repositoryId,isRepositoryDeleted:!t.includes(e.repositoryId),model:e.model,temperature:e.temperature,topP:e.topP,seed:e.seed,instructions:_(e.instructions),assistantExtractionMethods:m(e.assistantExtractionMethods),additionalExtractionMethods:g(e.additionalExtractionMethods)},s)},m=e=>{if(e)return e.map(e=>p(e))},p=e=>{if(e)return new n.ExtractionMethodModel({method:e.method,ontologyGraph:e.ontologyGraph,addMissingNamespaces:e.addMissingNamespaces,sparqlQuery:e.sparqlQuery,similarityIndex:e.similarityIndex,similarityIndexThreshold:e.similarityIndexThreshold,maxNumberOfTriplesPerCall:e.maxNumberOfTriplesPerCall,queryTemplate:e.queryTemplate,retrievalConnectorInstance:e.retrievalConnectorInstance})},g=e=>{if(e)return e.map(e=>y(e))},y=e=>{if(e)return new n.AdditionalExtractionMethodModel({method:e.method})},_=e=>{if(e)return new n.AgentInstructionsModel({systemInstruction:e.systemInstruction,userInstruction:e.userInstruction})}},173:function(e,t,s){"use strict";s.r(t),s.d(t,"AgentInstructionsExplain",(function(){return n})),s.d(t,"AgentInstructionsExplainList",(function(){return r}));class n{constructor(e){this._type=e.type,this._content=e.content,this._size=e.size}get size(){return this._size}set size(e){this._size=e}get content(){return this._content}set content(e){this._content=e}get type(){return this._type}set type(e){this._type=e}}class r{constructor(e){this._instructions=e.instructions}get instructions(){return this._instructions}set instructions(e){this._instructions=e}}},239:function(e,t,s){"use strict";s.r(t),s.d(t,"chatsListMapper",(function(){return h})),s.d(t,"chatModelMapper",(function(){return u}));var n=s(110),r=s(20),a=s(150),i=s(95);const o=Object(r.md5HashGenerator)(),h=e=>{if(!e)return new n.ChatsListModel;const t=e.map(e=>u(e));return new n.ChatsListModel(t)},u=e=>{if(e)return new n.ChatModel({id:e.id,name:e.name,timestamp:e.timestamp,chatHistory:e.messages&&e.messages.length?Object(a.chatItemsModelMapper)(e.messages):new i.ChatItemsListModel},o)}},241:function(e,t,s){"use strict";s.r(t),s.d(t,"explainResponseMapper",(function(){return r})),s.d(t,"explainQueryMethodsListMapper",(function(){return a})),s.d(t,"explainQueryMethodMapper",(function(){return i}));var n=s(131);const r=e=>new n.ExplainResponseModel({chatId:e.conversationId,answerId:e.answerId,queryMethods:a(e.queryMethods)}),a=(e=[])=>new n.ExplainQueryMethodsListModel(e.map(i)),i=e=>new n.ExplainQueryMethodModel(e)},242:function(e,t,s){"use strict";s.r(t),s.d(t,"agentInstructionsExplainMapper",(function(){return r}));var n=s(173);const r=e=>e?e.map(e=>new n.AgentInstructionsExplain(e)):new n.AgentInstructionsExplainList([])},88: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=1e3*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"}},95:function(e,t,s){"use strict";s.r(t),s.d(t,"ChatItemModel",(function(){return r})),s.d(t,"ChatItemsListModel",(function(){return a}));var n=s(88);class r{constructor(e,t){this._chatId=e,this._agentId=void 0,this._question=t,this._answers=[]}get chatId(){return this._chatId}set chatId(e){this._chatId=e}get agentId(){return this._agentId}set agentId(e){this._agentId=e}get question(){return this._question}set question(e){this._question=e}get answers(){return this._answers}set answers(e){this._answers=e}setQuestionMessage(e){this._question||(this._question=new n.ChatMessageModel({role:n.CHAT_MESSAGE_ROLE.USER})),this._question.message=e}getQuestionMessage(){return this._question.message}toCreateChatRequestPayload(){return{agentId:this._agentId,question:this._question.message}}toAskRequestPayload(){return{conversationId:this._chatId,agentId:this._agentId,question:this._question.message,tzOffset:-(new Date).getTimezoneOffset()}}toExplainResponsePayload(e){return{conversationId:this._chatId,answerId:e}}}class a{constructor(e=[]){this._items=e}isEmpty(){return 0===this._items.length}appendItem(e){this._items.push(e)}get items(){return this._items}set items(e){this._items=e||[]}getLast(){if(!this.isEmpty())return this._items[this._items.length-1]}}}}]);
1
+ (window.webpackJsonp=window.webpackJsonp||[]).push([[6,49,66,79,80,103,105,106,107,270,271,272,273,274,319],{110:function(e,t,s){"use strict";s.r(t),s.d(t,"ChatModel",(function(){return a})),s.d(t,"ChatByDayModel",(function(){return i})),s.d(t,"ChatsListModel",(function(){return o}));var n=s(95),r=s(20);class a{static getEmptyChat(){const e={name:"· · ·",timestamp:Math.floor(Date.now()/1e3)};return new a(e,Object(r.md5HashGenerator)())}constructor(e,t){this.hashGenerator=t,this._id=e.id,this._name=e.name,this._timestamp=e.timestamp,this._chatHistory=e.chatHistory||new n.ChatItemsListModel,this.hash=this.generateHash()}generateHash(){return this.hashGenerator(JSON.stringify(this))}get id(){return this._id}set id(e){this._id=e}get name(){return this._name}set name(e){this.generateHash(),this._name=e}get timestamp(){return this._timestamp}set timestamp(e){this._timestamp=e}get chatHistory(){return this._chatHistory}set chatHistory(e){this._chatHistory=e||new n.ChatItemsListModel}toRenameRequestPayload(){return{name:this._name}}}class i{constructor(e){this._day=e.day,this._timestamp=e.timestamp,this._chats=e.chats}get day(){return this._day}set day(e){this._day=e}get timestamp(){return this._timestamp}set timestamp(e){this._timestamp=e}get chats(){return this._chats}set chats(e){this._chats=e}}class o{constructor(e){this._chats=e||[],this._chatsByDay=[],this.sortByTime(),this.updateChatsByDay()}sortByTime(){this._chats.sort((e,t)=>t.timestamp-e.timestamp)}updateChatTimestamp(e,t){const s=this._chats.find(t=>t.id===e);s&&(s.timestamp=t,this.sortByTime(),this.updateChatsByDay())}updateChatName(e,t){const s=this._chats.find(t=>t.id===e);s&&(s.name=t)}deleteChat(e){this._chats=this._chats.filter(t=>t.id!==e.id),this.sortByTime(),this.updateChatsByDay()}updateChatsByDay(){this._chatsByDay=[],this._chats.forEach(e=>{const t=new Date(1e3*e.timestamp).toDateString(),s=this._chatsByDay.find(e=>e.day===t);s?s.chats.push(e):this._chatsByDay.push(new i({day:t,timestamp:1e3*e.timestamp,chats:[e]}))})}appendChat(e){this._chats.push(e),this.sortByTime(),this.updateChatsByDay()}replaceChat(e,t){this._chats=this._chats.map(s=>s.id===t.id?e:s),this.sortByTime(),this.updateChatsByDay()}isEmpty(){return 0===this._chats.length}getFirstChat(){return this._chats[0]}deselectAll(){this._chats.forEach(e=>{e.selected=!1})}selectChat(e){this.deselectAll(),this._chats.forEach(t=>{t.selected=t.id===e.id})}getChat(e){return this._chats.find(t=>t.id===e)}getNonPersistedChat(){return this._chats.find(e=>!e.id)}renameChat(e){const t=this._chats.find(t=>t.id===e.id);t&&(t.name=e.name)}get chats(){return this._chats}set chats(e){this._chats=e}get chatsByDay(){return this._chatsByDay}set chatsByDay(e){this._chatsByDay=e}}},114:function(e,t,s){"use strict";s.r(t);var n=s(239),r=(s(142),s(150)),a=s(171),i=s(241),o=s(242);function h(e,t){return{getConversation:t=>e.getConversation(t).then(e=>Object(n.chatModelMapper)(e.data)),renameConversation:t=>e.renameConversation(t.id,t.toRenameRequestPayload()).then(e=>Object(n.chatModelMapper)(e.data)),exportConversation:t=>e.exportConversation(t).then((function(e){const t=e.data,s=e.headers()["content-disposition"];let n="chat-export";return s&&(n=s.split("filename=")[1],n=n.substring(0,n.length)),{data:t,filename:n}})),askQuestion:t=>e.askQuestion(t.toAskRequestPayload()).then(e=>Object(r.chatAnswerModelMapper)(e.data)),continueChatRun:t=>{const s=t.toContinueRunRequestPayload();return e.continueChatRun(s).then(e=>Object(r.chatAnswerModelMapper)(e.data))},getConversations:(t,s)=>e.getConversations().then(e=>Object(n.chatsListMapper)(e.data)),deleteConversation:t=>e.deleteConversation(t),createConversation:t=>e.createConversation(t.toCreateChatRequestPayload()).then(e=>Object(r.chatAnswerModelMapper)(e.data)),getAgents:()=>{const s=t.getLocalReadablGraphdbRepositoryIds();return e.getAgents().then(e=>Object(a.agentListMapper)(e.data,s))},getAgent:s=>{const n=t.getLocalReadablGraphdbRepositoryIds();return e.getAgent(s).then(e=>Object(a.agentModelMapper)(e.data,n))},createAgent:s=>{const n=t.getLocalReadablGraphdbRepositoryIds();return e.createAgent(s).then(e=>Object(a.agentModelMapper)(e.data,n))},editAgent:s=>{const n=t.getLocalReadablGraphdbRepositoryIds();return e.editAgent(s).then(e=>Object(a.agentModelMapper)(e.data,n))},deleteAgent:t=>e.deleteAgent(t),explainResponse:(t,s)=>e.explainResponse(t.toExplainResponsePayload(s)).then(e=>Object(i.explainResponseMapper)(e.data)),getDefaultAgent:()=>{const s=t.getLocalReadablGraphdbRepositoryIds();return e.getAgentDefaultValues().then(e=>Object(a.agentModelMapper)(e.data,s))},explainAgentSettings:t=>e.explainAgentSettings(t).then(e=>Object(o.agentInstructionsExplainMapper)(e.data))}}angular.module("graphdb.framework.core.services.ttyg-service",["graphdb.framework.rest.ttyg.service"]).factory("TTYGService",h),h.$inject=["TTYGRestService","$repositories"]},120:function(e,t,s){"use strict";s.r(t),s.d(t,"TtygRestServiceFakeBackend",(function(){return a}));var n=s(18),r=s(88);class a{constructor(){this.conversations=[...i]}getConversations(){return new Promise(e=>{setTimeout(()=>e({data:Object(n.cloneDeep)(this.conversations)}),2e3)})}getConversation(e){return new Promise(t=>{setTimeout(()=>t({data:Object(n.cloneDeep)(this.conversations.find(t=>t.id===e))}),2e3)})}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:""+e.question,role:r.CHAT_MESSAGE_ROLE.USER,timestamp:Math.floor(Date.now()/1e3)},s=this.conversations.find(t=>t.id===e.conversationId),n={id:e.conversationId,name:s?s.name:"Han Solo is a character in the Star Wars...",timestamp:Math.floor(Date.now()/1e3),messages:[{id:"msg_Bn07kVDCYT1qmgu1G7Zw0KNe_"+Date.now(),conversationId:e.conversationId,role:r.CHAT_MESSAGE_ROLE.ASSISTANT,agentId:e.agentId,message:'Certainly! Here\'s a random example that incorporates code, JSON, and a SPARQL query:\n\n### Code (Python)\n\n```python\ndef greet(name):\n return f"Hello, {name}!"\n\nprint(greet("World"))\n```\n\n### JSON\n\n```json\n{\n "greeting": "Hello",\n "target": "World",\n "language": "English"\n}\n```\n\n### SPARQL Query\n\n```sparql\nSELECT ?person ?name\nWHERE {\n ?person a ex:Person .\n ?person ex:hasName ?name .\n}\nLIMIT 10\n```\n\nThis example demonstrates a simple Python function for greeting, a JSON object representing a greeting structure, and a SPARQL query to retrieve names of persons from a dataset.',timestamp:Math.floor(Date.now()/1e3),name:null},{id:"msg_Bn07kVDCYT1qmgu1G7Zw0KNeс_"+Date.now(),conversationId:e.conversationId,role:r.CHAT_MESSAGE_ROLE.ASSISTANT,agentId:e.agentId,message:`Reply to '${e.question}' It seems there was an error with the query. Let me rectify this and try again.`,timestamp:Math.floor(Date.now()/1e3),name:null}]};return s&&(s.messages.push(t),s.messages.push(...n.messages)),new Promise(e=>setTimeout(()=>e({data:n}),2e3))}continueChatRun(e){alert("continueChatRun() not implemented")}deleteConversation(e){return this.conversations=this.conversations.filter(t=>t.id!==e),new Promise(e=>setTimeout(()=>e(),2e3))}createConversation(e){const t={id:"thread_"+this.conversations.length,name:"Thread "+this.conversations.length,timestamp:Math.floor(Date.now()/1e3),messages:[]};this.conversations.unshift(t);const s=Object(n.cloneDeep)(e);return s.conversationId=t.id,this.askQuestion(s)}getAgents(){return new Promise(e=>setTimeout(()=>e({data:[...o]}),2e3))}getAgent(e){return Promise.resolve({data:Object(n.cloneDeep)(o.find(t=>t.id===e))})}createAgent(e){return"err"===e.name?new Promise((e,t)=>setTimeout(()=>t({status:500,message:"Internal Server Error"}),2e3)):(o.push(e),new Promise(t=>setTimeout(()=>t({data:e}),2e3)))}editAgent(e){return"err"===e.name?new Promise((e,t)=>setTimeout(()=>t({status:500,message:"Internal Server Error"}),2e3)):(o=o.map(t=>t.id===e.id?e:t),new Promise(t=>setTimeout(()=>t({data:e}),2e3)))}deleteAgent(e){return o=o.filter(t=>t.id!==e),Promise.resolve()}getAgentDefaultValues(){return Promise.resolve({data:h})}explainAgentSettings(){return Promise.resolve({data:{}})}simulateHttpError(){return Promise.reject({status:500,message:"Internal Server Error"})}explainResponse(e){return Promise.resolve({data:{conversationId:e.conversationId,answerId:e.answerId,queryMethods:[{name:"sparql_query",rawQuery:'SELECT ?character ?name ?height WHERE {\n ?character a voc:Character;\n rdfs:label ?name;\n voc:height ?height.\n FILTER(?name = "Luke Skywalker" || ?name = "Leia Organa")\n}',query:'SELECT ?character ?name ?height WHERE {\n ?character a voc:Character;\n rdfs:label ?name;\n voc:height ?height.\n FILTER(?name = "Luke Skywalker" || ?name = "Leia Organa")\n}',queryType:"sparql",errorOutput:"Error: org.eclipse.rdf4j.query.MalformedQueryException: org.eclipse.rdf4j.query.parser.sparql.ast.VisitorException: QName 'voc:Character' uses an undefined prefix"},{name:"retrieval_search",rawQuery:'{"queries":[{"query":"pilots that work with Luke Skywalker","filter":{"document_id":"https://swapi.co/resource/human/1"},"top_k":3}]}',query:'{\n "queries" : [ {\n "query" : "pilots that work with Luke Skywalker",\n "filter" : {\n "document_id" : "https://swapi.co/resource/human/1"\n },\n "top_k" : 3\n } ]\n}',queryType:"json",errorOutput:null},{name:"iri_discovery",rawQuery:"Luke Skywalker",query:"PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>\nPREFIX skos: <http://www.w3.org/2004/02/skos/core#>\nPREFIX onto: <http://www.ontotext.com/>\nSELECT ?label ?iri {\n ?label onto:fts ('''Luke~ Skywalker~''' '*') .\n ?iri rdfs:label|skos:prefLabel ?label .\n}",queryType:"sparql",errorOutput:null},{name:"sparql_query",rawQuery:"SELECT ?height WHERE {\n <https://swapi.co/resource/human/1> voc:height ?height.\n}",query:"SELECT ?height WHERE {\n <https://swapi.co/resource/human/1> voc:height ?height.\n}",queryType:"sparql",errorOutput:"Error: org.eclipse.rdf4j.query.MalformedQueryException: org.eclipse.rdf4j.query.parser.sparql.ast.VisitorException: QName 'voc:height' uses an undefined prefix"},{name:"sparql_query",rawQuery:'PREFIX voc: <https://swapi.co/vocabulary/>\nSELECT ?name ?height WHERE {\n ?character voc:height ?height;\n rdfs:label ?name.\n FILTER(?name = "Luke Skywalker" || ?name = "Leia Organa")\n}',query:'PREFIX voc: <https://swapi.co/vocabulary/>\nSELECT ?name ?height WHERE {\n ?character voc:height ?height;\n rdfs:label ?name.\n FILTER(?name = "Luke Skywalker" || ?name = "Leia Organa")\n}',queryType:"sparql",errorOutput:null},{name:"fts_search",rawQuery:"Second Luke",query:"PREFIX onto: <http://www.ontotext.com/>\nDESCRIBE ?iri {\n\t?x onto:fts '''Second Luke''' .\n\t{\n\t\t?x ?p ?iri .\n\t} union {\n\t\t?iri ?p ?x .\n\t}\n}",queryType:"sparql",errorOutput:null},{name:"similarity_search",rawQuery:"Second Luke",query:"PREFIX onto: <http://www.ontotext.com/>\nDESCRIBE ?iri {\n\t?x onto:fts '''Second Luke''' .\n\t{\n\t\t?x ?p ?iri .\n\t} union {\n\t\t?iri ?p ?x .\n\t}\n}",queryType:"sparql",errorOutput:null},{name:"iri_discovery",rawQuery:"Luke Skywalker",query:"PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>\nPREFIX skos: <http://www.w3.org/2004/02/skos/core#>\nPREFIX onto: <http://www.ontotext.com/>\nSELECT ?label ?iri {\n ?label onto:fts ('''Luke~ Skywalker~''' '*') .\n ?iri rdfs:label|skos:prefLabel ?label .\n}",queryType:"sparql",errorOutput:null},{name:"sparql_query",rawQuery:"SELECT ?name ?height WHERE { ?character voc:name ?name ; voc:height ?height . FILTER (?name = 'Luke Skywalker' || ?name = 'Leia Organa') }",query:"SELECT ?name ?height WHERE { ?character voc:name ?name ; voc:height ?height . FILTER (?name = 'Luke Skywalker' || ?name = 'Leia Organa') }",queryType:"sparql",errorOutput:"Error: java.lang.IllegalArgumentException: The following IRIs are not used in the data stored in GraphDB: https://swapi.co/vocabulary/name"},{name:"sparql_query",rawQuery:"SELECT ?character ?height WHERE { ?character voc:height ?height . FILTER (?character = <https://swapi.co/resource/human/1> || ?character = <https://swapi.co/resource/human/5>) }",query:"SELEdCT ?character ?height WHERE { ?character voc:height ?height . FILTER (?character = <https://swapi.co/resource/human/1> || ?character = <https://swapi.co/resource/human/5>) }",queryType:"sparql",errorOutput:null}]}})}}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:"Non existing repo",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},{id:"asst_qMyCpCBmqxV9I2B8UoMfFzc555",name:"agent with long name long long long long long long long long long long long long",model:"gpt-4o",temperature:0,topP:0,seed:null,repositoryId:"Non existing repo",instructions:{systemInstruction:"string\n\nstring",userInstruction:"string"},assistantExtractionMethods:[{ftsMethod:"fts_search"}],maxNumberOfTriplesPerCall:null},{id:"asst_qMyCpCBmqxV9I2B8UoMfFzcр555",name:"Long_agent_with_long_name_long_long_long_long_long_long_long_long_long_long_long_long",model:"gpt-4o",temperature:0,topP:0,seed:null,repositoryId:"Non existing repo",instructions:{systemInstruction:"string\n\nstring",userInstruction:"string"},assistantExtractionMethods:[{ftsMethod:"fts_search"}],maxNumberOfTriplesPerCall:null},{id:"asst_qMyCpCBmqxV9I2B8UoMfFzc55д5",name:"agent with long name long long long long long long long long long long long long",model:"gpt-4o",temperature:0,topP:0,seed:null,repositoryId:"starwars",instructions:{systemInstruction:"string\n\nstring",userInstruction:"string"},assistantExtractionMethods:[{ftsMethod:"fts_search"}],maxNumberOfTriplesPerCall:null},{id:"asst_qMyCpCBmqxV9I2B8UoMfFzcя555",name:"Long_agent_with_long_name_long_long_long_long_long_long_long_long_long_long_long_long",model:"gpt-4o",temperature:0,topP:0,seed:null,repositoryId:"starwars",instructions:{systemInstruction:"string\n\nstring",userInstruction:"string"},assistantExtractionMethods:[{ftsMethod:"fts_search"}],maxNumberOfTriplesPerCall:null}];const h={id:"id",name:"Quadro",model:"gpt-4o",temperature:.7,topP:1,seed:0,repositoryId:"test-repository",instructions:{systemInstruction:"You are a helpful, knowledgeable, and friendly assistant. Your goal is to provide clear and accurate information while being polite, respectful, and professional.",userInstruction:"If you need to write a SPARQL query, use only the classes and properties provided in the schema and don't invent or guess any. Always try to return human-readable names or labels and not only the IRIs. If SPARQL fails to provide the necessary information you can try another tool too."},assistantExtractionMethods:[{method:"sparql_search",ontologyGraph:"http://example.com",sparqlQuery:"CONSTRUCT {?s ?p ?o} WHERE {GRAPH <http://example.org/ontology> {?s ?p ?o .}}"},{method:"fts_search",maxNumberOfTriplesPerCall:0},{method:"similarity_search",similarityIndex:"similarity-index",similarityIndexThreshold:.6,maxNumberOfTriplesPerCall:0},{method:"retrieval_search",retrievalConnectorInstance:"retrieval-connector",queryTemplate:'{"query": "string"}',maxNumberOfTriplesPerCall:0}],additionalExtractionMethods:[{method:"iri_discovery_search"}]}},121:function(e,t,s){"use strict";s.r(t),s.d(t,"ChatAnswerModel",(function(){return n})),s.d(t,"ContinueChatRun",(function(){return r}));class n{constructor(e={}){this._chatId=e.chatId,this._chatName=e.chatName||"",this._timestamp=e.timestamp,this._messages=e.messages||[],this._continueRunId=e.continueRunId}get chatId(){return this._chatId}set chatId(e){this._chatId=e}get chatName(){return this._chatName}set chatName(e){this._chatName=e}get timestamp(){return this._timestamp}set timestamp(e){this._timestamp=e}get messages(){return this._messages}set messages(e){this._messages=e}get continueRunId(){return this._continueRunId}set continueRunId(e){this._continueRunId=e}}class r{constructor(e,t){this._chatItem=e,this._runId=t}get chatId(){return this._chatItem.chatId}toContinueRunRequestPayload(){return{conversationId:this.chatId,runId:this._runId,agentId:this._chatItem.agentId,tzOffset:-(new Date).getTimezoneOffset()}}}},131:function(e,t,s){"use strict";s.r(t),s.d(t,"ExplainResponseModel",(function(){return n})),s.d(t,"ExplainQueryMethodsListModel",(function(){return r})),s.d(t,"ExplainQueryMethodModel",(function(){return a})),s.d(t,"ExplainQueryType",(function(){return i}));class n{constructor(e={}){this._chatId=e.chatId,this._answerId=e.answerId,this._queryMethods=e.queryMethods,this._expanded=void 0===e.expanded||e.expanded}get chatId(){return this._chatId}set chatId(e){this._chatId=e}get answerId(){return this._answerId}set answerId(e){this._answerId=e}get queryMethods(){return this._queryMethods}set queryMethods(e){this._queryMethods=e}get expanded(){return this._expanded}set expanded(e){this._expanded=e}}class r{constructor(e=[]){this._items=e}get items(){return this._items}set items(e){this._items=e}}class a{constructor(e={}){this._name=e.name,this._rawQuery=e.rawQuery,this._query=e.query,this._queryType=e.queryType,this._errorMessage=e.errorOutput}get name(){return this._name}set name(e){this._name=e}get rawQuery(){return this._rawQuery}set rawQuery(e){this._rawQuery=e}get query(){return this._query}set query(e){this._query=e}get queryType(){return this._queryType}set queryType(e){this._queryType=e}get errorMessage(){return this._errorMessage}set errorMessage(e){this._errorMessage=e}}const i={SPARQL:"sparql",JSON:"json",OTHER:"other"}},142:function(e,t,s){"use strict";s.r(t);var n=s(120);angular.module("graphdb.framework.rest.ttyg.service",[]).factory("TTYGRestService",r),r.$inject=["$http"];function r(e){new n.TtygRestServiceFakeBackend;return{getConversation:t=>e.get("rest/chat/conversations/"+t),renameConversation:(t,s)=>e.put("rest/chat/conversations/"+t,s),exportConversation:t=>e.get("rest/chat/conversations/export/"+t,{responseType:"blob"}),askQuestion:t=>e.post("rest/chat/conversations",t),continueChatRun:t=>e.post("rest/chat/conversations/continue",t),getConversations:()=>e.get("rest/chat/conversations"),deleteConversation:t=>e.delete("rest/chat/conversations/"+t),createConversation:(t={})=>e.post("rest/chat/conversations",t),getAgents:()=>e.get("rest/chat/agents"),getAgent:t=>e.get("rest/chat/agents/"+t),createAgent:t=>e.post("rest/chat/agents",t),editAgent:t=>e.put("rest/chat/agents",t),deleteAgent:t=>e.delete("rest/chat/agents/"+t),explainResponse:(t={})=>e.post("rest/chat/conversations/explain",t),getAgentDefaultValues:()=>e.get("rest/chat/agents/default"),explainAgentSettings:t=>e.post("rest/chat/agents/explain",t)}}},150:function(e,t,s){"use strict";s.r(t),s.d(t,"chatMessageModelListMapper",(function(){return i})),s.d(t,"chatItemsModelMapper",(function(){return o})),s.d(t,"chatMessageModelMapper",(function(){return h})),s.d(t,"chatAnswerModelMapper",(function(){return d}));var n=s(88),r=s(95),a=s(121);const i=e=>e?e.map(e=>h(e)):[],o=(e=[])=>{const t=[];let s;return e.forEach(e=>{const a=e.conversationId;n.CHAT_MESSAGE_ROLE.USER===e.role?(s&&t.push(s),s=new r.ChatItemModel(a,h(e))):(s||(s=new r.ChatItemModel(a,null)),s.answers.push(h(e)),s.agentId=e.agentId)}),s&&t.push(s),new r.ChatItemsListModel(t)},h=e=>{if(e)return new n.ChatMessageModel({id:e.id,role:e.role,message:e.message,timestamp:e.timestamp,data:e})},d=e=>{if(e)return new a.ChatAnswerModel({chatId:e.id,chatName:e.name,timestamp:e.timestamp,messages:i(e.messages),continueRunId:e.continueRunId})}},171:function(e,t,s){"use strict";s.r(t),s.d(t,"agentFormModelMapper",(function(){return h})),s.d(t,"agentListMapper",(function(){return c})),s.d(t,"agentModelMapper",(function(){return l}));var n=s(115),r=s(240),a=s(92),i=s(20),o=s(106);const h=(e,t,s)=>{if(!e)return;const n=new r.AgentFormModel;return n.id=e.id||t.id,n.name=e.name||t.name,n.repositoryId=e.repositoryId||t.repositoryId,n.model=e.model||t.model,n.temperature.value=void 0!==e.temperature?e.temperature:t.temperature,n.topP.value=void 0!==e.topP?e.topP:t.topP,n.seed=e.seed||t.seed,n.instructions=d(e.instructions,t.instructions),u(n,s,t.assistantExtractionMethods,e.assistantExtractionMethods),n.additionalExtractionMethods.additionalExtractionMethods.forEach(t=>{t.selected=e.additionalExtractionMethods&&e.additionalExtractionMethods.some(e=>e.method===t.method)}),n},d=(e,t)=>{if(!e&&!t)return;const s=e&&e.systemInstruction||t.systemInstruction,n=e&&e.userInstruction||t.userInstruction;return new r.AgentInstructionsFormModel({systemInstruction:s,userInstruction:n,defaultSystemInstruction:t.systemInstruction,defaultUserInstruction:t.userInstruction})},u=(e,t,s,n=[])=>{const i=s.filter(e=>!n.some(t=>t.method===e.method)),h=s.find(e=>"sparql_search"===e.method);[...n,...i].forEach(s=>{const i=n.some(e=>e.method===s.method);let d="";i&&"sparql_search"===s.method&&(o.AGENT_OPERATION.CREATE===t?d="":s.sparqlQuery?d="sparqlQuery":s.ontologyGraph&&(d="ontologyGraph"));const u=t===o.AGENT_OPERATION.EDIT||t===o.AGENT_OPERATION.CLONE,c=new r.ExtractionMethodFormModel({selected:u&&i,method:s.method,sparqlOption:d,ontologyGraph:s.ontologyGraph||h.ontologyGraph,addMissingNamespaces:s.addMissingNamespaces,sparqlQuery:new a.TextFieldModel({value:s.sparqlQuery||h.sparqlQuery,minLength:1,maxLength:2380}),similarityIndex:s.similarityIndex,similarityIndexThreshold:s.similarityIndexThreshold&&new a.NumericRangeModel({value:s.similarityIndexThreshold,minValue:0,maxValue:1,step:.1}),maxNumberOfTriplesPerCall:0===s.maxNumberOfTriplesPerCall?null:s.maxNumberOfTriplesPerCall,queryTemplate:s.queryTemplate&&new a.TextFieldModel({value:s.queryTemplate,minLength:1,maxLength:2380}),retrievalConnectorInstance:s.retrievalConnectorInstance});e.assistantExtractionMethods.setExtractionMethod(c)})},c=(e,t)=>{if(!e)return new n.AgentListModel;const s=e.map(e=>l(e,t));return new n.AgentListModel(s)},l=(e,t)=>{if(!e)return;const s=Object(i.md5HashGenerator)();return new n.AgentModel({id:e.id,name:e.name,repositoryId:e.repositoryId,isRepositoryDeleted:!t.includes(e.repositoryId),model:e.model,temperature:e.temperature,topP:e.topP,seed:e.seed,instructions:_(e.instructions),assistantExtractionMethods:m(e.assistantExtractionMethods),additionalExtractionMethods:g(e.additionalExtractionMethods)},s)},m=e=>{if(e)return e.map(e=>p(e))},p=e=>{if(e)return new n.ExtractionMethodModel({method:e.method,ontologyGraph:e.ontologyGraph,addMissingNamespaces:e.addMissingNamespaces,sparqlQuery:e.sparqlQuery,similarityIndex:e.similarityIndex,similarityIndexThreshold:e.similarityIndexThreshold,maxNumberOfTriplesPerCall:e.maxNumberOfTriplesPerCall,queryTemplate:e.queryTemplate,retrievalConnectorInstance:e.retrievalConnectorInstance})},g=e=>{if(e)return e.map(e=>y(e))},y=e=>{if(e)return new n.AdditionalExtractionMethodModel({method:e.method})},_=e=>{if(e)return new n.AgentInstructionsModel({systemInstruction:e.systemInstruction,userInstruction:e.userInstruction})}},172:function(e,t,s){"use strict";s.r(t),s.d(t,"AgentInstructionsExplain",(function(){return n})),s.d(t,"AgentInstructionsExplainList",(function(){return r}));class n{constructor(e){this._type=e.type,this._content=e.content,this._size=e.size}get size(){return this._size}set size(e){this._size=e}get content(){return this._content}set content(e){this._content=e}get type(){return this._type}set type(e){this._type=e}}class r{constructor(e){this._instructions=e.instructions}get instructions(){return this._instructions}set instructions(e){this._instructions=e}}},239:function(e,t,s){"use strict";s.r(t),s.d(t,"chatsListMapper",(function(){return h})),s.d(t,"chatModelMapper",(function(){return d}));var n=s(110),r=s(20),a=s(150),i=s(95);const o=Object(r.md5HashGenerator)(),h=e=>{if(!e)return new n.ChatsListModel;const t=e.map(e=>d(e));return new n.ChatsListModel(t)},d=e=>{if(e)return new n.ChatModel({id:e.id,name:e.name,timestamp:e.timestamp,chatHistory:e.messages&&e.messages.length?Object(a.chatItemsModelMapper)(e.messages):new i.ChatItemsListModel},o)}},241:function(e,t,s){"use strict";s.r(t),s.d(t,"explainResponseMapper",(function(){return r})),s.d(t,"explainQueryMethodsListMapper",(function(){return a})),s.d(t,"explainQueryMethodMapper",(function(){return i}));var n=s(131);const r=e=>new n.ExplainResponseModel({chatId:e.conversationId,answerId:e.answerId,queryMethods:a(e.queryMethods)}),a=(e=[])=>new n.ExplainQueryMethodsListModel(e.map(i)),i=e=>new n.ExplainQueryMethodModel(e)},242:function(e,t,s){"use strict";s.r(t),s.d(t,"agentInstructionsExplainMapper",(function(){return r}));var n=s(172);const r=e=>e?e.map(e=>new n.AgentInstructionsExplain(e)):new n.AgentInstructionsExplainList([])},88: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=1e3*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"}},95:function(e,t,s){"use strict";s.r(t),s.d(t,"ChatItemModel",(function(){return r})),s.d(t,"ChatItemsListModel",(function(){return a}));var n=s(88);class r{constructor(e,t){this._chatId=e,this._agentId=void 0,this._question=t,this._answers=[]}get chatId(){return this._chatId}set chatId(e){this._chatId=e}get agentId(){return this._agentId}set agentId(e){this._agentId=e}get question(){return this._question}set question(e){this._question=e}get answers(){return this._answers}set answers(e){this._answers=e}setQuestionMessage(e){this._question||(this._question=new n.ChatMessageModel({role:n.CHAT_MESSAGE_ROLE.USER})),this._question.message=e}getQuestionMessage(){return this._question.message}toCreateChatRequestPayload(){return{agentId:this._agentId,question:this._question.message}}toAskRequestPayload(){return{conversationId:this._chatId,agentId:this._agentId,question:this._question.message,tzOffset:-(new Date).getTimezoneOffset()}}toExplainResponsePayload(e){return{conversationId:this._chatId,answerId:e}}}class a{constructor(e=[]){this._items=e}isEmpty(){return 0===this._items.length}appendItem(e){this._items.push(e)}get items(){return this._items}set items(e){this._items=e||[]}getLast(){if(!this.isEmpty())return this._items[this._items.length-1]}}}}]);
@@ -1 +1 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([[60,297],{151:function(e,t){angular.module("graphdb.framework.rest.graphexplore.data.service",[]).factory("GraphDataRestService",n),n.$inject=["$http"];function n(e){return{getClassHierarchyData:function(t){return e.get("rest/class-hierarchy",{params:{graphURI:t}})},reloadClassHierarchy:function(t){return e.get("rest/class-hierarchy",{params:{doReload:!0,graphURI:t}})},getClassInstances:function(t){return e.get("rest/class-hierarchy/class-instances",{params:{targetUri:t}})},getDomainRangeData:function(t,n){return e.get("rest/domain-range",{params:{targetUri:t,collapsed:n}})},checkDomainRangeData:function(t){return e.head("rest/domain-range",{params:{targetUri:t}})},getRelationshipsData:function(t,n,r){return e.get("rest/dependencies/matrix",{params:{mode:n,classes:_.map(t,(function(e){return e.name})),graphURI:r}})},getRelationshipsClasses:function(t,n){return e.get("rest/dependencies/classes",{params:{mode:t,graphURI:n}})},getRelationshipsStatus:function(t){return e.get("rest/dependencies/status",{params:{graphURI:t}})},calculateRelationships:function(t){return e.get("rest/dependencies/update",{params:{graphURI:t}})},getPredicates:function(t,n,r){return e.get("rest/dependencies/predicates",{params:{from:t,to:n,mode:"all",graphURI:r}})},getInstanceNode:function(t){return e.get("rest/explore-graph/node",{params:t})},getInstanceNodeLinks:function(t){return e.get("rest/explore-graph/links",{params:t})},getProperties:function(t){return e.get("rest/explore-graph/properties",{params:t})},updateGraph:function(t){let n={headers:{"Content-Type":"application/json"}};return n=Object.assign(n,t),e.post("rest/explore-graph/graph",n)},getRdfsLabelAndComment:function(t,n,r){const a=r||{};return e({url:"rest/explore/details",method:"GET",params:_.extend(a,{uri:t,languages:n}),headers:{Accept:"application/json"}})}}}},261:function(e,t,n){"use strict";n.r(t);var r=n(550);n(151);function a(e,t){return{restrict:"A",template:'<div id="dependencies-chord"></div>',scope:{dependenciesData:"="},link:function(n){n.$watch("dependenciesData",(function(){if(n.dependenciesData){const a=n.dependenciesData;!function(a,s){if(function(){let e=!0;for(const t of a){if(t.some(e=>0!==e)){e=!1;break}}return e}())return;const o=d3.scaleOrdinal(d3.schemeCategory10),i=d3.select("body").append("div").attr("class","tooltip").style("opacity",0);d3.select("body").on("click",(function(){i.style("opacity",0)}));const c=Math.min(800,800)/2.8,d=c-24,p=d3.arc().innerRadius(d).outerRadius(c),l=d3.chord().padAngle(.04).sortSubgroups(d3.descending).sortChords(d3.ascending),u=d3.ribbon().radius(d),g=d3.select("#dependencies-chord").append("svg").attr("viewBox","0 0 800 800").attr("preserveAspectRatio","xMidYMid meet").style("font","10px sans-serif").append("g").attr("id","circle").attr("transform","translate(400,400)");g.append("circle").attr("r",c).style("fill","none");const f=l(a),h=g.selectAll(".group").data(f.groups).enter().append("g").attr("class","group").on("mouseover",(function(){const e=h.nodes().indexOf(this);m.classed("fade",(function(t){return t.source.index!==e&&t.target.index!==e}))}));h.append("title").text((function(e,t){return s[t]})),h.append("path").attr("id",(function(e,t){return"group"+t})).attr("d",p).style("fill",(function(e,t){return o(t)})),h.append("text").each((function(e){e.angle=(e.startAngle+e.endAngle)/2})).attr("dy",".35em").attr("transform",(function(e){return"rotate("+(180*e.angle/Math.PI-90)+")translate("+(d+26)+")"+(e.angle>Math.PI?"rotate(180)":"")})).style("text-anchor",(function(e){return e.angle>Math.PI?"end":null})).text((function(e){return s[e.index]}));const m=g.selectAll(".chord").data(f).enter().append("path").attr("class","chord").style("fill",(function(e){return o(e.target.index)})).style("fill-opacity",".67").style("stroke","#000").style("stroke-width",".25px").style("cursor","pointer").attr("d",u);m.on("mouseover",(function(){d3.select(this).style("fill-opacity","1")})),m.on("mouseout",(function(){d3.select(this).style("fill-opacity",".67")})),m.on("click",(function(e,r){const a=s[r.source.index],o=s[r.target.index],c=e.pageX,d=e.pageY;t.getPredicates(a,o,n.selectedGraph&&n.selectedGraph.contextID.uri).success((function(e){let t="<div class='dependencies-tooltip'>"+("<div class='row'>"+a+" <i class='fa fa-exchange'></i> "+o+"</div>")+_.map(e.slice(0,10),(function(e){const t=" <i class='fa fa-long-arrow-"+("out"===e.direction?"right":"left")+"'></i>";return"<div class='row'>"+e.predicate+" : "+e.weight+t+" </div>"})).join("");e.length>10?t=t+"<div class='pull-right'>And "+(e.length-10).toString()+" more...</div></div>":t+="</div>",i.html(t).style("left",c+"px").style("top",d+"px")})),i.transition().duration(200).style("opacity",1)})),d3.select("#circle").on("mouseleave",(function(){g.selectAll(".chord").classed("fade",!1)})),d3.select("#download-svg").on("mouseover",(function(){const t=r.a.Export.generateBase64ImageSource(".dependencies-chord svg");d3.select(this).attrs({href:t,download:"dependencies-"+e.getActiveRepository()+".svg"})}))}(a.matrix,a.nodes,a.direction)}}))}}}angular.module("graphdb.framework.graphexplore.directives.dependencies",["graphdb.framework.graphexplore.controllers.dependencies","graphdb.framework.rest.graphexplore.data.service"]).directive("dependenciesChord",a),a.$inject=["$repositories","GraphDataRestService"]},537:function(e,t,n){var r,a;r=[n(545)],void 0===(a=function(){function e(e,t){return e.each((function(){var e=t.apply(this,arguments),n=select(this);for(var r in e)n.attr(r,e[r])}))}function t(e,t){for(var n in t)e.attr(n,t[n]);return e}return"undefined"==typeof d3&&(d3=n(545)),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,r))||(e.exports=a)},550:function(e,t,n){"use strict";n(537);var r=r||{};r.Export={getCSSRules:function(e){const t=$('link[href="'+e+'"]')[0].sheet.rules;let n="";return _.each(t,(function(e){n+=e.cssText})),n},generateBase64ImageSource:function(e){e||(e="svg");const t=d3.selectAll(e).attr("version","1.1").attr("xmlns","http://www.w3.org/2000/svg").node().parentNode.innerHTML;return"data:image/svg+xml;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(t)))}},t.a=r}}]);
1
+ (window.webpackJsonp=window.webpackJsonp||[]).push([[60,297],{151:function(e,t){angular.module("graphdb.framework.rest.graphexplore.data.service",[]).factory("GraphDataRestService",n),n.$inject=["$http"];function n(e){return{getClassHierarchyData:function(t){return e.get("rest/class-hierarchy",{params:{graphURI:t}})},reloadClassHierarchy:function(t){return e.get("rest/class-hierarchy",{params:{doReload:!0,graphURI:t}})},getClassInstances:function(t){return e.get("rest/class-hierarchy/class-instances",{params:{targetUri:t}})},getDomainRangeData:function(t,n){return e.get("rest/domain-range",{params:{targetUri:t,collapsed:n}})},checkDomainRangeData:function(t){return e.head("rest/domain-range",{params:{targetUri:t}})},getRelationshipsData:function(t,n,r){return e.get("rest/dependencies/matrix",{params:{mode:n,classes:_.map(t,(function(e){return e.name})),graphURI:r}})},getRelationshipsClasses:function(t,n){return e.get("rest/dependencies/classes",{params:{mode:t,graphURI:n}})},getRelationshipsStatus:function(t){return e.get("rest/dependencies/status",{params:{graphURI:t}})},calculateRelationships:function(t){return e.get("rest/dependencies/update",{params:{graphURI:t}})},getPredicates:function(t,n,r){return e.get("rest/dependencies/predicates",{params:{from:t,to:n,mode:"all",graphURI:r}})},getInstanceNode:function(t){return e.get("rest/explore-graph/node",{params:t})},getInstanceNodeLinks:function(t){return e.get("rest/explore-graph/links",{params:t})},getProperties:function(t){return e.get("rest/explore-graph/properties",{params:t})},updateGraph:function(t){let n={headers:{"Content-Type":"application/json"}};return n=Object.assign(n,t),e.post("rest/explore-graph/graph",n)},getRdfsLabelAndComment:function(t,n,r){const a=r||{};return e({url:"rest/explore/details",method:"GET",params:_.extend(a,{uri:t,languages:n}),headers:{Accept:"application/json"}})}}}},261:function(e,t,n){"use strict";n.r(t);var r=n(551);n(151);function a(e,t){return{restrict:"A",template:'<div id="dependencies-chord"></div>',scope:{dependenciesData:"="},link:function(n){n.$watch("dependenciesData",(function(){if(n.dependenciesData){const a=n.dependenciesData;!function(a,s){if(function(){let e=!0;for(const t of a){if(t.some(e=>0!==e)){e=!1;break}}return e}())return;const o=d3.scaleOrdinal(d3.schemeCategory10),i=d3.select("body").append("div").attr("class","tooltip").style("opacity",0);d3.select("body").on("click",(function(){i.style("opacity",0)}));const c=Math.min(800,800)/2.8,d=c-24,p=d3.arc().innerRadius(d).outerRadius(c),l=d3.chord().padAngle(.04).sortSubgroups(d3.descending).sortChords(d3.ascending),u=d3.ribbon().radius(d),g=d3.select("#dependencies-chord").append("svg").attr("viewBox","0 0 800 800").attr("preserveAspectRatio","xMidYMid meet").style("font","10px sans-serif").append("g").attr("id","circle").attr("transform","translate(400,400)");g.append("circle").attr("r",c).style("fill","none");const f=l(a),h=g.selectAll(".group").data(f.groups).enter().append("g").attr("class","group").on("mouseover",(function(){const e=h.nodes().indexOf(this);m.classed("fade",(function(t){return t.source.index!==e&&t.target.index!==e}))}));h.append("title").text((function(e,t){return s[t]})),h.append("path").attr("id",(function(e,t){return"group"+t})).attr("d",p).style("fill",(function(e,t){return o(t)})),h.append("text").each((function(e){e.angle=(e.startAngle+e.endAngle)/2})).attr("dy",".35em").attr("transform",(function(e){return"rotate("+(180*e.angle/Math.PI-90)+")translate("+(d+26)+")"+(e.angle>Math.PI?"rotate(180)":"")})).style("text-anchor",(function(e){return e.angle>Math.PI?"end":null})).text((function(e){return s[e.index]}));const m=g.selectAll(".chord").data(f).enter().append("path").attr("class","chord").style("fill",(function(e){return o(e.target.index)})).style("fill-opacity",".67").style("stroke","#000").style("stroke-width",".25px").style("cursor","pointer").attr("d",u);m.on("mouseover",(function(){d3.select(this).style("fill-opacity","1")})),m.on("mouseout",(function(){d3.select(this).style("fill-opacity",".67")})),m.on("click",(function(e,r){const a=s[r.source.index],o=s[r.target.index],c=e.pageX,d=e.pageY;t.getPredicates(a,o,n.selectedGraph&&n.selectedGraph.contextID.uri).success((function(e){let t="<div class='dependencies-tooltip'>"+("<div class='row'>"+a+" <i class='fa fa-exchange'></i> "+o+"</div>")+_.map(e.slice(0,10),(function(e){const t=" <i class='fa fa-long-arrow-"+("out"===e.direction?"right":"left")+"'></i>";return"<div class='row'>"+e.predicate+" : "+e.weight+t+" </div>"})).join("");e.length>10?t=t+"<div class='pull-right'>And "+(e.length-10).toString()+" more...</div></div>":t+="</div>",i.html(t).style("left",c+"px").style("top",d+"px")})),i.transition().duration(200).style("opacity",1)})),d3.select("#circle").on("mouseleave",(function(){g.selectAll(".chord").classed("fade",!1)})),d3.select("#download-svg").on("mouseover",(function(){const t=r.a.Export.generateBase64ImageSource(".dependencies-chord svg");d3.select(this).attrs({href:t,download:"dependencies-"+e.getActiveRepository()+".svg"})}))}(a.matrix,a.nodes,a.direction)}}))}}}angular.module("graphdb.framework.graphexplore.directives.dependencies",["graphdb.framework.graphexplore.controllers.dependencies","graphdb.framework.rest.graphexplore.data.service"]).directive("dependenciesChord",a),a.$inject=["$repositories","GraphDataRestService"]},538:function(e,t,n){var r,a;r=[n(546)],void 0===(a=function(){function e(e,t){return e.each((function(){var e=t.apply(this,arguments),n=select(this);for(var r in e)n.attr(r,e[r])}))}function t(e,t){for(var n in t)e.attr(n,t[n]);return e}return"undefined"==typeof d3&&(d3=n(546)),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,r))||(e.exports=a)},551:function(e,t,n){"use strict";n(538);var r=r||{};r.Export={getCSSRules:function(e){const t=$('link[href="'+e+'"]')[0].sheet.rules;let n="";return _.each(t,(function(e){n+=e.cssText})),n},generateBase64ImageSource:function(e){e||(e="svg");const t=d3.selectAll(e).attr("version","1.1").attr("xmlns","http://www.w3.org/2000/svg").node().parentNode.innerHTML;return"data:image/svg+xml;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(t)))}},t.a=r}}]);
@@ -0,0 +1 @@
1
+ (window.webpackJsonp=window.webpackJsonp||[]).push([[61],{258:function(t,e,r){"use strict";r.r(e);var n=r(551),a=r(550);r(13);function o(t,e,r,o,s,c,i,l,d,u,p,f,h){return{restrict:"AE",template:'<div id="domain-range"></div>',scope:{showPredicatesInfoPanel:"=",selectedPredicate:"=",collapseEdges:"="},link:function(u){const p=l((function(){!function(u){var p=d3.select("#domain-range").append("svg").attr("viewBox","0 0 1200 600").attr("preserveAspectRatio","xMidYMid meet").on("dblclick.zoom",null),g=d3.forceSimulation(),y=d3.drag().subject((function(t){return t})).on("start",(function(t,e){g.stop(),e.fx=t.x,e.fy=t.y,d3.select(this).classed("selected",!0)})).on("end",(function(t,e){e.fx=null,e.fy=null,d3.select(this).classed("selected",!1),b?(g.alpha(.2).restart(),b=!1):g.restart()})).on("drag",(function(t,e){b=!0,g.alphaTarget(0).restart(),e.fx=t.x,e.fy=t.y})),x=p.append("defs");x.append("marker").attrs({id:"arrow",viewBox:"0 -5 10 10",refX:10,refY:0,markerUnits:"strokeWidth",markerWidth:5,markerHeight:5,orient:"auto",fill:f}).append("path").attrs({d:"M0,-5L10,0L0,5",class:"arrowHead"}),x.append("marker").attrs({id:"collapsed-arrow",viewBox:"0 -5 10 10",refX:9,refY:0,markerUnits:"strokeWidth",markerWidth:4,markerHeight:4,orient:"auto",fill:f}).append("path").attrs({d:"M0,-5L10,0L0,5",class:"arrowHead"}),x.append("marker").attrs({id:"arrow-loop",viewBox:"0 -5 10 10",refX:7,refY:0,markerUnits:"strokeWidth",markerWidth:5,markerHeight:5,orient:"auto",fill:f}).append("path").attrs({d:"M0,-5L10,0L0,5",class:"arrowHead"}),d3.select("#download-svg").on("mouseover",(function(){var t=n.a.Export.getCSSRules("css/domain-range-graph.css?v=2.8.2-RC1");$("defs").append('<style type="text/css"><![CDATA['+t+"]]></style>");var e=n.a.Export.generateBase64ImageSource("#domain-range svg");d3.select(this).attrs({href:e,download:"domain-range-graph-"+r.getActiveRepository()+".svg"})})),function(){var t=d3.select(".legend-container").append("svg").attr("viewBox","0 0 "+1200/7+" "+1200/7*1.2).attr("preserveAspectRatio","xMidYMid meet");t.append("rect").attrs({width:1200/7,height:1200/7*1.2}).style("fill","rgba(235, 235, 235, 0.9)");var e=16+1200/18/2.5,r=e+1200/90;t.append("circle").attrs({class:"legend-class-node",cx:(16+e)/2,cy:30,r:1200/18/4.5}),t.append("text").attrs({x:r,y:30+1200/370}).style("font-size",1200/90/1.1+"px").text("main class node"),t.append("circle").attrs({class:"legend-object-node",cx:(16+e)/2,cy:70,r:1200/110/1.25}),t.append("text").attrs({x:r,y:30+1200/370+40}).style("font-size",1200/90/1.1+"px").text("class node"),t.append("circle").attrs({class:"legend-datatype-node",cx:(16+e)/2,cy:70+1200/45,r:1200/110/2}),t.append("text").attrs({x:r,y:99.90990990990991}).style("font-size",1200/90/1.1+"px").text("datatype node"),t.append("line").attrs({class:"property-arrow",x1:16,y1:123.33333333333334,x2:e,y2:123.33333333333334}).style("stroke-width",1.2).attr("marker-end","url("+s.absUrl()+"#arrow)"),t.append("text").attrs({x:r,y:126.57657657657658}).style("font-size",1200/90/1.1+"px").text("explicit property"),t.append("line").attrs({class:"implicit-property-arrow",x1:16,y1:150,x2:e,y2:150}).style("stroke-width",1.2).attr("marker-end","url("+s.absUrl()+"#arrow)"),t.append("text").attrs({x:r,y:150+1200/370}).style("font-size",1200/90/1.1+"px").text("implicit property"),t.append("line").attrs({class:"collapsed-property-arrow",x1:16,y1:150+1200/45,x2:e,y2:150+1200/45}).style("stroke-width",2).attr("marker-end","url("+s.absUrl()+"#collapsed-arrow)"),t.append("text").attrs({x:r,y:179.9099099099099}).style("font-size",1200/90/1.1+"px").text("collapsed property")}();var m=s.search().uri,v=s.search().name;const k=s.search().collapsed;(function(t,e){o.getDomainRangeData(t,e).success((function(t,e,r){u.domainRangeGraphData=t})).error((function(t){d.error("Request for "+v+" failed!")}))})(m,k),$(window).on("popstate",(function(){c.set(i.DOMAIN_RANGE_WENT_BACK,!0)})),e.onpopstate=function(e){e.state&&t.$broadcast("changeCollapsedEdgesState",e.state.collapsed)},u.$watch("collapseEdges",(function(){angular.isUndefined(u.collapseEdges)||(c.set(i.DOMAIN_RANGE_COLLAPSE_EDGES,u.collapseEdges),"true"!==c.get(i.DOMAIN_RANGE_WENT_BACK)&&function(e){t.$broadcast("switchEdgeMode",{uri:m,name:v,collapsed:e})}(u.collapseEdges),c.remove(i.DOMAIN_RANGE_WENT_BACK))})),u.$watch("domainRangeGraphData",(function(){if(u.domainRangeGraphData){var r=_.cloneDeep(u.domainRangeGraphData);const P=r.nodes,j=r.links;g.nodes(P).force("x",d3.forceX(600)).force("y",d3.forceY(300)).force("charge",d3.forceManyBody().strength(-800)).force("link",d3.forceLink(j).distance(1200/3.5));var n=p.selectAll(".link").data(j).enter().append("g");function o(t){t.style("stroke",f),t.style("stroke-width",2),t.attr("marker-end","url("+s.absUrl()+"#collapsed-arrow)")}var c,i,d=0;n.each((function(t){if(t.objectPropNodeClassUri!==m)c=n.append("line").attrs({class:"link","marker-end":"url("+s.absUrl()+"#arrow)"}).style("stroke-width",1.2).each((function(t){switch(t.propertyType){case"objectLeft":t.targetRadius=1200/18;break;case"objectRight":t.targetRadius=1200/110;break;case"datatype":t.targetRadius=1200/110/2;break;default:t.targetRadius=0}var e=d3.select(this);t.targetNodeEdgeCount>1?o(e):t.implicit&&e.style("stroke-dasharray","3, 3")}));else{if(angular.isUndefined(i)){i=d3.select(this).append("path").attrs({d:"M 0 0 A "+1200/18/2+" "+1200/18/2+" 0 1 1 0 "+1200/18/2,class:"loop-link",fill:"none","marker-end":"url("+s.absUrl()+"#arrow-loop)"}).style("stroke-width",1.2)}(d+=t.targetNodeEdgeCount)>1&&o(d3.select(".loop-link"))}}));var x={};function k(){$.isEmptyObject(x)||(x.text.style("fill","black"),x.background.style("fill","#f0f0f0"))}function b(t,e){k(),x.text=d3.select(this),x.background=d3.select(this.previousSibling),x.text.style("fill","white"),x.background.style("fill",f),l((function(){u.showPredicatesInfoPanel=!0,u.selectedPredicate=e})),t.stopPropagation()}$("document").ready((function(){$("#domain-range").bind("click",k)}));var w=n.append("text").attr("class",(function(t){return t.objectPropNodeClassUri===m?"loop-link-property-name":"property-name"})).attr("dx",(function(t){return 1200/18/2*("objectLeft"===t.propertyType?1:-1)})).style("text-anchor",(function(t){return"objectLeft"===t.propertyType?"end":"start"})).style("font-size",1200/90).text((function(t){return t.targetNodeEdgeCount>1?t.targetNodeEdgeCount+" predicates":t.name}));w.each((function(t){var r=d3.select(this);/\d\spredicates/.test(r.text())?r.style("font-weight","bold").on("click",b):r.on("click",(function(t,r){e.open("resource?uri="+encodeURIComponent(r.uri),"_blank")}))}));var E=n.append("rect").attr("class",(function(t){return t.objectPropNodeClassUri!==m?"link-background":"loop-link-background"})).attr("width",(function(t){return t.calculatedWidth=this.previousSibling.getBBox().width,t.calculatedWidth+4})).attr("height",(function(t){return t.calculatedHeight=this.previousSibling.getBBox().height,t.calculatedHeight+2})).attr("transform",(function(t){var e=2-1200/18/2*("objectLeft"===t.propertyType?1:-1);return"objectLeft"===t.propertyType&&(e+=t.calculatedWidth),"translate(-"+e+",-"+(2+t.calculatedHeight/2)+")"})).on("click",(function(t){t.stopPropagation()})),N=p.selectAll(".node").data(P).enter().append("g"),R=N.filter((function(t){return t.objectPropClassUri!==m})).append("circle").each((function(t){var e=d3.select(this);"main"===t.classPosition?e.attrs({class:"class-node",r:1200/18}).attr("marker-end","url("+s.absUrl()+"#loop-link)"):null===t.objectPropClassName?e.attrs({class:"datatype-node",r:1200/110/2}):e.attrs({class:"object-prop-node",r:1200/110})})).call(y);d3.selectAll(".object-prop-node").on("dblclick",(function(e,r,n){u.$apply((function(){t.$broadcast("reloadDomainRangeGraphView",r,n)}))})),N.filter((function(t){return t.objectPropClassName&&t.objectPropClassUri!==m})).append("text").attr("class",(function(t){return t.classPosition+"-class-label"})).style("font-size",1200/90).text((function(t){return t.objectPropClassName})).on("click",(function(t,r){e.open("resource?uri="+encodeURIComponent(r.objectPropClassUri),"_blank")}));var C=N.select("text");p.select(".class-node").each((function(){d3.select(this.parentNode).append("text").attr("class","rdf-class-label").style("font-size",(function(t){return a.a.Text.calcFontSize(v,1200/18)})).text(v).on("click",(function(){e.open("resource?uri="+encodeURIComponent(m),"_blank")}))}));var T=p.select(".class-node + text"),A=d3.select(".class-node"),L=d3.selectAll(".loop-link-background"),M=d3.selectAll(".loop-link-property-name");if(w=d3.selectAll(".property-name"),!angular.isUndefined(i)){var U=[];L.each((function(t,e){d3.select(this);U.push({idx:e,width:t.calculatedWidth,height:t.calculatedHeight})}))}g.on("tick",(function(t){var e=8*g.alpha();function r(t){var e=t.x+1200/18*2,r=t.y-1200/18/1.9;var n=[];L.each((function(a,o){n.push(a),o<h?function(n,a){var o=$.grep(U,(function(t){return t.idx==a}));a>0&&(e+=parseFloat(a*(o[0].height/(a/1.4)))),n.attrs({transform:"rotate(270, "+t.x+","+t.y+") translate("+e+","+r+")",width:o[0].height,height:o[0].width})}(d3.select(this),o):d3.select(this).remove()})),function(t){var e;d3.select(".view-more-preds-label").style("font-weight","bold").each((function(r){r.target.allEdges=t,e=this.getComputedTextLength()})).on("click",b),d3.select(".view-more-preds-rect").attr("height",e+4)}(n)}c.filter((function(t){return t.objectPropNodeClassUri!==m})).attr("x1",(function(t){return t.source.x})).attr("y1",(function(t){return t.source.y})).attr("x2",(function(t){return t.targetX})).attr("y2",(function(t){return t.targetY})).each((function(t){!function(t){"objectLeft"===t.propertyType?(t.source.x-=8*e,t.source.y-=e/9):(t.target.x+=8*e,t.target.y-=e/9)}(t);var r=Math.atan2(t.target.y-t.source.y,t.target.x-t.source.x);t.targetX=t.target.x-Math.cos(r)*t.targetRadius,t.targetY=t.target.y-Math.sin(r)*t.targetRadius})),R.each((function(t){"main"!==t.classPosition||angular.isUndefined(i)||(!function(t){var e=t.x+64,r=t.y-1200/18/5.7-5;i.attr("transform","rotate(270, "+t.x+","+t.y+") translate("+e+","+r+")")}(t),function(t){function e(e,r){var n=$.grep(U,(function(t){return t.idx==r})),a=0;r>0&&(a=parseFloat(2*r*(n[0].height/1.4)));var o=t.x,s=t.y-1200/18*2.1-a;e.attrs({x:o,y:s}).moveToFront()}M.each((function(t,r){var n=d3.select(this),a=M.size()-h;a<0?e(n,r):(0==r&&!u.collapseEdges&&a>1&&(!function(t,e,r){t.classed("view-more-preds-label",!0).text(r+" predicates more ..."),null!==this.nextSibling&&e.classed("view-more-preds-rect",!0)}(n,d3.select(this.nextSibling),a),e(n,r)),r<h?e(n,r):n.remove())}))}(t),r(t)),t.objectPropClassUri!==m&&d3.select(this).attr("cx",(function(t){return"main"===t.classPosition?function(t){!window.ActiveXObject&&"ActiveXObject"in window&&(Math.log10=function(t){return Math.log(t)/Math.LN10});var e=A.attr("cx")-600,r=.5*Math.log10(Math.abs(e));return t.x+=e>0?-r:r,t.x}(t):t.x})).attr("cy",(function(t){return t.y}))})),T.attr("x",(function(t){return t.x})).attr("y",(function(t){return t.y})).moveToFront(),E.filter((function(t){return t.objectPropNodeClassUri!==m})).attr("x",(function(t){return t.target.x>t.source.x?t.source.x+(t.target.x-t.source.x)/2:t.target.x+(t.source.x-t.target.x)/2})).attr("y",(function(t){return t.target.y>t.source.y?t.source.y+(t.target.y-t.source.y)/2:t.target.y+(t.source.y-t.target.y)/2})).moveToFront(),w.attr("x",(function(t){return t.target.x>t.source.x?t.source.x+(t.target.x-t.source.x)/2:t.target.x+(t.source.x-t.target.x)/2})).attr("y",(function(t){return t.target.y>t.source.y?t.source.y+(t.target.y-t.source.y)/2:t.target.y+(t.source.y-t.target.y)/2})).moveToFront(),C.attr("x",(function(t){return"right"===t.classPosition?t.x+1200/110*1.2:t.x-1200/110*1.2})).attr("y",(function(t){return t.y})).moveToFront()}))}}));let b=!1}(u)}),50);u.$on("$destroy",(function(){l.cancel(p)}))}}}angular.module("graphdb.framework.graphexplore.directives.domainrange",["graphdb.framework.graphexplore.controllers.domainrange","graphdb.framework.utils.localstorageadapter"]).constant("ONTO_RED","var(--primary-color)").constant("ONTO_GREEN","var(--tertiary-color)").constant("ONTO_BLUE","var(--secondary-color)").constant("NON_COLLAPSED_REFLEXIVE_LINK_LIMIT",6).directive("domainRangeGraph",o),o.$inject=["$rootScope","$window","$repositories","GraphDataRestService","$location","LocalStorageAdapter","LSKeys","$timeout","toastr","ONTO_RED","ONTO_GREEN","ONTO_BLUE","NON_COLLAPSED_REFLEXIVE_LINK_LIMIT"]},538:function(t,e,r){var n,a;n=[r(546)],void 0===(a=function(){function t(t,e){return t.each((function(){var t=e.apply(this,arguments),r=select(this);for(var n in t)r.attr(n,t[n])}))}function e(t,e){for(var r in e)t.attr(r,e[r]);return t}return"undefined"==typeof d3&&(d3=r(546)),d3.selection.prototype.attrs=function(r){return("function"==typeof r?t:e)(this,r)},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 t=this.parentNode.firstChild;t&&this.parentNode.insertBefore(this,t)}))},d3}.apply(e,n))||(t.exports=a)},550:function(t,e,r){"use strict";r(538);var n=n||{};n.Text=function(){function t(t,e,r,n){r=r||10;var a=e/3;return"string"==typeof t?(a*=10/(t.substring(0,e/3).length+1.5),a+=1,t.match(/[\u0900-\u0DFF\u1100-\u11FF\u2E80-\u2EFF\u3000-\u9FFF]/)&&(a*=.6),a<r&&(a=r),Math.round(a)):(a<r&&(a=r),Math.round(a))}return{calcFontSizeRaw:t,calcFontSize:function(e,r,n,a){return t(e,r,n)+"px"},getTextWithElipsisIfNeeded:function(t,e){return"string"==typeof t&&t.length>e?t.substring(0,e-3)+"...":t}}}(),n.Transition={fadeIn:function(t,e){t.style("opacity",0).transition().duration(e).style("opacity",1)},fadeOut:function(t,e){t.style("opacity",1).transition().duration(e).style("opacity",0)}},n.Click=function(){const t=function(t,r){let n,a=1,o=arguments.length;for(;++a<o;)n=arguments[a],t[n]=e(t,r,r[n]);return t};function e(t,e,r){return function(){var n=r.apply(e,arguments);return n===e?t:n}}return{delayDblClick:function(){var e=d3.dispatch("click","dblclick");return t((function(t){var r,n=null;t.on("mousedown",(function(){r=d3.pointer(document.body),+new Date})),t.on("mouseup",(function(t,a){var o,s,c;(s=r,c=d3.pointer(document.body),Math.sqrt(Math.pow(s[0]-c[0],2),Math.pow(s[1]-c[1],2))>5)||(n?(window.clearTimeout(n),n=null,e.call("dblclick",t,t,a)):n=window.setTimeout((o=t,function(){e.call("click",o,o,a),n=null}),250))}))}),e,"on")}}}(),e.a=n},551:function(t,e,r){"use strict";r(538);var n=n||{};n.Export={getCSSRules:function(t){const e=$('link[href="'+t+'"]')[0].sheet.rules;let r="";return _.each(e,(function(t){r+=t.cssText})),r},generateBase64ImageSource:function(t){t||(t="svg");const e=d3.selectAll(t).attr("version","1.1").attr("xmlns","http://www.w3.org/2000/svg").node().parentNode.innerHTML;return"data:image/svg+xml;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(e)))}},e.a=n}}]);
@@ -1 +1 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([[62,183,205,328],{100:function(e,o,r){"use strict";r.r(o),r.d(o,"removeSpecialChars",(function(){return s})),r.d(o,"toBoolean",(function(){return a})),r.d(o,"toTitleCase",(function(){return i}));var t=r(18);const s=e=>e.replace(/[()']/g,""),a=e=>"string"==typeof e?"true"===e:Boolean(e),i=e=>e?Object(t.upperFirst)(e.toLowerCase()):e},180:function(e,o){function r(e,o,r,t,s){e.message=s,e.close=()=>{o.dismiss()},e.copyToClipboard=()=>{navigator.clipboard.writeText(e.message).then(()=>{t.success(r.instant("import.help.messages.copied_to_clipboard")),e.close()},e=>{console.error("Could not copy text: ",e)})}}angular.module("graphdb.framework.impex.import.controllers.import-resource-message-dialog",[]).controller("ImportResourceMessageDialogController",r),r.$inject=["$scope","$uibModalInstance","$translate","toastr","message"]},279:function(e,o,r){"use strict";r.r(o);r(180);var t=r(90),s=r(100);function a(e){return{restrict:"E",templateUrl:"js/angular/import/templates/import-resource-message.html",scope:{resource:"="},link:o=>{o.ImportResourceStatus=t.ImportResourceStatus,o.toTitleCase=e=>s.toTitleCase(e),o.showMessage=o=>{e.open({templateUrl:"js/angular/import/templates/import-resource-message-dialog.html",controller:"ImportResourceMessageDialogController",size:"lg",windowClass:"import-resource-message-dialog",backdrop:"static",resolve:{message:function(){return o?o.importResource.message:""}}})}}}}angular.module("graphdb.framework.import.directives.import-resource-message",["graphdb.framework.impex.import.controllers.import-resource-message-dialog"]).directive("importResourceMessage",a),a.$inject=["$uibModal"]},90:function(e,o,r){"use strict";r.r(o),r.d(o,"ImportResourceStatus",(function(){return t}));const t={NONE:"NONE",UPLOADING:"UPLOADING",UPLOAD_ERROR:"UPLOAD_ERROR",UPLOADED:"UPLOADED",PENDING:"PENDING",IMPORTING:"IMPORTING",DONE:"DONE",ERROR:"ERROR",INTERRUPTING:"INTERRUPTING"}}}]);
1
+ (window.webpackJsonp=window.webpackJsonp||[]).push([[62,183,205,329],{100:function(e,o,r){"use strict";r.r(o),r.d(o,"removeSpecialChars",(function(){return s})),r.d(o,"toBoolean",(function(){return a})),r.d(o,"toTitleCase",(function(){return i}));var t=r(18);const s=e=>e.replace(/[()']/g,""),a=e=>"string"==typeof e?"true"===e:Boolean(e),i=e=>e?Object(t.upperFirst)(e.toLowerCase()):e},179:function(e,o){function r(e,o,r,t,s){e.message=s,e.close=()=>{o.dismiss()},e.copyToClipboard=()=>{navigator.clipboard.writeText(e.message).then(()=>{t.success(r.instant("import.help.messages.copied_to_clipboard")),e.close()},e=>{console.error("Could not copy text: ",e)})}}angular.module("graphdb.framework.impex.import.controllers.import-resource-message-dialog",[]).controller("ImportResourceMessageDialogController",r),r.$inject=["$scope","$uibModalInstance","$translate","toastr","message"]},279:function(e,o,r){"use strict";r.r(o);r(179);var t=r(90),s=r(100);function a(e){return{restrict:"E",templateUrl:"js/angular/import/templates/import-resource-message.html",scope:{resource:"="},link:o=>{o.ImportResourceStatus=t.ImportResourceStatus,o.toTitleCase=e=>s.toTitleCase(e),o.showMessage=o=>{e.open({templateUrl:"js/angular/import/templates/import-resource-message-dialog.html",controller:"ImportResourceMessageDialogController",size:"lg",windowClass:"import-resource-message-dialog",backdrop:"static",resolve:{message:function(){return o?o.importResource.message:""}}})}}}}angular.module("graphdb.framework.import.directives.import-resource-message",["graphdb.framework.impex.import.controllers.import-resource-message-dialog"]).directive("importResourceMessage",a),a.$inject=["$uibModal"]},90:function(e,o,r){"use strict";r.r(o),r.d(o,"ImportResourceStatus",(function(){return t}));const t={NONE:"NONE",UPLOADING:"UPLOADING",UPLOAD_ERROR:"UPLOAD_ERROR",UPLOADED:"UPLOADED",PENDING:"PENDING",IMPORTING:"IMPORTING",DONE:"DONE",ERROR:"ERROR",INTERRUPTING:"INTERRUPTING"}}}]);
@@ -1 +1 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([[64,203,205,206],{112:function(t,e,s){"use strict";s.r(e),s.d(e,"ImportResourceType",(function(){return r}));const r={DIRECTORY:"directory",FILE:"file",URL:"url",TEXT:"text"}},145:function(t,e,s){"use strict";s.r(e),s.d(e,"ImportParsingSettings",(function(){return r}));class r{constructor(){this.contextLink=void 0,this.preserveBNodeIds=!1,this.failOnUnknownDataTypes=!1,this.verifyDataTypeValues=!1,this.normalizeDataTypeValues=!1,this.failOnUnknownLanguageTags=!1,this.verifyLanguageTags=!1,this.normalizeLanguageTags=!1,this.stopOnError=!0}}},178:function(t,e,s){"use strict";s.r(e),s.d(e,"ImportResource",(function(){return a}));var r=s(90),i=s(145),o=s(112);class a{constructor(t,e){this.hash=e(JSON.stringify(t)),this.name=t?t.name:void 0,this.status=t?t.status:r.ImportResourceStatus.NONE,this.message=t&&t.message?t.message:"",this.context=t&&t.context?t.context:"",this.replaceGraphs=t?t.replaceGraphs:[],this.baseURI=t?t.baseURI:void 0,this.forceSerial=!!t&&t.forceSerial,this.type=t?t.type:void 0,this.format=t?t.format:void 0,this.data=t?t.data:void 0,this.modifiedOn=t?t.lastModified:void 0,this.importedOn=t?t.imported:void 0,this.size=t?t.size:"",this.addedStatements=t?t.addedStatements:0,this.removedStatements=t?t.removedStatements:0,this.numReplacedGraphs=t?t.numReplacedGraphs:0,this.parserSettings=t?t.parserSettings:new i.ImportParsingSettings,this.requestIdHeadersToForward=t?t.requestIdHeadersToForward:void 0}isDirectory(){return o.ImportResourceType.DIRECTORY===this.type}isFile(){return o.ImportResourceType.FILE===this.type||o.ImportResourceType.URL===this.type||o.ImportResourceType.TEXT===this.type}isURL(){return o.ImportResourceType.URL===this.type}isText(){return o.ImportResourceType.TEXT===this.type}}},90:function(t,e,s){"use strict";s.r(e),s.d(e,"ImportResourceStatus",(function(){return r}));const r={NONE:"NONE",UPLOADING:"UPLOADING",UPLOAD_ERROR:"UPLOAD_ERROR",UPLOADED:"UPLOADED",PENDING:"PENDING",IMPORTING:"IMPORTING",DONE:"DONE",ERROR:"ERROR",INTERRUPTING:"INTERRUPTING"}}}]);
1
+ (window.webpackJsonp=window.webpackJsonp||[]).push([[64,203,205,206],{112:function(t,e,s){"use strict";s.r(e),s.d(e,"ImportResourceType",(function(){return r}));const r={DIRECTORY:"directory",FILE:"file",URL:"url",TEXT:"text"}},145:function(t,e,s){"use strict";s.r(e),s.d(e,"ImportParsingSettings",(function(){return r}));class r{constructor(){this.contextLink=void 0,this.preserveBNodeIds=!1,this.failOnUnknownDataTypes=!1,this.verifyDataTypeValues=!1,this.normalizeDataTypeValues=!1,this.failOnUnknownLanguageTags=!1,this.verifyLanguageTags=!1,this.normalizeLanguageTags=!1,this.stopOnError=!0}}},177:function(t,e,s){"use strict";s.r(e),s.d(e,"ImportResource",(function(){return a}));var r=s(90),i=s(145),o=s(112);class a{constructor(t,e){this.hash=e(JSON.stringify(t)),this.name=t?t.name:void 0,this.status=t?t.status:r.ImportResourceStatus.NONE,this.message=t&&t.message?t.message:"",this.context=t&&t.context?t.context:"",this.replaceGraphs=t?t.replaceGraphs:[],this.baseURI=t?t.baseURI:void 0,this.forceSerial=!!t&&t.forceSerial,this.type=t?t.type:void 0,this.format=t?t.format:void 0,this.data=t?t.data:void 0,this.modifiedOn=t?t.lastModified:void 0,this.importedOn=t?t.imported:void 0,this.size=t?t.size:"",this.addedStatements=t?t.addedStatements:0,this.removedStatements=t?t.removedStatements:0,this.numReplacedGraphs=t?t.numReplacedGraphs:0,this.parserSettings=t?t.parserSettings:new i.ImportParsingSettings,this.requestIdHeadersToForward=t?t.requestIdHeadersToForward:void 0}isDirectory(){return o.ImportResourceType.DIRECTORY===this.type}isFile(){return o.ImportResourceType.FILE===this.type||o.ImportResourceType.URL===this.type||o.ImportResourceType.TEXT===this.type}isURL(){return o.ImportResourceType.URL===this.type}isText(){return o.ImportResourceType.TEXT===this.type}}},90:function(t,e,s){"use strict";s.r(e),s.d(e,"ImportResourceStatus",(function(){return r}));const r={NONE:"NONE",UPLOADING:"UPLOADING",UPLOAD_ERROR:"UPLOAD_ERROR",UPLOADED:"UPLOADED",PENDING:"PENDING",IMPORTING:"IMPORTING",DONE:"DONE",ERROR:"ERROR",INTERRUPTING:"INTERRUPTING"}}}]);