graphdb-workbench 3.0.1 → 3.0.2-TR1

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 (276) hide show
  1. package/dist/{1.4557dfdb926ba6471bb3.bundle.js → 1.39c8f2b09d3018e6a9cd.bundle.js} +1 -1
  2. package/dist/{10.8a76ef708b5c69241c68.bundle.js → 10.4f80be12b2cd899d4fc2.bundle.js} +1 -1
  3. package/dist/100.2daf71ab49c93a1c9d40.bundle.js +1 -0
  4. package/dist/{99.a745a27e01490b0d843d.bundle.js → 101.70d205b9691d74539dd7.bundle.js} +1 -1
  5. package/dist/{100.c4aaa3d10f570dba12a9.bundle.js → 102.8b6782cd3c24d47c87d2.bundle.js} +1 -1
  6. package/dist/{101.8f0b38c2e58132599194.bundle.js → 103.ff8e7dd53d94f93552bf.bundle.js} +1 -1
  7. package/dist/{103.96f2287dde7e4fc25c9d.bundle.js → 104.a1b5b2e868eb117b48ac.bundle.js} +1 -1
  8. package/dist/{104.ddeb2cb5758d1ed52b33.bundle.js → 105.0121f779d777d869ce4e.bundle.js} +1 -1
  9. package/dist/{105.e8302c421c3d7b516b4c.bundle.js → 106.55cf93dab531f6120a6e.bundle.js} +1 -1
  10. package/dist/{106.00a983e1594a051a5fe7.bundle.js → 107.c0d5d1b4a12c8a01745e.bundle.js} +1 -1
  11. package/dist/{107.7b548755171f42f06352.bundle.js → 108.9ca7ca14da8593ef91ba.bundle.js} +1 -1
  12. package/dist/{108.160515780d319edefb5c.bundle.js → 109.1c877e801581e1f60bf8.bundle.js} +1 -1
  13. package/dist/11.cc21bcbc41edfd865a48.bundle.js +1 -0
  14. package/dist/{109.1da75239f8e2a5d63b23.bundle.js → 110.3740001dabee596bbf71.bundle.js} +1 -1
  15. package/dist/{110.780a31b32e116f49a75f.bundle.js → 111.f0ae6a0107628aaeef02.bundle.js} +1 -1
  16. package/dist/{111.7e3057275034cb5dc5a6.bundle.js → 112.ed43d212e04e37907453.bundle.js} +1 -1
  17. package/dist/{112.22145690dd697aa9275d.bundle.js → 113.0b94d0e087a818cf9d4c.bundle.js} +1 -1
  18. package/dist/{113.c135232a9177d596406c.bundle.js → 114.88b6c5ce916e956cc2e5.bundle.js} +1 -1
  19. package/dist/{114.b2c0df64a560a8dd5ae0.bundle.js → 115.3a159adc54ebc83243cd.bundle.js} +1 -1
  20. package/dist/{115.543de06ecb5553155522.bundle.js → 116.b75b69c7fe15583deb8a.bundle.js} +1 -1
  21. package/dist/{116.79b9b3abc0b03e8b7924.bundle.js → 117.a3706ff54783c451de62.bundle.js} +1 -1
  22. package/dist/{117.ae87c77380fb7660d9ec.bundle.js → 118.e93de50f0149eb2931a4.bundle.js} +1 -1
  23. package/dist/{118.6756956bb51b3350690d.bundle.js → 119.e5733c827c71ba3106fc.bundle.js} +1 -1
  24. package/dist/12.5d075599ef637022c23c.bundle.js +1 -0
  25. package/dist/{119.c8e77171125b6497990a.bundle.js → 120.346f38c1b8fa9bb399aa.bundle.js} +1 -1
  26. package/dist/{120.1484bac063921edb7a2c.bundle.js → 121.0a271d2bfea3fc050225.bundle.js} +1 -1
  27. package/dist/{121.6a0ffc9dfc3ea14fd0d3.bundle.js → 122.6812fc0e3f6f60eec16d.bundle.js} +1 -1
  28. package/dist/{122.13363b4c4f89776fa1b5.bundle.js → 123.31d75efb53b4049f1b67.bundle.js} +1 -1
  29. package/dist/{123.616625d0908d7e6eab3d.bundle.js → 124.2e17f7bde4612462c957.bundle.js} +1 -1
  30. package/dist/{124.924dce24aad641d1dd23.bundle.js → 125.f74277a2a44949ca0b4c.bundle.js} +1 -1
  31. package/dist/{125.d86cff2a5cc679dc20d9.bundle.js → 126.63677abd348f7f462e66.bundle.js} +1 -1
  32. package/dist/{126.ff5a04a468a8a8d1a99a.bundle.js → 127.41cba8bf8e30ac29ab7e.bundle.js} +1 -1
  33. package/dist/{127.954cf8032872deba10e6.bundle.js → 128.2ec10c750cf6d0f151f4.bundle.js} +1 -1
  34. package/dist/{128.639a495883f611c4691e.bundle.js → 129.7b10d7005f33d6187a4b.bundle.js} +1 -1
  35. package/dist/{13.c904bbb863125c4ff6cc.bundle.js → 13.c1f8c588c7fc852bbe1d.bundle.js} +1 -1
  36. package/dist/{129.5d11264c418527e53342.bundle.js → 130.6eaf3aa6daac5859f7d7.bundle.js} +1 -1
  37. package/dist/{130.82fe31a14b953086bb45.bundle.js → 131.45ae15011beefb1ec398.bundle.js} +1 -1
  38. package/dist/{131.e4be75b25c9eb85db5a8.bundle.js → 132.f675fe2fd349527933b3.bundle.js} +1 -1
  39. package/dist/{132.364bb39217e31f46480f.bundle.js → 133.1efc1419d69e84db2b4b.bundle.js} +1 -1
  40. package/dist/{133.df86fdb8d83ca7237793.bundle.js → 134.01ec95b828ad09fcb1a9.bundle.js} +1 -1
  41. package/dist/{134.33804d658ebadcbc3b55.bundle.js → 135.7d15f409bdb1e8630623.bundle.js} +1 -1
  42. package/dist/{135.797fc168b7a948df2ccb.bundle.js → 136.1ff57ae90902aff352e4.bundle.js} +1 -1
  43. package/dist/{136.5ca50393ed4761535bfe.bundle.js → 137.044a888e82e4ac13cbed.bundle.js} +1 -1
  44. package/dist/{137.d8b48c06ecd279c12ca7.bundle.js → 138.f910e9be040100f08326.bundle.js} +1 -1
  45. package/dist/{138.3bb6b7be471eb2d04c6e.bundle.js → 139.7e7adea811551510d1d4.bundle.js} +1 -1
  46. package/dist/{14.d0ab3c83926b616e7354.bundle.js → 14.d0c7642a1a7041f50137.bundle.js} +1 -1
  47. package/dist/{139.ea151aec614a76870451.bundle.js → 140.3e12b1909d34b2b23d66.bundle.js} +1 -1
  48. package/dist/{140.6583cf41ab8e891ebbb6.bundle.js → 141.022a52911a1fba3e9273.bundle.js} +1 -1
  49. package/dist/{141.af39fc3a6dc1dafdb5ab.bundle.js → 142.9b8ed6c5c8e7a9f5de47.bundle.js} +1 -1
  50. package/dist/{142.c2392a48e4d3a2a16866.bundle.js → 143.81cfe46fdf48ae310839.bundle.js} +1 -1
  51. package/dist/{143.e4511e1698aca68814e3.bundle.js → 144.fbf7737acce465cf274d.bundle.js} +1 -1
  52. package/dist/{144.f58114954e257cb77bde.bundle.js → 145.72459692d3c167aee55e.bundle.js} +1 -1
  53. package/dist/{145.d558ac05737ca5ef00a4.bundle.js → 146.e435b2bdae83a56537f6.bundle.js} +1 -1
  54. package/dist/{146.de12b58d856c54decc0b.bundle.js → 147.f4e3eb741619b49bcc80.bundle.js} +1 -1
  55. package/dist/{147.6faf4e13462207010d38.bundle.js → 148.44ea646c66b6b0e8f996.bundle.js} +1 -1
  56. package/dist/{148.25167c5ae125b23811c9.bundle.js → 149.0c8405d83935b512abfb.bundle.js} +1 -1
  57. package/dist/{15.8ab8b6f8c611ec1dfddc.bundle.js → 15.79a075c0e170b3066b07.bundle.js} +1 -1
  58. package/dist/{149.9629d0dfe4f62aa15bba.bundle.js → 150.fb80c0c92d602a623c36.bundle.js} +1 -1
  59. package/dist/{150.c8bf724fbe76d0e0696d.bundle.js → 151.0b79280f2a959473ff16.bundle.js} +1 -1
  60. package/dist/{151.4970e08b91e9849ae5e3.bundle.js → 152.410c52dad18a5a3961f6.bundle.js} +1 -1
  61. package/dist/{152.8a1ea0a8d04e0873f67b.bundle.js → 153.cb649018e1db6b8c4f1c.bundle.js} +1 -1
  62. package/dist/{153.64e4e15ca8abeb5268e3.bundle.js → 154.a96812700b8b52d10e57.bundle.js} +1 -1
  63. package/dist/160.1e607beff0e4f8e426cf.bundle.js +1 -0
  64. package/dist/{161.228b61b39d936f8fca31.bundle.js → 161.2a41444b94b2db7dd638.bundle.js} +1 -1
  65. package/dist/{163.716d49313f3e196497dd.bundle.js → 163.9c8a1cb6d8692b5347a4.bundle.js} +1 -1
  66. package/dist/{166.31241e54608319e510e2.bundle.js → 166.c08c74fdaa7965adecbc.bundle.js} +1 -1
  67. package/dist/{17.019de109eebe6b7563fe.bundle.js → 17.e163dfcc19d77667295a.bundle.js} +1 -1
  68. package/dist/{173.425381e5433b54da911c.bundle.js → 173.4fb35b26d3b118d10626.bundle.js} +1 -1
  69. package/dist/{175.b94e42f1b1b7479f46ad.bundle.js → 175.ec71d7bdff18c571a78e.bundle.js} +1 -1
  70. package/dist/{179.63500ae70b7715467e79.bundle.js → 179.be20755cb9848e72b319.bundle.js} +1 -1
  71. package/dist/{18.6722328814b9fcee2f6e.bundle.js → 18.b09e14d8a204a28fb95b.bundle.js} +1 -1
  72. package/dist/{180.a91ac4fc484a71bd5ed8.bundle.js → 180.a82dac6c561436705ae7.bundle.js} +1 -1
  73. package/dist/{19.a0af0ec7c0e4eb7ab20c.bundle.js → 19.407c7beb11ea143e1f9e.bundle.js} +1 -1
  74. package/dist/{2.354e410d4fb45ab44420.bundle.js → 2.842d68f9e1fac66644aa.bundle.js} +1 -1
  75. package/dist/{20.b2e6e5248ede44286621.bundle.js → 20.d9c0a2300fac55616a64.bundle.js} +1 -1
  76. package/dist/{21.6de69abd52835f511f89.bundle.js → 21.db9a15c2ce6264384788.bundle.js} +1 -1
  77. package/dist/{22.035be7329fd099903c2b.bundle.js → 22.1408d06830b72a459d6a.bundle.js} +1 -1
  78. package/dist/{23.f499db643c1d187eefe1.bundle.js → 23.e6835ca70f33d8babcca.bundle.js} +1 -1
  79. package/dist/231.909faa919088245e9988.bundle.js +1 -1
  80. package/dist/{24.057be6f617f4e3f35691.bundle.js → 24.8fbf33e98e7c306e8ea8.bundle.js} +1 -1
  81. package/dist/{242.c2143bfd879222a393dc.bundle.js → 242.2aceac5a4d9f377f3553.bundle.js} +1 -1
  82. package/dist/{243.ed8bd30b9501bcb22fd3.bundle.js → 243.35701551c53ddd41d3e2.bundle.js} +1 -1
  83. package/dist/{248.35714eeadd519aa9dfcf.bundle.js → 248.b1fb4b93555c3f69bc46.bundle.js} +1 -1
  84. package/dist/{25.25d1fdcb1cbeafd51681.bundle.js → 25.6f945a6e26e6daa27763.bundle.js} +1 -1
  85. package/dist/{258.af0b3d78c0f9b4c4b483.bundle.js → 258.fc7172db37e5b0ca1279.bundle.js} +1 -1
  86. package/dist/{26.3aa8a6a7f10039840838.bundle.js → 26.76be6828c642933221c3.bundle.js} +1 -1
  87. package/dist/{264.c6d038d027b8f5579b62.bundle.js → 264.8e759dd1686c37c32b07.bundle.js} +1 -1
  88. package/dist/{287.4f8a30c6c6c72ebafedb.bundle.js → 287.a750fc40fa90418f3d6d.bundle.js} +1 -1
  89. package/dist/{29.33b92413c2f0a708b821.bundle.js → 29.1f79f4caa66f63bd6611.bundle.js} +1 -1
  90. package/dist/{3.77b848d2eb7fdb2523b0.bundle.js → 3.33dccf88ff294b9ba7cf.bundle.js} +1 -1
  91. package/dist/{30.f818533689767fa3e2ca.bundle.js → 30.2125e28509307f3a225f.bundle.js} +1 -1
  92. package/dist/31.e0747ab3d38bd6efa832.bundle.js +2 -0
  93. package/dist/{312.0e853d11527c8a2fc070.bundle.js → 312.c03a255fbafa0d4335b7.bundle.js} +1 -1
  94. package/dist/{32.e14fc108d80a26925f88.bundle.js → 32.14b30077e63f4b1b729a.bundle.js} +1 -1
  95. package/dist/{322.6524ee61a5bbcdc82bad.bundle.js → 322.34c7ffacecadc1dff436.bundle.js} +1 -1
  96. package/dist/{33.fec387c3be8b00368957.bundle.js → 33.da597e608351b4872771.bundle.js} +1 -1
  97. package/dist/{332.2db32da5af5ac8856a0c.bundle.js → 332.eb8ac0b7d982535eb48b.bundle.js} +1 -1
  98. package/dist/{334.2970372fd546db2cd792.bundle.js → 334.85e45ef3709738a8c800.bundle.js} +1 -1
  99. package/dist/{335.b445bf889c4bfaa20ded.bundle.js → 335.5a6a3768096f7e02a5a3.bundle.js} +1 -1
  100. package/dist/{34.61223a86d6cb125fc2c8.bundle.js → 34.51476f9015bca2457953.bundle.js} +1 -1
  101. package/dist/{348.a113e5a47d253a04ee81.bundle.js → 348.da14c1b3111036fe2e02.bundle.js} +1 -1
  102. package/dist/{35.1b457bfdeea08b897d25.bundle.js → 35.dec1963ba9e2a21fdbec.bundle.js} +1 -1
  103. package/dist/{353.8dbc0f6a10d578ed65d8.bundle.js → 353.5ca0dd499b0e4ec5a228.bundle.js} +1 -1
  104. package/dist/{36.54cce0e26c592b832258.bundle.js → 36.5bdd80f32426b30c458d.bundle.js} +1 -1
  105. package/dist/{363.7a3d9b6e636d736c57b1.bundle.js → 363.fe7a10fbfe3ad1a31725.bundle.js} +1 -1
  106. package/dist/{37.be47535106d4b3dbc077.bundle.js → 37.3e74a6a07640c4d8db96.bundle.js} +1 -1
  107. package/dist/{381.aea7ee474ca60accc01b.bundle.js → 381.7705312c8cedfe733a17.bundle.js} +1 -1
  108. package/dist/{382.c69f3647cc33ace74db4.bundle.js → 382.3b6533fe63bb7b89d2a6.bundle.js} +1 -1
  109. package/dist/{385.559499835625e3e755d3.bundle.js → 385.93498ab442f8c50fadbc.bundle.js} +1 -1
  110. package/dist/{39.051d67965709d49db0ab.bundle.js → 39.8be9b0247c3518abbf8b.bundle.js} +1 -1
  111. package/dist/{392.96254712f6158ac44044.bundle.js → 392.fd509c86891257f9777f.bundle.js} +1 -1
  112. package/dist/399.0a3aec07fe2383cc35ba.bundle.js +1 -0
  113. package/dist/{40.9208517ef50b6f8024c6.bundle.js → 40.2747ad0262dc133c782c.bundle.js} +1 -1
  114. package/dist/404.163e08fb2eeea2362f8a.bundle.js +1 -0
  115. package/dist/410.b74d59055b7cf830abe5.bundle.js +1 -0
  116. package/dist/416.68f6286f80654cdbe4e4.bundle.js +1 -1
  117. package/dist/417.70adf0a6f0571c394764.bundle.js +1 -1
  118. package/dist/42.baaa159c3b1e81422600.bundle.js +1 -0
  119. package/dist/423.6edb13ec0cf08388c947.bundle.js +1 -1
  120. package/dist/424.725b821051516e73783a.bundle.js +1 -1
  121. package/dist/425.03fcf969da1a4e92fec3.bundle.js +1 -1
  122. package/dist/426.aa6924f6f1192d037009.bundle.js +1 -1
  123. package/dist/427.5c7b72141707b841e8a3.bundle.js +1 -1
  124. package/dist/428.0d471ce7c68654947c04.bundle.js +1 -1
  125. package/dist/{43.96e8540045f061114280.bundle.js → 43.46cf7aa71531400f5ce3.bundle.js} +1 -1
  126. package/dist/443.969280af4067a22d1a8b.bundle.js +1 -1
  127. package/dist/444.a5971579184b091ed392.bundle.js +1 -1
  128. package/dist/445.2b20cb9e68a11879f6c4.bundle.js +1 -1
  129. package/dist/446.fe3cf3d6e288c8c4444b.bundle.js +1 -1
  130. package/dist/447.d1d078921f6f28e2fa38.bundle.js +1 -1
  131. package/dist/448.d6c9bed6d99b8b23619f.bundle.js +1 -1
  132. package/dist/{45.8c13732f2859713c90c4.bundle.js → 45.e79cfcb4606177c83d29.bundle.js} +1 -1
  133. package/dist/{46.f04ca39b752caadd9714.bundle.js → 46.db4b433aebdbb6965f9d.bundle.js} +1 -1
  134. package/dist/468.8e259940c62a68ef3055.bundle.js +1 -1
  135. package/dist/{47.5773e1581c385ba39851.bundle.js → 47.89ad9da6a07545789631.bundle.js} +1 -1
  136. package/dist/{48.06454bbe08df5938e67a.bundle.js → 48.ba4cec793ef54b1611e5.bundle.js} +1 -1
  137. package/dist/480.379bf3b338e0a3224a1f.bundle.js +1 -1
  138. package/dist/481.0387239b174f787e70ea.bundle.js +1 -1
  139. package/dist/483.c81275cb05dd78ce389f.bundle.js +1 -1
  140. package/dist/484.25a82c267c3a705d2a65.bundle.js +1 -1
  141. package/dist/485.91cbfbfd37eccde375c9.bundle.js +1 -1
  142. package/dist/488.a69dcce23066c0dafdf7.bundle.js +1 -1
  143. package/dist/489.a976085b601cccf438d4.bundle.js +1 -1
  144. package/dist/49.ec8921fc54aaae50ca52.bundle.js +1 -0
  145. package/dist/490.d3e0f3e499b5a24f6808.bundle.js +1 -1
  146. package/dist/491.62c185868f9d99dd5713.bundle.js +1 -1
  147. package/dist/5.163df03f5440d982d268.bundle.js +2 -0
  148. package/dist/50.ee3ed147b2bc2382a0a2.bundle.js +1 -1
  149. package/dist/{51.676e3d8a0e328ad836ed.bundle.js → 51.014f0ee2c2a7ff9ce3ff.bundle.js} +1 -1
  150. package/dist/{52.cfdfa7095a554e758861.bundle.js → 52.85c3ec8030d92959e556.bundle.js} +1 -1
  151. package/dist/{55.fb160be660f713a3d6a1.bundle.js → 55.3262334c9d8a63b347ab.bundle.js} +1 -1
  152. package/dist/{56.a97521bde50d8e02ab1d.bundle.js → 56.f9d140f83b5462444e57.bundle.js} +1 -1
  153. package/dist/{57.ec17cacc850ae1904aeb.bundle.js → 57.fcd6814bee867f2345e7.bundle.js} +1 -1
  154. package/dist/{58.0c8ce6607800bf7ff0ac.bundle.js → 58.914f27e1a230e164d29b.bundle.js} +1 -1
  155. package/dist/{59.47183b72936629232e7f.bundle.js → 59.a7f0559fb46565813cf0.bundle.js} +1 -1
  156. package/dist/{6.33f8c6c7e324640238de.bundle.js → 6.0bfc114054ad3b233305.bundle.js} +1 -1
  157. package/dist/{60.046829a1be3f196bef1c.bundle.js → 60.6c9b4c93b093288c7649.bundle.js} +1 -1
  158. package/dist/{61.f625328fcc0d35aa07a4.bundle.js → 61.424616e10051d7cdbc93.bundle.js} +1 -1
  159. package/dist/{62.842d67b8758eed682f2c.bundle.js → 62.c335ec2480066d4422a9.bundle.js} +1 -1
  160. package/dist/63.e55beded50a778a97299.bundle.js +1 -0
  161. package/dist/{63.c3630cbfa8f6884a417d.bundle.js → 64.7a62b6f780380840f244.bundle.js} +1 -1
  162. package/dist/{64.91ba76d42905a3d9afbe.bundle.js → 65.8d5f1b79d228176db399.bundle.js} +1 -1
  163. package/dist/{65.198a4d69873309746593.bundle.js → 66.75d04ae3be915ecd5afe.bundle.js} +1 -1
  164. package/dist/{66.b7385a74d4f3287237ba.bundle.js → 67.dbc1e4410498f4ceae46.bundle.js} +1 -1
  165. package/dist/{67.3488f2543baf36d3c494.bundle.js → 68.aeae93de29be6d346977.bundle.js} +1 -1
  166. package/dist/{68.4e51b896e74fbd145701.bundle.js → 69.3024e70e93884b7138eb.bundle.js} +1 -1
  167. package/dist/{69.a2244fec1e7110f5aeec.bundle.js → 70.f982fe4a8c44d2ef72a6.bundle.js} +1 -1
  168. package/dist/{70.0b30be583854923aadc1.bundle.js → 71.8ffc1c2036362cf40526.bundle.js} +1 -1
  169. package/dist/{71.24d20933fd9614cf27af.bundle.js → 72.a47d3fdd3239098987a8.bundle.js} +1 -1
  170. package/dist/{72.5d2f018d17e995bc6455.bundle.js → 73.1d8cf985f584d6a29f1b.bundle.js} +1 -1
  171. package/dist/{73.3f407c010a17e4a109b9.bundle.js → 74.70762fed64c1503da986.bundle.js} +1 -1
  172. package/dist/{74.1d496e6a8dc0abfcbe04.bundle.js → 75.e464e055d7b66bf2fc93.bundle.js} +1 -1
  173. package/dist/76.fc1058890354a7ee6abe.bundle.js +1 -0
  174. package/dist/{76.9ca923a9265537ac7be4.bundle.js → 77.bf8560beda63d53b83c2.bundle.js} +1 -1
  175. package/dist/{77.f53fbf119a8b73148a25.bundle.js → 78.eecf35e4f25434df649e.bundle.js} +1 -1
  176. package/dist/{78.933cb90bda144ed95290.bundle.js → 79.074403a4200f684a0945.bundle.js} +1 -1
  177. package/dist/{8.3cf83e59a56858648ad9.bundle.js → 8.e3c3c3676785a030527d.bundle.js} +1 -1
  178. package/dist/{79.6e0224e241895965a9d3.bundle.js → 80.07a80c5fe69c039db15d.bundle.js} +1 -1
  179. package/dist/{80.f7d6d3108e6d18b96cd7.bundle.js → 81.234a3c0b3136c4a55730.bundle.js} +1 -1
  180. package/dist/{81.b79dd505cb205eb7eff0.bundle.js → 82.3e71f24921a2283967c3.bundle.js} +1 -1
  181. package/dist/{82.cd869e55416407b078e0.bundle.js → 83.cf2e3938d315b0470906.bundle.js} +1 -1
  182. package/dist/{83.b085735389d935aa6f42.bundle.js → 84.c1e18d720b266e35aec2.bundle.js} +1 -1
  183. package/dist/{84.7f9377fc605aff3f0d48.bundle.js → 85.7dc677e973a2dfcddfea.bundle.js} +1 -1
  184. package/dist/86.adb4b3504c93eb726fcd.bundle.js +1 -0
  185. package/dist/{85.8a74811c261c635235f7.bundle.js → 87.ddab9647e5ff9f432212.bundle.js} +1 -1
  186. package/dist/{86.c491436398aef8142dc3.bundle.js → 88.e04e9207f68a222a8a64.bundle.js} +1 -1
  187. package/dist/{87.cf9f719c3dd04bc64102.bundle.js → 89.51eac4bd9aa2668b96fb.bundle.js} +1 -1
  188. package/dist/{88.7d844f12b9d68b0be1d7.bundle.js → 90.ac1501d736615a2bc7f6.bundle.js} +1 -1
  189. package/dist/{89.2c1bcd6a70ba8769b6b9.bundle.js → 91.4c80dbc7c0af8d2d07f5.bundle.js} +1 -1
  190. package/dist/{90.b93a0ecac4f5bcfeed0f.bundle.js → 92.69c6a0625b9e94d1a9df.bundle.js} +1 -1
  191. package/dist/{91.44e1598ed46ac2197521.bundle.js → 93.4e0f1104ab14c3dfae71.bundle.js} +1 -1
  192. package/dist/{92.e81e734ef32fe8b56d78.bundle.js → 94.62f609daaeaf1e0b9f63.bundle.js} +1 -1
  193. package/dist/{93.6486890affff9e0f6ca8.bundle.js → 95.2c784e759051491850fb.bundle.js} +1 -1
  194. package/dist/{94.13212f8f2d50c66cb482.bundle.js → 96.22c66e3781a4afc22d1a.bundle.js} +1 -1
  195. package/dist/{95.6fe91e68bef2c41f2645.bundle.js → 97.856052734f379717d4cc.bundle.js} +1 -1
  196. package/dist/{96.4bd66eace72867bf76e1.bundle.js → 98.be86330473bf291530fa.bundle.js} +1 -1
  197. package/dist/{97.4cfafc4c6cedd50e973e.bundle.js → 99.6af4734887301734ebbe.bundle.js} +1 -1
  198. package/dist/{bundle.e7ff3a088b4fc9e2ec9e.bundle.js → bundle.6c88507cb6367ac80d16.bundle.js} +19 -19
  199. package/dist/css/autocomplete.css +5 -0
  200. package/dist/css/clustermanagement.css +10 -7
  201. package/dist/i18n/locale-en.json +11 -1
  202. package/dist/i18n/locale-fr.json +11 -1
  203. package/dist/index.html +3 -3
  204. package/dist/js/angular/autocomplete/templates/modal/add-label.html +5 -2
  205. package/dist/js/angular/clustermanagement/templates/cluster-nodes-configuration.html +16 -7
  206. package/dist/js/angular/core/directives/autocomplete/templates/autocomplete.html +1 -1
  207. package/dist/js/angular/core/directives/dynamic-form/templates/dynamic-form.html +1 -1
  208. package/dist/js/angular/core/directives/operations-statuses-monitor/templates/operations-statuses-monitor.html +1 -1
  209. package/dist/js/angular/core/directives/rdfresourcesearch/templates/rdfResourceSearchTemplate.html +1 -1
  210. package/dist/js/angular/core/directives/shuttle-multiselect/templates/shuttle-multiselect.html +1 -1
  211. package/dist/js/angular/core/directives/yasgui-component/templates/yasgui-component.html +1 -1
  212. package/dist/js/angular/core/templates/cookie-policy/cookie-consent.html +1 -1
  213. package/dist/js/angular/core/templates/cookie-policy/cookie-policy.html +1 -1
  214. package/dist/js/angular/graphql/templates/create-graphql-endpoint.html +2 -2
  215. package/dist/js/angular/graphql/templates/graphql-endpoint-management.html +1 -1
  216. package/dist/js/angular/graphql/templates/graphql-playground.html +1 -1
  217. package/dist/js/angular/graphql/templates/modal/endpoint-configuration-modal.html +1 -1
  218. package/dist/js/angular/graphql/templates/modal/endpoint-generation-failure-result-modal.html +1 -1
  219. package/dist/js/angular/graphql/templates/modal/import-endpoint-definition-modal.html +1 -1
  220. package/dist/js/angular/security/templates/user.html +2 -2
  221. package/dist/js/angular/ttyg/templates/agent-list.html +1 -1
  222. package/dist/js/angular/ttyg/templates/agent-select-menu.html +1 -1
  223. package/dist/js/angular/ttyg/templates/chat-item-detail.html +1 -1
  224. package/dist/js/angular/ttyg/templates/chat-list.html +1 -1
  225. package/dist/js/angular/ttyg/templates/chat-panel.html +1 -1
  226. package/dist/js/angular/ttyg/templates/modal/agent-instructions-explain-modal.html +1 -1
  227. package/dist/js/angular/ttyg/templates/modal/agent-settings-modal.html +2 -2
  228. package/dist/js/angular/ttyg/templates/no-agents-view.html +1 -1
  229. package/dist/js/angular/ttyg/templates/ttyg.html +1 -1
  230. package/dist/license-checker.json +4 -4
  231. package/dist/pages/aclmanagement.html +2 -2
  232. package/dist/pages/autocomplete.html +1 -1
  233. package/dist/pages/choose-repository-type.html +1 -1
  234. package/dist/pages/cluster-management/clusterInfo.html +3 -3
  235. package/dist/pages/create-index.html +1 -1
  236. package/dist/pages/dependencies.html +1 -1
  237. package/dist/pages/domainRangeInfo.html +2 -2
  238. package/dist/pages/edit.html +1 -1
  239. package/dist/pages/explore.html +1 -1
  240. package/dist/pages/export.html +1 -1
  241. package/dist/pages/find.html +1 -1
  242. package/dist/pages/graph-config/saveGraphConfig.html +8 -8
  243. package/dist/pages/graphs-visualizations.html +7 -7
  244. package/dist/pages/guides.html +1 -1
  245. package/dist/pages/import.html +2 -2
  246. package/dist/pages/jdbc-create.html +1 -1
  247. package/dist/pages/monitor/backup-and-restore.html +1 -1
  248. package/dist/pages/monitor/queries.html +1 -1
  249. package/dist/pages/monitor/resources.html +1 -1
  250. package/dist/pages/namespaces.html +2 -2
  251. package/dist/pages/plugins.html +1 -1
  252. package/dist/pages/rdfClassHierarchyInfo.html +7 -7
  253. package/dist/pages/rdfrank.html +2 -2
  254. package/dist/pages/repositories.html +1 -1
  255. package/dist/pages/repository.html +1 -1
  256. package/dist/pages/similarity-indexes.html +1 -1
  257. package/dist/pages/sparql-editor.html +1 -1
  258. package/dist/pages/sparql-template-create.html +1 -1
  259. package/dist/pages/ux-test1.html +2 -2
  260. package/dist/pages/webapi.html +2 -2
  261. package/dist/res/swagger5/index.html +12 -12
  262. package/package.json +2 -2
  263. package/dist/102.2b1c8399187ccefe5a4f.bundle.js +0 -1
  264. package/dist/11.7343b4e08a786f0a1eab.bundle.js +0 -1
  265. package/dist/12.3669f82ad6489ffeb12b.bundle.js +0 -1
  266. package/dist/154.89f16e758f1caaae814c.bundle.js +0 -1
  267. package/dist/160.90a42dd6a992307c602d.bundle.js +0 -1
  268. package/dist/31.721783158dcfdee0b882.bundle.js +0 -2
  269. package/dist/399.b13be7ef0c258335c762.bundle.js +0 -1
  270. package/dist/404.00ef41fe988cd9161359.bundle.js +0 -1
  271. package/dist/410.a86d6bdafde1b951e239.bundle.js +0 -1
  272. package/dist/42.0147219d61d3814c266c.bundle.js +0 -1
  273. package/dist/49.6b885bb67696745b1634.bundle.js +0 -1
  274. package/dist/5.045fbb4da4ea6659e905.bundle.js +0 -2
  275. package/dist/75.0e43af19262a978d6aab.bundle.js +0 -1
  276. package/dist/98.6586c3413d178a0cab8c.bundle.js +0 -1
@@ -1,2 +1,2 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([[32,94,169,182,184,297,312,313,315,355,387],{104:function(e,t,r){"use strict";r.r(t),r.d(t,"RenderingMode",(function(){return n}));var n={YASGUI:"mode-yasgui",YASQE:"mode-yasqe",YASR:"mode-yasr"}},149:function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,i(n.key),n)}}function i(e){var t=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==n(t)?t:t+""}r.r(t),r.d(t,"ContextType",(function(){return a})),r.d(t,"ContextTypes",(function(){return l}));var a=function(){return e=function e(t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.id=t,this.labelKey=r},r=[{key:"getAllType",value:function(){return[l.ALL,l.EXPLICIT,l.IMPLICIT]}},{key:"getContextType",value:function(e){return this.getAllType().find((function(t){return t.id===e}))}}],(t=null)&&o(e.prototype,t),r&&o(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,r}(),l={ALL:new a("all","explore.explicit.implicit"),EXPLICIT:new a("explicit","explore.explicit"),IMPLICIT:new a("implicit","explore.implicit")}},175:function(e,t){angular.module("graphdb.workbench.utils.filetypes",[]).value("FileTypes",[{name:"JSON",translateKey:"download.as.json",type:"application/rdf+json",extension:".json"},{name:"JSON-LD",translateKey:"download.as.jsonld",type:"application/ld+json",extension:".jsonld"},{name:"NDJSON-LD",translateKey:"download.as.ndjsonld",type:"application/x-ld+ndjson",extension:".ndjsonld"},{name:"RDF-XML",translateKey:"download.as.rdfxml",type:"application/rdf+xml",extension:".rdf"},{name:"N3",translateKey:"download.as.n3",type:"text/rdf+n3",extension:".n3"},{name:"N-Triples",translateKey:"download.as.ntriples",type:"text/plain",extension:".nt"},{name:"N-Quads",translateKey:"download.as.nquads",type:"text/x-nquads",extension:".nq"},{name:"Turtle",translateKey:"download.as.turtle",type:"text/turtle",extension:".ttl"},{name:"Turtle*",translateKey:"download.as.turtlestar",type:"application/x-turtlestar",extension:".ttls"},{name:"TriX",translateKey:"download.as.trix",type:"application/trix",extension:".trix"},{name:"TriG",translateKey:"download.as.trig",type:"application/x-trig",extension:".trig"},{name:"TriG*",translateKey:"download.as.trigstar",type:"application/x-trigstar",extension:".trigs"},{name:"Binary RDF",translateKey:"download.as.binaryrdf",type:"application/x-binary-rdf",extension:".brf"}])},176:function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,a(n.key),n)}}function i(e,t,r){return t&&o(e.prototype,t),r&&o(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function a(e){var t=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==n(t)?t:t+""}r.r(t),r.d(t,"ResourceDetails",(function(){return l}));var l=i((function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.image=void 0,this.uri=void 0,this.label=void 0,this.encodeURI=void 0,this.comment=void 0,this.context=void 0}))},216:function(e,t){angular.module("graphdb.framework.rest.explore.rest.service",[]).factory("ExploreRestService",r),r.$inject=["$http"];function r(e){return{getResourceDetails:function(t,r,n,o){return e.get("".concat("rest/explore","/details"),{params:{uri:t,triple:r,context:n},headers:{Accept:o||"application/json"}})},getGraph:function(t,r,n){return e.get("".concat("rest/explore","/graph"),{params:{uri:t.uri,triple:t.triple,inference:t.contextType.id,role:t.role,bnodes:t.blanks,sameAs:t.sameAs,context:t.context},headers:{Accept:r||"application/x-graphdb-table-results+json",Link:n?"<"+n+">":""}}).then((function(e){return e.data}))}}}},217:function(e,t,r){"use strict";r.r(t),r.d(t,"ResourceInfo",(function(){return s}));var n=r(176),o=r(149);function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,c(n.key),n)}}function l(e,t,r){return t&&a(e.prototype,t),r&&a(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function c(e){var t=function(e,t){if("object"!=i(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==i(t)?t:t+""}var s=l((function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.role="subject",this.uri=void 0,this.triple=void 0,this.context=void 0,this.contextType=o.ContextTypes.EXPLICIT,this.sameAs=!0,this.details=new n.ResourceDetails,this.blanks=!0}))},218:function(e,t,r){"use strict";r.r(t),r.d(t,"RoleType",(function(){return n}));var n={SUBJECT:"subject",PREDICATE:"predicate",OBJECT:"object",CONTEXT:"context",ALL:"all"}},269:function(e,t){function r(e){return{restrict:"A",scope:{min:"=",max:"="},link:function(t,r,n){var o,i={debounce:_.debounce,delay:100,loadDelay:10,compressor:1,min:n.fitTextMin||"inherit",max:n.fitTextMax||"inherit",calcSize:10,lines:1},a=r.parent(),l=r[0],c=l.style,s=window.getComputedStyle(r[0],null),u=r.children().length||i.lines,p="inherit"===i.min?s["font-size"]:i.min,f="inherit"===i.max?s["font-size"]:i.max,d=s["line-height"],h=s.display;function g(){var e=i.calcSize*u/l.offsetWidth/u;return Math.max(Math.min(function(e){var t=parseFloat(getComputedStyle(a[0]).paddingLeft),r=parseFloat(getComputedStyle(a[0]).paddingRight);return(a[0].offsetWidth-(t+r))*e*i.compressor}(e),parseFloat(f)),parseFloat(p))}function m(){o&&e.cancel(o),o=e((function(){l.offsetHeight*l.offsetWidth!=0&&(c.fontSize=i.calcSize+"px",c.lineHeight="1",c.display="inline-block",c.fontSize=g()+"px",c.lineHeight=d,c.display=h)}),i.loadDelay)}t.$watch((function(){return[a[0].offsetWidth,r[0].offsetWidth].join("_")}),(function(){m()})),$(window).on("resize",i.debounce((function(){t.$apply(m)}),i.delay)),t.$on("$destroy",(function(){o&&e.cancel(o),$(window).off("resize")}))}}}angular.module("graphdb.framework.core.directives.fittext",[]).directive("fitText",r),r.$inject=["$timeout"]},290:function(e,t){function r(){return{transformToTrig:function(e){for(var t="",r={},n=0;n<e.length;n++){var o=e[n];if(void 0===o.context?o.context="":o.context=_.trim(o.context),angular.isUndefined(r[o.context])){var i=[];i.push(o),r[o.context]=i}else r[o.context].push(o)}for(var a=Object.keys(r),l=0;l<a.length;l++){var c=a[l];t+=""===c?"\n{":"\n<"+c+"> {";for(var s=r[c],u=0;u<s.length;u++){var p=s[u];t+="\n\t<"+p.subject+"> <"+p.predicate+"> ";var f=p.object.value;"uri"===p.object.type?t+="<"+f+"> .":f.toString().includes('"')?("'"===f[0]&&(f='"'+f.slice(1,f.length)),f[f.length-1]&&(f=f.slice(0,-1)+'"'),t+="'''"+f+"'''"+(p.object.datatype?"^^<"+p.object.datatype+">":p.object.lang?"@"+p.object.lang:"")+" ."):t+='"""'+f+'"""'+(p.object.datatype?"^^<"+p.object.datatype+">":p.object.lang?"@"+p.object.lang:"")+" ."}t+="\n}"}return t},buildStatements:function(e,t){var r=[];if(!_.isEmpty(e.data))for(var n=e.data[t],o=Object.keys(n),i=0;i<o.length;i++)for(var a=o[i],l=n[a],c=0;c<l.length;c++)for(var s=l[c],u=0;u<s.graphs.length;u++){var p=s.graphs[u];"http://www.ontotext.com/explicit"===p&&(p=""),s.lang&&(s.datatype=""),s.datatype||(s.datatype=""),r.push({subject:t,predicate:a,object:{value:s.value,type:s.type,datatype:s.datatype,lang:s.lang},context:p})}return r},getDatatypeOptions:function(){return[{value:"",label:"string"},{value:"http://www.w3.org/2001/XMLSchema#boolean",label:"boolean"},{value:"http://www.w3.org/2001/XMLSchema#decimal",label:"decimal"},{value:"http://www.w3.org/2001/XMLSchema#integer",label:"integer"},{value:"http://www.w3.org/2001/XMLSchema#double",label:"double"},{value:"http://www.w3.org/2001/XMLSchema#float",label:"float"},{value:"http://www.w3.org/2001/XMLSchema#date",label:"date"},{value:"http://www.w3.org/2001/XMLSchema#time",label:"time"},{value:"http://www.w3.org/2001/XMLSchema#dateTime",label:"date time"},{value:"http://www.w3.org/2001/XMLSchema#byte",label:"byte"},{value:"http://www.w3.org/2001/XMLSchema#short",label:"short"},{value:"http://www.w3.org/2001/XMLSchema#int",label:"int"},{value:"http://www.w3.org/2001/XMLSchema#long",label:"long"},{value:"http://www.w3.org/2001/XMLSchema#unsignedByte",label:"unsigned byte"},{value:"http://www.w3.org/2001/XMLSchema#unsignedShort",label:"unsigned short"},{value:"http://www.w3.org/2001/XMLSchema#unsignedInt",label:"unsigned int"},{value:"http://www.w3.org/2001/XMLSchema#unsignedLong",label:"unsigned long"},{value:"http://www.w3.org/2001/XMLSchema#positoveInteger",label:"positive integer"},{value:"http://www.w3.org/2001/XMLSchema#nonNegativeInteger",label:"non-negative integer"},{value:"http://www.w3.org/2001/XMLSchema#negativeInteger",label:"negative integer"},{value:"http://www.w3.org/2001/XMLSchema#nonPositiveInteger",label:"non-positive integer"},{value:"http://www.w3.org/2001/XMLSchema#gYear",label:"gYear"},{value:"http://www.w3.org/2001/XMLSchema#gMonth",label:"gMonth"},{value:"http://www.w3.org/2001/XMLSchema#gDay",label:"gDay"},{value:"http://www.w3.org/2001/XMLSchema#gYearMonth",label:"gYearMonth"},{value:"http://www.w3.org/2001/XMLSchema#gMonthDay",label:"gMonthDay"},{value:"http://www.w3.org/2001/XMLSchema#duration",label:"duration"},{value:"http://www.w3.org/2001/XMLSchema#hexBinary",label:"hex binary"},{value:"http://www.w3.org/2001/XMLSchema#base64Binary",label:"base64 binary"}]}}}angular.module("graphdb.framework.explore.services",[]).factory("StatementsService",r),r.$inject=[]},291:function(e,t,r){"use strict";r.r(t);r(175),r(216);var n=r(639),o=r(1),i=r(217),a=r(149),l=r(218),c=r(104),s=r(27),u=r(740),p=r(154);function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function d(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],c=!0,s=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return h(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?h(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function g(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */g=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function u(e,t,r,n){var i=t&&t.prototype instanceof v?t:v,a=Object.create(i.prototype),l=new O(n||[]);return o(a,"_invoke",{value:L(e,r,l)}),a}function p(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var d="suspendedStart",h="executing",m="completed",y={};function v(){}function w(){}function b(){}var x={};s(x,a,(function(){return this}));var S=Object.getPrototypeOf,R=S&&S(S(A([])));R&&R!==r&&n.call(R,a)&&(x=R);var I=b.prototype=v.prototype=Object.create(x);function C(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function T(e,t){function r(o,i,a,l){var c=p(e[o],e,i);if("throw"!==c.type){var s=c.arg,u=s.value;return u&&"object"==f(u)&&n.call(u,"__await")?t.resolve(u.__await).then((function(e){r("next",e,a,l)}),(function(e){r("throw",e,a,l)})):t.resolve(u).then((function(e){s.value=e,a(s)}),(function(e){return r("throw",e,a,l)}))}l(c.arg)}var i;o(this,"_invoke",{value:function(e,n){function o(){return new t((function(t,o){r(e,n,t,o)}))}return i=i?i.then(o,o):o()}})}function L(t,r,n){var o=d;return function(i,a){if(o===h)throw Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var l=n.delegate;if(l){var c=$(l,n);if(c){if(c===y)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===d)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=h;var s=p(t,r,n);if("normal"===s.type){if(o=n.done?m:"suspendedYield",s.arg===y)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=m,n.method="throw",n.arg=s.arg)}}}function $(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,$(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=p(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function j(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function O(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(j,this),this.reset(!0)}function A(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return i.next=i}}throw new TypeError(f(t)+" is not iterable")}return w.prototype=b,o(I,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:w,configurable:!0}),w.displayName=s(b,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===w||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,s(e,c,"GeneratorFunction")),e.prototype=Object.create(I),e},t.awrap=function(e){return{__await:e}},C(T.prototype),s(T.prototype,l,(function(){return this})),t.AsyncIterator=T,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new T(u(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},C(I),s(I,c,"Generator"),s(I,a,(function(){return this})),s(I,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=A,O.prototype={constructor:O,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(E),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return l.type="throw",l.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],l=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(c&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),E(r),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;E(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:A(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),y}},t}function m(e,t,r,n,o,i,a){try{var l=e[i](a),c=l.value}catch(e){return void r(e)}l.done?t(c):Promise.resolve(c).then(n,o)}function y(e,t,r,o,f,h,y,v,w,b,x,S,R,I){var C;e.ContextTypes=a.ContextTypes,e.contextTypes=a.ContextType.getAllType(),e.currentContextTypeId=a.ContextTypes.EXPLICIT.id,e.roles=[l.RoleType.SUBJECT,l.RoleType.PREDICATE,l.RoleType.OBJECT,l.RoleType.CONTEXT,l.RoleType.ALL],e.resourceInfo=void 0,e.isLoading=!1,e.fileTypes=b,e.toggleSameAs=function(){e.resourceInfo.sameAs=!e.resourceInfo.sameAs,e.exploreResource()},e.getActiveRepository=function(){return f.getActiveRepository()},e.isTripleResource=function(){return!!e.resourceInfo.triple},e.encodeURIComponent=function(e){return encodeURIComponent(e)},e.getRdfStarLocalNames=function(e){var t=e.slice();return e.replace(/[<>]+/g,"").split(" ").forEach((function(e){t=t.replace(e,y.getLocalName(e))})),t},e.getLocalName=function(e){return y.getLocalName(e)};e.loadResource=function(){I.getResourceDetails(e.resourceInfo.uri,e.resourceInfo.triple,e.resourceInfo.context).success((function(t){e.resourceInfo.details=t,e.resourceInfo.context=e.resourceInfo.details.context,"object"!==e.resourceInfo.uri&&(e.resourceInfo.details.encodeURI=encodeURIComponent(e.resourceInfo.details.uri))})).error((function(e){return r.error(S.instant("explore.error.resource.details",{data:getError(e)}))})),e.exploreResource()},e.isContextAvailable=function(){return null!==e.resourceInfo.context&&"http://rdf4j.org/schema/rdf4j#SHACLShapeGraph"===e.resourceInfo.context},e.goToGraphsViz=function(){t.path("graphs-visualizations").search("uri",e.resourceInfo.uri)},e.exploreResource=function(){L(!0),null!=o.context&&(e.resourceInfo.context=o.context),t.search("role",e.resourceInfo.role),t.replace(),j()},e.downloadExport=function(t){I.getGraph(e.resourceInfo,t.type).then((function(e){t.type.indexOf("json")>-1&&(e=JSON.stringify(e));var r=navigator.userAgent.toLowerCase();if(-1!==r.indexOf("safari")&&-1===r.indexOf("chrome"))window.open('data:attachment/csv;filename="statements.'+t.extension+'",'+encodeURIComponent(e),"statements."+t.extension);else{var o=new Blob([e],{type:t.type});Object(n.saveAs)(o,"statements"+t.extension)}})).catch((function(e){r.error(getError(e),S.instant("common.error"))})).finally((function(){L(!1)}))},e.openJSONLDExportSettings=function(t){h.open({templateUrl:"js/angular/core/components/export-settings-modal/exportSettingsModal.html",controller:p.ExportSettingsCtrl,size:"lg",scope:e,resolve:{format:function(){return t.name}}}).result.then((function(r){e.downloadJSONLDExport(t,r.link,r.currentMode)}))},e.downloadJSONLDExport=function(t,o,i){I.getGraph(e.resourceInfo,t.type,o).then(function(){var e,r=(e=g().mark((function e(r){var a,l;return g().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("JSON"===t.name&&(r=JSON.stringify(r)),"JSON-LD"!==t.name){e.next=35;break}e.t0=i.name,e.next="expanded"===e.t0?5:"flattened"===e.t0?10:"compacted"===e.t0?15:"context"===e.t0?20:"frame"===e.t0?25:"framed"===e.t0?30:35;break;case 5:return e.next=7,u.expand(r);case 7:return r=e.sent,r=JSON.stringify(r),e.abrupt("break",35);case 10:return e.next=12,u.flatten(r,o);case 12:return r=e.sent,r=JSON.stringify(r),e.abrupt("break",35);case 15:return e.next=17,u.compact(r,o);case 17:return r=e.sent,r=JSON.stringify(r),e.abrupt("break",35);case 20:return e.next=22,u.context(r,o);case 22:return r=e.sent,r=JSON.stringify(r),e.abrupt("break",35);case 25:return e.next=27,u.frame(r,o);case 27:return r=e.sent,r=JSON.stringify(r),e.abrupt("break",35);case 30:return e.next=32,u.compact(r,o);case 32:return r=e.sent,r=JSON.stringify(r),e.abrupt("break",35);case 35:-1!==(a=navigator.userAgent.toLowerCase()).indexOf("safari")&&-1===a.indexOf("chrome")?window.open('data:attachment/csv;filename="statements.'+t.extension+'",'+encodeURIComponent(r),"statements."+t.extension):(l=new Blob([r],{type:t.type}),Object(n.saveAs)(l,"statements"+t.extension));case 37:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){m(i,n,o,a,l,"next",e)}function l(e){m(i,n,o,a,l,"throw",e)}a(void 0)}))});return function(e){return r.apply(this,arguments)}}()).catch((function(e){var t=getError(e);r.error(t,S.instant("common.error"))}))},e.changeRole=function(t){e.resourceInfo.role=t,e.resourceInfo.role===l.RoleType.CONTEXT&&(e.resourceInfo.contextType=a.ContextTypes.EXPLICIT),e.exploreResource()},e.changeInference=function(t){e.resourceInfo.contextType=a.ContextType.getContextType(t),e.exploreResource()},e.copyToClipboardResult=function(e){v.openCopyToClipboardModal(e)};var T=function(){var r;e.resourceInfo||(e.resourceInfo=new i.ResourceInfo,r=e.resourceInfo,o.prefix&&o.localName&&C[o.prefix]?r.uri=C[o.prefix]+o.localName:t.search().uri?r.uri=t.search().uri+(t.hash()?"#"+t.hash():""):t.search().triple?r.triple=t.search().triple+(t.hash()?"#"+t.hash():""):r.uri=t.absUrl(),r.uri=r.uri&&r.uri.replace(/<|>/g,""),null!=o.context&&(e.resourceInfo.context=o.context),e.resourceInfo.role=t.search().role?t.search().role:l.RoleType.SUBJECT)},L=function(t){e.isLoading=!!t},$=function(){return{showEditorTabs:!1,showToolbar:!1,showResultTabs:!1,showResultInfo:!0,downloadAsOn:!1,showQueryButton:!1,componentId:"resource-view-component",prefixes:C,maxPersistentResponseSize:0,render:c.RenderingMode.YASR,showYasqeActionButtons:!1,yasqeActionButtons:s.DISABLE_YASQE_BUTTONS_CONFIGURATION}},j=function(){I.getGraph(e.resourceInfo).then((function(t){!function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r={};angular.extend(r,e.yasguiConfig||$(),t),e.yasguiConfig=r}({sparqlResponse:t})})).catch((function(e){r.error(S.instant("explore.error.resource",{data:getError(e)}))})).finally((function(){L(!1)}))},E=function(t){e.resourceInfo.contextType=t.appSettings.DEFAULT_INFERENCE&&!e.resourceInfo.role===l.RoleType.CONTEXT?a.ContextTypes.ALL:a.ContextTypes.EXPLICIT,e.resourceInfo.sameAs=t.appSettings.DEFAULT_INFERENCE&&t.appSettings.DEFAULT_SAMEAS};e.$on("$destroy",(function(){O.forEach((function(e){return e()}))}));var O=[];O.push(e.$watch((function(){return e.getActiveRepositoryObject()}),(function(t){t&&Promise.all([x.getPrincipal(),f.getPrefixes(f.getActiveRepository())]).then((function(t){var r=d(t,2),n=r[0],o=r[1];T(),E(n),C=o,e.loadResource()})).catch((function(e){r.error(S.instant("get.namespaces.error.msg",{error:getError(e)}))}))})))}function v(e,t,r,n,i,a,l,c,s,u,p,f){function d(){c.checkAutocompleteStatus().success((function(t){if(!t){var r=Object(o.decodeHTML)(f.instant("explore.autocomplete.warning.msg"));l.warning("",'<div class="autocomplete-toast"><a href="autocomplete">'.concat(r,"</a></div>"),{allowHtml:!0})}e.autocompleteEnabled=t})).error((function(){l.error(f.instant("explore.error.autocomplete"))}))}function h(){p.getNamespaces(n.getActiveRepository()).success((function(t){e.namespaces=t.results.bindings.map((function(e){return{prefix:e.prefix.value,uri:e.namespace.value}})),e.loader=!1})).error((function(t){var r=getError(t);l.error(r,f.instant("common.error")),e.loader=!1}))}function g(e){var t=e.indexOf("<")>=0&&e.lastIndexOf(">")===e.length-1,r=-1===e.indexOf("<")&&-1===e.lastIndexOf(">"),n=/^<?[http|urn].*>?$/.test(e)&&(t||r),o=!1;if(n)if(e.indexOf("http")>=0){var i=e.indexOf("//");o=i>4&&e.substring(i+2).length>0}else e.indexOf("urn")>=0&&(o=e.substring(4).length>0);return n&&o}var m,y;function v(t){function n(t){a((function(){e.form&&(e.form.$dirty=t)}))}t||(t=document.getElementById("resources_finder_value").value),t&&g(t)?(n(!1),r.path("resource").search("uri",t)):(n(!0),t&&l.error(f.instant("explore.error.invalid.input")))}e.submit=v,e.getAutocompleteSuggestions=function(t){var r;if(!/<|>/.test(t)&&":"===t.slice(-1)){var n=s.getNamespaceUriForPrefix(e.namespaces,t.slice(0,-1));(y=n!==y?n:y)&&$("#resources_finder_value").val(y)}if(e.autocompleteEnabled){var o=t.replace(y,y+";");r=c.getAutocompleteSuggestions(o)}else r=i.when(e.autocompleteEnabled);return r},e.inputChangedFn=function(){m=document.getElementById("resources_finder_value").value,e.form.$dirty=!(m&&g(m))},e.selectedUriCallback=function(t){e.selectedUri={name:t.title},v(e.selectedUri.name)},e.selectedUri={name:""},e.autocompleteEnabled=!1,angular.isDefined(u.search)&&a((function(){$("#resources_finder_value").val(u.search),$(".search-button").click()}),500),e.getActiveRepository()&&(d(),h()),e.$on("repositoryIsSet",(function(){d(),h()}))}function w(e,t,r,n,o,i,a,l,c,s,u){e.uriParam=r.search().uri,e.newRow={subject:e.uriParam,object:{type:"uri",datatype:""}},e.newResource=!1,e.datatypeOptions=c.getDatatypeOptions(),e.activeRepository=function(){return o.getActiveRepository()},e.getClassInstancesDetails=function(){s.getNamespaces(e.activeRepository()).success((function(t){e.namespaces=t.results.bindings.map((function(e){return{prefix:e.prefix.value,uri:e.namespace.value}})),e.loader=!1})).error((function(t){var r=getError(t);n.error(r,u.instant("common.error")),e.loader=!1})),l.getDetails(e.uriParam).success((function(t){e.details=t,e.details.encodeURI=encodeURIComponent(e.details.uri)})).error((function(e){n.error(u.instant("explore.error.resource.details",{data:getError(e)}))})),l.getGraph(e.uriParam).then((function(t){var r=c.buildStatements(t,e.uriParam);e.statements=r,e.newResource=!r.length}))},e.addStatement=function(){e.newRowPredicate.$setSubmitted(),e.newRowObject.$setSubmitted(),e.newRowContext.$setSubmitted(),e.newRowPredicate.$valid&&e.newRowObject.$valid&&e.newRowContext.$valid&&(e.statements.push(_.cloneDeep(e.newRow)),e.newRow={subject:e.uriParam,object:{type:"uri",datatype:""}},e.newRowPredicate.$setPristine(),e.newRowPredicate.$setUntouched(),e.newRowObject.$setPristine(),e.newRowObject.$setUntouched(),e.newRowContext.$setPristine(),e.newRowContext.$setUntouched())},e.removeStatement=function(t){e.statements.splice(t,1)},e.getLocalName=function(e){return l.getLocalName(e)},e.checkValid=function(e){if(!angular.isUndefined(e))return!0;return u.instant("explore.validation")},e.validEditRow=function(){return e.rowform.$valid},e.viewTrig=function(){i.open({templateUrl:"js/angular/explore/templates/viewTrig.html",controller:"ViewTrigCtrl",size:"lg",resolve:{data:function(){return c.transformToTrig(e.statements)}}})},e.save=function(){var o=e.newResource?"POST":"PUT";t({method:o,url:"rest/resource?uri="+encodeURIComponent(e.uriParam),headers:{"Content-Type":"application/x-trig"},data:c.transformToTrig(e.statements)}).success((function(){n.success(u.instant("explore.resource.saved"));var t=a((function(){r.path("resource").search("uri",e.uriParam)}),500);e.$on("$destroy",(function(){a.cancel(t)}))})).error((function(e){n.error(getError(e))}))},e.$watch((function(){return o.getActiveRepository()}),(function(){e.activeRepository()&&e.getClassInstancesDetails()})),e.validateUri=function(t){var r=!0,n=t||"";if(-1===n.indexOf(":"))r=!1;else{var o=n.substring(0,n.indexOf(":"));if(""===l.getNamespaceUriForPrefix(e.namespaces,o)){!1===/^(http:\/\/www\.|https:\/\/www\.|http:\/\/|https:\/\/)[a-z0-9]+([\-\.]{1}[a-z0-9]+)*\.[a-z]{2,5}(:[0-9]{1,5})?(\/.*)?$/.test(n)&&(r=!1);var i=n.match(/\//g);(void 0===i||i.length<3)&&(r=!1)}else{n.substring(n.indexOf(":")+1).trim().length<1&&(r=!1)}}return r}}function b(e,t,r){e.trig=r,e.cancel=function(){t.dismiss("cancel")}}angular.module("graphdb.framework.explore.controllers",["ngCookies","ngRoute","ui.bootstrap","toastr","graphdb.framework.core","graphdb.framework.core.services.repositories","graphdb.framework.explore.services","graphdb.workbench.utils.filetypes","graphdb.framework.rest.explore.rest.service"]).controller("FindResourceCtrl",v).controller("ExploreCtrl",y).controller("EditResourceCtrl",w).controller("ViewTrigCtrl",b),y.$inject=["$scope","$location","toastr","$routeParams","$repositories","$uibModal","ClassInstanceDetailsService","ModalService","RDF4JRepositoriesRestService","FileTypes","$jwtAuth","$translate","$q","ExploreRestService"],v.$inject=["$scope","$http","$location","$repositories","$q","$timeout","toastr","AutocompleteRestService","ClassInstanceDetailsService","$routeParams","RDF4JRepositoriesRestService","$translate"],w.$inject=["$scope","$http","$location","toastr","$repositories","$uibModal","$timeout","ClassInstanceDetailsService","StatementsService","RDF4JRepositoriesRestService","$translate"],b.$inject=["$scope","$uibModalInstance","data"]},292:function(e,t,r){"use strict";r.r(t);r(56);angular.module("graphdb.framework.explore.directives",["graphdb.framework.utils.uriutils"]).directive("uri",["UriUtils",function(e){return{require:"ngModel",link:function(t,r,n,o){o.$parsers.unshift((function(t){if(!angular.isUndefined(t)&&t.length>0){var r=e.validateRdfUri(t);return o.$setValidity("searchStr",r),r?t:void 0}return o.$setValidity("searchStr",!0),t})),o.$formatters.unshift((function(t){return angular.isUndefined(t)||o.$setValidity("searchStr",e.validateRdfUri),t}))}}}])},393:function(e,t,r){"use strict";r.r(t);r(10),r(52),r(290),r(291),r(292),r(748),r(901),r(269),r(167);angular.module("graphdb.framework.explore",["ngRoute","toastr","xeditable","angucomplete-alt-onto","graphdb.framework.explore.services","graphdb.framework.explore.controllers","graphdb.framework.explore.directives","graphdb.framework.core.directives.fittext","graphdb.framework.core.directives.yasgui-component"])},745:function(e,t){},901:function(e,t){function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}
1
+ (window.webpackJsonp=window.webpackJsonp||[]).push([[32,96,169,182,184,297,312,313,315,355,387],{104:function(e,t,r){"use strict";r.r(t),r.d(t,"RenderingMode",(function(){return n}));var n={YASGUI:"mode-yasgui",YASQE:"mode-yasqe",YASR:"mode-yasr"}},150:function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,i(n.key),n)}}function i(e){var t=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==n(t)?t:t+""}r.r(t),r.d(t,"ContextType",(function(){return a})),r.d(t,"ContextTypes",(function(){return l}));var a=function(){return e=function e(t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.id=t,this.labelKey=r},r=[{key:"getAllType",value:function(){return[l.ALL,l.EXPLICIT,l.IMPLICIT]}},{key:"getContextType",value:function(e){return this.getAllType().find((function(t){return t.id===e}))}}],(t=null)&&o(e.prototype,t),r&&o(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,r}(),l={ALL:new a("all","explore.explicit.implicit"),EXPLICIT:new a("explicit","explore.explicit"),IMPLICIT:new a("implicit","explore.implicit")}},175:function(e,t){angular.module("graphdb.workbench.utils.filetypes",[]).value("FileTypes",[{name:"JSON",translateKey:"download.as.json",type:"application/rdf+json",extension:".json"},{name:"JSON-LD",translateKey:"download.as.jsonld",type:"application/ld+json",extension:".jsonld"},{name:"NDJSON-LD",translateKey:"download.as.ndjsonld",type:"application/x-ld+ndjson",extension:".ndjsonld"},{name:"RDF-XML",translateKey:"download.as.rdfxml",type:"application/rdf+xml",extension:".rdf"},{name:"N3",translateKey:"download.as.n3",type:"text/rdf+n3",extension:".n3"},{name:"N-Triples",translateKey:"download.as.ntriples",type:"text/plain",extension:".nt"},{name:"N-Quads",translateKey:"download.as.nquads",type:"text/x-nquads",extension:".nq"},{name:"Turtle",translateKey:"download.as.turtle",type:"text/turtle",extension:".ttl"},{name:"Turtle*",translateKey:"download.as.turtlestar",type:"application/x-turtlestar",extension:".ttls"},{name:"TriX",translateKey:"download.as.trix",type:"application/trix",extension:".trix"},{name:"TriG",translateKey:"download.as.trig",type:"application/x-trig",extension:".trig"},{name:"TriG*",translateKey:"download.as.trigstar",type:"application/x-trigstar",extension:".trigs"},{name:"Binary RDF",translateKey:"download.as.binaryrdf",type:"application/x-binary-rdf",extension:".brf"}])},176:function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,a(n.key),n)}}function i(e,t,r){return t&&o(e.prototype,t),r&&o(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function a(e){var t=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==n(t)?t:t+""}r.r(t),r.d(t,"ResourceDetails",(function(){return l}));var l=i((function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.image=void 0,this.uri=void 0,this.label=void 0,this.encodeURI=void 0,this.comment=void 0,this.context=void 0}))},216:function(e,t){angular.module("graphdb.framework.rest.explore.rest.service",[]).factory("ExploreRestService",r),r.$inject=["$http"];function r(e){return{getResourceDetails:function(t,r,n,o){return e.get("".concat("rest/explore","/details"),{params:{uri:t,triple:r,context:n},headers:{Accept:o||"application/json"}})},getGraph:function(t,r,n){return e.get("".concat("rest/explore","/graph"),{params:{uri:t.uri,triple:t.triple,inference:t.contextType.id,role:t.role,bnodes:t.blanks,sameAs:t.sameAs,context:t.context},headers:{Accept:r||"application/x-graphdb-table-results+json",Link:n?"<"+n+">":""}}).then((function(e){return e.data}))}}}},217:function(e,t,r){"use strict";r.r(t),r.d(t,"ResourceInfo",(function(){return s}));var n=r(176),o=r(150);function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,c(n.key),n)}}function l(e,t,r){return t&&a(e.prototype,t),r&&a(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function c(e){var t=function(e,t){if("object"!=i(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==i(t)?t:t+""}var s=l((function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.role="subject",this.uri=void 0,this.triple=void 0,this.context=void 0,this.contextType=o.ContextTypes.EXPLICIT,this.sameAs=!0,this.details=new n.ResourceDetails,this.blanks=!0}))},218:function(e,t,r){"use strict";r.r(t),r.d(t,"RoleType",(function(){return n}));var n={SUBJECT:"subject",PREDICATE:"predicate",OBJECT:"object",CONTEXT:"context",ALL:"all"}},269:function(e,t){function r(e){return{restrict:"A",scope:{min:"=",max:"="},link:function(t,r,n){var o,i={debounce:_.debounce,delay:100,loadDelay:10,compressor:1,min:n.fitTextMin||"inherit",max:n.fitTextMax||"inherit",calcSize:10,lines:1},a=r.parent(),l=r[0],c=l.style,s=window.getComputedStyle(r[0],null),u=r.children().length||i.lines,p="inherit"===i.min?s["font-size"]:i.min,f="inherit"===i.max?s["font-size"]:i.max,d=s["line-height"],h=s.display;function g(){var e=i.calcSize*u/l.offsetWidth/u;return Math.max(Math.min(function(e){var t=parseFloat(getComputedStyle(a[0]).paddingLeft),r=parseFloat(getComputedStyle(a[0]).paddingRight);return(a[0].offsetWidth-(t+r))*e*i.compressor}(e),parseFloat(f)),parseFloat(p))}function m(){o&&e.cancel(o),o=e((function(){l.offsetHeight*l.offsetWidth!=0&&(c.fontSize=i.calcSize+"px",c.lineHeight="1",c.display="inline-block",c.fontSize=g()+"px",c.lineHeight=d,c.display=h)}),i.loadDelay)}t.$watch((function(){return[a[0].offsetWidth,r[0].offsetWidth].join("_")}),(function(){m()})),$(window).on("resize",i.debounce((function(){t.$apply(m)}),i.delay)),t.$on("$destroy",(function(){o&&e.cancel(o),$(window).off("resize")}))}}}angular.module("graphdb.framework.core.directives.fittext",[]).directive("fitText",r),r.$inject=["$timeout"]},290:function(e,t){function r(){return{transformToTrig:function(e){for(var t="",r={},n=0;n<e.length;n++){var o=e[n];if(void 0===o.context?o.context="":o.context=_.trim(o.context),angular.isUndefined(r[o.context])){var i=[];i.push(o),r[o.context]=i}else r[o.context].push(o)}for(var a=Object.keys(r),l=0;l<a.length;l++){var c=a[l];t+=""===c?"\n{":"\n<"+c+"> {";for(var s=r[c],u=0;u<s.length;u++){var p=s[u];t+="\n\t<"+p.subject+"> <"+p.predicate+"> ";var f=p.object.value;"uri"===p.object.type?t+="<"+f+"> .":f.toString().includes('"')?("'"===f[0]&&(f='"'+f.slice(1,f.length)),f[f.length-1]&&(f=f.slice(0,-1)+'"'),t+="'''"+f+"'''"+(p.object.datatype?"^^<"+p.object.datatype+">":p.object.lang?"@"+p.object.lang:"")+" ."):t+='"""'+f+'"""'+(p.object.datatype?"^^<"+p.object.datatype+">":p.object.lang?"@"+p.object.lang:"")+" ."}t+="\n}"}return t},buildStatements:function(e,t){var r=[];if(!_.isEmpty(e.data))for(var n=e.data[t],o=Object.keys(n),i=0;i<o.length;i++)for(var a=o[i],l=n[a],c=0;c<l.length;c++)for(var s=l[c],u=0;u<s.graphs.length;u++){var p=s.graphs[u];"http://www.ontotext.com/explicit"===p&&(p=""),s.lang&&(s.datatype=""),s.datatype||(s.datatype=""),r.push({subject:t,predicate:a,object:{value:s.value,type:s.type,datatype:s.datatype,lang:s.lang},context:p})}return r},getDatatypeOptions:function(){return[{value:"",label:"string"},{value:"http://www.w3.org/2001/XMLSchema#boolean",label:"boolean"},{value:"http://www.w3.org/2001/XMLSchema#decimal",label:"decimal"},{value:"http://www.w3.org/2001/XMLSchema#integer",label:"integer"},{value:"http://www.w3.org/2001/XMLSchema#double",label:"double"},{value:"http://www.w3.org/2001/XMLSchema#float",label:"float"},{value:"http://www.w3.org/2001/XMLSchema#date",label:"date"},{value:"http://www.w3.org/2001/XMLSchema#time",label:"time"},{value:"http://www.w3.org/2001/XMLSchema#dateTime",label:"date time"},{value:"http://www.w3.org/2001/XMLSchema#byte",label:"byte"},{value:"http://www.w3.org/2001/XMLSchema#short",label:"short"},{value:"http://www.w3.org/2001/XMLSchema#int",label:"int"},{value:"http://www.w3.org/2001/XMLSchema#long",label:"long"},{value:"http://www.w3.org/2001/XMLSchema#unsignedByte",label:"unsigned byte"},{value:"http://www.w3.org/2001/XMLSchema#unsignedShort",label:"unsigned short"},{value:"http://www.w3.org/2001/XMLSchema#unsignedInt",label:"unsigned int"},{value:"http://www.w3.org/2001/XMLSchema#unsignedLong",label:"unsigned long"},{value:"http://www.w3.org/2001/XMLSchema#positoveInteger",label:"positive integer"},{value:"http://www.w3.org/2001/XMLSchema#nonNegativeInteger",label:"non-negative integer"},{value:"http://www.w3.org/2001/XMLSchema#negativeInteger",label:"negative integer"},{value:"http://www.w3.org/2001/XMLSchema#nonPositiveInteger",label:"non-positive integer"},{value:"http://www.w3.org/2001/XMLSchema#gYear",label:"gYear"},{value:"http://www.w3.org/2001/XMLSchema#gMonth",label:"gMonth"},{value:"http://www.w3.org/2001/XMLSchema#gDay",label:"gDay"},{value:"http://www.w3.org/2001/XMLSchema#gYearMonth",label:"gYearMonth"},{value:"http://www.w3.org/2001/XMLSchema#gMonthDay",label:"gMonthDay"},{value:"http://www.w3.org/2001/XMLSchema#duration",label:"duration"},{value:"http://www.w3.org/2001/XMLSchema#hexBinary",label:"hex binary"},{value:"http://www.w3.org/2001/XMLSchema#base64Binary",label:"base64 binary"}]}}}angular.module("graphdb.framework.explore.services",[]).factory("StatementsService",r),r.$inject=[]},291:function(e,t,r){"use strict";r.r(t);r(175),r(216);var n=r(639),o=r(1),i=r(217),a=r(150),l=r(218),c=r(104),s=r(27),u=r(740),p=r(155);function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function d(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],c=!0,s=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return h(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?h(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function g(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */g=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function u(e,t,r,n){var i=t&&t.prototype instanceof v?t:v,a=Object.create(i.prototype),l=new O(n||[]);return o(a,"_invoke",{value:L(e,r,l)}),a}function p(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var d="suspendedStart",h="executing",m="completed",y={};function v(){}function w(){}function b(){}var x={};s(x,a,(function(){return this}));var S=Object.getPrototypeOf,R=S&&S(S(A([])));R&&R!==r&&n.call(R,a)&&(x=R);var I=b.prototype=v.prototype=Object.create(x);function C(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function T(e,t){function r(o,i,a,l){var c=p(e[o],e,i);if("throw"!==c.type){var s=c.arg,u=s.value;return u&&"object"==f(u)&&n.call(u,"__await")?t.resolve(u.__await).then((function(e){r("next",e,a,l)}),(function(e){r("throw",e,a,l)})):t.resolve(u).then((function(e){s.value=e,a(s)}),(function(e){return r("throw",e,a,l)}))}l(c.arg)}var i;o(this,"_invoke",{value:function(e,n){function o(){return new t((function(t,o){r(e,n,t,o)}))}return i=i?i.then(o,o):o()}})}function L(t,r,n){var o=d;return function(i,a){if(o===h)throw Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var l=n.delegate;if(l){var c=$(l,n);if(c){if(c===y)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===d)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=h;var s=p(t,r,n);if("normal"===s.type){if(o=n.done?m:"suspendedYield",s.arg===y)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=m,n.method="throw",n.arg=s.arg)}}}function $(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,$(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=p(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function j(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function O(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(j,this),this.reset(!0)}function A(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return i.next=i}}throw new TypeError(f(t)+" is not iterable")}return w.prototype=b,o(I,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:w,configurable:!0}),w.displayName=s(b,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===w||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,s(e,c,"GeneratorFunction")),e.prototype=Object.create(I),e},t.awrap=function(e){return{__await:e}},C(T.prototype),s(T.prototype,l,(function(){return this})),t.AsyncIterator=T,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new T(u(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},C(I),s(I,c,"Generator"),s(I,a,(function(){return this})),s(I,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=A,O.prototype={constructor:O,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(E),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return l.type="throw",l.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],l=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(c&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),E(r),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;E(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:A(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),y}},t}function m(e,t,r,n,o,i,a){try{var l=e[i](a),c=l.value}catch(e){return void r(e)}l.done?t(c):Promise.resolve(c).then(n,o)}function y(e,t,r,o,f,h,y,v,w,b,x,S,R,I){var C;e.ContextTypes=a.ContextTypes,e.contextTypes=a.ContextType.getAllType(),e.currentContextTypeId=a.ContextTypes.EXPLICIT.id,e.roles=[l.RoleType.SUBJECT,l.RoleType.PREDICATE,l.RoleType.OBJECT,l.RoleType.CONTEXT,l.RoleType.ALL],e.resourceInfo=void 0,e.isLoading=!1,e.fileTypes=b,e.toggleSameAs=function(){e.resourceInfo.sameAs=!e.resourceInfo.sameAs,e.exploreResource()},e.getActiveRepository=function(){return f.getActiveRepository()},e.isTripleResource=function(){return!!e.resourceInfo.triple},e.encodeURIComponent=function(e){return encodeURIComponent(e)},e.getRdfStarLocalNames=function(e){var t=e.slice();return e.replace(/[<>]+/g,"").split(" ").forEach((function(e){t=t.replace(e,y.getLocalName(e))})),t},e.getLocalName=function(e){return y.getLocalName(e)};e.loadResource=function(){I.getResourceDetails(e.resourceInfo.uri,e.resourceInfo.triple,e.resourceInfo.context).success((function(t){e.resourceInfo.details=t,e.resourceInfo.context=e.resourceInfo.details.context,"object"!==e.resourceInfo.uri&&(e.resourceInfo.details.encodeURI=encodeURIComponent(e.resourceInfo.details.uri))})).error((function(e){return r.error(S.instant("explore.error.resource.details",{data:getError(e)}))})),e.exploreResource()},e.isContextAvailable=function(){return null!==e.resourceInfo.context&&"http://rdf4j.org/schema/rdf4j#SHACLShapeGraph"===e.resourceInfo.context},e.goToGraphsViz=function(){t.path("graphs-visualizations").search("uri",e.resourceInfo.uri)},e.exploreResource=function(){L(!0),null!=o.context&&(e.resourceInfo.context=o.context),t.search("role",e.resourceInfo.role),t.replace(),j()},e.downloadExport=function(t){I.getGraph(e.resourceInfo,t.type).then((function(e){t.type.indexOf("json")>-1&&(e=JSON.stringify(e));var r=navigator.userAgent.toLowerCase();if(-1!==r.indexOf("safari")&&-1===r.indexOf("chrome"))window.open('data:attachment/csv;filename="statements.'+t.extension+'",'+encodeURIComponent(e),"statements."+t.extension);else{var o=new Blob([e],{type:t.type});Object(n.saveAs)(o,"statements"+t.extension)}})).catch((function(e){r.error(getError(e),S.instant("common.error"))})).finally((function(){L(!1)}))},e.openJSONLDExportSettings=function(t){h.open({templateUrl:"js/angular/core/components/export-settings-modal/exportSettingsModal.html",controller:p.ExportSettingsCtrl,size:"lg",scope:e,resolve:{format:function(){return t.name}}}).result.then((function(r){e.downloadJSONLDExport(t,r.link,r.currentMode)}))},e.downloadJSONLDExport=function(t,o,i){I.getGraph(e.resourceInfo,t.type,o).then(function(){var e,r=(e=g().mark((function e(r){var a,l;return g().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("JSON"===t.name&&(r=JSON.stringify(r)),"JSON-LD"!==t.name){e.next=35;break}e.t0=i.name,e.next="expanded"===e.t0?5:"flattened"===e.t0?10:"compacted"===e.t0?15:"context"===e.t0?20:"frame"===e.t0?25:"framed"===e.t0?30:35;break;case 5:return e.next=7,u.expand(r);case 7:return r=e.sent,r=JSON.stringify(r),e.abrupt("break",35);case 10:return e.next=12,u.flatten(r,o);case 12:return r=e.sent,r=JSON.stringify(r),e.abrupt("break",35);case 15:return e.next=17,u.compact(r,o);case 17:return r=e.sent,r=JSON.stringify(r),e.abrupt("break",35);case 20:return e.next=22,u.context(r,o);case 22:return r=e.sent,r=JSON.stringify(r),e.abrupt("break",35);case 25:return e.next=27,u.frame(r,o);case 27:return r=e.sent,r=JSON.stringify(r),e.abrupt("break",35);case 30:return e.next=32,u.compact(r,o);case 32:return r=e.sent,r=JSON.stringify(r),e.abrupt("break",35);case 35:-1!==(a=navigator.userAgent.toLowerCase()).indexOf("safari")&&-1===a.indexOf("chrome")?window.open('data:attachment/csv;filename="statements.'+t.extension+'",'+encodeURIComponent(r),"statements."+t.extension):(l=new Blob([r],{type:t.type}),Object(n.saveAs)(l,"statements"+t.extension));case 37:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){m(i,n,o,a,l,"next",e)}function l(e){m(i,n,o,a,l,"throw",e)}a(void 0)}))});return function(e){return r.apply(this,arguments)}}()).catch((function(e){var t=getError(e);r.error(t,S.instant("common.error"))}))},e.changeRole=function(t){e.resourceInfo.role=t,e.resourceInfo.role===l.RoleType.CONTEXT&&(e.resourceInfo.contextType=a.ContextTypes.EXPLICIT),e.exploreResource()},e.changeInference=function(t){e.resourceInfo.contextType=a.ContextType.getContextType(t),e.exploreResource()},e.copyToClipboardResult=function(e){v.openCopyToClipboardModal(e)};var T=function(){var r;e.resourceInfo||(e.resourceInfo=new i.ResourceInfo,r=e.resourceInfo,o.prefix&&o.localName&&C[o.prefix]?r.uri=C[o.prefix]+o.localName:t.search().uri?r.uri=t.search().uri+(t.hash()?"#"+t.hash():""):t.search().triple?r.triple=t.search().triple+(t.hash()?"#"+t.hash():""):r.uri=t.absUrl(),r.uri=r.uri&&r.uri.replace(/<|>/g,""),null!=o.context&&(e.resourceInfo.context=o.context),e.resourceInfo.role=t.search().role?t.search().role:l.RoleType.SUBJECT)},L=function(t){e.isLoading=!!t},$=function(){return{showEditorTabs:!1,showToolbar:!1,showResultTabs:!1,showResultInfo:!0,downloadAsOn:!1,showQueryButton:!1,componentId:"resource-view-component",prefixes:C,maxPersistentResponseSize:0,render:c.RenderingMode.YASR,showYasqeActionButtons:!1,yasqeActionButtons:s.DISABLE_YASQE_BUTTONS_CONFIGURATION}},j=function(){I.getGraph(e.resourceInfo).then((function(t){!function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r={};angular.extend(r,e.yasguiConfig||$(),t),e.yasguiConfig=r}({sparqlResponse:t})})).catch((function(e){r.error(S.instant("explore.error.resource",{data:getError(e)}))})).finally((function(){L(!1)}))},E=function(t){e.resourceInfo.contextType=t.appSettings.DEFAULT_INFERENCE&&!e.resourceInfo.role===l.RoleType.CONTEXT?a.ContextTypes.ALL:a.ContextTypes.EXPLICIT,e.resourceInfo.sameAs=t.appSettings.DEFAULT_INFERENCE&&t.appSettings.DEFAULT_SAMEAS};e.$on("$destroy",(function(){O.forEach((function(e){return e()}))}));var O=[];O.push(e.$watch((function(){return e.getActiveRepositoryObject()}),(function(t){t&&Promise.all([x.getPrincipal(),f.getPrefixes(f.getActiveRepository())]).then((function(t){var r=d(t,2),n=r[0],o=r[1];T(),E(n),C=o,e.loadResource()})).catch((function(e){r.error(S.instant("get.namespaces.error.msg",{error:getError(e)}))}))})))}function v(e,t,r,n,i,a,l,c,s,u,p,f){function d(){c.checkAutocompleteStatus().success((function(t){if(!t){var r=Object(o.decodeHTML)(f.instant("explore.autocomplete.warning.msg"));l.warning("",'<div class="autocomplete-toast"><a href="autocomplete">'.concat(r,"</a></div>"),{allowHtml:!0})}e.autocompleteEnabled=t})).error((function(){l.error(f.instant("explore.error.autocomplete"))}))}function h(){p.getNamespaces(n.getActiveRepository()).success((function(t){e.namespaces=t.results.bindings.map((function(e){return{prefix:e.prefix.value,uri:e.namespace.value}})),e.loader=!1})).error((function(t){var r=getError(t);l.error(r,f.instant("common.error")),e.loader=!1}))}function g(e){var t=e.indexOf("<")>=0&&e.lastIndexOf(">")===e.length-1,r=-1===e.indexOf("<")&&-1===e.lastIndexOf(">"),n=/^<?[http|urn].*>?$/.test(e)&&(t||r),o=!1;if(n)if(e.indexOf("http")>=0){var i=e.indexOf("//");o=i>4&&e.substring(i+2).length>0}else e.indexOf("urn")>=0&&(o=e.substring(4).length>0);return n&&o}var m,y;function v(t){function n(t){a((function(){e.form&&(e.form.$dirty=t)}))}t||(t=document.getElementById("resources_finder_value").value),t&&g(t)?(n(!1),r.path("resource").search("uri",t)):(n(!0),t&&l.error(f.instant("explore.error.invalid.input")))}e.submit=v,e.getAutocompleteSuggestions=function(t){var r;if(!/<|>/.test(t)&&":"===t.slice(-1)){var n=s.getNamespaceUriForPrefix(e.namespaces,t.slice(0,-1));(y=n!==y?n:y)&&$("#resources_finder_value").val(y)}if(e.autocompleteEnabled){var o=t.replace(y,y+";");r=c.getAutocompleteSuggestions(o)}else r=i.when(e.autocompleteEnabled);return r},e.inputChangedFn=function(){m=document.getElementById("resources_finder_value").value,e.form.$dirty=!(m&&g(m))},e.selectedUriCallback=function(t){e.selectedUri={name:t.title},v(e.selectedUri.name)},e.selectedUri={name:""},e.autocompleteEnabled=!1,angular.isDefined(u.search)&&a((function(){$("#resources_finder_value").val(u.search),$(".search-button").click()}),500),e.getActiveRepository()&&(d(),h()),e.$on("repositoryIsSet",(function(){d(),h()}))}function w(e,t,r,n,o,i,a,l,c,s,u){e.uriParam=r.search().uri,e.newRow={subject:e.uriParam,object:{type:"uri",datatype:""}},e.newResource=!1,e.datatypeOptions=c.getDatatypeOptions(),e.activeRepository=function(){return o.getActiveRepository()},e.getClassInstancesDetails=function(){s.getNamespaces(e.activeRepository()).success((function(t){e.namespaces=t.results.bindings.map((function(e){return{prefix:e.prefix.value,uri:e.namespace.value}})),e.loader=!1})).error((function(t){var r=getError(t);n.error(r,u.instant("common.error")),e.loader=!1})),l.getDetails(e.uriParam).success((function(t){e.details=t,e.details.encodeURI=encodeURIComponent(e.details.uri)})).error((function(e){n.error(u.instant("explore.error.resource.details",{data:getError(e)}))})),l.getGraph(e.uriParam).then((function(t){var r=c.buildStatements(t,e.uriParam);e.statements=r,e.newResource=!r.length}))},e.addStatement=function(){e.newRowPredicate.$setSubmitted(),e.newRowObject.$setSubmitted(),e.newRowContext.$setSubmitted(),e.newRowPredicate.$valid&&e.newRowObject.$valid&&e.newRowContext.$valid&&(e.statements.push(_.cloneDeep(e.newRow)),e.newRow={subject:e.uriParam,object:{type:"uri",datatype:""}},e.newRowPredicate.$setPristine(),e.newRowPredicate.$setUntouched(),e.newRowObject.$setPristine(),e.newRowObject.$setUntouched(),e.newRowContext.$setPristine(),e.newRowContext.$setUntouched())},e.removeStatement=function(t){e.statements.splice(t,1)},e.getLocalName=function(e){return l.getLocalName(e)},e.checkValid=function(e){if(!angular.isUndefined(e))return!0;return u.instant("explore.validation")},e.validEditRow=function(){return e.rowform.$valid},e.viewTrig=function(){i.open({templateUrl:"js/angular/explore/templates/viewTrig.html",controller:"ViewTrigCtrl",size:"lg",resolve:{data:function(){return c.transformToTrig(e.statements)}}})},e.save=function(){var o=e.newResource?"POST":"PUT";t({method:o,url:"rest/resource?uri="+encodeURIComponent(e.uriParam),headers:{"Content-Type":"application/x-trig"},data:c.transformToTrig(e.statements)}).success((function(){n.success(u.instant("explore.resource.saved"));var t=a((function(){r.path("resource").search("uri",e.uriParam)}),500);e.$on("$destroy",(function(){a.cancel(t)}))})).error((function(e){n.error(getError(e))}))},e.$watch((function(){return o.getActiveRepository()}),(function(){e.activeRepository()&&e.getClassInstancesDetails()})),e.validateUri=function(t){var r=!0,n=t||"";if(-1===n.indexOf(":"))r=!1;else{var o=n.substring(0,n.indexOf(":"));if(""===l.getNamespaceUriForPrefix(e.namespaces,o)){!1===/^(http:\/\/www\.|https:\/\/www\.|http:\/\/|https:\/\/)[a-z0-9]+([\-\.]{1}[a-z0-9]+)*\.[a-z]{2,5}(:[0-9]{1,5})?(\/.*)?$/.test(n)&&(r=!1);var i=n.match(/\//g);(void 0===i||i.length<3)&&(r=!1)}else{n.substring(n.indexOf(":")+1).trim().length<1&&(r=!1)}}return r}}function b(e,t,r){e.trig=r,e.cancel=function(){t.dismiss("cancel")}}angular.module("graphdb.framework.explore.controllers",["ngCookies","ngRoute","ui.bootstrap","toastr","graphdb.framework.core","graphdb.framework.core.services.repositories","graphdb.framework.explore.services","graphdb.workbench.utils.filetypes","graphdb.framework.rest.explore.rest.service"]).controller("FindResourceCtrl",v).controller("ExploreCtrl",y).controller("EditResourceCtrl",w).controller("ViewTrigCtrl",b),y.$inject=["$scope","$location","toastr","$routeParams","$repositories","$uibModal","ClassInstanceDetailsService","ModalService","RDF4JRepositoriesRestService","FileTypes","$jwtAuth","$translate","$q","ExploreRestService"],v.$inject=["$scope","$http","$location","$repositories","$q","$timeout","toastr","AutocompleteRestService","ClassInstanceDetailsService","$routeParams","RDF4JRepositoriesRestService","$translate"],w.$inject=["$scope","$http","$location","toastr","$repositories","$uibModal","$timeout","ClassInstanceDetailsService","StatementsService","RDF4JRepositoriesRestService","$translate"],b.$inject=["$scope","$uibModalInstance","data"]},292:function(e,t,r){"use strict";r.r(t);r(56);angular.module("graphdb.framework.explore.directives",["graphdb.framework.utils.uriutils"]).directive("uri",["UriUtils",function(e){return{require:"ngModel",link:function(t,r,n,o){o.$parsers.unshift((function(t){if(!angular.isUndefined(t)&&t.length>0){var r=e.validateRdfUri(t);return o.$setValidity("searchStr",r),r?t:void 0}return o.$setValidity("searchStr",!0),t})),o.$formatters.unshift((function(t){return angular.isUndefined(t)||o.$setValidity("searchStr",e.validateRdfUri),t}))}}}])},393:function(e,t,r){"use strict";r.r(t);r(10),r(52),r(290),r(291),r(292),r(748),r(901),r(269),r(167);angular.module("graphdb.framework.explore",["ngRoute","toastr","xeditable","angucomplete-alt-onto","graphdb.framework.explore.services","graphdb.framework.explore.controllers","graphdb.framework.explore.directives","graphdb.framework.core.directives.fittext","graphdb.framework.core.directives.yasgui-component"])},745:function(e,t){},901:function(e,t){function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}
2
2
  /*! Copyright (c) 2014 Hidenari Nozaki and contributors | Licensed under the MIT license */!function(e,t){"use strict";!function(e){e.module("angucomplete-alt-onto",[]).directive("angucompleteAltOnto",["$q","$parse","$http","$sce","$timeout","$templateCache","$interpolate","$rootScope",function(e,t,n,o,i,a,l,c){function s(t,a,l,c){var s,u,p,f,d,h,g=a.find("input"),m=3,y=null,v="autocomplete-required",w=null,b=null,x=a[0].querySelector(".angucomplete-dropdown"),S=!1,R=null;function I(e,n){e&&("object"===r(e)?(t.uri=$(e),L({originalObject:e})):"string"==typeof e&&e.length>0?t.uri=e:console&&console.error&&console.error("Tried to set "+(n?"initial":"")+" value of angucomplete to",e,"which is an invalid value"),O(!0))}function C(e){R=null,t.hideResults(e),document.body.removeEventListener("click",C)}function T(e){return e.which?e.which:e.keyCode}function L(e){"function"==typeof t.selectedObject?t.selectedObject(e):t.selectedObject=e,O(!!e)}function $(e){return t.titleField.split(",").map((function(t){return j(e,t)})).join(" ")}function j(e,t){var r,n;if(t){r=t.split("."),n=e;for(var o=0;o<r.length;o++)n=n[r[o]]}else n=e;return n}function E(e,r){var n,i,a;if(a=new RegExp(r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"i"),e)return e.match&&e.replace||(e=e.toString()),n=(i=e.match(a))?e.replace(a,'<span class="'+t.matchClass+'">'+i[0]+"</span>"):e,o.trustAsHtml(n)}function O(e){t.notEmpty=e,w=t.uri,t.fieldRequired&&c&&t.inputName&&c[t.inputName].$setValidity(v,e)}function A(e){!t.overrideSuggestions||t.selectedObject&&t.selectedObject.originalObject===t.uri||(e&&e.preventDefault(),i.cancel(y),M(),L({originalObject:t.uri}),t.clearSelected&&(t.uri=null),_())}function N(){return a[0].querySelectorAll(".angucomplete-row")[t.currentIndex]}function D(e){x.scrollTop=x.scrollTop+e}function k(){var e=t.results[t.currentIndex];if(t.matchClass){var r=$(e.originalObject);r=r.replace(/<b>|<\/b>/g,""),g.val(r)}else g.val(e.title)}function U(e){return function(r,n,o,i){n||o||i||!r.data||(r=r.data),t.searching=!1,B(j(u(r),t.remoteUrlDataField),e)}}function P(e,r,n,o){0!==r&&-1!==r&&(r||n||o||(r=e.status),t.remoteUrlErrorCallback?t.remoteUrlErrorCallback(e,r,n,o):console&&console.error&&console.error("http error"))}function M(){b&&b.resolve()}function F(r){var o={},i=t.remoteUrl+encodeuriComponent(r);t.remoteUrlRequestFormatter&&(o={params:t.remoteUrlRequestFormatter(r)},i=t.remoteUrl),t.remoteUrlRequestWithCredentials&&(o.withCredentials=!0),M(),b=e.defer(),o.timeout=b.promise,n.get(i,o).success(U(r)).error(P)}function X(r){M(),b=e.defer(),t.remoteApiHandler(r,b.promise).then(U(r)).catch(P)}function _(){t.showDropdown=!1,t.results=[],x&&(x.scrollTop=0)}function q(){t.showDropdown=f,t.currentIndex=t.focusFirst?0:-1,t.results=[]}function J(e){!e||e.length<m||(t.localData?t.$apply((function(){var r;r=void 0!==t.localSearch()?t.localSearch()(e):function(e){var r,n,o,i,a=t.searchFields.split(","),l=[];for(void 0!==t.parseInput()&&(e=t.parseInput()(e)),r=0;r<t.localData.length;r++){for(n=!1,o=0;o<a.length;o++)i=j(t.localData[r],a[o])||"",n=n||i.toString().toLowerCase().indexOf(e.toString().toLowerCase())>=0;n&&(l[l.length]=t.localData[r])}return l}(e),t.searching=!1,B(r,e)})):t.remoteApiHandler?X(e):F(e))}function B(e,r){var n,o,i,a,l,c;if(e&&e.length>0)for(t.results=[],n=0;n<e.length;n++)t.titleField&&""!==t.titleField&&(a=l=$(e[n])),o="",t.descriptionField&&(o=c=j(e[n],t.descriptionField)),i="",t.imageField&&(i=j(e[n],t.imageField)),t.matchClass&&(l=E(a,r),c=E(o,r)),t.results[t.results.length]={title:l,description:c,image:i,originalObject:e[n]};else t.results=[];t.autoMatch&&1===t.results.length&&function(e,r,n){if(!n)return!1;for(var o in r)if(r[o].toLowerCase()===n.toLowerCase())return t.selectResult(e),!0;return!1}(t.results[0],{title:a,desc:o||""},t.uri)?t.showDropdown=!1:0!==t.results.length||d?t.showDropdown=!0:t.showDropdown=!1}function H(){t.localData?B(t.localData,""):t.remoteApiHandler?X(""):F("")}a.on("mousedown",(function(e){e.target.id?(R=e.target.id)===t.id+"_dropdown"&&document.body.addEventListener("click",C):R=e.target.className})),t.currentIndex=t.focusFirst?0:null,t.searching=!1,p=t.$watch("initialValue",(function(e){e&&(p(),I(e,!0))})),t.$watch("fieldRequired",(function(e,r){e!==r&&(e?w&&-1!==t.currentIndex?O(!0):O(!1):c[t.inputName].$setValidity(v,!0))})),t.$on("angucomplete-alt:clearInput",(function(e,r){r&&r!==t.id||(t.uri=null,L(),O(!1),_())})),t.$on("angucomplete-alt:changeInput",(function(e,r,n){r&&r===t.id&&I(n)})),t.onFocusHandler=function(){t.focusIn&&t.focusIn(),0!==m||t.uri&&0!==t.uri.length||(t.currentIndex=t.focusFirst?0:t.currentIndex,t.showDropdown=!0,H())},t.hideResults=function(){R&&(R===t.id+"_dropdown"||R.indexOf("angucomplete")>=0)?R=null:(s=i((function(){_(),t.$apply((function(){t.uri&&t.uri.length>0&&g.val(t.uri)}))}),200),M(),t.focusOut&&t.focusOut(),t.overrideSuggestions&&t.uri&&t.uri.length>0&&-1===t.currentIndex&&A())},t.resetHideResults=function(){s&&i.cancel(s)},t.hoverRow=function(e){t.currentIndex=e},t.selectResult=function(e){t.matchClass&&(e.title=$(e.originalObject),"string"==typeof e.title&&(e.title=e.title.replace(/<b>|<\/b>/g,"")),e.description=j(e.originalObject,t.descriptionField)),t.clearSelected?t.uri=null:t.uri=e.title,L(e),_()},t.inputChangeHandler=function(e){return e.length<m?(M(),_()):0===e.length&&0===m&&(t.searching=!1,H()),t.inputChanged&&(e=t.inputChanged(e)),e},t.fieldRequiredClass&&""!==t.fieldRequiredClass&&(v=t.fieldRequiredClass),t.minlength&&""!==t.minlength&&(m=parseInt(t.minlength,10)),t.pause||(t.pause=500),t.clearSelected||(t.clearSelected=!1),t.overrideSuggestions||(t.overrideSuggestions=!1),t.fieldRequired&&c&&(t.initialValue?O(!0):O(!1)),t.inputType=l.type?l.type:"text",t.textSearching=l.textSearching?l.textSearching:"Searching...",t.textNoResults=l.textNoResults?l.textNoResults:"No results found",f="false"!==t.textSearching,d="false"!==t.textNoResults,t.maxlength=l.maxlength?l.maxlength:524288,g.on("keydown",(function(e){var r=T(e),n=null,o=null;13===r&&t.results?(t.currentIndex>=0&&t.currentIndex<t.results.length?(e.preventDefault(),t.selectResult(t.results[t.currentIndex])):(A(e),_()),t.$apply()):40===r&&t.results?(e.preventDefault(),t.currentIndex+1<t.results.length&&t.showDropdown&&(t.$apply((function(){t.currentIndex++,k()})),S&&(n=N(),x.getBoundingClientRect().top+parseInt(getComputedStyle(x).maxHeight,10)<n.getBoundingClientRect().bottom&&D(function(e){var t=getComputedStyle(e);return e.offsetHeight+parseInt(t.marginTop,10)+parseInt(t.marginBottom,10)}(n))))):38===r&&t.results?(e.preventDefault(),t.currentIndex>=1?(t.$apply((function(){t.currentIndex--,k()})),S&&(o=N().getBoundingClientRect().top-(x.getBoundingClientRect().top+parseInt(getComputedStyle(x).paddingTop,10)))<0&&D(o-1)):0===t.currentIndex&&t.$apply((function(){t.currentIndex=-1,g.val(t.uri)}))):9===r?t.results&&t.results.length>0&&t.showDropdown?-1===t.currentIndex&&t.overrideSuggestions?A():(-1===t.currentIndex&&(t.currentIndex=0),t.selectResult(t.results[t.currentIndex]),t.$digest()):t.uri&&t.uri.length>0&&A():27===r&&e.preventDefault()})),g.on("keyup",(function(e){var r=T(e);if(37!==r&&39!==r)if(38===r||13===r)e.preventDefault();else if(40===r)e.preventDefault(),!t.showDropdown&&t.uri&&t.uri.length>=m&&(q(),t.searching=!0,J(t.uri));else if(27===r)_(),t.$apply((function(){g.val(t.uri)}));else{if(0===m&&!t.uri)return;t.uri&&""!==t.uri?t.uri.length>=m&&(q(),y&&i.cancel(y),t.searching=!0,y=i((function(){J(t.uri)}),t.pause)):t.showDropdown=!1,w&&w!==t.uri&&!t.clearSelected&&t.$apply((function(){L()}))}})),h="remoteUrlResponseFormatter",u=function(e){return t[h]?t[h](e):e},i((function(){var e=getComputedStyle(x);S=e.maxHeight&&"auto"===e.overflowY}))}return a.put("/angucomplete-alt/index.html",'<div class="angucomplete-holder" ng-class="{\'angucomplete-dropdown-visible\': showDropdown}"> <input id="{{id}}_value" name="{{inputName}}" tabindex="{{fieldTabindex}}" ng-class="{\'angucomplete-input-not-empty\': notEmpty}" ng-model="uri" ng-disabled="disableInput" type="{{inputType}}" placeholder="{{placeholder}}" maxlength="{{maxlength}}" ng-focus="onFocusHandler()" class="{{inputClass}}" ng-focus="resetHideResults()" ng-blur="hideResults($event)" autocapitalize="off" autocorrect="off" autocomplete="off" ng-change="inputChangeHandler(uri)" style="overflow: hidden; padding-right: .5em;"/> <div id="{{id}}_dropdown" class="angucomplete-dropdown" ng-show="disableSuggestions && showDropdown"> <div class="angucomplete-searching" ng-show="searching" ng-bind="textSearching"></div> <div class="angucomplete-searching" ng-show="!searching && (!results || results.length == 0)" ng-bind="textNoResults"></div> <div class="angucomplete-row" ng-repeat="result in results" ng-click="selectResult(result)" ng-mouseenter="hoverRow($index)" ng-class="{\'angucomplete-selected-row\': $index == currentIndex}"> <div ng-if="imageField" class="angucomplete-image-holder"> <img ng-if="result.image && result.image != \'\'" ng-src="{{result.image}}" class="angucomplete-image"/> <div ng-if="!result.image && result.image != \'\'" class="angucomplete-image-default"></div> </div> <div class="angucomplete-title" ng-if="matchClass" ng-bind-html="result.title"></div> <div class="angucomplete-title" ng-if="!matchClass">{{ result.title }}</div> <div ng-if="matchClass && result.description && result.description != \'\'" class="angucomplete-description" ng-bind-html="result.description"></div> <div ng-if="!matchClass && result.description && result.description != \'\'" class="angucomplete-description">{{result.description}}</div> </div> </div></div>'),{restrict:"EA",require:"^?form",scope:{selectedObject:"=",disableInput:"=",disableSuggestions:"=",initialValue:"=",localData:"=",localSearch:"&",remoteUrlRequestFormatter:"=",remoteUrlRequestWithCredentials:"@",remoteUrlResponseFormatter:"=",remoteUrlErrorCallback:"=",remoteApiHandler:"=",id:"@",type:"@",placeholder:"@",remoteUrl:"@",remoteUrlDataField:"@",titleField:"@",descriptionField:"@",imageField:"@",inputClass:"@",pause:"@",searchFields:"@",minlength:"@",matchClass:"@",clearSelected:"@",overrideSuggestions:"@",fieldRequired:"=",fieldRequiredClass:"@",inputChanged:"=",autoMatch:"@",focusOut:"&",focusIn:"&",fieldTabindex:"@",inputName:"@",focusFirst:"@",parseInput:"&"},templateUrl:function(e,t){return t.templateUrl||"/angucomplete-alt/index.html"},compile:function(e){var t=l.startSymbol(),r=l.endSymbol();if("{{"!==t||"}}"!==r){var n=e.html().replace(/\{\{/g,t).replace(/\}\}/g,r);e.html(n)}return s}}}])}(window.angular)}()}}]);
@@ -1 +1 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([[322],{152:function(e,n,r){"use strict";r.r(n),r.d(n,"SimilaritySearchType",(function(){return t}));var t={SEARCH_TERM:"searchTerm",SEARCH_ANALOGICAL:"searchAnalogical",SEARCH_ENTITY:"searchEntity",SEARCH_ENTITY_PREDICATE:"searchEntityPredicate",SEARCH_DOCUMENT:"searchDocumentID",isSearchTermType:function(e){return t.SEARCH_TERM===e},isSearchAnalogicalType:function(e){return t.SEARCH_ANALOGICAL===e},isSearchEntityType:function(e){return t.SEARCH_ENTITY===e},isSearchEntityPredicateType:function(e){return t.SEARCH_ENTITY_PREDICATE===e},isSearchDocumentType:function(e){return t.SEARCH_DOCUMENT===e}}}}]);
1
+ (window.webpackJsonp=window.webpackJsonp||[]).push([[322],{153:function(e,n,r){"use strict";r.r(n),r.d(n,"SimilaritySearchType",(function(){return t}));var t={SEARCH_TERM:"searchTerm",SEARCH_ANALOGICAL:"searchAnalogical",SEARCH_ENTITY:"searchEntity",SEARCH_ENTITY_PREDICATE:"searchEntityPredicate",SEARCH_DOCUMENT:"searchDocumentID",isSearchTermType:function(e){return t.SEARCH_TERM===e},isSearchAnalogicalType:function(e){return t.SEARCH_ANALOGICAL===e},isSearchEntityType:function(e){return t.SEARCH_ENTITY===e},isSearchEntityPredicateType:function(e){return t.SEARCH_ENTITY_PREDICATE===e},isSearchDocumentType:function(e){return t.SEARCH_DOCUMENT===e}}}}]);
@@ -1 +1 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([[33,112,159,160,167,172,177,392],{143:function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,i(r.key),r)}}function i(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==r(t)?t:t+""}n.r(t),n.d(t,"UrlUtils",(function(){return u}));var a=/^(h|ht|htt|http|https|http:|https:|http:\/|https:\/|http:\/\/|https:\/\/|https?:\/\/[\S]*)$/i,c=/^(f|ft|ftp|ftps|ftp:|ftps:|ftp:\/|ftps:\/|ftp:\/\/|ftps:\/\/[\S]*)$/i,u=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)},n=[{key:"isValidUrl",value:function(e){return a.test(e)||c.test(e)}},{key:"doesNotContain",value:function(e,t){return!new RegExp(t).test(e)}},{key:"doesNotUseProtocol",value:function(e,t){return!new RegExp("^("+t.join("|")+")://","i").test(e)}}],(t=null)&&o(e.prototype,t),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}()},160:function(e,t,n){"use strict";n.r(t);var r=n(143);angular.module("graphdb.framework.core.directives.validate-url",[]).directive("validateUrl",(function(){return{restrict:"A",require:"ngModel",link:function(e,t,n,o){o.$validators.validUrl=function(e,t){if(o.$isEmpty(t))return"false"!==n.allowEmpty;if(!r.UrlUtils.isValidUrl(t))return!1;if(n.exclude&&!r.UrlUtils.doesNotContain(t,n.exclude))return!1;if(n.excludeProtocol){var i=n.excludeProtocol.split(",");if(!r.UrlUtils.doesNotUseProtocol(t,i))return!1}return!0}}}}))},161:function(e,t){angular.module("graphdb.framework.core.directives.ascii-validator",[]).directive("asciiValidator",(function(){return{restrict:"A",require:"ngModel",link:function(e,t,n,r){function o(e){var t=/^[\x21-\x7E]*$/.test(e);return r.$setValidity("asciiValidator",t),e}r.$parsers.push(o),r.$formatters.push(o)}}}))},162:function(e,t){angular.module("graphdb.framework.core.directives.length-validator",[]).directive("lengthValidator",(function(){return{restrict:"A",require:"ngModel",link:function(e,t,n,r){function o(e){var t=n.minLength?parseInt(n.minLength,10):0,o=n.maxLength?parseInt(n.maxLength,10):1/0,i=e&&e.length>=t&&e.length<=o;return r.$setValidity("lengthValidator",i),e}r.$parsers.push(o),r.$formatters.push(o)}}}))},193:function(e,t,n){"use strict";n.r(t);var r=n(129);function o(e,t){return{restrict:"E",templateUrl:"js/angular/clustermanagement/templates/cluster-configuration/cluster-properties.html",scope:{currentNode:"=",clusterModel:"=",clusterConfiguration:"="},link:function(n){n.isAdmin=!1,n.showEditConfigurationDialog=function(){t.open({templateUrl:"js/angular/clustermanagement/templates/modal/cluster-edit-dialog.html",controller:"EditClusterCtrl",size:"lg",resolve:{data:function(){return{clusterConfiguration:n.clusterConfiguration}}}}).result.finally((function(){n.$emit(r.UPDATE_CLUSTER,{force:!0})}))},n.showDeleteDialog=function(){t.open({templateUrl:"js/angular/clustermanagement/templates/modal/cluster-delete-dialog.html",controller:"DeleteClusterCtrl"}).result.then((function(e){n.$emit(r.DELETE_CLUSTER,{force:e})}))};n.isAdmin=e.isAuthenticated()&&e.isAdmin()}}}angular.module("graphdb.framework.clustermanagement.directives.cluster-configuration.cluster-properties",[]).directive("clusterProperties",o),o.$inject=["$jwtAuth","$uibModal"]},194:function(e,t){function n(){return{restrict:"E",templateUrl:"js/angular/clustermanagement/templates/cluster-configuration/cluster-nodes.html",scope:{currentNode:"=",clusterModel:"="}}}angular.module("graphdb.framework.clustermanagement.directives.cluster-configuration.cluster-nodes",[]).directive("clusterNodes",n),n.$inject=[]},195:function(e,t,n){"use strict";n.r(t);n(161),n(162);var r=n(144),o=n(116),i={minLen:"3",maxLen:"255"};function a(e,t,n,a,c,u,s){return{restrict:"E",templateUrl:"js/angular/clustermanagement/templates/cluster-configuration/multi-region.html",scope:{clusterModel:"=",clusterConfiguration:"="},link:function(l){var d=[];l.topology=void 0,l.TopologyState=o.TopologyState,l.isAdmin=!1,l.addingTag=!1,l.loaderTimeout=void 0,l.secondaryTag=void 0,l.TagLengthConstraints=i,l.add=function(){l.addingTag=!0},l.cancel=function(){l.addingTag=!1},l.createTag=function(e){var n={tag:e};return p(!0),u.addCusterTag(n).then((function(){a.success(t.instant("cluster_management.cluster_configuration_multi_region.created_tag",{tag:e}))})).catch((function(e){var n=getError(e);a.error(n,t.instant("cluster_management.cluster_configuration_multi_region.error.creating"))})).finally((function(){l.addingTag=!1,p(!1)}))},l.deleteTag=function(e){c.openSimpleModal({title:t.instant("cluster_management.cluster_configuration_multi_region.confirm.delete",{tag:e}),message:t.instant("cluster_management.cluster_configuration_multi_region.confirm.warning"),warning:!0,backdrop:"static",stopPropagation:!0}).result.then((function(){return p(!0),u.deleteClusterTag(e)})).then((function(){return a.success(t.instant("cluster_management.cluster_configuration_multi_region.deleted_tag",{tag:e}))})).catch((function(e){if("cancel"!==e&&"escape key press"!==e){var n=getError(e);a.error(n,t.instant("cluster_management.cluster_configuration_multi_region.error.deleting"))}})).finally((function(){return p(!1)}))},l.enableSecondaryMode=function(){l.addingTag=!1;var e={title:t.instant("cluster_management.cluster_configuration_multi_region.confirm.enable_secondary"),message:t.instant("cluster_management.cluster_configuration_multi_region.confirm.enable_secondary_warning"),warning:!0,backdrop:"static",confirmButtonKey:"common.ok.btn",stopPropagation:!0};c.openSimpleModal(e).result.then((function(){return f()})).then((function(e){return p(!0),u.enableSecondaryMode(e)})).then((function(){return a.success(t.instant("cluster_management.cluster_configuration_multi_region.secondary_enabled"))})).catch((function(e){if("cancel"!==e&&"escape key press"!==e){var n=getError(e);a.error(n,t.instant("cluster_management.cluster_configuration_multi_region.error.secondary"))}})).finally((function(){return p(!1)}))},l.disableSecondaryMode=function(){c.openSimpleModal({title:t.instant("cluster_management.cluster_configuration_multi_region.confirm.disable_secondary_mode"),message:t.instant("cluster_management.cluster_configuration_multi_region.confirm.disable_secondary_mode_warning"),warning:!0,backdrop:"static",stopPropagation:!0}).result.then((function(){return p(!0),u.disableSecondaryMode()})).then((function(){return a.success(t.instant("cluster_management.cluster_configuration_multi_region.disabled_secondary_mode"))})).catch((function(e){if("cancel"!==e&&"escape key press"!==e){var n=getError(e);a.error(n,t.instant("cluster_management.cluster_configuration_multi_region.error.disabling"))}})).finally((function(){return p(!1)}))};var f=function(){var e={title:t.instant("cluster_management.cluster_configuration_multi_region.secondary_cluster_settings"),templateUrl:"js/angular/clustermanagement/templates/modal/secondary-mode-modal.html",controller:["$scope","$uibModalInstance","config",function(e,t,n){e.rpcAddress="",e.tag="",e.title=n.title,e.onClick=function(e){return e.stopPropagation()},e.ok=function(){t.close({primaryNode:e.rpcAddress,tag:e.tag})},e.cancel=function(){t.dismiss("cancel")}}],size:"lg",warning:!0,backdrop:"static"};return c.openCustomModal(e).result},g=function(e){p(!0),u.getClusterConfig().then((function(t){l.secondaryTag=r.ClusterConfiguration.fromJSON(t.data).secondaryTag,function(e){var t=e.nodes.find((function(e){return e.nodeState===o.NodeState.LEADER}));l.topology=t.topologyStatus}(r.ClusterModel.fromJSON(e))})).catch((function(e){var n=getError(e);a.error(n,t.instant("cluster_management.cluster_configuration_multi_region.error.disabling"))})).finally((function(){return p(!1)}))},m=function(e){e||(l.addingTag=!1)},p=function(e,t){n.cancel(l.loaderTimeout),e?(l.loaderMessage=t,l.loaderTimeout=n((function(){l.loader=e}),150)):l.loader=!1};l.$on("$destroy",(function(){d.forEach((function(e){return e()}))}));l.isAdmin=e.isAuthenticated()&&e.isAdmin(),d.push(l.$watch("clusterModel",(function(e,t){e!==t&&g(e)}),!0)),d.push(s.onShowClusterConfigurationPanel(m)),g(l.clusterModel)}}}angular.module("graphdb.framework.clustermanagement.directives.cluster-configuration.multi-region",["graphdb.framework.core.directives.ascii-validator","graphdb.framework.core.directives.length-validator"]).directive("multiRegion",a),a.$inject=["$jwtAuth","$translate","$timeout","toastr","ModalService","ClusterRestService","ClusterViewContextService"]},263:function(e,t,n){"use strict";n.r(t);n(15),n(264);var r=n(153),o=n(24),i=n(129);function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var c=240,u={no_cluster_configured:"",create_cluster_btn:"",legend_node_state:"",legend_link_state:"",node_state_leader:"Leader",node_state_follower:"Follower",node_state_candidate:"Candidate",node_state_no_cluster:"No cluster",node_state_out_of_sync:"Out of sync",node_state_no_connection:"No connection",node_state_read_only:"Read only",node_state_restricted:"Restricted",link_state_in_sync:"In sync",link_state_syncing:"Syncing",link_state_out_of_sync:"Out of sync",recovery_state:{searching_for_node:"Searching for node",waiting_for_snapshot:"Waiting for snapshot from node",receiving_snapshot:"Receiving a snapshot from node",applying_snapshot:"Applying a snapshot",building_snapshot:"Building a snapshot for node",sending_snapshot:"Sending a snapshot to node",recovery_operation_failure_warning:"Node unable to recover. Action required"}},s={node_state:"legend_node_state",link_state:"legend_link_state"};angular.module("graphdb.framework.clustermanagement.directives.cluster-graphical-view",["graphdb.framework.utils.localstorageadapter","graphdb.framework.clustermanagement.directives.cluster-legend"]).directive("clusterGraphicalView",["$window","LocalStorageAdapter","LSKeys","UriUtils","$translate","$jwtAuth","$rootScope","ClusterViewContextService",function(e,t,n,l,d,f,g,m){return{restrict:"E",scope:{clusterModel:"="},link:function(p,h){var v,_,y,w,C,b=angular.element(e),S=[],k=U(),E=x(),N=Math.min(k,E)/2-100,M=k/2,T=E/2;function A(){var e=m.getClusterViewD3Container();k=U(),E=x(),e.attr("width",k),e.attr("height",E),I()}function L(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";Object.keys(e).forEach((function(n){var r="";t&&(r+=t),r+=".".concat(n);var o=e[n];"string"==typeof o?e[n]=d.instant("cluster_management.cluster_graphical_view".concat(r)):"object"===a(o)&&L(o,r)}))}function U(){var r="collapsedMenu"===t.get(n.MENU_STATE);return c=r?70:240,Math.max(Math.floor(.95*(e.innerWidth-c)),600)}function x(){return Math.max(.95*(e.innerHeight-250),675)}function j(){r.updateClusterZoneLabels(_,y,u),Object.keys(s).forEach((function(e){d3.select("#".concat(e)).text(function(e){return u[s[e]]}(e))}))}function P(){N=Math.min(k,E)/2-100,M=k/2,T=E/2,r.moveElement(y,M,T),y.select(".cluster-zone").attr("r",N)}function R(e){p.$emit(i.CLICK_IN_VIEW,e.target)}function I(){P(),_!==p.clusterModel.hasCluster&&function(e){r.setCreateClusterZone(e,y,u,v),!e&&v&&y.on("mouseup",(function(){p.$emit(i.CREATE_CLUSTER)}))}(_=!!p.clusterModel.hasCluster);var e=function(){var e=Object(o.cloneDeep)(p.clusterModel.nodes)||[];return e.forEach((function(e){if(e.hostname=l.shortenIri(e.endpoint),!Object(o.isEmpty)(e.recoveryStatus)){var t="cluster_management.cluster_graphical_view.recovery_state.".concat(e.recoveryStatus.state.toLowerCase());e.recoveryStatus.affectedNodes&&e.recoveryStatus.affectedNodes.length>0&&(t+="_with_affected_node"),e.recoveryStatus.message=d.instant(t,{node:e.recoveryStatus.affectedNodes.join(", ")})}})),e}();!function(e){var t=w.selectAll("#node-group").data(e,(function(e){return e.address})),n=r.createNodes(t,45);n.on("click",(function(e,t){p.$emit(i.NODE_SELECTED,t);var n=d3.select(".nodetooltip"),r=$(window).width();e.pageX<r/2?(n.style("left",e.pageX+"px"),n.style("right","")):(n.style("left",""),n.style("right",r-e.pageX+"px")),n.style("top",e.pageY-28+"px")})),r.updateNodes(n),r.positionNodesOnClusterZone(n,M,T,N)}(e),function(e,t){var n=C.selectAll(".link").data(e,(function(e){return e.id}));r.createLinks(n),r.updateLinks(n,t)}(Object(o.cloneDeep)(p.clusterModel.links)||[],e)}p.width=function(){return k},p.height=function(){return E};p.$on("$destroy",(function(){b.unbind("resize",A),b.unbind("mousedown",R),r.removeEventListeners(),S.forEach((function(e){return e()}))})),v=f.isAdmin(),b.bind("resize",A),b.bind("mousedown",R),S.push(g.$on("$translateChangeSuccess",(function(){L(u),j()}))),S.push(p.$on(i.MODEL_UPDATED,(function(){I()}))),L(u),function(e){var t=r.createClusterSvgElement(h[0]).attr("width",k).attr("height",E);y=r.createClusterZone(t,e),C=t.append("g").attr("id","links-group"),w=t.append("g").attr("id","nodes-group"),r.addArrowHead(t,r.ARROW_CONFIG.BIG),r.addArrowHead(t,r.ARROW_CONFIG.SMALL),m.updateClusterViewD3Container(t)}(!(!p.clusterModel.nodes||!p.clusterModel.nodes.length)),I()}}}])},266:function(e,t,n){"use strict";n.r(t);n(193),n(194),n(195);angular.module("graphdb.framework.clustermanagement.directives.cluster-configuration",["graphdb.framework.clustermanagement.directives.cluster-configuration.cluster-properties","graphdb.framework.clustermanagement.directives.cluster-configuration.cluster-nodes","graphdb.framework.clustermanagement.directives.cluster-configuration.multi-region"]).directive("clusterConfiguration",o),o.$inject=["$jwtAuth","$uibModal","$translate","toastr","ClusterViewContextService"];var r={PROPERTIES:"properties",NODES:"nodes",MULTI_REGION:"multi_region"};function o(e,t,n,o,i){return{restrict:"E",templateUrl:"js/angular/clustermanagement/templates/cluster-configuration/cluster-configuration.html",scope:{currentNode:"=",clusterModel:"=",clusterConfiguration:"="},link:function(e){var t=[];e.CONFIGURATION_TABS=r,e.activeTab=r.PROPERTIES,e.closeClusterConfigurationPanel=function(){i.hideClusterConfigurationPanel()},e.switchTab=function(t,n){e.activeTab=n};e.$on("$destroy",(function(){t.forEach((function(e){return e()})),e.closeClusterConfigurationPanel()}));t.push(i.onShowClusterConfigurationPanel((function(t){t||(e.activeTab=r.PROPERTIES)})))}}}},267:function(e,t,n){"use strict";n.r(t);var r=n(144);function o(e,t,n,o,i,a,c){return{restrict:"E",templateUrl:"js/angular/clustermanagement/templates/cluster-nodes-configuration.html",link:function(n){var o=[];n.rowHeights={},n.editedNodeIndex=void 0,n.allSuggestions=[],n.loader=!1,n.errors=[],n.addNewLocation=!1,n.hasCluster=!1,n.addNode=function(){n.addNewLocation=!0,n.newLocation=new r.Location},n.filterSuggestions=function(e){var t=e.endpoint&&e.endpoint.toLowerCase();t?(n.suggestions=n.allSuggestions.filter((function(e){return e.toLowerCase().includes(t)})),n.showDropdown=!0):(n.suggestions=[],n.showDropdown=!1)},n.selectSuggestion=function(e,t){e.endpoint=t,n.suggestions=[],n.showDropdown=!1},n.hideSuggestions=function(){t((function(){n.showDropdown=!1}),200)},n.saveNode=function(e){var t=a.getAvailable(!0);!function(e,t){t?a.replace(t,e):a.addLocation(e);i()}(a.findByEndpoint(t,e)||new r.Location(e),a.getPendingReplace())},n.deleteNode=function(t,n){c.openSimpleModal({title:e.instant("location.confirm.detach"),message:e.instant("location.confirm.detach.warning",{uri:n.endpoint}),warning:!0}).result.then((function(){a.deleteFromCluster(n.item)}))},n.replaceNode=function(t,r){c.openSimpleModal({title:e.instant("location.change.confirm"),message:e.instant("location.change.confirm.warning"),warning:!0}).result.then((function(){a.setPendingReplace(r.item),n.editedNodeIndex=t}))},n.isClusterConfigurationValid=function(){var e=void 0===n.editedNodeIndex,t=!1===n.addNewLocation,r=a.hasValidNodesCount(),o=n.form.$valid;return e&&t&&r&&o},n.setLoader=function(e,r){t.cancel(n.loaderTimeout),e?n.loaderTimeout=t((function(){n.loader=e,n.loaderMessage=r}),300):n.loader=!1},n.getAdvancedOptionsClass=function(){var e=document.getElementById("advancedOptions");if(e){var t=e.getAttribute("aria-expanded");if(t&&"true"===t)return"fa fa-angle-down"}return"fa fa-angle-right"},n.cancel=function(){n.editedNodeIndex=void 0,n.addNewLocation=!1,a.emitUpdateClusterView()},n.restoreNode=function(e){a.restoreNode(e.item)};var i=function(){a.setPendingReplace(void 0),n.editedNodeIndex=void 0,n.addNewLocation=!1},u=n.$watchGroup(["editedNodeIndex","addNewLocation","clusterConfiguration.electionMinTimeout","clusterConfiguration.electionRangeTimeout","clusterConfiguration.heartbeatInterval","clusterConfiguration.messageSizeKB","clusterConfiguration.verificationTimeout","clusterConfiguration.transactionLogMaximumSizeGB"],(function(e,t){var r=n.isClusterConfigurationValid();a.updateClusterValidity(r)}));o.push(u),o.push(a.onClusterViewChanged((function(e){n.hasCluster=a.hasCluster(),n.viewModel=a.getViewModel(),n.clusterNodesEndpoints=n.viewModel.map((function(e){return e.endpoint})),n.clusterConfiguration=a.getClusterConfiguration(),n.allSuggestions=a.getAvailableNodeEndpoints(),n.canDeleteNode=a.canDeleteNode()}))),n.$on("$destroy",(function(){o.forEach((function(e){return e()}))}))}}}angular.module("graphdb.framework.clustermanagement.directives.cluster-nodes-configuration",[]).directive("clusterNodesConfiguration",o),o.$inject=["$translate","$timeout","productInfo","toastr","RemoteLocationsService","ClusterContextService","ModalService"]},268:function(e,t){angular.module("graphdb.framework.core.directives.validate-duplicate-url",[]).directive("validateDuplicateUrl",(function(){return{restrict:"A",require:"ngModel",scope:{excludedUrls:"="},link:function(e,t,n,r){r.$validators.duplicateUrl=function(t,n){return e.excludedUrls&&e.excludedUrls.includes(n)?(r.$setValidity("duplicateUrl",!1),!1):(r.$setValidity("duplicateUrl",!0),!0)}}}}))},391:function(e,t,n){"use strict";n.r(t);n(10),n(52),n(374),n(263),n(266),n(267),n(53),n(634),n(372),n(160),n(268);angular.module("graphdb.framework.clustermanagement",["ngAnimate","toastr","graphdb.framework.clustermanagement.controllers.cluster-management","graphdb.framework.clustermanagement.directives.cluster-graphical-view","graphdb.framework.clustermanagement.directives.cluster-configuration","graphdb.framework.clustermanagement.directives.cluster-nodes-configuration","graphdb.framework.core.directives.validate-url","graphdb.framework.core.directives.validate-duplicate-url"])},634:function(e,t,n){var r,o;r=[n(644)],void 0===(o=function(){function e(e,t){return e.each((function(){var e=t.apply(this,arguments),n=select(this);for(var r in e)n.attr(r,e[r])}))}function t(e,t){for(var n in t)e.attr(n,t[n]);return e}return"undefined"==typeof d3&&(d3=n(644)),d3.selection.prototype.attrs=function(n){return("function"==typeof n?e:t)(this,n)},d3.selection.prototype.moveToFront=function(){return this.each((function(){d3.select(this.parentNode.appendChild(this))}))},d3.selection.prototype.moveToBack=function(){return this.each((function(){var e=this.parentNode.firstChild;e&&this.parentNode.insertBefore(this,e)}))},d3}.apply(t,r))||(e.exports=o)}}]);
1
+ (window.webpackJsonp=window.webpackJsonp||[]).push([[33,113,159,160,167,172,177,392],{121:function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,i(r.key),r)}}function i(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==r(t)?t:t+""}n.r(t),n.d(t,"UrlUtils",(function(){return u}));var a=/^(h|ht|htt|http|https|http:|https:|http:\/|https:\/|http:\/\/|https:\/\/|https?:\/\/[\S]*)$/i,c=/^(f|ft|ftp|ftps|ftp:|ftps:|ftp:\/|ftps:\/|ftp:\/\/|ftps:\/\/[\S]*)$/i,u=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)},n=[{key:"isValidUrl",value:function(e){return a.test(e)||c.test(e)}},{key:"doesNotContain",value:function(e,t){return!new RegExp(t).test(e)}},{key:"doesNotUseProtocol",value:function(e,t){return!new RegExp("^("+t.join("|")+")://","i").test(e)}}],(t=null)&&o(e.prototype,t),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}()},130:function(e,t,n){"use strict";n.r(t);var r=n(121);angular.module("graphdb.framework.core.directives.validate-url",[]).directive("validateUrl",(function(){return{restrict:"A",require:"ngModel",link:function(e,t,n,o){o.$validators.validUrl=function(e,t){if(o.$isEmpty(t))return"false"!==n.allowEmpty;if(!r.UrlUtils.isValidUrl(t))return!1;if(n.exclude&&!r.UrlUtils.doesNotContain(t,n.exclude))return!1;if(n.excludeProtocol){var i=n.excludeProtocol.split(",");if(!r.UrlUtils.doesNotUseProtocol(t,i))return!1}return!0}}}}))},161:function(e,t){angular.module("graphdb.framework.core.directives.ascii-validator",[]).directive("asciiValidator",(function(){return{restrict:"A",require:"ngModel",link:function(e,t,n,r){function o(e){var t=/^[\x21-\x7E]*$/.test(e);return r.$setValidity("asciiValidator",t),e}r.$parsers.push(o),r.$formatters.push(o)}}}))},162:function(e,t){angular.module("graphdb.framework.core.directives.length-validator",[]).directive("lengthValidator",(function(){return{restrict:"A",require:"ngModel",link:function(e,t,n,r){function o(e){var t=n.minLength?parseInt(n.minLength,10):0,o=n.maxLength?parseInt(n.maxLength,10):1/0,i=e&&e.length>=t&&e.length<=o;return r.$setValidity("lengthValidator",i),e}r.$parsers.push(o),r.$formatters.push(o)}}}))},193:function(e,t,n){"use strict";n.r(t);var r=n(131);function o(e,t){return{restrict:"E",templateUrl:"js/angular/clustermanagement/templates/cluster-configuration/cluster-properties.html",scope:{currentNode:"=",clusterModel:"=",clusterConfiguration:"="},link:function(n){n.isAdmin=!1,n.showEditConfigurationDialog=function(){t.open({templateUrl:"js/angular/clustermanagement/templates/modal/cluster-edit-dialog.html",controller:"EditClusterCtrl",size:"lg",resolve:{data:function(){return{clusterConfiguration:n.clusterConfiguration}}}}).result.finally((function(){n.$emit(r.UPDATE_CLUSTER,{force:!0})}))},n.showDeleteDialog=function(){t.open({templateUrl:"js/angular/clustermanagement/templates/modal/cluster-delete-dialog.html",controller:"DeleteClusterCtrl"}).result.then((function(e){n.$emit(r.DELETE_CLUSTER,{force:e})}))};n.isAdmin=e.isAuthenticated()&&e.isAdmin()}}}angular.module("graphdb.framework.clustermanagement.directives.cluster-configuration.cluster-properties",[]).directive("clusterProperties",o),o.$inject=["$jwtAuth","$uibModal"]},194:function(e,t){function n(){return{restrict:"E",templateUrl:"js/angular/clustermanagement/templates/cluster-configuration/cluster-nodes.html",scope:{currentNode:"=",clusterModel:"="}}}angular.module("graphdb.framework.clustermanagement.directives.cluster-configuration.cluster-nodes",[]).directive("clusterNodes",n),n.$inject=[]},195:function(e,t,n){"use strict";n.r(t);n(161),n(162);var r=n(145),o=n(116),i={minLen:"3",maxLen:"255"};function a(e,t,n,a,c,u,s){return{restrict:"E",templateUrl:"js/angular/clustermanagement/templates/cluster-configuration/multi-region.html",scope:{clusterModel:"=",clusterConfiguration:"="},link:function(l){var d=[];l.topology=void 0,l.TopologyState=o.TopologyState,l.isAdmin=!1,l.addingTag=!1,l.loaderTimeout=void 0,l.secondaryTag=void 0,l.TagLengthConstraints=i,l.add=function(){l.addingTag=!0},l.cancel=function(){l.addingTag=!1},l.createTag=function(e){var n={tag:e};return p(!0),u.addCusterTag(n).then((function(){a.success(t.instant("cluster_management.cluster_configuration_multi_region.created_tag",{tag:e}))})).catch((function(e){var n=getError(e);a.error(n,t.instant("cluster_management.cluster_configuration_multi_region.error.creating"))})).finally((function(){l.addingTag=!1,p(!1)}))},l.deleteTag=function(e){c.openSimpleModal({title:t.instant("cluster_management.cluster_configuration_multi_region.confirm.delete",{tag:e}),message:t.instant("cluster_management.cluster_configuration_multi_region.confirm.warning"),warning:!0,backdrop:"static",stopPropagation:!0}).result.then((function(){return p(!0),u.deleteClusterTag(e)})).then((function(){return a.success(t.instant("cluster_management.cluster_configuration_multi_region.deleted_tag",{tag:e}))})).catch((function(e){if("cancel"!==e&&"escape key press"!==e){var n=getError(e);a.error(n,t.instant("cluster_management.cluster_configuration_multi_region.error.deleting"))}})).finally((function(){return p(!1)}))},l.enableSecondaryMode=function(){l.addingTag=!1;var e={title:t.instant("cluster_management.cluster_configuration_multi_region.confirm.enable_secondary"),message:t.instant("cluster_management.cluster_configuration_multi_region.confirm.enable_secondary_warning"),warning:!0,backdrop:"static",confirmButtonKey:"common.ok.btn",stopPropagation:!0};c.openSimpleModal(e).result.then((function(){return f()})).then((function(e){return p(!0),u.enableSecondaryMode(e)})).then((function(){return a.success(t.instant("cluster_management.cluster_configuration_multi_region.secondary_enabled"))})).catch((function(e){if("cancel"!==e&&"escape key press"!==e){var n=getError(e);a.error(n,t.instant("cluster_management.cluster_configuration_multi_region.error.secondary"))}})).finally((function(){return p(!1)}))},l.disableSecondaryMode=function(){c.openSimpleModal({title:t.instant("cluster_management.cluster_configuration_multi_region.confirm.disable_secondary_mode"),message:t.instant("cluster_management.cluster_configuration_multi_region.confirm.disable_secondary_mode_warning"),warning:!0,backdrop:"static",stopPropagation:!0}).result.then((function(){return p(!0),u.disableSecondaryMode()})).then((function(){return a.success(t.instant("cluster_management.cluster_configuration_multi_region.disabled_secondary_mode"))})).catch((function(e){if("cancel"!==e&&"escape key press"!==e){var n=getError(e);a.error(n,t.instant("cluster_management.cluster_configuration_multi_region.error.disabling"))}})).finally((function(){return p(!1)}))};var f=function(){var e={title:t.instant("cluster_management.cluster_configuration_multi_region.secondary_cluster_settings"),templateUrl:"js/angular/clustermanagement/templates/modal/secondary-mode-modal.html",controller:["$scope","$uibModalInstance","config",function(e,t,n){e.rpcAddress="",e.tag="",e.title=n.title,e.onClick=function(e){return e.stopPropagation()},e.ok=function(){t.close({primaryNode:e.rpcAddress,tag:e.tag})},e.cancel=function(){t.dismiss("cancel")}}],size:"lg",warning:!0,backdrop:"static"};return c.openCustomModal(e).result},g=function(e){p(!0),u.getClusterConfig().then((function(t){l.secondaryTag=r.ClusterConfiguration.fromJSON(t.data).secondaryTag,function(e){var t=e.nodes.find((function(e){return e.nodeState===o.NodeState.LEADER}));l.topology=t.topologyStatus}(r.ClusterModel.fromJSON(e))})).catch((function(e){var n=getError(e);a.error(n,t.instant("cluster_management.cluster_configuration_multi_region.error.disabling"))})).finally((function(){return p(!1)}))},m=function(e){e||(l.addingTag=!1)},p=function(e,t){n.cancel(l.loaderTimeout),e?(l.loaderMessage=t,l.loaderTimeout=n((function(){l.loader=e}),150)):l.loader=!1};l.$on("$destroy",(function(){d.forEach((function(e){return e()}))}));l.isAdmin=e.isAuthenticated()&&e.isAdmin(),d.push(l.$watch("clusterModel",(function(e,t){e!==t&&g(e)}),!0)),d.push(s.onShowClusterConfigurationPanel(m)),g(l.clusterModel)}}}angular.module("graphdb.framework.clustermanagement.directives.cluster-configuration.multi-region",["graphdb.framework.core.directives.ascii-validator","graphdb.framework.core.directives.length-validator"]).directive("multiRegion",a),a.$inject=["$jwtAuth","$translate","$timeout","toastr","ModalService","ClusterRestService","ClusterViewContextService"]},263:function(e,t,n){"use strict";n.r(t);n(15),n(264);var r=n(154),o=n(24),i=n(131);function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var c=240,u={no_cluster_configured:"",create_cluster_btn:"",legend_node_state:"",legend_link_state:"",node_state_leader:"Leader",node_state_follower:"Follower",node_state_candidate:"Candidate",node_state_no_cluster:"No cluster",node_state_out_of_sync:"Out of sync",node_state_no_connection:"No connection",node_state_read_only:"Read only",node_state_restricted:"Restricted",link_state_in_sync:"In sync",link_state_syncing:"Syncing",link_state_out_of_sync:"Out of sync",recovery_state:{searching_for_node:"Searching for node",waiting_for_snapshot:"Waiting for snapshot from node",receiving_snapshot:"Receiving a snapshot from node",applying_snapshot:"Applying a snapshot",building_snapshot:"Building a snapshot for node",sending_snapshot:"Sending a snapshot to node",recovery_operation_failure_warning:"Node unable to recover. Action required"}},s={node_state:"legend_node_state",link_state:"legend_link_state"};angular.module("graphdb.framework.clustermanagement.directives.cluster-graphical-view",["graphdb.framework.utils.localstorageadapter","graphdb.framework.clustermanagement.directives.cluster-legend"]).directive("clusterGraphicalView",["$window","LocalStorageAdapter","LSKeys","UriUtils","$translate","$jwtAuth","$rootScope","ClusterViewContextService",function(e,t,n,l,d,f,g,m){return{restrict:"E",scope:{clusterModel:"="},link:function(p,h){var v,_,y,w,C,b=angular.element(e),S=[],k=U(),E=x(),N=Math.min(k,E)/2-100,M=k/2,T=E/2;function A(){var e=m.getClusterViewD3Container();k=U(),E=x(),e.attr("width",k),e.attr("height",E),I()}function L(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";Object.keys(e).forEach((function(n){var r="";t&&(r+=t),r+=".".concat(n);var o=e[n];"string"==typeof o?e[n]=d.instant("cluster_management.cluster_graphical_view".concat(r)):"object"===a(o)&&L(o,r)}))}function U(){var r="collapsedMenu"===t.get(n.MENU_STATE);return c=r?70:240,Math.max(Math.floor(.95*(e.innerWidth-c)),600)}function x(){return Math.max(.95*(e.innerHeight-250),675)}function j(){r.updateClusterZoneLabels(_,y,u),Object.keys(s).forEach((function(e){d3.select("#".concat(e)).text(function(e){return u[s[e]]}(e))}))}function P(){N=Math.min(k,E)/2-100,M=k/2,T=E/2,r.moveElement(y,M,T),y.select(".cluster-zone").attr("r",N)}function R(e){p.$emit(i.CLICK_IN_VIEW,e.target)}function I(){P(),_!==p.clusterModel.hasCluster&&function(e){r.setCreateClusterZone(e,y,u,v),!e&&v&&y.on("mouseup",(function(){p.$emit(i.CREATE_CLUSTER)}))}(_=!!p.clusterModel.hasCluster);var e=function(){var e=Object(o.cloneDeep)(p.clusterModel.nodes)||[];return e.forEach((function(e){if(e.hostname=l.shortenIri(e.endpoint),!Object(o.isEmpty)(e.recoveryStatus)){var t="cluster_management.cluster_graphical_view.recovery_state.".concat(e.recoveryStatus.state.toLowerCase());e.recoveryStatus.affectedNodes&&e.recoveryStatus.affectedNodes.length>0&&(t+="_with_affected_node"),e.recoveryStatus.message=d.instant(t,{node:e.recoveryStatus.affectedNodes.join(", ")})}})),e}();!function(e){var t=w.selectAll("#node-group").data(e,(function(e){return e.address})),n=r.createNodes(t,45);n.on("click",(function(e,t){p.$emit(i.NODE_SELECTED,t);var n=d3.select(".nodetooltip"),r=$(window).width();e.pageX<r/2?(n.style("left",e.pageX+"px"),n.style("right","")):(n.style("left",""),n.style("right",r-e.pageX+"px")),n.style("top",e.pageY-28+"px")})),r.updateNodes(n),r.positionNodesOnClusterZone(n,M,T,N)}(e),function(e,t){var n=C.selectAll(".link").data(e,(function(e){return e.id}));r.createLinks(n),r.updateLinks(n,t)}(Object(o.cloneDeep)(p.clusterModel.links)||[],e)}p.width=function(){return k},p.height=function(){return E};p.$on("$destroy",(function(){b.unbind("resize",A),b.unbind("mousedown",R),r.removeEventListeners(),S.forEach((function(e){return e()}))})),v=f.isAdmin(),b.bind("resize",A),b.bind("mousedown",R),S.push(g.$on("$translateChangeSuccess",(function(){L(u),j()}))),S.push(p.$on(i.MODEL_UPDATED,(function(){I()}))),L(u),function(e){var t=r.createClusterSvgElement(h[0]).attr("width",k).attr("height",E);y=r.createClusterZone(t,e),C=t.append("g").attr("id","links-group"),w=t.append("g").attr("id","nodes-group"),r.addArrowHead(t,r.ARROW_CONFIG.BIG),r.addArrowHead(t,r.ARROW_CONFIG.SMALL),m.updateClusterViewD3Container(t)}(!(!p.clusterModel.nodes||!p.clusterModel.nodes.length)),I()}}}])},266:function(e,t,n){"use strict";n.r(t);n(193),n(194),n(195);angular.module("graphdb.framework.clustermanagement.directives.cluster-configuration",["graphdb.framework.clustermanagement.directives.cluster-configuration.cluster-properties","graphdb.framework.clustermanagement.directives.cluster-configuration.cluster-nodes","graphdb.framework.clustermanagement.directives.cluster-configuration.multi-region"]).directive("clusterConfiguration",o),o.$inject=["$jwtAuth","$uibModal","$translate","toastr","ClusterViewContextService"];var r={PROPERTIES:"properties",NODES:"nodes",MULTI_REGION:"multi_region"};function o(e,t,n,o,i){return{restrict:"E",templateUrl:"js/angular/clustermanagement/templates/cluster-configuration/cluster-configuration.html",scope:{currentNode:"=",clusterModel:"=",clusterConfiguration:"="},link:function(e){var t=[];e.CONFIGURATION_TABS=r,e.activeTab=r.PROPERTIES,e.closeClusterConfigurationPanel=function(){i.hideClusterConfigurationPanel()},e.switchTab=function(t,n){e.activeTab=n};e.$on("$destroy",(function(){t.forEach((function(e){return e()})),e.closeClusterConfigurationPanel()}));t.push(i.onShowClusterConfigurationPanel((function(t){t||(e.activeTab=r.PROPERTIES)})))}}}},267:function(e,t,n){"use strict";n.r(t);var r=n(145);function o(e,t,n,o,i,a,c){return{restrict:"E",templateUrl:"js/angular/clustermanagement/templates/cluster-nodes-configuration.html",link:function(n){var o=[];n.rowHeights={},n.editedNodeIndex=void 0,n.allSuggestions=[],n.loader=!1,n.errors=[],n.addNewLocation=!1,n.hasCluster=!1,n.addNode=function(){n.addNewLocation=!0,n.newLocation=new r.Location,t((function(){var e=document.querySelector("input[name='location']");e&&e.focus()}),0)},n.filterSuggestions=function(e){var t=e.endpoint&&e.endpoint.toLowerCase();t?(n.suggestions=n.allSuggestions.filter((function(e){return e.toLowerCase().includes(t)})),n.showDropdown=!0):(n.suggestions=[],n.showDropdown=!1)},n.selectSuggestion=function(e,t){e.endpoint=t,n.suggestions=[],n.showDropdown=!1},n.hideSuggestions=function(){t((function(){n.showDropdown=!1}),200)},n.saveNode=function(e){var t=a.getAvailable(!0);!function(e,t){t?a.replace(t,e):a.addLocation(e);i()}(a.findByEndpoint(t,e)||new r.Location(e),a.getPendingReplace())},n.deleteNode=function(t,n){c.openSimpleModal({title:e.instant("location.confirm.detach"),message:e.instant("location.confirm.detach.warning",{uri:n.endpoint}),warning:!0}).result.then((function(){a.deleteFromCluster(n.item)}))},n.replaceNode=function(t,r){c.openSimpleModal({title:e.instant("location.change.confirm"),message:e.instant("location.change.confirm.warning"),warning:!0}).result.then((function(){a.setPendingReplace(r.item),n.editedNodeIndex=t}))},n.isClusterConfigurationValid=function(){var e=void 0===n.editedNodeIndex,t=!1===n.addNewLocation,r=a.hasValidNodesCount(),o=n.form.$valid;return e&&t&&r&&o},n.setLoader=function(e,r){t.cancel(n.loaderTimeout),e?n.loaderTimeout=t((function(){n.loader=e,n.loaderMessage=r}),300):n.loader=!1},n.getAdvancedOptionsClass=function(){var e=document.getElementById("advancedOptions");if(e){var t=e.getAttribute("aria-expanded");if(t&&"true"===t)return"fa fa-angle-down"}return"fa fa-angle-right"},n.cancel=function(){n.editedNodeIndex=void 0,n.addNewLocation=!1,a.emitUpdateClusterView()},n.restoreNode=function(e){a.restoreNode(e.item)};var i=function(){a.setPendingReplace(void 0),n.editedNodeIndex=void 0,n.addNewLocation=!1},u=n.$watchGroup(["editedNodeIndex","addNewLocation","clusterConfiguration.electionMinTimeout","clusterConfiguration.electionRangeTimeout","clusterConfiguration.heartbeatInterval","clusterConfiguration.messageSizeKB","clusterConfiguration.verificationTimeout","clusterConfiguration.transactionLogMaximumSizeGB"],(function(e,t){var r=n.isClusterConfigurationValid();a.updateClusterValidity(r)}));o.push(u),o.push(a.onClusterViewChanged((function(e){n.hasCluster=a.hasCluster(),n.viewModel=a.getViewModel(),n.clusterNodesEndpoints=n.viewModel.map((function(e){return e.endpoint})),n.clusterConfiguration=a.getClusterConfiguration(),n.allSuggestions=a.getAvailableNodeEndpoints(),n.canDeleteNode=a.canDeleteNode()}))),n.$on("$destroy",(function(){o.forEach((function(e){return e()}))}))}}}angular.module("graphdb.framework.clustermanagement.directives.cluster-nodes-configuration",[]).directive("clusterNodesConfiguration",o),o.$inject=["$translate","$timeout","productInfo","toastr","RemoteLocationsService","ClusterContextService","ModalService"]},268:function(e,t){angular.module("graphdb.framework.core.directives.validate-duplicate-url",[]).directive("validateDuplicateUrl",(function(){return{restrict:"A",require:"ngModel",scope:{excludedUrls:"="},link:function(e,t,n,r){r.$validators.duplicateUrl=function(t,n){return e.excludedUrls&&e.excludedUrls.includes(n)?(r.$setValidity("duplicateUrl",!1),!1):(r.$setValidity("duplicateUrl",!0),!0)}}}}))},391:function(e,t,n){"use strict";n.r(t);n(10),n(52),n(374),n(263),n(266),n(267),n(53),n(634),n(372),n(130),n(268);angular.module("graphdb.framework.clustermanagement",["ngAnimate","toastr","graphdb.framework.clustermanagement.controllers.cluster-management","graphdb.framework.clustermanagement.directives.cluster-graphical-view","graphdb.framework.clustermanagement.directives.cluster-configuration","graphdb.framework.clustermanagement.directives.cluster-nodes-configuration","graphdb.framework.core.directives.validate-url","graphdb.framework.core.directives.validate-duplicate-url"])},634:function(e,t,n){var r,o;r=[n(644)],void 0===(o=function(){function e(e,t){return e.each((function(){var e=t.apply(this,arguments),n=select(this);for(var r in e)n.attr(r,e[r])}))}function t(e,t){for(var n in t)e.attr(n,t[n]);return e}return"undefined"==typeof d3&&(d3=n(644)),d3.selection.prototype.attrs=function(n){return("function"==typeof n?e:t)(this,n)},d3.selection.prototype.moveToFront=function(){return this.each((function(){d3.select(this.parentNode.appendChild(this))}))},d3.selection.prototype.moveToBack=function(){return this.each((function(){var e=this.parentNode.firstChild;e&&this.parentNode.insertBefore(this,e)}))},d3}.apply(t,r))||(e.exports=o)}}]);
@@ -1 +1 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([[332],{148:function(t,n,e){"use strict";function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function r(t,n){for(var e=0;e<n.length;e++){var i=n[e];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,s(i.key),i)}}function u(t,n,e){return n&&r(t.prototype,n),e&&r(t,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function s(t){var n=function(t,n){if("object"!=i(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var o=e.call(t,n||"default");if("object"!=i(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(t)}(t,"string");return"symbol"==i(n)?n:n+""}e.r(n),e.d(n,"ChatAnswerModel",(function(){return a})),e.d(n,"ContinueChatRun",(function(){return c}));var a=function(){return u((function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};o(this,t),this._chatId=n.chatId,this._chatName=n.chatName||"",this._timestamp=n.timestamp,this._messages=n.messages||[],this._continueRunId=n.continueRunId}),[{key:"chatId",get:function(){return this._chatId},set:function(t){this._chatId=t}},{key:"chatName",get:function(){return this._chatName},set:function(t){this._chatName=t}},{key:"timestamp",get:function(){return this._timestamp},set:function(t){this._timestamp=t}},{key:"messages",get:function(){return this._messages},set:function(t){this._messages=t}},{key:"continueRunId",get:function(){return this._continueRunId},set:function(t){this._continueRunId=t}}])}(),c=function(){return u((function t(n,e){o(this,t),this._chatItem=n,this._runId=e}),[{key:"chatId",get:function(){return this._chatItem.chatId}},{key:"toContinueRunRequestPayload",value:function(){return{conversationId:this.chatId,runId:this._runId,agentId:this._chatItem.agentId,tzOffset:-(new Date).getTimezoneOffset()}}}])}()}}]);
1
+ (window.webpackJsonp=window.webpackJsonp||[]).push([[332],{149:function(t,n,e){"use strict";function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function r(t,n){for(var e=0;e<n.length;e++){var i=n[e];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,s(i.key),i)}}function u(t,n,e){return n&&r(t.prototype,n),e&&r(t,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function s(t){var n=function(t,n){if("object"!=i(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var o=e.call(t,n||"default");if("object"!=i(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(t)}(t,"string");return"symbol"==i(n)?n:n+""}e.r(n),e.d(n,"ChatAnswerModel",(function(){return a})),e.d(n,"ContinueChatRun",(function(){return c}));var a=function(){return u((function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};o(this,t),this._chatId=n.chatId,this._chatName=n.chatName||"",this._timestamp=n.timestamp,this._messages=n.messages||[],this._continueRunId=n.continueRunId}),[{key:"chatId",get:function(){return this._chatId},set:function(t){this._chatId=t}},{key:"chatName",get:function(){return this._chatName},set:function(t){this._chatName=t}},{key:"timestamp",get:function(){return this._timestamp},set:function(t){this._timestamp=t}},{key:"messages",get:function(){return this._messages},set:function(t){this._messages=t}},{key:"continueRunId",get:function(){return this._continueRunId},set:function(t){this._continueRunId=t}}])}(),c=function(){return u((function t(n,e){o(this,t),this._chatItem=n,this._runId=e}),[{key:"chatId",get:function(){return this._chatItem.chatId}},{key:"toContinueRunRequestPayload",value:function(){return{conversationId:this.chatId,runId:this._runId,agentId:this._chatItem.agentId,tzOffset:-(new Date).getTimezoneOffset()}}}])}()}}]);
@@ -1 +1 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([[334,335],{142:function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,s(r.key),r)}}function u(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function s(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==r(t)?t:t+""}n.r(t),n.d(t,"ExplainResponseModel",(function(){return a})),n.d(t,"ExplainQueryMethodsListModel",(function(){return c})),n.d(t,"ExplainQueryMethodModel",(function(){return y})),n.d(t,"ExplainQueryType",(function(){return f}));var a=function(){return u((function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};i(this,e),this._chatId=t.chatId,this._answerId=t.answerId,this._queryMethods=t.queryMethods,this._expanded=void 0===t.expanded||t.expanded}),[{key:"chatId",get:function(){return this._chatId},set:function(e){this._chatId=e}},{key:"answerId",get:function(){return this._answerId},set:function(e){this._answerId=e}},{key:"queryMethods",get:function(){return this._queryMethods},set:function(e){this._queryMethods=e}},{key:"expanded",get:function(){return this._expanded},set:function(e){this._expanded=e}}])}(),c=function(){return u((function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];i(this,e),this._items=t}),[{key:"items",get:function(){return this._items},set:function(e){this._items=e}}])}(),y=function(){return u((function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};i(this,e),this._name=t.name,this._rawQuery=t.rawQuery,this._query=t.query,this._queryType=t.queryType,this._errorMessage=t.errorOutput}),[{key:"name",get:function(){return this._name},set:function(e){this._name=e}},{key:"rawQuery",get:function(){return this._rawQuery},set:function(e){this._rawQuery=e}},{key:"query",get:function(){return this._query},set:function(e){this._query=e}},{key:"queryType",get:function(){return this._queryType},set:function(e){this._queryType=e}},{key:"errorMessage",get:function(){return this._errorMessage},set:function(e){this._errorMessage=e}}])}(),f={SPARQL:"sparql",JSON:"json",OTHER:"other"}}}]);
1
+ (window.webpackJsonp=window.webpackJsonp||[]).push([[334,335],{144:function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,s(r.key),r)}}function u(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function s(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==r(t)?t:t+""}n.r(t),n.d(t,"ExplainResponseModel",(function(){return a})),n.d(t,"ExplainQueryMethodsListModel",(function(){return c})),n.d(t,"ExplainQueryMethodModel",(function(){return y})),n.d(t,"ExplainQueryType",(function(){return f}));var a=function(){return u((function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};i(this,e),this._chatId=t.chatId,this._answerId=t.answerId,this._queryMethods=t.queryMethods,this._expanded=void 0===t.expanded||t.expanded}),[{key:"chatId",get:function(){return this._chatId},set:function(e){this._chatId=e}},{key:"answerId",get:function(){return this._answerId},set:function(e){this._answerId=e}},{key:"queryMethods",get:function(){return this._queryMethods},set:function(e){this._queryMethods=e}},{key:"expanded",get:function(){return this._expanded},set:function(e){this._expanded=e}}])}(),c=function(){return u((function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];i(this,e),this._items=t}),[{key:"items",get:function(){return this._items},set:function(e){this._items=e}}])}(),y=function(){return u((function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};i(this,e),this._name=t.name,this._rawQuery=t.rawQuery,this._query=t.query,this._queryType=t.queryType,this._errorMessage=t.errorOutput}),[{key:"name",get:function(){return this._name},set:function(e){this._name=e}},{key:"rawQuery",get:function(){return this._rawQuery},set:function(e){this._rawQuery=e}},{key:"query",get:function(){return this._query},set:function(e){this._query=e}},{key:"queryType",get:function(){return this._queryType},set:function(e){this._queryType=e}},{key:"errorMessage",get:function(){return this._errorMessage},set:function(e){this._errorMessage=e}}])}(),f={SPARQL:"sparql",JSON:"json",OTHER:"other"}}}]);
@@ -1 +1 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([[335,334],{142:function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,s(r.key),r)}}function u(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function s(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==r(t)?t:t+""}n.r(t),n.d(t,"ExplainResponseModel",(function(){return a})),n.d(t,"ExplainQueryMethodsListModel",(function(){return c})),n.d(t,"ExplainQueryMethodModel",(function(){return y})),n.d(t,"ExplainQueryType",(function(){return f}));var a=function(){return u((function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};i(this,e),this._chatId=t.chatId,this._answerId=t.answerId,this._queryMethods=t.queryMethods,this._expanded=void 0===t.expanded||t.expanded}),[{key:"chatId",get:function(){return this._chatId},set:function(e){this._chatId=e}},{key:"answerId",get:function(){return this._answerId},set:function(e){this._answerId=e}},{key:"queryMethods",get:function(){return this._queryMethods},set:function(e){this._queryMethods=e}},{key:"expanded",get:function(){return this._expanded},set:function(e){this._expanded=e}}])}(),c=function(){return u((function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];i(this,e),this._items=t}),[{key:"items",get:function(){return this._items},set:function(e){this._items=e}}])}(),y=function(){return u((function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};i(this,e),this._name=t.name,this._rawQuery=t.rawQuery,this._query=t.query,this._queryType=t.queryType,this._errorMessage=t.errorOutput}),[{key:"name",get:function(){return this._name},set:function(e){this._name=e}},{key:"rawQuery",get:function(){return this._rawQuery},set:function(e){this._rawQuery=e}},{key:"query",get:function(){return this._query},set:function(e){this._query=e}},{key:"queryType",get:function(){return this._queryType},set:function(e){this._queryType=e}},{key:"errorMessage",get:function(){return this._errorMessage},set:function(e){this._errorMessage=e}}])}(),f={SPARQL:"sparql",JSON:"json",OTHER:"other"}}}]);
1
+ (window.webpackJsonp=window.webpackJsonp||[]).push([[335,334],{144:function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,s(r.key),r)}}function u(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function s(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==r(t)?t:t+""}n.r(t),n.d(t,"ExplainResponseModel",(function(){return a})),n.d(t,"ExplainQueryMethodsListModel",(function(){return c})),n.d(t,"ExplainQueryMethodModel",(function(){return y})),n.d(t,"ExplainQueryType",(function(){return f}));var a=function(){return u((function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};i(this,e),this._chatId=t.chatId,this._answerId=t.answerId,this._queryMethods=t.queryMethods,this._expanded=void 0===t.expanded||t.expanded}),[{key:"chatId",get:function(){return this._chatId},set:function(e){this._chatId=e}},{key:"answerId",get:function(){return this._answerId},set:function(e){this._answerId=e}},{key:"queryMethods",get:function(){return this._queryMethods},set:function(e){this._queryMethods=e}},{key:"expanded",get:function(){return this._expanded},set:function(e){this._expanded=e}}])}(),c=function(){return u((function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];i(this,e),this._items=t}),[{key:"items",get:function(){return this._items},set:function(e){this._items=e}}])}(),y=function(){return u((function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};i(this,e),this._name=t.name,this._rawQuery=t.rawQuery,this._query=t.query,this._queryType=t.queryType,this._errorMessage=t.errorOutput}),[{key:"name",get:function(){return this._name},set:function(e){this._name=e}},{key:"rawQuery",get:function(){return this._rawQuery},set:function(e){this._rawQuery=e}},{key:"query",get:function(){return this._query},set:function(e){this._query=e}},{key:"queryType",get:function(){return this._queryType},set:function(e){this._queryType=e}},{key:"errorMessage",get:function(){return this._errorMessage},set:function(e){this._errorMessage=e}}])}(),f={SPARQL:"sparql",JSON:"json",OTHER:"other"}}}]);
@@ -1,2 +1,2 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([[34,94,166,297,312,313,315,355,387],{104:function(e,t,r){"use strict";r.r(t),r.d(t,"RenderingMode",(function(){return n}));var n={YASGUI:"mode-yasgui",YASQE:"mode-yasqe",YASR:"mode-yasr"}},149:function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,i(n.key),n)}}function i(e){var t=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==n(t)?t:t+""}r.r(t),r.d(t,"ContextType",(function(){return a})),r.d(t,"ContextTypes",(function(){return c}));var a=function(){return e=function e(t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.id=t,this.labelKey=r},r=[{key:"getAllType",value:function(){return[c.ALL,c.EXPLICIT,c.IMPLICIT]}},{key:"getContextType",value:function(e){return this.getAllType().find((function(t){return t.id===e}))}}],(t=null)&&o(e.prototype,t),r&&o(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,r}(),c={ALL:new a("all","explore.explicit.implicit"),EXPLICIT:new a("explicit","explore.explicit"),IMPLICIT:new a("implicit","explore.implicit")}},154:function(e,t,r){"use strict";function n(e,t,r,n,o){e.JSONLDModes=[{name:"framed",link:"http://www.w3.org/ns/json-ld#framed"},{name:"expanded",link:"http://www.w3.org/ns/json-ld#expanded"},{name:"flattened",link:"http://www.w3.org/ns/json-ld#flattened"},{name:"compacted",link:"http://www.w3.org/ns/json-ld#compacted"}],e.JSONLDModesNames=e.JSONLDModes.reduce((function(e,t){return e[t.name]=t.name,e}),{}),e.JSONLDFramedModes=[e.JSONLDModesNames.framed],e.JSONLDContextModes=[e.JSONLDModesNames.compacted,e.JSONLDModesNames.flattened],e.defaultMode=e.JSONLDModes.find((function(e){return"expanded"===e.name})),e.currentMode=e.defaultMode,e.link=null,e.fileFormat=o.toLowerCase(),e.setJSONLDSettingsToLocalStorage=function(e,t,o){r.set(n.JSONLD_EXPORT_SETTINGS,JSON.stringify({jsonldFormName:e,jsonldFormLink:t,jsonldLink:o}))},e.cancel=function(){t.dismiss()},e.reset=function(){e.currentMode=e.defaultMode,e.link="",e.setJSONLDSettingsToLocalStorage(e.currentMode.name,e.currentMode.link,e.link)},e.clearLinkInput=function(){e.link="",e.setJSONLDSettingsToLocalStorage(e.currentMode.name,e.currentMode.link,e.link)},e.exportJsonLD=function(){e.setJSONLDSettingsToLocalStorage(e.currentMode.name,e.currentMode.link,e.link),t.close({currentMode:e.currentMode,link:e.link})};var i;(i=r.get(n.JSONLD_EXPORT_SETTINGS))&&(e.currentMode=e.JSONLDModes.find((function(e){return e.name===i.jsonldFormName})),e.link=i.jsonldLink)}r.r(t),r.d(t,"ExportSettingsCtrl",(function(){return n})),angular.module("graphdb.framework.core.components.export-settings-modal",["graphdb.framework.utils.localstorageadapter"]).controller("ExportSettingsCtrl",n),n.$inject=["$scope","$uibModalInstance","LocalStorageAdapter","LSKeys","format"]},175:function(e,t){angular.module("graphdb.workbench.utils.filetypes",[]).value("FileTypes",[{name:"JSON",translateKey:"download.as.json",type:"application/rdf+json",extension:".json"},{name:"JSON-LD",translateKey:"download.as.jsonld",type:"application/ld+json",extension:".jsonld"},{name:"NDJSON-LD",translateKey:"download.as.ndjsonld",type:"application/x-ld+ndjson",extension:".ndjsonld"},{name:"RDF-XML",translateKey:"download.as.rdfxml",type:"application/rdf+xml",extension:".rdf"},{name:"N3",translateKey:"download.as.n3",type:"text/rdf+n3",extension:".n3"},{name:"N-Triples",translateKey:"download.as.ntriples",type:"text/plain",extension:".nt"},{name:"N-Quads",translateKey:"download.as.nquads",type:"text/x-nquads",extension:".nq"},{name:"Turtle",translateKey:"download.as.turtle",type:"text/turtle",extension:".ttl"},{name:"Turtle*",translateKey:"download.as.turtlestar",type:"application/x-turtlestar",extension:".ttls"},{name:"TriX",translateKey:"download.as.trix",type:"application/trix",extension:".trix"},{name:"TriG",translateKey:"download.as.trig",type:"application/x-trig",extension:".trig"},{name:"TriG*",translateKey:"download.as.trigstar",type:"application/x-trigstar",extension:".trigs"},{name:"Binary RDF",translateKey:"download.as.binaryrdf",type:"application/x-binary-rdf",extension:".brf"}])},176:function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,a(n.key),n)}}function i(e,t,r){return t&&o(e.prototype,t),r&&o(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function a(e){var t=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==n(t)?t:t+""}r.r(t),r.d(t,"ResourceDetails",(function(){return c}));var c=i((function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.image=void 0,this.uri=void 0,this.label=void 0,this.encodeURI=void 0,this.comment=void 0,this.context=void 0}))},216:function(e,t){angular.module("graphdb.framework.rest.explore.rest.service",[]).factory("ExploreRestService",r),r.$inject=["$http"];function r(e){return{getResourceDetails:function(t,r,n,o){return e.get("".concat("rest/explore","/details"),{params:{uri:t,triple:r,context:n},headers:{Accept:o||"application/json"}})},getGraph:function(t,r,n){return e.get("".concat("rest/explore","/graph"),{params:{uri:t.uri,triple:t.triple,inference:t.contextType.id,role:t.role,bnodes:t.blanks,sameAs:t.sameAs,context:t.context},headers:{Accept:r||"application/x-graphdb-table-results+json",Link:n?"<"+n+">":""}}).then((function(e){return e.data}))}}}},217:function(e,t,r){"use strict";r.r(t),r.d(t,"ResourceInfo",(function(){return u}));var n=r(176),o=r(149);function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,s(n.key),n)}}function c(e,t,r){return t&&a(e.prototype,t),r&&a(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function s(e){var t=function(e,t){if("object"!=i(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==i(t)?t:t+""}var u=c((function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.role="subject",this.uri=void 0,this.triple=void 0,this.context=void 0,this.contextType=o.ContextTypes.EXPLICIT,this.sameAs=!0,this.details=new n.ResourceDetails,this.blanks=!0}))},218:function(e,t,r){"use strict";r.r(t),r.d(t,"RoleType",(function(){return n}));var n={SUBJECT:"subject",PREDICATE:"predicate",OBJECT:"object",CONTEXT:"context",ALL:"all"}},291:function(e,t,r){"use strict";r.r(t);r(175),r(216);var n=r(639),o=r(1),i=r(217),a=r(149),c=r(218),s=r(104),u=r(27),l=r(740),f=r(154);function p(e){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function d(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,c=[],s=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return m(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?m(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function y(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */y=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function u(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,r){return e[t]=r}}function l(e,t,r,n){var i=t&&t.prototype instanceof v?t:v,a=Object.create(i.prototype),c=new C(n||[]);return o(a,"_invoke",{value:I(e,r,c)}),a}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=l;var d="suspendedStart",m="executing",h="completed",g={};function v(){}function w(){}function b(){}var x={};u(x,a,(function(){return this}));var S=Object.getPrototypeOf,T=S&&S(S(k([])));T&&T!==r&&n.call(T,a)&&(x=T);var R=b.prototype=v.prototype=Object.create(x);function E(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function O(e,t){function r(o,i,a,c){var s=f(e[o],e,i);if("throw"!==s.type){var u=s.arg,l=u.value;return l&&"object"==p(l)&&n.call(l,"__await")?t.resolve(l.__await).then((function(e){r("next",e,a,c)}),(function(e){r("throw",e,a,c)})):t.resolve(l).then((function(e){u.value=e,a(u)}),(function(e){return r("throw",e,a,c)}))}c(s.arg)}var i;o(this,"_invoke",{value:function(e,n){function o(){return new t((function(t,o){r(e,n,t,o)}))}return i=i?i.then(o,o):o()}})}function I(t,r,n){var o=d;return function(i,a){if(o===m)throw Error("Generator is already running");if(o===h){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var s=L(c,n);if(s){if(s===g)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===d)throw o=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=m;var u=f(t,r,n);if("normal"===u.type){if(o=n.done?h:"suspendedYield",u.arg===g)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=h,n.method="throw",n.arg=u.arg)}}}function L(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,L(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var i=f(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,g;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function N(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(N,this),this.reset(!0)}function k(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return i.next=i}}throw new TypeError(p(t)+" is not iterable")}return w.prototype=b,o(R,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:w,configurable:!0}),w.displayName=u(b,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===w||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,u(e,s,"GeneratorFunction")),e.prototype=Object.create(R),e},t.awrap=function(e){return{__await:e}},E(O.prototype),u(O.prototype,c,(function(){return this})),t.AsyncIterator=O,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new O(l(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(R),u(R,s,"Generator"),u(R,a,(function(){return this})),u(R,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=k,C.prototype={constructor:C,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(j),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return c.type="throw",c.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var s=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(s&&u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),j(r),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;j(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:k(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),g}},t}function h(e,t,r,n,o,i,a){try{var c=e[i](a),s=c.value}catch(e){return void r(e)}c.done?t(s):Promise.resolve(s).then(n,o)}function g(e,t,r,o,p,m,g,v,w,b,x,S,T,R){var E;e.ContextTypes=a.ContextTypes,e.contextTypes=a.ContextType.getAllType(),e.currentContextTypeId=a.ContextTypes.EXPLICIT.id,e.roles=[c.RoleType.SUBJECT,c.RoleType.PREDICATE,c.RoleType.OBJECT,c.RoleType.CONTEXT,c.RoleType.ALL],e.resourceInfo=void 0,e.isLoading=!1,e.fileTypes=b,e.toggleSameAs=function(){e.resourceInfo.sameAs=!e.resourceInfo.sameAs,e.exploreResource()},e.getActiveRepository=function(){return p.getActiveRepository()},e.isTripleResource=function(){return!!e.resourceInfo.triple},e.encodeURIComponent=function(e){return encodeURIComponent(e)},e.getRdfStarLocalNames=function(e){var t=e.slice();return e.replace(/[<>]+/g,"").split(" ").forEach((function(e){t=t.replace(e,g.getLocalName(e))})),t},e.getLocalName=function(e){return g.getLocalName(e)};e.loadResource=function(){R.getResourceDetails(e.resourceInfo.uri,e.resourceInfo.triple,e.resourceInfo.context).success((function(t){e.resourceInfo.details=t,e.resourceInfo.context=e.resourceInfo.details.context,"object"!==e.resourceInfo.uri&&(e.resourceInfo.details.encodeURI=encodeURIComponent(e.resourceInfo.details.uri))})).error((function(e){return r.error(S.instant("explore.error.resource.details",{data:getError(e)}))})),e.exploreResource()},e.isContextAvailable=function(){return null!==e.resourceInfo.context&&"http://rdf4j.org/schema/rdf4j#SHACLShapeGraph"===e.resourceInfo.context},e.goToGraphsViz=function(){t.path("graphs-visualizations").search("uri",e.resourceInfo.uri)},e.exploreResource=function(){I(!0),null!=o.context&&(e.resourceInfo.context=o.context),t.search("role",e.resourceInfo.role),t.replace(),N()},e.downloadExport=function(t){R.getGraph(e.resourceInfo,t.type).then((function(e){t.type.indexOf("json")>-1&&(e=JSON.stringify(e));var r=navigator.userAgent.toLowerCase();if(-1!==r.indexOf("safari")&&-1===r.indexOf("chrome"))window.open('data:attachment/csv;filename="statements.'+t.extension+'",'+encodeURIComponent(e),"statements."+t.extension);else{var o=new Blob([e],{type:t.type});Object(n.saveAs)(o,"statements"+t.extension)}})).catch((function(e){r.error(getError(e),S.instant("common.error"))})).finally((function(){I(!1)}))},e.openJSONLDExportSettings=function(t){m.open({templateUrl:"js/angular/core/components/export-settings-modal/exportSettingsModal.html",controller:f.ExportSettingsCtrl,size:"lg",scope:e,resolve:{format:function(){return t.name}}}).result.then((function(r){e.downloadJSONLDExport(t,r.link,r.currentMode)}))},e.downloadJSONLDExport=function(t,o,i){R.getGraph(e.resourceInfo,t.type,o).then(function(){var e,r=(e=y().mark((function e(r){var a,c;return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("JSON"===t.name&&(r=JSON.stringify(r)),"JSON-LD"!==t.name){e.next=35;break}e.t0=i.name,e.next="expanded"===e.t0?5:"flattened"===e.t0?10:"compacted"===e.t0?15:"context"===e.t0?20:"frame"===e.t0?25:"framed"===e.t0?30:35;break;case 5:return e.next=7,l.expand(r);case 7:return r=e.sent,r=JSON.stringify(r),e.abrupt("break",35);case 10:return e.next=12,l.flatten(r,o);case 12:return r=e.sent,r=JSON.stringify(r),e.abrupt("break",35);case 15:return e.next=17,l.compact(r,o);case 17:return r=e.sent,r=JSON.stringify(r),e.abrupt("break",35);case 20:return e.next=22,l.context(r,o);case 22:return r=e.sent,r=JSON.stringify(r),e.abrupt("break",35);case 25:return e.next=27,l.frame(r,o);case 27:return r=e.sent,r=JSON.stringify(r),e.abrupt("break",35);case 30:return e.next=32,l.compact(r,o);case 32:return r=e.sent,r=JSON.stringify(r),e.abrupt("break",35);case 35:-1!==(a=navigator.userAgent.toLowerCase()).indexOf("safari")&&-1===a.indexOf("chrome")?window.open('data:attachment/csv;filename="statements.'+t.extension+'",'+encodeURIComponent(r),"statements."+t.extension):(c=new Blob([r],{type:t.type}),Object(n.saveAs)(c,"statements"+t.extension));case 37:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){h(i,n,o,a,c,"next",e)}function c(e){h(i,n,o,a,c,"throw",e)}a(void 0)}))});return function(e){return r.apply(this,arguments)}}()).catch((function(e){var t=getError(e);r.error(t,S.instant("common.error"))}))},e.changeRole=function(t){e.resourceInfo.role=t,e.resourceInfo.role===c.RoleType.CONTEXT&&(e.resourceInfo.contextType=a.ContextTypes.EXPLICIT),e.exploreResource()},e.changeInference=function(t){e.resourceInfo.contextType=a.ContextType.getContextType(t),e.exploreResource()},e.copyToClipboardResult=function(e){v.openCopyToClipboardModal(e)};var O=function(){var r;e.resourceInfo||(e.resourceInfo=new i.ResourceInfo,r=e.resourceInfo,o.prefix&&o.localName&&E[o.prefix]?r.uri=E[o.prefix]+o.localName:t.search().uri?r.uri=t.search().uri+(t.hash()?"#"+t.hash():""):t.search().triple?r.triple=t.search().triple+(t.hash()?"#"+t.hash():""):r.uri=t.absUrl(),r.uri=r.uri&&r.uri.replace(/<|>/g,""),null!=o.context&&(e.resourceInfo.context=o.context),e.resourceInfo.role=t.search().role?t.search().role:c.RoleType.SUBJECT)},I=function(t){e.isLoading=!!t},L=function(){return{showEditorTabs:!1,showToolbar:!1,showResultTabs:!1,showResultInfo:!0,downloadAsOn:!1,showQueryButton:!1,componentId:"resource-view-component",prefixes:E,maxPersistentResponseSize:0,render:s.RenderingMode.YASR,showYasqeActionButtons:!1,yasqeActionButtons:u.DISABLE_YASQE_BUTTONS_CONFIGURATION}},N=function(){R.getGraph(e.resourceInfo).then((function(t){!function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r={};angular.extend(r,e.yasguiConfig||L(),t),e.yasguiConfig=r}({sparqlResponse:t})})).catch((function(e){r.error(S.instant("explore.error.resource",{data:getError(e)}))})).finally((function(){I(!1)}))},j=function(t){e.resourceInfo.contextType=t.appSettings.DEFAULT_INFERENCE&&!e.resourceInfo.role===c.RoleType.CONTEXT?a.ContextTypes.ALL:a.ContextTypes.EXPLICIT,e.resourceInfo.sameAs=t.appSettings.DEFAULT_INFERENCE&&t.appSettings.DEFAULT_SAMEAS};e.$on("$destroy",(function(){C.forEach((function(e){return e()}))}));var C=[];C.push(e.$watch((function(){return e.getActiveRepositoryObject()}),(function(t){t&&Promise.all([x.getPrincipal(),p.getPrefixes(p.getActiveRepository())]).then((function(t){var r=d(t,2),n=r[0],o=r[1];O(),j(n),E=o,e.loadResource()})).catch((function(e){r.error(S.instant("get.namespaces.error.msg",{error:getError(e)}))}))})))}function v(e,t,r,n,i,a,c,s,u,l,f,p){function d(){s.checkAutocompleteStatus().success((function(t){if(!t){var r=Object(o.decodeHTML)(p.instant("explore.autocomplete.warning.msg"));c.warning("",'<div class="autocomplete-toast"><a href="autocomplete">'.concat(r,"</a></div>"),{allowHtml:!0})}e.autocompleteEnabled=t})).error((function(){c.error(p.instant("explore.error.autocomplete"))}))}function m(){f.getNamespaces(n.getActiveRepository()).success((function(t){e.namespaces=t.results.bindings.map((function(e){return{prefix:e.prefix.value,uri:e.namespace.value}})),e.loader=!1})).error((function(t){var r=getError(t);c.error(r,p.instant("common.error")),e.loader=!1}))}function y(e){var t=e.indexOf("<")>=0&&e.lastIndexOf(">")===e.length-1,r=-1===e.indexOf("<")&&-1===e.lastIndexOf(">"),n=/^<?[http|urn].*>?$/.test(e)&&(t||r),o=!1;if(n)if(e.indexOf("http")>=0){var i=e.indexOf("//");o=i>4&&e.substring(i+2).length>0}else e.indexOf("urn")>=0&&(o=e.substring(4).length>0);return n&&o}var h,g;function v(t){function n(t){a((function(){e.form&&(e.form.$dirty=t)}))}t||(t=document.getElementById("resources_finder_value").value),t&&y(t)?(n(!1),r.path("resource").search("uri",t)):(n(!0),t&&c.error(p.instant("explore.error.invalid.input")))}e.submit=v,e.getAutocompleteSuggestions=function(t){var r;if(!/<|>/.test(t)&&":"===t.slice(-1)){var n=u.getNamespaceUriForPrefix(e.namespaces,t.slice(0,-1));(g=n!==g?n:g)&&$("#resources_finder_value").val(g)}if(e.autocompleteEnabled){var o=t.replace(g,g+";");r=s.getAutocompleteSuggestions(o)}else r=i.when(e.autocompleteEnabled);return r},e.inputChangedFn=function(){h=document.getElementById("resources_finder_value").value,e.form.$dirty=!(h&&y(h))},e.selectedUriCallback=function(t){e.selectedUri={name:t.title},v(e.selectedUri.name)},e.selectedUri={name:""},e.autocompleteEnabled=!1,angular.isDefined(l.search)&&a((function(){$("#resources_finder_value").val(l.search),$(".search-button").click()}),500),e.getActiveRepository()&&(d(),m()),e.$on("repositoryIsSet",(function(){d(),m()}))}function w(e,t,r,n,o,i,a,c,s,u,l){e.uriParam=r.search().uri,e.newRow={subject:e.uriParam,object:{type:"uri",datatype:""}},e.newResource=!1,e.datatypeOptions=s.getDatatypeOptions(),e.activeRepository=function(){return o.getActiveRepository()},e.getClassInstancesDetails=function(){u.getNamespaces(e.activeRepository()).success((function(t){e.namespaces=t.results.bindings.map((function(e){return{prefix:e.prefix.value,uri:e.namespace.value}})),e.loader=!1})).error((function(t){var r=getError(t);n.error(r,l.instant("common.error")),e.loader=!1})),c.getDetails(e.uriParam).success((function(t){e.details=t,e.details.encodeURI=encodeURIComponent(e.details.uri)})).error((function(e){n.error(l.instant("explore.error.resource.details",{data:getError(e)}))})),c.getGraph(e.uriParam).then((function(t){var r=s.buildStatements(t,e.uriParam);e.statements=r,e.newResource=!r.length}))},e.addStatement=function(){e.newRowPredicate.$setSubmitted(),e.newRowObject.$setSubmitted(),e.newRowContext.$setSubmitted(),e.newRowPredicate.$valid&&e.newRowObject.$valid&&e.newRowContext.$valid&&(e.statements.push(_.cloneDeep(e.newRow)),e.newRow={subject:e.uriParam,object:{type:"uri",datatype:""}},e.newRowPredicate.$setPristine(),e.newRowPredicate.$setUntouched(),e.newRowObject.$setPristine(),e.newRowObject.$setUntouched(),e.newRowContext.$setPristine(),e.newRowContext.$setUntouched())},e.removeStatement=function(t){e.statements.splice(t,1)},e.getLocalName=function(e){return c.getLocalName(e)},e.checkValid=function(e){if(!angular.isUndefined(e))return!0;return l.instant("explore.validation")},e.validEditRow=function(){return e.rowform.$valid},e.viewTrig=function(){i.open({templateUrl:"js/angular/explore/templates/viewTrig.html",controller:"ViewTrigCtrl",size:"lg",resolve:{data:function(){return s.transformToTrig(e.statements)}}})},e.save=function(){var o=e.newResource?"POST":"PUT";t({method:o,url:"rest/resource?uri="+encodeURIComponent(e.uriParam),headers:{"Content-Type":"application/x-trig"},data:s.transformToTrig(e.statements)}).success((function(){n.success(l.instant("explore.resource.saved"));var t=a((function(){r.path("resource").search("uri",e.uriParam)}),500);e.$on("$destroy",(function(){a.cancel(t)}))})).error((function(e){n.error(getError(e))}))},e.$watch((function(){return o.getActiveRepository()}),(function(){e.activeRepository()&&e.getClassInstancesDetails()})),e.validateUri=function(t){var r=!0,n=t||"";if(-1===n.indexOf(":"))r=!1;else{var o=n.substring(0,n.indexOf(":"));if(""===c.getNamespaceUriForPrefix(e.namespaces,o)){!1===/^(http:\/\/www\.|https:\/\/www\.|http:\/\/|https:\/\/)[a-z0-9]+([\-\.]{1}[a-z0-9]+)*\.[a-z]{2,5}(:[0-9]{1,5})?(\/.*)?$/.test(n)&&(r=!1);var i=n.match(/\//g);(void 0===i||i.length<3)&&(r=!1)}else{n.substring(n.indexOf(":")+1).trim().length<1&&(r=!1)}}return r}}function b(e,t,r){e.trig=r,e.cancel=function(){t.dismiss("cancel")}}angular.module("graphdb.framework.explore.controllers",["ngCookies","ngRoute","ui.bootstrap","toastr","graphdb.framework.core","graphdb.framework.core.services.repositories","graphdb.framework.explore.services","graphdb.workbench.utils.filetypes","graphdb.framework.rest.explore.rest.service"]).controller("FindResourceCtrl",v).controller("ExploreCtrl",g).controller("EditResourceCtrl",w).controller("ViewTrigCtrl",b),g.$inject=["$scope","$location","toastr","$routeParams","$repositories","$uibModal","ClassInstanceDetailsService","ModalService","RDF4JRepositoriesRestService","FileTypes","$jwtAuth","$translate","$q","ExploreRestService"],v.$inject=["$scope","$http","$location","$repositories","$q","$timeout","toastr","AutocompleteRestService","ClassInstanceDetailsService","$routeParams","RDF4JRepositoriesRestService","$translate"],w.$inject=["$scope","$http","$location","toastr","$repositories","$uibModal","$timeout","ClassInstanceDetailsService","StatementsService","RDF4JRepositoriesRestService","$translate"],b.$inject=["$scope","$uibModalInstance","data"]},638:function(e,t){(function(t){e.exports=t}).call(this,{})},639:function(e,t,r){var n,o=o||function(e){"use strict";if("undefined"==typeof navigator||!/MSIE [1-9]\./.test(navigator.userAgent)){var t=e.document,r=function(){return e.URL||e.webkitURL||e},n=t.createElementNS("http://www.w3.org/1999/xhtml","a"),o=e.webkitRequestFileSystem,i=e.requestFileSystem||o||e.mozRequestFileSystem,a=function(t){(e.setImmediate||e.setTimeout)((function(){throw t}),0)},c=0,s=function(t){var n=function(){"string"==typeof t?r().revokeObjectURL(t):t.remove()};e.chrome?n():setTimeout(n,500)},u=function(e,t,r){for(var n=(t=[].concat(t)).length;n--;){var o=e["on"+t[n]];if("function"==typeof o)try{o.call(e,r||e)}catch(e){a(e)}}},l=function(e){return/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob(["\ufeff",e],{type:e.type}):e},f=function(t,a){t=l(t);var f,p,d,m=this,y=t.type,h=!1,g=function(){u(m,"writestart progress write writeend".split(" "))},v=function(){(!h&&f||(f=r().createObjectURL(t)),p)?p.location.href=f:null==e.open(f,"_blank")&&"undefined"!=typeof safari&&(e.location.href=f);m.readyState=m.DONE,g(),s(f)},w=function(e){return function(){if(m.readyState!==m.DONE)return e.apply(this,arguments)}},b={create:!0,exclusive:!1};if(m.readyState=m.INIT,a||(a="download"),n)return f=r().createObjectURL(t),n.href=f,n.download=a,void setTimeout((function(){var e,t;e=n,t=new MouseEvent("click"),e.dispatchEvent(t),g(),s(f),m.readyState=m.DONE}));e.chrome&&y&&"application/octet-stream"!==y&&(d=t.slice||t.webkitSlice,t=d.call(t,0,t.size,"application/octet-stream"),h=!0),o&&"download"!==a&&(a+=".download"),("application/octet-stream"===y||o)&&(p=e),i?(c+=t.size,i(e.TEMPORARY,c,w((function(e){e.root.getDirectory("saved",b,w((function(e){var r=function(){e.getFile(a,b,w((function(e){e.createWriter(w((function(r){r.onwriteend=function(t){p.location.href=e.toURL(),m.readyState=m.DONE,u(m,"writeend",t),s(e)},r.onerror=function(){var e=r.error;e.code!==e.ABORT_ERR&&v()},"writestart progress write abort".split(" ").forEach((function(e){r["on"+e]=m["on"+e]})),r.write(t),m.abort=function(){r.abort(),m.readyState=m.DONE},m.readyState=m.WRITING})),v)})),v)};e.getFile(a,{create:!1},w((function(e){e.remove(),r()})),w((function(e){e.code===e.NOT_FOUND_ERR?r():v()})))})),v)})),v)):v()},p=f.prototype;return"undefined"!=typeof navigator&&navigator.msSaveOrOpenBlob?function(e,t){return navigator.msSaveOrOpenBlob(l(e),t)}:(p.abort=function(){this.readyState=this.DONE,u(this,"abort")},p.readyState=p.INIT=0,p.WRITING=1,p.DONE=2,p.error=p.onwritestart=p.onprogress=p.onwrite=p.onabort=p.onerror=p.onwriteend=null,function(e,t){return new f(e,t)})}}("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||this.content);
1
+ (window.webpackJsonp=window.webpackJsonp||[]).push([[34,96,166,297,312,313,315,355,387],{104:function(e,t,r){"use strict";r.r(t),r.d(t,"RenderingMode",(function(){return n}));var n={YASGUI:"mode-yasgui",YASQE:"mode-yasqe",YASR:"mode-yasr"}},150:function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,i(n.key),n)}}function i(e){var t=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==n(t)?t:t+""}r.r(t),r.d(t,"ContextType",(function(){return a})),r.d(t,"ContextTypes",(function(){return c}));var a=function(){return e=function e(t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.id=t,this.labelKey=r},r=[{key:"getAllType",value:function(){return[c.ALL,c.EXPLICIT,c.IMPLICIT]}},{key:"getContextType",value:function(e){return this.getAllType().find((function(t){return t.id===e}))}}],(t=null)&&o(e.prototype,t),r&&o(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,r}(),c={ALL:new a("all","explore.explicit.implicit"),EXPLICIT:new a("explicit","explore.explicit"),IMPLICIT:new a("implicit","explore.implicit")}},155:function(e,t,r){"use strict";function n(e,t,r,n,o){e.JSONLDModes=[{name:"framed",link:"http://www.w3.org/ns/json-ld#framed"},{name:"expanded",link:"http://www.w3.org/ns/json-ld#expanded"},{name:"flattened",link:"http://www.w3.org/ns/json-ld#flattened"},{name:"compacted",link:"http://www.w3.org/ns/json-ld#compacted"}],e.JSONLDModesNames=e.JSONLDModes.reduce((function(e,t){return e[t.name]=t.name,e}),{}),e.JSONLDFramedModes=[e.JSONLDModesNames.framed],e.JSONLDContextModes=[e.JSONLDModesNames.compacted,e.JSONLDModesNames.flattened],e.defaultMode=e.JSONLDModes.find((function(e){return"expanded"===e.name})),e.currentMode=e.defaultMode,e.link=null,e.fileFormat=o.toLowerCase(),e.setJSONLDSettingsToLocalStorage=function(e,t,o){r.set(n.JSONLD_EXPORT_SETTINGS,JSON.stringify({jsonldFormName:e,jsonldFormLink:t,jsonldLink:o}))},e.cancel=function(){t.dismiss()},e.reset=function(){e.currentMode=e.defaultMode,e.link="",e.setJSONLDSettingsToLocalStorage(e.currentMode.name,e.currentMode.link,e.link)},e.clearLinkInput=function(){e.link="",e.setJSONLDSettingsToLocalStorage(e.currentMode.name,e.currentMode.link,e.link)},e.exportJsonLD=function(){e.setJSONLDSettingsToLocalStorage(e.currentMode.name,e.currentMode.link,e.link),t.close({currentMode:e.currentMode,link:e.link})};var i;(i=r.get(n.JSONLD_EXPORT_SETTINGS))&&(e.currentMode=e.JSONLDModes.find((function(e){return e.name===i.jsonldFormName})),e.link=i.jsonldLink)}r.r(t),r.d(t,"ExportSettingsCtrl",(function(){return n})),angular.module("graphdb.framework.core.components.export-settings-modal",["graphdb.framework.utils.localstorageadapter"]).controller("ExportSettingsCtrl",n),n.$inject=["$scope","$uibModalInstance","LocalStorageAdapter","LSKeys","format"]},175:function(e,t){angular.module("graphdb.workbench.utils.filetypes",[]).value("FileTypes",[{name:"JSON",translateKey:"download.as.json",type:"application/rdf+json",extension:".json"},{name:"JSON-LD",translateKey:"download.as.jsonld",type:"application/ld+json",extension:".jsonld"},{name:"NDJSON-LD",translateKey:"download.as.ndjsonld",type:"application/x-ld+ndjson",extension:".ndjsonld"},{name:"RDF-XML",translateKey:"download.as.rdfxml",type:"application/rdf+xml",extension:".rdf"},{name:"N3",translateKey:"download.as.n3",type:"text/rdf+n3",extension:".n3"},{name:"N-Triples",translateKey:"download.as.ntriples",type:"text/plain",extension:".nt"},{name:"N-Quads",translateKey:"download.as.nquads",type:"text/x-nquads",extension:".nq"},{name:"Turtle",translateKey:"download.as.turtle",type:"text/turtle",extension:".ttl"},{name:"Turtle*",translateKey:"download.as.turtlestar",type:"application/x-turtlestar",extension:".ttls"},{name:"TriX",translateKey:"download.as.trix",type:"application/trix",extension:".trix"},{name:"TriG",translateKey:"download.as.trig",type:"application/x-trig",extension:".trig"},{name:"TriG*",translateKey:"download.as.trigstar",type:"application/x-trigstar",extension:".trigs"},{name:"Binary RDF",translateKey:"download.as.binaryrdf",type:"application/x-binary-rdf",extension:".brf"}])},176:function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,a(n.key),n)}}function i(e,t,r){return t&&o(e.prototype,t),r&&o(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function a(e){var t=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==n(t)?t:t+""}r.r(t),r.d(t,"ResourceDetails",(function(){return c}));var c=i((function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.image=void 0,this.uri=void 0,this.label=void 0,this.encodeURI=void 0,this.comment=void 0,this.context=void 0}))},216:function(e,t){angular.module("graphdb.framework.rest.explore.rest.service",[]).factory("ExploreRestService",r),r.$inject=["$http"];function r(e){return{getResourceDetails:function(t,r,n,o){return e.get("".concat("rest/explore","/details"),{params:{uri:t,triple:r,context:n},headers:{Accept:o||"application/json"}})},getGraph:function(t,r,n){return e.get("".concat("rest/explore","/graph"),{params:{uri:t.uri,triple:t.triple,inference:t.contextType.id,role:t.role,bnodes:t.blanks,sameAs:t.sameAs,context:t.context},headers:{Accept:r||"application/x-graphdb-table-results+json",Link:n?"<"+n+">":""}}).then((function(e){return e.data}))}}}},217:function(e,t,r){"use strict";r.r(t),r.d(t,"ResourceInfo",(function(){return u}));var n=r(176),o=r(150);function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,s(n.key),n)}}function c(e,t,r){return t&&a(e.prototype,t),r&&a(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function s(e){var t=function(e,t){if("object"!=i(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==i(t)?t:t+""}var u=c((function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.role="subject",this.uri=void 0,this.triple=void 0,this.context=void 0,this.contextType=o.ContextTypes.EXPLICIT,this.sameAs=!0,this.details=new n.ResourceDetails,this.blanks=!0}))},218:function(e,t,r){"use strict";r.r(t),r.d(t,"RoleType",(function(){return n}));var n={SUBJECT:"subject",PREDICATE:"predicate",OBJECT:"object",CONTEXT:"context",ALL:"all"}},291:function(e,t,r){"use strict";r.r(t);r(175),r(216);var n=r(639),o=r(1),i=r(217),a=r(150),c=r(218),s=r(104),u=r(27),l=r(740),f=r(155);function p(e){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function d(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,c=[],s=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return m(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?m(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function y(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */y=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function u(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,r){return e[t]=r}}function l(e,t,r,n){var i=t&&t.prototype instanceof v?t:v,a=Object.create(i.prototype),c=new C(n||[]);return o(a,"_invoke",{value:I(e,r,c)}),a}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=l;var d="suspendedStart",m="executing",h="completed",g={};function v(){}function w(){}function b(){}var x={};u(x,a,(function(){return this}));var S=Object.getPrototypeOf,T=S&&S(S(k([])));T&&T!==r&&n.call(T,a)&&(x=T);var R=b.prototype=v.prototype=Object.create(x);function E(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function O(e,t){function r(o,i,a,c){var s=f(e[o],e,i);if("throw"!==s.type){var u=s.arg,l=u.value;return l&&"object"==p(l)&&n.call(l,"__await")?t.resolve(l.__await).then((function(e){r("next",e,a,c)}),(function(e){r("throw",e,a,c)})):t.resolve(l).then((function(e){u.value=e,a(u)}),(function(e){return r("throw",e,a,c)}))}c(s.arg)}var i;o(this,"_invoke",{value:function(e,n){function o(){return new t((function(t,o){r(e,n,t,o)}))}return i=i?i.then(o,o):o()}})}function I(t,r,n){var o=d;return function(i,a){if(o===m)throw Error("Generator is already running");if(o===h){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var s=L(c,n);if(s){if(s===g)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===d)throw o=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=m;var u=f(t,r,n);if("normal"===u.type){if(o=n.done?h:"suspendedYield",u.arg===g)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=h,n.method="throw",n.arg=u.arg)}}}function L(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,L(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var i=f(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,g;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function N(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(N,this),this.reset(!0)}function k(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return i.next=i}}throw new TypeError(p(t)+" is not iterable")}return w.prototype=b,o(R,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:w,configurable:!0}),w.displayName=u(b,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===w||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,u(e,s,"GeneratorFunction")),e.prototype=Object.create(R),e},t.awrap=function(e){return{__await:e}},E(O.prototype),u(O.prototype,c,(function(){return this})),t.AsyncIterator=O,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new O(l(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(R),u(R,s,"Generator"),u(R,a,(function(){return this})),u(R,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=k,C.prototype={constructor:C,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(j),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return c.type="throw",c.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var s=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(s&&u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),j(r),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;j(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:k(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),g}},t}function h(e,t,r,n,o,i,a){try{var c=e[i](a),s=c.value}catch(e){return void r(e)}c.done?t(s):Promise.resolve(s).then(n,o)}function g(e,t,r,o,p,m,g,v,w,b,x,S,T,R){var E;e.ContextTypes=a.ContextTypes,e.contextTypes=a.ContextType.getAllType(),e.currentContextTypeId=a.ContextTypes.EXPLICIT.id,e.roles=[c.RoleType.SUBJECT,c.RoleType.PREDICATE,c.RoleType.OBJECT,c.RoleType.CONTEXT,c.RoleType.ALL],e.resourceInfo=void 0,e.isLoading=!1,e.fileTypes=b,e.toggleSameAs=function(){e.resourceInfo.sameAs=!e.resourceInfo.sameAs,e.exploreResource()},e.getActiveRepository=function(){return p.getActiveRepository()},e.isTripleResource=function(){return!!e.resourceInfo.triple},e.encodeURIComponent=function(e){return encodeURIComponent(e)},e.getRdfStarLocalNames=function(e){var t=e.slice();return e.replace(/[<>]+/g,"").split(" ").forEach((function(e){t=t.replace(e,g.getLocalName(e))})),t},e.getLocalName=function(e){return g.getLocalName(e)};e.loadResource=function(){R.getResourceDetails(e.resourceInfo.uri,e.resourceInfo.triple,e.resourceInfo.context).success((function(t){e.resourceInfo.details=t,e.resourceInfo.context=e.resourceInfo.details.context,"object"!==e.resourceInfo.uri&&(e.resourceInfo.details.encodeURI=encodeURIComponent(e.resourceInfo.details.uri))})).error((function(e){return r.error(S.instant("explore.error.resource.details",{data:getError(e)}))})),e.exploreResource()},e.isContextAvailable=function(){return null!==e.resourceInfo.context&&"http://rdf4j.org/schema/rdf4j#SHACLShapeGraph"===e.resourceInfo.context},e.goToGraphsViz=function(){t.path("graphs-visualizations").search("uri",e.resourceInfo.uri)},e.exploreResource=function(){I(!0),null!=o.context&&(e.resourceInfo.context=o.context),t.search("role",e.resourceInfo.role),t.replace(),N()},e.downloadExport=function(t){R.getGraph(e.resourceInfo,t.type).then((function(e){t.type.indexOf("json")>-1&&(e=JSON.stringify(e));var r=navigator.userAgent.toLowerCase();if(-1!==r.indexOf("safari")&&-1===r.indexOf("chrome"))window.open('data:attachment/csv;filename="statements.'+t.extension+'",'+encodeURIComponent(e),"statements."+t.extension);else{var o=new Blob([e],{type:t.type});Object(n.saveAs)(o,"statements"+t.extension)}})).catch((function(e){r.error(getError(e),S.instant("common.error"))})).finally((function(){I(!1)}))},e.openJSONLDExportSettings=function(t){m.open({templateUrl:"js/angular/core/components/export-settings-modal/exportSettingsModal.html",controller:f.ExportSettingsCtrl,size:"lg",scope:e,resolve:{format:function(){return t.name}}}).result.then((function(r){e.downloadJSONLDExport(t,r.link,r.currentMode)}))},e.downloadJSONLDExport=function(t,o,i){R.getGraph(e.resourceInfo,t.type,o).then(function(){var e,r=(e=y().mark((function e(r){var a,c;return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("JSON"===t.name&&(r=JSON.stringify(r)),"JSON-LD"!==t.name){e.next=35;break}e.t0=i.name,e.next="expanded"===e.t0?5:"flattened"===e.t0?10:"compacted"===e.t0?15:"context"===e.t0?20:"frame"===e.t0?25:"framed"===e.t0?30:35;break;case 5:return e.next=7,l.expand(r);case 7:return r=e.sent,r=JSON.stringify(r),e.abrupt("break",35);case 10:return e.next=12,l.flatten(r,o);case 12:return r=e.sent,r=JSON.stringify(r),e.abrupt("break",35);case 15:return e.next=17,l.compact(r,o);case 17:return r=e.sent,r=JSON.stringify(r),e.abrupt("break",35);case 20:return e.next=22,l.context(r,o);case 22:return r=e.sent,r=JSON.stringify(r),e.abrupt("break",35);case 25:return e.next=27,l.frame(r,o);case 27:return r=e.sent,r=JSON.stringify(r),e.abrupt("break",35);case 30:return e.next=32,l.compact(r,o);case 32:return r=e.sent,r=JSON.stringify(r),e.abrupt("break",35);case 35:-1!==(a=navigator.userAgent.toLowerCase()).indexOf("safari")&&-1===a.indexOf("chrome")?window.open('data:attachment/csv;filename="statements.'+t.extension+'",'+encodeURIComponent(r),"statements."+t.extension):(c=new Blob([r],{type:t.type}),Object(n.saveAs)(c,"statements"+t.extension));case 37:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){h(i,n,o,a,c,"next",e)}function c(e){h(i,n,o,a,c,"throw",e)}a(void 0)}))});return function(e){return r.apply(this,arguments)}}()).catch((function(e){var t=getError(e);r.error(t,S.instant("common.error"))}))},e.changeRole=function(t){e.resourceInfo.role=t,e.resourceInfo.role===c.RoleType.CONTEXT&&(e.resourceInfo.contextType=a.ContextTypes.EXPLICIT),e.exploreResource()},e.changeInference=function(t){e.resourceInfo.contextType=a.ContextType.getContextType(t),e.exploreResource()},e.copyToClipboardResult=function(e){v.openCopyToClipboardModal(e)};var O=function(){var r;e.resourceInfo||(e.resourceInfo=new i.ResourceInfo,r=e.resourceInfo,o.prefix&&o.localName&&E[o.prefix]?r.uri=E[o.prefix]+o.localName:t.search().uri?r.uri=t.search().uri+(t.hash()?"#"+t.hash():""):t.search().triple?r.triple=t.search().triple+(t.hash()?"#"+t.hash():""):r.uri=t.absUrl(),r.uri=r.uri&&r.uri.replace(/<|>/g,""),null!=o.context&&(e.resourceInfo.context=o.context),e.resourceInfo.role=t.search().role?t.search().role:c.RoleType.SUBJECT)},I=function(t){e.isLoading=!!t},L=function(){return{showEditorTabs:!1,showToolbar:!1,showResultTabs:!1,showResultInfo:!0,downloadAsOn:!1,showQueryButton:!1,componentId:"resource-view-component",prefixes:E,maxPersistentResponseSize:0,render:s.RenderingMode.YASR,showYasqeActionButtons:!1,yasqeActionButtons:u.DISABLE_YASQE_BUTTONS_CONFIGURATION}},N=function(){R.getGraph(e.resourceInfo).then((function(t){!function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r={};angular.extend(r,e.yasguiConfig||L(),t),e.yasguiConfig=r}({sparqlResponse:t})})).catch((function(e){r.error(S.instant("explore.error.resource",{data:getError(e)}))})).finally((function(){I(!1)}))},j=function(t){e.resourceInfo.contextType=t.appSettings.DEFAULT_INFERENCE&&!e.resourceInfo.role===c.RoleType.CONTEXT?a.ContextTypes.ALL:a.ContextTypes.EXPLICIT,e.resourceInfo.sameAs=t.appSettings.DEFAULT_INFERENCE&&t.appSettings.DEFAULT_SAMEAS};e.$on("$destroy",(function(){C.forEach((function(e){return e()}))}));var C=[];C.push(e.$watch((function(){return e.getActiveRepositoryObject()}),(function(t){t&&Promise.all([x.getPrincipal(),p.getPrefixes(p.getActiveRepository())]).then((function(t){var r=d(t,2),n=r[0],o=r[1];O(),j(n),E=o,e.loadResource()})).catch((function(e){r.error(S.instant("get.namespaces.error.msg",{error:getError(e)}))}))})))}function v(e,t,r,n,i,a,c,s,u,l,f,p){function d(){s.checkAutocompleteStatus().success((function(t){if(!t){var r=Object(o.decodeHTML)(p.instant("explore.autocomplete.warning.msg"));c.warning("",'<div class="autocomplete-toast"><a href="autocomplete">'.concat(r,"</a></div>"),{allowHtml:!0})}e.autocompleteEnabled=t})).error((function(){c.error(p.instant("explore.error.autocomplete"))}))}function m(){f.getNamespaces(n.getActiveRepository()).success((function(t){e.namespaces=t.results.bindings.map((function(e){return{prefix:e.prefix.value,uri:e.namespace.value}})),e.loader=!1})).error((function(t){var r=getError(t);c.error(r,p.instant("common.error")),e.loader=!1}))}function y(e){var t=e.indexOf("<")>=0&&e.lastIndexOf(">")===e.length-1,r=-1===e.indexOf("<")&&-1===e.lastIndexOf(">"),n=/^<?[http|urn].*>?$/.test(e)&&(t||r),o=!1;if(n)if(e.indexOf("http")>=0){var i=e.indexOf("//");o=i>4&&e.substring(i+2).length>0}else e.indexOf("urn")>=0&&(o=e.substring(4).length>0);return n&&o}var h,g;function v(t){function n(t){a((function(){e.form&&(e.form.$dirty=t)}))}t||(t=document.getElementById("resources_finder_value").value),t&&y(t)?(n(!1),r.path("resource").search("uri",t)):(n(!0),t&&c.error(p.instant("explore.error.invalid.input")))}e.submit=v,e.getAutocompleteSuggestions=function(t){var r;if(!/<|>/.test(t)&&":"===t.slice(-1)){var n=u.getNamespaceUriForPrefix(e.namespaces,t.slice(0,-1));(g=n!==g?n:g)&&$("#resources_finder_value").val(g)}if(e.autocompleteEnabled){var o=t.replace(g,g+";");r=s.getAutocompleteSuggestions(o)}else r=i.when(e.autocompleteEnabled);return r},e.inputChangedFn=function(){h=document.getElementById("resources_finder_value").value,e.form.$dirty=!(h&&y(h))},e.selectedUriCallback=function(t){e.selectedUri={name:t.title},v(e.selectedUri.name)},e.selectedUri={name:""},e.autocompleteEnabled=!1,angular.isDefined(l.search)&&a((function(){$("#resources_finder_value").val(l.search),$(".search-button").click()}),500),e.getActiveRepository()&&(d(),m()),e.$on("repositoryIsSet",(function(){d(),m()}))}function w(e,t,r,n,o,i,a,c,s,u,l){e.uriParam=r.search().uri,e.newRow={subject:e.uriParam,object:{type:"uri",datatype:""}},e.newResource=!1,e.datatypeOptions=s.getDatatypeOptions(),e.activeRepository=function(){return o.getActiveRepository()},e.getClassInstancesDetails=function(){u.getNamespaces(e.activeRepository()).success((function(t){e.namespaces=t.results.bindings.map((function(e){return{prefix:e.prefix.value,uri:e.namespace.value}})),e.loader=!1})).error((function(t){var r=getError(t);n.error(r,l.instant("common.error")),e.loader=!1})),c.getDetails(e.uriParam).success((function(t){e.details=t,e.details.encodeURI=encodeURIComponent(e.details.uri)})).error((function(e){n.error(l.instant("explore.error.resource.details",{data:getError(e)}))})),c.getGraph(e.uriParam).then((function(t){var r=s.buildStatements(t,e.uriParam);e.statements=r,e.newResource=!r.length}))},e.addStatement=function(){e.newRowPredicate.$setSubmitted(),e.newRowObject.$setSubmitted(),e.newRowContext.$setSubmitted(),e.newRowPredicate.$valid&&e.newRowObject.$valid&&e.newRowContext.$valid&&(e.statements.push(_.cloneDeep(e.newRow)),e.newRow={subject:e.uriParam,object:{type:"uri",datatype:""}},e.newRowPredicate.$setPristine(),e.newRowPredicate.$setUntouched(),e.newRowObject.$setPristine(),e.newRowObject.$setUntouched(),e.newRowContext.$setPristine(),e.newRowContext.$setUntouched())},e.removeStatement=function(t){e.statements.splice(t,1)},e.getLocalName=function(e){return c.getLocalName(e)},e.checkValid=function(e){if(!angular.isUndefined(e))return!0;return l.instant("explore.validation")},e.validEditRow=function(){return e.rowform.$valid},e.viewTrig=function(){i.open({templateUrl:"js/angular/explore/templates/viewTrig.html",controller:"ViewTrigCtrl",size:"lg",resolve:{data:function(){return s.transformToTrig(e.statements)}}})},e.save=function(){var o=e.newResource?"POST":"PUT";t({method:o,url:"rest/resource?uri="+encodeURIComponent(e.uriParam),headers:{"Content-Type":"application/x-trig"},data:s.transformToTrig(e.statements)}).success((function(){n.success(l.instant("explore.resource.saved"));var t=a((function(){r.path("resource").search("uri",e.uriParam)}),500);e.$on("$destroy",(function(){a.cancel(t)}))})).error((function(e){n.error(getError(e))}))},e.$watch((function(){return o.getActiveRepository()}),(function(){e.activeRepository()&&e.getClassInstancesDetails()})),e.validateUri=function(t){var r=!0,n=t||"";if(-1===n.indexOf(":"))r=!1;else{var o=n.substring(0,n.indexOf(":"));if(""===c.getNamespaceUriForPrefix(e.namespaces,o)){!1===/^(http:\/\/www\.|https:\/\/www\.|http:\/\/|https:\/\/)[a-z0-9]+([\-\.]{1}[a-z0-9]+)*\.[a-z]{2,5}(:[0-9]{1,5})?(\/.*)?$/.test(n)&&(r=!1);var i=n.match(/\//g);(void 0===i||i.length<3)&&(r=!1)}else{n.substring(n.indexOf(":")+1).trim().length<1&&(r=!1)}}return r}}function b(e,t,r){e.trig=r,e.cancel=function(){t.dismiss("cancel")}}angular.module("graphdb.framework.explore.controllers",["ngCookies","ngRoute","ui.bootstrap","toastr","graphdb.framework.core","graphdb.framework.core.services.repositories","graphdb.framework.explore.services","graphdb.workbench.utils.filetypes","graphdb.framework.rest.explore.rest.service"]).controller("FindResourceCtrl",v).controller("ExploreCtrl",g).controller("EditResourceCtrl",w).controller("ViewTrigCtrl",b),g.$inject=["$scope","$location","toastr","$routeParams","$repositories","$uibModal","ClassInstanceDetailsService","ModalService","RDF4JRepositoriesRestService","FileTypes","$jwtAuth","$translate","$q","ExploreRestService"],v.$inject=["$scope","$http","$location","$repositories","$q","$timeout","toastr","AutocompleteRestService","ClassInstanceDetailsService","$routeParams","RDF4JRepositoriesRestService","$translate"],w.$inject=["$scope","$http","$location","toastr","$repositories","$uibModal","$timeout","ClassInstanceDetailsService","StatementsService","RDF4JRepositoriesRestService","$translate"],b.$inject=["$scope","$uibModalInstance","data"]},638:function(e,t){(function(t){e.exports=t}).call(this,{})},639:function(e,t,r){var n,o=o||function(e){"use strict";if("undefined"==typeof navigator||!/MSIE [1-9]\./.test(navigator.userAgent)){var t=e.document,r=function(){return e.URL||e.webkitURL||e},n=t.createElementNS("http://www.w3.org/1999/xhtml","a"),o=e.webkitRequestFileSystem,i=e.requestFileSystem||o||e.mozRequestFileSystem,a=function(t){(e.setImmediate||e.setTimeout)((function(){throw t}),0)},c=0,s=function(t){var n=function(){"string"==typeof t?r().revokeObjectURL(t):t.remove()};e.chrome?n():setTimeout(n,500)},u=function(e,t,r){for(var n=(t=[].concat(t)).length;n--;){var o=e["on"+t[n]];if("function"==typeof o)try{o.call(e,r||e)}catch(e){a(e)}}},l=function(e){return/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob(["\ufeff",e],{type:e.type}):e},f=function(t,a){t=l(t);var f,p,d,m=this,y=t.type,h=!1,g=function(){u(m,"writestart progress write writeend".split(" "))},v=function(){(!h&&f||(f=r().createObjectURL(t)),p)?p.location.href=f:null==e.open(f,"_blank")&&"undefined"!=typeof safari&&(e.location.href=f);m.readyState=m.DONE,g(),s(f)},w=function(e){return function(){if(m.readyState!==m.DONE)return e.apply(this,arguments)}},b={create:!0,exclusive:!1};if(m.readyState=m.INIT,a||(a="download"),n)return f=r().createObjectURL(t),n.href=f,n.download=a,void setTimeout((function(){var e,t;e=n,t=new MouseEvent("click"),e.dispatchEvent(t),g(),s(f),m.readyState=m.DONE}));e.chrome&&y&&"application/octet-stream"!==y&&(d=t.slice||t.webkitSlice,t=d.call(t,0,t.size,"application/octet-stream"),h=!0),o&&"download"!==a&&(a+=".download"),("application/octet-stream"===y||o)&&(p=e),i?(c+=t.size,i(e.TEMPORARY,c,w((function(e){e.root.getDirectory("saved",b,w((function(e){var r=function(){e.getFile(a,b,w((function(e){e.createWriter(w((function(r){r.onwriteend=function(t){p.location.href=e.toURL(),m.readyState=m.DONE,u(m,"writeend",t),s(e)},r.onerror=function(){var e=r.error;e.code!==e.ABORT_ERR&&v()},"writestart progress write abort".split(" ").forEach((function(e){r["on"+e]=m["on"+e]})),r.write(t),m.abort=function(){r.abort(),m.readyState=m.DONE},m.readyState=m.WRITING})),v)})),v)};e.getFile(a,{create:!1},w((function(e){e.remove(),r()})),w((function(e){e.code===e.NOT_FOUND_ERR?r():v()})))})),v)})),v)):v()},p=f.prototype;return"undefined"!=typeof navigator&&navigator.msSaveOrOpenBlob?function(e,t){return navigator.msSaveOrOpenBlob(l(e),t)}:(p.abort=function(){this.readyState=this.DONE,u(this,"abort")},p.readyState=p.INIT=0,p.WRITING=1,p.DONE=2,p.error=p.onwritestart=p.onprogress=p.onwrite=p.onabort=p.onerror=p.onwriteend=null,function(e,t){return new f(e,t)})}}("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||this.content);
2
2
  /*! @source http://purl.eligrey.com/github/FileSaver.js/blob/master/FileSaver.js */e.exports?e.exports.saveAs=o:null!==r(645)&&null!=r(638)&&(void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n))},645:function(e,t){e.exports=function(){throw new Error("define cannot be used indirect")}},745:function(e,t){}}]);
@@ -1 +1 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([[348],{159:function(e,i,d){"use strict";d.r(i),d.d(i,"STATIC_RULESETS",(function(){return n})),d.d(i,"REPOSITORY_TYPES",(function(){return o})),d.d(i,"FILENAME_PATTERN",(function(){return t})),d.d(i,"NUMBER_PATTERN",(function(){return r}));var n=[{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"}],o={graphdbRepo:"graphdb",free:"free",eeWorker:"worker",eeMaster:"master",ontop:"ontop",se:"se",fedx:"fedx"},t=new RegExp("^[a-zA-Z0-9-_]+$"),r=new RegExp("^[0-9]+$")}}]);
1
+ (window.webpackJsonp=window.webpackJsonp||[]).push([[348],{160:function(e,i,d){"use strict";d.r(i),d.d(i,"STATIC_RULESETS",(function(){return n})),d.d(i,"REPOSITORY_TYPES",(function(){return o})),d.d(i,"FILENAME_PATTERN",(function(){return t})),d.d(i,"NUMBER_PATTERN",(function(){return r}));var n=[{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"}],o={graphdbRepo:"graphdb",free:"free",eeWorker:"worker",eeMaster:"master",ontop:"ontop",se:"se",fedx:"fedx"},t=new RegExp("^[a-zA-Z0-9-_]+$"),r=new RegExp("^[0-9]+$")}}]);