graphdb-workbench 2.6.0-TR7 → 2.6.0

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 (321) hide show
  1. package/dist/0.a3b3bef411c35bdc8be5.bundle.js +25 -0
  2. package/dist/{1.e03c90bd5954ca9b5fa7.bundle.js → 1.aab0f9b3a664ffdd46a3.bundle.js} +1 -1
  3. package/dist/10.2f1b7b3050f428758cd0.bundle.js +1 -0
  4. package/dist/{101.da23dac24536f74b5815.bundle.js → 101.d85136c82944d96009d8.bundle.js} +1 -1
  5. package/dist/{102.0a4aa8fcdaac2461ee45.bundle.js → 102.a57d02f54d23e39ab220.bundle.js} +1 -1
  6. package/dist/{104.42f4d10207d67e051eed.bundle.js → 104.30887712ab9f944ce3b5.bundle.js} +1 -1
  7. package/dist/{106.b5d5730844146ca5a17d.bundle.js → 106.dfa270c46faceb444b3a.bundle.js} +1 -1
  8. package/dist/{108.26b1081facbae1a51535.bundle.js → 108.9d2fca01799579fd246a.bundle.js} +1 -1
  9. package/dist/{109.c309c91a2c68099e26a7.bundle.js → 109.41cc535019ec49b7a449.bundle.js} +1 -1
  10. package/dist/{12.30df13cd275e9db26d08.bundle.js → 11.5146ccccd430bce59f6c.bundle.js} +1 -1
  11. package/dist/{110.0d1d7ebe2eeac8b4faef.bundle.js → 110.087f1045498ced6386ac.bundle.js} +1 -1
  12. package/dist/{111.ebfce66a46414fbc5035.bundle.js → 111.d77e3e60f2db63fcd713.bundle.js} +1 -1
  13. package/dist/{112.ebf0f5e54690989b150d.bundle.js → 112.6b5fac36fea6ec10ccf7.bundle.js} +1 -1
  14. package/dist/{113.69b5499240cb809a0fce.bundle.js → 113.85c3c663f3681b21e49d.bundle.js} +1 -1
  15. package/dist/{114.97c6ff9e6faa36ae4c92.bundle.js → 114.635dc2e74009c95bf91e.bundle.js} +1 -1
  16. package/dist/{116.50238606941983d7984f.bundle.js → 116.511ed0fc7766ce1c5dbe.bundle.js} +1 -1
  17. package/dist/{117.bce63009af74c3e9a47e.bundle.js → 117.ff4f162729afc19137ca.bundle.js} +1 -1
  18. package/dist/{13.a8f91fd9198a469d445a.bundle.js → 12.75466fc44ea53c351a67.bundle.js} +1 -1
  19. package/dist/{14.f2d6ffd1bd5125113712.bundle.js → 13.6e2d206f55eeb2c58b2b.bundle.js} +1 -1
  20. package/dist/{131.e1a244126c43896cd7fe.bundle.js → 131.f41a0b6b9036447b1077.bundle.js} +1 -1
  21. package/dist/{135.e8261504f1da852a376c.bundle.js → 135.e71755f6f0278b2943d0.bundle.js} +1 -1
  22. package/dist/{138.07fa96b665a491f213fc.bundle.js → 138.8885afc315c221adb64b.bundle.js} +1 -1
  23. package/dist/{139.dc143faed80495c85bc3.bundle.js → 139.f02901e6087085176dc7.bundle.js} +1 -1
  24. package/dist/14.77134ed08934f63cbe92.bundle.js +1 -0
  25. package/dist/{140.94d586ec81d9e3063c4f.bundle.js → 140.f0e54b9511ca99865d9d.bundle.js} +1 -1
  26. package/dist/{145.645969658a10c86c9ef2.bundle.js → 145.2ea88cbccd93fc9fa454.bundle.js} +1 -1
  27. package/dist/{146.da06a567fbb2421d8782.bundle.js → 146.e7b99166958dc75f43e7.bundle.js} +1 -1
  28. package/dist/{147.31da28c0c793b6d4b3d9.bundle.js → 147.7abb3c6ae63a13eb61a5.bundle.js} +1 -1
  29. package/dist/{148.6d7b7e06222ad071d0b4.bundle.js → 148.b9aa2392ff5063d92341.bundle.js} +1 -1
  30. package/dist/149.c2b7461cdb7018d8a7ac.bundle.js +1 -0
  31. package/dist/{16.a91d31f0b9b876015299.bundle.js → 15.81ca8fb02469ee14c5e4.bundle.js} +1 -1
  32. package/dist/{150.76212c0fbb3040671059.bundle.js → 150.c1303d8109786b40d21a.bundle.js} +1 -1
  33. package/dist/151.b909ba9cb2419e0f91dd.bundle.js +1 -0
  34. package/dist/{151.6352d1c723f9c08c2285.bundle.js → 152.20fec292fccfef232845.bundle.js} +1 -1
  35. package/dist/{152.0e861d13004eb057e32e.bundle.js → 153.7413dfe6871e27f43788.bundle.js} +1 -1
  36. package/dist/{153.14519f8335c9c7e76492.bundle.js → 154.19d1b00bfc1e419adc42.bundle.js} +1 -1
  37. package/dist/155.dd57193f58cc7d5262b8.bundle.js +1 -0
  38. package/dist/{155.c089ba425702a417c119.bundle.js → 156.258d084f62fa73d45ded.bundle.js} +1 -1
  39. package/dist/{156.d6f702761bee674310b6.bundle.js → 157.60074b591e62c10a77ed.bundle.js} +1 -1
  40. package/dist/{157.aec7b9612e637437b517.bundle.js → 158.742c03d8e739b04df049.bundle.js} +1 -1
  41. package/dist/{158.91fa1ebc27afd697c27f.bundle.js → 159.41a2a6b6b485989a9412.bundle.js} +1 -1
  42. package/dist/16.028d7ea5baf358e315cb.bundle.js +3 -0
  43. package/dist/{159.035a1e31b7a3335ca885.bundle.js → 160.7616cb8b729cfbe229fb.bundle.js} +1 -1
  44. package/dist/{160.772b960ac85fbfa35ee0.bundle.js → 161.cc79ca9a079e616ba9e6.bundle.js} +1 -1
  45. package/dist/{161.7f9a2c46e4ceed3c1a1b.bundle.js → 162.78a734f7eb6bd4583f17.bundle.js} +1 -1
  46. package/dist/{162.b4177896a68c72669b9f.bundle.js → 163.5dbf48d936a3c831c9b5.bundle.js} +1 -1
  47. package/dist/{163.f0099072da8e2298b60c.bundle.js → 164.d3220f317e31f573b335.bundle.js} +1 -1
  48. package/dist/{164.746d5d3920914c734dad.bundle.js → 165.4b88e7b3b3a273cb4ed1.bundle.js} +1 -1
  49. package/dist/{165.27a6180d0f3d34f041ed.bundle.js → 166.92928a8fa8ec48d00349.bundle.js} +1 -1
  50. package/dist/{166.35757cd50c9290af0afc.bundle.js → 167.b38a507dbcfd6329cf8c.bundle.js} +1 -1
  51. package/dist/168.c52d0bbbd4224ddadd7c.bundle.js +1 -0
  52. package/dist/169.f6823be6839682f8586c.bundle.js +1 -0
  53. package/dist/17.31f5971e39936437eda8.bundle.js +1 -0
  54. package/dist/{169.600d8d824c825290434c.bundle.js → 170.8baf5e20de2271caf978.bundle.js} +1 -1
  55. package/dist/{170.4e527165141131f3fab5.bundle.js → 171.a46d6b00949dbdbbc38e.bundle.js} +1 -1
  56. package/dist/{171.dddfca13266402e1f383.bundle.js → 172.9b5d17e5c772c53243e9.bundle.js} +1 -1
  57. package/dist/{172.d614a13d7ddf1f24b035.bundle.js → 173.d3bbff40e6f45969410d.bundle.js} +1 -1
  58. package/dist/{173.17b872eb64767f4f0546.bundle.js → 174.6d17f7732045b6f182a0.bundle.js} +1 -1
  59. package/dist/{174.bc53719a59976016e31e.bundle.js → 175.7bc87231bd4677800c77.bundle.js} +1 -1
  60. package/dist/{175.3b63253263f318574534.bundle.js → 176.f7a1a4fdd12ad86f3d08.bundle.js} +1 -1
  61. package/dist/{176.3af968314539e2a18e7f.bundle.js → 177.1023531c905d87b8a4ac.bundle.js} +1 -1
  62. package/dist/{177.4b17d0269a1519575339.bundle.js → 178.cb8324bb00103fb26cfb.bundle.js} +1 -1
  63. package/dist/{178.64d599a0c6df637717b4.bundle.js → 179.e4bea06f7e407436dce7.bundle.js} +1 -1
  64. package/dist/{19.ecd29d95e3cb58e1be47.bundle.js → 18.a18e024d172531f968fa.bundle.js} +1 -1
  65. package/dist/{179.747740f92b7702dcc48e.bundle.js → 180.bd3f5149f861a2586ffb.bundle.js} +1 -1
  66. package/dist/181.393af0e6c19d537f775b.bundle.js +1 -0
  67. package/dist/182.9b7c235aa984ad81ab02.bundle.js +1 -0
  68. package/dist/{182.041784b0022a77256855.bundle.js → 183.2f7def34c47fd1bc38b3.bundle.js} +1 -1
  69. package/dist/{183.f5c5d51fb22c498fa505.bundle.js → 184.a71cd41118f14e2c123f.bundle.js} +1 -1
  70. package/dist/{184.e3f45487fb25f163475a.bundle.js → 185.31a5c2ddc3afdffdc9e5.bundle.js} +1 -1
  71. package/dist/{185.4b8b11cf31d7fb573d19.bundle.js → 186.daffd5d0823f56ba3c54.bundle.js} +1 -1
  72. package/dist/{186.f75fd6491a001c966970.bundle.js → 187.4b22405c17194851a1e1.bundle.js} +1 -1
  73. package/dist/{187.9986962b8a5b139e970d.bundle.js → 188.bce7651d7bd1e88d7689.bundle.js} +1 -1
  74. package/dist/189.4456ac2b4559c9c4e808.bundle.js +1 -0
  75. package/dist/19.ec4fc8946a6edb7dc7c9.bundle.js +1 -0
  76. package/dist/{189.8e5e3adedd441defe4c4.bundle.js → 190.d758ca3d4a14b7273bab.bundle.js} +1 -1
  77. package/dist/{190.66e3bdaa04b4decf2ba3.bundle.js → 191.8c31e698a482ba52ca82.bundle.js} +1 -1
  78. package/dist/{191.9ef6c0f16573bdd9518d.bundle.js → 192.944cc89f4d31c0fd8f79.bundle.js} +1 -1
  79. package/dist/{192.9ad3f67bf0b4fb24ddcf.bundle.js → 193.fad67143e7b911118459.bundle.js} +1 -1
  80. package/dist/194.a4f892be39e071e2552a.bundle.js +1 -0
  81. package/dist/{194.901bc655cc4dcf5b8828.bundle.js → 195.7f8774fd8da98c5897a1.bundle.js} +1 -1
  82. package/dist/{195.83c158392cc91057790a.bundle.js → 196.3ab76ea57aaa91d34511.bundle.js} +1 -1
  83. package/dist/{196.6d5d8cd75bca1a0b3dc7.bundle.js → 197.9bbab0d7f35c2b58914f.bundle.js} +1 -1
  84. package/dist/{197.8ca96ca487a40fa840d8.bundle.js → 198.813986f24f2f7887e738.bundle.js} +1 -1
  85. package/dist/{198.55aaef214f973f2fd765.bundle.js → 199.246f0549d7bdf7c18215.bundle.js} +1 -1
  86. package/dist/2.907f954e4f9e0697612c.bundle.js +1 -0
  87. package/dist/{21.d5df29d93e8f06b119cd.bundle.js → 20.b6d679aabf452ffe8369.bundle.js} +1 -1
  88. package/dist/{199.78325ea1b608d918bace.bundle.js → 200.20f4846b9ed97b60def3.bundle.js} +1 -1
  89. package/dist/{200.3dd11bd82a04bd69210c.bundle.js → 201.768937613e43caedd9fc.bundle.js} +1 -1
  90. package/dist/{201.52d4c7b0be7a81409dea.bundle.js → 202.0d38d4ec1e39e8ca91b7.bundle.js} +1 -1
  91. package/dist/{202.68366d4b80b30a01bb64.bundle.js → 203.a78dd70f65b08ecb58d2.bundle.js} +1 -1
  92. package/dist/{203.32b1161ee403ee6a7a87.bundle.js → 204.e1f61ba757fbc813e6d4.bundle.js} +1 -1
  93. package/dist/{204.e6532d83950ed0d90858.bundle.js → 205.cc2c5786dff7bf31b08c.bundle.js} +1 -1
  94. package/dist/{205.32d53c454812ece54ad3.bundle.js → 206.dadf18fb31b0533b1696.bundle.js} +1 -1
  95. package/dist/{206.b7693b489aab517013c0.bundle.js → 207.44dbc18bb4c8fa07cc66.bundle.js} +1 -1
  96. package/dist/{207.90cd07e725f11e2955a9.bundle.js → 208.dda72c8e3795ba716704.bundle.js} +1 -1
  97. package/dist/{208.c859bf3d849bb6a23309.bundle.js → 209.7f8b6e8e2869b51c554c.bundle.js} +1 -1
  98. package/dist/{22.558319f1b7a334b4c6f7.bundle.js → 21.6fc8ebce5e63eedb5f9e.bundle.js} +1 -1
  99. package/dist/{209.71ae9f27360cea1fea35.bundle.js → 210.6d601b172d76d9bc2c98.bundle.js} +1 -1
  100. package/dist/{210.ac3c6377ae376bb1af4b.bundle.js → 211.ad09e493e9be031887e9.bundle.js} +1 -1
  101. package/dist/{211.0ec643f55b948a8f9f48.bundle.js → 212.364965f963bcd6331e6f.bundle.js} +1 -1
  102. package/dist/{212.a4b953e7f5eb25d75fe7.bundle.js → 213.6c5b540986e7b24a338a.bundle.js} +1 -1
  103. package/dist/{213.a4bb72951f7027af40e7.bundle.js → 214.3c333d59839d2bcd183e.bundle.js} +1 -1
  104. package/dist/{215.2715de57bc29ae12760a.bundle.js → 215.a95cf561d38004eff071.bundle.js} +1 -1
  105. package/dist/{216.481eecbf6ba93bcaf9cd.bundle.js → 216.acdd4ee62af663ab18a1.bundle.js} +1 -1
  106. package/dist/{218.060db62650e72ac409e6.bundle.js → 218.66399da8a64421df67c1.bundle.js} +1 -1
  107. package/dist/{219.da0d3aa938ac7abd5fc4.bundle.js → 219.05c3d5e61c9bb4752e5f.bundle.js} +1 -1
  108. package/dist/22.8ee5985085ab2c4b99f1.bundle.js +2 -0
  109. package/dist/{220.975a8d3d5bb4c9f98f03.bundle.js → 220.069190d187dfc576daed.bundle.js} +1 -1
  110. package/dist/{221.db6ab18cac0e062988f2.bundle.js → 221.3553362f556124c787a8.bundle.js} +1 -1
  111. package/dist/{223.8518540ce17b71ee7d00.bundle.js → 223.37d133ce14e20b0efe2d.bundle.js} +1 -1
  112. package/dist/{23.a73e0d554b13e8be6192.bundle.js → 23.91ef26cbbdeac17b5756.bundle.js} +1 -1
  113. package/dist/{232.a82bb60245703594146d.bundle.js → 232.ddae678620e7c15b8ec4.bundle.js} +1 -1
  114. package/dist/{233.04f3ef286087750260da.bundle.js → 233.007908cb7a913f1554ed.bundle.js} +1 -1
  115. package/dist/{235.da3fa81ece977040e9ae.bundle.js → 235.97d46a9b6277079ae6cc.bundle.js} +1 -1
  116. package/dist/{24.fb8fb91e17bebea57530.bundle.js → 24.498f1aefa71ceb33d2f8.bundle.js} +1 -1
  117. package/dist/242.91371576625ebddd82e9.bundle.js +1 -0
  118. package/dist/243.36fbc0c96d0a35048949.bundle.js +1 -0
  119. package/dist/{244.d46b9193359e7de1daa3.bundle.js → 244.526affae61c05ae944d3.bundle.js} +1 -1
  120. package/dist/{245.1ce3b6cc293a8c72b187.bundle.js → 245.feedc08d977143faa08e.bundle.js} +1 -1
  121. package/dist/{246.0cb817418790a596b441.bundle.js → 246.136fac3b1ce27662490d.bundle.js} +1 -1
  122. package/dist/{25.05618f7474a6e6d47ff2.bundle.js → 25.f5a19d06088f0938fc9f.bundle.js} +1 -1
  123. package/dist/257.943f597bddc0d65103c5.bundle.js +1 -0
  124. package/dist/259.2c88332b7f1b47935a47.bundle.js +1 -1
  125. package/dist/26.85a305c95834a8a1a05a.bundle.js +1 -0
  126. package/dist/260.d745422c537bdd9647bb.bundle.js +1 -1
  127. package/dist/261.7efff7f93f61f061f5ca.bundle.js +1 -1
  128. package/dist/{270.ac5c5d3247ad275e7009.bundle.js → 269.601d4fc4300f4553d75c.bundle.js} +1 -1
  129. package/dist/27.92bfb161b420732902a3.bundle.js +1 -0
  130. package/dist/{271.9a3928b874295c3742c9.bundle.js → 270.e9d338a5cf954fbc1f4c.bundle.js} +1 -1
  131. package/dist/{272.1a054f1ad3341ea6a8bf.bundle.js → 271.a88eeff63bbc87791af0.bundle.js} +1 -1
  132. package/dist/{273.a76e42437fb947cf800e.bundle.js → 272.ddacc590a66bdb0fa651.bundle.js} +1 -1
  133. package/dist/{274.5c68c6d7373825aa4e86.bundle.js → 273.d45db281162abbe864ae.bundle.js} +1 -1
  134. package/dist/{275.e2dcae6396e8a69cfda6.bundle.js → 274.eca3da80ab4f0b4a3263.bundle.js} +1 -1
  135. package/dist/{276.7f9b39624632a68a5285.bundle.js → 275.509ea766eda3bbcf1562.bundle.js} +1 -1
  136. package/dist/{277.bfe0617252621ed4c42e.bundle.js → 276.f816f19aaa4522373a5f.bundle.js} +1 -1
  137. package/dist/{278.93d21415de115ff1f4ea.bundle.js → 277.6c6b5259fa26936adf41.bundle.js} +1 -1
  138. package/dist/{279.eae641def34a167d2281.bundle.js → 278.bfc453e4fdb94806e6fc.bundle.js} +1 -1
  139. package/dist/{280.1df4667ec8bdeb6dfaea.bundle.js → 279.855b2c767116d91fdc3b.bundle.js} +1 -1
  140. package/dist/28.2e0277168c8f14f9c085.bundle.js +1 -0
  141. package/dist/{281.53c031371f2bb364c04d.bundle.js → 280.95394d461866b83c32b7.bundle.js} +1 -1
  142. package/dist/{282.fe20f54cb2cbcce66407.bundle.js → 281.fcaf9deb44f93c85ef68.bundle.js} +1 -1
  143. package/dist/{283.207dc2ee5d4f42eb8843.bundle.js → 282.bede8a18d3e678b7895d.bundle.js} +1 -1
  144. package/dist/{284.3f82d52f39f429a80a3d.bundle.js → 283.bf3ea5f6f6b8406e5401.bundle.js} +1 -1
  145. package/dist/{285.001918dbfd9d06b076f5.bundle.js → 284.3f34606cfbcefb0a1a47.bundle.js} +1 -1
  146. package/dist/{286.a942f86c8f772d2c5a97.bundle.js → 285.4e95ca9e283ddd26fcbf.bundle.js} +1 -1
  147. package/dist/{287.494a03de1929e1d105ab.bundle.js → 286.8c8f50e9844881f0b028.bundle.js} +1 -1
  148. package/dist/{288.b2b166b7f54396a82703.bundle.js → 287.23b580771ee0d5e65d41.bundle.js} +1 -1
  149. package/dist/288.6cef162ec3cec3cde603.bundle.js +1 -0
  150. package/dist/{290.8f09c520973805dc0b75.bundle.js → 289.c47fa5cd7d5468dce45f.bundle.js} +1 -1
  151. package/dist/29.128101fabb544e88e448.bundle.js +1 -0
  152. package/dist/{291.f74df165a765971f45f8.bundle.js → 290.b9baf8eed99b4447f086.bundle.js} +1 -1
  153. package/dist/{292.c98a310d9505c88dbb03.bundle.js → 291.1e7bf6b667f7698ac645.bundle.js} +1 -1
  154. package/dist/{293.5927b1ccc8652a69f9f6.bundle.js → 292.44bcf6642bd3fac703b4.bundle.js} +1 -1
  155. package/dist/{294.fa4adea2ba4209ed2948.bundle.js → 293.184eb39d3229ef066269.bundle.js} +1 -1
  156. package/dist/{295.101fa72149ab787e61be.bundle.js → 294.338c276decc123976f73.bundle.js} +1 -1
  157. package/dist/{296.f771364da8206ec2bf47.bundle.js → 295.72eea8b2cf594acd85e6.bundle.js} +1 -1
  158. package/dist/{297.3860f145d5e36bd73827.bundle.js → 296.8f11a500bce671ed75db.bundle.js} +1 -1
  159. package/dist/{298.008ebf3a3821b3d63665.bundle.js → 297.71b96380e1103cd792d9.bundle.js} +1 -1
  160. package/dist/{299.ed41fda2bf4ed838a124.bundle.js → 298.39626a266f47903126bf.bundle.js} +1 -1
  161. package/dist/299.d3636e77b768f4300e8c.bundle.js +1 -0
  162. package/dist/3.e877f5e49ef930b8b905.bundle.js +1 -0
  163. package/dist/{30.b0601d9b2eb0378f357b.bundle.js → 30.1ffda412dea3c5f55c24.bundle.js} +1 -1
  164. package/dist/300.c9844b95b03ac7295e4f.bundle.js +1 -0
  165. package/dist/{302.10346bda237ba9c799b7.bundle.js → 301.e9495589c306b342c312.bundle.js} +1 -1
  166. package/dist/{303.859738ec0caf12df13cf.bundle.js → 302.d16e044e23278bf1e922.bundle.js} +1 -1
  167. package/dist/{304.cc77ddd04449a3441850.bundle.js → 303.4ab6b30437bce5474d30.bundle.js} +1 -1
  168. package/dist/{305.c75df156c0f68e0459c2.bundle.js → 304.e055e669c9bad5898984.bundle.js} +1 -1
  169. package/dist/{31.00357926a3dd506cfed4.bundle.js → 31.2c95be2edb9c756e0f13.bundle.js} +1 -1
  170. package/dist/{32.2dff690bb00caa029abd.bundle.js → 32.08cc7807b71cf869e6e2.bundle.js} +1 -1
  171. package/dist/{33.37ed81796994b7ed62c4.bundle.js → 33.601eab9a8c9d80755599.bundle.js} +1 -1
  172. package/dist/{34.abf8789b45b8ea96ff18.bundle.js → 34.b03038da5530dcb82c85.bundle.js} +1 -1
  173. package/dist/{35.e25cce53f1c1db91b953.bundle.js → 35.d337b2f1aeac7bab3100.bundle.js} +2 -2
  174. package/dist/{36.2c564976b0b096602ab8.bundle.js → 36.780bcf12c8d8b5742eac.bundle.js} +1 -1
  175. package/dist/{37.675f0007659d6dccbfb7.bundle.js → 37.2204724b4ae08556283e.bundle.js} +1 -1
  176. package/dist/{38.f34422a7ebc7fbd1a3d9.bundle.js → 38.0edff4c7b76c9652f664.bundle.js} +1 -1
  177. package/dist/{39.013faadc982d2e0d9336.bundle.js → 39.f691f87a4527e58da4a2.bundle.js} +1 -1
  178. package/dist/{4.3ae49ec335f1df4b4021.bundle.js → 4.fe432ceb2b88c03018b3.bundle.js} +1 -1
  179. package/dist/40.53352fda81f370182e99.bundle.js +1 -0
  180. package/dist/{41.69bf4dc04f2a78673ece.bundle.js → 41.5a0ecbdf78c48ddce365.bundle.js} +1 -1
  181. package/dist/{42.cff7a32967655ea47a5d.bundle.js → 42.6a677110f335d516813b.bundle.js} +1 -1
  182. package/dist/{43.9d5fccb177630687a006.bundle.js → 43.bcf30fa642d63c585962.bundle.js} +1 -1
  183. package/dist/{44.4557be8e879e9d9424d6.bundle.js → 44.f3060f0a04c90bc70a36.bundle.js} +1 -1
  184. package/dist/{45.ee8f8aae55544a60ac71.bundle.js → 45.001b1bcbff1d7c9b3288.bundle.js} +1 -1
  185. package/dist/{46.65eadbfe8c59dc269d41.bundle.js → 46.7682ca54e79000d992ab.bundle.js} +1 -1
  186. package/dist/{47.f9a994c85d53f6b9eb98.bundle.js → 47.7e030d52af57062c6527.bundle.js} +1 -1
  187. package/dist/{48.736ef0fb5be450f7f88f.bundle.js → 48.669aedf81599ca0aee35.bundle.js} +1 -1
  188. package/dist/{49.f7cdf694fb74c8356472.bundle.js → 49.319507fd2417a71a157e.bundle.js} +1 -1
  189. package/dist/{5.dd3cfaf9a2a1592206f5.bundle.js → 5.f58f4e96c07a6a7a0e06.bundle.js} +1 -1
  190. package/dist/{50.6f8fd26290d2e6983c3d.bundle.js → 50.91efd0f7c94e635eb31b.bundle.js} +1 -1
  191. package/dist/51.9696bc200e07cfc15860.bundle.js +1 -0
  192. package/dist/{52.0c98d51c1112e976cf19.bundle.js → 52.37332ab2c0675e0a802c.bundle.js} +1 -1
  193. package/dist/{53.4b5fe6ce05e0c783fe29.bundle.js → 53.967c8f3d2a9f33fcfc27.bundle.js} +1 -1
  194. package/dist/{54.aa3428ee30dd14e05d9f.bundle.js → 54.07a064723a033340c51b.bundle.js} +1 -1
  195. package/dist/{55.efa5ad31d67af2c744b2.bundle.js → 55.1f556c49966d089af28e.bundle.js} +1 -1
  196. package/dist/{56.ac94dd0ea4db2a581c35.bundle.js → 56.0bfd1ac12b2c5f9116e5.bundle.js} +1 -1
  197. package/dist/{57.9233b17159cc3c6945ef.bundle.js → 57.19a0ece12b6fb894221d.bundle.js} +1 -1
  198. package/dist/{58.8806cb9a47b2fc28bdfc.bundle.js → 58.b741d32027a50f883617.bundle.js} +1 -1
  199. package/dist/{60.461c92385bbfc8190b68.bundle.js → 59.01fd6bb0dea0e31b8c98.bundle.js} +1 -1
  200. package/dist/{6.9557b6506bf958c26a2a.bundle.js → 6.0685b09a3646005a1521.bundle.js} +1 -1
  201. package/dist/60.dd84d15683316fe6c548.bundle.js +1 -0
  202. package/dist/61.2fdefec6b0e4f2f01dc9.bundle.js +1 -0
  203. package/dist/{62.41d2c2ef3b10e249cc3d.bundle.js → 62.3cda5cf1c8a74f8bccc6.bundle.js} +1 -1
  204. package/dist/{63.79ceab2871c4bf87e565.bundle.js → 63.dbce2c16115eac52fed2.bundle.js} +1 -1
  205. package/dist/{64.e25269fafd7b80074f79.bundle.js → 64.0b46f2876921c15c0f4d.bundle.js} +1 -1
  206. package/dist/{65.274e72f7a969f86decfd.bundle.js → 65.4c044f55fb8e826c87a0.bundle.js} +1 -1
  207. package/dist/{66.67b3d47091fe6530aa39.bundle.js → 66.c8b9472b02654a17b61c.bundle.js} +1 -1
  208. package/dist/{67.e0f4b94ebc82fee55aca.bundle.js → 67.958136cd17ad37887b60.bundle.js} +1 -1
  209. package/dist/{68.1c621dfd5257b2c18e11.bundle.js → 68.b4bf34276a3cab5e48bf.bundle.js} +1 -1
  210. package/dist/{69.1276f759153f8028a437.bundle.js → 69.68337b9a2e3104600ff6.bundle.js} +1 -1
  211. package/dist/{7.215fb90676ad005678a5.bundle.js → 7.15f6406e6baaef520b7f.bundle.js} +1 -1
  212. package/dist/{70.4d4e64191987cf37cdfa.bundle.js → 70.e04eced6ee3b7d712377.bundle.js} +1 -1
  213. package/dist/{71.ba412850727546ca9e65.bundle.js → 71.0fbdedcc573e4e38ff6a.bundle.js} +1 -1
  214. package/dist/{72.38694f9e5cf82efcec93.bundle.js → 72.e71caf5330e0c1cece04.bundle.js} +1 -1
  215. package/dist/{73.6a1697ff88885fd26dc9.bundle.js → 73.298162fe9ad207efe8a5.bundle.js} +1 -1
  216. package/dist/{74.6fde68e288d8e4277ed6.bundle.js → 74.b57c202b34d9d8effbcb.bundle.js} +1 -1
  217. package/dist/{75.497bd1a7aea851d96296.bundle.js → 75.8be72a221b92aa667da7.bundle.js} +1 -1
  218. package/dist/{76.5e2b21f991515d0d19bf.bundle.js → 76.0f45a150d03cf8aeeb9d.bundle.js} +1 -1
  219. package/dist/{77.90e14a1db3003d600a7f.bundle.js → 77.257e393d86a8fb9f2102.bundle.js} +1 -1
  220. package/dist/{78.4bbce98263e92664ab76.bundle.js → 78.83432ef1cff39b57aa50.bundle.js} +1 -1
  221. package/dist/{79.57f1baf03c17fa5d4ecf.bundle.js → 79.74e2421bfb8f6c563a99.bundle.js} +1 -1
  222. package/dist/{8.31311bef7b4e3d07b172.bundle.js → 8.df1e59fdf8864051f4b0.bundle.js} +2 -2
  223. package/dist/{80.73b9a4e922936baa0574.bundle.js → 80.53a2f5637376be338bb5.bundle.js} +1 -1
  224. package/dist/{81.22b0aca7b4f9137a0882.bundle.js → 81.a48e2d16edd121965d2f.bundle.js} +1 -1
  225. package/dist/{82.4e90f4fa2c1642a82980.bundle.js → 82.bde6d42f833167581069.bundle.js} +1 -1
  226. package/dist/{83.3dbe889b4ba264a9d674.bundle.js → 83.4bb7fb45433f0902ba64.bundle.js} +1 -1
  227. package/dist/{84.833096ee7ee9d0b926e2.bundle.js → 84.3fe74c343dd811256a58.bundle.js} +1 -1
  228. package/dist/85.e34e2854ea217304bf69.bundle.js +1 -0
  229. package/dist/{88.9ee9ff59ae44adabb225.bundle.js → 88.a54c809c84dbef177321.bundle.js} +1 -1
  230. package/dist/9.3890e642c0ae619d2c59.bundle.js +1 -0
  231. package/dist/{90.b6a2d473b83c0962a11f.bundle.js → 90.82bdd586c3a8e362fd99.bundle.js} +1 -1
  232. package/dist/{92.b19c893704dcb4660ede.bundle.js → 92.c68c7391efc7d3b46a0d.bundle.js} +1 -1
  233. package/dist/{93.1d771358d292c85ea6a9.bundle.js → 93.daf27be7933412f1637f.bundle.js} +1 -1
  234. package/dist/{94.29b7382aeb902f46d24a.bundle.js → 94.e7ab23159456b757afa9.bundle.js} +1 -1
  235. package/dist/{96.b8ea5582fc702c107cfd.bundle.js → 96.e01346a08ab153a02364.bundle.js} +1 -1
  236. package/dist/{98.fd14853ecbdcc01894e9.bundle.js → 98.1f20ae086eeefbf60b9f.bundle.js} +1 -1
  237. package/dist/{bundle.e8a8019cba24aec4c600.bundle.js → bundle.782865d765633c869a40.bundle.js} +22 -22
  238. package/dist/css/aclmanagement.css +71 -12
  239. package/dist/css/autocomplete-select.css +2 -1
  240. package/dist/css/bootstrap-graphdb-theme.css +3 -0
  241. package/dist/css/lib/ontotext-yasgui-web-component.css +9 -0
  242. package/dist/i18n/locale-en.json +15 -17
  243. package/dist/i18n/locale-fr.json +15 -17
  244. package/dist/index.html +5 -5
  245. package/dist/js/angular/core/directives/autocomplete/templates/autocomplete.html +5 -4
  246. package/dist/js/angular/core/directives/operations-statuses-monitor/templates/operations-statuses-monitor.html +1 -1
  247. package/dist/js/angular/core/directives/rdfresourcesearch/templates/rdfResourceSearchTemplate.html +1 -1
  248. package/dist/js/angular/core/directives/yasgui-component/templates/yasgui-component.html +1 -1
  249. package/dist/js/angular/import/templates/settingsModal.html +0 -18
  250. package/dist/js/angular/security/templates/user.html +1 -1
  251. package/dist/license-checker.json +28 -28
  252. package/dist/{main.d146b6bf3b36c70d7eb4.css → main.cd9080d130335332d006.css} +1 -1
  253. package/dist/pages/aclmanagement.html +83 -55
  254. package/dist/pages/autocomplete.html +1 -1
  255. package/dist/pages/choose-repository-type.html +1 -1
  256. package/dist/pages/cluster-management/clusterInfo.html +3 -3
  257. package/dist/pages/create-index.html +1 -1
  258. package/dist/pages/dependencies.html +1 -1
  259. package/dist/pages/domainRangeInfo.html +2 -2
  260. package/dist/pages/edit.html +1 -1
  261. package/dist/pages/explore.html +1 -1
  262. package/dist/pages/export.html +2 -20
  263. package/dist/pages/find.html +1 -1
  264. package/dist/pages/graph-config/saveGraphConfig.html +8 -8
  265. package/dist/pages/graphs-visualizations.html +7 -7
  266. package/dist/pages/guides.html +1 -1
  267. package/dist/pages/import.html +1 -1
  268. package/dist/pages/jdbc-create.html +1 -1
  269. package/dist/pages/monitor/backup-and-restore.html +1 -1
  270. package/dist/pages/monitor/queries.html +1 -1
  271. package/dist/pages/monitor/resources.html +1 -1
  272. package/dist/pages/namespaces.html +2 -2
  273. package/dist/pages/plugins.html +1 -1
  274. package/dist/pages/rdfClassHierarchyInfo.html +7 -7
  275. package/dist/pages/rdfrank.html +2 -2
  276. package/dist/pages/repositories.html +1 -1
  277. package/dist/pages/repository.html +1 -1
  278. package/dist/pages/similarity-indexes.html +1 -1
  279. package/dist/pages/sparql-editor.html +1 -1
  280. package/dist/pages/sparql-template-create.html +1 -1
  281. package/dist/pages/webapi.html +2 -2
  282. package/dist/{polyfills-dom.c264909e933fbc136d2e.bundle.js → polyfills-dom.e5e420bcb04603449d09.bundle.js} +1 -1
  283. package/dist/res/swagger/index.html +27 -27
  284. package/dist/{vendors~polyfills-core-js.4c9bf30520de19c215c1.bundle.js → vendors~polyfills-core-js.efe4b0ec258663b8b247.bundle.js} +1 -1
  285. package/package.json +2 -2
  286. package/dist/0.57d3540baa17edfe5cb2.bundle.js +0 -25
  287. package/dist/10.fcb4c283ed0e3ff77b9d.bundle.js +0 -1
  288. package/dist/11.e99d653419379ecf1b23.bundle.js +0 -1
  289. package/dist/149.e6ef25aca0b2356c2293.bundle.js +0 -1
  290. package/dist/15.b7f9dea17c384ee4f501.bundle.js +0 -1
  291. package/dist/154.a4116ecb8a9036e69532.bundle.js +0 -1
  292. package/dist/167.5c7c94a187107facac9c.bundle.js +0 -1
  293. package/dist/168.3e88b975a713f94e7d39.bundle.js +0 -1
  294. package/dist/17.f3951ee36cae3c2e59e2.bundle.js +0 -3
  295. package/dist/18.ae49723fee4c6316d3a0.bundle.js +0 -1
  296. package/dist/180.93416941c0938f77058c.bundle.js +0 -1
  297. package/dist/181.6ff5034f9a143adaa8a3.bundle.js +0 -1
  298. package/dist/188.a2cfced84824c4dfe8a5.bundle.js +0 -1
  299. package/dist/193.536e27e756a0f3c43b78.bundle.js +0 -1
  300. package/dist/2.3e6f434d5cdba922bb1d.bundle.js +0 -1
  301. package/dist/20.5ca7e302158bd768359d.bundle.js +0 -1
  302. package/dist/214.57cf0895f70c7c940ce5.bundle.js +0 -1
  303. package/dist/242.b5be51c553871ce3d83a.bundle.js +0 -1
  304. package/dist/243.c56f69b8c7dd3a2be144.bundle.js +0 -1
  305. package/dist/257.1e51f84ae10ed1a8a23b.bundle.js +0 -1
  306. package/dist/26.4eeeb7afd51795af82d7.bundle.js +0 -1
  307. package/dist/269.aec62cb6b5fa398be182.bundle.js +0 -1
  308. package/dist/27.e6c49ef111cabef46fd7.bundle.js +0 -1
  309. package/dist/28.9b2e80653eb69e4525ef.bundle.js +0 -1
  310. package/dist/289.7afbd014836c2b589df6.bundle.js +0 -1
  311. package/dist/29.a3413b59c038000244e5.bundle.js +0 -1
  312. package/dist/3.5b3776ce9f03e23885e4.bundle.js +0 -1
  313. package/dist/300.7182234269fde947567e.bundle.js +0 -1
  314. package/dist/301.2ec6cf72222278c83955.bundle.js +0 -1
  315. package/dist/40.cef0c3d8ef5a88d4a6e8.bundle.js +0 -1
  316. package/dist/51.36a5ca508d953a43df6d.bundle.js +0 -1
  317. package/dist/59.eb1a39fa936028cf3d6d.bundle.js +0 -1
  318. package/dist/61.f9061b24728ef92e2702.bundle.js +0 -1
  319. package/dist/85.172aa928154b446a004e.bundle.js +0 -1
  320. package/dist/9.bb8dc22bb967a40f67fe.bundle.js +0 -2
  321. package/dist/js/angular/export/templates/exportSettingsModal.html +0 -57
@@ -1 +1 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([[5,43,56,57,58,92,93,94,97,211],{108:function(e,t,o){"use strict";o.r(t),o.d(t,"NodeState",(function(){return r})),o.d(t,"RecoveryState",(function(){return s})),o.d(t,"LinkState",(function(){return a}));o(65),o(76),o(133),o(134),o(135),o(136),o(137),o(138),o(139);var n=o(64);angular.module("graphdb.framework.clustermanagement.controllers.cluster-management",["ui.bootstrap","graphdb.framework.core.services.repositories","graphdb.framework.rest.repositories.service","graphdb.framework.rest.cluster.service","graphdb.framework.clustermanagement.services.remote-locations","graphdb.framework.clustermanagement.controllers.remove-nodes","graphdb.framework.clustermanagement.controllers.create-cluster","graphdb.framework.clustermanagement.controllers.edit-cluster","graphdb.framework.clustermanagement.controllers.delete-cluster","graphdb.framework.clustermanagement.controllers.add-location","graphdb.framework.clustermanagement.controllers.add-nodes","graphdb.framework.clustermanagement.controllers.replace-nodes","toastr","pageslide-directive"]).controller("ClusterManagementCtrl",l);const r={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"},s={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"},a={IN_SYNC:"IN_SYNC",OUT_OF_SYNC:"OUT_OF_SYNC",SYNCING:"SYNCING",NO_CONNECTION:"NO_CONNECTION"};function l(e,t,o,s,l,c,i,d,u,g,m,f,p,h,C,N,_){e.loader=!0,e.isLeader=!1,e.currentNode=null,e.clusterModel={},e.NodeState=r,e.leaderChanged=!1,e.currentLeader=null,e.isAdmin=function(){return d.isAuthenticated()&&d.isAdmin()},e.childContext={},e.shouldShowClusterSettingsPanel=!1;let L;function S(t){L||(L=e.getClusterStatus().then(()=>{if(t||!e.clusterConfiguration)return e.getClusterConfiguration()}).then(()=>{if(!e.currentNode||e.leaderChanged)return e.getCurrentNodeStatus()}).finally(()=>{L=null,e.childContext.redraw()}))}function $(){return N.getLocationsWithRpcAddresses().then(t=>{const o=t.find(e=>e.isLocal);o&&(o.endpoint=e.currentNode.endpoint,o.rpcAddress=e.currentNode.address),e.clusterModel.locations=t})}e.onopen=e.onclose=()=>angular.noop(),e.toggleSidePanel=()=>{e.shouldShowClusterSettingsPanel=!e.shouldShowClusterSettingsPanel},e.toggleLegend=()=>{e.childContext.toggleLegend&&e.childContext.toggleLegend()},e.setLoader=function(t,o){f.cancel(e.loaderTimeout),t?(e.loaderMessage=o,e.loaderTimeout=f((function(){e.loader=t}),50)):e.loader=!1},e.childContext.selectNode=function(t){e.selectedNode!==t?e.selectedNode=t:e.selectedNode=null,e.$apply()},e.getLoaderMessage=function(){return e.loaderMessage||C.instant("common.loading")},e.getClusterConfiguration=()=>p.getClusterConfig().then(t=>{if(e.clusterConfiguration=t.data,!e.currentNode)return e.getCurrentNodeStatus()}).catch(()=>{e.clusterConfiguration=null}),e.getClusterStatus=function(){return p.getClusterStatus().then((function(t){const o=t.data.slice(),n=o.find(e=>e.nodeState===r.LEADER);var s,l;s=e.currentLeader,(l=n)&&s&&s.address===l.address||(e.currentLeader=n,e.leaderChanged=!0),e.currentNode=o.find(t=>t.address===e.currentNode.address);const c=[];n&&Object.keys(n.syncStatus).forEach(e=>{const t=n.syncStatus[e];t!==a.NO_CONNECTION&&c.push({id:`${n.address}-${e}`,source:n.address,target:e,status:t})}),e.clusterModel.hasCluster=!0,e.clusterModel.nodes=o,e.clusterModel.links=c})).catch((function(t){404===t.status&&(e.clusterModel.hasCluster=!1,e.clusterModel.nodes=[],e.clusterModel.links=[],e.clusterConfiguration=null)}))},e.showCreateClusterDialog=function(){c.open({templateUrl:"js/angular/clustermanagement/templates/modal/cluster-create-dialog.html",controller:"CreateClusterCtrl",size:"lg",resolve:{data:function(){return{deleteLocation:v,clusterModel:e.clusterModel}}}}).result.finally((function(){$(),S(!0)}))},e.showDeleteDialog=()=>{c.open({templateUrl:"js/angular/clustermanagement/templates/modal/cluster-delete-dialog.html",controller:"DeleteClusterCtrl"}).result.then((function(t){const o=C.instant("cluster_management.delete_cluster_dialog.loader_message");e.setLoader(!0,o),p.deleteCluster(t).then(t=>{if(Object.values(t.data).every(e=>"Cluster was deleted on this node."===e)){const e=C.instant("cluster_management.delete_cluster_dialog.notifications.success_delete");s.success(e)}else{const e=C.instant("cluster_management.delete_cluster_dialog.notifications.success_delete_partial"),o=Object.keys(t.data).reduce((e,o)=>e+`<div>${o} - ${t.data[o]}</div>`,"");s.warning(o,e,{allowHtml:!0})}e.getClusterConfiguration()}).catch(e=>{const t=C.instant("cluster_management.delete_cluster_dialog.notifications.fail_delete");T(e.data,e.status,t)}).finally(()=>{e.setLoader(!1),S(!0),_.$broadcast("reloadLocations")})}))},e.showEditConfigurationDialog=()=>{c.open({templateUrl:"js/angular/clustermanagement/templates/modal/cluster-edit-dialog.html",controller:"EditClusterCtrl",size:"lg",resolve:{data:function(){return{clusterConfiguration:e.clusterConfiguration}}}}).result.finally((function(){S(!0)}))},e.getCurrentNodeStatus=()=>p.getNodeStatus().then(t=>{e.leaderChanged=!1,e.currentNode=t.data}).catch(t=>{e.currentNode=t.data,e.clusterModel.hasCluster=!1}).then(()=>$());const v=function(e){return m.openSimpleModal({title:C.instant("location.confirm.detach"),message:C.instant("location.confirm.detach.warning",{uri:e.endpoint}),warning:!0}).result.then(()=>l.deleteLocation(e.endpoint))};function w(t){s.success(t),e.getClusterConfiguration()}function T(e,t,o){let r=e.message||e;400===t&&Array.isArray(e)?r=e.reduce((e,t)=>e+`<div>${t}</div>`,""):412!==t||Object(n.isString)(e)||(r=Object.keys(e).reduce((t,o)=>t+`<div>${o} - ${e[o]}</div>`,"")),s.error(r,o,{allowHtml:!0})}e.showAddNodeToClusterDialog=()=>{c.open({templateUrl:"js/angular/clustermanagement/templates/modal/add-nodes-dialog.html",controller:"AddNodesDialogCtrl",size:"lg",resolve:{data:function(){return{deleteLocation:v,clusterModel:e.clusterModel,clusterConfiguration:e.clusterConfiguration}}}}).result.then((function(t){const o=C.instant("cluster_management.cluster_page.add_nodes_loader");e.setLoader(!0,o);const n=t.map(e=>e.rpcAddress);p.addNodesToCluster(n).then(()=>{w(C.instant("cluster_management.cluster_page.notifications.add_nodes_success"))}).catch(e=>{const t=C.instant("cluster_management.cluster_page.notifications.add_nodes_fail");T(e.data,e.status,t)}).finally(()=>{e.setLoader(!1),S(!0)})})).finally(()=>$())},e.showReplaceNodesDialog=()=>{c.open({templateUrl:"js/angular/clustermanagement/templates/modal/replace-nodes-dialog.html",controller:"ReplaceNodesDialogCtrl",size:"lg",resolve:{data:function(){return{deleteLocation:v,clusterModel:e.clusterModel,clusterConfiguration:e.clusterConfiguration}}}}).result.then(t=>{const o=C.instant("cluster_management.cluster_page.replace_nodes_loader");e.setLoader(!0,o);const n={addNodes:t.newNodes.map(e=>e.rpcAddress),removeNodes:t.oldNodes.map(e=>e.rpcAddress)};p.replaceNodesInCluster(n).then(()=>{w(C.instant("cluster_management.cluster_page.notifications.replace_nodes_success"))}).catch(e=>{const t=C.instant("cluster_management.cluster_page.notifications.replace_nodes_fail");T(e.data,e.status,t)}).finally(()=>{e.setLoader(!1),S(!0)})}).finally(()=>$())},e.showRemoveNodesFromClusterDialog=()=>{c.open({templateUrl:"js/angular/clustermanagement/templates/modal/remove-nodes-dialog.html",controller:"RemoveNodesDialogCtrl",size:"lg",resolve:{data:function(){return{clusterModel:e.clusterModel}}}}).result.then((function(t){const o=C.instant("cluster_management.cluster_page.remove_nodes_loader");e.setLoader(!0,o);const n=t.map(e=>e.address);p.removeNodesFromCluster(n).then(()=>{w(C.instant("cluster_management.cluster_page.notifications.remove_nodes_success"))}).catch(e=>{const t=C.instant("cluster_management.cluster_page.notifications.remove_nodes_fail");T(e.data,e.status,t)}).finally(()=>{e.setLoader(!1),S(!0)})}))},(e.loader=!0,e.getCurrentNodeStatus().then(()=>e.getClusterConfiguration()).then(()=>e.getClusterStatus()).finally(()=>{e.setLoader(!1)})).finally(()=>{const t=g((function(){S()}),1e3);e.$on("$destroy",(function(){g.cancel(t)}))});const R=angular.element(u),A=function(){e.childContext.resize()};R.bind("resize",A);const O=function(t){const o=t.target,n=document.getElementById("nodeTooltip");e.selectedNode&&n!==o&&!n.contains(o)&&e.childContext.selectNode(null)};R.bind("mousedown",O),e.$on("$destroy",(function(){R.unbind("resize",A),R.unbind("mousedown",O)}))}l.$inject=["$scope","$http","$q","toastr","$repositories","$uibModal","$sce","$jwtAuth","$window","$interval","ModalService","$timeout","ClusterRestService","$location","$translate","RemoteLocationsService","$rootScope"]},133:function(e,t){function o(e,t,o){const n=_.cloneDeep(o.clusterModel);e.clusterNodes=n.nodes,e.clusterNodes.forEach(e=>e.shouldRemove=!1),e.nodesToRemoveCount=0,e.leftNodesLessThanTwo=!1,e.toggleNode=function(t,o){o.shouldRemove=!o.shouldRemove,o.shouldRemove?e.nodesToRemoveCount++:e.nodesToRemoveCount--,e.leftNodesLessThanTwo=e.clusterNodes.length-e.nodesToRemoveCount<2},e.ok=function(){const o=e.clusterNodes.filter(e=>e.shouldRemove);t.close(o)},e.cancel=function(){t.dismiss("cancel")}}angular.module("graphdb.framework.clustermanagement.controllers.remove-nodes",[]).controller("RemoveNodesDialogCtrl",o),o.$inject=["$scope","$uibModalInstance","data"]},134:function(e,t,o){"use strict";o.r(t);o(65);angular.module("graphdb.framework.clustermanagement.controllers.create-cluster",[]).controller("CreateClusterCtrl",r);const n=function(){const e=document.getElementById("advancedOptions");if(e){const t=e.getAttribute("aria-expanded");if(t&&"true"===t)return"fa fa-angle-down"}return"fa fa-angle-right"};function r(e,t,o,r,s,a,l,c,i,d){e.pageTitle=a.instant("cluster_management.cluster_page.create_page_title"),e.autofocusId="autofocus",e.errors=[],e.clusterConfiguration={electionMinTimeout:8e3,electionRangeTimeout:6e3,heartbeatInterval:2e3,messageSizeKB:64,verificationTimeout:1500,transactionLogMaximumSizeGB:50,nodes:[]},e.locations=l.clusterModel.locations.filter(e=>!e.isLocal),e.selectedLocations=l.clusterModel.locations.filter(e=>e.isLocal),e.loader=!1,e.deleteLocation=function(t,o){t.preventDefault(),t.stopPropagation(),l.deleteLocation(o).then(()=>e.locations=e.locations.filter(e=>e.endpoint!==o.endpoint))},e.getAdvancedOptionsClass=n,e.createCluster=function(){return e.setLoader(!0,a.instant("cluster_management.cluster_page.creating_cluster_loader")),e.clusterConfiguration.nodes=e.selectedLocations.map(e=>e.rpcAddress),r.createCluster(e.clusterConfiguration).then(()=>{s.success(a.instant("cluster_management.cluster_page.notifications.create_success")),t.close()}).catch((function(t){!function(t,o){let n;delete e.preconditionErrors,e.errors.splice(0),412===o?e.preconditionErrors=Object.keys(t).map(e=>`${e} - ${t[e]}`):400===o?e.errors.push(...t):409===o?e.errors.push(t):(t.message||"string"==typeof t)&&(n=t.message||t);s.error(n,a.instant("cluster_management.cluster_page.notifications.create_failed"))}(t.data,t.status)})).finally(()=>{e.setLoader(!1),d.$broadcast("reloadLocations")})},e.isClusterConfigurationValid=()=>{const t=!e.clusterConfigurationForm.$invalid,o=e.selectedLocations&&e.selectedLocations.length>=2;return t&&o},e.setLoader=function(t,n){o.cancel(e.loaderTimeout),t?e.loaderTimeout=o((function(){e.loader=t,e.loaderMessage=n}),300):e.loader=!1},e.addNodeToList=function(t){t.rpcAddress&&(e.selectedLocations.push(t),e.locations=e.locations.filter(e=>e.endpoint!==t.endpoint))},e.removeNodeFromList=function(t,o){o.isLocal||(e.selectedLocations.splice(t,1),e.locations.push(o))},e.addLocation=function(){i.addLocation().then(t=>{t&&e.locations.push(t)})},e.ok=function(){e.isClusterConfigurationValid()?e.createCluster():s.warning(a.instant("cluster_management.cluster_page.notifications.form_invalid"))},e.cancel=function(){t.dismiss("cancel")}}r.$inject=["$scope","$uibModalInstance","$timeout","ClusterRestService","toastr","$translate","data","$uibModal","RemoteLocationsService","$rootScope"]},135:function(e,t,o){"use strict";o.r(t);o(65);function n(e,t,o,n,r,s,a){e.pageTitle=s.instant("cluster_management.cluster_page.edit_page_title"),e.errors=[],e.clusterConfiguration=_.cloneDeep(a.clusterConfiguration),e.loader=!1,e.updateCluster=function(){return e.setLoader(!0,s.instant("cluster_management.cluster_page.updating_cluster_loader")),n.updateCluster(e.clusterConfiguration).then(()=>{r.success(s.instant("cluster_management.cluster_page.notifications.update_success")),t.close()}).catch((function(t){!function(t,o){delete e.preconditionErrors,r.error(s.instant("cluster_management.cluster_page.notifications.update_failed")),e.errors.splice(0),409===o||"string"==typeof t?e.errors.push(t):412===o?e.preconditionErrors=Object.keys(t).map(e=>`${e} - ${t[e]}`):400===o&&e.errors.push(...t)}(t.data,t.status)})).finally(()=>e.setLoader(!1))},e.isClusterConfigurationValid=()=>!e.clusterConfigurationForm.$invalid,e.setLoader=function(t,n){o.cancel(e.loaderTimeout),t?e.loaderTimeout=o((function(){e.loader=t,e.loaderMessage=n}),300):e.loader=!1},e.ok=function(){e.isClusterConfigurationValid()?e.updateCluster():r.warning(s.instant("cluster_management.cluster_page.notifications.form_invalid"))},e.cancel=function(){t.dismiss("cancel")}}angular.module("graphdb.framework.clustermanagement.controllers.edit-cluster",[]).controller("EditClusterCtrl",n),n.$inject=["$scope","$uibModalInstance","$timeout","ClusterRestService","toastr","$translate","data"]},136:function(e,t){function o(e,t){e.forceDelete=!1,e.ok=function(){t.close(e.forceDelete)},e.cancel=function(){t.dismiss("cancel")}}angular.module("graphdb.framework.clustermanagement.controllers.delete-cluster",[]).controller("DeleteClusterCtrl",o),o.$inject=["$scope","$uibModalInstance"]},137:function(e,t){angular.module("graphdb.framework.clustermanagement.controllers.add-location",[]).controller("AddLocationFromClusterCtrl",o),o.$inject=["$scope","$uibModalInstance","toastr","productInfo","$translate"];function o(e,t,o,n,r){e.newLocation={uri:"",authType:"signature",username:"",password:"",active:!1},e.docBase=function(e){return"https://graphdb.ontotext.com/documentation/"+e.productShortVersion}(n),e.isValidLocation=function(){return(e.newLocation.uri.length<6||0===e.newLocation.uri.indexOf("http:")||0===e.newLocation.uri.indexOf("https:"))&&e.newLocation.uri.indexOf("/repositories")<=-1},e.ok=function(){e.newLocation?t.close(e.newLocation):o.error(r.instant("location.cannot.be.empty.error"))},e.cancel=function(){t.dismiss("cancel")}}},138:function(e,t,o){"use strict";o.r(t);o(76);function n(e,t,o,n,r){const s=_.cloneDeep(o.clusterConfiguration),a=_.cloneDeep(o.clusterModel);e.nodes=[],e.clusterNodes=a.nodes.map(e=>({rpcAddress:e.address,endpoint:e.endpoint})),e.locations=a.locations.filter(e=>!s.nodes.includes(e.rpcAddress)),e.locations.forEach(e=>e.isNew=!0),e.deleteLocation=function(t,n){t.preventDefault(),t.stopPropagation(),o.deleteLocation(n).then(()=>e.locations=e.locations.filter(e=>e.endpoint!==n.endpoint))},e.addNodeToList=function(t){t.rpcAddress&&(e.nodes.push(t),e.locations=e.locations.filter(e=>e.endpoint!==t.endpoint))},e.removeNodeFromList=function(t,o){e.nodes.splice(t,1),e.locations.push(o)},e.addLocation=function(){r.addLocation().then(t=>{t&&e.locations.push(t)})},e.ok=function(){t.close(e.nodes)},e.cancel=function(){t.dismiss("cancel")}}angular.module("graphdb.framework.clustermanagement.controllers.add-nodes",[]).controller("AddNodesDialogCtrl",n),n.$inject=["$scope","$uibModalInstance","data","$uibModal","RemoteLocationsService"]},139:function(e,t,o){"use strict";o.r(t);o(65),o(76);function n(e,t,o,n,r,s,a,l,c){const i=_.cloneDeep(s.clusterConfiguration),d=_.cloneDeep(s.clusterModel);e.replacementNodes=[],e.nodesToReplace=[],e.nodesToReplaceCount=0,e.leftNodesMajority=!1,e.clusterNodes=d.nodes.map(e=>({rpcAddress:e.address,endpoint:e.endpoint,shouldReplace:!1})),e.locations=d.locations.filter(e=>!i.nodes.includes(e.rpcAddress)),e.locations.forEach(e=>e.isNew=!0),e.addLocation=()=>{c.addLocation().then(t=>{t&&e.locations.push(t)})},e.toggleNode=(t,o)=>{if(o.shouldReplace=!o.shouldReplace,o.shouldReplace)e.nodesToReplaceCount++,e.nodesToReplace.push(o);else{e.nodesToReplaceCount--;const t=e.nodesToReplace.findIndex(e=>e.rpcAddress===o.rpcAddress);e.nodesToReplace.splice(t,1)}e.leftNodesMajority=u()+e.nodesToReplaceCount>e.clusterNodes.length},e.permitNodesReplace=()=>!e.leftNodesMajority&&(e.nodesToReplace.length>0||e.replacementNodes.length>0),e.addNodeToList=t=>{t.rpcAddress&&(e.replacementNodes.push(t),e.locations=e.locations.filter(e=>e.endpoint!==t.endpoint))},e.deleteLocation=(t,o)=>{t.preventDefault(),t.stopPropagation(),s.deleteLocation(o).then(()=>e.locations=e.locations.filter(e=>e.endpoint!==o.endpoint))},e.removeNodeFromList=(t,o)=>{e.replacementNodes.splice(t,1),e.locations.push(o)},e.ok=()=>{t.close({newNodes:e.replacementNodes,oldNodes:e.nodesToReplace})},e.cancel=()=>{t.dismiss("cancel")};const u=()=>Math.floor(e.clusterNodes.length/2)+1}angular.module("graphdb.framework.clustermanagement.controllers.replace-nodes",[]).controller("ReplaceNodesDialogCtrl",n),n.$inject=["$scope","$uibModalInstance","$timeout","toastr","$translate","data","$uibModal","$rootScope","RemoteLocationsService"]},65:function(e,t){angular.module("graphdb.framework.rest.cluster.service",[]).factory("ClusterRestService",o),o.$inject=["$http"];function o(e){return{getClusterConfig:function(){return e.get("rest/cluster/config")},createCluster:function(t){return e.post("rest/cluster/config",t)},updateCluster:function(t){t.nodes&&delete t.nodes;return e.patch("rest/cluster/config",t)},deleteCluster:function(t){const o=$.param({force:t});return e.delete("rest/cluster/config?"+o)},addNodesToCluster:function(t){return e.post("rest/cluster/config/node",{nodes:t})},replaceNodesInCluster:function(t){return e.patch("rest/cluster/config/node",t)},removeNodesFromCluster:function(t){return e.delete("rest/cluster/config/node",{data:{nodes:t},headers:{"Content-Type":"application/json"}})},getClusterStatus:function(){return e.get("rest/cluster/group/status")},getNodeStatus:function(){return e.get("rest/cluster/node/status")}}}},76:function(e,t,o){"use strict";o.r(t);o(33);function n(e,t,o,n,r){return{addLocation:function(){let e;return o.open({templateUrl:"js/angular/templates/modal/add-location.html",windowClass:"addLocationDialog",controller:"AddLocationFromClusterCtrl"}).result.then(o=>(e=o,e.isLocal=!1,e.endpoint=e.uri,function(e){let o;return n.addLocation(e).catch(e=>{const o=getError(e.data,e.status);return t.error(o,r.instant("common.error")),!1}).then(e=>!!e&&s()).then(t=>{if(!1!==t)return o=t.find(t=>t.endpoint===e.uri),o})}(e)))},getLocationsWithRpcAddresses:s};function s(){return n.getLocations().then((function(e){return e.data.map(e=>({isLocal:e.local,endpoint:e.uri,rpcAddress:e.rpcAddress||"",error:e.errorMsg}))})).catch((function(e){const o=getError(e.data,e.status);t.error(o,r.instant("common.error"))})).then(e=>{if(e)return function(e){const t=e.filter(e=>!e.isLocal&&!e.error).map(e=>function(e){return n.getLocationRpcAddress(e.endpoint)}(e).then(t=>(e.rpcAddress=t.data,e.isAvailable=!0,e)).catch(t=>{e.isAvailable=!1,e.error=getError(t.data,t.status)}));return Promise.allSettled(t).then(()=>e)}(e)})}}angular.module("graphdb.framework.clustermanagement.services.remote-locations",[]).factory("RemoteLocationsService",n),n.$inject=["$http","toastr","$uibModal","LocationsRestService","$translate"]}}]);
1
+ (window.webpackJsonp=window.webpackJsonp||[]).push([[5,43,56,57,58,92,93,94,97,212],{110:function(e,t,o){"use strict";o.r(t),o.d(t,"NodeState",(function(){return r})),o.d(t,"RecoveryState",(function(){return s})),o.d(t,"LinkState",(function(){return a}));o(65),o(76),o(134),o(135),o(136),o(137),o(138),o(139),o(140);var n=o(63);angular.module("graphdb.framework.clustermanagement.controllers.cluster-management",["ui.bootstrap","graphdb.framework.core.services.repositories","graphdb.framework.rest.repositories.service","graphdb.framework.rest.cluster.service","graphdb.framework.clustermanagement.services.remote-locations","graphdb.framework.clustermanagement.controllers.remove-nodes","graphdb.framework.clustermanagement.controllers.create-cluster","graphdb.framework.clustermanagement.controllers.edit-cluster","graphdb.framework.clustermanagement.controllers.delete-cluster","graphdb.framework.clustermanagement.controllers.add-location","graphdb.framework.clustermanagement.controllers.add-nodes","graphdb.framework.clustermanagement.controllers.replace-nodes","toastr","pageslide-directive"]).controller("ClusterManagementCtrl",l);const r={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"},s={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"},a={IN_SYNC:"IN_SYNC",OUT_OF_SYNC:"OUT_OF_SYNC",SYNCING:"SYNCING",NO_CONNECTION:"NO_CONNECTION"};function l(e,t,o,s,l,c,i,d,u,g,m,f,p,h,C,N,_){e.loader=!0,e.isLeader=!1,e.currentNode=null,e.clusterModel={},e.NodeState=r,e.leaderChanged=!1,e.currentLeader=null,e.isAdmin=function(){return d.isAuthenticated()&&d.isAdmin()},e.childContext={},e.shouldShowClusterSettingsPanel=!1;let L;function S(t){L||(L=e.getClusterStatus().then(()=>{if(t||!e.clusterConfiguration)return e.getClusterConfiguration()}).then(()=>{if(!e.currentNode||e.leaderChanged)return e.getCurrentNodeStatus()}).finally(()=>{L=null,e.childContext.redraw()}))}function $(){return N.getLocationsWithRpcAddresses().then(t=>{const o=t.find(e=>e.isLocal);o&&(o.endpoint=e.currentNode.endpoint,o.rpcAddress=e.currentNode.address),e.clusterModel.locations=t})}e.onopen=e.onclose=()=>angular.noop(),e.toggleSidePanel=()=>{e.shouldShowClusterSettingsPanel=!e.shouldShowClusterSettingsPanel},e.toggleLegend=()=>{e.childContext.toggleLegend&&e.childContext.toggleLegend()},e.setLoader=function(t,o){f.cancel(e.loaderTimeout),t?(e.loaderMessage=o,e.loaderTimeout=f((function(){e.loader=t}),50)):e.loader=!1},e.childContext.selectNode=function(t){e.selectedNode!==t?e.selectedNode=t:e.selectedNode=null,e.$apply()},e.getLoaderMessage=function(){return e.loaderMessage||C.instant("common.loading")},e.getClusterConfiguration=()=>p.getClusterConfig().then(t=>{if(e.clusterConfiguration=t.data,!e.currentNode)return e.getCurrentNodeStatus()}).catch(()=>{e.clusterConfiguration=null}),e.getClusterStatus=function(){return p.getClusterStatus().then((function(t){const o=t.data.slice(),n=o.find(e=>e.nodeState===r.LEADER);var s,l;s=e.currentLeader,(l=n)&&s&&s.address===l.address||(e.currentLeader=n,e.leaderChanged=!0),e.currentNode=o.find(t=>t.address===e.currentNode.address);const c=[];n&&Object.keys(n.syncStatus).forEach(e=>{const t=n.syncStatus[e];t!==a.NO_CONNECTION&&c.push({id:`${n.address}-${e}`,source:n.address,target:e,status:t})}),e.clusterModel.hasCluster=!0,e.clusterModel.nodes=o,e.clusterModel.links=c})).catch((function(t){404===t.status&&(e.clusterModel.hasCluster=!1,e.clusterModel.nodes=[],e.clusterModel.links=[],e.clusterConfiguration=null)}))},e.showCreateClusterDialog=function(){c.open({templateUrl:"js/angular/clustermanagement/templates/modal/cluster-create-dialog.html",controller:"CreateClusterCtrl",size:"lg",resolve:{data:function(){return{deleteLocation:v,clusterModel:e.clusterModel}}}}).result.finally((function(){$(),S(!0)}))},e.showDeleteDialog=()=>{c.open({templateUrl:"js/angular/clustermanagement/templates/modal/cluster-delete-dialog.html",controller:"DeleteClusterCtrl"}).result.then((function(t){const o=C.instant("cluster_management.delete_cluster_dialog.loader_message");e.setLoader(!0,o),p.deleteCluster(t).then(t=>{if(Object.values(t.data).every(e=>"Cluster was deleted on this node."===e)){const e=C.instant("cluster_management.delete_cluster_dialog.notifications.success_delete");s.success(e)}else{const e=C.instant("cluster_management.delete_cluster_dialog.notifications.success_delete_partial"),o=Object.keys(t.data).reduce((e,o)=>e+`<div>${o} - ${t.data[o]}</div>`,"");s.warning(o,e,{allowHtml:!0})}e.getClusterConfiguration()}).catch(e=>{const t=C.instant("cluster_management.delete_cluster_dialog.notifications.fail_delete");T(e.data,e.status,t)}).finally(()=>{e.setLoader(!1),S(!0),_.$broadcast("reloadLocations")})}))},e.showEditConfigurationDialog=()=>{c.open({templateUrl:"js/angular/clustermanagement/templates/modal/cluster-edit-dialog.html",controller:"EditClusterCtrl",size:"lg",resolve:{data:function(){return{clusterConfiguration:e.clusterConfiguration}}}}).result.finally((function(){S(!0)}))},e.getCurrentNodeStatus=()=>p.getNodeStatus().then(t=>{e.leaderChanged=!1,e.currentNode=t.data}).catch(t=>{e.currentNode=t.data,e.clusterModel.hasCluster=!1}).then(()=>$());const v=function(e){return m.openSimpleModal({title:C.instant("location.confirm.detach"),message:C.instant("location.confirm.detach.warning",{uri:e.endpoint}),warning:!0}).result.then(()=>l.deleteLocation(e.endpoint))};function w(t){s.success(t),e.getClusterConfiguration()}function T(e,t,o){let r=e.message||e;400===t&&Array.isArray(e)?r=e.reduce((e,t)=>e+`<div>${t}</div>`,""):412!==t||Object(n.isString)(e)||(r=Object.keys(e).reduce((t,o)=>t+`<div>${o} - ${e[o]}</div>`,"")),s.error(r,o,{allowHtml:!0})}e.showAddNodeToClusterDialog=()=>{c.open({templateUrl:"js/angular/clustermanagement/templates/modal/add-nodes-dialog.html",controller:"AddNodesDialogCtrl",size:"lg",resolve:{data:function(){return{deleteLocation:v,clusterModel:e.clusterModel,clusterConfiguration:e.clusterConfiguration}}}}).result.then((function(t){const o=C.instant("cluster_management.cluster_page.add_nodes_loader");e.setLoader(!0,o);const n=t.map(e=>e.rpcAddress);p.addNodesToCluster(n).then(()=>{w(C.instant("cluster_management.cluster_page.notifications.add_nodes_success"))}).catch(e=>{const t=C.instant("cluster_management.cluster_page.notifications.add_nodes_fail");T(e.data,e.status,t)}).finally(()=>{e.setLoader(!1),S(!0)})})).finally(()=>$())},e.showReplaceNodesDialog=()=>{c.open({templateUrl:"js/angular/clustermanagement/templates/modal/replace-nodes-dialog.html",controller:"ReplaceNodesDialogCtrl",size:"lg",resolve:{data:function(){return{deleteLocation:v,clusterModel:e.clusterModel,clusterConfiguration:e.clusterConfiguration}}}}).result.then(t=>{const o=C.instant("cluster_management.cluster_page.replace_nodes_loader");e.setLoader(!0,o);const n={addNodes:t.newNodes.map(e=>e.rpcAddress),removeNodes:t.oldNodes.map(e=>e.rpcAddress)};p.replaceNodesInCluster(n).then(()=>{w(C.instant("cluster_management.cluster_page.notifications.replace_nodes_success"))}).catch(e=>{const t=C.instant("cluster_management.cluster_page.notifications.replace_nodes_fail");T(e.data,e.status,t)}).finally(()=>{e.setLoader(!1),S(!0)})}).finally(()=>$())},e.showRemoveNodesFromClusterDialog=()=>{c.open({templateUrl:"js/angular/clustermanagement/templates/modal/remove-nodes-dialog.html",controller:"RemoveNodesDialogCtrl",size:"lg",resolve:{data:function(){return{clusterModel:e.clusterModel}}}}).result.then((function(t){const o=C.instant("cluster_management.cluster_page.remove_nodes_loader");e.setLoader(!0,o);const n=t.map(e=>e.address);p.removeNodesFromCluster(n).then(()=>{w(C.instant("cluster_management.cluster_page.notifications.remove_nodes_success"))}).catch(e=>{const t=C.instant("cluster_management.cluster_page.notifications.remove_nodes_fail");T(e.data,e.status,t)}).finally(()=>{e.setLoader(!1),S(!0)})}))},(e.loader=!0,e.getCurrentNodeStatus().then(()=>e.getClusterConfiguration()).then(()=>e.getClusterStatus()).finally(()=>{e.setLoader(!1)})).finally(()=>{const t=g((function(){S()}),1e3);e.$on("$destroy",(function(){g.cancel(t)}))});const R=angular.element(u),A=function(){e.childContext.resize()};R.bind("resize",A);const O=function(t){const o=t.target,n=document.getElementById("nodeTooltip");e.selectedNode&&n!==o&&!n.contains(o)&&e.childContext.selectNode(null)};R.bind("mousedown",O),e.$on("$destroy",(function(){R.unbind("resize",A),R.unbind("mousedown",O)}))}l.$inject=["$scope","$http","$q","toastr","$repositories","$uibModal","$sce","$jwtAuth","$window","$interval","ModalService","$timeout","ClusterRestService","$location","$translate","RemoteLocationsService","$rootScope"]},134:function(e,t){function o(e,t,o){const n=_.cloneDeep(o.clusterModel);e.clusterNodes=n.nodes,e.clusterNodes.forEach(e=>e.shouldRemove=!1),e.nodesToRemoveCount=0,e.leftNodesLessThanTwo=!1,e.toggleNode=function(t,o){o.shouldRemove=!o.shouldRemove,o.shouldRemove?e.nodesToRemoveCount++:e.nodesToRemoveCount--,e.leftNodesLessThanTwo=e.clusterNodes.length-e.nodesToRemoveCount<2},e.ok=function(){const o=e.clusterNodes.filter(e=>e.shouldRemove);t.close(o)},e.cancel=function(){t.dismiss("cancel")}}angular.module("graphdb.framework.clustermanagement.controllers.remove-nodes",[]).controller("RemoveNodesDialogCtrl",o),o.$inject=["$scope","$uibModalInstance","data"]},135:function(e,t,o){"use strict";o.r(t);o(65);angular.module("graphdb.framework.clustermanagement.controllers.create-cluster",[]).controller("CreateClusterCtrl",r);const n=function(){const e=document.getElementById("advancedOptions");if(e){const t=e.getAttribute("aria-expanded");if(t&&"true"===t)return"fa fa-angle-down"}return"fa fa-angle-right"};function r(e,t,o,r,s,a,l,c,i,d){e.pageTitle=a.instant("cluster_management.cluster_page.create_page_title"),e.autofocusId="autofocus",e.errors=[],e.clusterConfiguration={electionMinTimeout:8e3,electionRangeTimeout:6e3,heartbeatInterval:2e3,messageSizeKB:64,verificationTimeout:1500,transactionLogMaximumSizeGB:50,nodes:[]},e.locations=l.clusterModel.locations.filter(e=>!e.isLocal),e.selectedLocations=l.clusterModel.locations.filter(e=>e.isLocal),e.loader=!1,e.deleteLocation=function(t,o){t.preventDefault(),t.stopPropagation(),l.deleteLocation(o).then(()=>e.locations=e.locations.filter(e=>e.endpoint!==o.endpoint))},e.getAdvancedOptionsClass=n,e.createCluster=function(){return e.setLoader(!0,a.instant("cluster_management.cluster_page.creating_cluster_loader")),e.clusterConfiguration.nodes=e.selectedLocations.map(e=>e.rpcAddress),r.createCluster(e.clusterConfiguration).then(()=>{s.success(a.instant("cluster_management.cluster_page.notifications.create_success")),t.close()}).catch((function(t){!function(t,o){let n;delete e.preconditionErrors,e.errors.splice(0),412===o?e.preconditionErrors=Object.keys(t).map(e=>`${e} - ${t[e]}`):400===o?e.errors.push(...t):409===o?e.errors.push(t):(t.message||"string"==typeof t)&&(n=t.message||t);s.error(n,a.instant("cluster_management.cluster_page.notifications.create_failed"))}(t.data,t.status)})).finally(()=>{e.setLoader(!1),d.$broadcast("reloadLocations")})},e.isClusterConfigurationValid=()=>{const t=!e.clusterConfigurationForm.$invalid,o=e.selectedLocations&&e.selectedLocations.length>=2;return t&&o},e.setLoader=function(t,n){o.cancel(e.loaderTimeout),t?e.loaderTimeout=o((function(){e.loader=t,e.loaderMessage=n}),300):e.loader=!1},e.addNodeToList=function(t){t.rpcAddress&&(e.selectedLocations.push(t),e.locations=e.locations.filter(e=>e.endpoint!==t.endpoint))},e.removeNodeFromList=function(t,o){o.isLocal||(e.selectedLocations.splice(t,1),e.locations.push(o))},e.addLocation=function(){i.addLocation().then(t=>{t&&e.locations.push(t)})},e.ok=function(){e.isClusterConfigurationValid()?e.createCluster():s.warning(a.instant("cluster_management.cluster_page.notifications.form_invalid"))},e.cancel=function(){t.dismiss("cancel")}}r.$inject=["$scope","$uibModalInstance","$timeout","ClusterRestService","toastr","$translate","data","$uibModal","RemoteLocationsService","$rootScope"]},136:function(e,t,o){"use strict";o.r(t);o(65);function n(e,t,o,n,r,s,a){e.pageTitle=s.instant("cluster_management.cluster_page.edit_page_title"),e.errors=[],e.clusterConfiguration=_.cloneDeep(a.clusterConfiguration),e.loader=!1,e.updateCluster=function(){return e.setLoader(!0,s.instant("cluster_management.cluster_page.updating_cluster_loader")),n.updateCluster(e.clusterConfiguration).then(()=>{r.success(s.instant("cluster_management.cluster_page.notifications.update_success")),t.close()}).catch((function(t){!function(t,o){delete e.preconditionErrors,r.error(s.instant("cluster_management.cluster_page.notifications.update_failed")),e.errors.splice(0),409===o||"string"==typeof t?e.errors.push(t):412===o?e.preconditionErrors=Object.keys(t).map(e=>`${e} - ${t[e]}`):400===o&&e.errors.push(...t)}(t.data,t.status)})).finally(()=>e.setLoader(!1))},e.isClusterConfigurationValid=()=>!e.clusterConfigurationForm.$invalid,e.setLoader=function(t,n){o.cancel(e.loaderTimeout),t?e.loaderTimeout=o((function(){e.loader=t,e.loaderMessage=n}),300):e.loader=!1},e.ok=function(){e.isClusterConfigurationValid()?e.updateCluster():r.warning(s.instant("cluster_management.cluster_page.notifications.form_invalid"))},e.cancel=function(){t.dismiss("cancel")}}angular.module("graphdb.framework.clustermanagement.controllers.edit-cluster",[]).controller("EditClusterCtrl",n),n.$inject=["$scope","$uibModalInstance","$timeout","ClusterRestService","toastr","$translate","data"]},137:function(e,t){function o(e,t){e.forceDelete=!1,e.ok=function(){t.close(e.forceDelete)},e.cancel=function(){t.dismiss("cancel")}}angular.module("graphdb.framework.clustermanagement.controllers.delete-cluster",[]).controller("DeleteClusterCtrl",o),o.$inject=["$scope","$uibModalInstance"]},138:function(e,t){angular.module("graphdb.framework.clustermanagement.controllers.add-location",[]).controller("AddLocationFromClusterCtrl",o),o.$inject=["$scope","$uibModalInstance","toastr","productInfo","$translate"];function o(e,t,o,n,r){e.newLocation={uri:"",authType:"signature",username:"",password:"",active:!1},e.docBase=function(e){return"https://graphdb.ontotext.com/documentation/"+e.productShortVersion}(n),e.isValidLocation=function(){return(e.newLocation.uri.length<6||0===e.newLocation.uri.indexOf("http:")||0===e.newLocation.uri.indexOf("https:"))&&e.newLocation.uri.indexOf("/repositories")<=-1},e.ok=function(){e.newLocation?t.close(e.newLocation):o.error(r.instant("location.cannot.be.empty.error"))},e.cancel=function(){t.dismiss("cancel")}}},139:function(e,t,o){"use strict";o.r(t);o(76);function n(e,t,o,n,r){const s=_.cloneDeep(o.clusterConfiguration),a=_.cloneDeep(o.clusterModel);e.nodes=[],e.clusterNodes=a.nodes.map(e=>({rpcAddress:e.address,endpoint:e.endpoint})),e.locations=a.locations.filter(e=>!s.nodes.includes(e.rpcAddress)),e.locations.forEach(e=>e.isNew=!0),e.deleteLocation=function(t,n){t.preventDefault(),t.stopPropagation(),o.deleteLocation(n).then(()=>e.locations=e.locations.filter(e=>e.endpoint!==n.endpoint))},e.addNodeToList=function(t){t.rpcAddress&&(e.nodes.push(t),e.locations=e.locations.filter(e=>e.endpoint!==t.endpoint))},e.removeNodeFromList=function(t,o){e.nodes.splice(t,1),e.locations.push(o)},e.addLocation=function(){r.addLocation().then(t=>{t&&e.locations.push(t)})},e.ok=function(){t.close(e.nodes)},e.cancel=function(){t.dismiss("cancel")}}angular.module("graphdb.framework.clustermanagement.controllers.add-nodes",[]).controller("AddNodesDialogCtrl",n),n.$inject=["$scope","$uibModalInstance","data","$uibModal","RemoteLocationsService"]},140:function(e,t,o){"use strict";o.r(t);o(65),o(76);function n(e,t,o,n,r,s,a,l,c){const i=_.cloneDeep(s.clusterConfiguration),d=_.cloneDeep(s.clusterModel);e.replacementNodes=[],e.nodesToReplace=[],e.nodesToReplaceCount=0,e.leftNodesMajority=!1,e.clusterNodes=d.nodes.map(e=>({rpcAddress:e.address,endpoint:e.endpoint,shouldReplace:!1})),e.locations=d.locations.filter(e=>!i.nodes.includes(e.rpcAddress)),e.locations.forEach(e=>e.isNew=!0),e.addLocation=()=>{c.addLocation().then(t=>{t&&e.locations.push(t)})},e.toggleNode=(t,o)=>{if(o.shouldReplace=!o.shouldReplace,o.shouldReplace)e.nodesToReplaceCount++,e.nodesToReplace.push(o);else{e.nodesToReplaceCount--;const t=e.nodesToReplace.findIndex(e=>e.rpcAddress===o.rpcAddress);e.nodesToReplace.splice(t,1)}e.leftNodesMajority=u()+e.nodesToReplaceCount>e.clusterNodes.length},e.permitNodesReplace=()=>!e.leftNodesMajority&&(e.nodesToReplace.length>0||e.replacementNodes.length>0),e.addNodeToList=t=>{t.rpcAddress&&(e.replacementNodes.push(t),e.locations=e.locations.filter(e=>e.endpoint!==t.endpoint))},e.deleteLocation=(t,o)=>{t.preventDefault(),t.stopPropagation(),s.deleteLocation(o).then(()=>e.locations=e.locations.filter(e=>e.endpoint!==o.endpoint))},e.removeNodeFromList=(t,o)=>{e.replacementNodes.splice(t,1),e.locations.push(o)},e.ok=()=>{t.close({newNodes:e.replacementNodes,oldNodes:e.nodesToReplace})},e.cancel=()=>{t.dismiss("cancel")};const u=()=>Math.floor(e.clusterNodes.length/2)+1}angular.module("graphdb.framework.clustermanagement.controllers.replace-nodes",[]).controller("ReplaceNodesDialogCtrl",n),n.$inject=["$scope","$uibModalInstance","$timeout","toastr","$translate","data","$uibModal","$rootScope","RemoteLocationsService"]},65:function(e,t){angular.module("graphdb.framework.rest.cluster.service",[]).factory("ClusterRestService",o),o.$inject=["$http"];function o(e){return{getClusterConfig:function(){return e.get("rest/cluster/config")},createCluster:function(t){return e.post("rest/cluster/config",t)},updateCluster:function(t){t.nodes&&delete t.nodes;return e.patch("rest/cluster/config",t)},deleteCluster:function(t){const o=$.param({force:t});return e.delete("rest/cluster/config?"+o)},addNodesToCluster:function(t){return e.post("rest/cluster/config/node",{nodes:t})},replaceNodesInCluster:function(t){return e.patch("rest/cluster/config/node",t)},removeNodesFromCluster:function(t){return e.delete("rest/cluster/config/node",{data:{nodes:t},headers:{"Content-Type":"application/json"}})},getClusterStatus:function(){return e.get("rest/cluster/group/status")},getNodeStatus:function(){return e.get("rest/cluster/node/status")}}}},76:function(e,t,o){"use strict";o.r(t);o(33);function n(e,t,o,n,r){return{addLocation:function(){let e;return o.open({templateUrl:"js/angular/templates/modal/add-location.html",windowClass:"addLocationDialog",controller:"AddLocationFromClusterCtrl"}).result.then(o=>(e=o,e.isLocal=!1,e.endpoint=e.uri,function(e){let o;return n.addLocation(e).catch(e=>{const o=getError(e.data,e.status);return t.error(o,r.instant("common.error")),!1}).then(e=>!!e&&s()).then(t=>{if(!1!==t)return o=t.find(t=>t.endpoint===e.uri),o})}(e)))},getLocationsWithRpcAddresses:s};function s(){return n.getLocations().then((function(e){return e.data.map(e=>({isLocal:e.local,endpoint:e.uri,rpcAddress:e.rpcAddress||"",error:e.errorMsg}))})).catch((function(e){const o=getError(e.data,e.status);t.error(o,r.instant("common.error"))})).then(e=>{if(e)return function(e){const t=e.filter(e=>!e.isLocal&&!e.error).map(e=>function(e){return n.getLocationRpcAddress(e.endpoint)}(e).then(t=>(e.rpcAddress=t.data,e.isAvailable=!0,e)).catch(t=>{e.isAvailable=!1,e.error=getError(t.data,t.status)}));return Promise.allSettled(t).then(()=>e)}(e)})}}angular.module("graphdb.framework.clustermanagement.services.remote-locations",[]).factory("RemoteLocationsService",n),n.$inject=["$http","toastr","$uibModal","LocationsRestService","$translate"]}}]);
@@ -1 +1 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([[50,84],{129:function(r,e){angular.module("graphdb.framework.aclmanagement.directives",[]).directive("customRolePrefix",(function(){return{restrict:"A",link:function(r,e,a){function o(r,e){if(!r||"*"===r)return r;const a=r.startsWith("!"),o=a?"!CUSTOM_":"CUSTOM_";return e?o+r.replace(/^!/,""):a?"!"+r.replace(o,""):r.replace(o,"")}if(("INPUT"===e[0].tagName||"TEXTAREA"===e[0].tagName)&&a.ngModel){const r=e.controller("ngModel");r.$formatters.push((function(r){return o(r,!1)})),r.$parsers.push((function(r){return o(r,!0)}))}}}}))},207:function(r,e,a){"use strict";a.r(e);a(7),a(24),a(30),a(107),a(198),a(25),a(129);angular.module("graphdb.framework.aclmanagement",["ui.bootstrap","toastr","ngCookies","ngRoute","graphdb.framework.aclmanagement.directives","graphdb.framework.aclmanagement.controllers","graphdb.framework.core.services.repositories","graphdb.framework.core.directives","graphdb.framework.core.controllers"])}}]);
1
+ (window.webpackJsonp=window.webpackJsonp||[]).push([[50,84],{130:function(r,e){angular.module("graphdb.framework.aclmanagement.directives",[]).directive("customRolePrefix",(function(){return{restrict:"A",link:function(r,e,a){function o(r,e){if(!r||"*"===r)return r;const a=r.startsWith("!"),o=a?"!CUSTOM_":"CUSTOM_";return e?o+r.replace(/^!/,""):a?"!"+r.replace(o,""):r.replace(o,"")}if(("INPUT"===e[0].tagName||"TEXTAREA"===e[0].tagName)&&a.ngModel){const r=e.controller("ngModel");r.$formatters.push((function(r){return o(r,!1)})),r.$parsers.push((function(r){return o(r,!0)}))}}}}))},207:function(r,e,a){"use strict";a.r(e);a(7),a(25),a(30),a(109),a(199),a(24),a(130);angular.module("graphdb.framework.aclmanagement",["ui.bootstrap","toastr","ngCookies","ngRoute","graphdb.framework.aclmanagement.directives","graphdb.framework.aclmanagement.controllers","graphdb.framework.core.services.repositories","graphdb.framework.core.directives","graphdb.framework.core.controllers"])}}]);
@@ -0,0 +1 @@
1
+ (window.webpackJsonp=window.webpackJsonp||[]).push([[51,85],{103:function(e,t,s){"use strict";s.r(t),s.d(t,"ACListModel",(function(){return i})),s.d(t,"ACRuleModel",(function(){return l})),s.d(t,"StatementACRuleModel",(function(){return r})),s.d(t,"PluginACRuleModel",(function(){return n})),s.d(t,"ClearGraphACRuleModel",(function(){return c})),s.d(t,"SystemACRuleModel",(function(){return u})),s.d(t,"ACL_POLICY",(function(){return p})),s.d(t,"ACL_OPERATION",(function(){return h})),s.d(t,"ACL_SCOPE",(function(){return _})),s.d(t,"DEFAULT_CONTEXT_VALUES",(function(){return d})),s.d(t,"DEFAULT_CLEAR_GRAPH_CONTEXT_VALUES",(function(){return R})),s.d(t,"DEFAULT_URI_VALUES",(function(){return g}));var o=s(63);class i{constructor(e=[]){this._aclRules=new Map,e.forEach(e=>{const t=e.scope;this._aclRules.has(t)||this._aclRules.set(t,[]),this._aclRules.get(t).push(e)})}size(e){return this._aclRules.get(e)&&this._aclRules.get(e).length}appendNewRule(e,t,s,o,i,l,r,n,c){const u=a.createRule(e,t,s,o,i,l,r,n,c);this._aclRules.has(e)||this._aclRules.set(e,[]),this._aclRules.get(e).push(u)}addRule(e,t){const s=this._aclRules.get(e);s?s.splice(t,0,a.createRule(e)):this._aclRules.set(e,[a.createRule(e)])}removeRule(e,t){const s=this._aclRules.get(e);s&&s.splice(t,1)}replaceRule(e,t,s){const o=this._aclRules.get(e);o&&o.splice(t,1,s)}getRule(e,t){const s=this._aclRules.get(e);return s?s[t]:null}isRuleDuplicated(e,t){const s=this.getRule(e,t);return!!s&&this._aclRules.get(e).some((e,i)=>i!==t&&Object(o.isEqual)(s,e))}getRuleCopy(e,t){const s=this.getRule(e,t);return a.createRule(s.scope,s.policy,s.role,s.operation,s.subject,s.predicate,s.object,s.context,s.plugin)}moveUp(e,t){const s=this._aclRules.get(e),o=s[t-1];s[t-1]=s[t],s[t]=o}moveDown(e,t){const s=this._aclRules.get(e),o=s[t+1];s[t+1]=s[t],s[t]=o}toJSON(){const e=[];return this._aclRules.forEach(t=>{t.forEach(t=>e.push(t.toJSON()))}),e}get aclRules(){return this._aclRules}set aclRules(e){this._aclRules=e}getRulesByScope(e){return this._aclRules.get(e)||[]}getRuleKeysByScope(e){return Object.keys(this.getRulesByScope(e)[0]||{})}}class l{constructor(e,t,s=p.ALLOW){this._scope=e,this._role=t,this._policy=s}get scope(){return this._scope}set scope(e){this._scope=e}get roleWithoutCustomPrefix(){return this._role.startsWith("!")?this._role.replace("CUSTOM_"," "):this._role.replace("CUSTOM_","")}get role(){return this._role}set role(e){this._role=e}get policy(){return this._policy}set policy(e){this._policy=e}toJSON(){}}class r extends l{constructor(e,t,s,o,i,l,r){super(_.STATEMENT,e,t),this._subject=s||"*",this._predicate=o||"*",this._object=i||"*",this._context=l||"*",this._operation=r||h.ALL}get subject(){return this._subject}set subject(e){this._subject=e}get predicate(){return this._predicate}set predicate(e){this._predicate=e}get object(){return this._object}set object(e){this._object=e}get context(){return this._context}set context(e){this._context=e}get operation(){return this._operation}set operation(e){this._operation=e}toJSON(){return{scope:this.scope,policy:this.policy,role:this.role,operation:this.operation,subject:this.subject,predicate:this.predicate,object:this.object,context:this.context}}}class n extends l{constructor(e,t,s,o){super(_.PLUGIN,e,t),this._plugin=s||"*",this._operation=o||h.ALL}get plugin(){return this._plugin}set plugin(e){this._plugin=e}get operation(){return this._operation}set operation(e){this._operation=e}toJSON(){return{scope:this.scope,policy:this.policy,role:this.role,operation:this.operation,plugin:this.plugin}}}class c extends l{constructor(e,t,s,o){super(_.CLEAR_GRAPH,e,t),this._context=s||"*",this._defaultResults=o||["*","default","custom"]}get context(){return this._context}set context(e){this._context=e}get defaultResults(){return this._defaultResults}set defaultResults(e){this._defaultResults=e}toJSON(){return{scope:this.scope,policy:this.policy,role:this.role,context:this.context}}}class u extends l{constructor(e,t,s){super(_.SYSTEM,e,t),this._operation=s||h.ALL}get operation(){return this._operation}set operation(e){this._operation=e}toJSON(){return{scope:this.scope,policy:this.policy,role:this.role,operation:this.operation}}}class a{static createRule(e,t,s,o,i,l,a,p,h){switch(e){case _.STATEMENT:return new r(s,t,i,l,a,p,o);case _.PLUGIN:return new n(s,t,h,o);case _.CLEAR_GRAPH:return new c(s,t,p);case _.SYSTEM:return new u(s,t,o);default:throw new Error("Invalid scope: "+e+" provided")}}}const p={ALLOW:"allow",DENY:"deny"},h={READ:"read",WRITE:"write",ALL:"*"},_={STATEMENT:"statement",CLEAR_GRAPH:"clear_graph",PLUGIN:"plugin",SYSTEM:"system"},d=[{type:"default",value:"*",description:"acl_management.defaults.asterisk"},{type:"default",value:"default",description:"acl_management.defaults.default"},{type:"default",value:"named",description:"acl_management.defaults.named"}],R=[{type:"default",value:"*",description:"acl_management.defaults.asterisk"},{type:"default",value:"all",description:"acl_management.defaults.all"},{type:"default",value:"default",description:"acl_management.defaults.default"},{type:"default",value:"named",description:"acl_management.defaults.named"}],g=[{type:"default",value:"*",description:"acl_management.defaults.asterisk"}]},129:function(e,t,s){"use strict";s.r(t),s.d(t,"mapAclRulesResponse",(function(){return i}));var o=s(103);const i=e=>{const t=new o.ACListModel;return e&&e.data&&e.data.forEach(e=>{t.appendNewRule(e.scope,e.policy,e.role,e.operation,e.subject,e.predicate,e.object,e.context,e.plugin)}),t}}}]);
@@ -1 +1 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([[52,217],{130:function(e,t,o){"use strict";o.r(t);o(35);var n=o(75),r=o(0);function i(e,t,o,i,c,a,s,u,l,d,f,p){let g;function m(){g&&t.cancel(g)}e.pluginName="autocomplete",e.setPluginIsActive=function(t){e.pluginIsActive=t};const b=function(){d.checkAutocompleteStatus().success((function(t){e.autocompleteEnabled=t,f.setAutocompleteStatus(t)})).error((function(e){o.error(getError(e))}))},I=function(){d.refreshIndexIRIs().success((function(t){e.shouldIndexIRIs=t})).error((function(e){o.error(getError(e))}))},L=function(){d.refreshIndexStatus().success((function(t){e.indexStatus=t})).error((function(e){o.error(getError(e))}))},v=function(){d.refreshLabelConfig().success((function(t){e.labelConfig=t})).error((function(e){o.error(getError(e))}))};e.checkForPlugin=function(){e.pluginFound=!1,e.setLoader(!0),d.checkForPlugin().success((function(t){e.pluginFound=!0===t,e.pluginFound?(h(),b(),I(),L(),v()):(e.autocompleteEnabled=!1,e.loading=!1)})).error((function(e){o.error(getError(e))})).finally((function(){e.setLoader(!1)}))};const R=function(){g=t((function(){e.$broadcast("checkIsActive"),e.autocompleteEnabled&&L()}),5e3)};e.$on("$destroy",(function(){m()}));e.setLoader=function(t,o){s.cancel(e.loaderTimeout),t?e.loaderTimeout=s((function(){e.loader=t,e.loaderMessage=o}),300):e.loader=!1},e.getLoaderMessage=function(){return e.loaderMessage||p.instant("common.loading")},e.toggleAutocomplete=function(){const t=!e.autocompleteEnabled;e.setLoader(!0,t?p.instant("autocomplete.enabling"):p.instant("autocomplete.disabling")),d.toggleAutocomplete(t).success((function(){b(),L()})).error((function(e){o.error(getError(e))})).finally((function(){e.setLoader(!1)}))},e.toggleIndexIRIs=function(){e.setLoader(!0,p.instant("autocomplete.index.iri")),d.toggleIndexIRIs(!e.shouldIndexIRIs).success((function(){I(),L()})).error((function(e){o.error(getError(e))})).finally((function(){e.setLoader(!1)}))},e.buildIndex=function(){e.setLoader(!0,p.instant("autocomplete.index.build")),d.buildIndex().success((function(){e.indexStatus="BUILDING"})).error((function(e){o.error(getError(e))})).finally((function(){e.setLoader(!1)}))},e.interruptIndexing=function(){e.setLoader(!0,p.instant("index.interrupt")),d.interruptIndexing().success((function(){L()})).error((function(e){o.error(getError(e))})).finally((function(){e.setLoader(!1)}))},e.getDegradedReason=function(){return i.getDegradedReason()},e.addLabel=function(){e.editLabel({labelIri:"",languages:""},!0)},e.editLabel=function(t,n){a.open({templateUrl:"js/angular/autocomplete/templates/modal/add-label.html",controller:"AddLabelCtrl",resolve:{data:function(){return{label:t,isNew:n}}}}).result.then((function(t){!function(t){e.setLoader(!0,p.instant("autocomplete.update"));let n=t.labelIri.toString();if(n=l.expandPrefix(n,e.namespaces),l.isValidIri(t,n)&&""!==n)t.labelIri=n,d.addLabelConfig(t).success((function(){v(),L()})).error((function(e){o.error(getError(e))})).finally((function(){e.setLoader(!1)}));else{const n=Object(r.decodeHTML)(p.instant("not.valid.iri",{value:t.labelIri.toString()}));o.error(n),e.setLoader(!1)}}(t)}))},e.removeLabel=function(t){!function(t){e.setLoader(!0,p.instant("autocomplete.update")),d.removeLabelConfig(t).success((function(){v(),L()})).error((function(e){o.error(getError(e))})).finally((function(){e.setLoader(!1)}))}(t)},e.$on("repositoryIsSet",(function(){m(),c.isLicenseValid()&&i.getActiveRepository()&&!i.isActiveRepoOntopType()&&!i.isActiveRepoFedXType()&&(e.checkForPlugin(),R())}));const h=()=>{u.getNamespaces(i.getActiveRepository()).then(n.mapNamespacesResponse).then(t=>{e.namespaces=t}).catch(e=>{const t=getError(e);o.error(t,p.instant("error.getting.namespaces.for.repo"))})};c.isLicenseValid()&&i.getActiveRepository()&&!i.isActiveRepoOntopType()&&!i.isActiveRepoFedXType()&&(e.checkForPlugin(),R())}function c(e,t,o,n){e.label=_.cloneDeep(n.label),e.isNew=n.isNew,e.ok=function(){e.form.$valid&&t.close(e.label)},e.cancel=function(){t.dismiss("cancel")},e.setTemplate=function(t){e.label.labelIri=t,o((function(){$("#wb-autocomplete-languages").focus()}),0)}}angular.module("graphdb.framework.autocomplete.controllers",["toastr","graphdb.framework.rest.autocomplete.service"]).controller("AutocompleteCtrl",i).controller("AddLabelCtrl",c),i.$inject=["$scope","$interval","toastr","$repositories","$licenseService","$uibModal","$timeout","RDF4JRepositoriesRestService","UriUtils","AutocompleteRestService","$autocompleteStatus","$translate"],c.$inject=["$scope","$uibModalInstance","$timeout","data"]},75:function(e,t,o){"use strict";o.r(t),o.d(t,"mapNamespacesResponse",(function(){return n}));const n=e=>e&&e.data?e.data.results.bindings.map(e=>({prefix:e.prefix.value,uri:e.namespace.value})):[]}}]);
1
+ (window.webpackJsonp=window.webpackJsonp||[]).push([[52,217],{131:function(e,t,o){"use strict";o.r(t);o(35);var n=o(75),r=o(0);function i(e,t,o,i,c,a,s,u,l,d,f,p){let g;function m(){g&&t.cancel(g)}e.pluginName="autocomplete",e.setPluginIsActive=function(t){e.pluginIsActive=t};const b=function(){d.checkAutocompleteStatus().success((function(t){e.autocompleteEnabled=t,f.setAutocompleteStatus(t)})).error((function(e){o.error(getError(e))}))},I=function(){d.refreshIndexIRIs().success((function(t){e.shouldIndexIRIs=t})).error((function(e){o.error(getError(e))}))},L=function(){d.refreshIndexStatus().success((function(t){e.indexStatus=t})).error((function(e){o.error(getError(e))}))},v=function(){d.refreshLabelConfig().success((function(t){e.labelConfig=t})).error((function(e){o.error(getError(e))}))};e.checkForPlugin=function(){e.pluginFound=!1,e.setLoader(!0),d.checkForPlugin().success((function(t){e.pluginFound=!0===t,e.pluginFound?(h(),b(),I(),L(),v()):(e.autocompleteEnabled=!1,e.loading=!1)})).error((function(e){o.error(getError(e))})).finally((function(){e.setLoader(!1)}))};const R=function(){g=t((function(){e.$broadcast("checkIsActive"),e.autocompleteEnabled&&L()}),5e3)};e.$on("$destroy",(function(){m()}));e.setLoader=function(t,o){s.cancel(e.loaderTimeout),t?e.loaderTimeout=s((function(){e.loader=t,e.loaderMessage=o}),300):e.loader=!1},e.getLoaderMessage=function(){return e.loaderMessage||p.instant("common.loading")},e.toggleAutocomplete=function(){const t=!e.autocompleteEnabled;e.setLoader(!0,t?p.instant("autocomplete.enabling"):p.instant("autocomplete.disabling")),d.toggleAutocomplete(t).success((function(){b(),L()})).error((function(e){o.error(getError(e))})).finally((function(){e.setLoader(!1)}))},e.toggleIndexIRIs=function(){e.setLoader(!0,p.instant("autocomplete.index.iri")),d.toggleIndexIRIs(!e.shouldIndexIRIs).success((function(){I(),L()})).error((function(e){o.error(getError(e))})).finally((function(){e.setLoader(!1)}))},e.buildIndex=function(){e.setLoader(!0,p.instant("autocomplete.index.build")),d.buildIndex().success((function(){e.indexStatus="BUILDING"})).error((function(e){o.error(getError(e))})).finally((function(){e.setLoader(!1)}))},e.interruptIndexing=function(){e.setLoader(!0,p.instant("index.interrupt")),d.interruptIndexing().success((function(){L()})).error((function(e){o.error(getError(e))})).finally((function(){e.setLoader(!1)}))},e.getDegradedReason=function(){return i.getDegradedReason()},e.addLabel=function(){e.editLabel({labelIri:"",languages:""},!0)},e.editLabel=function(t,n){a.open({templateUrl:"js/angular/autocomplete/templates/modal/add-label.html",controller:"AddLabelCtrl",resolve:{data:function(){return{label:t,isNew:n}}}}).result.then((function(t){!function(t){e.setLoader(!0,p.instant("autocomplete.update"));let n=t.labelIri.toString();if(n=l.expandPrefix(n,e.namespaces),l.isValidIri(t,n)&&""!==n)t.labelIri=n,d.addLabelConfig(t).success((function(){v(),L()})).error((function(e){o.error(getError(e))})).finally((function(){e.setLoader(!1)}));else{const n=Object(r.decodeHTML)(p.instant("not.valid.iri",{value:t.labelIri.toString()}));o.error(n),e.setLoader(!1)}}(t)}))},e.removeLabel=function(t){!function(t){e.setLoader(!0,p.instant("autocomplete.update")),d.removeLabelConfig(t).success((function(){v(),L()})).error((function(e){o.error(getError(e))})).finally((function(){e.setLoader(!1)}))}(t)},e.$on("repositoryIsSet",(function(){m(),c.isLicenseValid()&&i.getActiveRepository()&&!i.isActiveRepoOntopType()&&!i.isActiveRepoFedXType()&&(e.checkForPlugin(),R())}));const h=()=>{u.getNamespaces(i.getActiveRepository()).then(n.mapNamespacesResponse).then(t=>{e.namespaces=t}).catch(e=>{const t=getError(e);o.error(t,p.instant("error.getting.namespaces.for.repo"))})};c.isLicenseValid()&&i.getActiveRepository()&&!i.isActiveRepoOntopType()&&!i.isActiveRepoFedXType()&&(e.checkForPlugin(),R())}function c(e,t,o,n){e.label=_.cloneDeep(n.label),e.isNew=n.isNew,e.ok=function(){e.form.$valid&&t.close(e.label)},e.cancel=function(){t.dismiss("cancel")},e.setTemplate=function(t){e.label.labelIri=t,o((function(){$("#wb-autocomplete-languages").focus()}),0)}}angular.module("graphdb.framework.autocomplete.controllers",["toastr","graphdb.framework.rest.autocomplete.service"]).controller("AutocompleteCtrl",i).controller("AddLabelCtrl",c),i.$inject=["$scope","$interval","toastr","$repositories","$licenseService","$uibModal","$timeout","RDF4JRepositoriesRestService","UriUtils","AutocompleteRestService","$autocompleteStatus","$translate"],c.$inject=["$scope","$uibModalInstance","$timeout","data"]},75:function(e,t,o){"use strict";o.r(t),o.d(t,"mapNamespacesResponse",(function(){return n}));const n=e=>e&&e.data?e.data.results.bindings.map(e=>({prefix:e.prefix.value,uri:e.namespace.value})):[]}}]);
@@ -1 +1 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([[53,88],{131:function(o,e){function n(o,e,n){o.loading=!1,o.initialized=!1,o.backupAndRestoreInfos=void 0,o.hasClusterOperation=!1,o.paused=!1;let a=void 0;o.hasToShowValue=o=>"boolean"==typeof o||!!o,o.togglePause=()=>{o.paused=!o.paused};const r=()=>{o.loading||o.paused||(o.loading=!0,n.monitorBackup().then(e=>{o.backupAndRestoreInfos=e,o.initialized=!0,o.hasClusterOperation=o.backupAndRestoreInfos.some(o=>o.nodePerformingClusterBackup)}).finally(()=>o.loading=!1))};o.$on("$destroy",()=>{a&&e.cancel(a)}),r(),a=e(()=>r(),2e3)}angular.module("graphdb.framework.monitoring.backupandrestore.controllers",[]).controller("BackupAndRestoreCtrl",n),n.$inject=["$scope","$interval","MonitoringRestService"]},211:function(o,e,n){"use strict";n.r(e);n(131);angular.module("graphdb.framework.monitoring.backupandrestore",["graphdb.framework.monitoring.backupandrestore.controllers"])}}]);
1
+ (window.webpackJsonp=window.webpackJsonp||[]).push([[53,88],{132:function(o,e){function n(o,e,n){o.loading=!1,o.initialized=!1,o.backupAndRestoreInfos=void 0,o.hasClusterOperation=!1,o.paused=!1;let a=void 0;o.hasToShowValue=o=>"boolean"==typeof o||!!o,o.togglePause=()=>{o.paused=!o.paused};const r=()=>{o.loading||o.paused||(o.loading=!0,n.monitorBackup().then(e=>{o.backupAndRestoreInfos=e,o.initialized=!0,o.hasClusterOperation=o.backupAndRestoreInfos.some(o=>o.nodePerformingClusterBackup)}).finally(()=>o.loading=!1))};o.$on("$destroy",()=>{a&&e.cancel(a)}),r(),a=e(()=>r(),2e3)}angular.module("graphdb.framework.monitoring.backupandrestore.controllers",[]).controller("BackupAndRestoreCtrl",n),n.$inject=["$scope","$interval","MonitoringRestService"]},211:function(o,e,n){"use strict";n.r(e);n(132);angular.module("graphdb.framework.monitoring.backupandrestore",["graphdb.framework.monitoring.backupandrestore.controllers"])}}]);
@@ -1 +1 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([[54,90],{132:function(t,e){angular.module("graphdb.framework.chatgpt.controllers",["toastr","graphdb.framework.utils.localstorageadapter"]).controller("ChatGptCtrl",o).controller("ChatGptSettingsCtrl",n),o.$inject=["$scope","$http","$timeout","$translate","$uibModal","$repositories","toastr","ModalService","LocalStorageAdapter"];function o(t,e,o,n,r,s,i,a,c){function l(){o(()=>{document.getElementById("messages-scrollable").scrollIntoView({behavior:"smooth",block:"end",inline:"nearest"})},0)}function u(){t.history=[],t.askSettings={queryTemplate:{query:"string"},groundTruths:[],echoVectorQuery:!1,topK:5};const e=c.get("ttyg"),o=s.getActiveRepository();if(e&&e[o]){const n=e[o];n.history&&(t.history=n.history),t.connectorID=n.connectorID,n.askSettings&&(t.askSettings=n.askSettings)}l()}function g(){const e=c.get("ttyg")||{};e[s.getActiveRepository()]={history:t.history,connectorID:t.connectorID,askSettings:t.askSettings},c.set("ttyg",e)}t.helpTemplateUrl="js/angular/chatgpt/templates/chatInfo.html",t.getIcon=function(t){return"question"===t?"user":"assistant"===t?"data":"help"},t.ask=function(){if(!t.question.trim())return;const o=t.history.filter(t=>!t.error),n={connectorID:t.connectorID,question:t.question,askSettings:t.askSettings,history:o},r={role:"question",content:t.question};e.post("rest/chat/retrieval?repositoryID="+s.getActiveRepository(),n).then(e=>{t.history.pop(),e.data.forEach(e=>t.history.push(e))}).catch(t=>{r.error=!0,i.error(getError(t,0,100))}).finally(()=>{t.loader=!1,l(),g()}),t.history.push(r),t.loader=!0,l(),t.question=""},t.clear=function(){a.openSimpleModal({title:n.instant("common.confirm"),message:n.instant("ttyg.clear.history.confirmation"),warning:!0}).result.then((function(){t.history=[],g()}))},t.openSettings=function(){r.open({templateUrl:"js/angular/chatgpt/templates/modal/settings.html",controller:"ChatGptSettingsCtrl",size:"lg",resolve:{data:function(){return{askSettings:t.askSettings,connectorID:t.connectorID}}}}).result.then((function(e){t.connectorID=e.connectorID,t.askSettings=e.askSettings,g()}))},t.$on("repositoryIsSet",(function(){u()})),s.getActiveRepository()&&u()}function n(t,e,o,n){t.dialogTitle=e.instant("ttyg.settings.title"),t.save=function(){if(t.form.$valid){const e={queryTemplate:JSON.parse(t.queryTemplate),groundTruths:t.groundTruths.split("\n"),topK:t.topK,echoVectorQuery:t.echoVectorQuery};o.close({askSettings:e,connectorID:t.connectorID})}},t.cancel=function(){o.dismiss("cancel")},t.connectorID=n.connectorID,t.queryTemplate=JSON.stringify(n.askSettings.queryTemplate,null," "),t.topK=n.askSettings.topK,t.echoVectorQuery=n.askSettings.echoVectorQuery,t.groundTruths=n.askSettings.groundTruths.map(t=>t.trim()).filter(t=>""!==t).join("\n")}n.$inject=["$scope","$translate","$uibModalInstance","data"]},213:function(t,e,o){"use strict";o.r(e);o(132);angular.module("graphdb.framework.chatgpt",["ngRoute","graphdb.framework.chatgpt.controllers"])}}]);
1
+ (window.webpackJsonp=window.webpackJsonp||[]).push([[54,90],{133:function(t,e){angular.module("graphdb.framework.chatgpt.controllers",["toastr","graphdb.framework.utils.localstorageadapter"]).controller("ChatGptCtrl",o).controller("ChatGptSettingsCtrl",n),o.$inject=["$scope","$http","$timeout","$translate","$uibModal","$repositories","toastr","ModalService","LocalStorageAdapter"];function o(t,e,o,n,r,s,i,a,c){function l(){o(()=>{document.getElementById("messages-scrollable").scrollIntoView({behavior:"smooth",block:"end",inline:"nearest"})},0)}function u(){t.history=[],t.askSettings={queryTemplate:{query:"string"},groundTruths:[],echoVectorQuery:!1,topK:5};const e=c.get("ttyg"),o=s.getActiveRepository();if(e&&e[o]){const n=e[o];n.history&&(t.history=n.history),t.connectorID=n.connectorID,n.askSettings&&(t.askSettings=n.askSettings)}l()}function g(){const e=c.get("ttyg")||{};e[s.getActiveRepository()]={history:t.history,connectorID:t.connectorID,askSettings:t.askSettings},c.set("ttyg",e)}t.helpTemplateUrl="js/angular/chatgpt/templates/chatInfo.html",t.getIcon=function(t){return"question"===t?"user":"assistant"===t?"data":"help"},t.ask=function(){if(!t.question.trim())return;const o=t.history.filter(t=>!t.error),n={connectorID:t.connectorID,question:t.question,askSettings:t.askSettings,history:o},r={role:"question",content:t.question};e.post("rest/chat/retrieval?repositoryID="+s.getActiveRepository(),n).then(e=>{t.history.pop(),e.data.forEach(e=>t.history.push(e))}).catch(t=>{r.error=!0,i.error(getError(t,0,100))}).finally(()=>{t.loader=!1,l(),g()}),t.history.push(r),t.loader=!0,l(),t.question=""},t.clear=function(){a.openSimpleModal({title:n.instant("common.confirm"),message:n.instant("ttyg.clear.history.confirmation"),warning:!0}).result.then((function(){t.history=[],g()}))},t.openSettings=function(){r.open({templateUrl:"js/angular/chatgpt/templates/modal/settings.html",controller:"ChatGptSettingsCtrl",size:"lg",resolve:{data:function(){return{askSettings:t.askSettings,connectorID:t.connectorID}}}}).result.then((function(e){t.connectorID=e.connectorID,t.askSettings=e.askSettings,g()}))},t.$on("repositoryIsSet",(function(){u()})),s.getActiveRepository()&&u()}function n(t,e,o,n){t.dialogTitle=e.instant("ttyg.settings.title"),t.save=function(){if(t.form.$valid){const e={queryTemplate:JSON.parse(t.queryTemplate),groundTruths:t.groundTruths.split("\n"),topK:t.topK,echoVectorQuery:t.echoVectorQuery};o.close({askSettings:e,connectorID:t.connectorID})}},t.cancel=function(){o.dismiss("cancel")},t.connectorID=n.connectorID,t.queryTemplate=JSON.stringify(n.askSettings.queryTemplate,null," "),t.topK=n.askSettings.topK,t.echoVectorQuery=n.askSettings.echoVectorQuery,t.groundTruths=n.askSettings.groundTruths.map(t=>t.trim()).filter(t=>""!==t).join("\n")}n.$inject=["$scope","$translate","$uibModalInstance","data"]},213:function(t,e,o){"use strict";o.r(e);o(133);angular.module("graphdb.framework.chatgpt",["ngRoute","graphdb.framework.chatgpt.controllers"])}}]);
@@ -1 +1 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([[55],{215:function(t,e,n){"use strict";n.r(e);n(7),n(24),n(108),n(199),n(25),n(394),n(450);angular.module("graphdb.framework.clustermanagement",["ngAnimate","toastr","graphdb.framework.clustermanagement.controllers.cluster-management","graphdb.framework.clustermanagement.directives"])},394:function(t,e,n){var r,o;r=[n(399)],void 0===(o=function(){function t(t,e){return t.each((function(){var t=e.apply(this,arguments),n=select(this);for(var r in t)n.attr(r,t[r])}))}function e(t,e){for(var n in e)t.attr(n,e[n]);return t}return"undefined"==typeof d3&&(d3=n(399)),d3.selection.prototype.attrs=function(n){return("function"==typeof n?t:e)(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 t=this.parentNode.firstChild;t&&this.parentNode.insertBefore(this,t)}))},d3}.apply(e,r))||(t.exports=o)}}]);
1
+ (window.webpackJsonp=window.webpackJsonp||[]).push([[55],{215:function(t,e,n){"use strict";n.r(e);n(7),n(25),n(110),n(200),n(24),n(393),n(449);angular.module("graphdb.framework.clustermanagement",["ngAnimate","toastr","graphdb.framework.clustermanagement.controllers.cluster-management","graphdb.framework.clustermanagement.directives"])},393:function(t,e,n){var r,o;r=[n(398)],void 0===(o=function(){function t(t,e){return t.each((function(){var t=e.apply(this,arguments),n=select(this);for(var r in t)n.attr(r,t[r])}))}function e(t,e){for(var n in e)t.attr(n,e[n]);return t}return"undefined"==typeof d3&&(d3=n(398)),d3.selection.prototype.attrs=function(n){return("function"==typeof n?t:e)(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 t=this.parentNode.firstChild;t&&this.parentNode.insertBefore(this,t)}))},d3}.apply(e,r))||(t.exports=o)}}]);
@@ -1 +1 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([[56,97],{138:function(o,t,e){"use strict";e.r(t);e(76);function n(o,t,e,n,r){const a=_.cloneDeep(e.clusterConfiguration),s=_.cloneDeep(e.clusterModel);o.nodes=[],o.clusterNodes=s.nodes.map(o=>({rpcAddress:o.address,endpoint:o.endpoint})),o.locations=s.locations.filter(o=>!a.nodes.includes(o.rpcAddress)),o.locations.forEach(o=>o.isNew=!0),o.deleteLocation=function(t,n){t.preventDefault(),t.stopPropagation(),e.deleteLocation(n).then(()=>o.locations=o.locations.filter(o=>o.endpoint!==n.endpoint))},o.addNodeToList=function(t){t.rpcAddress&&(o.nodes.push(t),o.locations=o.locations.filter(o=>o.endpoint!==t.endpoint))},o.removeNodeFromList=function(t,e){o.nodes.splice(t,1),o.locations.push(e)},o.addLocation=function(){r.addLocation().then(t=>{t&&o.locations.push(t)})},o.ok=function(){t.close(o.nodes)},o.cancel=function(){t.dismiss("cancel")}}angular.module("graphdb.framework.clustermanagement.controllers.add-nodes",[]).controller("AddNodesDialogCtrl",n),n.$inject=["$scope","$uibModalInstance","data","$uibModal","RemoteLocationsService"]},76:function(o,t,e){"use strict";e.r(t);e(33);function n(o,t,e,n,r){return{addLocation:function(){let o;return e.open({templateUrl:"js/angular/templates/modal/add-location.html",windowClass:"addLocationDialog",controller:"AddLocationFromClusterCtrl"}).result.then(e=>(o=e,o.isLocal=!1,o.endpoint=o.uri,function(o){let e;return n.addLocation(o).catch(o=>{const e=getError(o.data,o.status);return t.error(e,r.instant("common.error")),!1}).then(o=>!!o&&a()).then(t=>{if(!1!==t)return e=t.find(t=>t.endpoint===o.uri),e})}(o)))},getLocationsWithRpcAddresses:a};function a(){return n.getLocations().then((function(o){return o.data.map(o=>({isLocal:o.local,endpoint:o.uri,rpcAddress:o.rpcAddress||"",error:o.errorMsg}))})).catch((function(o){const e=getError(o.data,o.status);t.error(e,r.instant("common.error"))})).then(o=>{if(o)return function(o){const t=o.filter(o=>!o.isLocal&&!o.error).map(o=>function(o){return n.getLocationRpcAddress(o.endpoint)}(o).then(t=>(o.rpcAddress=t.data,o.isAvailable=!0,o)).catch(t=>{o.isAvailable=!1,o.error=getError(t.data,t.status)}));return Promise.allSettled(t).then(()=>o)}(o)})}}angular.module("graphdb.framework.clustermanagement.services.remote-locations",[]).factory("RemoteLocationsService",n),n.$inject=["$http","toastr","$uibModal","LocationsRestService","$translate"]}}]);
1
+ (window.webpackJsonp=window.webpackJsonp||[]).push([[56,97],{139:function(o,t,e){"use strict";e.r(t);e(76);function n(o,t,e,n,r){const a=_.cloneDeep(e.clusterConfiguration),s=_.cloneDeep(e.clusterModel);o.nodes=[],o.clusterNodes=s.nodes.map(o=>({rpcAddress:o.address,endpoint:o.endpoint})),o.locations=s.locations.filter(o=>!a.nodes.includes(o.rpcAddress)),o.locations.forEach(o=>o.isNew=!0),o.deleteLocation=function(t,n){t.preventDefault(),t.stopPropagation(),e.deleteLocation(n).then(()=>o.locations=o.locations.filter(o=>o.endpoint!==n.endpoint))},o.addNodeToList=function(t){t.rpcAddress&&(o.nodes.push(t),o.locations=o.locations.filter(o=>o.endpoint!==t.endpoint))},o.removeNodeFromList=function(t,e){o.nodes.splice(t,1),o.locations.push(e)},o.addLocation=function(){r.addLocation().then(t=>{t&&o.locations.push(t)})},o.ok=function(){t.close(o.nodes)},o.cancel=function(){t.dismiss("cancel")}}angular.module("graphdb.framework.clustermanagement.controllers.add-nodes",[]).controller("AddNodesDialogCtrl",n),n.$inject=["$scope","$uibModalInstance","data","$uibModal","RemoteLocationsService"]},76:function(o,t,e){"use strict";e.r(t);e(33);function n(o,t,e,n,r){return{addLocation:function(){let o;return e.open({templateUrl:"js/angular/templates/modal/add-location.html",windowClass:"addLocationDialog",controller:"AddLocationFromClusterCtrl"}).result.then(e=>(o=e,o.isLocal=!1,o.endpoint=o.uri,function(o){let e;return n.addLocation(o).catch(o=>{const e=getError(o.data,o.status);return t.error(e,r.instant("common.error")),!1}).then(o=>!!o&&a()).then(t=>{if(!1!==t)return e=t.find(t=>t.endpoint===o.uri),e})}(o)))},getLocationsWithRpcAddresses:a};function a(){return n.getLocations().then((function(o){return o.data.map(o=>({isLocal:o.local,endpoint:o.uri,rpcAddress:o.rpcAddress||"",error:o.errorMsg}))})).catch((function(o){const e=getError(o.data,o.status);t.error(e,r.instant("common.error"))})).then(o=>{if(o)return function(o){const t=o.filter(o=>!o.isLocal&&!o.error).map(o=>function(o){return n.getLocationRpcAddress(o.endpoint)}(o).then(t=>(o.rpcAddress=t.data,o.isAvailable=!0,o)).catch(t=>{o.isAvailable=!1,o.error=getError(t.data,t.status)}));return Promise.allSettled(t).then(()=>o)}(o)})}}angular.module("graphdb.framework.clustermanagement.services.remote-locations",[]).factory("RemoteLocationsService",n),n.$inject=["$http","toastr","$uibModal","LocationsRestService","$translate"]}}]);
@@ -1 +1 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([[57,211],{134:function(e,t,n){"use strict";n.r(t);n(65);angular.module("graphdb.framework.clustermanagement.controllers.create-cluster",[]).controller("CreateClusterCtrl",r);const o=function(){const e=document.getElementById("advancedOptions");if(e){const t=e.getAttribute("aria-expanded");if(t&&"true"===t)return"fa fa-angle-down"}return"fa fa-angle-right"};function r(e,t,n,r,s,a,c,i,u,l){e.pageTitle=a.instant("cluster_management.cluster_page.create_page_title"),e.autofocusId="autofocus",e.errors=[],e.clusterConfiguration={electionMinTimeout:8e3,electionRangeTimeout:6e3,heartbeatInterval:2e3,messageSizeKB:64,verificationTimeout:1500,transactionLogMaximumSizeGB:50,nodes:[]},e.locations=c.clusterModel.locations.filter(e=>!e.isLocal),e.selectedLocations=c.clusterModel.locations.filter(e=>e.isLocal),e.loader=!1,e.deleteLocation=function(t,n){t.preventDefault(),t.stopPropagation(),c.deleteLocation(n).then(()=>e.locations=e.locations.filter(e=>e.endpoint!==n.endpoint))},e.getAdvancedOptionsClass=o,e.createCluster=function(){return e.setLoader(!0,a.instant("cluster_management.cluster_page.creating_cluster_loader")),e.clusterConfiguration.nodes=e.selectedLocations.map(e=>e.rpcAddress),r.createCluster(e.clusterConfiguration).then(()=>{s.success(a.instant("cluster_management.cluster_page.notifications.create_success")),t.close()}).catch((function(t){!function(t,n){let o;delete e.preconditionErrors,e.errors.splice(0),412===n?e.preconditionErrors=Object.keys(t).map(e=>`${e} - ${t[e]}`):400===n?e.errors.push(...t):409===n?e.errors.push(t):(t.message||"string"==typeof t)&&(o=t.message||t);s.error(o,a.instant("cluster_management.cluster_page.notifications.create_failed"))}(t.data,t.status)})).finally(()=>{e.setLoader(!1),l.$broadcast("reloadLocations")})},e.isClusterConfigurationValid=()=>{const t=!e.clusterConfigurationForm.$invalid,n=e.selectedLocations&&e.selectedLocations.length>=2;return t&&n},e.setLoader=function(t,o){n.cancel(e.loaderTimeout),t?e.loaderTimeout=n((function(){e.loader=t,e.loaderMessage=o}),300):e.loader=!1},e.addNodeToList=function(t){t.rpcAddress&&(e.selectedLocations.push(t),e.locations=e.locations.filter(e=>e.endpoint!==t.endpoint))},e.removeNodeFromList=function(t,n){n.isLocal||(e.selectedLocations.splice(t,1),e.locations.push(n))},e.addLocation=function(){u.addLocation().then(t=>{t&&e.locations.push(t)})},e.ok=function(){e.isClusterConfigurationValid()?e.createCluster():s.warning(a.instant("cluster_management.cluster_page.notifications.form_invalid"))},e.cancel=function(){t.dismiss("cancel")}}r.$inject=["$scope","$uibModalInstance","$timeout","ClusterRestService","toastr","$translate","data","$uibModal","RemoteLocationsService","$rootScope"]},65:function(e,t){angular.module("graphdb.framework.rest.cluster.service",[]).factory("ClusterRestService",n),n.$inject=["$http"];function n(e){return{getClusterConfig:function(){return e.get("rest/cluster/config")},createCluster:function(t){return e.post("rest/cluster/config",t)},updateCluster:function(t){t.nodes&&delete t.nodes;return e.patch("rest/cluster/config",t)},deleteCluster:function(t){const n=$.param({force:t});return e.delete("rest/cluster/config?"+n)},addNodesToCluster:function(t){return e.post("rest/cluster/config/node",{nodes:t})},replaceNodesInCluster:function(t){return e.patch("rest/cluster/config/node",t)},removeNodesFromCluster:function(t){return e.delete("rest/cluster/config/node",{data:{nodes:t},headers:{"Content-Type":"application/json"}})},getClusterStatus:function(){return e.get("rest/cluster/group/status")},getNodeStatus:function(){return e.get("rest/cluster/node/status")}}}}}]);
1
+ (window.webpackJsonp=window.webpackJsonp||[]).push([[57,212],{135:function(e,t,n){"use strict";n.r(t);n(65);angular.module("graphdb.framework.clustermanagement.controllers.create-cluster",[]).controller("CreateClusterCtrl",r);const o=function(){const e=document.getElementById("advancedOptions");if(e){const t=e.getAttribute("aria-expanded");if(t&&"true"===t)return"fa fa-angle-down"}return"fa fa-angle-right"};function r(e,t,n,r,s,a,c,i,u,l){e.pageTitle=a.instant("cluster_management.cluster_page.create_page_title"),e.autofocusId="autofocus",e.errors=[],e.clusterConfiguration={electionMinTimeout:8e3,electionRangeTimeout:6e3,heartbeatInterval:2e3,messageSizeKB:64,verificationTimeout:1500,transactionLogMaximumSizeGB:50,nodes:[]},e.locations=c.clusterModel.locations.filter(e=>!e.isLocal),e.selectedLocations=c.clusterModel.locations.filter(e=>e.isLocal),e.loader=!1,e.deleteLocation=function(t,n){t.preventDefault(),t.stopPropagation(),c.deleteLocation(n).then(()=>e.locations=e.locations.filter(e=>e.endpoint!==n.endpoint))},e.getAdvancedOptionsClass=o,e.createCluster=function(){return e.setLoader(!0,a.instant("cluster_management.cluster_page.creating_cluster_loader")),e.clusterConfiguration.nodes=e.selectedLocations.map(e=>e.rpcAddress),r.createCluster(e.clusterConfiguration).then(()=>{s.success(a.instant("cluster_management.cluster_page.notifications.create_success")),t.close()}).catch((function(t){!function(t,n){let o;delete e.preconditionErrors,e.errors.splice(0),412===n?e.preconditionErrors=Object.keys(t).map(e=>`${e} - ${t[e]}`):400===n?e.errors.push(...t):409===n?e.errors.push(t):(t.message||"string"==typeof t)&&(o=t.message||t);s.error(o,a.instant("cluster_management.cluster_page.notifications.create_failed"))}(t.data,t.status)})).finally(()=>{e.setLoader(!1),l.$broadcast("reloadLocations")})},e.isClusterConfigurationValid=()=>{const t=!e.clusterConfigurationForm.$invalid,n=e.selectedLocations&&e.selectedLocations.length>=2;return t&&n},e.setLoader=function(t,o){n.cancel(e.loaderTimeout),t?e.loaderTimeout=n((function(){e.loader=t,e.loaderMessage=o}),300):e.loader=!1},e.addNodeToList=function(t){t.rpcAddress&&(e.selectedLocations.push(t),e.locations=e.locations.filter(e=>e.endpoint!==t.endpoint))},e.removeNodeFromList=function(t,n){n.isLocal||(e.selectedLocations.splice(t,1),e.locations.push(n))},e.addLocation=function(){u.addLocation().then(t=>{t&&e.locations.push(t)})},e.ok=function(){e.isClusterConfigurationValid()?e.createCluster():s.warning(a.instant("cluster_management.cluster_page.notifications.form_invalid"))},e.cancel=function(){t.dismiss("cancel")}}r.$inject=["$scope","$uibModalInstance","$timeout","ClusterRestService","toastr","$translate","data","$uibModal","RemoteLocationsService","$rootScope"]},65:function(e,t){angular.module("graphdb.framework.rest.cluster.service",[]).factory("ClusterRestService",n),n.$inject=["$http"];function n(e){return{getClusterConfig:function(){return e.get("rest/cluster/config")},createCluster:function(t){return e.post("rest/cluster/config",t)},updateCluster:function(t){t.nodes&&delete t.nodes;return e.patch("rest/cluster/config",t)},deleteCluster:function(t){const n=$.param({force:t});return e.delete("rest/cluster/config?"+n)},addNodesToCluster:function(t){return e.post("rest/cluster/config/node",{nodes:t})},replaceNodesInCluster:function(t){return e.patch("rest/cluster/config/node",t)},removeNodesFromCluster:function(t){return e.delete("rest/cluster/config/node",{data:{nodes:t},headers:{"Content-Type":"application/json"}})},getClusterStatus:function(){return e.get("rest/cluster/group/status")},getNodeStatus:function(){return e.get("rest/cluster/node/status")}}}}}]);
@@ -1 +1 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([[58,211],{135:function(e,t,r){"use strict";r.r(t);r(65);function n(e,t,r,n,s,o,u){e.pageTitle=o.instant("cluster_management.cluster_page.edit_page_title"),e.errors=[],e.clusterConfiguration=_.cloneDeep(u.clusterConfiguration),e.loader=!1,e.updateCluster=function(){return e.setLoader(!0,o.instant("cluster_management.cluster_page.updating_cluster_loader")),n.updateCluster(e.clusterConfiguration).then(()=>{s.success(o.instant("cluster_management.cluster_page.notifications.update_success")),t.close()}).catch((function(t){!function(t,r){delete e.preconditionErrors,s.error(o.instant("cluster_management.cluster_page.notifications.update_failed")),e.errors.splice(0),409===r||"string"==typeof t?e.errors.push(t):412===r?e.preconditionErrors=Object.keys(t).map(e=>`${e} - ${t[e]}`):400===r&&e.errors.push(...t)}(t.data,t.status)})).finally(()=>e.setLoader(!1))},e.isClusterConfigurationValid=()=>!e.clusterConfigurationForm.$invalid,e.setLoader=function(t,n){r.cancel(e.loaderTimeout),t?e.loaderTimeout=r((function(){e.loader=t,e.loaderMessage=n}),300):e.loader=!1},e.ok=function(){e.isClusterConfigurationValid()?e.updateCluster():s.warning(o.instant("cluster_management.cluster_page.notifications.form_invalid"))},e.cancel=function(){t.dismiss("cancel")}}angular.module("graphdb.framework.clustermanagement.controllers.edit-cluster",[]).controller("EditClusterCtrl",n),n.$inject=["$scope","$uibModalInstance","$timeout","ClusterRestService","toastr","$translate","data"]},65:function(e,t){angular.module("graphdb.framework.rest.cluster.service",[]).factory("ClusterRestService",r),r.$inject=["$http"];function r(e){return{getClusterConfig:function(){return e.get("rest/cluster/config")},createCluster:function(t){return e.post("rest/cluster/config",t)},updateCluster:function(t){t.nodes&&delete t.nodes;return e.patch("rest/cluster/config",t)},deleteCluster:function(t){const r=$.param({force:t});return e.delete("rest/cluster/config?"+r)},addNodesToCluster:function(t){return e.post("rest/cluster/config/node",{nodes:t})},replaceNodesInCluster:function(t){return e.patch("rest/cluster/config/node",t)},removeNodesFromCluster:function(t){return e.delete("rest/cluster/config/node",{data:{nodes:t},headers:{"Content-Type":"application/json"}})},getClusterStatus:function(){return e.get("rest/cluster/group/status")},getNodeStatus:function(){return e.get("rest/cluster/node/status")}}}}}]);
1
+ (window.webpackJsonp=window.webpackJsonp||[]).push([[58,212],{136:function(e,t,r){"use strict";r.r(t);r(65);function n(e,t,r,n,s,o,u){e.pageTitle=o.instant("cluster_management.cluster_page.edit_page_title"),e.errors=[],e.clusterConfiguration=_.cloneDeep(u.clusterConfiguration),e.loader=!1,e.updateCluster=function(){return e.setLoader(!0,o.instant("cluster_management.cluster_page.updating_cluster_loader")),n.updateCluster(e.clusterConfiguration).then(()=>{s.success(o.instant("cluster_management.cluster_page.notifications.update_success")),t.close()}).catch((function(t){!function(t,r){delete e.preconditionErrors,s.error(o.instant("cluster_management.cluster_page.notifications.update_failed")),e.errors.splice(0),409===r||"string"==typeof t?e.errors.push(t):412===r?e.preconditionErrors=Object.keys(t).map(e=>`${e} - ${t[e]}`):400===r&&e.errors.push(...t)}(t.data,t.status)})).finally(()=>e.setLoader(!1))},e.isClusterConfigurationValid=()=>!e.clusterConfigurationForm.$invalid,e.setLoader=function(t,n){r.cancel(e.loaderTimeout),t?e.loaderTimeout=r((function(){e.loader=t,e.loaderMessage=n}),300):e.loader=!1},e.ok=function(){e.isClusterConfigurationValid()?e.updateCluster():s.warning(o.instant("cluster_management.cluster_page.notifications.form_invalid"))},e.cancel=function(){t.dismiss("cancel")}}angular.module("graphdb.framework.clustermanagement.controllers.edit-cluster",[]).controller("EditClusterCtrl",n),n.$inject=["$scope","$uibModalInstance","$timeout","ClusterRestService","toastr","$translate","data"]},65:function(e,t){angular.module("graphdb.framework.rest.cluster.service",[]).factory("ClusterRestService",r),r.$inject=["$http"];function r(e){return{getClusterConfig:function(){return e.get("rest/cluster/config")},createCluster:function(t){return e.post("rest/cluster/config",t)},updateCluster:function(t){t.nodes&&delete t.nodes;return e.patch("rest/cluster/config",t)},deleteCluster:function(t){const r=$.param({force:t});return e.delete("rest/cluster/config?"+r)},addNodesToCluster:function(t){return e.post("rest/cluster/config/node",{nodes:t})},replaceNodesInCluster:function(t){return e.patch("rest/cluster/config/node",t)},removeNodesFromCluster:function(t){return e.delete("rest/cluster/config/node",{data:{nodes:t},headers:{"Content-Type":"application/json"}})},getClusterStatus:function(){return e.get("rest/cluster/group/status")},getNodeStatus:function(){return e.get("rest/cluster/node/status")}}}}}]);
@@ -1 +1 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([[60,99],{165:function(e,i,a){"use strict";a.r(i);a(36),a(77);var n=a(2);function t(e,i,a,t,s,r){e.guides=[],e.pageSizeOptions=[10,20,50,100],e.page=1,e.pageSize=e.pageSizeOptions[0],e.translationSubscription=void 0,e.init=function(){a.getGuides().then(i=>{e.guides=t("orderBy")(i,"guideOrder"),e.guides.forEach(e=>{switch(e.translatedGuideName=n.GuideUtils.translateLocalMessage(s,r,e.guideName),e.translatedGuideDescription=n.GuideUtils.translateLocalMessage(s,r,e.guideDescription),e.guideLevel){case void 0:case 0:e.guideLevelLabel="view.guides.level.beginner";break;case 1:e.guideLevelLabel="view.guides.level.intermediate";break;default:e.guideLevelLabel="view.guides.level.advanced"}}),e.matchedElements=e.guides,e.changePagination()})},e.startGuide=function(e){a.startGuide(e)},this.translationSubscription||(this.translationSubscription=i.$on("$translateChangeSuccess",()=>{e.init()})),e.changePagination=function(){angular.isDefined(e.guides)&&(e.displayedGuides=e.guides.slice(e.pageSize*(e.page-1),e.pageSize*e.page))},e.changePageSize=function(i){e.page=1,e.pageSize=i||e.pageSizeOptions[0],e.changePagination()},e.init()}angular.module("graphdb.framework.guides.controllers",["ui.bootstrap","graphdb.framework.guides.services","graphdb.framework.core.directives.paginations"]).controller("GuidesCtrl",t),t.$inject=["$scope","$rootScope","GuidesService","$filter","$translate","$interpolate"]},77:function(e,i){angular.module("graphdb.framework.core.directives.paginations",[]).directive("paginations",(function(){return{template:'<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"></uib-pagination>'}}))}}]);
1
+ (window.webpackJsonp=window.webpackJsonp||[]).push([[59,99],{166:function(e,i,a){"use strict";a.r(i);a(36),a(77);var n=a(2);function t(e,i,a,t,s,r){e.guides=[],e.pageSizeOptions=[10,20,50,100],e.page=1,e.pageSize=e.pageSizeOptions[0],e.translationSubscription=void 0,e.init=function(){a.getGuides().then(i=>{e.guides=t("orderBy")(i,"guideOrder"),e.guides.forEach(e=>{switch(e.translatedGuideName=n.GuideUtils.translateLocalMessage(s,r,e.guideName),e.translatedGuideDescription=n.GuideUtils.translateLocalMessage(s,r,e.guideDescription),e.guideLevel){case void 0:case 0:e.guideLevelLabel="view.guides.level.beginner";break;case 1:e.guideLevelLabel="view.guides.level.intermediate";break;default:e.guideLevelLabel="view.guides.level.advanced"}}),e.matchedElements=e.guides,e.changePagination()})},e.startGuide=function(e){a.startGuide(e)},this.translationSubscription||(this.translationSubscription=i.$on("$translateChangeSuccess",()=>{e.init()})),e.changePagination=function(){angular.isDefined(e.guides)&&(e.displayedGuides=e.guides.slice(e.pageSize*(e.page-1),e.pageSize*e.page))},e.changePageSize=function(i){e.page=1,e.pageSize=i||e.pageSizeOptions[0],e.changePagination()},e.init()}angular.module("graphdb.framework.guides.controllers",["ui.bootstrap","graphdb.framework.guides.services","graphdb.framework.core.directives.paginations"]).controller("GuidesCtrl",t),t.$inject=["$scope","$rootScope","GuidesService","$filter","$translate","$interpolate"]},77:function(e,i){angular.module("graphdb.framework.core.directives.paginations",[]).directive("paginations",(function(){return{template:'<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"></uib-pagination>'}}))}}]);
@@ -1 +1 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([[6,206],{107:function(e,t,o){"use strict";o.r(t),o.d(t,"getFileName",(function(){return r}));var i=o(93),n=o(0);const r=function(e){let t=e.lastIndexOf("/");-1===t&&(t=e.lastIndexOf("\\"));let o=e;return-1!==t&&(o=o.substring(t+1)),o},a=function(e){e&&(e.queryTimeout&&(e.queryTimeout.value=parseInt(e.queryTimeout.value)),e.queryLimitResults&&e.validationResultsLimitTotal&&e.validationResultsLimitPerConstraint?(e.queryLimitResults.value=parseInt(e.queryLimitResults.value),e.validationResultsLimitTotal.value=parseInt(e.validationResultsLimitTotal.value),e.validationResultsLimitPerConstraint.value=parseInt(e.validationResultsLimitPerConstraint.value)):e.leftJoinWorkerThreads&&e.boundJoinBlockSize&&e.joinWorkerThreads&&e.unionWorkerThreads&&(e.leftJoinWorkerThreads.value=parseInt(e.leftJoinWorkerThreads.value),e.boundJoinBlockSize.value=parseInt(e.boundJoinBlockSize.value),e.joinWorkerThreads.value=parseInt(e.joinWorkerThreads.value),e.unionWorkerThreads.value=parseInt(e.unionWorkerThreads.value)))},s=function(){const e=document.getElementById("shaclOptions");if(e){const t=e.getAttribute("aria-expanded");if(t&&"true"===t)return"fa fa-angle-down"}return"fa fa-angle-right"},l=function(e,t){e.queryTimeout&&(t.isInvalidQueryTimeout=!i.NUMBER_PATTERN.test(e.queryTimeout.value)),e.validationResultsLimitTotal&&e.validationResultsLimitPerConstraint&&e.queryLimitResults?(t.isInvalidValidationResultsLimitTotal=!i.NUMBER_PATTERN.test(e.validationResultsLimitTotal.value),t.isInvalidValidationResultsLimitPerConstraint=!i.NUMBER_PATTERN.test(e.validationResultsLimitPerConstraint.value),t.isInvalidQueryLimit=!i.NUMBER_PATTERN.test(e.queryLimitResults.value)):e.leftJoinWorkerThreads&&e.boundJoinBlockSize&&e.joinWorkerThreads&&e.unionWorkerThreads&&(t.isInvalidLeftJoinWorkerThreads=!i.NUMBER_PATTERN.test(e.leftJoinWorkerThreads.value),t.isInvalidBoundJoinBlockSize=!i.NUMBER_PATTERN.test(e.boundJoinBlockSize.value),t.isInvalidJoinWorkerThreads=!i.NUMBER_PATTERN.test(e.joinWorkerThreads.value),t.isInvalidUnionWorkerThreads=!i.NUMBER_PATTERN.test(e.unionWorkerThreads.value))},c=function(e,t){return"isInvalidQueryLimit"===e?t.instant("invalid.query.limit"):"isInvalidQueryTimeout"===e?t.instant("invalid.query.timeout"):"isInvalidValidationResultsLimitTotal"===e?t.instant("invalid.validation.results.limit.total"):"isInvalidValidationResultsLimitPerConstraint"===e?t.instant("invalid.validation.results.limit.per.constraint"):"isInvalidJoinWorkerThreads"===e?t.instant("invalid.join.worker.threads"):"isInvalidLeftJoinWorkerThreads"===e?t.instant("invalid.left.join.worker.threads"):"isInvalidUnionWorkerThreads"===e?t.instant("invalid.union.worker.threads"):"isInvalidBoundJoinBlockSize"===e?t.instant("invalid.bound.join.block.size"):void 0},d=function(e,t){const o=Object.keys(e),i=Object.values(e);for(let e=0;e<o.length;e++)if(i[e])return c(o[e],t);return""},u=function(e){return"https://graphdb.ontotext.com/documentation/"+e.productShortVersion},p=function(e){return e.getLocations().then(e=>e.filter(e=>!e.errorMsg&&!e.degradedReason))};function f(e,t,o,r,a,s,l,c,d,u,p,f,m){e.loader=!0,e.isLocationInactive=function(t){return!t.active||!e.hasActiveLocation()};const v=f.defer();function y(){return a.getLocations(v).then(t=>(e.locations=t,t)).finally(()=>e.loader=!1)}e.hasActiveLocation=function(){return a.hasActiveLocation()},e.getActiveLocation=function(){return a.getActiveLocation()},e.getLocationError=function(){return a.getLocationError()},e.getDegradedReason=function(){return a.getDegradedReason()},e.getRepositories=function(){return a.getRepositories()},e.isRepoActive=function(e){return a.isRepoActive(e)},e.deleteLocation=function(t){s.openSimpleModal({title:p.instant("location.confirm.detach"),message:p.instant("location.confirm.detach.warning",{uri:t}),warning:!0}).result.then((function(){e.loader=!0,a.deleteLocation(t).finally(()=>y())}))},e.addLocationHttp=function(t){e.loader=!0,c.addLocation(t).success((function(){a.init()})).error((function(e){const t=getError(e);r.error(t,p.instant("common.error"))})).finally(()=>y())},e.addLocation=function(){o.open({templateUrl:"js/angular/templates/modal/add-location.html",windowClass:"addLocationDialog",controller:"AddLocationCtrl"}).result.then((function(t){e.addLocationHttp(t)}))},e.editLocationHttp=function(t){e.loader=!0,c.editLocation(t).success((function(){a.init()})).error((function(e){const t=getError(e);r.error(t,p.instant("common.error"))})).finally(()=>y())},e.editLocation=function(t){o.open({templateUrl:"js/angular/templates/modal/edit-location.html",controller:"EditLocationCtrl",resolve:{location:function(){return t}}}).result.then((function(t){e.editLocationHttp(t)}),(function(){}))},e.setRepository=function(e){a.setRepository(e)},e.deleteRepository=function(t){s.openSimpleModal({title:p.instant("common.confirm.delete"),message:Object(n.decodeHTML)(p.instant("delete.repo.warning.msg",{repositoryId:t.id})),warning:!0}).result.then((function(){e.loader=!0,a.deleteRepository(t).finally(()=>{y(),e.loader=!1}),function(e){const t="dependencies-selectedGraph-"+e.id,o="classHierarchy-selectedGraph-"+e.id;angular.forEach(d.keys(),(function(e){(e.startsWith(o)||e.startsWith(t))&&d.remove(e)}))}(t)}))},e.restartRepository=function(t){s.openSimpleModal({title:p.instant("confirm.restart.repo"),message:Object(n.decodeHTML)(p.instant("confirm.restart.repo.warning.msg",{repositoryId:t.id})),warning:!0}).result.then((function(){e.loader=!0,a.restartRepository(t).finally(()=>y())}))},e.toggleDefaultRepository=function(t){e.getDefaultRepository()===t?a.setDefaultRepository(null):a.setDefaultRepository(t)},e.getDefaultRepository=function(){return a.getDefaultRepository()},e.getRepositoryDownloadLink=function(e){let t=`rest/repositories/${e.id}${e.type===i.REPOSITORY_TYPES.ontop?"/download-zip":"/download-ttl"}?location=${e.location}`;const o=l.getAuthToken();return o&&(t=`${t}&authToken=${encodeURIComponent(o)}`),t},e.copyToClipboard=function(e){s.openCopyToClipboardModal(e)},e.fromFile=function(){o.open({templateUrl:"js/angular/templates/modal/upload-repository-config.html",controller:"UploadRepositoryConfigCtrl"}).result.then((function(){a.init()}))},e.openActiveLocationSettings=function(){o.open({templateUrl:"js/angular/settings/modal/location-settings.html",controller:"ActiveLocationSettingsCtrl"})},y();const R=u((function(){m.isActive()&&!t.guidePaused||(a.initQuick(),y())}),5e3);e.$on("$destroy",(function(){u.cancel(R),v&&v.resolve()})),e.getRepositoriesFromLocation=function(e){return a.getRepositoriesFromLocation(e)}}function m(e,t,o,i,n){e.upload=function(t){t&&t.length&&(e.uploadFile=t[0])},e.ok=function(){e.uploadFile&&(e.uploadFileLoader=!0,o.upload({url:"rest/repositories",method:"POST",data:{config:e.uploadFile}}).success((function(){e.uploadFileLoader=!1,t.close()})).error((function(t){const o=getError(t);i.error(o,n.instant("common.error")),e.uploadFileLoader=!1})))},e.cancel=function(){t.dismiss("cancel")}}function v(e,t,o,i,n){e.newLocation={uri:"",authType:"none",username:"",password:"",active:!1},e.docBase=u(i),e.isValidLocation=function(){return(e.newLocation.uri.length<6||0===e.newLocation.uri.indexOf("http:")||0===e.newLocation.uri.indexOf("https:"))&&e.newLocation.uri.indexOf("/repositories")<=-1},e.ok=function(){e.newLocation?t.close(e.newLocation):o.error(n.instant("location.cannot.be.empty.error"))},e.cancel=function(){t.dismiss("cancel")}}function y(e,t,o,i){e.editedLocation=_.cloneDeep(o),e.docBase=u(i),e.ok=function(){t.close(e.editedLocation)},e.cancel=function(){t.dismiss("cancel")}}function R(e,t){e.repositoryTypes=i.REPOSITORY_TYPES,e.chooseRepositoryType=function(e){t.path(`${t.path()}/${e}`)}}function T(e,t,o,n,r,c,u,f,m,v){function y(e){switch(e){case i.REPOSITORY_TYPES.graphdbRepo:t.pageTitle=v.instant("view.create.repo.title",{repoType:"GraphDB"});break;case i.REPOSITORY_TYPES.ontop:t.pageTitle=v.instant("view.create.repo.title",{repoType:"Ontop Virtual SPARQL"});break;case i.REPOSITORY_TYPES.fedx:t.pageTitle=v.instant("view.create.repo.title",{repoType:"FedX Virtual SPARQL"})}}var R;t.rulesets=i.STATIC_RULESETS.slice(),t.repositoryTypes=i.REPOSITORY_TYPES,t.params=f,t.repositoryType=f.repositoryType,t.enable=!0,t.loader=!0,t.pageTitle=v.instant("view.create.repo.title"),t.repositoryInfo={id:"",params:{},title:"",type:"",location:""},t.invalidValues={isInvalidQueryTimeout:!1,isInvalidQueryLimit:!1,isInvalidLeftJoinWorkerThreads:!1,isInvalidBoundJoinBlockSize:!1,isInvalidJoinWorkerThreads:!1,isInvalidUnionWorkerThreads:!1,isInvalidValidationResultsLimitPerConstraint:!1,isInvalidValidationResultsLimitTotal:!1},p(n).then(e=>{t.locations=e}),t.changedLocation=function(){t.$broadcast("changedLocation")},t.getConfig=function(e){m.getRepositoryConfiguration(e).then((function(e){const o=e.data;var i;t.repositoryInfo.params=o.params,t.repositoryInfo.type=o.type,a(t.repositoryInfo.params),(i=t.repositoryInfo.params)&&i.member&&(i.member.value=[]),t.loader=!1,c((function(){angular.element(document).find("#id").focus()}),50)})).catch((function(e){const i=getError(e);o.error(i,v.instant("common.error")),t.loader=!1}))},t.repositoryType&&(function(e){return t.isEnterprise()&&e===i.REPOSITORY_TYPES.graphdbRepo}(R=t.repositoryType)||function(e){return!t.isFreeEdition()&&!t.isEnterprise()&&e===i.REPOSITORY_TYPES.graphdbRepo}(R)||function(e){return t.isFreeEdition()&&e===i.REPOSITORY_TYPES.graphdbRepo}(R)||function(e){return e===i.REPOSITORY_TYPES.ontop}(R)||function(e){return e===i.REPOSITORY_TYPES.fedx}(R))?(t.repositoryInfo.type=t.repositoryType,t.getConfig(t.repositoryType),y(t.repositoryType)):r.path("/repository/create"),t.hasActiveLocation=function(){return n.hasActiveLocation()},t.activeLocation=function(){return n.getActiveLocation()};let T=!1;t.uploadRuleset=function(e){e&&e.length&&(t.uploadFile=e[0],t.uploadFileLoader=!0,u.upload({url:"rest/repositories/ruleset/upload",data:{ruleset:t.uploadFile,location:t.repositoryInfo.location}}).progress((function(e){})).success((function(e){if(e.success){const o=t.uploadFile.name,i={id:e.fileLocation,name:"Custom: "+o};t.rulesetPie?t.rulesets[0]=i:t.rulesets.unshift(i),t.rulesetPie=e.fileLocation,t.rulesetPieFile=o,t.repositoryInfo.params.ruleset.value=t.rulesetPie}else o.error(e.errorMessage),T=!0;t.uploadFileLoader=!1})).error((function(e){const i=getError(e);o.error(i,v.instant("common.error")),t.uploadFile="",t.uploadFileLoader=!1})))},t.noMembersError=function(){o.error(v.instant("fedx.create.repo.no.members.warning"))},t.goBackToPreviousLocation=function(){angular.isDefined(f.previous)?(delete r.$$search.previous,r.path("/")):r.path("/repository")},t.createRepoHttp=function(){t.loader=!0,m.createRepository(t.repositoryInfo).then((function(){return o.success(v.instant("created.repo.success.msg",{repoId:t.repositoryInfo.id})),n.init()})).then(()=>t.goBackToPreviousLocation()).catch((function(e){const t=getError(e.data);o.error(t,v.instant("common.error"))})).finally(()=>{t.loader=!1})},t.createRepo=function(){if(!t.repositoryInfo.id)return void o.error(v.instant("empty.repoid.warning"));t.isInvalidRepoName=!i.FILENAME_PATTERN.test(t.repositoryInfo.id),l(t.repositoryInfo.params,t.invalidValues);const e=d(t.invalidValues,v);T?o.error(v.instant("invalid.ruleset.file.error")):t.isInvalidRepoName?o.error(v.instant("wrong.repo.name.error")):"fedx"===t.repositoryType&&0===t.repositoryInfo.params.member.value.length?t.noMembersError():e?o.error(e):t.createRepoHttp()},t.rulesetWarning=function(){const e=t.repositoryInfo.params;return void 0===e||void 0===e.ruleset||void 0===e.disableSameAs?"":0===e.ruleset.value.indexOf("owl")&&"true"===e.disableSameAs.value?v.instant("repoTooltips.rulesetWarnings.needsSameAs"):0===e.ruleset.value.indexOf("rdfs")&&"false"===e.disableSameAs.value?v.instant("repoTooltips.rulesetWarnings.doesntNeedSameAs"):e.ruleset.value===t.rulesetPie?v.instant("repoTooltips.rulesetWarnings.customRuleset"):""},t.validateNumberInput=function(){l(t.repositoryInfo.params,t.invalidValues)},t.getShaclOptionsClass=function(){return s()},t.autofocusId="autofocus";const g=e.$on("$translateChangeSuccess",()=>{y(t.repositoryType)});t.$on("$destroy",()=>{g()})}function g(e,t,o,i,n,r,a){e.dialogTitle=a||r.instant("update.file.content.header"),i&&o.getRepositoryFileContent(i).success((function(t){e.fileContent=t})).error((function(e){const t=getError(e);n.error(t,r.instant("common.error"))})),e.ok=function(){t.close({content:e.fileContent,fileLocation:i})},e.cancel=function(){t.dismiss("cancel")}}function I(e,t,o,c,u,f,m,v,y,R){t.rulesets=i.STATIC_RULESETS.slice(),t.repositoryTypes=i.REPOSITORY_TYPES,t.editRepoPage=!0,t.canEditRepoId=!1,t.isRepoInCluster=!0,t.params=o,t.loader=!0,t.repositoryInfo={},t.repositoryInfo.id=t.params.repositoryId,t.repositoryInfo.location=t.params.location,t.repositoryInfo.restartRequested=!1,t.repositoryType="",t.saveRepoId=t.params.repositoryId,t.pageTitle=y.instant("view.edit.repo.title",{repositoryId:t.params.repositoryId}),t.invalidValues={isInvalidQueryTimeout:!1,isInvalidQueryLimit:!1,isInvalidLeftJoinWorkerThreads:!1,isInvalidBoundJoinBlockSize:!1,isInvalidJoinWorkerThreads:!1,isInvalidUnionWorkerThreads:!1,isInvalidValidationResultsLimitPerConstraint:!1,isInvalidValidationResultsLimitTotal:!1},t.hasActiveLocation=function(){return u.hasActiveLocation()};t.$watch(t.hasActiveLocation,(function(){if(t.hasActiveLocation){let e;p(u).then(e=>(t.locations=e,v.getRepository(t.repositoryInfo))).then(o=>(e=o,R.monitorActiveOperations(t.repositoryInfo.id))).then(e=>{t.isRepoInCluster=e.hasClusterOperation()}).catch(o=>e?Promise.resolve():(t.repositoryInfo=void 0,Promise.reject(o))).then(()=>{(e=>{const o=e.data;if(angular.isDefined(o.params.ruleset)){let e=!1;if(angular.forEach(t.rulesets,(function(t){t.id===o.params.ruleset.value&&(e=!0)})),o.params.ruleset&&!e){const e=r(o.params.ruleset.value);t.rulesets.unshift({id:o.params.ruleset.value,name:"Custom: "+e})}}t.repositoryInfo=o,t.setRepositoryType(o.type),a(t.repositoryInfo.params),t.repositoryInfo.saveId=t.saveRepoId,t.loader=!1})(e)}).catch(e=>{const i=e.data,r=e.status,a=o.repositoryId;let s;s=404===r&&"system"!==a?Object(n.decodeHTML)(y.instant("edit.repo.error.not.exists",{repositoryId:a})):404===r&&"system"===a?Object(n.decodeHTML)(y.instant("edit.system.repo.warning")):getError(i),c.error(s,y.instant("common.error"),{allowHtml:!0}),404===r?setTimeout((function(){t.loader=!1,f.path("repository")}),1e3):t.loader=!1})}})),t.setRepositoryType=function(e){t.repositoryType=e},t.noMembersError=function(){c.error(y.instant("fedx.create.repo.no.members.warning"))},t.editRepoHttp=function(){t.loader=!0,v.editRepository(t.repositoryInfo.saveId,t.repositoryInfo).success((function(){c.success(y.instant("edit.repo.success.msg",{saveId:t.repositoryInfo.saveId})),u.init().finally(()=>t.goBackToPreviousLocation()),t.repositoryInfo.saveId===t.repositoryInfo.id&&t.repositoryInfo.restartRequested&&u.restartRepository(t.repositoryInfo)})).error((function(e){const o=getError(e);c.error(o,y.instant("common.error")),t.loader=!1}))},t.editRepository=function(){t.isInvalidRepoName=!i.FILENAME_PATTERN.test(t.repositoryInfo.id),l(t.repositoryInfo.params,t.invalidValues);const e=d(t.invalidValues,y);let o=Object(n.decodeHTML)(y.instant("edit.repo.save.changes.msg",{repoId:t.repositoryInfo.id}));t.repositoryInfo.saveId!==t.repositoryInfo.id?o+=Object(n.decodeHTML)(y.instant("edit.repo.rename.changes.msg")):t.repositoryInfo.restartRequested?o+=Object(n.decodeHTML)(y.instant("edit.repo.restart.requested.msg")):o+=Object(n.decodeHTML)(y.instant("edit.repo.restart.needed.msg")),t.isInvalidRepoName?c.error(y.instant("wrong.repo.name.error")):"fedx"===t.repositoryType&&0===t.repositoryInfo.params.member.value.length?t.noMembersError():e?c.error(e):m.openSimpleModal({title:y.instant("common.confirm.save"),message:o,warning:!0}).result.then((function(){t.editRepoHttp()}))},t.editRepositoryId=function(){if(t.isRepoInCluster)return;let e=Object(n.decodeHTML)(y.instant("edit.repo.id.warning.msg"));t.isEnterprise()&&(e+=Object(n.decodeHTML)(y.instant("edit.repo.id.cluster.warning.msg"))),m.openSimpleModal({title:y.instant("confirm.enable.edit"),message:e,warning:!0}).result.then((function(){t.canEditRepoId=!0}))},t.goBackToPreviousLocation=function(){angular.isDefined(o.previous)?(delete f.$$search.previous,f.path("/")):f.path("/repository")},t.validateNumberInput=function(){l(t.repositoryInfo.params,t.invalidValues)},t.getShaclOptionsClass=function(){return s()};const T=e.$on("$translateChangeSuccess",()=>{t.pageTitle=y.instant("view.edit.repo.title",{repositoryId:t.params.repositoryId})});t.$on("$destroy",()=>{T()})}angular.module("graphdb.framework.repositories.controllers",["ngCookies","ui.bootstrap","graphdb.framework.core.services.repositories","graphdb.framework.utils.localstorageadapter","toastr","ngFileUpload"]).controller("LocationsAndRepositoriesCtrl",f).controller("AddLocationCtrl",v).controller("EditLocationCtrl",y).controller("ChooseRepositoryCtrl",R).controller("AddRepositoryCtrl",T).controller("EditRepositoryCtrl",I).controller("EditRepositoryFileCtrl",g).controller("UploadRepositoryConfigCtrl",m),f.$inject=["$scope","$rootScope","$uibModal","toastr","$repositories","ModalService","AuthTokenService","LocationsRestService","LocalStorageAdapter","$interval","$translate","$q","GuidesService"],m.$inject=["$scope","$uibModalInstance","Upload","toastr","$translate"],v.$inject=["$scope","$uibModalInstance","toastr","productInfo","$translate"],y.$inject=["$scope","$uibModalInstance","location","productInfo"],R.$inject=["$scope","$location"],T.$inject=["$rootScope","$scope","toastr","$repositories","$location","$timeout","Upload","$routeParams","RepositoriesRestService","$translate"],g.$inject=["$scope","$uibModalInstance","RepositoriesRestService","file","toastr","$translate","dialogTitle"],I.$inject=["$rootScope","$scope","$routeParams","toastr","$repositories","$location","ModalService","RepositoriesRestService","$translate","MonitoringRestService"]},93:function(e,t,o){"use strict";o.r(t),o.d(t,"STATIC_RULESETS",(function(){return i})),o.d(t,"REPOSITORY_TYPES",(function(){return n})),o.d(t,"FILENAME_PATTERN",(function(){return r})),o.d(t,"NUMBER_PATTERN",(function(){return a}));const i=[{id:"empty",name:"No inference"},{id:"rdfs-optimized",name:"RDFS (Optimized)"},{id:"rdfs",name:"RDFS"},{id:"rdfsplus-optimized",name:"RDFS-Plus (Optimized)"},{id:"owl-horst-optimized",name:"OWL-Horst (Optimized)"},{id:"owl-horst",name:"OWL-Horst"},{id:"owl2-ql-optimized",name:"OWL2-QL (Optimized)"},{id:"owl2-ql",name:"OWL2-QL"},{id:"owl-max-optimized",name:"OWL-Max (Optimized)"},{id:"owl-max",name:"OWL-Max"},{id:"owl2-rl-optimized",name:"OWL2-RL (Optimized)"},{id:"owl2-rl",name:"OWL2-RL"}],n={graphdbRepo:"graphdb",free:"free",eeWorker:"worker",eeMaster:"master",ontop:"ontop",se:"se",fedx:"fedx"},r=new RegExp("^[a-zA-Z0-9-_]+$"),a=new RegExp("^[0-9]+$")}}]);
1
+ (window.webpackJsonp=window.webpackJsonp||[]).push([[6,207],{109:function(e,t,o){"use strict";o.r(t),o.d(t,"getFileName",(function(){return r}));var i=o(94),n=o(0);const r=function(e){let t=e.lastIndexOf("/");-1===t&&(t=e.lastIndexOf("\\"));let o=e;return-1!==t&&(o=o.substring(t+1)),o},a=function(e){e&&(e.queryTimeout&&(e.queryTimeout.value=parseInt(e.queryTimeout.value)),e.queryLimitResults&&e.validationResultsLimitTotal&&e.validationResultsLimitPerConstraint?(e.queryLimitResults.value=parseInt(e.queryLimitResults.value),e.validationResultsLimitTotal.value=parseInt(e.validationResultsLimitTotal.value),e.validationResultsLimitPerConstraint.value=parseInt(e.validationResultsLimitPerConstraint.value)):e.leftJoinWorkerThreads&&e.boundJoinBlockSize&&e.joinWorkerThreads&&e.unionWorkerThreads&&(e.leftJoinWorkerThreads.value=parseInt(e.leftJoinWorkerThreads.value),e.boundJoinBlockSize.value=parseInt(e.boundJoinBlockSize.value),e.joinWorkerThreads.value=parseInt(e.joinWorkerThreads.value),e.unionWorkerThreads.value=parseInt(e.unionWorkerThreads.value)))},s=function(){const e=document.getElementById("shaclOptions");if(e){const t=e.getAttribute("aria-expanded");if(t&&"true"===t)return"fa fa-angle-down"}return"fa fa-angle-right"},l=function(e,t){e.queryTimeout&&(t.isInvalidQueryTimeout=!i.NUMBER_PATTERN.test(e.queryTimeout.value)),e.validationResultsLimitTotal&&e.validationResultsLimitPerConstraint&&e.queryLimitResults?(t.isInvalidValidationResultsLimitTotal=!i.NUMBER_PATTERN.test(e.validationResultsLimitTotal.value),t.isInvalidValidationResultsLimitPerConstraint=!i.NUMBER_PATTERN.test(e.validationResultsLimitPerConstraint.value),t.isInvalidQueryLimit=!i.NUMBER_PATTERN.test(e.queryLimitResults.value)):e.leftJoinWorkerThreads&&e.boundJoinBlockSize&&e.joinWorkerThreads&&e.unionWorkerThreads&&(t.isInvalidLeftJoinWorkerThreads=!i.NUMBER_PATTERN.test(e.leftJoinWorkerThreads.value),t.isInvalidBoundJoinBlockSize=!i.NUMBER_PATTERN.test(e.boundJoinBlockSize.value),t.isInvalidJoinWorkerThreads=!i.NUMBER_PATTERN.test(e.joinWorkerThreads.value),t.isInvalidUnionWorkerThreads=!i.NUMBER_PATTERN.test(e.unionWorkerThreads.value))},c=function(e,t){return"isInvalidQueryLimit"===e?t.instant("invalid.query.limit"):"isInvalidQueryTimeout"===e?t.instant("invalid.query.timeout"):"isInvalidValidationResultsLimitTotal"===e?t.instant("invalid.validation.results.limit.total"):"isInvalidValidationResultsLimitPerConstraint"===e?t.instant("invalid.validation.results.limit.per.constraint"):"isInvalidJoinWorkerThreads"===e?t.instant("invalid.join.worker.threads"):"isInvalidLeftJoinWorkerThreads"===e?t.instant("invalid.left.join.worker.threads"):"isInvalidUnionWorkerThreads"===e?t.instant("invalid.union.worker.threads"):"isInvalidBoundJoinBlockSize"===e?t.instant("invalid.bound.join.block.size"):void 0},d=function(e,t){const o=Object.keys(e),i=Object.values(e);for(let e=0;e<o.length;e++)if(i[e])return c(o[e],t);return""},u=function(e){return"https://graphdb.ontotext.com/documentation/"+e.productShortVersion},p=function(e){return e.getLocations().then(e=>e.filter(e=>!e.errorMsg&&!e.degradedReason))};function f(e,t,o,r,a,s,l,c,d,u,p,f,m){e.loader=!0,e.isLocationInactive=function(t){return!t.active||!e.hasActiveLocation()};const v=f.defer();function y(){return a.getLocations(v).then(t=>(e.locations=t,t)).finally(()=>e.loader=!1)}e.hasActiveLocation=function(){return a.hasActiveLocation()},e.getActiveLocation=function(){return a.getActiveLocation()},e.getLocationError=function(){return a.getLocationError()},e.getDegradedReason=function(){return a.getDegradedReason()},e.getRepositories=function(){return a.getRepositories()},e.isRepoActive=function(e){return a.isRepoActive(e)},e.deleteLocation=function(t){s.openSimpleModal({title:p.instant("location.confirm.detach"),message:p.instant("location.confirm.detach.warning",{uri:t}),warning:!0}).result.then((function(){e.loader=!0,a.deleteLocation(t).finally(()=>y())}))},e.addLocationHttp=function(t){e.loader=!0,c.addLocation(t).success((function(){a.init()})).error((function(e){const t=getError(e);r.error(t,p.instant("common.error"))})).finally(()=>y())},e.addLocation=function(){o.open({templateUrl:"js/angular/templates/modal/add-location.html",windowClass:"addLocationDialog",controller:"AddLocationCtrl"}).result.then((function(t){e.addLocationHttp(t)}))},e.editLocationHttp=function(t){e.loader=!0,c.editLocation(t).success((function(){a.init()})).error((function(e){const t=getError(e);r.error(t,p.instant("common.error"))})).finally(()=>y())},e.editLocation=function(t){o.open({templateUrl:"js/angular/templates/modal/edit-location.html",controller:"EditLocationCtrl",resolve:{location:function(){return t}}}).result.then((function(t){e.editLocationHttp(t)}),(function(){}))},e.setRepository=function(e){a.setRepository(e)},e.deleteRepository=function(t){s.openSimpleModal({title:p.instant("common.confirm.delete"),message:Object(n.decodeHTML)(p.instant("delete.repo.warning.msg",{repositoryId:t.id})),warning:!0}).result.then((function(){e.loader=!0,a.deleteRepository(t).finally(()=>{y(),e.loader=!1}),function(e){const t="dependencies-selectedGraph-"+e.id,o="classHierarchy-selectedGraph-"+e.id;angular.forEach(d.keys(),(function(e){(e.startsWith(o)||e.startsWith(t))&&d.remove(e)}))}(t)}))},e.restartRepository=function(t){s.openSimpleModal({title:p.instant("confirm.restart.repo"),message:Object(n.decodeHTML)(p.instant("confirm.restart.repo.warning.msg",{repositoryId:t.id})),warning:!0}).result.then((function(){e.loader=!0,a.restartRepository(t).finally(()=>y())}))},e.toggleDefaultRepository=function(t){e.getDefaultRepository()===t?a.setDefaultRepository(null):a.setDefaultRepository(t)},e.getDefaultRepository=function(){return a.getDefaultRepository()},e.getRepositoryDownloadLink=function(e){let t=`rest/repositories/${e.id}${e.type===i.REPOSITORY_TYPES.ontop?"/download-zip":"/download-ttl"}?location=${e.location}`;const o=l.getAuthToken();return o&&(t=`${t}&authToken=${encodeURIComponent(o)}`),t},e.copyToClipboard=function(e){s.openCopyToClipboardModal(e)},e.fromFile=function(){o.open({templateUrl:"js/angular/templates/modal/upload-repository-config.html",controller:"UploadRepositoryConfigCtrl"}).result.then((function(){a.init()}))},e.openActiveLocationSettings=function(){o.open({templateUrl:"js/angular/settings/modal/location-settings.html",controller:"ActiveLocationSettingsCtrl"})},y();const R=u((function(){m.isActive()&&!t.guidePaused||(a.initQuick(),y())}),5e3);e.$on("$destroy",(function(){u.cancel(R),v&&v.resolve()})),e.getRepositoriesFromLocation=function(e){return a.getRepositoriesFromLocation(e)}}function m(e,t,o,i,n){e.upload=function(t){t&&t.length&&(e.uploadFile=t[0])},e.ok=function(){e.uploadFile&&(e.uploadFileLoader=!0,o.upload({url:"rest/repositories",method:"POST",data:{config:e.uploadFile}}).success((function(){e.uploadFileLoader=!1,t.close()})).error((function(t){const o=getError(t);i.error(o,n.instant("common.error")),e.uploadFileLoader=!1})))},e.cancel=function(){t.dismiss("cancel")}}function v(e,t,o,i,n){e.newLocation={uri:"",authType:"none",username:"",password:"",active:!1},e.docBase=u(i),e.isValidLocation=function(){return(e.newLocation.uri.length<6||0===e.newLocation.uri.indexOf("http:")||0===e.newLocation.uri.indexOf("https:"))&&e.newLocation.uri.indexOf("/repositories")<=-1},e.ok=function(){e.newLocation?t.close(e.newLocation):o.error(n.instant("location.cannot.be.empty.error"))},e.cancel=function(){t.dismiss("cancel")}}function y(e,t,o,i){e.editedLocation=_.cloneDeep(o),e.docBase=u(i),e.ok=function(){t.close(e.editedLocation)},e.cancel=function(){t.dismiss("cancel")}}function R(e,t){e.repositoryTypes=i.REPOSITORY_TYPES,e.chooseRepositoryType=function(e){t.path(`${t.path()}/${e}`)}}function T(e,t,o,n,r,c,u,f,m,v){function y(e){switch(e){case i.REPOSITORY_TYPES.graphdbRepo:t.pageTitle=v.instant("view.create.repo.title",{repoType:"GraphDB"});break;case i.REPOSITORY_TYPES.ontop:t.pageTitle=v.instant("view.create.repo.title",{repoType:"Ontop Virtual SPARQL"});break;case i.REPOSITORY_TYPES.fedx:t.pageTitle=v.instant("view.create.repo.title",{repoType:"FedX Virtual SPARQL"})}}var R;t.rulesets=i.STATIC_RULESETS.slice(),t.repositoryTypes=i.REPOSITORY_TYPES,t.params=f,t.repositoryType=f.repositoryType,t.enable=!0,t.loader=!0,t.pageTitle=v.instant("view.create.repo.title"),t.repositoryInfo={id:"",params:{},title:"",type:"",location:""},t.invalidValues={isInvalidQueryTimeout:!1,isInvalidQueryLimit:!1,isInvalidLeftJoinWorkerThreads:!1,isInvalidBoundJoinBlockSize:!1,isInvalidJoinWorkerThreads:!1,isInvalidUnionWorkerThreads:!1,isInvalidValidationResultsLimitPerConstraint:!1,isInvalidValidationResultsLimitTotal:!1},p(n).then(e=>{t.locations=e}),t.changedLocation=function(){t.$broadcast("changedLocation")},t.getConfig=function(e){m.getRepositoryConfiguration(e).then((function(e){const o=e.data;var i;t.repositoryInfo.params=o.params,t.repositoryInfo.type=o.type,a(t.repositoryInfo.params),(i=t.repositoryInfo.params)&&i.member&&(i.member.value=[]),t.loader=!1,c((function(){angular.element(document).find("#id").focus()}),50)})).catch((function(e){const i=getError(e);o.error(i,v.instant("common.error")),t.loader=!1}))},t.repositoryType&&(function(e){return t.isEnterprise()&&e===i.REPOSITORY_TYPES.graphdbRepo}(R=t.repositoryType)||function(e){return!t.isFreeEdition()&&!t.isEnterprise()&&e===i.REPOSITORY_TYPES.graphdbRepo}(R)||function(e){return t.isFreeEdition()&&e===i.REPOSITORY_TYPES.graphdbRepo}(R)||function(e){return e===i.REPOSITORY_TYPES.ontop}(R)||function(e){return e===i.REPOSITORY_TYPES.fedx}(R))?(t.repositoryInfo.type=t.repositoryType,t.getConfig(t.repositoryType),y(t.repositoryType)):r.path("/repository/create"),t.hasActiveLocation=function(){return n.hasActiveLocation()},t.activeLocation=function(){return n.getActiveLocation()};let T=!1;t.uploadRuleset=function(e){e&&e.length&&(t.uploadFile=e[0],t.uploadFileLoader=!0,u.upload({url:"rest/repositories/ruleset/upload",data:{ruleset:t.uploadFile,location:t.repositoryInfo.location}}).progress((function(e){})).success((function(e){if(e.success){const o=t.uploadFile.name,i={id:e.fileLocation,name:"Custom: "+o};t.rulesetPie?t.rulesets[0]=i:t.rulesets.unshift(i),t.rulesetPie=e.fileLocation,t.rulesetPieFile=o,t.repositoryInfo.params.ruleset.value=t.rulesetPie}else o.error(e.errorMessage),T=!0;t.uploadFileLoader=!1})).error((function(e){const i=getError(e);o.error(i,v.instant("common.error")),t.uploadFile="",t.uploadFileLoader=!1})))},t.noMembersError=function(){o.error(v.instant("fedx.create.repo.no.members.warning"))},t.goBackToPreviousLocation=function(){angular.isDefined(f.previous)?(delete r.$$search.previous,r.path("/")):r.path("/repository")},t.createRepoHttp=function(){t.loader=!0,m.createRepository(t.repositoryInfo).then((function(){return o.success(v.instant("created.repo.success.msg",{repoId:t.repositoryInfo.id})),n.init()})).then(()=>t.goBackToPreviousLocation()).catch((function(e){const t=getError(e.data);o.error(t,v.instant("common.error"))})).finally(()=>{t.loader=!1})},t.createRepo=function(){if(!t.repositoryInfo.id)return void o.error(v.instant("empty.repoid.warning"));t.isInvalidRepoName=!i.FILENAME_PATTERN.test(t.repositoryInfo.id),l(t.repositoryInfo.params,t.invalidValues);const e=d(t.invalidValues,v);T?o.error(v.instant("invalid.ruleset.file.error")):t.isInvalidRepoName?o.error(v.instant("wrong.repo.name.error")):"fedx"===t.repositoryType&&0===t.repositoryInfo.params.member.value.length?t.noMembersError():e?o.error(e):t.createRepoHttp()},t.rulesetWarning=function(){const e=t.repositoryInfo.params;return void 0===e||void 0===e.ruleset||void 0===e.disableSameAs?"":0===e.ruleset.value.indexOf("owl")&&"true"===e.disableSameAs.value?v.instant("repoTooltips.rulesetWarnings.needsSameAs"):0===e.ruleset.value.indexOf("rdfs")&&"false"===e.disableSameAs.value?v.instant("repoTooltips.rulesetWarnings.doesntNeedSameAs"):e.ruleset.value===t.rulesetPie?v.instant("repoTooltips.rulesetWarnings.customRuleset"):""},t.validateNumberInput=function(){l(t.repositoryInfo.params,t.invalidValues)},t.getShaclOptionsClass=function(){return s()},t.autofocusId="autofocus";const g=e.$on("$translateChangeSuccess",()=>{y(t.repositoryType)});t.$on("$destroy",()=>{g()})}function g(e,t,o,i,n,r,a){e.dialogTitle=a||r.instant("update.file.content.header"),i&&o.getRepositoryFileContent(i).success((function(t){e.fileContent=t})).error((function(e){const t=getError(e);n.error(t,r.instant("common.error"))})),e.ok=function(){t.close({content:e.fileContent,fileLocation:i})},e.cancel=function(){t.dismiss("cancel")}}function I(e,t,o,c,u,f,m,v,y,R){t.rulesets=i.STATIC_RULESETS.slice(),t.repositoryTypes=i.REPOSITORY_TYPES,t.editRepoPage=!0,t.canEditRepoId=!1,t.isRepoInCluster=!0,t.params=o,t.loader=!0,t.repositoryInfo={},t.repositoryInfo.id=t.params.repositoryId,t.repositoryInfo.location=t.params.location,t.repositoryInfo.restartRequested=!1,t.repositoryType="",t.saveRepoId=t.params.repositoryId,t.pageTitle=y.instant("view.edit.repo.title",{repositoryId:t.params.repositoryId}),t.invalidValues={isInvalidQueryTimeout:!1,isInvalidQueryLimit:!1,isInvalidLeftJoinWorkerThreads:!1,isInvalidBoundJoinBlockSize:!1,isInvalidJoinWorkerThreads:!1,isInvalidUnionWorkerThreads:!1,isInvalidValidationResultsLimitPerConstraint:!1,isInvalidValidationResultsLimitTotal:!1},t.hasActiveLocation=function(){return u.hasActiveLocation()};t.$watch(t.hasActiveLocation,(function(){if(t.hasActiveLocation){let e;p(u).then(e=>(t.locations=e,v.getRepository(t.repositoryInfo))).then(o=>(e=o,R.monitorActiveOperations(t.repositoryInfo.id))).then(e=>{t.isRepoInCluster=e.hasClusterOperation()}).catch(o=>e?Promise.resolve():(t.repositoryInfo=void 0,Promise.reject(o))).then(()=>{(e=>{const o=e.data;if(angular.isDefined(o.params.ruleset)){let e=!1;if(angular.forEach(t.rulesets,(function(t){t.id===o.params.ruleset.value&&(e=!0)})),o.params.ruleset&&!e){const e=r(o.params.ruleset.value);t.rulesets.unshift({id:o.params.ruleset.value,name:"Custom: "+e})}}t.repositoryInfo=o,t.setRepositoryType(o.type),a(t.repositoryInfo.params),t.repositoryInfo.saveId=t.saveRepoId,t.loader=!1})(e)}).catch(e=>{const i=e.data,r=e.status,a=o.repositoryId;let s;s=404===r&&"system"!==a?Object(n.decodeHTML)(y.instant("edit.repo.error.not.exists",{repositoryId:a})):404===r&&"system"===a?Object(n.decodeHTML)(y.instant("edit.system.repo.warning")):getError(i),c.error(s,y.instant("common.error"),{allowHtml:!0}),404===r?setTimeout((function(){t.loader=!1,f.path("repository")}),1e3):t.loader=!1})}})),t.setRepositoryType=function(e){t.repositoryType=e},t.noMembersError=function(){c.error(y.instant("fedx.create.repo.no.members.warning"))},t.editRepoHttp=function(){t.loader=!0,v.editRepository(t.repositoryInfo.saveId,t.repositoryInfo).success((function(){c.success(y.instant("edit.repo.success.msg",{saveId:t.repositoryInfo.saveId})),u.init().finally(()=>t.goBackToPreviousLocation()),t.repositoryInfo.saveId===t.repositoryInfo.id&&t.repositoryInfo.restartRequested&&u.restartRepository(t.repositoryInfo)})).error((function(e){const o=getError(e);c.error(o,y.instant("common.error")),t.loader=!1}))},t.editRepository=function(){t.isInvalidRepoName=!i.FILENAME_PATTERN.test(t.repositoryInfo.id),l(t.repositoryInfo.params,t.invalidValues);const e=d(t.invalidValues,y);let o=Object(n.decodeHTML)(y.instant("edit.repo.save.changes.msg",{repoId:t.repositoryInfo.id}));t.repositoryInfo.saveId!==t.repositoryInfo.id?o+=Object(n.decodeHTML)(y.instant("edit.repo.rename.changes.msg")):t.repositoryInfo.restartRequested?o+=Object(n.decodeHTML)(y.instant("edit.repo.restart.requested.msg")):o+=Object(n.decodeHTML)(y.instant("edit.repo.restart.needed.msg")),t.isInvalidRepoName?c.error(y.instant("wrong.repo.name.error")):"fedx"===t.repositoryType&&0===t.repositoryInfo.params.member.value.length?t.noMembersError():e?c.error(e):m.openSimpleModal({title:y.instant("common.confirm.save"),message:o,warning:!0}).result.then((function(){t.editRepoHttp()}))},t.editRepositoryId=function(){if(t.isRepoInCluster)return;let e=Object(n.decodeHTML)(y.instant("edit.repo.id.warning.msg"));t.isEnterprise()&&(e+=Object(n.decodeHTML)(y.instant("edit.repo.id.cluster.warning.msg"))),m.openSimpleModal({title:y.instant("confirm.enable.edit"),message:e,warning:!0}).result.then((function(){t.canEditRepoId=!0}))},t.goBackToPreviousLocation=function(){angular.isDefined(o.previous)?(delete f.$$search.previous,f.path("/")):f.path("/repository")},t.validateNumberInput=function(){l(t.repositoryInfo.params,t.invalidValues)},t.getShaclOptionsClass=function(){return s()};const T=e.$on("$translateChangeSuccess",()=>{t.pageTitle=y.instant("view.edit.repo.title",{repositoryId:t.params.repositoryId})});t.$on("$destroy",()=>{T()})}angular.module("graphdb.framework.repositories.controllers",["ngCookies","ui.bootstrap","graphdb.framework.core.services.repositories","graphdb.framework.utils.localstorageadapter","toastr","ngFileUpload"]).controller("LocationsAndRepositoriesCtrl",f).controller("AddLocationCtrl",v).controller("EditLocationCtrl",y).controller("ChooseRepositoryCtrl",R).controller("AddRepositoryCtrl",T).controller("EditRepositoryCtrl",I).controller("EditRepositoryFileCtrl",g).controller("UploadRepositoryConfigCtrl",m),f.$inject=["$scope","$rootScope","$uibModal","toastr","$repositories","ModalService","AuthTokenService","LocationsRestService","LocalStorageAdapter","$interval","$translate","$q","GuidesService"],m.$inject=["$scope","$uibModalInstance","Upload","toastr","$translate"],v.$inject=["$scope","$uibModalInstance","toastr","productInfo","$translate"],y.$inject=["$scope","$uibModalInstance","location","productInfo"],R.$inject=["$scope","$location"],T.$inject=["$rootScope","$scope","toastr","$repositories","$location","$timeout","Upload","$routeParams","RepositoriesRestService","$translate"],g.$inject=["$scope","$uibModalInstance","RepositoriesRestService","file","toastr","$translate","dialogTitle"],I.$inject=["$rootScope","$scope","$routeParams","toastr","$repositories","$location","ModalService","RepositoriesRestService","$translate","MonitoringRestService"]},94:function(e,t,o){"use strict";o.r(t),o.d(t,"STATIC_RULESETS",(function(){return i})),o.d(t,"REPOSITORY_TYPES",(function(){return n})),o.d(t,"FILENAME_PATTERN",(function(){return r})),o.d(t,"NUMBER_PATTERN",(function(){return a}));const i=[{id:"empty",name:"No inference"},{id:"rdfs-optimized",name:"RDFS (Optimized)"},{id:"rdfs",name:"RDFS"},{id:"rdfsplus-optimized",name:"RDFS-Plus (Optimized)"},{id:"owl-horst-optimized",name:"OWL-Horst (Optimized)"},{id:"owl-horst",name:"OWL-Horst"},{id:"owl2-ql-optimized",name:"OWL2-QL (Optimized)"},{id:"owl2-ql",name:"OWL2-QL"},{id:"owl-max-optimized",name:"OWL-Max (Optimized)"},{id:"owl-max",name:"OWL-Max"},{id:"owl2-rl-optimized",name:"OWL2-RL (Optimized)"},{id:"owl2-rl",name:"OWL2-RL"}],n={graphdbRepo:"graphdb",free:"free",eeWorker:"worker",eeMaster:"master",ontop:"ontop",se:"se",fedx:"fedx"},r=new RegExp("^[a-zA-Z0-9-_]+$"),a=new RegExp("^[0-9]+$")}}]);
@@ -0,0 +1 @@
1
+ (window.webpackJsonp=window.webpackJsonp||[]).push([[60,191],{100:function(t,e,a){"use strict";a.r(e),a.d(e,"YasguiPersistenceMigrationService",(function(){return o}));var n=a(72);const i="yagui__"+n.VIEW_SPARQL_EDITOR,s="completed",r="rejected",o=function(){const t=()=>({val:{active:null,tabs:[],tabConfig:{}}}),e=(t,e,a=null)=>{t.val.migration={date:(new Date).toISOString(),status:e,error:a}},a=(t,e)=>{t.val.tabs.push(e)},n=(t,e)=>{t.val.tabConfig[e.id]=e},o=t=>{let e=localStorage.getItem(t);if(e)return e=JSON.parse(e),e},l=t=>{t.val.tabs=t.val.tabs.filter(t=>!t.startsWith("_"))},g=t=>{for(const e in t.val.tabConfig)e.startsWith("_")&&delete t.val.tabConfig[e]},c=(t,e)=>{localStorage.setItem(t,JSON.stringify(e))},u=(t,e)=>`${e} ${t}`,d=()=>Math.random().toString(36).substring(7);return{isMigrationNeeded:()=>{const t=o(i);let e=!1;return t&&(e=t.val.migration&&(t.val.migration.status===s||t.val.migration.status===r)),!(!localStorage.getItem("ls.tabs-state")||e)},revertMigration:()=>{const t=o(i);l(t),g(t),c(i,t)},migrateYasguiPersistence:r=>{let l=o("ls.tabs-state");l=Object.freeze(l);let g=o(i);g||(g=t()),l.map(t=>({id:t.id,name:t.name,yasqe:{value:t.query,sameAs:t.sameAs,infer:t.inference,pageSize:1e3,pageNumber:1},yasr:{response:null,settings:{selectedPlugin:"extended_table",pluginsConfig:{}}},requestConfig:{method:"POST"}})).forEach((t,e)=>{t.id="_"+d(),t.name=t.name||u(e,r),a(g,t.id),n(g,t)}),g.val.active=g.val.tabs[0],e(g,s),c(i,g)},rejectMigration:()=>{const t=o(i);e(t,r),c(i,t)}}}()},72:function(t,e,a){"use strict";a.r(e),a.d(e,"VIEW_SPARQL_EDITOR",(function(){return n}));const n="graphdb-workbench-sparql-editor"}}]);
@@ -0,0 +1 @@
1
+ (window.webpackJsonp=window.webpackJsonp||[]).push([[61,232],{101:function(e,t){angular.module("graphdb.workbench.utils.filetypes",[]).value("FileTypes",[{name:"JSON",type:"application/rdf+json",extension:".json"},{name:"JSON-LD",type:"application/ld+json",extension:".jsonld"},{name:"RDF-XML",type:"application/rdf+xml",extension:".rdf"},{name:"N3",type:"text/rdf+n3",extension:".n3"},{name:"N-Triples",type:"text/plain",extension:".nt"},{name:"N-Quads",type:"text/x-nquads",extension:".nq"},{name:"Turtle",type:"text/turtle",extension:".ttl"},{name:"Turtle*",type:"application/x-turtlestar",extension:".ttls"},{name:"TriX",type:"application/trix",extension:".trix"},{name:"TriG",type:"application/x-trig",extension:".trig"},{name:"TriG*",type:"application/x-trigstar",extension:".trigs"},{name:"Binary RDF",type:"application/x-binary-rdf",extension:".brf"}])},148:function(e,t,n){"use strict";n.r(t);n(7),n(24),n(26),n(101);var o=n(0),r=n(63);angular.module("graphdb.framework.impex.export.controllers",["ngCookies","ui.bootstrap","toastr","graphdb.framework.core.services.repositories","graphdb.framework.core.services.jwtauth","graphdb.workbench.utils.filetypes"]).controller("ExportCtrl",["$scope","$http","$location","$timeout","ModalService","filterFilter","$repositories","toastr","RDF4JRepositoriesRestService","FileTypes","$translate","AuthTokenService",function(e,t,n,a,i,s,p,l,c,g,d,u){e.getActiveRepository=function(){return p.getActiveRepository()},e.exportFormats=g,e.deleting={},e.showExportDDTooltip=!0,e.page=1,e.pageSize=10,e.pageSizeOptions=[10,20,50,100],e.displayGraphs=[],e.exportFilter="",e.export=!0,e.exportMultipleGraphs=!1,e.repoExportFormat={name:"TriG",type:"application/x-trig",extension:".trig"},e.selectedGraphs={exportGraphs:{}},e.$watch((function(){return p.getActiveRepository()}),(function(){e.exportFilter="",e.getGraphs(),e.selectedAll=!1,a((function(){e.changePageSize(10)}),100)})),e.isShacl=function(e){return"http%3A%2F%2Frdf4j.org%2Fschema%2Frdf4j%23SHACLShapeGraph"===e},e.getGraphs=function(){e.getActiveRepository()?(e.loader=!0,c.getGraphs(e.getActiveRepository()).success((function(t){t.results.bindings.unshift({contextID:{type:"default",value:"import.default.graph"}}),e.graphsByValue={},Object.keys(t.results.bindings).forEach((function(n){const o=t.results.bindings[n];"bnode"===o.contextID.type?o.contextID.value="_:"+o.contextID.value:"default"===o.contextID.type?(o.contextID.uri=encodeURIComponent("http://www.openrdf.org/schema/sesame#nil"),o.contextID.clearUri="DEFAULT",o.contextID.exportUri="null",o.contextID.longName="default graph"):(o.contextID.uri=encodeURIComponent(o.contextID.value),o.contextID.clearUri="GRAPH <"+o.contextID.value+">",o.contextID.exportUri=encodeURIComponent("<"+o.contextID.value+">"),o.contextID.longName="named graph "+o.contextID.value),e.graphsByValue[o.contextID.value]=o.contextID})),e.graphs=t.results.bindings,e.filteredGraphs=Object(r.cloneDeep)(e.graphs),e.displayGraphs=e.filteredGraphs.slice(e.pageSize*(e.page-1),e.pageSize*e.page),e.loader=!1,e.selectedGraphs.exportGraphs={},e.matchedElements=e.graphs})).error((function(t,n){const o=getError(t,n);"There is no active location!"===o&&(p.setRepository(""),l.error(o,d.instant("common.error"))),e.loader=!1}))):e.loader=!1},e.onGraphSearch=function(){e.matchedElements=[],e.deselectAll(),e.filterResults()},e.filterResults=function(){angular.forEach(e.graphs,(function(t){-1!==t.contextID.value.indexOf(e.exportFilter)&&e.matchedElements.push(t)}))},e.downloadExport=function(e,t){let n=e+"&Accept="+encodeURIComponent(t.type);const o=u.getAuthToken();o&&(n=n+"&authToken="+encodeURIComponent(o));let r=window.open(n);a((function(){"about:blank"!==r.document.location.href&&(r.close(),l.error("Could not export graph. Check GraphDB logs for detailed reason."))}),100)},e.openExportDDTooltip=function(){e.showExportDDTooltip&&(a((function(){$("#tooltipTarget").trigger("showExportDDTooltip")}),0),a((function(){$("#tooltipTarget").trigger("showExportDDTooltip")}),3e3),e.showExportDDTooltip=!1)},e.exportRepo=function(t,n){"application/rdf+xml"===t.type||"text/plain"===t.type||"text/turtle"===t.type||"application/x-turtlestar"===t.type||"text/rdf+n3"===t.type?i.openSimpleModal({title:d.instant("common.warning"),message:Object(o.decodeHTML)(d.instant("export.format.warning.msg")),warning:!0}).result.then((function(){e.startDownload(t,n)})):e.startDownload(t,n)},e.startDownload=function(t,n){let o;const r=p.getActiveRepositoryObject();o=n?`repositories/${r.id}/statements?infer=false&context=${e.graphsByValue[n.value].exportUri}&location=${encodeURIComponent(r.location)}`:`repositories/${r.id}/statements?infer=false&location=${encodeURIComponent(r.location)}`,e.downloadExport(o,t)},e.hasMultipleSelected=function(){if(_.isEmpty(e.selectedGraphs.exportGraphs))return!_.isEmpty(e.selectedGraphs.exportGraphs);for(const t in e.selectedGraphs.exportGraphs)if(!0===e.selectedGraphs.exportGraphs[t])return!0;return!1},e.exportSelectedGraphs=function(t){let n="";for(const t in e.selectedGraphs.exportGraphs)e.selectedGraphs.exportGraphs[t]&&(n+="context="+e.graphsByValue[t].exportUri+"&");if(n){const r=function(){n=n.substring(0,n.length-1);const o="repositories/"+e.getActiveRepository()+"/statements?infer=false&"+n;e.downloadExport(o,t)};"application/rdf+xml"===t.type||"text/plain"===t.type||"text/turtle"===t.type||"application/x-turtlestar"===t.type||"text/rdf+n3"===t.type?i.openSimpleModal({title:d.instant("common.warning"),message:Object(o.decodeHTML)(d.instant("export.format.warning.msg")),warning:!0}).result.then((function(){r()})):r()}else i.openSimpleModal({title:d.instant("export.multiple.graph"),message:d.instant("export.check.graphs.msg"),warning:!0})},e.$watch("exportFilter",(function(){if(e.filteredGraphs=s(e.graphs,e.exportFilter),e.getActiveRepository()&&angular.element(document).find(".btn.btn-secondary.btn-sm.dropdown-toggle span").length){const t=angular.element(document).find(".btn.btn-secondary.btn-sm.dropdown-toggle span")[0].innerHTML.trim();let n;"All"===t&&(n=e.filteredGraphs.length),e.filteredGraphs&&e.filteredGraphs.length>e.pageSize&&"All"!==t&&(n=e.pageSize),e.changePageSize(n),e.changePagination()}})),e.changePagination=function(){e.selectedAll=!1,angular.isDefined(e.filteredGraphs)&&(e.displayGraphs=e.filteredGraphs.slice(e.pageSize*(e.page-1),e.pageSize*e.page))},e.changePageSize=function(t){$(".ot-graph-page-size").removeClass("active"),e.page=1,t&&(e.pageSize=t,e.changePagination()),e.filteredGraphs&&""!==e.exportFilter&&(e.displayGraphs=e.filteredGraphs)},e.checkAll=function(){e.selectedAll=e.selectedAll||!1,angular.forEach(e.displayGraphs,(function(t){t.contextID.uri&&(e.selectedGraphs.exportGraphs[t.contextID.value]=e.selectedAll)}))},e.deselectAll=function(){e.selectedAll=!1,angular.forEach(e.displayGraphs,(function(t){t.contextID.uri&&(e.selectedGraphs.exportGraphs[t.contextID.value]=!1)}))},e.dropRepository=function(){e.canWriteActiveRepo()&&(e.deleting["*"]=!0,i.openSimpleModal({title:d.instant("export.confirm.clear.msg"),message:d.instant("export.warning.clear.repo.msg",{repo:p.getActiveRepository()}),warning:!0}).result.then((function(){a((function(){c.addStatements(p.getActiveRepository(),"update=CLEAR ALL").then((function(){e.deleting["*"]=!1,l.success(d.instant("export.cleared.repo",{repo:p.getActiveRepository()})),e.getGraphs()}),(function(t){e.deleting["*"]=!1;const n=t.data;"string"==typeof n&&n.indexOf("Clearing all statements in the repository is incompatible with collecting history")>-1?l.error(d.instant("export.clearing.statements.warning")):l.error(d.instant("export.cleared.repo.failed.msg",{repo:p.getActiveRepository()}),t)}))}),100)})))},e.dropContext=function(t){e.canWriteActiveRepo()&&(angular.isDefined(t)?function(t){const n=t.contextID.longName;e.deleting[t]=!0,i.openSimpleModal({title:d.instant("export.confirm.clear.graph"),message:d.instant("export.clear.graph.warning",{longName:n}),warning:!0}).result.then((function(){a((function(){const o="update=CLEAR "+t.contextID.clearUri;c.addStatements(p.getActiveRepository(),o).then((function(){e.deleting[t]=!1,l.success(d.instant("export.cleared.graph",{longName:n})),e.getGraphs(),e.exportFilter="",e.filteredGraphs.length=0,e.updateResults(),e.changePageSize(e.pageSize)}),(function(o){e.deleting[t]=!1,l.error(d.instant("export.clear.graph.msg",{longName:n}),getError(o,o.status))}))}),100)}),(function(){e.deleting[t]=!1}))}(t):function(t){const n=[];angular.forEach(e.selectedGraphs.exportGraphs,(function(e,t){e&&n.push(t)})),n.length>0&&(e.deleting[t]=!0,i.openSimpleModal({title:d.instant("export.confirm.clear.graph"),message:d.instant("export.warning.clear.graph.msg"),warning:!0}).result.then((function(){a((function(){let t=0;angular.forEach(n,(function(o){const r="update=CLEAR "+e.graphsByValue[o].clearUri;c.addStatements(p.getActiveRepository(),r).then((function(){e.loader=!0,e.selectedGraphs.exportGraphs[o]=!1,delete e.selectedGraphs.exportGraphs[o],t++,n.length===t&&(e.selectedAll=!1,e.exportFilter="",e.filteredGraphs.length=0,e.getGraphs(),e.updateResults(),e.changePageSize(e.pageSize),l.success(d.instant("export.cleared.graph.msg")),e.loader=!1)}),(function(t){const n=e.graphsByValue[o].longName;l.error(d.instant("export.clear.graph.msg",{longName:n}),getError(t,t.status)),e.selectedAll=!1}))}))}),100)}),(function(){e.deleting[t]=!1})))}(t))}}])}}]);
@@ -1 +1 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([[62,212],{111:function(n,e,t){"use strict";t.r(e);t(31),t(91);function o(n){const e=[];return Object.keys(n).forEach((function(t){e.push(encodeURIComponent(t)+"="+encodeURIComponent(n[t]))})),e.join("&")}function r(n,e){return _.reduce(n,(function(n,t){if(""===t.key&&""===t.value);else{if(""===t.key)throw new Error(e.instant("externalsync.empty.value.key.error",{value:t.value}));if(n.hasOwnProperty(t.key))throw new Error(e.instant("externalsync.duplicate.key.error",{key:t.key}));n[t.key]=t.value}return n}),{})}function i(n,e){for(let o=0;o<e.length;o++){const r=e[o];if("StringArray"===r.__type)n[r.__name]||(n[r.__name]=[""]);else if("OptionArray"===r.__type)if(n[r.__name])for(let e=0;e<r.__childOptions.length;e++){const t=r.__childOptions[e];if("Boolean"===t.__type)for(let e=0;e<n[r.__name].length;e++){const o=n[r.__name][e];!o.hasOwnProperty([t.__name])&&angular.isDefined(t.__defaultValue)&&(o[t.__name]=t.__defaultValue)}}else{n[r.__name]=[];const e={};for(let n=0;n<r.__childOptions.length;n++){const t=r.__childOptions[n];"StringArray"===t.__type?e[t.__name]=[""]:e[t.__name]=angular.isUndefined(t.__defaultValue)?"":t.__defaultValue}n[r.__name].push(e)}else"Map"===r.__type?n[r.__name]?n[r.__name]=(t=n[r.__name],_.map(t,(function(n,e){return{key:e,value:n}}))):n[r.__name]=[]:"JsonString"===r.__type?!n[r.__name]||n[r.__name]instanceof String||"string"==typeof n[r.__name]||(n[r.__name]=angular.toJson(n[r.__name],2)):angular.isUndefined(n[r.__name])&&(n[r.__name]=angular.isUndefined(r.__defaultValue)?"":r.__defaultValue)}var t;return n}function c(n,e,t){return n.post("repositories/"+e,o({query:t}),{headers:{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/sparql-results+json","X-GraphDB-Local-Consistency":"updating"}})}function a(n){return n.substring(0,n.length-1)+"/instance#"}function s(n,e,t,o,i){const c=function n(e,t){const o={};return _.each(t,(function(t){angular.isDefined(e[t.__name])&&("OptionArray"===t.__type?(o[t.__name]=[],_.each(e[t.__name],(function(e){o[t.__name].push(n(e,t.__childOptions))}))):o[t.__name]=_.cloneDeep(e[t.__name]))})),o}(t,o);for(let n=0;n<o.length;n++)try{"Map"===o[n].__type?c[o[n].__name]=r(c[o[n].__name],$translate):"JsonString"===o[n].__type&&(c[o[n].__name]=angular.fromJson(c[o[n].__name]))}catch(e){return i(o[n].__label,e.message),null}!function n(e){Array.isArray(e)&&(e=_.filter(e,(function(n){return null!==n&&(!n.trim||""!==n.trim())})));return Object.keys(e).forEach((function(t){""!==e[t]&&null!=e[t]||!1===e[t]?"object"==typeof e[t]&&(e[t]=n(e[t])):delete e[t]})),e}(c);let s="";s+="PREFIX :<"+e+">\n";return s+="PREFIX inst:<"+a(e)+">\n",s+="INSERT DATA {\n",s+="\tinst:"+n+" :createConnector '''\n",s+=angular.toJson(c,2),s+="\n''' .\n}\n",s=s.replace(/\\/g,"\\\\\\"),s}function l(n,e,t,r,l,u,p,f,d,g){function m(e){n.beingBuiltConnector={percentDone:0,status:{processedEntities:0,estimatedEntities:0,indexedEntities:0,entitiesPerSecond:0},actionName:e?g.instant("externalsync.repairing"):g.instant("externalsync.creating"),waitOnRepairStartOnce:!!e,eta:"-",inline:!1,iri:null}}function y(e,t,o){return m(o),$.extend(n.beingBuiltConnector,{iri:a(e)+t,name:t,inline:!1,doneCallback:function(){n.beingBuiltConnector.modalInstance.dismiss("cancel")}}),n.beingBuiltConnector.modalInstance=r.open({templateUrl:"pages/connectorProgress.html",controller:"CreateProgressCtrl",size:"lg",backdrop:"static",scope:n}),n.beingBuiltConnector.modalInstance}function C(e,r,i){const c=y(e.value,r.name,!1);f.addStatements(t.getActiveRepository(),o({update:r.query})).then((function(){d.getConnectors().then((function(){d.hasConnector(encodeURIComponent(e.value)).then((function(t){n.existing[e.key]=t.data}))})),l.success(g.instant("created.connector",{name:r.name}))}),(function(n){l.error(getError(n)),i()})).finally((function(){c.dismiss("cancel")}))}n.loader=!1,n.controllers=[],n.existing={},n.definitions={},n.getLoaderMessage=function(){const e=(Date.now()-n.loaderStartTime)/1e3,t=n.getHumanReadableSeconds(e);let o="";return o=n.progressMessage?n.progressMessage+"... "+t:g.instant("common.running.operation",{timeHuman:t}),n.extraMessage&&e>10&&(o+="\n"+n.extraMessage),o},n.setLoader=function(e,t,o){e?(n.loader=!0,n.loaderStartTime=Date.now(),n.progressMessage=t,n.extraMessage=o):(n.loader=!1,n.progressMessage="",n.extraMessage="")},n.initConnector=function(e){return d.initConnector(encodeURIComponent(e.value)).then((function(t){return n.definitions[e.key]=t.data,d.hasConnector(encodeURIComponent(e.value)).then((function(t){n.existing[e.key]=t.data}))}))},n.getConnectors=function(){n.isLicenseValid()&&n.canWriteActiveRepo()&&(n.setLoader(!0,g.instant("externalsync.fetching.connectors"),g.instant("common.extra.message")),d.getConnectors().then((function(o){n.connectors=Object.keys(o.data).map((function(n){return{key:n,value:o.data[n]}})),p.all(_.map(n.connectors,(function(e){return n.initConnector(e)}))).finally((function(){m();const o=function(n){const e=_.map(n,(function(n){return"<"+n.value+"connectorStatus>"})).join("|");return e?"SELECT ?connector ?status { ?connector "+e+" ?status }":null}(n.connectors);o?function(n){return c(e,t.getActiveRepository(),n)}(o).then((function(e){const t=function(n){if(n.bindings)for(let e=0;e<n.bindings.length;e++)try{const t=JSON.parse(n.bindings[e].status.value);if("BUILDING"===t.status)return{connector:n.bindings[e].connector.value,status:t}}catch(n){console.error(n)}return{}}(e.data.results);if(t.connector){const e=t.connector.split(/#/);e[0]=e[0].replace(/\/instance$/,"#"),o=e[0],r=e[1],m(),$.extend(n.beingBuiltConnector,{iri:a(o)+r,name:r,inline:!0,doneCallback:function(){n.beingBuiltConnector.inline=!1}})}var o,r})).finally((function(){n.setLoader(!1)})):n.setLoader(!1)}))})).catch((function(e){n.setLoader(!1),l.error(getError(e),g.instant("externalsync.could.not.get.connectors.error"))})),n.existing={})},n.getOptions=function(e){return n.definitions[e.key]},n.isEmpty=function(n){return angular.isObject(n)&&0===Object.keys(n).length},n.toPrettyJson=function(n){return angular.toJson(n,2)},n.$watch((function(){return t.getActiveRepository()}),n.getConnectors),n.$watch((function(){return t.getActiveLocation()}),n.getConnectors),n.copyConnector=function(e,t){let o;angular.isUndefined(t)||(o=_.cloneDeep(t),o.name=o.name+"-copy");r.open({templateUrl:"pages/createConnector.html",controller:"CreateConnectorCtrl",size:"lg",backdrop:"static",resolve:{connector:function(){return e},values:function(){return angular.isUndefined(o)?{name:"",values:{}}:o},options:function(){return n.getOptions(e)}}}).result.then((function(t){C(e,t,(function(){t.skipConversion=!0,n.newConnector(e,t)}))}))},n.newConnector=function(e,t){r.open({templateUrl:"pages/createConnector.html",controller:"CreateConnectorCtrl",size:"lg",backdrop:"static",resolve:{connector:function(){return e},values:function(){return angular.isUndefined(t)?{name:"",values:{}}:t},options:function(){return n.getOptions(e)}}}).result.then((function(t){C(e,t,(function(){t.skipConversion=!0,n.newConnector(e,t)}))}))},n.repair=function(e,r){u.openSimpleModal({title:g.instant("externalsync.confirm.repair"),message:g.instant("externalsync.repair.warning.msg"),warning:!0}).result.then((function(){const i=y(r.value,e.name,!0),c=(s=e.name,"PREFIX prefix:<"+(u=r.value)+">\nINSERT DATA {\n\t<"+a(u)+s+'> prefix:repairConnector ""\n}');var s,u;f.addStatements(t.getActiveRepository(),o({update:c})).then((function(){d.getConnectors().then((function(){d.hasConnector(encodeURIComponent(r.value)).then((function(e){n.existing[r.key]=e.data}))})),l.success(g.instant("externalsync.repair.success.msg",{name:e.name}))}),(function(n){l.error(getError(n))})).finally((function(){i.dismiss("cancel")}))}))},n.delete=function(e,i){const c=i.key.indexOf("Elastic")>=0||i.key.indexOf("Solr")>=0;r.open({templateUrl:"js/angular/externalsync/templates/deleteConnector.html",controller:"DeleteConnectorCtrl",resolve:{popoverMsg:function(){return c?g.instant("delete.connector.conditional",{type:i.key}):""}}}).result.then((function(r){n.setLoader(!0,g.instant("externalsync.delete.progress.msg",{name:e.name}),g.instant("externalsync.extra.message.warning"));const a=function(n,e,t){const o=e.substring(0,e.length-1)+"/instance#";return"PREFIX prefix:<"+e+">\nINSERT DATA {\n\t<"+o+n+'> prefix:dropConnector "'+(t?"force":"")+'"\n}'}(e.name,i.value,r);f.addStatements(t.getActiveRepository(),o({update:a})).then((function(){d.getConnectors().then((function(){d.hasConnector(encodeURIComponent(i.value)).then((function(e){n.existing[i.key]=e.data}))})),r?(l.success(g.instant("externalsync.delete.force.success.msg",{name:e.name})),c&&l.warning(g.instant("externalsync.delete.remote.warning",{key:i.key}))):l.success(g.instant("externalsync.delete.success.msg",{name:e.name}))}),(function(n){l.error(getError(n))})).finally((function(){n.setLoader(!1)}))}))},n.viewQuery=function(e,t){r.open({templateUrl:"pages/viewQuery.html",controller:"ViewQueryCtrl",resolve:{query:function(){const o=n.getOptions(e);return s(t.name,e.value,i(t.values,o),o)}}})}}function u(n,e,t){n.force=!1,n.popoverMsg=t,n.ok=function(){e.close(n.force)},n.cancel=function(){e.dismiss()}}function p(n,e,t,o,r){function i(){return s(n.name,t.value,n.values,n.options,(function(n,e){r.error(e,n)}))}n.connector=t,n.addField=function(e,t){const o=_.cloneDeep(n.defaultValues[t][0]);n.values[t].splice(e+1,0,o)},n.addOption=function(n,e){e.splice(n+1,0,"")},n.deleteOption=function(n,e){e.splice(n,1)},n.addMapOption=function(n,e){e.splice(n+1,0,{key:"",value:""})},n.deleteMapOption=function(n,e){e.splice(n,1)},n.ok=function(){if(n.form.$valid){const t=i();t&&e.close({name:n.name,values:n.values,options:n.options,query:t})}},n.viewQuery=function(){const n=i();n&&o.open({templateUrl:"pages/viewQuery.html",controller:"ViewQueryCtrl",resolve:{query:function(){return n}}})},n.cancel=function(){e.dismiss("cancel")}}function f(n,e,t,o,r,c,a,s){angular.extend(this,e("ExtendNewConnectorCtrl",{$scope:n,$uibModalInstance:o,connector:r,$uibModal:c})),n.values=a.values,n.options=s,n.name=a.name,a.skipConversion||(n.values=i(n.values,n.options)),n.defaultValues=_.cloneDeep(n.values)}function d(n,e,t,o,r){function i(){const i=function(n){const e=n.replace(/\/instance#.+$/,"#connectorStatus");let t="";return t+="SELECT ?status {\n",t+="\t<"+n+"> <"+e+"> ?status",t+="\n}",t}(n.beingBuiltConnector.iri);n.beingBuiltConnector.iri=null,n.progressInterval=e((function(){(function(n){return c(t,o.getActiveRepository(),n)})(i).then((function(t){const o=function(n){if(n.bindings&&n.bindings.length>0)try{return JSON.parse(n.bindings[0].status.value)}catch(n){console.error(n)}return{}}(t.data.results);"BUILDING"===o.status?(n.beingBuiltConnector.status=o,n.beingBuiltConnector.percentDone=(100*o.processedEntities/o.estimatedEntities).toFixed(0),n.beingBuiltConnector.eta=n.getHumanReadableSeconds(o.etaSeconds),n.beingBuiltConnector.actionName=o.repair?r.instant("externalsync.repairing"):r.instant("externalsync.creating"),n.beingBuiltConnector.waitOnRepairStartOnce=!1):"BUILT"!==o.status||n.beingBuiltConnector.waitOnRepairStartOnce||(e.cancel(n.progressInterval),n.beingBuiltConnector.doneCallback&&n.beingBuiltConnector.doneCallback())}))}),1e3),n.$on("$destroy",(function(){e.cancel(n.progressInterval)}))}n.beingBuiltConnector=n.beingBuiltConnector||{},!n.beingBuiltConnector.inline&&n.beingBuiltConnector.iri&&i(),n.$watch("beingBuiltConnector.iri",(function(e){n.beingBuiltConnector.inline&&e&&i()}))}angular.module("graphdb.framework.externalsync.controllers",["graphdb.framework.rest.rdf4j.repositories.service","graphdb.framework.rest.connectors.service"]).controller("ConnectorsCtrl",l).controller("ExtendNewConnectorCtrl",p).controller("CreateConnectorCtrl",f).controller("CreateProgressCtrl",d).controller("DeleteConnectorCtrl",u).filter("ceil",(function(){return function(n){return Math.ceil(n)}})),l.$inject=["$scope","$http","$repositories","$uibModal","toastr","ModalService","$q","RDF4JRepositoriesRestService","ConnectorsRestService","$translate"],u.$inject=["$scope","$uibModalInstance","popoverMsg"],p.$inject=["$scope","$uibModalInstance","connector","$uibModal","toastr"],f.$inject=["$scope","$controller","$http","$uibModalInstance","connector","$uibModal","values","options"],d.$inject=["$scope","$interval","$http","$repositories","$translate"]},91:function(n,e){angular.module("graphdb.framework.rest.connectors.service",[]).factory("ConnectorsRestService",t),t.$inject=["$http"];function t(n){return{getConnectors:function(){return n.get("rest/connectors")},initConnector:function(e){return n.get("rest/connectors/options?prefix="+e)},hasConnector:function(e){return n.get("rest/connectors/existing?prefix="+e)},checkConnector:function(e){return n.post("rest/connectors/check",e,{headers:{"Content-Type":"text/plain"}})}}}}}]);
1
+ (window.webpackJsonp=window.webpackJsonp||[]).push([[62,213],{112:function(n,e,t){"use strict";t.r(e);t(31),t(92);function o(n){const e=[];return Object.keys(n).forEach((function(t){e.push(encodeURIComponent(t)+"="+encodeURIComponent(n[t]))})),e.join("&")}function r(n,e){return _.reduce(n,(function(n,t){if(""===t.key&&""===t.value);else{if(""===t.key)throw new Error(e.instant("externalsync.empty.value.key.error",{value:t.value}));if(n.hasOwnProperty(t.key))throw new Error(e.instant("externalsync.duplicate.key.error",{key:t.key}));n[t.key]=t.value}return n}),{})}function i(n,e){for(let o=0;o<e.length;o++){const r=e[o];if("StringArray"===r.__type)n[r.__name]||(n[r.__name]=[""]);else if("OptionArray"===r.__type)if(n[r.__name])for(let e=0;e<r.__childOptions.length;e++){const t=r.__childOptions[e];if("Boolean"===t.__type)for(let e=0;e<n[r.__name].length;e++){const o=n[r.__name][e];!o.hasOwnProperty([t.__name])&&angular.isDefined(t.__defaultValue)&&(o[t.__name]=t.__defaultValue)}}else{n[r.__name]=[];const e={};for(let n=0;n<r.__childOptions.length;n++){const t=r.__childOptions[n];"StringArray"===t.__type?e[t.__name]=[""]:e[t.__name]=angular.isUndefined(t.__defaultValue)?"":t.__defaultValue}n[r.__name].push(e)}else"Map"===r.__type?n[r.__name]?n[r.__name]=(t=n[r.__name],_.map(t,(function(n,e){return{key:e,value:n}}))):n[r.__name]=[]:"JsonString"===r.__type?!n[r.__name]||n[r.__name]instanceof String||"string"==typeof n[r.__name]||(n[r.__name]=angular.toJson(n[r.__name],2)):angular.isUndefined(n[r.__name])&&(n[r.__name]=angular.isUndefined(r.__defaultValue)?"":r.__defaultValue)}var t;return n}function c(n,e,t){return n.post("repositories/"+e,o({query:t}),{headers:{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/sparql-results+json","X-GraphDB-Local-Consistency":"updating"}})}function a(n){return n.substring(0,n.length-1)+"/instance#"}function s(n,e,t,o,i){const c=function n(e,t){const o={};return _.each(t,(function(t){angular.isDefined(e[t.__name])&&("OptionArray"===t.__type?(o[t.__name]=[],_.each(e[t.__name],(function(e){o[t.__name].push(n(e,t.__childOptions))}))):o[t.__name]=_.cloneDeep(e[t.__name]))})),o}(t,o);for(let n=0;n<o.length;n++)try{"Map"===o[n].__type?c[o[n].__name]=r(c[o[n].__name],$translate):"JsonString"===o[n].__type&&(c[o[n].__name]=angular.fromJson(c[o[n].__name]))}catch(e){return i(o[n].__label,e.message),null}!function n(e){Array.isArray(e)&&(e=_.filter(e,(function(n){return null!==n&&(!n.trim||""!==n.trim())})));return Object.keys(e).forEach((function(t){""!==e[t]&&null!=e[t]||!1===e[t]?"object"==typeof e[t]&&(e[t]=n(e[t])):delete e[t]})),e}(c);let s="";s+="PREFIX :<"+e+">\n";return s+="PREFIX inst:<"+a(e)+">\n",s+="INSERT DATA {\n",s+="\tinst:"+n+" :createConnector '''\n",s+=angular.toJson(c,2),s+="\n''' .\n}\n",s=s.replace(/\\/g,"\\\\\\"),s}function l(n,e,t,r,l,u,p,f,d,g){function m(e){n.beingBuiltConnector={percentDone:0,status:{processedEntities:0,estimatedEntities:0,indexedEntities:0,entitiesPerSecond:0},actionName:e?g.instant("externalsync.repairing"):g.instant("externalsync.creating"),waitOnRepairStartOnce:!!e,eta:"-",inline:!1,iri:null}}function y(e,t,o){return m(o),$.extend(n.beingBuiltConnector,{iri:a(e)+t,name:t,inline:!1,doneCallback:function(){n.beingBuiltConnector.modalInstance.dismiss("cancel")}}),n.beingBuiltConnector.modalInstance=r.open({templateUrl:"pages/connectorProgress.html",controller:"CreateProgressCtrl",size:"lg",backdrop:"static",scope:n}),n.beingBuiltConnector.modalInstance}function C(e,r,i){const c=y(e.value,r.name,!1);f.addStatements(t.getActiveRepository(),o({update:r.query})).then((function(){d.getConnectors().then((function(){d.hasConnector(encodeURIComponent(e.value)).then((function(t){n.existing[e.key]=t.data}))})),l.success(g.instant("created.connector",{name:r.name}))}),(function(n){l.error(getError(n)),i()})).finally((function(){c.dismiss("cancel")}))}n.loader=!1,n.controllers=[],n.existing={},n.definitions={},n.getLoaderMessage=function(){const e=(Date.now()-n.loaderStartTime)/1e3,t=n.getHumanReadableSeconds(e);let o="";return o=n.progressMessage?n.progressMessage+"... "+t:g.instant("common.running.operation",{timeHuman:t}),n.extraMessage&&e>10&&(o+="\n"+n.extraMessage),o},n.setLoader=function(e,t,o){e?(n.loader=!0,n.loaderStartTime=Date.now(),n.progressMessage=t,n.extraMessage=o):(n.loader=!1,n.progressMessage="",n.extraMessage="")},n.initConnector=function(e){return d.initConnector(encodeURIComponent(e.value)).then((function(t){return n.definitions[e.key]=t.data,d.hasConnector(encodeURIComponent(e.value)).then((function(t){n.existing[e.key]=t.data}))}))},n.getConnectors=function(){n.isLicenseValid()&&n.canWriteActiveRepo()&&(n.setLoader(!0,g.instant("externalsync.fetching.connectors"),g.instant("common.extra.message")),d.getConnectors().then((function(o){n.connectors=Object.keys(o.data).map((function(n){return{key:n,value:o.data[n]}})),p.all(_.map(n.connectors,(function(e){return n.initConnector(e)}))).finally((function(){m();const o=function(n){const e=_.map(n,(function(n){return"<"+n.value+"connectorStatus>"})).join("|");return e?"SELECT ?connector ?status { ?connector "+e+" ?status }":null}(n.connectors);o?function(n){return c(e,t.getActiveRepository(),n)}(o).then((function(e){const t=function(n){if(n.bindings)for(let e=0;e<n.bindings.length;e++)try{const t=JSON.parse(n.bindings[e].status.value);if("BUILDING"===t.status)return{connector:n.bindings[e].connector.value,status:t}}catch(n){console.error(n)}return{}}(e.data.results);if(t.connector){const e=t.connector.split(/#/);e[0]=e[0].replace(/\/instance$/,"#"),o=e[0],r=e[1],m(),$.extend(n.beingBuiltConnector,{iri:a(o)+r,name:r,inline:!0,doneCallback:function(){n.beingBuiltConnector.inline=!1}})}var o,r})).finally((function(){n.setLoader(!1)})):n.setLoader(!1)}))})).catch((function(e){n.setLoader(!1),l.error(getError(e),g.instant("externalsync.could.not.get.connectors.error"))})),n.existing={})},n.getOptions=function(e){return n.definitions[e.key]},n.isEmpty=function(n){return angular.isObject(n)&&0===Object.keys(n).length},n.toPrettyJson=function(n){return angular.toJson(n,2)},n.$watch((function(){return t.getActiveRepository()}),n.getConnectors),n.$watch((function(){return t.getActiveLocation()}),n.getConnectors),n.copyConnector=function(e,t){let o;angular.isUndefined(t)||(o=_.cloneDeep(t),o.name=o.name+"-copy");r.open({templateUrl:"pages/createConnector.html",controller:"CreateConnectorCtrl",size:"lg",backdrop:"static",resolve:{connector:function(){return e},values:function(){return angular.isUndefined(o)?{name:"",values:{}}:o},options:function(){return n.getOptions(e)}}}).result.then((function(t){C(e,t,(function(){t.skipConversion=!0,n.newConnector(e,t)}))}))},n.newConnector=function(e,t){r.open({templateUrl:"pages/createConnector.html",controller:"CreateConnectorCtrl",size:"lg",backdrop:"static",resolve:{connector:function(){return e},values:function(){return angular.isUndefined(t)?{name:"",values:{}}:t},options:function(){return n.getOptions(e)}}}).result.then((function(t){C(e,t,(function(){t.skipConversion=!0,n.newConnector(e,t)}))}))},n.repair=function(e,r){u.openSimpleModal({title:g.instant("externalsync.confirm.repair"),message:g.instant("externalsync.repair.warning.msg"),warning:!0}).result.then((function(){const i=y(r.value,e.name,!0),c=(s=e.name,"PREFIX prefix:<"+(u=r.value)+">\nINSERT DATA {\n\t<"+a(u)+s+'> prefix:repairConnector ""\n}');var s,u;f.addStatements(t.getActiveRepository(),o({update:c})).then((function(){d.getConnectors().then((function(){d.hasConnector(encodeURIComponent(r.value)).then((function(e){n.existing[r.key]=e.data}))})),l.success(g.instant("externalsync.repair.success.msg",{name:e.name}))}),(function(n){l.error(getError(n))})).finally((function(){i.dismiss("cancel")}))}))},n.delete=function(e,i){const c=i.key.indexOf("Elastic")>=0||i.key.indexOf("Solr")>=0;r.open({templateUrl:"js/angular/externalsync/templates/deleteConnector.html",controller:"DeleteConnectorCtrl",resolve:{popoverMsg:function(){return c?g.instant("delete.connector.conditional",{type:i.key}):""}}}).result.then((function(r){n.setLoader(!0,g.instant("externalsync.delete.progress.msg",{name:e.name}),g.instant("externalsync.extra.message.warning"));const a=function(n,e,t){const o=e.substring(0,e.length-1)+"/instance#";return"PREFIX prefix:<"+e+">\nINSERT DATA {\n\t<"+o+n+'> prefix:dropConnector "'+(t?"force":"")+'"\n}'}(e.name,i.value,r);f.addStatements(t.getActiveRepository(),o({update:a})).then((function(){d.getConnectors().then((function(){d.hasConnector(encodeURIComponent(i.value)).then((function(e){n.existing[i.key]=e.data}))})),r?(l.success(g.instant("externalsync.delete.force.success.msg",{name:e.name})),c&&l.warning(g.instant("externalsync.delete.remote.warning",{key:i.key}))):l.success(g.instant("externalsync.delete.success.msg",{name:e.name}))}),(function(n){l.error(getError(n))})).finally((function(){n.setLoader(!1)}))}))},n.viewQuery=function(e,t){r.open({templateUrl:"pages/viewQuery.html",controller:"ViewQueryCtrl",resolve:{query:function(){const o=n.getOptions(e);return s(t.name,e.value,i(t.values,o),o)}}})}}function u(n,e,t){n.force=!1,n.popoverMsg=t,n.ok=function(){e.close(n.force)},n.cancel=function(){e.dismiss()}}function p(n,e,t,o,r){function i(){return s(n.name,t.value,n.values,n.options,(function(n,e){r.error(e,n)}))}n.connector=t,n.addField=function(e,t){const o=_.cloneDeep(n.defaultValues[t][0]);n.values[t].splice(e+1,0,o)},n.addOption=function(n,e){e.splice(n+1,0,"")},n.deleteOption=function(n,e){e.splice(n,1)},n.addMapOption=function(n,e){e.splice(n+1,0,{key:"",value:""})},n.deleteMapOption=function(n,e){e.splice(n,1)},n.ok=function(){if(n.form.$valid){const t=i();t&&e.close({name:n.name,values:n.values,options:n.options,query:t})}},n.viewQuery=function(){const n=i();n&&o.open({templateUrl:"pages/viewQuery.html",controller:"ViewQueryCtrl",resolve:{query:function(){return n}}})},n.cancel=function(){e.dismiss("cancel")}}function f(n,e,t,o,r,c,a,s){angular.extend(this,e("ExtendNewConnectorCtrl",{$scope:n,$uibModalInstance:o,connector:r,$uibModal:c})),n.values=a.values,n.options=s,n.name=a.name,a.skipConversion||(n.values=i(n.values,n.options)),n.defaultValues=_.cloneDeep(n.values)}function d(n,e,t,o,r){function i(){const i=function(n){const e=n.replace(/\/instance#.+$/,"#connectorStatus");let t="";return t+="SELECT ?status {\n",t+="\t<"+n+"> <"+e+"> ?status",t+="\n}",t}(n.beingBuiltConnector.iri);n.beingBuiltConnector.iri=null,n.progressInterval=e((function(){(function(n){return c(t,o.getActiveRepository(),n)})(i).then((function(t){const o=function(n){if(n.bindings&&n.bindings.length>0)try{return JSON.parse(n.bindings[0].status.value)}catch(n){console.error(n)}return{}}(t.data.results);"BUILDING"===o.status?(n.beingBuiltConnector.status=o,n.beingBuiltConnector.percentDone=(100*o.processedEntities/o.estimatedEntities).toFixed(0),n.beingBuiltConnector.eta=n.getHumanReadableSeconds(o.etaSeconds),n.beingBuiltConnector.actionName=o.repair?r.instant("externalsync.repairing"):r.instant("externalsync.creating"),n.beingBuiltConnector.waitOnRepairStartOnce=!1):"BUILT"!==o.status||n.beingBuiltConnector.waitOnRepairStartOnce||(e.cancel(n.progressInterval),n.beingBuiltConnector.doneCallback&&n.beingBuiltConnector.doneCallback())}))}),1e3),n.$on("$destroy",(function(){e.cancel(n.progressInterval)}))}n.beingBuiltConnector=n.beingBuiltConnector||{},!n.beingBuiltConnector.inline&&n.beingBuiltConnector.iri&&i(),n.$watch("beingBuiltConnector.iri",(function(e){n.beingBuiltConnector.inline&&e&&i()}))}angular.module("graphdb.framework.externalsync.controllers",["graphdb.framework.rest.rdf4j.repositories.service","graphdb.framework.rest.connectors.service"]).controller("ConnectorsCtrl",l).controller("ExtendNewConnectorCtrl",p).controller("CreateConnectorCtrl",f).controller("CreateProgressCtrl",d).controller("DeleteConnectorCtrl",u).filter("ceil",(function(){return function(n){return Math.ceil(n)}})),l.$inject=["$scope","$http","$repositories","$uibModal","toastr","ModalService","$q","RDF4JRepositoriesRestService","ConnectorsRestService","$translate"],u.$inject=["$scope","$uibModalInstance","popoverMsg"],p.$inject=["$scope","$uibModalInstance","connector","$uibModal","toastr"],f.$inject=["$scope","$controller","$http","$uibModalInstance","connector","$uibModal","values","options"],d.$inject=["$scope","$interval","$http","$repositories","$translate"]},92:function(n,e){angular.module("graphdb.framework.rest.connectors.service",[]).factory("ConnectorsRestService",t),t.$inject=["$http"];function t(n){return{getConnectors:function(){return n.get("rest/connectors")},initConnector:function(e){return n.get("rest/connectors/options?prefix="+e)},hasConnector:function(e){return n.get("rest/connectors/existing?prefix="+e)},checkConnector:function(e){return n.post("rest/connectors/check",e,{headers:{"Content-Type":"text/plain"}})}}}}}]);
@@ -1 +1 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([[63,131],{166:function(e,r,t){"use strict";t.r(r);t(7),t(27);const i=angular.module("graphdb.framework.impex.import.directives",["graphdb.framework.utils.uriutils"]);i.directive("validateUri",["UriUtils",function(e){return{restrict:"A",require:"ngModel",link:function(r,t,i,a){a.$parsers.unshift((function(t){let i=!0;return"named"===r.target&&(i=e.isValidIri(t,t.toString())),a.$setValidity("validateUri",i),t}))}}}]),i.directive("filesTable",(function(){return{restrict:"A",templateUrl:"js/angular/import/templates/filesTable.html"}})),i.directive("filesOntoLoader",(function(){return{link:function(e,r,t){e.$watch("file.status",(function(){"IMPORTING"!==e.file.status&&"UPLOADING"!==e.file.status||!$(r).has("object").length>0&&$(r).append('<object width="'+t.size+'" height="'+t.size+'" data="js/angular/templates/loader/ot-loader.svg?v=2.6.0-TR7">{{\'common.loading\' | translate}}</object>')}))}}}))},239:function(e,r,t){"use strict";t.r(r);t(7),t(24),t(202),t(166),t(25),t(57),t(58);angular.module("graphdb.framework.impex.import",["toastr","ngRoute","ngFileUpload","ui.bootstrap","graphdb.framework.impex.import.directives","graphdb.framework.impex.import.controllers","graphdb.framework.core.services.repositories","graphdb.framework.core.directives"])}}]);
1
+ (window.webpackJsonp=window.webpackJsonp||[]).push([[63,131],{167:function(e,r,t){"use strict";t.r(r);t(7),t(27);const i=angular.module("graphdb.framework.impex.import.directives",["graphdb.framework.utils.uriutils"]);i.directive("validateUri",["UriUtils",function(e){return{restrict:"A",require:"ngModel",link:function(r,t,i,a){a.$parsers.unshift((function(t){let i=!0;return"named"===r.target&&(i=e.isValidIri(t,t.toString())),a.$setValidity("validateUri",i),t}))}}}]),i.directive("filesTable",(function(){return{restrict:"A",templateUrl:"js/angular/import/templates/filesTable.html"}})),i.directive("filesOntoLoader",(function(){return{link:function(e,r,t){e.$watch("file.status",(function(){"IMPORTING"!==e.file.status&&"UPLOADING"!==e.file.status||!$(r).has("object").length>0&&$(r).append('<object width="'+t.size+'" height="'+t.size+'" data="js/angular/templates/loader/ot-loader.svg?v=2.6.0">{{\'common.loading\' | translate}}</object>')}))}}}))},239:function(e,r,t){"use strict";t.r(r);t(7),t(25),t(202),t(167),t(24),t(57),t(58);angular.module("graphdb.framework.impex.import",["toastr","ngRoute","ngFileUpload","ui.bootstrap","graphdb.framework.impex.import.directives","graphdb.framework.impex.import.controllers","graphdb.framework.core.services.repositories","graphdb.framework.core.directives"])}}]);
@@ -1 +1 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([[64,136],{73:function(e,r,t){"use strict";t.r(r),t.d(r,"StartMode",(function(){return s})),t.d(r,"GraphsConfig",(function(){return i}));const s={QUERY:"query",NODE:"node",SEARCH:"search"};class i{constructor(e,r,t=s.SEARCH,i,a=!0,u=!0,n,o,h,p,c,y,d,Q,_,I,l,D,g,b,m){this._id=e,this._name=r,this._startMode=t,this._owner=i,this._startQueryIncludeInferred=a,this._startQuerySameAs=u,this._startGraphQuery=n,this._startIRI=o,this._startIRILabel=h,this._expandQuery=p,this._resourceQuery=c,this._predicateLabelQuery=y,this._resourcePropertiesQuery=d,this._shared=Q,this._description=_,this._hint=I,this._startGraphQueryDescription=l,this._expandQueryDescription=D,this._resourceQueryDescription=g,this._predicateLabelQueryDescription=b,this._resourcePropertiesQueryDescription=m}isStartMode(e){return this.startMode===e}isDefaultGraph(){return"Minimal"===this.name||"Advanced"===this.name}getPropertyDescription(e){return this[e+"Description"]}getQueryType(e){let r;return this.isStartMode(s.QUERY)&&1===e?r=this.startGraphQuery:2===e?r=this.expandQuery:3===e?r=this.resourceQuery:4===e?r=this.predicateLabelQuery:5===e&&(r=this.resourcePropertiesQuery),r||""}updateModel(e,r){return this.isStartMode(s.QUERY)&&1===r?this.startGraphQuery=e:2===r?this.expandQuery=e:3===r?this.resourceQuery=e:4===r?this.predicateLabelQuery=e:5===r&&(this.resourcePropertiesQuery=e),this}toSavePayload(){return{id:this.id,name:this.name,startMode:this.startMode,owner:this.owner,startQueryIncludeInferred:this.startQueryIncludeInferred,startQuerySameAs:this.startQuerySameAs,startGraphQuery:this.startGraphQuery,startIRI:this.startIRI,startIRILabel:this.startIRILabel,expandQuery:this.expandQuery,resourceQuery:this.resourceQuery,predicateLabelQuery:this.predicateLabelQuery,resourcePropertiesQuery:this.resourcePropertiesQuery,shared:this.shared,description:this.description,hint:this.hint}}get id(){return this._id}set id(e){this._id=e}get name(){return this._name}set name(e){this._name=e}get startMode(){return this._startMode}set startMode(e){this._startMode=e}get owner(){return this._owner}set owner(e){this._owner=e}get startQueryIncludeInferred(){return this._startQueryIncludeInferred}set startQueryIncludeInferred(e){this._startQueryIncludeInferred=e}get startQuerySameAs(){return this._startQuerySameAs}set startQuerySameAs(e){this._startQuerySameAs=e}get startGraphQuery(){return this._startGraphQuery}set startGraphQuery(e){this._startGraphQuery=e}get startIRI(){return this._startIRI}set startIRI(e){this._startIRI=e}get startIRILabel(){return this._startIRILabel}set startIRILabel(e){this._startIRILabel=e}get expandQuery(){return this._expandQuery}set expandQuery(e){this._expandQuery=e}get resourceQuery(){return this._resourceQuery}set resourceQuery(e){this._resourceQuery=e}get predicateLabelQuery(){return this._predicateLabelQuery}set predicateLabelQuery(e){this._predicateLabelQuery=e}get resourcePropertiesQuery(){return this._resourcePropertiesQuery}set resourcePropertiesQuery(e){this._resourcePropertiesQuery=e}get shared(){return this._shared}set shared(e){this._shared=e}get description(){return this._description}set description(e){this._description=e}get hint(){return this._hint}set hint(e){this._hint=e}get startGraphQueryDescription(){return this._startGraphQueryDescription}set startGraphQueryDescription(e){this._startGraphQueryDescription=e}get expandQueryDescription(){return this._expandQueryDescription}set expandQueryDescription(e){this._expandQueryDescription=e}get resourceQueryDescription(){return this._resourceQueryDescription}set resourceQueryDescription(e){this._resourceQueryDescription=e}get predicateLabelQueryDescription(){return this._predicateLabelQueryDescription}set predicateLabelQueryDescription(e){this._predicateLabelQueryDescription=e}get resourcePropertiesQueryDescription(){return this._resourcePropertiesQueryDescription}set resourcePropertiesQueryDescription(e){this._resourcePropertiesQueryDescription=e}}},92:function(e,r,t){"use strict";t.r(r),t.d(r,"mapGraphsConfigResponseToModel",(function(){return i})),t.d(r,"mapGraphConfigSampleToGraphConfig",(function(){return a})),t.d(r,"mapGraphConfigSamplesToGraphConfigs",(function(){return u}));var s=t(73);const i=e=>new s.GraphsConfig(e.id,e.name,e.startMode,e.owner,e.startQueryIncludeInferred,e.startQuerySameAs,e.startGraphQuery,e.startIRI,e.startIRILabel,e.expandQuery,e.resourceQuery,e.predicateLabelQuery,e.resourcePropertiesQuery,e.shared,e.description,e.hint),a=e=>new s.GraphsConfig(e.id,e.name,e.startMode,e.owner,e.startQueryIncludeInferred,e.startQuerySameAs,e.startGraphQuery,e.startIRI,e.startIRILabel,e.expandQuery,e.resourceQuery,e.predicateLabelQuery,e.resourcePropertiesQuery,e.shared,e.description,e.hint,e.startGraphQueryDescription,e.expandQueryDescription,e.resourceQueryDescription,e.predicateLabelQueryDescription,e.resourcePropertiesQueryDescription),u=e=>e.map(e=>a(e))}}]);
1
+ (window.webpackJsonp=window.webpackJsonp||[]).push([[64,136],{73:function(e,r,t){"use strict";t.r(r),t.d(r,"StartMode",(function(){return s})),t.d(r,"GraphsConfig",(function(){return i}));const s={QUERY:"query",NODE:"node",SEARCH:"search"};class i{constructor(e,r,t=s.SEARCH,i,a=!0,u=!0,n,o,h,p,c,y,d,Q,_,I,l,D,g,b,m){this._id=e,this._name=r,this._startMode=t,this._owner=i,this._startQueryIncludeInferred=a,this._startQuerySameAs=u,this._startGraphQuery=n,this._startIRI=o,this._startIRILabel=h,this._expandQuery=p,this._resourceQuery=c,this._predicateLabelQuery=y,this._resourcePropertiesQuery=d,this._shared=Q,this._description=_,this._hint=I,this._startGraphQueryDescription=l,this._expandQueryDescription=D,this._resourceQueryDescription=g,this._predicateLabelQueryDescription=b,this._resourcePropertiesQueryDescription=m}isStartMode(e){return this.startMode===e}isDefaultGraph(){return"Minimal"===this.name||"Advanced"===this.name}getPropertyDescription(e){return this[e+"Description"]}getQueryType(e){let r;return this.isStartMode(s.QUERY)&&1===e?r=this.startGraphQuery:2===e?r=this.expandQuery:3===e?r=this.resourceQuery:4===e?r=this.predicateLabelQuery:5===e&&(r=this.resourcePropertiesQuery),r||""}updateModel(e,r){return this.isStartMode(s.QUERY)&&1===r?this.startGraphQuery=e:2===r?this.expandQuery=e:3===r?this.resourceQuery=e:4===r?this.predicateLabelQuery=e:5===r&&(this.resourcePropertiesQuery=e),this}toSavePayload(){return{id:this.id,name:this.name,startMode:this.startMode,owner:this.owner,startQueryIncludeInferred:this.startQueryIncludeInferred,startQuerySameAs:this.startQuerySameAs,startGraphQuery:this.startGraphQuery,startIRI:this.startIRI,startIRILabel:this.startIRILabel,expandQuery:this.expandQuery,resourceQuery:this.resourceQuery,predicateLabelQuery:this.predicateLabelQuery,resourcePropertiesQuery:this.resourcePropertiesQuery,shared:this.shared,description:this.description,hint:this.hint}}get id(){return this._id}set id(e){this._id=e}get name(){return this._name}set name(e){this._name=e}get startMode(){return this._startMode}set startMode(e){this._startMode=e}get owner(){return this._owner}set owner(e){this._owner=e}get startQueryIncludeInferred(){return this._startQueryIncludeInferred}set startQueryIncludeInferred(e){this._startQueryIncludeInferred=e}get startQuerySameAs(){return this._startQuerySameAs}set startQuerySameAs(e){this._startQuerySameAs=e}get startGraphQuery(){return this._startGraphQuery}set startGraphQuery(e){this._startGraphQuery=e}get startIRI(){return this._startIRI}set startIRI(e){this._startIRI=e}get startIRILabel(){return this._startIRILabel}set startIRILabel(e){this._startIRILabel=e}get expandQuery(){return this._expandQuery}set expandQuery(e){this._expandQuery=e}get resourceQuery(){return this._resourceQuery}set resourceQuery(e){this._resourceQuery=e}get predicateLabelQuery(){return this._predicateLabelQuery}set predicateLabelQuery(e){this._predicateLabelQuery=e}get resourcePropertiesQuery(){return this._resourcePropertiesQuery}set resourcePropertiesQuery(e){this._resourcePropertiesQuery=e}get shared(){return this._shared}set shared(e){this._shared=e}get description(){return this._description}set description(e){this._description=e}get hint(){return this._hint}set hint(e){this._hint=e}get startGraphQueryDescription(){return this._startGraphQueryDescription}set startGraphQueryDescription(e){this._startGraphQueryDescription=e}get expandQueryDescription(){return this._expandQueryDescription}set expandQueryDescription(e){this._expandQueryDescription=e}get resourceQueryDescription(){return this._resourceQueryDescription}set resourceQueryDescription(e){this._resourceQueryDescription=e}get predicateLabelQueryDescription(){return this._predicateLabelQueryDescription}set predicateLabelQueryDescription(e){this._predicateLabelQueryDescription=e}get resourcePropertiesQueryDescription(){return this._resourcePropertiesQueryDescription}set resourcePropertiesQueryDescription(e){this._resourcePropertiesQueryDescription=e}}},93:function(e,r,t){"use strict";t.r(r),t.d(r,"mapGraphsConfigResponseToModel",(function(){return i})),t.d(r,"mapGraphConfigSampleToGraphConfig",(function(){return a})),t.d(r,"mapGraphConfigSamplesToGraphConfigs",(function(){return u}));var s=t(73);const i=e=>new s.GraphsConfig(e.id,e.name,e.startMode,e.owner,e.startQueryIncludeInferred,e.startQuerySameAs,e.startGraphQuery,e.startIRI,e.startIRILabel,e.expandQuery,e.resourceQuery,e.predicateLabelQuery,e.resourcePropertiesQuery,e.shared,e.description,e.hint),a=e=>new s.GraphsConfig(e.id,e.name,e.startMode,e.owner,e.startQueryIncludeInferred,e.startQuerySameAs,e.startGraphQuery,e.startIRI,e.startIRILabel,e.expandQuery,e.resourceQuery,e.predicateLabelQuery,e.resourcePropertiesQuery,e.shared,e.description,e.hint,e.startGraphQueryDescription,e.expandQueryDescription,e.resourceQueryDescription,e.predicateLabelQueryDescription,e.resourcePropertiesQueryDescription),u=e=>e.map(e=>a(e))}}]);
@@ -1 +1 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([[65,145],{116:function(r,e,i){"use strict";i.r(e),i.d(e,"OntopDriverData",(function(){return s}));var t=i(89);class s{constructor(){this.classAvailable=!1,this.downloadDriverUrl="",this.driverClass="",this.driverName="",this.driverType="",this.portRequired=!1,this.urlTemplate=""}static isGenericDriver(r){return r===t.JdbcDriverType.GENERIC}static isSnowflakeDriver(r){return r===t.JdbcDriverType.SNOWFLAKE}}},89:function(r,e,i){"use strict";i.r(e),i.d(e,"JdbcDriverType",(function(){return t}));const t={GENERIC:"generic",MY_SQL:"mySQL",POSTGRESS:"postgreSQL",ORACLE:"oracle",MS_SQL:"msSQL",DB2:"DB2",DREMIO:"dremio",DATABRICKS:"databricks",SNOWFLAKE:"snowflake"}}}]);
1
+ (window.webpackJsonp=window.webpackJsonp||[]).push([[65,145],{117:function(r,e,i){"use strict";i.r(e),i.d(e,"OntopDriverData",(function(){return s}));var t=i(90);class s{constructor(){this.classAvailable=!1,this.downloadDriverUrl="",this.driverClass="",this.driverName="",this.driverType="",this.portRequired=!1,this.urlTemplate=""}static isGenericDriver(r){return r===t.JdbcDriverType.GENERIC}static isSnowflakeDriver(r){return r===t.JdbcDriverType.SNOWFLAKE}}},90:function(r,e,i){"use strict";i.r(e),i.d(e,"JdbcDriverType",(function(){return t}));const t={GENERIC:"generic",MY_SQL:"mySQL",POSTGRESS:"postgreSQL",ORACLE:"oracle",MS_SQL:"msSQL",DB2:"DB2",DREMIO:"dremio",DATABRICKS:"databricks",SNOWFLAKE:"snowflake"}}}]);
@@ -1 +1 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([[66,161,162,163],{61:function(E,n,e){"use strict";e.r(n),e.d(n,"RenderingMode",(function(){return o}));const o={YASGUI:"mode-yasgui",YASQE:"mode-yasqe",YASR:"mode-yasr"}},71:function(E,n,e){"use strict";e.r(n),e.d(n,"QueryType",(function(){return o}));const o={SELECT:"SELECT",CONSTRUCT:"CONSTRUCT",ASK:"ASK",DESCRIBE:"DESCRIBE",INSERT:"INSERT",DELETE:"DELETE",LOAD:"LOAD",CLEAR:"CLEAR",CREATE:"CREATE",DROP:"DROP",COPY:"COPY",MOVE:"MOVE",ADD:"ADD"}}}]);
1
+ (window.webpackJsonp=window.webpackJsonp||[]).push([[66,162,163,164],{61:function(E,n,e){"use strict";e.r(n),e.d(n,"RenderingMode",(function(){return o}));const o={YASGUI:"mode-yasgui",YASQE:"mode-yasqe",YASR:"mode-yasr"}},71:function(E,n,e){"use strict";e.r(n),e.d(n,"QueryType",(function(){return o}));const o={SELECT:"SELECT",CONSTRUCT:"CONSTRUCT",ASK:"ASK",DESCRIBE:"DESCRIBE",INSERT:"INSERT",DELETE:"DELETE",LOAD:"LOAD",CLEAR:"CLEAR",CREATE:"CREATE",DROP:"DROP",COPY:"COPY",MOVE:"MOVE",ADD:"ADD"}}}]);
@@ -1 +1 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([[67,162,163],{61:function(e,t,n){"use strict";n.r(t),n.d(t,"RenderingMode",(function(){return s}));const s={YASGUI:"mode-yasgui",YASQE:"mode-yasqe",YASR:"mode-yasr"}},97:function(e,t,n){"use strict";n.r(t),n.d(t,"YasguiComponent",(function(){return o}));var s=n(14);n(61);class o{constructor(e=s.YasguiComponentDirectiveUtil.getOntotextYasguiElement("#query-editor")){this.yasguiComponent=e}changeRenderMode(e){return this.yasguiComponent.changeRenderMode(e)}setQuery(e){return this.yasguiComponent.setQuery(e)}query(e){return this.yasguiComponent.query(e)}getQuery(){return this.yasguiComponent.getQuery()}isQueryValid(){return this.yasguiComponent.isQueryValid()}openTab(e){return this.yasguiComponent.openTab(e)}getQueryMode(){return this.yasguiComponent.getQueryMode()}getQueryType(){return this.yasguiComponent.getQueryType()}getEmbeddedResultAsJson(){return this.yasguiComponent.getEmbeddedResultAsJson()}getEmbeddedResultAsCSV(){return this.yasguiComponent.getEmbeddedResultAsCSV()}hideYasqeActionButton(e){return this.yasguiComponent.hideYasqeActionButton(e)}showYasqeActionButton(e){return this.yasguiComponent.showYasqeActionButton(e)}abortQuery(){return this.yasguiComponent.abortQuery()}resetYasrResults(){return this.yasguiComponent.resetResults()}}}}]);
1
+ (window.webpackJsonp=window.webpackJsonp||[]).push([[67,163,164],{61:function(e,t,n){"use strict";n.r(t),n.d(t,"RenderingMode",(function(){return o}));const o={YASGUI:"mode-yasgui",YASQE:"mode-yasqe",YASR:"mode-yasr"}},98:function(e,t,n){"use strict";n.r(t),n.d(t,"YasguiComponent",(function(){return s}));var o=n(14);n(61);class s{constructor(e=o.YasguiComponentDirectiveUtil.getOntotextYasguiElement("#query-editor")){this.yasguiComponent=e}changeRenderMode(e){return this.yasguiComponent.changeRenderMode(e)}setQuery(e){return this.yasguiComponent.setQuery(e)}query(e){return this.yasguiComponent.query(e)}getQuery(){return this.yasguiComponent.getQuery()}isQueryValid(){return this.yasguiComponent.isQueryValid()}openTab(e){return this.yasguiComponent.openTab(e)}getQueryMode(){return this.yasguiComponent.getQueryMode()}getQueryType(){return this.yasguiComponent.getQueryType()}getEmbeddedResultAsJson(){return this.yasguiComponent.getEmbeddedResultAsJson()}getEmbeddedResultAsCSV(){return this.yasguiComponent.getEmbeddedResultAsCSV()}hideYasqeActionButton(e){return this.yasguiComponent.hideYasqeActionButton(e)}showYasqeActionButton(e){return this.yasguiComponent.showYasqeActionButton(e)}abortQuery(){return this.yasguiComponent.abortQuery()}abortAllCountQuery(){return this.yasguiComponent.abortAllCountQuery()}resetYasrResults(){return this.yasguiComponent.resetResults()}}}}]);
@@ -1 +1 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([[68,186],{121:function(e,i,r){"use strict";r.r(i),r.d(i,"SimilaritySearch",(function(){return c}));var t=r(90);class c{constructor(){this.type=t.SimilaritySearchType.SEARCH_TERM,this.predicate="",this.termOrSubject=""}isSearchAnalogicalType(){return t.SimilaritySearchType.isSearchAnalogicalType(this.type)}isSearchTermType(){return t.SimilaritySearchType.isSearchTermType(this.type)}isSearchEntityType(){return t.SimilaritySearchType.isSearchEntityType(this.type)}isSearchEntityPredicateType(){return t.SimilaritySearchType.isSearchEntityPredicateType(this.type)}isSearchDocumentType(){return t.SimilaritySearchType.isSearchDocumentType(this.type)}}},90:function(e,i,r){"use strict";r.r(i),r.d(i,"SimilaritySearchType",(function(){return t}));const t={SEARCH_TERM:"searchTerm",SEARCH_ANALOGICAL:"searchAnalogical",SEARCH_ENTITY:"searchEntity",SEARCH_ENTITY_PREDICATE:"searchEntityPredicate",SEARCH_DOCUMENT:"searchDocumentID",isSearchTermType:e=>t.SEARCH_TERM===e,isSearchAnalogicalType:e=>t.SEARCH_ANALOGICAL===e,isSearchEntityType:e=>t.SEARCH_ENTITY===e,isSearchEntityPredicateType:e=>t.SEARCH_ENTITY_PREDICATE===e,isSearchDocumentType:e=>t.SEARCH_DOCUMENT===e}}}]);
1
+ (window.webpackJsonp=window.webpackJsonp||[]).push([[68,187],{122:function(e,i,r){"use strict";r.r(i),r.d(i,"SimilaritySearch",(function(){return c}));var t=r(91);class c{constructor(){this.type=t.SimilaritySearchType.SEARCH_TERM,this.predicate="",this.termOrSubject=""}isSearchAnalogicalType(){return t.SimilaritySearchType.isSearchAnalogicalType(this.type)}isSearchTermType(){return t.SimilaritySearchType.isSearchTermType(this.type)}isSearchEntityType(){return t.SimilaritySearchType.isSearchEntityType(this.type)}isSearchEntityPredicateType(){return t.SimilaritySearchType.isSearchEntityPredicateType(this.type)}isSearchDocumentType(){return t.SimilaritySearchType.isSearchDocumentType(this.type)}}},91:function(e,i,r){"use strict";r.r(i),r.d(i,"SimilaritySearchType",(function(){return t}));const t={SEARCH_TERM:"searchTerm",SEARCH_ANALOGICAL:"searchAnalogical",SEARCH_ENTITY:"searchEntity",SEARCH_ENTITY_PREDICATE:"searchEntityPredicate",SEARCH_DOCUMENT:"searchDocumentID",isSearchTermType:e=>t.SEARCH_TERM===e,isSearchAnalogicalType:e=>t.SEARCH_ANALOGICAL===e,isSearchEntityType:e=>t.SEARCH_ENTITY===e,isSearchEntityPredicateType:e=>t.SEARCH_ENTITY_PREDICATE===e,isSearchDocumentType:e=>t.SEARCH_DOCUMENT===e}}}]);
@@ -1 +1 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([[69,192],{70:function(e,a,n){"use strict";n.r(a),n.d(a,"TabQueryModel",(function(){return r}));class r{constructor(e,a,n,r=!0){this.queryName=e,this.query=a,this.owner=n,this.isPublic=r}}},79:function(e,a,n){"use strict";n.r(a),n.d(a,"buildQueryModel",(function(){return t})),n.d(a,"savedQueriesResponseMapper",(function(){return u})),n.d(a,"savedQueryResponseMapper",(function(){return d})),n.d(a,"queryPayloadFromEvent",(function(){return o}));var r=n(70);const t=(e,a,n,t)=>new r.TabQueryModel(a,e,n,t),u=e=>e&&e.data?e.data.map?e.data.map(e=>t(e.body,e.name,e.owner,e.shared)):[t(e.data.body,e.data.name,e.data.owner,e.data.shared)]:[],d=e=>{const a=u(e);return a.length?a[0]:null},o=e=>({name:e.detail.queryName,body:e.detail.query,shared:e.detail.isPublic})}}]);
1
+ (window.webpackJsonp=window.webpackJsonp||[]).push([[69,193],{70:function(e,a,n){"use strict";n.r(a),n.d(a,"TabQueryModel",(function(){return r}));class r{constructor(e,a,n,r=!0){this.queryName=e,this.query=a,this.owner=n,this.isPublic=r}}},79:function(e,a,n){"use strict";n.r(a),n.d(a,"buildQueryModel",(function(){return t})),n.d(a,"savedQueriesResponseMapper",(function(){return u})),n.d(a,"savedQueryResponseMapper",(function(){return d})),n.d(a,"queryPayloadFromEvent",(function(){return o}));var r=n(70);const t=(e,a,n,t)=>new r.TabQueryModel(a,e,n,t),u=e=>e&&e.data?e.data.map?e.data.map(e=>t(e.body,e.name,e.owner,e.shared)):[t(e.data.body,e.data.name,e.data.owner,e.data.shared)]:[],d=e=>{const a=u(e);return a.length?a[0]:null},o=e=>({name:e.detail.queryName,body:e.detail.query,shared:e.detail.isPublic})}}]);