graphdb-workbench 3.0.1 → 3.0.2-RC1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (283) 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.b2d04af2d60cc37a5ebe.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/{190.431c135250df34322375.bundle.js → 190.4969eb91b83aaa7cd263.bundle.js} +1 -1
  75. package/dist/{2.354e410d4fb45ab44420.bundle.js → 2.842d68f9e1fac66644aa.bundle.js} +1 -1
  76. package/dist/{20.b2e6e5248ede44286621.bundle.js → 20.d9c0a2300fac55616a64.bundle.js} +1 -1
  77. package/dist/{21.6de69abd52835f511f89.bundle.js → 21.db9a15c2ce6264384788.bundle.js} +1 -1
  78. package/dist/{22.035be7329fd099903c2b.bundle.js → 22.1408d06830b72a459d6a.bundle.js} +1 -1
  79. package/dist/{23.f499db643c1d187eefe1.bundle.js → 23.e6835ca70f33d8babcca.bundle.js} +1 -1
  80. package/dist/231.909faa919088245e9988.bundle.js +1 -1
  81. package/dist/{24.057be6f617f4e3f35691.bundle.js → 24.8fbf33e98e7c306e8ea8.bundle.js} +1 -1
  82. package/dist/{242.c2143bfd879222a393dc.bundle.js → 242.2aceac5a4d9f377f3553.bundle.js} +1 -1
  83. package/dist/{243.ed8bd30b9501bcb22fd3.bundle.js → 243.35701551c53ddd41d3e2.bundle.js} +1 -1
  84. package/dist/{248.35714eeadd519aa9dfcf.bundle.js → 248.b1fb4b93555c3f69bc46.bundle.js} +1 -1
  85. package/dist/{25.25d1fdcb1cbeafd51681.bundle.js → 25.6f945a6e26e6daa27763.bundle.js} +1 -1
  86. package/dist/{258.af0b3d78c0f9b4c4b483.bundle.js → 258.fc7172db37e5b0ca1279.bundle.js} +1 -1
  87. package/dist/{26.3aa8a6a7f10039840838.bundle.js → 26.76be6828c642933221c3.bundle.js} +1 -1
  88. package/dist/{264.c6d038d027b8f5579b62.bundle.js → 264.8e759dd1686c37c32b07.bundle.js} +1 -1
  89. package/dist/{287.4f8a30c6c6c72ebafedb.bundle.js → 287.a750fc40fa90418f3d6d.bundle.js} +1 -1
  90. package/dist/{29.33b92413c2f0a708b821.bundle.js → 29.5ec5948f2e30819e6dc8.bundle.js} +1 -1
  91. package/dist/{3.77b848d2eb7fdb2523b0.bundle.js → 3.33dccf88ff294b9ba7cf.bundle.js} +1 -1
  92. package/dist/{30.f818533689767fa3e2ca.bundle.js → 30.a60e3c2ac0de3b37e185.bundle.js} +1 -1
  93. package/dist/31.7452fe0f096c31a9a1f1.bundle.js +2 -0
  94. package/dist/{312.0e853d11527c8a2fc070.bundle.js → 312.c03a255fbafa0d4335b7.bundle.js} +1 -1
  95. package/dist/{32.e14fc108d80a26925f88.bundle.js → 32.14b30077e63f4b1b729a.bundle.js} +1 -1
  96. package/dist/{322.6524ee61a5bbcdc82bad.bundle.js → 322.34c7ffacecadc1dff436.bundle.js} +1 -1
  97. package/dist/{33.fec387c3be8b00368957.bundle.js → 33.da597e608351b4872771.bundle.js} +1 -1
  98. package/dist/{332.2db32da5af5ac8856a0c.bundle.js → 332.eb8ac0b7d982535eb48b.bundle.js} +1 -1
  99. package/dist/{334.2970372fd546db2cd792.bundle.js → 334.85e45ef3709738a8c800.bundle.js} +1 -1
  100. package/dist/{335.b445bf889c4bfaa20ded.bundle.js → 335.5a6a3768096f7e02a5a3.bundle.js} +1 -1
  101. package/dist/{34.61223a86d6cb125fc2c8.bundle.js → 34.51476f9015bca2457953.bundle.js} +1 -1
  102. package/dist/{348.a113e5a47d253a04ee81.bundle.js → 348.da14c1b3111036fe2e02.bundle.js} +1 -1
  103. package/dist/{35.1b457bfdeea08b897d25.bundle.js → 35.dec1963ba9e2a21fdbec.bundle.js} +1 -1
  104. package/dist/{353.8dbc0f6a10d578ed65d8.bundle.js → 353.5ca0dd499b0e4ec5a228.bundle.js} +1 -1
  105. package/dist/{36.54cce0e26c592b832258.bundle.js → 36.5bdd80f32426b30c458d.bundle.js} +1 -1
  106. package/dist/{363.7a3d9b6e636d736c57b1.bundle.js → 363.fe7a10fbfe3ad1a31725.bundle.js} +1 -1
  107. package/dist/{37.be47535106d4b3dbc077.bundle.js → 37.3e74a6a07640c4d8db96.bundle.js} +1 -1
  108. package/dist/{38.79bf8cac11760d2e69be.bundle.js → 38.8819c36a5204129f3dbc.bundle.js} +1 -1
  109. package/dist/{381.aea7ee474ca60accc01b.bundle.js → 381.7705312c8cedfe733a17.bundle.js} +1 -1
  110. package/dist/{382.c69f3647cc33ace74db4.bundle.js → 382.3b6533fe63bb7b89d2a6.bundle.js} +1 -1
  111. package/dist/{385.559499835625e3e755d3.bundle.js → 385.93498ab442f8c50fadbc.bundle.js} +1 -1
  112. package/dist/{39.051d67965709d49db0ab.bundle.js → 39.8be9b0247c3518abbf8b.bundle.js} +1 -1
  113. package/dist/{392.96254712f6158ac44044.bundle.js → 392.fd509c86891257f9777f.bundle.js} +1 -1
  114. package/dist/399.0a3aec07fe2383cc35ba.bundle.js +1 -0
  115. package/dist/{40.9208517ef50b6f8024c6.bundle.js → 40.2747ad0262dc133c782c.bundle.js} +1 -1
  116. package/dist/404.163e08fb2eeea2362f8a.bundle.js +1 -0
  117. package/dist/{41.0d8779a7af2eb26cf157.bundle.js → 41.c6545eb0ce13e63738d2.bundle.js} +1 -1
  118. package/dist/410.b74d59055b7cf830abe5.bundle.js +1 -0
  119. package/dist/416.68f6286f80654cdbe4e4.bundle.js +1 -1
  120. package/dist/417.70adf0a6f0571c394764.bundle.js +1 -1
  121. package/dist/42.baaa159c3b1e81422600.bundle.js +1 -0
  122. package/dist/423.6edb13ec0cf08388c947.bundle.js +1 -1
  123. package/dist/424.725b821051516e73783a.bundle.js +1 -1
  124. package/dist/425.03fcf969da1a4e92fec3.bundle.js +1 -1
  125. package/dist/426.aa6924f6f1192d037009.bundle.js +1 -1
  126. package/dist/427.5c7b72141707b841e8a3.bundle.js +1 -1
  127. package/dist/428.0d471ce7c68654947c04.bundle.js +1 -1
  128. package/dist/{43.96e8540045f061114280.bundle.js → 43.46cf7aa71531400f5ce3.bundle.js} +1 -1
  129. package/dist/{44.45a26f697588279fbc60.bundle.js → 44.ec337831549cfeaab224.bundle.js} +1 -1
  130. package/dist/443.969280af4067a22d1a8b.bundle.js +1 -1
  131. package/dist/444.a5971579184b091ed392.bundle.js +1 -1
  132. package/dist/445.2b20cb9e68a11879f6c4.bundle.js +1 -1
  133. package/dist/446.fe3cf3d6e288c8c4444b.bundle.js +1 -1
  134. package/dist/447.d1d078921f6f28e2fa38.bundle.js +1 -1
  135. package/dist/448.d6c9bed6d99b8b23619f.bundle.js +1 -1
  136. package/dist/{45.8c13732f2859713c90c4.bundle.js → 45.e79cfcb4606177c83d29.bundle.js} +1 -1
  137. package/dist/{46.f04ca39b752caadd9714.bundle.js → 46.db4b433aebdbb6965f9d.bundle.js} +1 -1
  138. package/dist/468.8e259940c62a68ef3055.bundle.js +1 -1
  139. package/dist/{47.5773e1581c385ba39851.bundle.js → 47.89ad9da6a07545789631.bundle.js} +1 -1
  140. package/dist/{48.06454bbe08df5938e67a.bundle.js → 48.8726b8de8055297cec7c.bundle.js} +1 -1
  141. package/dist/480.379bf3b338e0a3224a1f.bundle.js +1 -1
  142. package/dist/481.0387239b174f787e70ea.bundle.js +1 -1
  143. package/dist/483.c81275cb05dd78ce389f.bundle.js +1 -1
  144. package/dist/484.25a82c267c3a705d2a65.bundle.js +1 -1
  145. package/dist/485.91cbfbfd37eccde375c9.bundle.js +1 -1
  146. package/dist/488.a69dcce23066c0dafdf7.bundle.js +1 -1
  147. package/dist/489.a976085b601cccf438d4.bundle.js +1 -1
  148. package/dist/49.ec8921fc54aaae50ca52.bundle.js +1 -0
  149. package/dist/490.d3e0f3e499b5a24f6808.bundle.js +1 -1
  150. package/dist/491.62c185868f9d99dd5713.bundle.js +1 -1
  151. package/dist/5.163df03f5440d982d268.bundle.js +2 -0
  152. package/dist/50.4886e820614f9dadb147.bundle.js +1 -0
  153. package/dist/{51.676e3d8a0e328ad836ed.bundle.js → 51.014f0ee2c2a7ff9ce3ff.bundle.js} +1 -1
  154. package/dist/{52.cfdfa7095a554e758861.bundle.js → 52.85c3ec8030d92959e556.bundle.js} +1 -1
  155. package/dist/{54.c54ba6791e3926ebb553.bundle.js → 54.f1ed20f259011ef082b2.bundle.js} +1 -1
  156. package/dist/{55.fb160be660f713a3d6a1.bundle.js → 55.3262334c9d8a63b347ab.bundle.js} +1 -1
  157. package/dist/{56.a97521bde50d8e02ab1d.bundle.js → 56.f9d140f83b5462444e57.bundle.js} +1 -1
  158. package/dist/{57.ec17cacc850ae1904aeb.bundle.js → 57.fcd6814bee867f2345e7.bundle.js} +1 -1
  159. package/dist/{58.0c8ce6607800bf7ff0ac.bundle.js → 58.914f27e1a230e164d29b.bundle.js} +1 -1
  160. package/dist/{59.47183b72936629232e7f.bundle.js → 59.a7f0559fb46565813cf0.bundle.js} +1 -1
  161. package/dist/{6.33f8c6c7e324640238de.bundle.js → 6.0bfc114054ad3b233305.bundle.js} +1 -1
  162. package/dist/{60.046829a1be3f196bef1c.bundle.js → 60.6c9b4c93b093288c7649.bundle.js} +1 -1
  163. package/dist/{61.f625328fcc0d35aa07a4.bundle.js → 61.424616e10051d7cdbc93.bundle.js} +1 -1
  164. package/dist/{62.842d67b8758eed682f2c.bundle.js → 62.c335ec2480066d4422a9.bundle.js} +1 -1
  165. package/dist/63.e55beded50a778a97299.bundle.js +1 -0
  166. package/dist/{63.c3630cbfa8f6884a417d.bundle.js → 64.7a62b6f780380840f244.bundle.js} +1 -1
  167. package/dist/{64.91ba76d42905a3d9afbe.bundle.js → 65.8d5f1b79d228176db399.bundle.js} +1 -1
  168. package/dist/{65.198a4d69873309746593.bundle.js → 66.75d04ae3be915ecd5afe.bundle.js} +1 -1
  169. package/dist/{66.b7385a74d4f3287237ba.bundle.js → 67.dbc1e4410498f4ceae46.bundle.js} +1 -1
  170. package/dist/{67.3488f2543baf36d3c494.bundle.js → 68.aeae93de29be6d346977.bundle.js} +1 -1
  171. package/dist/{68.4e51b896e74fbd145701.bundle.js → 69.3024e70e93884b7138eb.bundle.js} +1 -1
  172. package/dist/{69.a2244fec1e7110f5aeec.bundle.js → 70.f982fe4a8c44d2ef72a6.bundle.js} +1 -1
  173. package/dist/{70.0b30be583854923aadc1.bundle.js → 71.8ffc1c2036362cf40526.bundle.js} +1 -1
  174. package/dist/{71.24d20933fd9614cf27af.bundle.js → 72.a47d3fdd3239098987a8.bundle.js} +1 -1
  175. package/dist/{72.5d2f018d17e995bc6455.bundle.js → 73.1d8cf985f584d6a29f1b.bundle.js} +1 -1
  176. package/dist/{73.3f407c010a17e4a109b9.bundle.js → 74.70762fed64c1503da986.bundle.js} +1 -1
  177. package/dist/{74.1d496e6a8dc0abfcbe04.bundle.js → 75.e464e055d7b66bf2fc93.bundle.js} +1 -1
  178. package/dist/76.fc1058890354a7ee6abe.bundle.js +1 -0
  179. package/dist/{76.9ca923a9265537ac7be4.bundle.js → 77.bf8560beda63d53b83c2.bundle.js} +1 -1
  180. package/dist/{77.f53fbf119a8b73148a25.bundle.js → 78.eecf35e4f25434df649e.bundle.js} +1 -1
  181. package/dist/{78.933cb90bda144ed95290.bundle.js → 79.074403a4200f684a0945.bundle.js} +1 -1
  182. package/dist/{8.3cf83e59a56858648ad9.bundle.js → 8.e3c3c3676785a030527d.bundle.js} +1 -1
  183. package/dist/{79.6e0224e241895965a9d3.bundle.js → 80.07a80c5fe69c039db15d.bundle.js} +1 -1
  184. package/dist/{80.f7d6d3108e6d18b96cd7.bundle.js → 81.234a3c0b3136c4a55730.bundle.js} +1 -1
  185. package/dist/{81.b79dd505cb205eb7eff0.bundle.js → 82.3e71f24921a2283967c3.bundle.js} +1 -1
  186. package/dist/{82.cd869e55416407b078e0.bundle.js → 83.cf2e3938d315b0470906.bundle.js} +1 -1
  187. package/dist/{83.b085735389d935aa6f42.bundle.js → 84.c1e18d720b266e35aec2.bundle.js} +1 -1
  188. package/dist/{84.7f9377fc605aff3f0d48.bundle.js → 85.7dc677e973a2dfcddfea.bundle.js} +1 -1
  189. package/dist/86.adb4b3504c93eb726fcd.bundle.js +1 -0
  190. package/dist/{85.8a74811c261c635235f7.bundle.js → 87.ddab9647e5ff9f432212.bundle.js} +1 -1
  191. package/dist/{86.c491436398aef8142dc3.bundle.js → 88.e04e9207f68a222a8a64.bundle.js} +1 -1
  192. package/dist/{87.cf9f719c3dd04bc64102.bundle.js → 89.51eac4bd9aa2668b96fb.bundle.js} +1 -1
  193. package/dist/{88.7d844f12b9d68b0be1d7.bundle.js → 90.ac1501d736615a2bc7f6.bundle.js} +1 -1
  194. package/dist/{89.2c1bcd6a70ba8769b6b9.bundle.js → 91.4c80dbc7c0af8d2d07f5.bundle.js} +1 -1
  195. package/dist/{90.b93a0ecac4f5bcfeed0f.bundle.js → 92.69c6a0625b9e94d1a9df.bundle.js} +1 -1
  196. package/dist/{91.44e1598ed46ac2197521.bundle.js → 93.4e0f1104ab14c3dfae71.bundle.js} +1 -1
  197. package/dist/{92.e81e734ef32fe8b56d78.bundle.js → 94.62f609daaeaf1e0b9f63.bundle.js} +1 -1
  198. package/dist/{93.6486890affff9e0f6ca8.bundle.js → 95.2c784e759051491850fb.bundle.js} +1 -1
  199. package/dist/{94.13212f8f2d50c66cb482.bundle.js → 96.22c66e3781a4afc22d1a.bundle.js} +1 -1
  200. package/dist/{95.6fe91e68bef2c41f2645.bundle.js → 97.856052734f379717d4cc.bundle.js} +1 -1
  201. package/dist/{96.4bd66eace72867bf76e1.bundle.js → 98.be86330473bf291530fa.bundle.js} +1 -1
  202. package/dist/{97.4cfafc4c6cedd50e973e.bundle.js → 99.6af4734887301734ebbe.bundle.js} +1 -1
  203. package/dist/{bundle.e7ff3a088b4fc9e2ec9e.bundle.js → bundle.fc37b3e514d7594f55be.bundle.js} +19 -19
  204. package/dist/css/autocomplete.css +5 -0
  205. package/dist/css/clustermanagement.css +10 -7
  206. package/dist/css/rdf-class-hierarchy.css +1 -1
  207. package/dist/i18n/locale-en.json +11 -1
  208. package/dist/i18n/locale-fr.json +11 -1
  209. package/dist/index.html +3 -3
  210. package/dist/js/angular/autocomplete/templates/modal/add-label.html +5 -2
  211. package/dist/js/angular/clustermanagement/templates/cluster-nodes-configuration.html +16 -7
  212. package/dist/js/angular/core/directives/autocomplete/templates/autocomplete.html +1 -1
  213. package/dist/js/angular/core/directives/dynamic-form/templates/dynamic-form.html +1 -1
  214. package/dist/js/angular/core/directives/operations-statuses-monitor/templates/operations-statuses-monitor.html +1 -1
  215. package/dist/js/angular/core/directives/rdfresourcesearch/templates/rdfResourceSearchTemplate.html +1 -1
  216. package/dist/js/angular/core/directives/shuttle-multiselect/templates/shuttle-multiselect.html +1 -1
  217. package/dist/js/angular/core/directives/yasgui-component/templates/yasgui-component.html +1 -1
  218. package/dist/js/angular/core/templates/cookie-policy/cookie-consent.html +1 -1
  219. package/dist/js/angular/core/templates/cookie-policy/cookie-policy.html +1 -1
  220. package/dist/js/angular/graphql/templates/create-graphql-endpoint.html +2 -2
  221. package/dist/js/angular/graphql/templates/graphql-endpoint-management.html +1 -1
  222. package/dist/js/angular/graphql/templates/graphql-playground.html +1 -1
  223. package/dist/js/angular/graphql/templates/modal/endpoint-configuration-modal.html +1 -1
  224. package/dist/js/angular/graphql/templates/modal/endpoint-generation-failure-result-modal.html +1 -1
  225. package/dist/js/angular/graphql/templates/modal/import-endpoint-definition-modal.html +1 -1
  226. package/dist/js/angular/security/templates/user.html +2 -2
  227. package/dist/js/angular/ttyg/templates/agent-list.html +1 -1
  228. package/dist/js/angular/ttyg/templates/agent-select-menu.html +1 -1
  229. package/dist/js/angular/ttyg/templates/chat-item-detail.html +1 -1
  230. package/dist/js/angular/ttyg/templates/chat-list.html +1 -1
  231. package/dist/js/angular/ttyg/templates/chat-panel.html +1 -1
  232. package/dist/js/angular/ttyg/templates/modal/agent-instructions-explain-modal.html +1 -1
  233. package/dist/js/angular/ttyg/templates/modal/agent-settings-modal.html +2 -2
  234. package/dist/js/angular/ttyg/templates/no-agents-view.html +1 -1
  235. package/dist/js/angular/ttyg/templates/ttyg.html +1 -1
  236. package/dist/license-checker.json +4 -4
  237. package/dist/pages/aclmanagement.html +2 -2
  238. package/dist/pages/autocomplete.html +1 -1
  239. package/dist/pages/choose-repository-type.html +1 -1
  240. package/dist/pages/cluster-management/clusterInfo.html +3 -3
  241. package/dist/pages/create-index.html +1 -1
  242. package/dist/pages/dependencies.html +1 -1
  243. package/dist/pages/domainRangeInfo.html +2 -2
  244. package/dist/pages/edit.html +1 -1
  245. package/dist/pages/explore.html +1 -1
  246. package/dist/pages/export.html +1 -1
  247. package/dist/pages/find.html +1 -1
  248. package/dist/pages/graph-config/saveGraphConfig.html +8 -8
  249. package/dist/pages/graphs-visualizations.html +7 -7
  250. package/dist/pages/guides.html +1 -1
  251. package/dist/pages/import.html +2 -2
  252. package/dist/pages/jdbc-create.html +1 -1
  253. package/dist/pages/monitor/backup-and-restore.html +1 -1
  254. package/dist/pages/monitor/queries.html +1 -1
  255. package/dist/pages/monitor/resources.html +1 -1
  256. package/dist/pages/namespaces.html +2 -2
  257. package/dist/pages/plugins.html +1 -1
  258. package/dist/pages/rdfClassHierarchyInfo.html +9 -11
  259. package/dist/pages/rdfrank.html +2 -2
  260. package/dist/pages/repositories.html +1 -1
  261. package/dist/pages/repository.html +1 -1
  262. package/dist/pages/similarity-indexes.html +1 -1
  263. package/dist/pages/sparql-editor.html +1 -1
  264. package/dist/pages/sparql-template-create.html +1 -1
  265. package/dist/pages/ux-test1.html +2 -2
  266. package/dist/pages/webapi.html +2 -2
  267. package/dist/res/swagger5/index.html +12 -12
  268. package/package.json +2 -2
  269. package/dist/102.2b1c8399187ccefe5a4f.bundle.js +0 -1
  270. package/dist/11.7343b4e08a786f0a1eab.bundle.js +0 -1
  271. package/dist/12.3669f82ad6489ffeb12b.bundle.js +0 -1
  272. package/dist/154.89f16e758f1caaae814c.bundle.js +0 -1
  273. package/dist/160.90a42dd6a992307c602d.bundle.js +0 -1
  274. package/dist/31.721783158dcfdee0b882.bundle.js +0 -2
  275. package/dist/399.b13be7ef0c258335c762.bundle.js +0 -1
  276. package/dist/404.00ef41fe988cd9161359.bundle.js +0 -1
  277. package/dist/410.a86d6bdafde1b951e239.bundle.js +0 -1
  278. package/dist/42.0147219d61d3814c266c.bundle.js +0 -1
  279. package/dist/49.6b885bb67696745b1634.bundle.js +0 -1
  280. package/dist/5.045fbb4da4ea6659e905.bundle.js +0 -2
  281. package/dist/50.ee3ed147b2bc2382a0a2.bundle.js +0 -1
  282. package/dist/75.0e43af19262a978d6aab.bundle.js +0 -1
  283. package/dist/98.6586c3413d178a0cab8c.bundle.js +0 -1
@@ -0,0 +1,2 @@
1
+ (window.webpackJsonp=window.webpackJsonp||[]).push([[5,37,52,114,129,148,166,181,284,285,286,287,288,289,290,293,294,295,296,298,299,307,327,329,336,390],{155:function(e,t,n){"use strict";function r(e,t,n,r,o){e.JSONLDModes=[{name:"framed",link:"http://www.w3.org/ns/json-ld#framed"},{name:"expanded",link:"http://www.w3.org/ns/json-ld#expanded"},{name:"flattened",link:"http://www.w3.org/ns/json-ld#flattened"},{name:"compacted",link:"http://www.w3.org/ns/json-ld#compacted"}],e.JSONLDModesNames=e.JSONLDModes.reduce((function(e,t){return e[t.name]=t.name,e}),{}),e.JSONLDFramedModes=[e.JSONLDModesNames.framed],e.JSONLDContextModes=[e.JSONLDModesNames.compacted,e.JSONLDModesNames.flattened],e.defaultMode=e.JSONLDModes.find((function(e){return"expanded"===e.name})),e.currentMode=e.defaultMode,e.link=null,e.fileFormat=o.toLowerCase(),e.setJSONLDSettingsToLocalStorage=function(e,t,o){n.set(r.JSONLD_EXPORT_SETTINGS,JSON.stringify({jsonldFormName:e,jsonldFormLink:t,jsonldLink:o}))},e.cancel=function(){t.dismiss()},e.reset=function(){e.currentMode=e.defaultMode,e.link="",e.setJSONLDSettingsToLocalStorage(e.currentMode.name,e.currentMode.link,e.link)},e.clearLinkInput=function(){e.link="",e.setJSONLDSettingsToLocalStorage(e.currentMode.name,e.currentMode.link,e.link)},e.exportJsonLD=function(){e.setJSONLDSettingsToLocalStorage(e.currentMode.name,e.currentMode.link,e.link),t.close({currentMode:e.currentMode,link:e.link})};var i;(i=n.get(r.JSONLD_EXPORT_SETTINGS))&&(e.currentMode=e.JSONLDModes.find((function(e){return e.name===i.jsonldFormName})),e.link=i.jsonldLink)}n.r(t),n.d(t,"ExportSettingsCtrl",(function(){return r})),angular.module("graphdb.framework.core.components.export-settings-modal",["graphdb.framework.utils.localstorageadapter"]).controller("ExportSettingsCtrl",r),r.$inject=["$scope","$uibModalInstance","LocalStorageAdapter","LSKeys","format"]},156:function(e,t,n){"use strict";n.r(t),n.d(t,"EventDataType",(function(){return r}));var r={DOWNLOAD_AS:"downloadAs",NOTIFICATION_MESSAGE:"notificationMessage",QUERY:"query",COUNT_QUERY:"countQuery",COUNT_QUERY_RESPONSE:"countQueryResponse",REQUEST_ABORTED:"requestAborted",QUERY_EXECUTED:"queryExecuted",SAVE_QUERY_OPENED:"saveQueryOpened"}},167:function(e,t,n){"use strict";n.r(t);n(270),n(271);var r=n(199),o=n(24),i=n(639),a=n(272),u=n(156),s=n(20),c=n(209),l=n(762),f=n(170),y=n(273),p=n(27),d=n(274),m=n(275),v=n(155),g=n(32);function b(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,u=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(u.push(r.value),u.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return u}}(e,t)||function(e,t){if(e){if("string"==typeof e)return h(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?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 n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function E(e,t,n,h,E,S,T,w,O,_,N,R,C,A,P,q,Q){return{restrict:"E",templateUrl:"js/angular/core/directives/yasgui-component/templates/yasgui-component.html",scope:{yasguiConfig:"=",afterInit:"&",queryChanged:"&"},link:function(h,Q,k){h.classToApply=k.class||"";var L=new Map,D=h.yasguiConfig&&h.yasguiConfig.outputHandlers?new Map(h.yasguiConfig.outputHandlers):new Map,j=void 0;h.getOntotextYasguiElements=function(){return Q.find("ontotext-yasgui")},h.getOntotextYasguiElement=function(){return new y.YasguiComponent(h.getOntotextYasguiElements()[0])},h.createSavedQuery=function(e){var t=Object(r.queryPayloadFromEvent)(e);P.addNewSavedQuery(t).then((function(){return V(t)})).catch(G)},h.updateSavedQuery=function(e){var t=Object(r.queryPayloadFromEvent)(e);P.editSavedQuery(e.detail.originalQueryName,t).then((function(){return W(t)})).catch(G)},h.deleteSavedQuery=function(e){var t=Object(r.queryPayloadFromEvent)(e);P.deleteSavedQuery(t.name).then((function(){_.success(n.instant("query.editor.delete.saved.query.success.msg",{savedQueryName:t.name}))})).catch((function(e){var t=getError(e);_.error(t,n.instant("query.editor.delete.saved.query.error"))}))},h.shareSavedQuery=function(e){var t=Object(r.queryPayloadFromEvent)(e);h.savedQueryConfig={shareQueryLink:q.createShareSavedQueryLink(t.name,t.owner)}},h.shareQuery=function(e){var t=Object(r.queryPayloadFromEvent)(e);h.savedQueryConfig={shareQueryLink:q.createShareQueryLink(t)}},h.queryShareLinkCopied=function(){_.success(n.instant("modal.ctr.copy.url.success"))},h.loadSavedQueries=function(){h.savedQueryConfig={savedQueries:[]},Promise.all([w.getPrincipal(),P.getSavedQueries()]).then((function(e){var t=b(e,2),n=t[0],o=t[1];h.savedQueryConfig={savedQueries:Object(r.savedQueriesResponseMapper)(o,n.username)}})).catch((function(e){var t=getError(e);_.error(t,n.instant("query.editor.get.saved.queries.error"))}))},h.saveQueryOpened=function(e){p.YasguiComponentDirectiveUtil.highlightTabName(Object(a.toYasguiOutputModel)(e).getTab())},h.output=function(e){var t=Object(a.toYasguiOutputModel)(e);D.has(t.TYPE)&&D.get(t.TYPE)(t)};D.set(u.EventDataType.QUERY,(function(e){var t=e.getPageNumber(),n=e.getPageSize();n&&t&&(e.setOffset((t-1)*(n-1)),e.setLimit(n)),e.setPageNumber(void 0),e.setPageSize(void 0)}));D.set(u.EventDataType.COUNT_QUERY,(function(e){e.setPageSize(void 0),e.setPageNumber(void 0),e.setCount(1)}));D.set(u.EventDataType.COUNT_QUERY_RESPONSE,(function(e){e.setTotalElements(X(e))}));D.set(u.EventDataType.DOWNLOAD_AS,(function(e){var t=L.get(e.pluginName);t&&t(e)}));D.set(u.EventDataType.NOTIFICATION_MESSAGE,(function(e){var t=_[e.messageType];Object(o.isFunction)(t)&&t(e.message)}));L.set("extended_response",(function(e){"application/sparql-results+json"===e.contentType?h.getOntotextYasguiElement().getEmbeddedResultAsJson().then((function(t){var n=JSON.stringify(t,null,"\t");g.FileUtils.downloadAsFile("".concat(J(),"_queryResults.json"),e.contentType,n)})):"text/csv"===e.contentType&&h.getOntotextYasguiElement().getEmbeddedResultAsCSV().then((function(t){g.FileUtils.downloadAsFile("".concat(J(),"_queryResults.csv"),e.contentType,t)}))}));var M=function(e,r,o,a,u,s){var c={query:e,infer:r,sameAs:o,authToken:a};C.downloadResultsAsFile(t.getActiveRepository(),c,u,s).then((function(e){var t=e.data,n=e.filename;Object(i.saveAs)(t,n)})).catch((function(e){e.data.text().then((function(t){431===e.status?_.error(e.statusText,n.instant("common.error")):_.error(t,n.instant("common.error"))}))})).finally((function(){h.setLoader(!1)}))};L.set(c.YasrPluginName.EXTENDED_TABLE,(function(e){var t=e.query,n=e.infer,r=e.sameAs,o=e.contentType,i=T.getAuthToken()||"";"application/ld+json"===e.contentType||"application/x-ld+ndjson"===e.contentType?S.open({templateUrl:"js/angular/core/components/export-settings-modal/exportSettingsModal.html",controller:v.ExportSettingsCtrl,size:"lg",scope:h,resolve:{format:function(){return"application/ld+json"===e.contentType?"JSON-LD":"NDJSON-LD"}}}).result.then((function(e){var a="framed"===e.currentMode.name?"frame":"context",u=o+";profile="+e.currentMode.link,s=e.link?"<".concat(e.link,'>; rel="http://www.w3.org/ns/json-ld#').concat(a,'"'):"";M(t,n,r,i,u,s)})):M(t,n,r,i,o,"")}));var Y=[],I=function(){return h.getOntotextYasguiElement().getQuery().then((function(e){j=JSON.stringify(e)}))};Y.push(h.$watch("yasguiConfig",(function(r,o){if(!h.ontotextYasguiConfig&&r||r&&!Object(l.isEqual)(r,o)){var i=t.isActiveRepoOntopType(),a={isVirtualRepository:i,infer:i||r.infer,immutableInfer:i,sameAs:i||r.sameAs,immutableSameAs:i,yasqeAutocomplete:{LocalNamesAutocompleter:function(t){var n=e.defer();return H(t,n)}},language:E.getLanguage(),i18n:N.getTranslations(),getRepositoryStatementsCount:Z,onQueryAborted:ee};if(angular.extend(a,$(),h.yasguiConfig),void 0===a.showQueryButton||a.showQueryButton){var u=a.keyboardShortcutConfiguration||{};u[d.KeyboardShortcutName.EXECUTE_EXPLAIN_PLAN_FOR_QUERY]=!0,u[d.KeyboardShortcutName.EXECUTE_CHAT_GPT_EXPLAIN_PLAN_FOR_QUERY]=!0,a.keyboardShortcutConfiguration=u}else{var s=a.keyboardShortcutConfiguration||{};s[d.KeyboardShortcutName.EXECUTE_QUERY_OR_UPDATE]=!1,s[d.KeyboardShortcutName.EXECUTE_EXPLAIN_PLAN_FOR_QUERY]=!1,s[d.KeyboardShortcutName.EXECUTE_CHAT_GPT_EXPLAIN_PLAN_FOR_QUERY]=!1,s[d.KeyboardShortcutName.CREATE_TAB]=!1,s[d.KeyboardShortcutName.CREATE_SAVE_QUERY]=!1,s[d.KeyboardShortcutName.SWITCH_NEXT_TAB]=!1,s[d.KeyboardShortcutName.SWITCH_PREVIOUS_TAB]=!1,s[d.KeyboardShortcutName.CLOSES_ALL_TABS]=!1,a.keyboardShortcutConfiguration=s}m.YasguiPersistenceMigrationService.isMigrationNeeded()&&m.YasguiPersistenceMigrationService.migrateYasguiPersistence(n.instant("sparql.tab.directive.unnamed.tab.title")),h.ontotextYasguiConfig=a,x(),I().then((function(){angular.isFunction(h.afterInit)&&h.afterInit()}))}})));var U=function(){var e,t=h.getOntotextYasguiElement();t.getQuery().then((function(t){return e=JSON.stringify(t)})).then(P.addKnownPrefixes).then((function(n){e=n.data,t.setQuery(e)})).then((function(){F(JSON.stringify(e))})).catch((function(e){var t=getError(e);_.error(t,n.instant("common.add.known.prefixes.error"))}))},x=function(){var e=O((function(){var t=h.getOntotextYasguiElements();t&&(t.on("paste.sparqlQuery",".CodeMirror",U),t.on("keyup.sparqlQuery",".CodeMirror textarea",B),O.cancel(e))}))},B=function(e){h.getOntotextYasguiElement().getQuery().then((function(e){F(JSON.stringify(e))}))},F=function(e){h.queryChanged(e),h.$emit("queryChanged",{dirty:j!==e})};Y.push(h.$on("language-changed",(function(e,t){h.language=t.locale})));h.$on("$destroy",(function(){Y.forEach((function(e){return e()}));var e=h.getOntotextYasguiElements();e.off("paste.sparqlQuery"),e.off("keyup.sparqlQuery")}));var J=function(){var e=new Date;return"".concat(e.toLocaleDateString(h.language),"_").concat(e.toLocaleTimeString(h.language))},X=function(e){if(e.isResponseNumber())return e.getResponseBody();if(e.isResponseArray()){var t=e.getResponseBody();if(t["http://www.ontotext.com/"])return t["http://www.ontotext.com/"]["http://www.ontotext.com/"][0].value}if(e.hasBindingResponse()){var n=e.getResponseBody();if(n){var r=n.results.bindings[0],o=n.head.vars,i=Object.keys(r).find((function(e){return o.indexOf(e)>-1&&!isNaN(r[e].value)}));if(i.length>0)return r[i].value}}},z=function(e){var n=e.getTab().getYasqe(),r=n.getPageSize(),o="yasgui-component-".concat(performance.now(),"-").concat(Date.now()),i={"Content-Type":"application/x-www-form-urlencoded","X-GraphDB-Local-Consistency":"updating","X-GraphDB-Catch":"".concat(r,"; throw"),"X-GraphDB-Track-Alias":o,"X-GraphDB-Repository-Location":t.getActiveRepositoryObject().location,"X-Requested-With":"XMLHttpRequest"},a=T.getAuthToken();a&&(i.Authorization=a);var u=n.getQueryType();return s.QueryMode.UPDATE===n.getQueryMode()?i.Accept="text/plain,/;q=0.9":f.QueryType.CONSTRUCT===u||f.QueryType.DESCRIBE===u?i.Accept="application/x-graphdb-table-results+json, application/rdf+json;q=0.9, */*;q=0.8":i.Accept="application/x-sparqlstar-results+json, application/sparql-results+json;q=0.9, */*;q=0.8",i},$=function(){return{showEditorTabs:!0,showToolbar:!0,componentId:"yasgui-component",headers:z,pageSize:1e3,maxPersistentResponseSize:5e5,showResultTabs:!0}},G=function(e){var t=getError(e),r=n.instant("query.editor.create.saved.query.error");_.error(t,r),h.savedQueryConfig=Object(o.merge)({},h.savedQueryConfig,{saveSuccess:!1,errorMessage:[r]})},W=function(e){return K(n.instant("query.editor.edit.saved.query.success.msg",{name:e.name}))},V=function(e){return K(n.instant("query.editor.save.saved.query.success.msg",{name:e.name}))},K=function(e){_.success(e),h.savedQueryConfig=Object(o.merge)({},h.savedQueryConfig,{saveSuccess:!0})},H=function(e,t){return R.getAutocompleteSuggestions(e,t.promise).then((function(e){return t=null,e.data}))},Z=function(){return C.getRepositorySize(t.getActiveRepository()).then((function(e){return parseInt(e.data)})).catch((function(e){var r={repo:t.getActiveRepository(),error:getError(e)};_.warning(n.instant("query.editor.repo.size.error",r))}))},ee=function(e){if(e){var t=e.url.substring(e.url.lastIndexOf("/")+1),n=e.header["X-GraphDB-Track-Alias"];return A.deleteQuery(n,t)}}}}}angular.module("graphdb.framework.core.directives.yasgui-component",["graphdb.framework.core.services.translation-service","graphdb.framework.sparql-editor.share-query.service"]).directive("yasguiComponent",E),E.$inject=["$q","$repositories","$translate","$location","$languageService","$uibModal","AuthTokenService","$jwtAuth","$interval","toastr","TranslationService","AutocompleteRestService","RDF4JRepositoriesRestService","MonitoringRestService","SparqlRestService","ShareQueryLinkService","ModalService"]},168:function(e,t,n){"use strict";n.r(t),n.d(t,"RouteConstants",(function(){return r}));var r={savedQueryName:"savedQueryName",savedQueryOwner:"owner",query:"query",name:"name",owner:"owner"}},169: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,a(r.key),r)}}function i(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function a(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+""}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.r(t),n.d(t,"TabQueryModel",(function(){return s}));var s=i((function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],i=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];u(this,e),this.queryName=t,this.query=n,this.owner=r,this.isPublic=o,this.readonly=i}))},170:function(e,t,n){"use strict";n.r(t),n.d(t,"QueryType",(function(){return r}));var r={SELECT:"SELECT",CONSTRUCT:"CONSTRUCT",ASK:"ASK",DESCRIBE:"DESCRIBE",INSERT:"INSERT",DELETE:"DELETE",LOAD:"LOAD",CLEAR:"CLEAR",CREATE:"CREATE",DROP:"DROP",COPY:"COPY",MOVE:"MOVE",ADD:"ADD"}},171:function(e,t,n){"use strict";n.r(t),n.d(t,"VIEW_SPARQL_EDITOR",(function(){return r}));var r="graphdb-workbench-sparql-editor"},199:function(e,t,n){"use strict";n.r(t),n.d(t,"buildQueryModel",(function(){return o})),n.d(t,"savedQueriesResponseMapper",(function(){return i})),n.d(t,"savedQueryResponseMapper",(function(){return a})),n.d(t,"queryPayloadFromEvent",(function(){return u}));var r=n(169),o=function(e,t,n,o){var i=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];return new r.TabQueryModel(t,e,n,o,i)},i=function(e,t){if(e&&e.data){if(e.data.map)return e.data.map((function(e){var n=t!==e.owner;return o(e.body,e.name,e.owner,e.shared,n)}));var n=t!==e.data.owner;return[o(e.data.body,e.data.name,e.data.owner,e.data.shared,n)]}return[]},a=function(e,t){var n=i(e,t);return n.length?n[0]:null},u=function(e){return{name:e.detail.queryName,body:e.detail.query,shared:e.detail.isPublic}}},200: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,a(r.key),r)}}function i(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function a(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,"EventData",(function(){return u}));var u=i((function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.TYPE=t,this.payload=n}))},201: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,"QueryRequestEvent",(function(){return a}));var a=function(){return e=function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.TYPE=t.TYPE,this.query=t.payload.query,this.queryMode=t.payload.queryMode,this.queryType=t.payload.queryType,this.pageSize=t.payload.pageSize,this.request=t.payload.request},(t=[{key:"setPageSize",value:function(e){this.request._data.pageSize=e}},{key:"getPageSize",value:function(){return this.request._data.pageSize?parseInt(this.request._data.pageSize):void 0}},{key:"setPageNumber",value:function(e){this.request._data.pageNumber=e}},{key:"getPageNumber",value:function(){return this.request._data.pageNumber?parseInt(this.request._data.pageNumber):void 0}},{key:"setOffset",value:function(e){this.request._data.offset=e}},{key:"setLimit",value:function(e){this.request._data.limit=e}}])&&o(e.prototype,t),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}()},202:function(e,t,n){"use strict";n.r(t),n.d(t,"CountQueryResponseEvent",(function(){return u}));var r=n(24);function o(e){return(o="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){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,a(r.key),r)}}function a(e){var t=function(e,t){if("object"!=o(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==o(t)?t:t+""}var u=function(){return e=function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.TYPE=t.TYPE,this.response=t.payload.response},(t=[{key:"hasResponse",value:function(){return this.response&&this.response.body}},{key:"getResponseBody",value:function(){if(this.hasResponse())return this.response.body}},{key:"isResponseNumber",value:function(){return!!this.hasResponse()&&Object(r.isNumber)(this.response.body)}},{key:"isResponseArray",value:function(){return!!this.hasResponse()&&Array.isArray(this.response.body)}},{key:"getBindings",value:function(){if(this.hasResponse())return this.response.body.results.bindings}},{key:"hasBindingResponse",value:function(){return!!this.hasResponse()&&this.response.body.results.bindings[0]}},{key:"setTotalElements",value:function(e){this.response.body.totalElements=e}}])&&i(e.prototype,t),n&&i(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}()},203: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,"CountQueryRequestEvent",(function(){return a}));var a=function(){return e=function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.TYPE=t.TYPE,this.query=t.payload.query,this.queryMode=t.payload.queryMode,this.queryType=t.payload.queryType,this.pageSize=t.payload.pageSize,this.request=t.payload.request},(t=[{key:"setPageSize",value:function(e){this.request._data.pageSize=e}},{key:"setPageNumber",value:function(e){this.request._data.pageNumber=e}},{key:"setCount",value:function(e){this.request._data.count=e}}])&&o(e.prototype,t),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}()},204: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,a(r.key),r)}}function i(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function a(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,"DownloadAsEvent",(function(){return u}));var u=i((function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.TYPE=t.TYPE,this.contentType=t.payload.value,this.pluginName=t.payload.pluginName,this.query=t.payload.query,this.infer=t.payload.infer,this.sameAs=t.payload.sameAs}))},205: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,a(r.key),r)}}function i(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function a(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,"NotificationMessageEvent",(function(){return u}));var u=i((function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.TYPE=t.TYPE,this.message=t.payload.message,this.code=t.payload.code,this.messageType=t.payload.messageType}))},206: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,a(r.key),r)}}function i(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function a(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,"QueryExecutedEvent",(function(){return u}));var u=i((function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.TYPE=t.TYPE,this.duration=t.payload.duration,this.tabId=t.payload.tabId}))},207: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,"SaveQueryOpened",(function(){return a}));var a=function(){return e=function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.tab=t.payload.tab},(t=[{key:"getTab",value:function(){return this.tab}}])&&o(e.prototype,t),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}()},208: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,"RequestAbortedEvent",(function(){return a}));var a=function(){return e=function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.TYPE=t.TYPE,this.request=t.payload.request,this.queryMode=t.payload.queryMode},(t=[{key:"getQueryTrackAlias",value:function(){if(this.request)return this.request.header["X-GraphDB-Track-Alias"]}},{key:"getRepository",value:function(){if(this.request){var e=this.request.url;return e.substring(e.lastIndexOf("/")+1)}}}])&&o(e.prototype,t),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}()},209:function(e,t,n){"use strict";n.r(t),n.d(t,"YasrPluginName",(function(){return r}));var r={EXTENDED_TABLE:"extended_table",RAW_RESPONSE:"response",TABLE:"table"}},270:function(e,t){function n(e,t){var n,r=t.getSupportedLanguages();return{getTranslations:function(){return n||(n={},r.forEach((function(t){return n[t]=e.getTranslationTable(t)}))),n}}}angular.module("graphdb.framework.core.services.translation-service",[]).service("TranslationService",n),n.$inject=["$translate","$languageService"]},271:function(e,t,n){"use strict";n.r(t);var r=n(168);angular.module("graphdb.framework.sparql-editor.share-query.service",[]).factory("ShareQueryLinkService",(function(){return{createShareSavedQueryLink:function(t,n){var o="".concat(e(),"?").concat(r.RouteConstants.savedQueryName,"=").concat(encodeURIComponent(t));null!=n&&(o+="&".concat(r.RouteConstants.savedQueryOwner,"=").concat(encodeURIComponent(n)));return o},createShareQueryLink:function(t){return e()+"?"+$.param({name:t.name,query:t.body,infer:t.inference||!0,sameAs:t.sameAs||!0})}};function e(){return[location.protocol,"//",location.host,location.pathname].join("")}}))},272:function(e,t,n){"use strict";n.r(t),n.d(t,"toEventData",(function(){return p})),n.d(t,"toYasguiOutputModel",(function(){return d}));var r=n(200),o=n(156),i=n(201),a=n(202),u=n(203),s=n(204),c=n(205),l=n(206),f=n(207),y=n(208),p=function(e){return new r.EventData(e.detail.TYPE,e.detail.payload)},d=function(e){var t=p(e);switch(t.TYPE){case o.EventDataType.DOWNLOAD_AS:return new s.DownloadAsEvent(t);case o.EventDataType.NOTIFICATION_MESSAGE:return new c.NotificationMessageEvent(t);case o.EventDataType.COUNT_QUERY:return new u.CountQueryRequestEvent(t);case o.EventDataType.COUNT_QUERY_RESPONSE:return new a.CountQueryResponseEvent(t);case o.EventDataType.QUERY:return new i.QueryRequestEvent(t);case o.EventDataType.QUERY_EXECUTED:return new l.QueryExecutedEvent(t);case o.EventDataType.SAVE_QUERY_OPENED:return new f.SaveQueryOpened(t);case o.EventDataType.REQUEST_ABORTED:return new y.RequestAbortedEvent(t);default:return t}}},273:function(e,t,n){"use strict";n.r(t),n.d(t,"YasguiComponent",(function(){return s}));var r=n(27);function o(e){return(o="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 a(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,u(r.key),r)}}function u(e){var t=function(e,t){if("object"!=o(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==o(t)?t:t+""}var s=function(){return e=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r.YasguiComponentDirectiveUtil.getOntotextYasguiElement("#query-editor");i(this,e),this.yasguiComponent=t},(t=[{key:"changeRenderMode",value:function(e){return this.yasguiComponent.changeRenderMode(e)}},{key:"setQuery",value:function(e){return this.yasguiComponent.setQuery(e)}},{key:"query",value:function(e){return this.yasguiComponent.query(e)}},{key:"getQuery",value:function(){return this.yasguiComponent.getQuery()}},{key:"isQueryValid",value:function(){return this.yasguiComponent.isQueryValid()}},{key:"openTab",value:function(e){return this.yasguiComponent.openTab(e)}},{key:"getQueryMode",value:function(){return this.yasguiComponent.getQueryMode()}},{key:"getQueryType",value:function(){return this.yasguiComponent.getQueryType()}},{key:"getEmbeddedResultAsJson",value:function(){return this.yasguiComponent.getEmbeddedResultAsJson()}},{key:"getEmbeddedResultAsCSV",value:function(){return this.yasguiComponent.getEmbeddedResultAsCSV()}},{key:"hideYasqeActionButton",value:function(e){return this.yasguiComponent.hideYasqeActionButton(e)}},{key:"showYasqeActionButton",value:function(e){return this.yasguiComponent.showYasqeActionButton(e)}},{key:"abortQuery",value:function(){return this.yasguiComponent.abortQuery()}},{key:"getOngoingRequestsInfo",value:function(){return this.yasguiComponent.getOngoingRequestsInfo()}},{key:"abortAllRequests",value:function(){return this.yasguiComponent.abortAllRequests()}},{key:"reInitYasgui",value:function(e){return this.yasguiComponent.reInitYasgui(e)}}])&&a(e.prototype,t),n&&a(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}()},274:function(e,t,n){"use strict";n.r(t),n.d(t,"KeyboardShortcutName",(function(){return r}));var r={TRIGGER_AUTOCOMPLETION:"trigger_autocompletion",DELETE_CURRENT_LINE:"delete_current_line",COMMENT_SELECTED_LINE:"comment_selected_line",COPY_LINE_DOWN:"copy_line_down",COPY_LINE_UP:"copy_line_up",AUTO_FORMAT_SELECTED_LINE:"auto_format_selected_line",INDENT_CURRENT_LINE_MORE:"indent_current_line_more",INDENT_CURRENT_LINE_LESS:"indent_current_line_less",EXECUTE_QUERY_OR_UPDATE:"execute_query_or_update",EXECUTE_EXPLAIN_PLAN_FOR_QUERY:"execute_explain_plan_for_query",EXECUTE_CHAT_GPT_EXPLAIN_PLAN_FOR_QUERY:"execute_chat_gpt_explain_plan_for_query",CREATE_TAB:"create_tab",CREATE_SAVE_QUERY:"create_save_query",SWITCH_NEXT_TAB:"switch_next_tab",SWITCH_PREVIOUS_TAB:"switch_previous_tab",CLOSES_ALL_TABS:"closes_all_tabs",FULL_SCREEN:"full_screen",ESC:"esc"}},275:function(e,t,n){"use strict";n.r(t),n.d(t,"YasguiPersistenceMigrationService",(function(){return g}));var r,o,i,a,u,s,c,l,f,y,p=n(171),d="yagui__".concat(p.VIEW_SPARQL_EDITOR),m="completed",v="rejected",g=(r=function(){return{val:{active:null,tabs:[],tabConfig:{}}}},o=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;e.val.migration={date:(new Date).toISOString(),status:t,error:n}},i=function(e,t){e.val.tabs.push(t)},a=function(e,t){e.val.tabConfig[t.id]=t},u=function(e){var t=localStorage.getItem(e);if(t)return t=JSON.parse(t)},s=function(e){e.val.tabs=e.val.tabs.filter((function(e){return!e.startsWith("_")}))},c=function(e){for(var t in e.val.tabConfig)t.startsWith("_")&&delete e.val.tabConfig[t]},l=function(e,t){localStorage.setItem(e,JSON.stringify(t))},f=function(e,t){return"".concat(t," ").concat(e)},y=function(){return Math.random().toString(36).substring(7)},{isMigrationNeeded:function(){var e=u(d),t=!1;return e&&(t=e.val.migration&&(e.val.migration.status===m||e.val.migration.status===v)),!(!localStorage.getItem("ls.tabs-state")||t)},revertMigration:function(){var e=u(d);s(e),c(e),l(d,e)},migrateYasguiPersistence:function(e){var t=u("ls.tabs-state");t=Object.freeze(t);var n=u(d);n||(n=r()),t.map((function(e){return{id:e.id,name:e.name,yasqe:{value:e.query,sameAs:e.sameAs,infer:e.inference,pageSize:1e3,pageNumber:1},yasr:{response:null,settings:{selectedPlugin:"extended_table",pluginsConfig:{}}},requestConfig:{method:"POST"}}})).forEach((function(t,r){t.id="_"+y(),t.name=t.name||f(r,e),i(n,t.id),a(n,t)})),n.val.active=n.val.tabs[0],o(n,m),l(d,n)},rejectMigration:function(){var e=u(d);o(e,v),l(d,e)}})},639:function(e,t,n){var r,o=o||function(e){"use strict";if("undefined"==typeof navigator||!/MSIE [1-9]\./.test(navigator.userAgent)){var t=e.document,n=function(){return e.URL||e.webkitURL||e},r=t.createElementNS("http://www.w3.org/1999/xhtml","a"),o=e.webkitRequestFileSystem,i=e.requestFileSystem||o||e.mozRequestFileSystem,a=function(t){(e.setImmediate||e.setTimeout)((function(){throw t}),0)},u=0,s=function(t){var r=function(){"string"==typeof t?n().revokeObjectURL(t):t.remove()};e.chrome?r():setTimeout(r,500)},c=function(e,t,n){for(var r=(t=[].concat(t)).length;r--;){var o=e["on"+t[r]];if("function"==typeof o)try{o.call(e,n||e)}catch(e){a(e)}}},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,y,p,d=this,m=t.type,v=!1,g=function(){c(d,"writestart progress write writeend".split(" "))},b=function(){(!v&&f||(f=n().createObjectURL(t)),y)?y.location.href=f:null==e.open(f,"_blank")&&"undefined"!=typeof safari&&(e.location.href=f);d.readyState=d.DONE,g(),s(f)},h=function(e){return function(){if(d.readyState!==d.DONE)return e.apply(this,arguments)}},E={create:!0,exclusive:!1};if(d.readyState=d.INIT,a||(a="download"),r)return f=n().createObjectURL(t),r.href=f,r.download=a,void setTimeout((function(){var e,t;e=r,t=new MouseEvent("click"),e.dispatchEvent(t),g(),s(f),d.readyState=d.DONE}));e.chrome&&m&&"application/octet-stream"!==m&&(p=t.slice||t.webkitSlice,t=p.call(t,0,t.size,"application/octet-stream"),v=!0),o&&"download"!==a&&(a+=".download"),("application/octet-stream"===m||o)&&(y=e),i?(u+=t.size,i(e.TEMPORARY,u,h((function(e){e.root.getDirectory("saved",E,h((function(e){var n=function(){e.getFile(a,E,h((function(e){e.createWriter(h((function(n){n.onwriteend=function(t){y.location.href=e.toURL(),d.readyState=d.DONE,c(d,"writeend",t),s(e)},n.onerror=function(){var e=n.error;e.code!==e.ABORT_ERR&&b()},"writestart progress write abort".split(" ").forEach((function(e){n["on"+e]=d["on"+e]})),n.write(t),d.abort=function(){n.abort(),d.readyState=d.DONE},d.readyState=d.WRITING})),b)})),b)};e.getFile(a,{create:!1},h((function(e){e.remove(),n()})),h((function(e){e.code===e.NOT_FOUND_ERR?n():b()})))})),b)})),b)):b()},y=f.prototype;return"undefined"!=typeof navigator&&navigator.msSaveOrOpenBlob?function(e,t){return navigator.msSaveOrOpenBlob(l(e),t)}:(y.abort=function(){this.readyState=this.DONE,c(this,"abort")},y.readyState=y.INIT=0,y.WRITING=1,y.DONE=2,y.error=y.onwritestart=y.onprogress=y.onwrite=y.onabort=y.onerror=y.onwriteend=null,function(e,t){return new f(e,t)})}}("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||this.content);
2
+ /*! @source http://purl.eligrey.com/github/FileSaver.js/blob/master/FileSaver.js */e.exports?e.exports.saveAs=o:null!==n(645)&&null!=n(638)&&(void 0===(r=function(){return o}.apply(t,[]))||(e.exports=r))}}]);
@@ -0,0 +1 @@
1
+ (window.webpackJsonp=window.webpackJsonp||[]).push([[50],{304:function(e,t,n){"use strict";n.r(t);var r=n(658),a=n(684),i=n(647),o=n(648);n(15);function s(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return l(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw i}}}}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function c(e,t,n,l,c,d,u,f,h,p,y,v,g){return{restrict:"AE",template:'<div id="classChart"></div>',scope:{classHierarchyData:"=",flattenedClassNames:"=",selectedClass:"=",currentSliderValue:"=",showClassInfoPanel:"=",showExternalElements:"=",hidePrefixes:"=",currentBrowserLimit:"="},link:function(u,m,x){!function(u,m){var x,w,S=!1,C=d3.pack().size([780,780]),E=d3.scaleLinear().domain([0,4]).range(["hsl(19, 70%, 90%)","hsl(19, 70%, 50%)"]).interpolate(d3.interpolateHcl),T=d3.select("#classChart").insert("svg:svg","h2").attr("viewBox","0 0 800 800").attr("preserveAspectRatio","xMidYMid meet").on("dblclick.zoom",null);function A(){return T.append("svg:g").attrs({id:"main-group",transform:"translate(400,400)"})}function R(){return"true"===y.get(v.CLASS_HIERARCHY_HIDE_PREFIXES)}function b(){var e=o.a.Export.getCSSRules("css/rdf-class-hierarchy-labels.css?v=3.0.2-RC1");d3.selectAll("#main-group").append("defs"),$("defs").append('<style type="text/css"><![CDATA['+e+"]]></style>"),d3.selectAll("g").style("opacity",1);var t=o.a.Export.generateBase64ImageSource("#classChart svg");d3.select(this).attrs({href:t,download:"class-hierarchy-"+d.getActiveRepository()+".svg"})}u.hidePrefixes=R();var H,I,P=A();if(!u.classHierarchyData.classCount&&d.getActiveRepository()&&!d.isSystemRepository()){e.loader=!0,e.hierarchyError=!1;var k=y.get("classHierarchy-selectedGraph-".concat(d.getActiveRepository()));n.getClassHierarchyData(null!==k?k.contextID.uri:"").success((function(t,n,r){e.loader=!1,207===n&&f.warning(g.instant("graphexplore.update.diagram"),g.instant("graphexplore.repository.data.changed")),u.classHierarchyData=t,d3.select("#download-svg").on("mouseover",b)})).error((function(t){e.loader=!1,e.hierarchyError=getError(t),f.error(g.instant("graphexplore.error.request.failed",{name:p,error:getError(t)}))}))}var L,N,D,F,O,z,U,M={};function V(n,o,s,d){N&&N(),D&&D(),d3.selectAll("#main-group").remove(),P=A(),a.a.SingleChild.addPlaceholders(n,!0),(w=d3.hierarchy(n)).sum((function(e){return e.size})),L=s||w,C(w);var f,y=w.descendants();L.isInFocusTransitive=!0,a.a.SingleChild.removePlaceholders(y),a.a.SingleChild.centerNodes(y),a.a.SingleChild.makePositionsRelativeToZero(y),x||(x=Object(r.a)().attr("class","d3-tip").customPosition((function(e,t){return{top:"inherit",bottom:l.innerHeight-t.clientY+"px",right:l.innerWidth-t.clientX+"px"}})).html((function(e){return e.data.name})),T.call(x));var v=P.selectAll("circle").data(y).enter().append("g");o.doFade&&v.each((function(e){i.a.Transition.fadeIn(d3.select(this),550)}));var g,m=[],R=v.append("circle").attr("class",(function(e){return e.data.role})).attr("guide-selector",(function(e){return"class-"+e.data.name})).style("fill",(function(e){return e.children?E(e.depth):"#E0D0D0"})).each((function(e){if(e.circle=d3.select(this),e.data.name!==p){var t=e.data.name;m.push({name:t}),M[[t]]=e,e.circle.classed("rdf-class",!0),e.circle.on("mouseover",(function(t){o.noPrefixes||e.textHidden?x.show(e,t):x.hide(e)})),e.circle.on("mouseout",x.hide)}})).on("gdb-focus",(function(e,t){return I(t)})).on("gdb-zoom",(function(e,t){return Y(t)}));function b(e){d3.selectAll(".selected").classed("selected",e.selected=!1),e.circle.classed("selected",e.selected=!0),g=e}function k(){u.showClassInfoPanel=!1}m&&(m=_.uniqBy(m,"name"),u.flattenedClassNames=m);var F=i.a.Click.delayDblClick();d3.selectAll(".parent, .topLevelParent, .child, .root").call(F),I=function(e){Y(e),e.data.name===p?(k(),d3.selectAll(".selected").classed("selected",!1)):(b(e),S||(u.selectedClass=g,u.showClassInfoPanel=!0),u.$on("sidePanelClosed",(function(t){d3.selectAll(".selected").classed("selected",e.selected=!1)})))},F.on("click",(function(e,t){t.data.id&&l.history.pushState({id:t.data.id},"classHierarchyPage"+t.data.id,"hierarchy#"+t.data.id),x.hide(),I(t)})),F.on("dblclick",(function(t,r){r!==n&&(x.hide(),b(r),e.$broadcast("goToDomainRangeGraphView",g,L),t.stopPropagation())}));var $=0;T.on("wheel",(function(e){x.hide(),e.preventDefault(),e.stopPropagation();var t=(new Date).getTime();if(t-$>100){$=t;var n="";e.deltaY<=-1?n="in":e.deltaY>=1&&(n="out");var r=e.target.__data__;if(r||(r=L),"in"===n){if(r!==L){for(;r.parent&&!r.parent.isInFocusTransitive;)r=r.parent;r.depth<L.depth&&(r=L)}if(r===L&&r.children){for(var a=r.children[0],i=1;i<r.children.length;i++)r.children[i].sortingRank>a.sortingRank&&(a=r.children[i]);a.children&&(r=a)}else r.children||(r=r.parent);Y(r,!0)}else"out"===n&&(r=L.parent)&&Y(r,!0);L.data.name===p&&l.history.replaceState({id:1},"classHierarchyPage1","hierarchy#1"),B()}}));var O=P.selectAll("text").data(y).enter().append("text").attr("class",(function(e){return e.children&&e.children.length?"label":"label child-label"})).each((function(e){e.textSel=d3.select(this)}));o.noPrefixes?(O.each((function(e){var t=e.data.name.indexOf(":");e.data.name.indexOf("http://")>-1?e.noPrefixName=e.data.name:t>-1&&(e.noPrefixName=e.data.name.substring(t+1))})),O.style("font-size",(function(e){return i.a.Text.calcFontSize(e.noPrefixName,e.r)})).text((function(e){return i.a.Text.getTextWithElipsisIfNeeded(e.noPrefixName,e.r/3)}))):O.style("font-size",(function(e){return i.a.Text.calcFontSize(e.data.name,e.r)})).text((function(e){return i.a.Text.getTextWithElipsisIfNeeded(e.data.name,e.r/3)})),O.style("display",(function(e){return e.parent&&e.parent.data===L.data?(e.textHidden=this.textContent.indexOf("...")+3===this.textContent.length,null):(e.textHidden=!0,"none")})),o.doFade&&!o.keepPrevState&&O.each((function(e){i.a.Transition.fadeIn(d3.select(this),550)})),H=function(){function e(e){e&&R.each((function(t){+e===t.data.id&&I(t)}))}var n=t.hash();l.onpopstate=function(t){t.state&&e(t.state.id)},e(n)};var z=P.selectAll("circle, text");function U(e,t){var n=800/e[2];f=e,z.attr("transform",(function(t){return"translate("+(t.x-e[0])*n+","+(t.y-e[1])*n+")"})),R.attr("r",(function(e){return e.r*n})),t&&O.each((function(e){e.data.fullName!==L.data.topLevelParentUri&&L.data.topLevelParentUri!==p||(e.textSel.style("display","none"),L.children&&L.children.length?_.each(L.children,(function(e){e.textSel.style("display","inline")})):L.textSel.style("display","inline"),L.parent&&_.each(L.parent.children,(function(e){e.data.name!==L.data.name&&e.textSel.style("display","inline")})))})),O.style("font-size",(function(e){return o.noPrefixes?i.a.Text.calcFontSize(e.noPrefixName,e.r*n):i.a.Text.calcFontSize(e.data.name,e.r*n)})).text((function(e){return o.noPrefixes?i.a.Text.getTextWithElipsisIfNeeded(e.noPrefixName,e.r*n/3):i.a.Text.getTextWithElipsisIfNeeded(e.data.name,e.r*n/3)}))}function V(e){var t=2*e+20;return 2*e/t<.3&&(t=2*e+2),t}function W(e){!e.isInFocusTransitive&&e.parent&&e.parent.isInFocusTransitive?(e.textHidden=this.textContent.indexOf("...")+3===this.textContent.length,this.style.display=""):(e.textHidden=!0,this.style.display="none")}function Y(e,t){if(c((function(){u.showExternalElements=e.data.name===p})),L!==e&&(e.data.id&&l.history.replaceState({id:e.data.id},"classHierarchyPage"+e.data.id,"hierarchy#"+e.data.id),e.children||(e=e.parent,L!==e))){if(t&&(k(),d3.selectAll(".selected").classed("selected",!1)),L.parent)for(var n=L;n;)n.isInFocusTransitive=!1,n=n.parent;for(n=e;n;)n.isInFocusTransitive=!!n.children,n=n.parent;if(2*(L=e).r/(2*L.r+20)<.3||u.currentSliderValue>u.currentBrowserLimit)U([L.x,L.y,V(L.r)]),O.each((function(e){W.call(this,e)}));else d3.transition().duration(h).tween("zoom",(function(e){var t=d3.interpolateZoom(f,[L.x,L.y,V(L.r)]);return function(e){U(t(e))}})).selectAll("text").each(W)}}U([L.x,L.y,V(L.r)],d),N=u.$on("rootFocus",(function(){l.history.pushState({id:1},"classHierarchyPage1","hierarchy#1"),I(w)})),D=u.$on("classSearch",(function(e){I(e)}))}function B(){var t=u.classHierarchyData.classCount,n=y.get(v.CLASS_HIERARCHY_CURRENT_SLIDER_VALUE);(!n||n>t)&&(n=t,y.set(v.CLASS_HIERARCHY_CURRENT_SLIDER_VALUE,n)),e.$broadcast("classCount",t,n)}window.addEventListener("resize",B),window.addEventListener("beforeunload",(function e(){window.removeEventListener("resize",B),window.removeEventListener("beforeunload",e)})),u.$watch("classHierarchyData",(function(){F&&F(),O&&O(),z&&z(),U&&U();var e=R();if(u.classHierarchyData.classCount){var t=function(e,t){var n={keepPrevState:!0,noPrefixes:R()};a=n.noPrefixes,V(r||e,n,L,!0),c((function(){y.set(v.CLASS_HIERARCHY_SWITCH_PREFIXES,t),H(),S=!1}),70)},n=function(e,n,i){if(e){y.set(v.CLASS_HIERARCHY_CURRENT_SLIDER_VALUE,e),r={name:p,children:[]};for(var l=new Set,c=1;c<=e;c++)l.add(n[c].data.id),n[c].parent===n[0]&&r.children.push(n[c].data);if(function e(t){if(t.children){var n,r=[],a=s(t.children);try{for(a.s();!(n=a.n()).done;){var i=n.value;l.has(i.id)&&r.push($.extend({},i))}}catch(e){a.e(e)}finally{a.f()}t.children=r;var o,c=s(t.children);try{for(c.s();!(o=c.n()).done;){e(o.value)}}catch(e){c.e(e)}finally{c.f()}}}(r),i)a=angular.isUndefined(a)?R():a,V(r,{noPrefixes:a});else t(o)}};B();var r,a,i,o=_.cloneDeep(u.classHierarchyData),l=function(e){return e.descendants().sort((function(e,t){return e.data.sortingRank>t.data.sortingRank?-1:e.data.sortingRank<t.data.sortingRank||e.data.depth>t.data.depth?1:e.data.depth<t.data.depth?-1:0}))}(d3.hierarchy(o)),d=y.get(v.CLASS_HIERARCHY_CURRENT_SLIDER_VALUE);if(d)n(d,l);else{var f={doFade:!0,keepPrevState:!0,noPrefixes:R()};V(o,f),H()}F=u.$watch("hidePrefixes",(function(n){angular.isUndefined(n)||e?e=void 0:c((function(){S=!0,function(e){angular.isUndefined(e)||y.set(v.CLASS_HIERARCHY_HIDE_PREFIXES,e)}(n),t(o,!0)}),50)}),!0),O=u.$watch("currentSliderValue",(function(e){n(e,l,!0)}),!0),U=u.$on("onEnterKeypressSearchAction",(function(e){i&&I(i)})),z=u.$on("searchedClass",(function(e,t){(i=M[t.name])&&I(i)}))}}),!0)}(u)}}}angular.module("graphdb.framework.graphexplore.directives.class",["graphdb.framework.graphexplore.controllers.class","graphdb.framework.utils.localstorageadapter"]).constant("ZOOM_DURATION",500).constant("ROOT_OBJ_NAME","RDF Class Hierarchy").directive("rdfClassHierarchy",c),c.$inject=["$rootScope","$location","GraphDataRestService","$window","$timeout","$repositories","$licenseService","toastr","ZOOM_DURATION","ROOT_OBJ_NAME","LocalStorageAdapter","LSKeys","$translate"]},634:function(e,t,n){var r,a;r=[n(644)],void 0===(a=function(){function e(e,t){return e.each((function(){var e=t.apply(this,arguments),n=select(this);for(var r in e)n.attr(r,e[r])}))}function t(e,t){for(var n in t)e.attr(n,t[n]);return e}return"undefined"==typeof d3&&(d3=n(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=a)},647:function(e,t,n){"use strict";n(634);var r=r||{};r.Text=function(){function e(e,t,n,r){n=n||10;var a=t/3;return"string"==typeof e?(a*=10/(e.substring(0,t/3).length+1.5),a+=1,e.match(/[\u0900-\u0DFF\u1100-\u11FF\u2E80-\u2EFF\u3000-\u9FFF]/)&&(a*=.6),a<n&&(a=n),Math.round(a)):(a<n&&(a=n),Math.round(a))}return{calcFontSizeRaw:e,calcFontSize:function(t,n,r,a){return e(t,n,r)+"px"},getTextWithElipsisIfNeeded:function(e,t){return"string"==typeof e&&e.length>t?e.substring(0,t-3)+"...":e}}}(),r.Transition={fadeIn:function(e,t){e.style("opacity",0).transition().duration(t).style("opacity",1)},fadeOut:function(e,t){e.style("opacity",1).transition().duration(t).style("opacity",0)}},r.Click=function(){var e=function(e,n){for(var r,a=1,i=arguments.length;++a<i;)e[r=arguments[a]]=t(e,n,n[r]);return e};function t(e,t,n){return function(){var r=n.apply(t,arguments);return r===t?e:r}}return{delayDblClick:function(){var t=d3.dispatch("click","dblclick");return e((function(e){var n,r=null;e.on("mousedown",(function(){n=d3.pointer(document.body),+new Date})),e.on("mouseup",(function(e,a){var i,o,s;(o=n,s=d3.pointer(document.body),Math.sqrt(Math.pow(o[0]-s[0],2),Math.pow(o[1]-s[1],2))>5)||(r?(window.clearTimeout(r),r=null,t.call("dblclick",e,e,a)):r=window.setTimeout((i=e,function(){t.call("click",i,i,a),r=null}),250))}))}),t,"on")}}}(),t.a=r},648:function(e,t,n){"use strict";n(634);var r=r||{};r.Export={getCSSRules:function(e){var t=$('link[href="'+e+'"]')[0].sheet.rules,n="";return _.each(t,(function(e){n+=e.cssText})),n},generateBase64ImageSource:function(e){e||(e="svg");var t=d3.selectAll(e).attr("version","1.1").attr("xmlns","http://www.w3.org/2000/svg").node().parentNode.innerHTML;return"data:image/svg+xml;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(t)))}},t.a=r},658:function(e,t,n){"use strict";t.a=function(){var e=function(){return"n"},t=function(){return[0,0]},n=function(){return" "},r=u(),a=null,i=null,o=null,s=null;function l(e){var t;a="svg"===(t=(t=e).node()).tagName.toLowerCase()?t:t.ownerSVGElement,i=a.createSVGPoint(),document.body.appendChild(r)}l.show=function(){var r=Array.prototype.slice.call(arguments);r[r.length-1]instanceof SVGElement&&(o=r.pop());var a,i=n.apply(this,r),u=t.apply(this,r),h=e.apply(this,r),p=f(),y=d.length,v=document.documentElement.scrollTop||document.body.scrollTop,g=document.documentElement.scrollLeft||document.body.scrollLeft,m=s.apply(this,r);for(p.html(i).style("opacity",1).style("pointer-events","all");y--;)p.classed(d[y],!1);var x=r.filter((function(e){return e instanceof Event}));return a=c.get(h).apply(this,x),m?Object.keys(m).forEach((function(e){p.style(e,m[e])})):p.classed(h,!0).style("top",a.top+u[0]+v+"px").style("left",a.left+u[1]+g+"px"),l},l.hide=function(){return f().style("opacity",0).style("pointer-events","none"),l},l.attr=function(e,t){if(arguments.length<2&&"string"==typeof e)return f().attr(e);var n=Array.prototype.slice.call(arguments);return d3.selection.prototype.attr.apply(f(),n),l},l.style=function(e,t){if(arguments.length<2&&"string"==typeof e)return f().style(e);var n=Array.prototype.slice.call(arguments);return d3.selection.prototype.style.apply(f(),n),l},l.direction=function(t){return arguments.length?(e=null==t?t:p(t),l):e},l.offset=function(e){return arguments.length?(t=null==e?e:p(e),l):t},l.html=function(e){return arguments.length?(n=null==e?e:p(e),l):n},l.customPosition=function(e){return arguments.length?(s=null==e?e:p(e),l):s},l.destroy=function(){return r&&(f().remove(),r=null),l};var c=new Map(Object.entries({n:function(e){var t=h(e);return{top:t.n.y-r.offsetHeight,left:t.n.x-r.offsetWidth/2}},s:function(e){var t=h(e);return{top:t.s.y,left:t.s.x-r.offsetWidth/2}},e:function(e){var t=h(e);return{top:t.e.y-r.offsetHeight/2,left:t.e.x}},w:function(e){var t=h(e);return{top:t.w.y-r.offsetHeight/2,left:t.w.x-r.offsetWidth}},nw:function(e){var t=h(e);return{top:t.nw.y-r.offsetHeight,left:t.nw.x-r.offsetWidth}},ne:function(e){var t=h(e);return{top:t.ne.y-r.offsetHeight,left:t.ne.x}},sw:function(e){var t=h(e);return{top:t.sw.y,left:t.sw.x-r.offsetWidth}},se:function(e){var t=h(e);return{top:t.se.y,left:t.e.x}}})),d=c.keys();function u(){var e=d3.select(document.createElement("div"));return e.style("position","absolute").style("top",0).style("opacity",0).style("pointer-events","none").style("box-sizing","border-box"),e.node()}function f(){return null===r&&(r=u(),document.body.appendChild(r)),d3.select(r)}function h(e){for(var t=o||e.target;void 0===t.getScreenCTM&&"undefined"===t.parentNode;)t=t.parentNode;var n={},r=t.getScreenCTM(),a=t.getBBox(),s=a.width,l=a.height,c=a.x,d=a.y;return i.x=c,i.y=d,n.nw=i.matrixTransform(r),i.x+=s,n.ne=i.matrixTransform(r),i.y+=l,n.se=i.matrixTransform(r),i.x-=s,n.sw=i.matrixTransform(r),i.y-=l/2,n.w=i.matrixTransform(r),i.x+=s,n.e=i.matrixTransform(r),i.x-=s/2,i.y-=l/2,n.n=i.matrixTransform(r),i.y+=l,n.s=i.matrixTransform(r),n}function p(e){return"function"==typeof e?e:function(){return e}}return l}},684:function(e,t,n){"use strict";var r=r||{};r.SingleChild={addPlaceholders:function e(t,n){if(t.children){for(var r=0;r<t.children.length;r++)e(t.children[r]);if(1===t.children.length){var a=1.2*t.size;n&&(a=.1*t.children[0].size),t.children.push({name:"placeholder",size:a})}}},removePlaceholders:function e(t){for(var n=t.length-1;n>=0;n--){var r=t[n];"placeholder"===r.data.name?t.splice(n,1):r.children&&e(r.children)}},centerNodes:function(e){for(var t=0;t<e.length;t++){var n=e[t];if(n.children&&1===n.children.length){var r=n.x-n.children[0].x;n.children[0].x+=r,a(n.children[0],r)}}function a(e,t){if(e.children)for(var n=0;n<e.children.length;n++)e.children[n].x+=t,a(e.children[n],t)}},makePositionsRelativeToZero:function(e){for(var t=e[0].x,n=e[0].y,r=0;r<e.length;r++){var a=e[r];a.x-=t,a.y-=n}}},t.a=r}}]);
@@ -1 +1 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([[51,76,115,199,248,249],{113:function(t,n,e){"use strict";e.r(n),e.d(n,"resolveGraphqlEndpoint",(function(){return o})),e.d(n,"resolvePlaygroundUrlWithEndpoint",(function(){return s}));var i=e(114),r=e(26),o=function(t,n){return"".concat(r.REPOSITORIES_ENDPOINT,"/").concat(t,"/graphql/").concat(n)},s=function(t){return"".concat(i.endpointUrl.PLAYGROUND,"?endpointId=").concat(t)}},114:function(t,n,e){"use strict";e.r(n),e.d(n,"endpointUrl",(function(){return i}));var i={PLAYGROUND:"graphql/playground",CREATE_ENDPOINT:"graphql/endpoint/create",ENDPOINT_MANAGEMENT:"graphql/endpoints"}},119: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 r(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function o(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,a(i.key),i)}}function s(t,n,e){return n&&o(t.prototype,n),e&&o(t,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function u(t,n,e){return(n=a(n))in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}function a(t){var n=function(t,n){if("object"!=i(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,n||"default");if("object"!=i(r))return r;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,"EndpointGenerationReportList",(function(){return f})),e.d(n,"EndpointGenerationReport",(function(){return c}));var f=function(){return s((function t(n){r(this,t),u(this,"_reports",void 0),this._reports=n||[]}),[{key:"getReport",value:function(t){return this._reports.find((function(n){return n.endpointId===t}))}},{key:"reports",get:function(){return this._reports},set:function(t){this._reports=t}}])}(),c=function(){return s((function t(n){r(this,t),u(this,"_endpointId",void 0),u(this,"_endpointURI",void 0),u(this,"_active",void 0),u(this,"_default",void 0),u(this,"_label",void 0),u(this,"_description",void 0),u(this,"_lastModified",void 0),u(this,"_objectsCount",void 0),u(this,"_propertiesCount",void 0),u(this,"_warnings",void 0),u(this,"_errors",void 0),u(this,"_messages",void 0),u(this,"_createdSuccessfully",void 0),this._endpointId=n.endpointId||"",this._endpointURI=n.endpointURI||"",this._active=n.active||!1,this._default=n.default||!1,this._label=n.label||"",this._description=n.description||"",this._lastModified=n.lastModified||"",this._objectsCount=n.objectsCount||0,this._propertiesCount=n.propertiesCount||0,this._warnings=n.warnings||0,this._errors=n.errors||0,this._messages=n.messages||[],this._createdSuccessfully=this._active&&0===this._errors}),[{key:"toJSON",value:function(){return{id:this._endpointId,active:this._active,default:this._default,label:this._label,description:this._description,lastModified:this._lastModified,objectsCount:this._objectsCount,propertiesCount:this._propertiesCount,warnings:this._warnings,errors:this._errors,messages:this._messages}}},{key:"endpointId",get:function(){return this._endpointId},set:function(t){this._endpointId=t}},{key:"endpointURI",get:function(){return this._endpointURI},set:function(t){this._endpointURI=t}},{key:"active",get:function(){return this._active},set:function(t){this._active=t}},{key:"default",get:function(){return this._default},set:function(t){this._default=t}},{key:"label",get:function(){return this._label},set:function(t){this._label=t}},{key:"description",get:function(){return this._description},set:function(t){this._description=t}},{key:"lastModified",get:function(){return this._lastModified},set:function(t){this._lastModified=t}},{key:"objectsCount",get:function(){return this._objectsCount},set:function(t){this._objectsCount=t}},{key:"propertiesCount",get:function(){return this._propertiesCount},set:function(t){this._propertiesCount=t}},{key:"warnings",get:function(){return this._warnings},set:function(t){this._warnings=t}},{key:"errors",get:function(){return this._errors},set:function(t){this._errors=t}},{key:"messages",get:function(){return this._messages},set:function(t){this._messages=t}},{key:"createdSuccessfully",get:function(){return this._createdSuccessfully},set:function(t){this._createdSuccessfully=t}}])}()},150: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 r(t){return function(t){if(Array.isArray(t))return o(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,n){if(t){if("string"==typeof t)return o(t,n);var e={}.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?o(t,n):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,i=Array(n);e<n;e++)i[e]=t[e];return i}function s(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function u(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,c(i.key),i)}}function a(t,n,e){return n&&u(t.prototype,n),e&&u(t,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function f(t,n,e){return(n=c(n))in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}function c(t){var n=function(t,n){if("object"!=i(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,n||"default");if("object"!=i(r))return r;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,"ImportStatus",(function(){return l})),e.d(n,"ImportStatusLabelKeys",(function(){return p})),e.d(n,"ImportStatusToViewMapping",(function(){return d})),e.d(n,"EndpointDefinitionFileList",(function(){return h})),e.d(n,"EndpointDefinitionFile",(function(){return _}));var l={PENDING:"PENDING",SUCCESS:"SUCCESS",FAIL:"FAIL",SKIP:"SKIP"},p=f(f(f(f({},l.PENDING,"graphql.endpoints_management.import_definition_modal.status.pending"),l.SUCCESS,"graphql.endpoints_management.import_definition_modal.status.completed"),l.FAIL,"graphql.endpoints_management.import_definition_modal.status.failed"),l.SKIP,"graphql.endpoints_management.import_definition_modal.status.not_allowed"),d=f(f(f(f({},l.PENDING,"tag-warning"),l.SUCCESS,"tag-success"),l.FAIL,"tag-danger"),l.SKIP,"tag-info"),h=function(){return a((function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];s(this,t),f(this,"_list",void 0),f(this,"_size",void 0),this._list=n,this._size=n.length}),[{key:"processWith",value:function(t){this.list.forEach(t)}},{key:"findDefinitionFileByName",value:function(t){return this.list.find((function(n){return n.file.name===t}))}},{key:"getFileNames",value:function(){return this.list.map((function(t){return t.file.name}))}},{key:"appendFiles",value:function(t){var n;(n=this.list).push.apply(n,r(t)),this._size=this.list.length}},{key:"removeFile",value:function(t){this.list=this.list.filter((function(n){return n.file!==t.file}))}},{key:"size",get:function(){return this._size},set:function(t){this._size=t}},{key:"list",get:function(){return this._list},set:function(t){this._list=t,this._size=t.length}}])}(),_=function(){return a((function t(n,e,i,r){s(this,t),f(this,"_list",void 0),f(this,"_file",void 0),f(this,"_filename",void 0),f(this,"_status",void 0),f(this,"_viewStatus",void 0),f(this,"_statusMessage",void 0),f(this,"_endpointId",void 0),f(this,"_report",void 0),this._file=n,this._status=e,this._viewStatus=d[e],this._statusMessage=i,this._list=r}),[{key:"file",get:function(){return this._file},set:function(t){this._file=t}},{key:"filename",get:function(){return this._filename},set:function(t){this._filename=t}},{key:"status",get:function(){return this._status},set:function(t){this._status=t,this._viewStatus=d[t]}},{key:"viewStatus",get:function(){return this._viewStatus},set:function(t){this._viewStatus=t}},{key:"statusMessage",get:function(){return this._statusMessage},set:function(t){this._statusMessage=t}},{key:"endpointId",get:function(){return this._endpointId},set:function(t){this._endpointId=t}},{key:"report",get:function(){return this._report},set:function(t){this._report=t}},{key:"list",get:function(){return this._list},set:function(t){this._list=t}}])}()},174:function(t,n,e){"use strict";e.r(n),e.d(n,"endpointGenerationReportListMapper",(function(){return o})),e.d(n,"endpointGenerationReportMapper",(function(){return s})),e.d(n,"importEndpointDefinitionReportMapper",(function(){return u}));var i=e(119),r=e(113),o=function(t,n){if(!t)return new i.EndpointGenerationReportList;var e=t.map((function(t){return s(t,n)}));return new i.EndpointGenerationReportList(e)},s=function(t,n){return new i.EndpointGenerationReport({endpointId:t.id,endpointURI:Object(r.resolveGraphqlEndpoint)(n,t.id),active:t.active,default:t.default,label:t.label,description:t.description,lastModified:t.lastModified,objectsCount:t.objectsCount,propertiesCount:t.propertiesCount,warnings:t.warnings,errors:t.errors,messages:t.messages})},u=function(t,n,e){var o,s,u=t.messages?null===(o=t.messages.errors)||void 0===o?void 0:o.length:0,a=t.messages?null===(s=t.messages.warnings)||void 0===s?void 0:s.length:0;return new i.EndpointGenerationReport({endpointId:t.id,endpointURI:Object(r.resolveGraphqlEndpoint)(e,t.id),warnings:a,errors:u,messages:t.messages})}},221:function(t,n,e){"use strict";e.r(n),e.d(n,"fileToImportDefinitionsMapper",(function(){return u})),e.d(n,"fileToImportDefinitionMapper",(function(){return a})),e.d(n,"importEndpointDefinitionListMapper",(function(){return f}));var i=e(150),r=e(174);function o(t){return function(t){if(Array.isArray(t))return s(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,n){if(t){if("string"==typeof t)return s(t,n);var e={}.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?s(t,n):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,i=Array(n);e<n;e++)i[e]=t[e];return i}var u=function(t,n){var e=t.map((function(t){return a(t,n)}));return new i.EndpointDefinitionFileList(e)},a=function(t,n){return new i.EndpointDefinitionFile(t,n,i.ImportStatusLabelKeys[n])},f=function(t,n,e){if(!t||!t.length)return new i.EndpointDefinitionFileList;var s=function(t){var o=t.id,u=t.filename,a=t.status.toUpperCase(),f=e.findDefinitionFileByName(u)||new i.EndpointDefinitionFile;if(f.endpointId=o,f.filename=u,f.status=a,f.statusMessage=i.ImportStatusLabelKeys[a],f.report=Object(r.importEndpointDefinitionReportMapper)(t,o,n),t.subFiles){var c=t.subFiles.map(s);f.list=new i.EndpointDefinitionFileList(c)}return f};return t.forEach(s),new i.EndpointDefinitionFileList(o(e.list))}}}]);
1
+ (window.webpackJsonp=window.webpackJsonp||[]).push([[51,77,116,199,248,249],{113:function(t,n,e){"use strict";e.r(n),e.d(n,"resolveGraphqlEndpoint",(function(){return o})),e.d(n,"resolvePlaygroundUrlWithEndpoint",(function(){return s}));var i=e(114),r=e(26),o=function(t,n){return"".concat(r.REPOSITORIES_ENDPOINT,"/").concat(t,"/graphql/").concat(n)},s=function(t){return"".concat(i.endpointUrl.PLAYGROUND,"?endpointId=").concat(t)}},114:function(t,n,e){"use strict";e.r(n),e.d(n,"endpointUrl",(function(){return i}));var i={PLAYGROUND:"graphql/playground",CREATE_ENDPOINT:"graphql/endpoint/create",ENDPOINT_MANAGEMENT:"graphql/endpoints"}},119: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 r(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function o(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,a(i.key),i)}}function s(t,n,e){return n&&o(t.prototype,n),e&&o(t,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function u(t,n,e){return(n=a(n))in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}function a(t){var n=function(t,n){if("object"!=i(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,n||"default");if("object"!=i(r))return r;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,"EndpointGenerationReportList",(function(){return f})),e.d(n,"EndpointGenerationReport",(function(){return c}));var f=function(){return s((function t(n){r(this,t),u(this,"_reports",void 0),this._reports=n||[]}),[{key:"getReport",value:function(t){return this._reports.find((function(n){return n.endpointId===t}))}},{key:"reports",get:function(){return this._reports},set:function(t){this._reports=t}}])}(),c=function(){return s((function t(n){r(this,t),u(this,"_endpointId",void 0),u(this,"_endpointURI",void 0),u(this,"_active",void 0),u(this,"_default",void 0),u(this,"_label",void 0),u(this,"_description",void 0),u(this,"_lastModified",void 0),u(this,"_objectsCount",void 0),u(this,"_propertiesCount",void 0),u(this,"_warnings",void 0),u(this,"_errors",void 0),u(this,"_messages",void 0),u(this,"_createdSuccessfully",void 0),this._endpointId=n.endpointId||"",this._endpointURI=n.endpointURI||"",this._active=n.active||!1,this._default=n.default||!1,this._label=n.label||"",this._description=n.description||"",this._lastModified=n.lastModified||"",this._objectsCount=n.objectsCount||0,this._propertiesCount=n.propertiesCount||0,this._warnings=n.warnings||0,this._errors=n.errors||0,this._messages=n.messages||[],this._createdSuccessfully=this._active&&0===this._errors}),[{key:"toJSON",value:function(){return{id:this._endpointId,active:this._active,default:this._default,label:this._label,description:this._description,lastModified:this._lastModified,objectsCount:this._objectsCount,propertiesCount:this._propertiesCount,warnings:this._warnings,errors:this._errors,messages:this._messages}}},{key:"endpointId",get:function(){return this._endpointId},set:function(t){this._endpointId=t}},{key:"endpointURI",get:function(){return this._endpointURI},set:function(t){this._endpointURI=t}},{key:"active",get:function(){return this._active},set:function(t){this._active=t}},{key:"default",get:function(){return this._default},set:function(t){this._default=t}},{key:"label",get:function(){return this._label},set:function(t){this._label=t}},{key:"description",get:function(){return this._description},set:function(t){this._description=t}},{key:"lastModified",get:function(){return this._lastModified},set:function(t){this._lastModified=t}},{key:"objectsCount",get:function(){return this._objectsCount},set:function(t){this._objectsCount=t}},{key:"propertiesCount",get:function(){return this._propertiesCount},set:function(t){this._propertiesCount=t}},{key:"warnings",get:function(){return this._warnings},set:function(t){this._warnings=t}},{key:"errors",get:function(){return this._errors},set:function(t){this._errors=t}},{key:"messages",get:function(){return this._messages},set:function(t){this._messages=t}},{key:"createdSuccessfully",get:function(){return this._createdSuccessfully},set:function(t){this._createdSuccessfully=t}}])}()},151: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 r(t){return function(t){if(Array.isArray(t))return o(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,n){if(t){if("string"==typeof t)return o(t,n);var e={}.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?o(t,n):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,i=Array(n);e<n;e++)i[e]=t[e];return i}function s(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function u(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,c(i.key),i)}}function a(t,n,e){return n&&u(t.prototype,n),e&&u(t,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function f(t,n,e){return(n=c(n))in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}function c(t){var n=function(t,n){if("object"!=i(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,n||"default");if("object"!=i(r))return r;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,"ImportStatus",(function(){return l})),e.d(n,"ImportStatusLabelKeys",(function(){return p})),e.d(n,"ImportStatusToViewMapping",(function(){return d})),e.d(n,"EndpointDefinitionFileList",(function(){return h})),e.d(n,"EndpointDefinitionFile",(function(){return _}));var l={PENDING:"PENDING",SUCCESS:"SUCCESS",FAIL:"FAIL",SKIP:"SKIP"},p=f(f(f(f({},l.PENDING,"graphql.endpoints_management.import_definition_modal.status.pending"),l.SUCCESS,"graphql.endpoints_management.import_definition_modal.status.completed"),l.FAIL,"graphql.endpoints_management.import_definition_modal.status.failed"),l.SKIP,"graphql.endpoints_management.import_definition_modal.status.not_allowed"),d=f(f(f(f({},l.PENDING,"tag-warning"),l.SUCCESS,"tag-success"),l.FAIL,"tag-danger"),l.SKIP,"tag-info"),h=function(){return a((function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];s(this,t),f(this,"_list",void 0),f(this,"_size",void 0),this._list=n,this._size=n.length}),[{key:"processWith",value:function(t){this.list.forEach(t)}},{key:"findDefinitionFileByName",value:function(t){return this.list.find((function(n){return n.file.name===t}))}},{key:"getFileNames",value:function(){return this.list.map((function(t){return t.file.name}))}},{key:"appendFiles",value:function(t){var n;(n=this.list).push.apply(n,r(t)),this._size=this.list.length}},{key:"removeFile",value:function(t){this.list=this.list.filter((function(n){return n.file!==t.file}))}},{key:"size",get:function(){return this._size},set:function(t){this._size=t}},{key:"list",get:function(){return this._list},set:function(t){this._list=t,this._size=t.length}}])}(),_=function(){return a((function t(n,e,i,r){s(this,t),f(this,"_list",void 0),f(this,"_file",void 0),f(this,"_filename",void 0),f(this,"_status",void 0),f(this,"_viewStatus",void 0),f(this,"_statusMessage",void 0),f(this,"_endpointId",void 0),f(this,"_report",void 0),this._file=n,this._status=e,this._viewStatus=d[e],this._statusMessage=i,this._list=r}),[{key:"file",get:function(){return this._file},set:function(t){this._file=t}},{key:"filename",get:function(){return this._filename},set:function(t){this._filename=t}},{key:"status",get:function(){return this._status},set:function(t){this._status=t,this._viewStatus=d[t]}},{key:"viewStatus",get:function(){return this._viewStatus},set:function(t){this._viewStatus=t}},{key:"statusMessage",get:function(){return this._statusMessage},set:function(t){this._statusMessage=t}},{key:"endpointId",get:function(){return this._endpointId},set:function(t){this._endpointId=t}},{key:"report",get:function(){return this._report},set:function(t){this._report=t}},{key:"list",get:function(){return this._list},set:function(t){this._list=t}}])}()},174:function(t,n,e){"use strict";e.r(n),e.d(n,"endpointGenerationReportListMapper",(function(){return o})),e.d(n,"endpointGenerationReportMapper",(function(){return s})),e.d(n,"importEndpointDefinitionReportMapper",(function(){return u}));var i=e(119),r=e(113),o=function(t,n){if(!t)return new i.EndpointGenerationReportList;var e=t.map((function(t){return s(t,n)}));return new i.EndpointGenerationReportList(e)},s=function(t,n){return new i.EndpointGenerationReport({endpointId:t.id,endpointURI:Object(r.resolveGraphqlEndpoint)(n,t.id),active:t.active,default:t.default,label:t.label,description:t.description,lastModified:t.lastModified,objectsCount:t.objectsCount,propertiesCount:t.propertiesCount,warnings:t.warnings,errors:t.errors,messages:t.messages})},u=function(t,n,e){var o,s,u=t.messages?null===(o=t.messages.errors)||void 0===o?void 0:o.length:0,a=t.messages?null===(s=t.messages.warnings)||void 0===s?void 0:s.length:0;return new i.EndpointGenerationReport({endpointId:t.id,endpointURI:Object(r.resolveGraphqlEndpoint)(e,t.id),warnings:a,errors:u,messages:t.messages})}},221:function(t,n,e){"use strict";e.r(n),e.d(n,"fileToImportDefinitionsMapper",(function(){return u})),e.d(n,"fileToImportDefinitionMapper",(function(){return a})),e.d(n,"importEndpointDefinitionListMapper",(function(){return f}));var i=e(151),r=e(174);function o(t){return function(t){if(Array.isArray(t))return s(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,n){if(t){if("string"==typeof t)return s(t,n);var e={}.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?s(t,n):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,i=Array(n);e<n;e++)i[e]=t[e];return i}var u=function(t,n){var e=t.map((function(t){return a(t,n)}));return new i.EndpointDefinitionFileList(e)},a=function(t,n){return new i.EndpointDefinitionFile(t,n,i.ImportStatusLabelKeys[n])},f=function(t,n,e){if(!t||!t.length)return new i.EndpointDefinitionFileList;var s=function(t){var o=t.id,u=t.filename,a=t.status.toUpperCase(),f=e.findDefinitionFileByName(u)||new i.EndpointDefinitionFile;if(f.endpointId=o,f.filename=u,f.status=a,f.statusMessage=i.ImportStatusLabelKeys[a],f.report=Object(r.importEndpointDefinitionReportMapper)(t,o,n),t.subFiles){var c=t.subFiles.map(s);f.list=new i.EndpointDefinitionFileList(c)}return f};return t.forEach(s),new i.EndpointDefinitionFileList(o(e.list))}}}]);
@@ -1 +1 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([[52,128,287,295,296,327,329,390],{155:function(e,r,n){"use strict";n.r(r),n.d(r,"EventDataType",(function(){return t}));var t={DOWNLOAD_AS:"downloadAs",NOTIFICATION_MESSAGE:"notificationMessage",QUERY:"query",COUNT_QUERY:"countQuery",COUNT_QUERY_RESPONSE:"countQueryResponse",REQUEST_ABORTED:"requestAborted",QUERY_EXECUTED:"queryExecuted",SAVE_QUERY_OPENED:"saveQueryOpened"}},168:function(e,r,n){"use strict";n.r(r),n.d(r,"RouteConstants",(function(){return t}));var t={savedQueryName:"savedQueryName",savedQueryOwner:"owner",query:"query",name:"name",owner:"owner"}},169:function(e,r,n){"use strict";function t(e){return(t="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,r){for(var n=0;n<r.length;n++){var t=r[n];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(e,i(t.key),t)}}function u(e,r,n){return r&&o(e.prototype,r),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function i(e){var r=function(e,r){if("object"!=t(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,r||"default");if("object"!=t(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(e)}(e,"string");return"symbol"==t(r)?r:r+""}function a(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}n.r(r),n.d(r,"TabQueryModel",(function(){return d}));var d=u((function e(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],u=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];a(this,e),this.queryName=r,this.query=n,this.owner=t,this.isPublic=o,this.readonly=u}))},170:function(e,r,n){"use strict";n.r(r),n.d(r,"QueryType",(function(){return t}));var t={SELECT:"SELECT",CONSTRUCT:"CONSTRUCT",ASK:"ASK",DESCRIBE:"DESCRIBE",INSERT:"INSERT",DELETE:"DELETE",LOAD:"LOAD",CLEAR:"CLEAR",CREATE:"CREATE",DROP:"DROP",COPY:"COPY",MOVE:"MOVE",ADD:"ADD"}},171:function(e,r,n){"use strict";n.r(r),n.d(r,"VIEW_SPARQL_EDITOR",(function(){return t}));var t="graphdb-workbench-sparql-editor"},199:function(e,r,n){"use strict";n.r(r),n.d(r,"buildQueryModel",(function(){return o})),n.d(r,"savedQueriesResponseMapper",(function(){return u})),n.d(r,"savedQueryResponseMapper",(function(){return i})),n.d(r,"queryPayloadFromEvent",(function(){return a}));var t=n(169),o=function(e,r,n,o){var u=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];return new t.TabQueryModel(r,e,n,o,u)},u=function(e,r){if(e&&e.data){if(e.data.map)return e.data.map((function(e){var n=r!==e.owner;return o(e.body,e.name,e.owner,e.shared,n)}));var n=r!==e.data.owner;return[o(e.data.body,e.data.name,e.data.owner,e.data.shared,n)]}return[]},i=function(e,r){var n=u(e,r);return n.length?n[0]:null},a=function(e){return{name:e.detail.queryName,body:e.detail.query,shared:e.detail.isPublic}}}}]);
1
+ (window.webpackJsonp=window.webpackJsonp||[]).push([[52,129,287,295,296,327,329,390],{156:function(e,r,n){"use strict";n.r(r),n.d(r,"EventDataType",(function(){return t}));var t={DOWNLOAD_AS:"downloadAs",NOTIFICATION_MESSAGE:"notificationMessage",QUERY:"query",COUNT_QUERY:"countQuery",COUNT_QUERY_RESPONSE:"countQueryResponse",REQUEST_ABORTED:"requestAborted",QUERY_EXECUTED:"queryExecuted",SAVE_QUERY_OPENED:"saveQueryOpened"}},168:function(e,r,n){"use strict";n.r(r),n.d(r,"RouteConstants",(function(){return t}));var t={savedQueryName:"savedQueryName",savedQueryOwner:"owner",query:"query",name:"name",owner:"owner"}},169:function(e,r,n){"use strict";function t(e){return(t="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,r){for(var n=0;n<r.length;n++){var t=r[n];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(e,i(t.key),t)}}function u(e,r,n){return r&&o(e.prototype,r),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function i(e){var r=function(e,r){if("object"!=t(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,r||"default");if("object"!=t(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(e)}(e,"string");return"symbol"==t(r)?r:r+""}function a(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}n.r(r),n.d(r,"TabQueryModel",(function(){return d}));var d=u((function e(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],u=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];a(this,e),this.queryName=r,this.query=n,this.owner=t,this.isPublic=o,this.readonly=u}))},170:function(e,r,n){"use strict";n.r(r),n.d(r,"QueryType",(function(){return t}));var t={SELECT:"SELECT",CONSTRUCT:"CONSTRUCT",ASK:"ASK",DESCRIBE:"DESCRIBE",INSERT:"INSERT",DELETE:"DELETE",LOAD:"LOAD",CLEAR:"CLEAR",CREATE:"CREATE",DROP:"DROP",COPY:"COPY",MOVE:"MOVE",ADD:"ADD"}},171:function(e,r,n){"use strict";n.r(r),n.d(r,"VIEW_SPARQL_EDITOR",(function(){return t}));var t="graphdb-workbench-sparql-editor"},199:function(e,r,n){"use strict";n.r(r),n.d(r,"buildQueryModel",(function(){return o})),n.d(r,"savedQueriesResponseMapper",(function(){return u})),n.d(r,"savedQueryResponseMapper",(function(){return i})),n.d(r,"queryPayloadFromEvent",(function(){return a}));var t=n(169),o=function(e,r,n,o){var u=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];return new t.TabQueryModel(r,e,n,o,u)},u=function(e,r){if(e&&e.data){if(e.data.map)return e.data.map((function(e){var n=r!==e.owner;return o(e.body,e.name,e.owner,e.shared,n)}));var n=r!==e.data.owner;return[o(e.data.body,e.data.name,e.data.owner,e.data.shared,n)]}return[]},i=function(e,r){var n=u(e,r);return n.length?n[0]:null},a=function(e){return{name:e.detail.queryName,body:e.detail.query,shared:e.detail.isPublic}}}}]);
@@ -1 +1 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([[54,297,305,324,325,388],{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"}},115:function(e,t,r){"use strict";r.r(t),r.d(t,"YasqeMode",(function(){return n}));var n={WRITE:"WRITE",READ:"READ",PROTECTED:"PROTECTED"}},118:function(e,t){function r(e,t){return{showToastMessageWithDelay:function(r){return new Promise((function(n){e.success(t.instant(r)),setTimeout(n,300)}))}}}angular.module("graphdb.framework.utils.notifications",[]).factory("Notifications",r),r.$inject=["toastr","$translate"]},236: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+""}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t,r){return t=f(t),function(e,t){if(t&&("object"==n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,c()?Reflect.construct(t,r||[],f(e).constructor):t.apply(e,r))}function u(e){var t="function"==typeof Map?new Map:void 0;return(u=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return s(e,arguments,f(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),p(r,e)})(e)}function s(e,t,r){if(c())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,t);var o=new(e.bind.apply(e,n));return r&&p(o,r.prototype),o}function c(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(c=function(){return!!e})()}function p(e,t){return(p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}r.r(t),r.d(t,"SparqlTemplateError",(function(){return m}));var m=function(e){function t(){return a(this,t),l(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&p(e,t)}(t,e),r=t,n&&o(r.prototype,n),i&&o(r,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,i}(u(Error))},237: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+""}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}r.r(t),r.d(t,"DEFAULT_SPARQL_QUERY",(function(){return u})),r.d(t,"SparqlTemplateInfo",(function(){return s}));var u="PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>\nPREFIX ex: <http://example.com#>\nDELETE {\n ?subject ex:myPredicate ?oldValue .\n} INSERT {\n ?subject ex:myPredicate ?newValue .\n} WHERE {\n ?id rdf:type ex:MyType .\n ?subject ex:isRelatedTo ?id .\n}\n",s=i((function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u,r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;l(this,e),this.query=t,this.templateID=n,this.isNewTemplate=r,this.templateExist=!1,this.isValidTemplateId=!0,this.isValidQuery=!0,this.isValidQueryMode=!0}))},370:function(e,t,r){"use strict";r.r(t);r(10),r(53),r(55),r(118),r(56),r(30);var n=r(1),o=r(237),i=r(236),a=r(115),l=r(104),u=r(27);function s(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=[],u=!0,s=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);u=!0);}catch(e){s=!0,o=e}finally{try{if(!u&&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 c(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)?c(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 c(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 p(e,t,r,n,o,i,a){e.pluginName="sparql-template",e.setPluginIsActive=function(t){e.pluginIsActive=t},e.getSparqlTemplates=function(){i.isLicenseValid()&&t.getActiveRepository()&&!t.isActiveRepoOntopType()&&!t.isActiveRepoFedXType()?r.getSparqlTemplates(t.getActiveRepository()).success((function(t){e.sparqlTemplateIds=t})).error((function(e){var t=getError(e);n.error(t,a.instant("sparql.template.get.templates.error"))})):e.sparqlTemplateIds=[]},e.$watch((function(){return t.getActiveRepository()}),(function(){e.getSparqlTemplates()})),e.deleteTemplate=function(i){o.openSimpleModal({title:a.instant("common.warning"),message:a.instant("sparql.template.delete.template.warning",{templateID:i}),warning:!0}).result.then((function(){r.deleteSparqlTemplate(i,t.getActiveRepository()).success((function(){n.success(i,a.instant("sparql.template.delete.template.success")),e.getSparqlTemplates()})).error((function(e){n.error(getError(e),a.instant("sparql.template.delete.template.failure",{templateID:i}))}))}))}}function f(e,t,r,c,p,f,m,d,y,v,g,h,b,T,w,q){e.initialQuery=o.DEFAULT_SPARQL_QUERY,e.sparqlTemplateInfo=new o.SparqlTemplateInfo(e.initialQuery),e.title="",e.saveOrUpdateExecuted=!1,e.isDirty=!1,e.language=q.getLanguage(),e.canEditActiveRepo=!1;var S=!0;e.saveTemplate=function(){e.saveOrUpdateExecuted=!0,P()||k();var t=e.sparqlTemplateInfo.isNewTemplate?I:O;Q(e.sparqlTemplateInfo).then($).then(D).then(x).then(t).then(M).catch((function(e){e instanceof i.SparqlTemplateError||console.log(e)}))},e.isTemplateIdValid=function(e){return g.isValidIri(e,e.toString())},e.markDirty=function(){e.isDirty=!0},e.markPristine=function(){e.isDirty=!1};var E=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.DEFAULT_SPARQL_QUERY;e.sparqlTemplateInfo.query=r,e.sparqlTemplateInfo.templateID=V(),e.sparqlTemplateInfo.isNewTemplate=!e.sparqlTemplateInfo.templateID,_(),e.yasguiConfig={showEditorTabs:!1,showToolbar:!1,showResultTabs:!1,showYasqeActionButtons:!1,showYasqeResizer:!1,yasqeActionButtons:u.DISABLE_YASQE_BUTTONS_CONFIGURATION,showQueryButton:!1,initialQuery:e.sparqlTemplateInfo.query,componentId:"sparql-template",prefixes:t,render:l.RenderingMode.YASQE,maxPersistentResponseSize:0,yasqeMode:e.canEditActiveRepo?a.YasqeMode.WRITE:a.YasqeMode.PROTECTED}},I=function(e){return R(e).then(A).then(j)},R=function(t){return y.getSparqlTemplates(p.getActiveRepository()).then((function(r){return t.templateExist=r.data.find((function(t){return t===e.sparqlTemplateInfo.templateID})),t})).catch((function(e){var t=getError(e);return c.error(t,b.instant("sparql.template.get.templates.error")),Promise.reject(new i.SparqlTemplateError("Failed to retrieve sparql templates."))}))},D=function(e){return U().isQueryValid().then((function(t){return e.isValidQuery=t,e.isValidQuery?e:Promise.reject(new i.SparqlTemplateError("Invalid query."))}))},P=function(){return e.sparqlTemplateInfo.isNewTemplate||e.isDirty},A=function(e){return new Promise((function(t,r){if(e.templateExist){var o=Object(n.decodeHTML)(b.instant("sparql.template.existing.template.error",{templateID:e.templateID})),a=b.instant("common.confirm.save");N(a,o,(function(){return t(e)}),(function(){return r(new i.SparqlTemplateError("Save not confirmed."))}))}else t(e)}))};function j(t){return y.createSparqlTemplate(t,p.getActiveRepository()).then((function(){return t.isNewTemplate=!1,e.markPristine(),c.success(t.templateID,b.instant("save.sparql.template.success.msg")),t})).catch((function(e){var r=getError(e);return c.error(r,b.instant("save.sparql.template.failure.msg",{templateID:t.templateID})),Promise.reject(new i.SparqlTemplateError("Failed to save the new template: ".concat(t.templateID)))}))}var O=function(t){return y.updateSparqlTemplate(t,p.getActiveRepository()).then((function(){return t.isNewTemplate=!1,e.markPristine(),c.success(e.sparqlTemplateInfo.templateID,b.instant("update.sparql.template.success.msg")),t})).catch((function(e){var r=getError(e);return c.error(r,b.instant("save.sparql.template.failure.msg",{templateID:t.templateID})),Promise.reject(new i.SparqlTemplateError("Failed to update the template: ".concat(t.templateID)))}))},$=function(e){return U().getQuery().then((function(t){return e.query=t,e}))},x=function(e){return U().getQueryMode().then((function(t){return e.isValidQueryMode="update"===t,e.isValidQueryMode?e:Promise.reject(new i.SparqlTemplateError("Query mode is not valid."))}))},Q=function(t){return new Promise((function(r,n){t.templateID?(t.isValidTemplateId=e.isTemplateIdValid(t.templateID),t.isValidTemplateId?r(t):n(new i.SparqlTemplateError("Template identifier is not valid."))):n(new i.SparqlTemplateError("A required template identifier is missing."))}))},M=function(){setTimeout((function(){k()}),1e3)},V=function(){var e=r.hash()||"";return(r.search().templateID||"")+(e?"#".concat(e):"")},_=function(){e.title=(e.sparqlTemplateInfo.templateID?b.instant("edit"):b.instant("common.create.btn"))+" "+b.instant("view.sparql.template.title")},k=function(){r.url("/sparql-templates")},C=function(t,r){e.queryIsRunning=t,e.loaderMessage=e.queryIsRunning?r:""},U=function(){return u.YasguiComponentDirectiveUtil.getOntotextYasguiElement("#query-editor")},N=function(e,t,r,n){h.openSimpleModal({title:e,message:t,warning:!0}).result.then((function(){angular.isFunction(r)&&r()}),(function(){angular.isFunction(n)&&n()}))},Y=function(){window.removeEventListener("beforeunload",F),L.forEach((function(e){return e()}))},F=function(t){e.isDirty&&(t.returnValue=!0)},L=[];L.push(e.$on("queryChanged",(function(t,r){r.dirty?e.markDirty():e.markPristine()}))),L.push(t.$on("$translateChangeSuccess",(function(){e.language=q.getLanguage(),_()}))),L.push(e.$on("$locationChangeStart",(function(t,n){if(e.isDirty){t.preventDefault();var o=b.instant("common.confirm"),i=b.instant("jdbc.warning.unsaved.changes");N(o,i,(function(){Y();var e=r.absUrl().length-r.url().length,t=n.substring(e);r.path(t)}))}else Y()}))),L.push(w.subscribe("repositoryWillChangeEvent",(function(t){return new Promise((function(r){if(e.sparqlTemplateInfo.isNewTemplate)r(t);else{var n=function(){e.isDirty=!1,k(),r(t)};if(e.isDirty){var o=b.instant("common.confirm"),i=b.instant("jdbc.warning.unsaved.changes");N(o,i,n,(function(){t.cancel=!0,r(t)}))}else n()}}))}))),L.push(e.$on("$destroy",Y)),window.addEventListener("beforeunload",F);var B=function(){var t="".concat(b.instant("common.refreshing.namespaces"),". ").concat(b.instant("common.extra.message"));C(!0,t),e.sparqlTemplateInfo.templateID=V();var r=p.getActiveRepository();e.sparqlTemplateInfo.templateID?Promise.all([p.getPrefixes(r),y.getSparqlTemplate(e.sparqlTemplateInfo.templateID,r)]).then((function(e){var t=s(e,2),r=t[0],n=t[1];return E(r,n.data)})).finally((function(){return C(!1)})):p.getPrefixes(r).then((function(e){return E(e)})).finally((function(){return C(!1)}))};L.push(e.$watch(e.getActiveRepositoryObject,(function(t){t&&(e.canEditActiveRepo=e.canWriteActiveRepo(),S?(B(),S=!1):k())})))}angular.module("graphdb.framework.sparql-template.controllers",["ui.bootstrap","graphdb.framework.core.services.repositories","graphdb.framework.rest.monitoring.service","toastr","graphdb.framework.utils.event-emitter-service"],["graphdb.framework.utils.notifications"]).controller("SparqlTemplatesCtrl",p).controller("SparqlTemplateCreateCtrl",f),p.$inject=["$scope","$repositories","SparqlTemplatesRestService","toastr","ModalService","$licenseService","$translate"],f.$inject=["$scope","$rootScope","$location","toastr","$repositories","$window","$timeout","$interval","SparqlTemplatesRestService","RDF4JRepositoriesRestService","UriUtils","ModalService","$translate","$q","EventEmitterService","$languageService"]}}]);
1
+ (window.webpackJsonp=window.webpackJsonp||[]).push([[54,297,305,324,325,388],{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"}},115:function(e,t,r){"use strict";r.r(t),r.d(t,"YasqeMode",(function(){return n}));var n={WRITE:"WRITE",READ:"READ",PROTECTED:"PROTECTED"}},118:function(e,t){function r(e,t){return{showToastMessageWithDelay:function(r){return new Promise((function(n){e.success(t.instant(r)),setTimeout(n,300)}))}}}angular.module("graphdb.framework.utils.notifications",[]).factory("Notifications",r),r.$inject=["toastr","$translate"]},236: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+""}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t,r){return t=f(t),function(e,t){if(t&&("object"==n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,c()?Reflect.construct(t,r||[],f(e).constructor):t.apply(e,r))}function u(e){var t="function"==typeof Map?new Map:void 0;return(u=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return s(e,arguments,f(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),p(r,e)})(e)}function s(e,t,r){if(c())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,t);var o=new(e.bind.apply(e,n));return r&&p(o,r.prototype),o}function c(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(c=function(){return!!e})()}function p(e,t){return(p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}r.r(t),r.d(t,"SparqlTemplateError",(function(){return m}));var m=function(e){function t(){return a(this,t),l(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&p(e,t)}(t,e),r=t,n&&o(r.prototype,n),i&&o(r,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,i}(u(Error))},237: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+""}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}r.r(t),r.d(t,"DEFAULT_SPARQL_QUERY",(function(){return u})),r.d(t,"SparqlTemplateInfo",(function(){return s}));var u="PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>\nPREFIX ex: <http://example.com#>\nDELETE {\n ?subject ex:myPredicate ?oldValue .\n} INSERT {\n ?subject ex:myPredicate ?newValue .\n} WHERE {\n ?id rdf:type ex:MyType .\n ?subject ex:isRelatedTo ?id .\n}\n",s=i((function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u,r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;l(this,e),this.query=t,this.templateID=n,this.isNewTemplate=r,this.templateExist=!1,this.isValidTemplateId=!0,this.isValidQuery=!0,this.isValidQueryMode=!0}))},370:function(e,t,r){"use strict";r.r(t);r(10),r(53),r(55),r(118),r(56),r(30);var n=r(1),o=r(237),i=r(236),a=r(115),l=r(104),u=r(27);function s(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=[],u=!0,s=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);u=!0);}catch(e){s=!0,o=e}finally{try{if(!u&&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 c(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)?c(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 c(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 p(e,t,r,n,o,i,a){e.pluginName="sparql-template",e.setPluginIsActive=function(t){e.pluginIsActive=t},e.getSparqlTemplates=function(){i.isLicenseValid()&&t.getActiveRepository()&&!t.isActiveRepoOntopType()&&!t.isActiveRepoFedXType()?r.getSparqlTemplates(t.getActiveRepository()).success((function(t){e.sparqlTemplateIds=t})).error((function(e){var t=getError(e);n.error(t,a.instant("sparql.template.get.templates.error"))})):e.sparqlTemplateIds=[]},e.$watch((function(){return t.getActiveRepository()}),(function(){e.getSparqlTemplates()})),e.deleteTemplate=function(i){o.openSimpleModal({title:a.instant("common.warning"),message:a.instant("sparql.template.delete.template.warning",{templateID:i}),warning:!0}).result.then((function(){r.deleteSparqlTemplate(i,t.getActiveRepository()).success((function(){n.success(i,a.instant("sparql.template.delete.template.success")),e.getSparqlTemplates()})).error((function(e){n.error(getError(e),a.instant("sparql.template.delete.template.failure",{templateID:i}))}))}))}}function f(e,t,r,c,p,f,m,d,y,v,g,h,b,T,w,q){e.initialQuery=o.DEFAULT_SPARQL_QUERY,e.sparqlTemplateInfo=new o.SparqlTemplateInfo(e.initialQuery),e.title="",e.saveOrUpdateExecuted=!1,e.isDirty=!1,e.language=q.getLanguage(),e.canEditActiveRepo=!1;var S=!0;e.saveTemplate=function(){e.saveOrUpdateExecuted=!0,A()||k();var t=e.sparqlTemplateInfo.isNewTemplate?I:O;Q(e.sparqlTemplateInfo).then($).then(D).then(x).then(t).then(M).catch((function(e){e instanceof i.SparqlTemplateError||console.log(e)}))},e.isTemplateIdValid=function(e){return g.isValidIri(e,e.toString())},e.markDirty=function(){e.isDirty=!0},e.markPristine=function(){e.isDirty=!1};var E=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.DEFAULT_SPARQL_QUERY;e.sparqlTemplateInfo.query=r,e.sparqlTemplateInfo.templateID=V(),e.sparqlTemplateInfo.isNewTemplate=!e.sparqlTemplateInfo.templateID,_(),e.yasguiConfig={showEditorTabs:!1,showToolbar:!1,showResultTabs:!1,showYasqeActionButtons:!1,showYasqeResizer:!1,yasqeActionButtons:u.DISABLE_YASQE_BUTTONS_CONFIGURATION,showQueryButton:!1,initialQuery:e.sparqlTemplateInfo.query,componentId:"sparql-template",prefixes:t,render:l.RenderingMode.YASQE,maxPersistentResponseSize:0,yasqeMode:e.canEditActiveRepo?a.YasqeMode.WRITE:a.YasqeMode.READ}},I=function(e){return R(e).then(P).then(j)},R=function(t){return y.getSparqlTemplates(p.getActiveRepository()).then((function(r){return t.templateExist=r.data.find((function(t){return t===e.sparqlTemplateInfo.templateID})),t})).catch((function(e){var t=getError(e);return c.error(t,b.instant("sparql.template.get.templates.error")),Promise.reject(new i.SparqlTemplateError("Failed to retrieve sparql templates."))}))},D=function(e){return C().isQueryValid().then((function(t){return e.isValidQuery=t,e.isValidQuery?e:Promise.reject(new i.SparqlTemplateError("Invalid query."))}))},A=function(){return e.sparqlTemplateInfo.isNewTemplate||e.isDirty},P=function(e){return new Promise((function(t,r){if(e.templateExist){var o=Object(n.decodeHTML)(b.instant("sparql.template.existing.template.error",{templateID:e.templateID})),a=b.instant("common.confirm.save");N(a,o,(function(){return t(e)}),(function(){return r(new i.SparqlTemplateError("Save not confirmed."))}))}else t(e)}))};function j(t){return y.createSparqlTemplate(t,p.getActiveRepository()).then((function(){return t.isNewTemplate=!1,e.markPristine(),c.success(t.templateID,b.instant("save.sparql.template.success.msg")),t})).catch((function(e){var r=getError(e);return c.error(r,b.instant("save.sparql.template.failure.msg",{templateID:t.templateID})),Promise.reject(new i.SparqlTemplateError("Failed to save the new template: ".concat(t.templateID)))}))}var O=function(t){return y.updateSparqlTemplate(t,p.getActiveRepository()).then((function(){return t.isNewTemplate=!1,e.markPristine(),c.success(e.sparqlTemplateInfo.templateID,b.instant("update.sparql.template.success.msg")),t})).catch((function(e){var r=getError(e);return c.error(r,b.instant("save.sparql.template.failure.msg",{templateID:t.templateID})),Promise.reject(new i.SparqlTemplateError("Failed to update the template: ".concat(t.templateID)))}))},$=function(e){return C().getQuery().then((function(t){return e.query=t,e}))},x=function(e){return C().getQueryMode().then((function(t){return e.isValidQueryMode="update"===t,e.isValidQueryMode?e:Promise.reject(new i.SparqlTemplateError("Query mode is not valid."))}))},Q=function(t){return new Promise((function(r,n){t.templateID?(t.isValidTemplateId=e.isTemplateIdValid(t.templateID),t.isValidTemplateId?r(t):n(new i.SparqlTemplateError("Template identifier is not valid."))):n(new i.SparqlTemplateError("A required template identifier is missing."))}))},M=function(){setTimeout((function(){k()}),1e3)},V=function(){var e=r.hash()||"";return(r.search().templateID||"")+(e?"#".concat(e):"")},_=function(){e.title=(e.sparqlTemplateInfo.templateID?b.instant("edit"):b.instant("common.create.btn"))+" "+b.instant("view.sparql.template.title")},k=function(){r.url("/sparql-templates")},U=function(t,r){e.queryIsRunning=t,e.loaderMessage=e.queryIsRunning?r:""},C=function(){return u.YasguiComponentDirectiveUtil.getOntotextYasguiElement("#query-editor")},N=function(e,t,r,n){h.openSimpleModal({title:e,message:t,warning:!0}).result.then((function(){angular.isFunction(r)&&r()}),(function(){angular.isFunction(n)&&n()}))},Y=function(){window.removeEventListener("beforeunload",F),L.forEach((function(e){return e()}))},F=function(t){e.isDirty&&(t.returnValue=!0)},L=[];L.push(e.$on("queryChanged",(function(t,r){r.dirty?e.markDirty():e.markPristine()}))),L.push(t.$on("$translateChangeSuccess",(function(){e.language=q.getLanguage(),_()}))),L.push(e.$on("$locationChangeStart",(function(t,n){if(e.isDirty){t.preventDefault();var o=b.instant("common.confirm"),i=b.instant("jdbc.warning.unsaved.changes");N(o,i,(function(){Y();var e=r.absUrl().length-r.url().length,t=n.substring(e);r.path(t)}))}else Y()}))),L.push(w.subscribe("repositoryWillChangeEvent",(function(t){return new Promise((function(r){if(e.sparqlTemplateInfo.isNewTemplate)r(t);else{var n=function(){e.isDirty=!1,k(),r(t)};if(e.isDirty){var o=b.instant("common.confirm"),i=b.instant("jdbc.warning.unsaved.changes");N(o,i,n,(function(){t.cancel=!0,r(t)}))}else n()}}))}))),L.push(e.$on("$destroy",Y)),window.addEventListener("beforeunload",F);var B=function(){var t="".concat(b.instant("common.refreshing.namespaces"),". ").concat(b.instant("common.extra.message"));U(!0,t),e.sparqlTemplateInfo.templateID=V();var r=p.getActiveRepository();e.sparqlTemplateInfo.templateID?Promise.all([p.getPrefixes(r),y.getSparqlTemplate(e.sparqlTemplateInfo.templateID,r)]).then((function(e){var t=s(e,2),r=t[0],n=t[1];return E(r,n.data)})).finally((function(){return U(!1)})):p.getPrefixes(r).then((function(e){return E(e)})).finally((function(){return U(!1)}))};L.push(e.$watch(e.getActiveRepositoryObject,(function(t){t&&(e.canEditActiveRepo=e.canWriteActiveRepo(),S?(B(),S=!1):k())})))}angular.module("graphdb.framework.sparql-template.controllers",["ui.bootstrap","graphdb.framework.core.services.repositories","graphdb.framework.rest.monitoring.service","toastr","graphdb.framework.utils.event-emitter-service"],["graphdb.framework.utils.notifications"]).controller("SparqlTemplatesCtrl",p).controller("SparqlTemplateCreateCtrl",f),p.$inject=["$scope","$repositories","SparqlTemplatesRestService","toastr","ModalService","$licenseService","$translate"],f.$inject=["$scope","$rootScope","$location","toastr","$repositories","$window","$timeout","$interval","SparqlTemplatesRestService","RDF4JRepositoriesRestService","UriUtils","ModalService","$translate","$q","EventEmitterService","$languageService"]}}]);
@@ -1 +1 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([[55,95,297,318,319,320],{104:function(e,t,i){"use strict";i.r(t),i.d(t,"RenderingMode",(function(){return n}));var n={YASGUI:"mode-yasgui",YASQE:"mode-yasqe",YASR:"mode-yasr"}},106:function(e,t,i){"use strict";i.r(t),i.d(t,"SimilarityIndexType",(function(){return n}));var n={TEXT:"text",TEXT_LITERAL:"textLiteral",PREDICATION:"predication",isTextType:function(e){return n.TEXT===e},isTextLiteralType:function(e){return n.TEXT_LITERAL===e},isPredicationType:function(e){return n.PREDICATION===e}}},107:function(e,t,i){"use strict";i.r(t),i.d(t,"SimilarityIndexStatus",(function(){return n}));var n={CREATING:"CREATING",BUILDING:"BUILDING",BUILT:"BUILT",REBUILDING:"REBUILDING",OUTDATED:"OUTDATED",INTERRUPTED:"INTERRUPTED",OBSOLETE:"OBSOLETE",FAILED:"FAILED",isCreatingStatus:function(e){return n.CREATING===e},isBuildingStatus:function(e){return n.BUILDING===e},isBuiltStatus:function(e){return n.BUILT===e},isRebuildingStatus:function(e){return n.REBUILDING===e},isOutdatedStatus:function(e){return n.OUTDATED===e},isInterruptedStatus:function(e){return n.INTERRUPTED===e},isObsoleteStatus:function(e){return n.OBSOLETE===e},isFailedStatus:function(e){return n.FAILED===e}}},110:function(e,t,i){"use strict";i.r(t),i.d(t,"SimilarityIndex",(function(){return y}));var n=i(106),r=i(107);function u(e){return(u="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 i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,s(n.key),n)}}function s(e){var t=function(e,t){if("object"!=u(e)||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=u(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==u(t)?t:t+""}var y=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.analyzer="",this.infer=!0,this.options="",this.sameAs=!0,this.searchQuery="",this.selectQuery="",this.stopList=void 0,this.name="",this.type=n.SimilarityIndexType.TEXT,this.status=void 0,this.analogicalQuery=void 0,this.inputIndex=void 0,this.isLiteralIndex=""},(t=[{key:"isTextType",value:function(){return n.SimilarityIndexType.isTextType(this.type)}},{key:"isTextLiteralType",value:function(){return n.SimilarityIndexType.isTextLiteralType(this.type)}},{key:"isPredicationType",value:function(){return n.SimilarityIndexType.isPredicationType(this.type)}},{key:"isCreatingStatus",value:function(){return r.SimilarityIndexStatus.isCreatingStatus(this.status)}},{key:"isBuildingStatus",value:function(){return r.SimilarityIndexStatus.isBuildingStatus(this.status)}},{key:"isBuiltStatus",value:function(){return r.SimilarityIndexStatus.isBuiltStatus(this.status)}},{key:"isRebuildingStatus",value:function(){return r.SimilarityIndexStatus.isRebuildingStatus(this.status)}},{key:"isOutdatedStatus",value:function(){return r.SimilarityIndexStatus.isOutdatedStatus(this.status)}},{key:"isInterruptedStatus",value:function(){return r.SimilarityIndexStatus.isInterruptedStatus(this.status)}},{key:"isObsoleteStatus",value:function(){return r.SimilarityIndexStatus.isObsoleteStatus(this.status)}},{key:"isFailedStatus",value:function(){return r.SimilarityIndexStatus.isFailedStatus(this.status)}}])&&a(e.prototype,t),i&&a(e,i),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,i}()},189:function(e,t,i){"use strict";i.r(t),i.d(t,"SimilarityQueryType",(function(){return n}));var n={DATA:"DATA",SEARCH:"SEARCH",ANALOGICAL:"ANALOGICAL"}},355:function(e,t,i){"use strict";i.r(t),i.d(t,"SimilarityIndexInfo",(function(){return o}));var n=i(110),r=i(189),u=i(104);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)}function s(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,y(n.key),n)}}function y(e){var t=function(e,t){if("object"!=a(e)||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==a(t)?t:t+""}var l=new RegExp("^[a-zA-Z0-9-_]+$"),o=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.similarityIndex=new n.SimilarityIndex,this.isNameExist=!1,this.invalidSelectQueryType=!1,this.invalidSelectQuery=!1,this.invalidSearchQueryType=!1,this.invalidSearchQuery=!1,this.invalidAnalogicalQueryType=!1,this.invalidAnalogicalQuery=!1,this.selectedQueryType=r.SimilarityQueryType.DATA,this.selectedYasguiRenderMode=u.RenderingMode.YASQE},(t=[{key:"setQuery",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,i=t||this.selectedQueryType;r.SimilarityQueryType.DATA!==i?r.SimilarityQueryType.SEARCH!==i?r.SimilarityQueryType.ANALOGICAL===i&&(this.similarityIndex.analogicalQuery=e):this.similarityIndex.searchQuery=e:this.similarityIndex.selectQuery=e}},{key:"getQuery",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,t=e||this.selectedQueryType;switch(t){case r.SimilarityQueryType.DATA:return this.similarityIndex.selectQuery;case r.SimilarityQueryType.SEARCH:return this.similarityIndex.searchQuery;case r.SimilarityQueryType.ANALOGICAL:return this.similarityIndex.analogicalQuery}}},{key:"markInvalidQuery",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=e||this.selectedQueryType;r.SimilarityQueryType.DATA!==i?r.SimilarityQueryType.SEARCH!==i?r.SimilarityQueryType.ANALOGICAL===i&&(this.invalidAnalogicalQuery=t):this.invalidSearchQuery=t:this.invalidSelectQuery=t}},{key:"markInvalidQueryType",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=e||this.selectedQueryType;r.SimilarityQueryType.DATA!==i?r.SimilarityQueryType.SEARCH!==i?r.SimilarityQueryType.ANALOGICAL===i&&(this.invalidAnalogicalQueryType=t):this.invalidSearchQueryType=t:this.invalidSelectQueryType=t}},{key:"setSelectedQueryType",value:function(e){this.selectedQueryType=e}},{key:"getSelectedQueryType",value:function(){return this.selectedQueryType}},{key:"setSelectedYasguiRenderMode",value:function(e){this.selectedYasguiRenderMode=e}},{key:"getSelectedYasguiRenderMode",value:function(){return this.selectedYasguiRenderMode}},{key:"isDataQueryTypeSelected",value:function(){return r.SimilarityQueryType.DATA===this.selectedQueryType}},{key:"isSearchQueryTypeSelected",value:function(){return r.SimilarityQueryType.SEARCH===this.selectedQueryType}},{key:"isAnalogicalQueryTypeSelected",value:function(){return r.SimilarityQueryType.ANALOGICAL===this.selectedQueryType}},{key:"isTextType",value:function(){return this.similarityIndex.isTextType()}},{key:"isPredicationType",value:function(){return this.similarityIndex.isPredicationType()}},{key:"isTextLiteralType",value:function(){return this.similarityIndex.isTextLiteralType()}},{key:"hasName",value:function(){return!!this.similarityIndex.name}},{key:"isNameValid",value:function(){return l.test(this.similarityIndex.name)}},{key:"hasSelectQuery",value:function(){return!!this.similarityIndex.selectQuery}},{key:"hasSearchQuery",value:function(){return!!this.similarityIndex.searchQuery}},{key:"hasAnalogicalQuery",value:function(){return!!this.similarityIndex.analogicalQuery}},{key:"isYasqeRenderMode",value:function(){return u.RenderingMode.YASQE===this.getSelectedYasguiRenderMode()}},{key:"isYasrRenderMode",value:function(){return u.RenderingMode.YASR===this.getSelectedYasguiRenderMode()}},{key:"getName",value:function(){return this.similarityIndex.name}},{key:"setName",value:function(e){this.similarityIndex.name=e}},{key:"setInputIndex",value:function(e){this.similarityIndex.inputIndex=e}},{key:"getInputIndex",value:function(){return this.similarityIndex.inputIndex}},{key:"setLiteralIndex",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.similarityIndex.isLiteralIndex=e}},{key:"getSimilarityIndex",value:function(){return this.similarityIndex}},{key:"setStopList",value:function(e){this.similarityIndex.stopList=e}},{key:"getStopList",value:function(){return this.similarityIndex.stopList}},{key:"setAnalyzer",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"org.apache.lucene.analysis.en.EnglishAnalyzer";this.similarityIndex.analyzer=e}},{key:"getAnalyzer",value:function(){return this.similarityIndex.analyzer}},{key:"setType",value:function(e){this.similarityIndex.type=e}},{key:"getType",value:function(){return this.similarityIndex.type}},{key:"setOptions",value:function(e){this.similarityIndex.options=e}},{key:"getOptions",value:function(){return this.similarityIndex.options}},{key:"getInference",value:function(){return this.similarityIndex.infer}},{key:"getSameAs",value:function(){return this.similarityIndex.sameAs}}])&&s(e.prototype,t),i&&s(e,i),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,i}()}}]);
1
+ (window.webpackJsonp=window.webpackJsonp||[]).push([[55,97,297,318,319,320],{104:function(e,t,i){"use strict";i.r(t),i.d(t,"RenderingMode",(function(){return n}));var n={YASGUI:"mode-yasgui",YASQE:"mode-yasqe",YASR:"mode-yasr"}},106:function(e,t,i){"use strict";i.r(t),i.d(t,"SimilarityIndexType",(function(){return n}));var n={TEXT:"text",TEXT_LITERAL:"textLiteral",PREDICATION:"predication",isTextType:function(e){return n.TEXT===e},isTextLiteralType:function(e){return n.TEXT_LITERAL===e},isPredicationType:function(e){return n.PREDICATION===e}}},107:function(e,t,i){"use strict";i.r(t),i.d(t,"SimilarityIndexStatus",(function(){return n}));var n={CREATING:"CREATING",BUILDING:"BUILDING",BUILT:"BUILT",REBUILDING:"REBUILDING",OUTDATED:"OUTDATED",INTERRUPTED:"INTERRUPTED",OBSOLETE:"OBSOLETE",FAILED:"FAILED",isCreatingStatus:function(e){return n.CREATING===e},isBuildingStatus:function(e){return n.BUILDING===e},isBuiltStatus:function(e){return n.BUILT===e},isRebuildingStatus:function(e){return n.REBUILDING===e},isOutdatedStatus:function(e){return n.OUTDATED===e},isInterruptedStatus:function(e){return n.INTERRUPTED===e},isObsoleteStatus:function(e){return n.OBSOLETE===e},isFailedStatus:function(e){return n.FAILED===e}}},110:function(e,t,i){"use strict";i.r(t),i.d(t,"SimilarityIndex",(function(){return y}));var n=i(106),r=i(107);function u(e){return(u="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 i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,s(n.key),n)}}function s(e){var t=function(e,t){if("object"!=u(e)||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=u(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==u(t)?t:t+""}var y=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.analyzer="",this.infer=!0,this.options="",this.sameAs=!0,this.searchQuery="",this.selectQuery="",this.stopList=void 0,this.name="",this.type=n.SimilarityIndexType.TEXT,this.status=void 0,this.analogicalQuery=void 0,this.inputIndex=void 0,this.isLiteralIndex=""},(t=[{key:"isTextType",value:function(){return n.SimilarityIndexType.isTextType(this.type)}},{key:"isTextLiteralType",value:function(){return n.SimilarityIndexType.isTextLiteralType(this.type)}},{key:"isPredicationType",value:function(){return n.SimilarityIndexType.isPredicationType(this.type)}},{key:"isCreatingStatus",value:function(){return r.SimilarityIndexStatus.isCreatingStatus(this.status)}},{key:"isBuildingStatus",value:function(){return r.SimilarityIndexStatus.isBuildingStatus(this.status)}},{key:"isBuiltStatus",value:function(){return r.SimilarityIndexStatus.isBuiltStatus(this.status)}},{key:"isRebuildingStatus",value:function(){return r.SimilarityIndexStatus.isRebuildingStatus(this.status)}},{key:"isOutdatedStatus",value:function(){return r.SimilarityIndexStatus.isOutdatedStatus(this.status)}},{key:"isInterruptedStatus",value:function(){return r.SimilarityIndexStatus.isInterruptedStatus(this.status)}},{key:"isObsoleteStatus",value:function(){return r.SimilarityIndexStatus.isObsoleteStatus(this.status)}},{key:"isFailedStatus",value:function(){return r.SimilarityIndexStatus.isFailedStatus(this.status)}}])&&a(e.prototype,t),i&&a(e,i),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,i}()},189:function(e,t,i){"use strict";i.r(t),i.d(t,"SimilarityQueryType",(function(){return n}));var n={DATA:"DATA",SEARCH:"SEARCH",ANALOGICAL:"ANALOGICAL"}},355:function(e,t,i){"use strict";i.r(t),i.d(t,"SimilarityIndexInfo",(function(){return o}));var n=i(110),r=i(189),u=i(104);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)}function s(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,y(n.key),n)}}function y(e){var t=function(e,t){if("object"!=a(e)||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==a(t)?t:t+""}var l=new RegExp("^[a-zA-Z0-9-_]+$"),o=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.similarityIndex=new n.SimilarityIndex,this.isNameExist=!1,this.invalidSelectQueryType=!1,this.invalidSelectQuery=!1,this.invalidSearchQueryType=!1,this.invalidSearchQuery=!1,this.invalidAnalogicalQueryType=!1,this.invalidAnalogicalQuery=!1,this.selectedQueryType=r.SimilarityQueryType.DATA,this.selectedYasguiRenderMode=u.RenderingMode.YASQE},(t=[{key:"setQuery",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,i=t||this.selectedQueryType;r.SimilarityQueryType.DATA!==i?r.SimilarityQueryType.SEARCH!==i?r.SimilarityQueryType.ANALOGICAL===i&&(this.similarityIndex.analogicalQuery=e):this.similarityIndex.searchQuery=e:this.similarityIndex.selectQuery=e}},{key:"getQuery",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,t=e||this.selectedQueryType;switch(t){case r.SimilarityQueryType.DATA:return this.similarityIndex.selectQuery;case r.SimilarityQueryType.SEARCH:return this.similarityIndex.searchQuery;case r.SimilarityQueryType.ANALOGICAL:return this.similarityIndex.analogicalQuery}}},{key:"markInvalidQuery",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=e||this.selectedQueryType;r.SimilarityQueryType.DATA!==i?r.SimilarityQueryType.SEARCH!==i?r.SimilarityQueryType.ANALOGICAL===i&&(this.invalidAnalogicalQuery=t):this.invalidSearchQuery=t:this.invalidSelectQuery=t}},{key:"markInvalidQueryType",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=e||this.selectedQueryType;r.SimilarityQueryType.DATA!==i?r.SimilarityQueryType.SEARCH!==i?r.SimilarityQueryType.ANALOGICAL===i&&(this.invalidAnalogicalQueryType=t):this.invalidSearchQueryType=t:this.invalidSelectQueryType=t}},{key:"setSelectedQueryType",value:function(e){this.selectedQueryType=e}},{key:"getSelectedQueryType",value:function(){return this.selectedQueryType}},{key:"setSelectedYasguiRenderMode",value:function(e){this.selectedYasguiRenderMode=e}},{key:"getSelectedYasguiRenderMode",value:function(){return this.selectedYasguiRenderMode}},{key:"isDataQueryTypeSelected",value:function(){return r.SimilarityQueryType.DATA===this.selectedQueryType}},{key:"isSearchQueryTypeSelected",value:function(){return r.SimilarityQueryType.SEARCH===this.selectedQueryType}},{key:"isAnalogicalQueryTypeSelected",value:function(){return r.SimilarityQueryType.ANALOGICAL===this.selectedQueryType}},{key:"isTextType",value:function(){return this.similarityIndex.isTextType()}},{key:"isPredicationType",value:function(){return this.similarityIndex.isPredicationType()}},{key:"isTextLiteralType",value:function(){return this.similarityIndex.isTextLiteralType()}},{key:"hasName",value:function(){return!!this.similarityIndex.name}},{key:"isNameValid",value:function(){return l.test(this.similarityIndex.name)}},{key:"hasSelectQuery",value:function(){return!!this.similarityIndex.selectQuery}},{key:"hasSearchQuery",value:function(){return!!this.similarityIndex.searchQuery}},{key:"hasAnalogicalQuery",value:function(){return!!this.similarityIndex.analogicalQuery}},{key:"isYasqeRenderMode",value:function(){return u.RenderingMode.YASQE===this.getSelectedYasguiRenderMode()}},{key:"isYasrRenderMode",value:function(){return u.RenderingMode.YASR===this.getSelectedYasguiRenderMode()}},{key:"getName",value:function(){return this.similarityIndex.name}},{key:"setName",value:function(e){this.similarityIndex.name=e}},{key:"setInputIndex",value:function(e){this.similarityIndex.inputIndex=e}},{key:"getInputIndex",value:function(){return this.similarityIndex.inputIndex}},{key:"setLiteralIndex",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.similarityIndex.isLiteralIndex=e}},{key:"getSimilarityIndex",value:function(){return this.similarityIndex}},{key:"setStopList",value:function(e){this.similarityIndex.stopList=e}},{key:"getStopList",value:function(){return this.similarityIndex.stopList}},{key:"setAnalyzer",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"org.apache.lucene.analysis.en.EnglishAnalyzer";this.similarityIndex.analyzer=e}},{key:"getAnalyzer",value:function(){return this.similarityIndex.analyzer}},{key:"setType",value:function(e){this.similarityIndex.type=e}},{key:"getType",value:function(){return this.similarityIndex.type}},{key:"setOptions",value:function(e){this.similarityIndex.options=e}},{key:"getOptions",value:function(){return this.similarityIndex.options}},{key:"getInference",value:function(){return this.similarityIndex.infer}},{key:"getSameAs",value:function(){return this.similarityIndex.sameAs}}])&&s(e.prototype,t),i&&s(e,i),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,i}()}}]);
@@ -1 +1 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([[56,127,321,322,363],{123:function(e,t){angular.module("graphdb.framework.rest.similarity.service",[]).factory("SimilarityRestService",i),i.$inject=["$http","$repositories"];function i(e){return{getIndexes:function(t,i){if(t)return e.get("rest/similarity",{headers:{"X-GraphDB-Repository":t,"X-GraphDB-Repository-Location":i}});return e.get("rest/similarity")},getSearchQueries:function(){return e.get("".concat("rest/similarity","/config"))},rebuildIndex:function(e){return t("PUT",e.name,e.options,e.selectQuery,e.searchQuery,e.analogicalQuery,e.stopList,e.infer,e.sameAs,e.type)},deleteIndex:function(t){return e.delete("".concat("rest/similarity","?name=").concat(t.name))},createIndex:t,getSamples:function(){return e.get("".concat("rest/similarity","/samples"))},getQuery:function(t){return e.get("rest/similarity/query",{params:{name:t.indexName,options:t.indexOptions,stopList:t.indexStopList,selectQuery:t.query,infer:t.queryInference,sameAs:t.querySameAs,type:t.viewType,analyzer:t.indexAnalyzer}})},saveSearchQuery:function(t){return e({method:"put",url:"rest/similarity/search-query",data:t})}};function t(t,i,r,a,n,c,s,o,l,u,y){return e({method:t,url:"".concat("rest/similarity"),noCancelOnRouteChange:!0,data:{name:i,options:r,selectQuery:a,stopList:s,infer:o,sameAs:l,type:u,analyzer:y,searchQuery:n,analogicalQuery:c}})}}},152:function(e,t,i){"use strict";i.r(t),i.d(t,"SimilaritySearchType",(function(){return r}));var r={SEARCH_TERM:"searchTerm",SEARCH_ANALOGICAL:"searchAnalogical",SEARCH_ENTITY:"searchEntity",SEARCH_ENTITY_PREDICATE:"searchEntityPredicate",SEARCH_DOCUMENT:"searchDocumentID",isSearchTermType:function(e){return r.SEARCH_TERM===e},isSearchAnalogicalType:function(e){return r.SEARCH_ANALOGICAL===e},isSearchEntityType:function(e){return r.SEARCH_ENTITY===e},isSearchEntityPredicateType:function(e){return r.SEARCH_ENTITY_PREDICATE===e},isSearchDocumentType:function(e){return r.SEARCH_DOCUMENT===e}}},234:function(e,t,i){"use strict";i.r(t),i.d(t,"SimilarityResultType",(function(){return r}));var r={TERM_RESULT:"termResult",DOCUMENT_RESULT:"documentResult",ENTITY_RESULT:"entityResult",isResultDocumentType:function(e){return r.DOCUMENT_RESULT===e},isResultTermType:function(e){return r.TERM_RESULT===e}}},235:function(e,t,i){"use strict";i.r(t),i.d(t,"SimilaritySearch",(function(){return s}));var r=i(152);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)}function n(e,t){for(var i=0;i<t.length;i++){var r=t[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,c(r.key),r)}}function c(e){var t=function(e,t){if("object"!=a(e)||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var r=i.call(e,t||"default");if("object"!=a(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==a(t)?t:t+""}var s=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.type=r.SimilaritySearchType.SEARCH_TERM,this.predicate="",this.termOrSubject=""},(t=[{key:"isSearchAnalogicalType",value:function(){return r.SimilaritySearchType.isSearchAnalogicalType(this.type)}},{key:"isSearchTermType",value:function(){return r.SimilaritySearchType.isSearchTermType(this.type)}},{key:"isSearchEntityType",value:function(){return r.SimilaritySearchType.isSearchEntityType(this.type)}},{key:"isSearchEntityPredicateType",value:function(){return r.SimilaritySearchType.isSearchEntityPredicateType(this.type)}},{key:"isSearchDocumentType",value:function(){return r.SimilaritySearchType.isSearchDocumentType(this.type)}}])&&n(e.prototype,t),i&&n(e,i),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,i}()},369:function(e,t,i){"use strict";i.r(t);i(29),i(60);var r=i(1),a=i(152),n=i(234),c=i(107),s=i(106),o=i(117),l=i(235),u=i(104),y=i(11);function p(e,t,i,p,m,d,S,h,f,T,g,R,v,x,b,I){var E="http://www.ontotext.com/graphdb/similarity/",A="http://www.ontotext.com/graphdb/similarity/psi/",w=A+"any";e.pluginName="similarity",e.pluginIsActive=!0,e.isLoading=!1,e.selectedSimilarityIndex=void 0,e.similarityIndexStatus=c.SimilarityIndexStatus,e.similarityIndexType=s.SimilarityIndexType,e.similaritySearchType=a.SimilaritySearchType,e.searchType=a.SimilaritySearchType.SEARCH_TERM,e.similarityResultType=n.SimilarityResultType,e.resultType=n.SimilarityResultType.TERM_RESULT,e.info=g,e.isGraphDBRepository=void 0,e.canEditRepo=e.canWriteActiveRepo(),e.loadSimilarityIndexesTimer=void 0,e.loadSimilarityIndexes=function(){e.isGraphDBRepository&&e.pluginIsActive&&f.getIndexes().success((function(t){return e.similarityIndexes=Object(o.mapIndexesResponseToSimilarityIndex)(t)})).error((function(e){return i.error(getError(e),v.instant("similarity.could.not.get.indexes.error"))}))},e.reloadSimilarityIndexes=function(){e.loadSimilarityIndexes(),e.loadSimilarityIndexesTimer||(e.loadSimilarityIndexesTimer=t((function(){e.$broadcast("checkIsActive"),"false"!==$("#indexes-table").attr("aria-expanded")&&e.loadSimilarityIndexes()}),5e3))},e.goToSimilarityIndex=function(t){(t.isBuiltStatus()||t.isOutdatedStatus()||t.isRebuildingStatus())&&(e.empty=!0,e.selectedSimilarityIndex!==t&&(e.lastSearch=void 0,e.selectedSimilarityIndex=t),t.isTextType()?e.searchType=a.SimilaritySearchType.SEARCH_TERM:t.isPredicationType()&&(e.searchType=a.SimilaritySearchType.SEARCH_ENTITY),(t.isTextType()||t.isPredicationType())&&$("#indexes-table").collapse("hide"))},e.performSearch=function(t,r,a,n,c){e.isLoading=!0,M(a,r);var s=q(t,r,a,n,c);x.getQueryResult(p.getActiveRepository(),s,"application/x-sparqlstar-results+json, application/sparql-results+json;q=0.9, */*;q=0.8").then((function(e){return Y(e)})).catch((function(e){return i.error(getError(e.data),v.instant("similarity.get.resource.error"))})).finally((function(){return e.isLoading=!1}))},e.viewSearchQuery=function(){var t,i,r=[];i=null==(r=(t=e.lastSearch.isSearchAnalogicalType()?e.selectedSimilarityIndex.analogicalQuery?e.selectedSimilarityIndex.analogicalQuery:e.searchQueries.analogical:e.selectedSimilarityIndex.searchQuery?e.selectedSimilarityIndex.searchQuery:e.searchQueries[e.selectedSimilarityIndex.type]).match(/[a-zA-Z0-9-]+:<http:\/\/www.ontotext.com\/graphdb\/similarity\/instance\/>/))?"similarity-index":r[0].substring(0,r[0].indexOf(":"));var n=t.replace("?index",i+":"+e.selectedSimilarityIndex.name).replace("?query",e.lastSearch.termOrSubject).replace("?searchType",(e.selectedSimilarityIndex.isTextType()?":":"psi:")+(e.lastSearch.isSearchEntityPredicateType()?a.SimilaritySearchType.SEARCH_ENTITY:e.lastSearch.type)).replace("?resultType",e.selectedSimilarityIndex.isTextType()?":"+e.resultType:"psi:entityResult").replace("?parameters",O(e.searchParameters?e.searchParameters:"")).replace("?psiPredicate",e.lastSearch.predicate?L(e.lastSearch.predicate):L(w)).replace("?givenSubject",L(e.analogicalSubject)).replace("?givenObject",L(e.analogicalObject)).replace("?searchSubject",L(e.searchSubject));h.open({templateUrl:"pages/viewQuery.html",controller:"ViewQueryCtrl",resolve:{query:function(){return n}}})},e.deleteSimilarityIndex=function(t){S.openSimpleModal({title:v.instant("common.confirm"),message:v.instant("similarity.delete.index.warning",{name:t.name}),warning:!0}).result.then((function(){f.deleteIndex(t).then((function(){return e.loadSimilarityIndexes()})).catch((function(e){return i.error(getError(e))}))}))},e.viewCreateQuery=function(e){f.getQuery({indexName:e.name,indexOptions:e.options,query:e.selectQuery,indexStopList:e.stopList,queryInference:e.infer,querySameAs:e.sameAs,viewType:e.type,indexAnalyzer:e.analyzer}).success((function(e){h.open({templateUrl:"pages/viewQuery.html",controller:"ViewQueryCtrl",resolve:{query:function(){return e}}})}))},e.rebuildIndex=function(t){t.searchQuery||(t.searchQuery=t.type?e.searchQueries[t.type]:e.searchQueries.text),S.openSimpleModal({title:v.instant("common.confirm"),message:Object(r.decodeHTML)(v.instant("similarity.rebuild.index.warning",{name:t.name})),warning:!0}).result.then((function(){t.status=c.SimilarityIndexStatus.REBUILDING,f.rebuildIndex(t).catch((function(e){return i.error(getError(e))}))}))},e.setPluginIsActive=function(t){e.pluginIsActive=t},e.encodeURIComponent=function(e){return encodeURIComponent(e)},e.copyToClipboardResult=function(e){S.openCopyToClipboardModal(e)},e.trimIRI=function(e){return _.trim(e,"<>")},e.updateSearchType=function(t){e.searchType=t},e.updateResultType=function(t){e.resultType=t},e.editSimilarityIndex=function(e){Q(e)},e.cloneSimilataryIndex=function(e){Q(e,!0)},e.setPsiSubject=function(t){e.psiSubject=t},e.setAnalogicalSubject=function(t){e.analogicalSubject=t},e.setAnalogicalObject=function(t){e.analogicalObject=t};var Q=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i={selectQuery:e.selectQuery,options:e.options,name:e.name,editSearchQuery:!t,infer:e.infer,sameAs:e.sameAs,stopList:e.stopList,type:e.type,analyzer:e.analyzer,searchQuery:e.searchQuery?e.searchQuery:"",analogicalQuery:e.analogicalQuery?e.analogicalQuery:""};d.path("similarity/index/create").search(i)},C=function(){var t=e.getActiveRepository();t&&e.activeRepository!==t&&(e.canEditRepo=e.canWriteActiveRepo(),e.activeRepository=t,e.isGraphDBRepository=P(),e.isGraphDBRepository&&(m.isLicenseValid()&&e.reloadSimilarityIndexes(),j()))},j=function(){f.getSearchQueries().success((function(t){return e.searchQueries=t})).error((function(e){return i.error(getError(e),v.instant("similarity.could.not.get.search.queries.error"))}))},O=function(e){return'"'+e+'"'},L=function(e){return void 0===e||e.startsWith("<<")&&e.endsWith(">>")?e:"<"+e+">"},P=function(){return e.getActiveRepository()&&!e.isActiveRepoOntopType()&&!e.isActiveRepoFedXType()},N=[];N.push(e.$on("repositoryIsSet",C));e.$on("$destroy",(function(){k(),e.loadSimilarityIndexesTimer&&t.cancel(e.loadSimilarityIndexesTimer)}));var k=function(){N.forEach((function(e){return e()}))};N.push(b.onAutocompleteEnabledUpdated((function(t){e.isAutocompleteEnabled=t}))),N.push(b.onSelectedRepositoryIdUpdated((function(t){t?I.getNamespaces(t).then((function(t){e.repositoryNamespaces=t})).catch((function(e){var t=getError(e);i.error(t,v.instant("error.getting.namespaces.for.repo"))})):e.repositoryNamespaces=new y.NamespacesListModel})));N.push(e.$watch("searchType",(function(){e.empty=!0})));var D=e.$watch(e.getActiveRepositoryObject,(function(e){e&&(C(),D())})),q=function(t,i,r,c,s){var o={query:U(e.lastSearch.type),$index:L("http://www.ontotext.com/graphdb/similarity/instance/"+t.name),$query:e.lastSearch.termOrSubject,$searchType:L((e.selectedSimilarityIndex.isTextType()?E:A)+(a.SimilaritySearchType.isSearchEntityPredicateType(r)?a.SimilaritySearchType.SEARCH_ENTITY:r)),$resultType:L(e.selectedSimilarityIndex.isTextType()?E+c:A+n.SimilarityResultType.ENTITY_RESULT),$parameters:O(s)};return a.SimilaritySearchType.isSearchEntityPredicateType(r)&&(o.$psiPredicate=e.lastSearch.predicate?L(e.lastSearch.predicate):L(w)),a.SimilaritySearchType.isSearchAnalogicalType(r)&&(e.searchSubject=i,o.$givenSubject=L(e.analogicalSubject),o.$givenObject=L(e.analogicalObject),o.$searchSubject=L(i)),o},M=function(t,i){e.lastSearch=new l.SimilaritySearch,e.lastSearch.type=t,a.SimilaritySearchType.isSearchEntityPredicateType(t)&&(e.lastSearch.predicate=i),e.lastSearch.termOrSubject=H(e.lastSearch.type,i,e.psiSubject)},U=function(t){return a.SimilaritySearchType.isSearchAnalogicalType(t)?e.selectedSimilarityIndex.analogicalQuery?e.selectedSimilarityIndex.analogicalQuery:e.searchQueries.analogical:e.selectedSimilarityIndex.searchQuery?e.selectedSimilarityIndex.searchQuery:e.searchQueries[e.selectedSimilarityIndex.type]},H=function(e,t,i){var r=t;return a.SimilaritySearchType.isSearchEntityPredicateType(e)&&(r=i),r=a.SimilaritySearchType.isSearchTermType(e)?O(r):L(r)},Y=function(t){e.yasguiConfig={showEditorTabs:!1,showToolbar:!1,showResultTabs:!1,showQueryButton:!1,downloadAsOn:!1,showResultInfo:!1,componentId:"similarity-list-component",maxPersistentResponseSize:0,render:u.RenderingMode.YASR,sparqlResponse:t.data}}}angular.module("graphdb.framework.similarity.controllers.list",["graphdb.core.services.workbench-context","graphdb.framework.core.services.rdf4j.repositories"]).controller("SimilarityCtrl",p),p.$inject=["$scope","$interval","toastr","$repositories","$licenseService","$location","ModalService","$uibModal","SimilarityRestService","AutocompleteRestService","productInfo","RDF4JRepositoriesRestService","$translate","SparqlRestService","WorkbenchContextService","RDF4JRepositoriesService"]},474:function(e,t,i){"use strict";i.r(t);i(10),i(52),i(58),i(123),i(369),i(381),i(167);angular.module("graphdb.framework.similarity",["graphdb.framework.core.controllers","graphdb.framework.core.directives","graphdb.framework.rest.similarity.service","graphdb.framework.similarity.controllers.create","graphdb.framework.similarity.controllers.list","graphdb.framework.core.directives.yasgui-component"])}}]);
1
+ (window.webpackJsonp=window.webpackJsonp||[]).push([[56,128,321,322,363],{124:function(e,t){angular.module("graphdb.framework.rest.similarity.service",[]).factory("SimilarityRestService",i),i.$inject=["$http","$repositories"];function i(e){return{getIndexes:function(t,i){if(t)return e.get("rest/similarity",{headers:{"X-GraphDB-Repository":t,"X-GraphDB-Repository-Location":i}});return e.get("rest/similarity")},getSearchQueries:function(){return e.get("".concat("rest/similarity","/config"))},rebuildIndex:function(e){return t("PUT",e.name,e.options,e.selectQuery,e.searchQuery,e.analogicalQuery,e.stopList,e.infer,e.sameAs,e.type)},deleteIndex:function(t){return e.delete("".concat("rest/similarity","?name=").concat(t.name))},createIndex:t,getSamples:function(){return e.get("".concat("rest/similarity","/samples"))},getQuery:function(t){return e.get("rest/similarity/query",{params:{name:t.indexName,options:t.indexOptions,stopList:t.indexStopList,selectQuery:t.query,infer:t.queryInference,sameAs:t.querySameAs,type:t.viewType,analyzer:t.indexAnalyzer}})},saveSearchQuery:function(t){return e({method:"put",url:"rest/similarity/search-query",data:t})}};function t(t,i,r,a,n,c,s,o,l,u,y){return e({method:t,url:"".concat("rest/similarity"),noCancelOnRouteChange:!0,data:{name:i,options:r,selectQuery:a,stopList:s,infer:o,sameAs:l,type:u,analyzer:y,searchQuery:n,analogicalQuery:c}})}}},153:function(e,t,i){"use strict";i.r(t),i.d(t,"SimilaritySearchType",(function(){return r}));var r={SEARCH_TERM:"searchTerm",SEARCH_ANALOGICAL:"searchAnalogical",SEARCH_ENTITY:"searchEntity",SEARCH_ENTITY_PREDICATE:"searchEntityPredicate",SEARCH_DOCUMENT:"searchDocumentID",isSearchTermType:function(e){return r.SEARCH_TERM===e},isSearchAnalogicalType:function(e){return r.SEARCH_ANALOGICAL===e},isSearchEntityType:function(e){return r.SEARCH_ENTITY===e},isSearchEntityPredicateType:function(e){return r.SEARCH_ENTITY_PREDICATE===e},isSearchDocumentType:function(e){return r.SEARCH_DOCUMENT===e}}},234:function(e,t,i){"use strict";i.r(t),i.d(t,"SimilarityResultType",(function(){return r}));var r={TERM_RESULT:"termResult",DOCUMENT_RESULT:"documentResult",ENTITY_RESULT:"entityResult",isResultDocumentType:function(e){return r.DOCUMENT_RESULT===e},isResultTermType:function(e){return r.TERM_RESULT===e}}},235:function(e,t,i){"use strict";i.r(t),i.d(t,"SimilaritySearch",(function(){return s}));var r=i(153);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)}function n(e,t){for(var i=0;i<t.length;i++){var r=t[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,c(r.key),r)}}function c(e){var t=function(e,t){if("object"!=a(e)||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var r=i.call(e,t||"default");if("object"!=a(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==a(t)?t:t+""}var s=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.type=r.SimilaritySearchType.SEARCH_TERM,this.predicate="",this.termOrSubject=""},(t=[{key:"isSearchAnalogicalType",value:function(){return r.SimilaritySearchType.isSearchAnalogicalType(this.type)}},{key:"isSearchTermType",value:function(){return r.SimilaritySearchType.isSearchTermType(this.type)}},{key:"isSearchEntityType",value:function(){return r.SimilaritySearchType.isSearchEntityType(this.type)}},{key:"isSearchEntityPredicateType",value:function(){return r.SimilaritySearchType.isSearchEntityPredicateType(this.type)}},{key:"isSearchDocumentType",value:function(){return r.SimilaritySearchType.isSearchDocumentType(this.type)}}])&&n(e.prototype,t),i&&n(e,i),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,i}()},369:function(e,t,i){"use strict";i.r(t);i(29),i(60);var r=i(1),a=i(153),n=i(234),c=i(107),s=i(106),o=i(117),l=i(235),u=i(104),y=i(11);function p(e,t,i,p,m,d,S,h,f,T,g,R,v,x,b,I){var E="http://www.ontotext.com/graphdb/similarity/",A="http://www.ontotext.com/graphdb/similarity/psi/",w=A+"any";e.pluginName="similarity",e.pluginIsActive=!0,e.isLoading=!1,e.selectedSimilarityIndex=void 0,e.similarityIndexStatus=c.SimilarityIndexStatus,e.similarityIndexType=s.SimilarityIndexType,e.similaritySearchType=a.SimilaritySearchType,e.searchType=a.SimilaritySearchType.SEARCH_TERM,e.similarityResultType=n.SimilarityResultType,e.resultType=n.SimilarityResultType.TERM_RESULT,e.info=g,e.isGraphDBRepository=void 0,e.canEditRepo=e.canWriteActiveRepo(),e.loadSimilarityIndexesTimer=void 0,e.loadSimilarityIndexes=function(){e.isGraphDBRepository&&e.pluginIsActive&&f.getIndexes().success((function(t){return e.similarityIndexes=Object(o.mapIndexesResponseToSimilarityIndex)(t)})).error((function(e){return i.error(getError(e),v.instant("similarity.could.not.get.indexes.error"))}))},e.reloadSimilarityIndexes=function(){e.loadSimilarityIndexes(),e.loadSimilarityIndexesTimer||(e.loadSimilarityIndexesTimer=t((function(){e.$broadcast("checkIsActive"),"false"!==$("#indexes-table").attr("aria-expanded")&&e.loadSimilarityIndexes()}),5e3))},e.goToSimilarityIndex=function(t){(t.isBuiltStatus()||t.isOutdatedStatus()||t.isRebuildingStatus())&&(e.empty=!0,e.selectedSimilarityIndex!==t&&(e.lastSearch=void 0,e.selectedSimilarityIndex=t),t.isTextType()?e.searchType=a.SimilaritySearchType.SEARCH_TERM:t.isPredicationType()&&(e.searchType=a.SimilaritySearchType.SEARCH_ENTITY),(t.isTextType()||t.isPredicationType())&&$("#indexes-table").collapse("hide"))},e.performSearch=function(t,r,a,n,c){e.isLoading=!0,M(a,r);var s=q(t,r,a,n,c);x.getQueryResult(p.getActiveRepository(),s,"application/x-sparqlstar-results+json, application/sparql-results+json;q=0.9, */*;q=0.8").then((function(e){return Y(e)})).catch((function(e){return i.error(getError(e.data),v.instant("similarity.get.resource.error"))})).finally((function(){return e.isLoading=!1}))},e.viewSearchQuery=function(){var t,i,r=[];i=null==(r=(t=e.lastSearch.isSearchAnalogicalType()?e.selectedSimilarityIndex.analogicalQuery?e.selectedSimilarityIndex.analogicalQuery:e.searchQueries.analogical:e.selectedSimilarityIndex.searchQuery?e.selectedSimilarityIndex.searchQuery:e.searchQueries[e.selectedSimilarityIndex.type]).match(/[a-zA-Z0-9-]+:<http:\/\/www.ontotext.com\/graphdb\/similarity\/instance\/>/))?"similarity-index":r[0].substring(0,r[0].indexOf(":"));var n=t.replace("?index",i+":"+e.selectedSimilarityIndex.name).replace("?query",e.lastSearch.termOrSubject).replace("?searchType",(e.selectedSimilarityIndex.isTextType()?":":"psi:")+(e.lastSearch.isSearchEntityPredicateType()?a.SimilaritySearchType.SEARCH_ENTITY:e.lastSearch.type)).replace("?resultType",e.selectedSimilarityIndex.isTextType()?":"+e.resultType:"psi:entityResult").replace("?parameters",O(e.searchParameters?e.searchParameters:"")).replace("?psiPredicate",e.lastSearch.predicate?L(e.lastSearch.predicate):L(w)).replace("?givenSubject",L(e.analogicalSubject)).replace("?givenObject",L(e.analogicalObject)).replace("?searchSubject",L(e.searchSubject));h.open({templateUrl:"pages/viewQuery.html",controller:"ViewQueryCtrl",resolve:{query:function(){return n}}})},e.deleteSimilarityIndex=function(t){S.openSimpleModal({title:v.instant("common.confirm"),message:v.instant("similarity.delete.index.warning",{name:t.name}),warning:!0}).result.then((function(){f.deleteIndex(t).then((function(){return e.loadSimilarityIndexes()})).catch((function(e){return i.error(getError(e))}))}))},e.viewCreateQuery=function(e){f.getQuery({indexName:e.name,indexOptions:e.options,query:e.selectQuery,indexStopList:e.stopList,queryInference:e.infer,querySameAs:e.sameAs,viewType:e.type,indexAnalyzer:e.analyzer}).success((function(e){h.open({templateUrl:"pages/viewQuery.html",controller:"ViewQueryCtrl",resolve:{query:function(){return e}}})}))},e.rebuildIndex=function(t){t.searchQuery||(t.searchQuery=t.type?e.searchQueries[t.type]:e.searchQueries.text),S.openSimpleModal({title:v.instant("common.confirm"),message:Object(r.decodeHTML)(v.instant("similarity.rebuild.index.warning",{name:t.name})),warning:!0}).result.then((function(){t.status=c.SimilarityIndexStatus.REBUILDING,f.rebuildIndex(t).catch((function(e){return i.error(getError(e))}))}))},e.setPluginIsActive=function(t){e.pluginIsActive=t},e.encodeURIComponent=function(e){return encodeURIComponent(e)},e.copyToClipboardResult=function(e){S.openCopyToClipboardModal(e)},e.trimIRI=function(e){return _.trim(e,"<>")},e.updateSearchType=function(t){e.searchType=t},e.updateResultType=function(t){e.resultType=t},e.editSimilarityIndex=function(e){Q(e)},e.cloneSimilataryIndex=function(e){Q(e,!0)},e.setPsiSubject=function(t){e.psiSubject=t},e.setAnalogicalSubject=function(t){e.analogicalSubject=t},e.setAnalogicalObject=function(t){e.analogicalObject=t};var Q=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i={selectQuery:e.selectQuery,options:e.options,name:e.name,editSearchQuery:!t,infer:e.infer,sameAs:e.sameAs,stopList:e.stopList,type:e.type,analyzer:e.analyzer,searchQuery:e.searchQuery?e.searchQuery:"",analogicalQuery:e.analogicalQuery?e.analogicalQuery:""};d.path("similarity/index/create").search(i)},C=function(){var t=e.getActiveRepository();t&&e.activeRepository!==t&&(e.canEditRepo=e.canWriteActiveRepo(),e.activeRepository=t,e.isGraphDBRepository=P(),e.isGraphDBRepository&&(m.isLicenseValid()&&e.reloadSimilarityIndexes(),j()))},j=function(){f.getSearchQueries().success((function(t){return e.searchQueries=t})).error((function(e){return i.error(getError(e),v.instant("similarity.could.not.get.search.queries.error"))}))},O=function(e){return'"'+e+'"'},L=function(e){return void 0===e||e.startsWith("<<")&&e.endsWith(">>")?e:"<"+e+">"},P=function(){return e.getActiveRepository()&&!e.isActiveRepoOntopType()&&!e.isActiveRepoFedXType()},N=[];N.push(e.$on("repositoryIsSet",C));e.$on("$destroy",(function(){k(),e.loadSimilarityIndexesTimer&&t.cancel(e.loadSimilarityIndexesTimer)}));var k=function(){N.forEach((function(e){return e()}))};N.push(b.onAutocompleteEnabledUpdated((function(t){e.isAutocompleteEnabled=t}))),N.push(b.onSelectedRepositoryIdUpdated((function(t){t?I.getNamespaces(t).then((function(t){e.repositoryNamespaces=t})).catch((function(e){var t=getError(e);i.error(t,v.instant("error.getting.namespaces.for.repo"))})):e.repositoryNamespaces=new y.NamespacesListModel})));N.push(e.$watch("searchType",(function(){e.empty=!0})));var D=e.$watch(e.getActiveRepositoryObject,(function(e){e&&(C(),D())})),q=function(t,i,r,c,s){var o={query:U(e.lastSearch.type),$index:L("http://www.ontotext.com/graphdb/similarity/instance/"+t.name),$query:e.lastSearch.termOrSubject,$searchType:L((e.selectedSimilarityIndex.isTextType()?E:A)+(a.SimilaritySearchType.isSearchEntityPredicateType(r)?a.SimilaritySearchType.SEARCH_ENTITY:r)),$resultType:L(e.selectedSimilarityIndex.isTextType()?E+c:A+n.SimilarityResultType.ENTITY_RESULT),$parameters:O(s)};return a.SimilaritySearchType.isSearchEntityPredicateType(r)&&(o.$psiPredicate=e.lastSearch.predicate?L(e.lastSearch.predicate):L(w)),a.SimilaritySearchType.isSearchAnalogicalType(r)&&(e.searchSubject=i,o.$givenSubject=L(e.analogicalSubject),o.$givenObject=L(e.analogicalObject),o.$searchSubject=L(i)),o},M=function(t,i){e.lastSearch=new l.SimilaritySearch,e.lastSearch.type=t,a.SimilaritySearchType.isSearchEntityPredicateType(t)&&(e.lastSearch.predicate=i),e.lastSearch.termOrSubject=H(e.lastSearch.type,i,e.psiSubject)},U=function(t){return a.SimilaritySearchType.isSearchAnalogicalType(t)?e.selectedSimilarityIndex.analogicalQuery?e.selectedSimilarityIndex.analogicalQuery:e.searchQueries.analogical:e.selectedSimilarityIndex.searchQuery?e.selectedSimilarityIndex.searchQuery:e.searchQueries[e.selectedSimilarityIndex.type]},H=function(e,t,i){var r=t;return a.SimilaritySearchType.isSearchEntityPredicateType(e)&&(r=i),r=a.SimilaritySearchType.isSearchTermType(e)?O(r):L(r)},Y=function(t){e.yasguiConfig={showEditorTabs:!1,showToolbar:!1,showResultTabs:!1,showQueryButton:!1,downloadAsOn:!1,showResultInfo:!1,componentId:"similarity-list-component",maxPersistentResponseSize:0,render:u.RenderingMode.YASR,sparqlResponse:t.data}}}angular.module("graphdb.framework.similarity.controllers.list",["graphdb.core.services.workbench-context","graphdb.framework.core.services.rdf4j.repositories"]).controller("SimilarityCtrl",p),p.$inject=["$scope","$interval","toastr","$repositories","$licenseService","$location","ModalService","$uibModal","SimilarityRestService","AutocompleteRestService","productInfo","RDF4JRepositoriesRestService","$translate","SparqlRestService","WorkbenchContextService","RDF4JRepositoriesService"]},474:function(e,t,i){"use strict";i.r(t);i(10),i(52),i(58),i(124),i(369),i(381),i(167);angular.module("graphdb.framework.similarity",["graphdb.framework.core.controllers","graphdb.framework.core.directives","graphdb.framework.rest.similarity.service","graphdb.framework.similarity.controllers.create","graphdb.framework.similarity.controllers.list","graphdb.framework.core.directives.yasgui-component"])}}]);
@@ -1 +1 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([[57,82,96,131,332,333],{108:function(t,e,n){"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 r(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,s(i.key),i)}}function s(t){var e=function(t,e){if("object"!=i(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==i(e)?e:e+""}n.r(e),n.d(e,"ChatMessageModel",(function(){return a})),n.d(e,"CHAT_MESSAGE_ROLE",(function(){return o}));var a=function(){return t=function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._id=e.id,this._role=e.role,this._message=e.message,this._timestamp=1e3*e.timestamp},(e=[{key:"id",get:function(){return this._id},set:function(t){this._id=t}},{key:"role",get:function(){return this._role},set:function(t){this._role=t}},{key:"message",get:function(){return this._message},set:function(t){this._message=t}},{key:"timestamp",get:function(){return this._timestamp},set:function(t){this._timestamp=t}}])&&r(t.prototype,e),n&&r(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,n}(),o={USER:"user",ASSISTANT:"assistant"}},112:function(t,e,n){"use strict";n.r(e),n.d(e,"ChatItemModel",(function(){return c})),n.d(e,"ChatItemsListModel",(function(){return h}));var i=n(108);function r(t){return(r="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 s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,u(i.key),i)}}function o(t,e,n){return e&&a(t.prototype,e),n&&a(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function u(t){var e=function(t,e){if("object"!=r(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==r(e)?e:e+""}var c=function(){return o((function t(e,n){s(this,t),this._chatId=e,this._agentId=void 0,this._question=n,this._answers=[]}),[{key:"chatId",get:function(){return this._chatId},set:function(t){this._chatId=t}},{key:"agentId",get:function(){return this._agentId},set:function(t){this._agentId=t}},{key:"question",get:function(){return this._question},set:function(t){this._question=t}},{key:"answers",get:function(){return this._answers},set:function(t){this._answers=t}},{key:"setQuestionMessage",value:function(t){this._question||(this._question=new i.ChatMessageModel({role:i.CHAT_MESSAGE_ROLE.USER})),this._question.message=t}},{key:"getQuestionMessage",value:function(){return this._question.message}},{key:"toCreateChatRequestPayload",value:function(){return{agentId:this._agentId,question:this._question.message}}},{key:"toAskRequestPayload",value:function(){return{conversationId:this._chatId,agentId:this._agentId,question:this._question.message,tzOffset:-(new Date).getTimezoneOffset()}}},{key:"toExplainResponsePayload",value:function(t){return{conversationId:this._chatId,answerId:t}}}])}(),h=function(){return o((function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];s(this,t),this._items=e}),[{key:"isEmpty",value:function(){return 0===this._items.length}},{key:"appendItem",value:function(t){this._items.push(t)}},{key:"items",get:function(){return this._items},set:function(t){this._items=t||[]}},{key:"getLast",value:function(){if(!this.isEmpty())return this._items[this._items.length-1]}}])}()},135:function(t,e,n){"use strict";n.r(e),n.d(e,"ChatModel",(function(){return h})),n.d(e,"ChatByDayModel",(function(){return f})),n.d(e,"ChatsListModel",(function(){return m}));var i=n(112),r=n(28);function s(t){return(s="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 a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,c(i.key),i)}}function u(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function c(t){var e=function(t,e){if("object"!=s(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=s(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==s(e)?e:e+""}var h=function(){function t(e,n){a(this,t),this.hashGenerator=n,this._id=e.id,this._name=e.name,this._timestamp=e.timestamp,this._chatHistory=e.chatHistory||new i.ChatItemsListModel,this.hash=this.generateHash()}return u(t,[{key:"generateHash",value:function(){return this.hashGenerator(JSON.stringify(this))}},{key:"id",get:function(){return this._id},set:function(t){this._id=t}},{key:"name",get:function(){return this._name},set:function(t){this.generateHash(),this._name=t}},{key:"timestamp",get:function(){return this._timestamp},set:function(t){this._timestamp=t}},{key:"chatHistory",get:function(){return this._chatHistory},set:function(t){this._chatHistory=t||new i.ChatItemsListModel}},{key:"toRenameRequestPayload",value:function(){return{name:this._name}}}],[{key:"getEmptyChat",value:function(){return new t({name:"· · ·",timestamp:Math.floor(Date.now()/1e3)},Object(r.md5HashGenerator)())}}])}(),f=function(){return u((function t(e){a(this,t),this._day=e.day,this._timestamp=e.timestamp,this._chats=e.chats}),[{key:"day",get:function(){return this._day},set:function(t){this._day=t}},{key:"timestamp",get:function(){return this._timestamp},set:function(t){this._timestamp=t}},{key:"chats",get:function(){return this._chats},set:function(t){this._chats=t}}])}(),m=function(){return u((function t(e){a(this,t),this._chats=e||[],this._chatsByDay=[],this.sortByTime(),this.updateChatsByDay()}),[{key:"sortByTime",value:function(){this._chats.sort((function(t,e){return e.timestamp-t.timestamp}))}},{key:"updateChatTimestamp",value:function(t,e){var n=this._chats.find((function(e){return e.id===t}));n&&(n.timestamp=e,this.sortByTime(),this.updateChatsByDay())}},{key:"updateChatName",value:function(t,e){var n=this._chats.find((function(e){return e.id===t}));n&&(n.name=e)}},{key:"deleteChat",value:function(t){this._chats=this._chats.filter((function(e){return e.id!==t.id})),this.sortByTime(),this.updateChatsByDay()}},{key:"updateChatsByDay",value:function(){var t=this;this._chatsByDay=[],this._chats.forEach((function(e){var n=new Date(1e3*e.timestamp).toDateString(),i=t._chatsByDay.find((function(t){return t.day===n}));i?i.chats.push(e):t._chatsByDay.push(new f({day:n,timestamp:1e3*e.timestamp,chats:[e]}))}))}},{key:"appendChat",value:function(t){this._chats.push(t),this.sortByTime(),this.updateChatsByDay()}},{key:"replaceChat",value:function(t,e){this._chats=this._chats.map((function(n){return n.id===e.id?t:n})),this.sortByTime(),this.updateChatsByDay()}},{key:"isEmpty",value:function(){return 0===this._chats.length}},{key:"getFirstChat",value:function(){return this._chats[0]}},{key:"deselectAll",value:function(){this._chats.forEach((function(t){t.selected=!1}))}},{key:"selectChat",value:function(t){this.deselectAll(),this._chats.forEach((function(e){e.selected=e.id===t.id}))}},{key:"getChat",value:function(t){return this._chats.find((function(e){return e.id===t}))}},{key:"getNonPersistedChat",value:function(){return this._chats.find((function(t){return!t.id}))}},{key:"renameChat",value:function(t){var e=this._chats.find((function(e){return e.id===t.id}));e&&(e.name=t.name)}},{key:"chats",get:function(){return this._chats},set:function(t){this._chats=t}},{key:"chatsByDay",get:function(){return this._chatsByDay},set:function(t){this._chatsByDay=t}}])}()},148:function(t,e,n){"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 r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,o(i.key),i)}}function a(t,e,n){return e&&s(t.prototype,e),n&&s(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function o(t){var e=function(t,e){if("object"!=i(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==i(e)?e:e+""}n.r(e),n.d(e,"ChatAnswerModel",(function(){return u})),n.d(e,"ContinueChatRun",(function(){return c}));var u=function(){return a((function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};r(this,t),this._chatId=e.chatId,this._chatName=e.chatName||"",this._timestamp=e.timestamp,this._messages=e.messages||[],this._continueRunId=e.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 a((function t(e,n){r(this,t),this._chatItem=e,this._runId=n}),[{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()}}}])}()},184:function(t,e,n){"use strict";n.r(e),n.d(e,"chatMessageModelListMapper",(function(){return a})),n.d(e,"chatItemsModelMapper",(function(){return o})),n.d(e,"chatMessageModelMapper",(function(){return u})),n.d(e,"chatAnswerModelMapper",(function(){return c}));var i=n(108),r=n(112),s=n(148),a=function(t){return t?t.map((function(t){return u(t)})):[]},o=function(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=[];return e.forEach((function(e){var s=e.conversationId;i.CHAT_MESSAGE_ROLE.USER===e.role?(t&&n.push(t),t=new r.ChatItemModel(s,u(e))):(t||(t=new r.ChatItemModel(s,null)),t.answers.push(u(e)),t.agentId=e.agentId)})),t&&n.push(t),new r.ChatItemsListModel(n)},u=function(t){if(t)return new i.ChatMessageModel({id:t.id,role:t.role,message:t.message,timestamp:t.timestamp,data:t})},c=function(t){if(t)return new s.ChatAnswerModel({chatId:t.id,chatName:t.name,timestamp:t.timestamp,messages:a(t.messages),continueRunId:t.continueRunId})}},285:function(t,e,n){"use strict";n.r(e),n.d(e,"chatsListMapper",(function(){return u})),n.d(e,"chatModelMapper",(function(){return c}));var i=n(135),r=n(28),s=n(184),a=n(112),o=Object(r.md5HashGenerator)(),u=function(t){if(!t)return new i.ChatsListModel;var e=t.map((function(t){return c(t)}));return new i.ChatsListModel(e)},c=function(t){if(t)return new i.ChatModel({id:t.id,name:t.name,timestamp:t.timestamp,chatHistory:t.messages&&t.messages.length?Object(s.chatItemsModelMapper)(t.messages):new a.ChatItemsListModel},o)}}}]);
1
+ (window.webpackJsonp=window.webpackJsonp||[]).push([[57,83,98,132,332,333],{108:function(t,e,n){"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 r(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,s(i.key),i)}}function s(t){var e=function(t,e){if("object"!=i(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==i(e)?e:e+""}n.r(e),n.d(e,"ChatMessageModel",(function(){return a})),n.d(e,"CHAT_MESSAGE_ROLE",(function(){return o}));var a=function(){return t=function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._id=e.id,this._role=e.role,this._message=e.message,this._timestamp=1e3*e.timestamp},(e=[{key:"id",get:function(){return this._id},set:function(t){this._id=t}},{key:"role",get:function(){return this._role},set:function(t){this._role=t}},{key:"message",get:function(){return this._message},set:function(t){this._message=t}},{key:"timestamp",get:function(){return this._timestamp},set:function(t){this._timestamp=t}}])&&r(t.prototype,e),n&&r(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,n}(),o={USER:"user",ASSISTANT:"assistant"}},112:function(t,e,n){"use strict";n.r(e),n.d(e,"ChatItemModel",(function(){return c})),n.d(e,"ChatItemsListModel",(function(){return h}));var i=n(108);function r(t){return(r="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 s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,u(i.key),i)}}function o(t,e,n){return e&&a(t.prototype,e),n&&a(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function u(t){var e=function(t,e){if("object"!=r(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==r(e)?e:e+""}var c=function(){return o((function t(e,n){s(this,t),this._chatId=e,this._agentId=void 0,this._question=n,this._answers=[]}),[{key:"chatId",get:function(){return this._chatId},set:function(t){this._chatId=t}},{key:"agentId",get:function(){return this._agentId},set:function(t){this._agentId=t}},{key:"question",get:function(){return this._question},set:function(t){this._question=t}},{key:"answers",get:function(){return this._answers},set:function(t){this._answers=t}},{key:"setQuestionMessage",value:function(t){this._question||(this._question=new i.ChatMessageModel({role:i.CHAT_MESSAGE_ROLE.USER})),this._question.message=t}},{key:"getQuestionMessage",value:function(){return this._question.message}},{key:"toCreateChatRequestPayload",value:function(){return{agentId:this._agentId,question:this._question.message}}},{key:"toAskRequestPayload",value:function(){return{conversationId:this._chatId,agentId:this._agentId,question:this._question.message,tzOffset:-(new Date).getTimezoneOffset()}}},{key:"toExplainResponsePayload",value:function(t){return{conversationId:this._chatId,answerId:t}}}])}(),h=function(){return o((function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];s(this,t),this._items=e}),[{key:"isEmpty",value:function(){return 0===this._items.length}},{key:"appendItem",value:function(t){this._items.push(t)}},{key:"items",get:function(){return this._items},set:function(t){this._items=t||[]}},{key:"getLast",value:function(){if(!this.isEmpty())return this._items[this._items.length-1]}}])}()},137:function(t,e,n){"use strict";n.r(e),n.d(e,"ChatModel",(function(){return h})),n.d(e,"ChatByDayModel",(function(){return f})),n.d(e,"ChatsListModel",(function(){return m}));var i=n(112),r=n(28);function s(t){return(s="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 a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,c(i.key),i)}}function u(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function c(t){var e=function(t,e){if("object"!=s(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=s(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==s(e)?e:e+""}var h=function(){function t(e,n){a(this,t),this.hashGenerator=n,this._id=e.id,this._name=e.name,this._timestamp=e.timestamp,this._chatHistory=e.chatHistory||new i.ChatItemsListModel,this.hash=this.generateHash()}return u(t,[{key:"generateHash",value:function(){return this.hashGenerator(JSON.stringify(this))}},{key:"id",get:function(){return this._id},set:function(t){this._id=t}},{key:"name",get:function(){return this._name},set:function(t){this.generateHash(),this._name=t}},{key:"timestamp",get:function(){return this._timestamp},set:function(t){this._timestamp=t}},{key:"chatHistory",get:function(){return this._chatHistory},set:function(t){this._chatHistory=t||new i.ChatItemsListModel}},{key:"toRenameRequestPayload",value:function(){return{name:this._name}}}],[{key:"getEmptyChat",value:function(){return new t({name:"· · ·",timestamp:Math.floor(Date.now()/1e3)},Object(r.md5HashGenerator)())}}])}(),f=function(){return u((function t(e){a(this,t),this._day=e.day,this._timestamp=e.timestamp,this._chats=e.chats}),[{key:"day",get:function(){return this._day},set:function(t){this._day=t}},{key:"timestamp",get:function(){return this._timestamp},set:function(t){this._timestamp=t}},{key:"chats",get:function(){return this._chats},set:function(t){this._chats=t}}])}(),m=function(){return u((function t(e){a(this,t),this._chats=e||[],this._chatsByDay=[],this.sortByTime(),this.updateChatsByDay()}),[{key:"sortByTime",value:function(){this._chats.sort((function(t,e){return e.timestamp-t.timestamp}))}},{key:"updateChatTimestamp",value:function(t,e){var n=this._chats.find((function(e){return e.id===t}));n&&(n.timestamp=e,this.sortByTime(),this.updateChatsByDay())}},{key:"updateChatName",value:function(t,e){var n=this._chats.find((function(e){return e.id===t}));n&&(n.name=e)}},{key:"deleteChat",value:function(t){this._chats=this._chats.filter((function(e){return e.id!==t.id})),this.sortByTime(),this.updateChatsByDay()}},{key:"updateChatsByDay",value:function(){var t=this;this._chatsByDay=[],this._chats.forEach((function(e){var n=new Date(1e3*e.timestamp).toDateString(),i=t._chatsByDay.find((function(t){return t.day===n}));i?i.chats.push(e):t._chatsByDay.push(new f({day:n,timestamp:1e3*e.timestamp,chats:[e]}))}))}},{key:"appendChat",value:function(t){this._chats.push(t),this.sortByTime(),this.updateChatsByDay()}},{key:"replaceChat",value:function(t,e){this._chats=this._chats.map((function(n){return n.id===e.id?t:n})),this.sortByTime(),this.updateChatsByDay()}},{key:"isEmpty",value:function(){return 0===this._chats.length}},{key:"getFirstChat",value:function(){return this._chats[0]}},{key:"deselectAll",value:function(){this._chats.forEach((function(t){t.selected=!1}))}},{key:"selectChat",value:function(t){this.deselectAll(),this._chats.forEach((function(e){e.selected=e.id===t.id}))}},{key:"getChat",value:function(t){return this._chats.find((function(e){return e.id===t}))}},{key:"getNonPersistedChat",value:function(){return this._chats.find((function(t){return!t.id}))}},{key:"renameChat",value:function(t){var e=this._chats.find((function(e){return e.id===t.id}));e&&(e.name=t.name)}},{key:"chats",get:function(){return this._chats},set:function(t){this._chats=t}},{key:"chatsByDay",get:function(){return this._chatsByDay},set:function(t){this._chatsByDay=t}}])}()},149:function(t,e,n){"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 r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,o(i.key),i)}}function a(t,e,n){return e&&s(t.prototype,e),n&&s(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function o(t){var e=function(t,e){if("object"!=i(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==i(e)?e:e+""}n.r(e),n.d(e,"ChatAnswerModel",(function(){return u})),n.d(e,"ContinueChatRun",(function(){return c}));var u=function(){return a((function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};r(this,t),this._chatId=e.chatId,this._chatName=e.chatName||"",this._timestamp=e.timestamp,this._messages=e.messages||[],this._continueRunId=e.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 a((function t(e,n){r(this,t),this._chatItem=e,this._runId=n}),[{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()}}}])}()},184:function(t,e,n){"use strict";n.r(e),n.d(e,"chatMessageModelListMapper",(function(){return a})),n.d(e,"chatItemsModelMapper",(function(){return o})),n.d(e,"chatMessageModelMapper",(function(){return u})),n.d(e,"chatAnswerModelMapper",(function(){return c}));var i=n(108),r=n(112),s=n(149),a=function(t){return t?t.map((function(t){return u(t)})):[]},o=function(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=[];return e.forEach((function(e){var s=e.conversationId;i.CHAT_MESSAGE_ROLE.USER===e.role?(t&&n.push(t),t=new r.ChatItemModel(s,u(e))):(t||(t=new r.ChatItemModel(s,null)),t.answers.push(u(e)),t.agentId=e.agentId)})),t&&n.push(t),new r.ChatItemsListModel(n)},u=function(t){if(t)return new i.ChatMessageModel({id:t.id,role:t.role,message:t.message,timestamp:t.timestamp,data:t})},c=function(t){if(t)return new s.ChatAnswerModel({chatId:t.id,chatName:t.name,timestamp:t.timestamp,messages:a(t.messages),continueRunId:t.continueRunId})}},285:function(t,e,n){"use strict";n.r(e),n.d(e,"chatsListMapper",(function(){return u})),n.d(e,"chatModelMapper",(function(){return c}));var i=n(137),r=n(28),s=n(184),a=n(112),o=Object(r.md5HashGenerator)(),u=function(t){if(!t)return new i.ChatsListModel;var e=t.map((function(t){return c(t)}));return new i.ChatsListModel(e)},c=function(t){if(t)return new i.ChatModel({id:t.id,name:t.name,timestamp:t.timestamp,chatHistory:t.messages&&t.messages.length?Object(s.chatItemsModelMapper)(t.messages):new a.ChatItemsListModel},o)}}}]);
@@ -1 +1 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([[58,121,168,243,244],{109:function(t,e,n){"use strict";n.r(e),n.d(e,"FIELD_TYPE",(function(){return r}));var r={STRING:"string",TEXT:"text",BOOLEAN:"boolean",JSON:"json",SELECT:"select",MULTI_SELECT:"multi_select"}},147:function(t,e,n){"use strict";function r(t){return(r="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 i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,u(r.key),r)}}function o(t,e,n){return(e=u(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function u(t){var e=function(t,e){if("object"!=r(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==r(e)?e:e+""}n.r(e),n.d(e,"DynamicFormField",(function(){return s}));var s=function(){return t=function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),o(this,"_key",""),o(this,"_label",""),o(this,"_type",""),o(this,"_collection",!1),o(this,"_value",void 0),o(this,"_values",void 0),o(this,"_regex",void 0),o(this,"_required",!1),o(this,"_group",void 0),o(this,"hidden",!1),this._key=e.key,this._label=e.label,this._type=e.type,this._collection=e.collection,this._value=e.value,this._values=e.values,this._regex="string"==typeof e.regex?new RegExp(e.regex):e.regex,this._required=e.required,this._group=e.group,this.hidden=e.hidden},(e=[{key:"key",get:function(){return this._key},set:function(t){this._key=t}},{key:"label",get:function(){return this._label},set:function(t){this._label=t}},{key:"type",get:function(){return this._type},set:function(t){this._type=t}},{key:"collection",get:function(){return this._collection},set:function(t){this._collection=t}},{key:"value",get:function(){return this._value},set:function(t){this._value=t}},{key:"values",get:function(){return this._values},set:function(t){this._values=t}},{key:"regex",get:function(){return this._regex},set:function(t){this._regex="string"==typeof t?new RegExp(t):t}},{key:"required",get:function(){return this._required},set:function(t){this._required=t}},{key:"group",get:function(){return this._group},set:function(t){this._group=t}},{key:"hidden",get:function(){return this._hidden},set:function(t){this._hidden=t}}])&&i(t.prototype,e),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,n}()},173:function(t,e,n){"use strict";n.r(e),n.d(e,"CONFIG_TYPE",(function(){return a})),n.d(e,"GraphqlEndpointConfigurationSettings",(function(){return f}));var r=n(147);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){return function(t){if(Array.isArray(t))return u(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return u(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function s(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,c(r.key),r)}}function l(t,e,n){return(e=c(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function c(t){var e=function(t,e){if("object"!=i(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==i(e)?e:e+""}var a={STRING:"string",TEXT:"text",BOOLEAN:"boolean",JSON:"json"},f=function(){return t=function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),l(this,"_settings",void 0),l(this,"_hasSettings",void 0),this._settings=e,this._hasSettings=!!this._settings&&this._settings.models.length>0},(e=[{key:"toFlatJSON",value:function(){var t={},e=function(e){e.collection?t[e.key]=e.value:"select"===e.type?t[e.key]=e.value.value:t[e.key]=e.value};return this._settings.models.forEach((function(t){t instanceof r.DynamicFormField?e(t):[].concat(o(t.fields),o(t.hiddenFields)).forEach(e)})),t}},{key:"hasSettings",get:function(){return this._hasSettings}},{key:"settings",get:function(){return this._settings},set:function(t){this._settings=t,this._hasSettings=this._settings.models.length>0}}])&&s(t.prototype,e),n&&s(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,n}()},213:function(t,e,n){"use strict";function r(t){return(r="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 i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,l(r.key),r)}}function u(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function s(t,e,n){return(e=l(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function l(t){var e=function(t,e){if("object"!=r(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==r(e)?e:e+""}n.r(e),n.d(e,"DynamicFormModel",(function(){return c})),n.d(e,"DynamicFormGroup",(function(){return a}));var c=function(){return u((function t(e){i(this,t),s(this,"_models",[]),this._models=e||[]}),[{key:"models",get:function(){return this._models},set:function(t){this._models=t}}])}(),a=function(){return u((function t(e){i(this,t),s(this,"_groupId",""),s(this,"_fields",[]),s(this,"_hiddenFields",[]),this._fields=e.fields||[],this._hiddenFields=e.hiddenFields||[],this._groupId=e.groupId||""}),[{key:"fields",get:function(){return this._fields},set:function(t){this._fields=t}},{key:"hiddenFields",get:function(){return this._hiddenFields},set:function(t){this._hiddenFields=t}},{key:"groupId",get:function(){return this._groupId},set:function(t){this._groupId=t}}])}()},284:function(t,e,n){"use strict";n.r(e),n.d(e,"dynamicFormModelMapper",(function(){return l}));var r=n(25),i=n(147),o=n(173),u=n(213),s=n(109),l=function(t){if(!t||!t.configs)return new u.DynamicFormModel;var e=a(t.configs);return c(e)},c=function(t){var e=[];return t.forEach((function(t){if(t.group){var n=e.find((function(e){return e.groupId===t.group}));n||(n=new u.DynamicFormGroup({groupId:t.group}),e.push(n)),(t.hidden?n.hiddenFields:n.fields).push(t)}else e.push(t)})),new u.DynamicFormModel(e)},a=function(t){return t.map((function(t){var e=y(t),n=t.values,i=[];return e!==s.FIELD_TYPE.MULTI_SELECT&&e!==s.FIELD_TYPE.SELECT||(n=n.map((function(e){var n=Array.isArray(t.value)&&t.value.indexOf(e)>-1||"string"==typeof t.value&&t.value===e,o=new r.SelectMenuOptionsModel({label:e,value:e,selected:n});return n&&i.push(o),o})),e===s.FIELD_TYPE.SELECT?t.value=i[0]?i[0]:[]:e===s.FIELD_TYPE.MULTI_SELECT&&(t.value=i)),f(t,e,n)}))},f=function(t,e,n){return new i.DynamicFormField({key:t.key,label:t.label,description:t.description,type:e,collection:t.collection||!1,value:t.value,values:n,regex:t.regex,required:t.required||!1,group:t.group,hidden:t.hidden})},y=function(t){var e;return t.type===o.CONFIG_TYPE.TEXT?e=s.FIELD_TYPE.TEXT:t.type===o.CONFIG_TYPE.BOOLEAN?e=s.FIELD_TYPE.BOOLEAN:t.type===o.CONFIG_TYPE.JSON?e=s.FIELD_TYPE.JSON:t.type===o.CONFIG_TYPE.STRING&&(e=t.values&&t.values.length>0?t.collection?s.FIELD_TYPE.MULTI_SELECT:s.FIELD_TYPE.SELECT:s.FIELD_TYPE.STRING),e}}}]);
1
+ (window.webpackJsonp=window.webpackJsonp||[]).push([[58,122,168,243,244],{109:function(t,e,n){"use strict";n.r(e),n.d(e,"FIELD_TYPE",(function(){return r}));var r={STRING:"string",TEXT:"text",BOOLEAN:"boolean",JSON:"json",SELECT:"select",MULTI_SELECT:"multi_select"}},148:function(t,e,n){"use strict";function r(t){return(r="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 i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,u(r.key),r)}}function o(t,e,n){return(e=u(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function u(t){var e=function(t,e){if("object"!=r(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==r(e)?e:e+""}n.r(e),n.d(e,"DynamicFormField",(function(){return s}));var s=function(){return t=function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),o(this,"_key",""),o(this,"_label",""),o(this,"_type",""),o(this,"_collection",!1),o(this,"_value",void 0),o(this,"_values",void 0),o(this,"_regex",void 0),o(this,"_required",!1),o(this,"_group",void 0),o(this,"hidden",!1),this._key=e.key,this._label=e.label,this._type=e.type,this._collection=e.collection,this._value=e.value,this._values=e.values,this._regex="string"==typeof e.regex?new RegExp(e.regex):e.regex,this._required=e.required,this._group=e.group,this.hidden=e.hidden},(e=[{key:"key",get:function(){return this._key},set:function(t){this._key=t}},{key:"label",get:function(){return this._label},set:function(t){this._label=t}},{key:"type",get:function(){return this._type},set:function(t){this._type=t}},{key:"collection",get:function(){return this._collection},set:function(t){this._collection=t}},{key:"value",get:function(){return this._value},set:function(t){this._value=t}},{key:"values",get:function(){return this._values},set:function(t){this._values=t}},{key:"regex",get:function(){return this._regex},set:function(t){this._regex="string"==typeof t?new RegExp(t):t}},{key:"required",get:function(){return this._required},set:function(t){this._required=t}},{key:"group",get:function(){return this._group},set:function(t){this._group=t}},{key:"hidden",get:function(){return this._hidden},set:function(t){this._hidden=t}}])&&i(t.prototype,e),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,n}()},173:function(t,e,n){"use strict";n.r(e),n.d(e,"CONFIG_TYPE",(function(){return a})),n.d(e,"GraphqlEndpointConfigurationSettings",(function(){return f}));var r=n(148);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){return function(t){if(Array.isArray(t))return u(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return u(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function s(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,c(r.key),r)}}function l(t,e,n){return(e=c(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function c(t){var e=function(t,e){if("object"!=i(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==i(e)?e:e+""}var a={STRING:"string",TEXT:"text",BOOLEAN:"boolean",JSON:"json"},f=function(){return t=function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),l(this,"_settings",void 0),l(this,"_hasSettings",void 0),this._settings=e,this._hasSettings=!!this._settings&&this._settings.models.length>0},(e=[{key:"toFlatJSON",value:function(){var t={},e=function(e){e.collection?t[e.key]=e.value:"select"===e.type?t[e.key]=e.value.value:t[e.key]=e.value};return this._settings.models.forEach((function(t){t instanceof r.DynamicFormField?e(t):[].concat(o(t.fields),o(t.hiddenFields)).forEach(e)})),t}},{key:"hasSettings",get:function(){return this._hasSettings}},{key:"settings",get:function(){return this._settings},set:function(t){this._settings=t,this._hasSettings=this._settings.models.length>0}}])&&s(t.prototype,e),n&&s(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,n}()},213:function(t,e,n){"use strict";function r(t){return(r="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 i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,l(r.key),r)}}function u(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function s(t,e,n){return(e=l(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function l(t){var e=function(t,e){if("object"!=r(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==r(e)?e:e+""}n.r(e),n.d(e,"DynamicFormModel",(function(){return c})),n.d(e,"DynamicFormGroup",(function(){return a}));var c=function(){return u((function t(e){i(this,t),s(this,"_models",[]),this._models=e||[]}),[{key:"models",get:function(){return this._models},set:function(t){this._models=t}}])}(),a=function(){return u((function t(e){i(this,t),s(this,"_groupId",""),s(this,"_fields",[]),s(this,"_hiddenFields",[]),this._fields=e.fields||[],this._hiddenFields=e.hiddenFields||[],this._groupId=e.groupId||""}),[{key:"fields",get:function(){return this._fields},set:function(t){this._fields=t}},{key:"hiddenFields",get:function(){return this._hiddenFields},set:function(t){this._hiddenFields=t}},{key:"groupId",get:function(){return this._groupId},set:function(t){this._groupId=t}}])}()},284:function(t,e,n){"use strict";n.r(e),n.d(e,"dynamicFormModelMapper",(function(){return l}));var r=n(25),i=n(148),o=n(173),u=n(213),s=n(109),l=function(t){if(!t||!t.configs)return new u.DynamicFormModel;var e=a(t.configs);return c(e)},c=function(t){var e=[];return t.forEach((function(t){if(t.group){var n=e.find((function(e){return e.groupId===t.group}));n||(n=new u.DynamicFormGroup({groupId:t.group}),e.push(n)),(t.hidden?n.hiddenFields:n.fields).push(t)}else e.push(t)})),new u.DynamicFormModel(e)},a=function(t){return t.map((function(t){var e=y(t),n=t.values,i=[];return e!==s.FIELD_TYPE.MULTI_SELECT&&e!==s.FIELD_TYPE.SELECT||(n=n.map((function(e){var n=Array.isArray(t.value)&&t.value.indexOf(e)>-1||"string"==typeof t.value&&t.value===e,o=new r.SelectMenuOptionsModel({label:e,value:e,selected:n});return n&&i.push(o),o})),e===s.FIELD_TYPE.SELECT?t.value=i[0]?i[0]:[]:e===s.FIELD_TYPE.MULTI_SELECT&&(t.value=i)),f(t,e,n)}))},f=function(t,e,n){return new i.DynamicFormField({key:t.key,label:t.label,description:t.description,type:e,collection:t.collection||!1,value:t.value,values:n,regex:t.regex,required:t.required||!1,group:t.group,hidden:t.hidden})},y=function(t){var e;return t.type===o.CONFIG_TYPE.TEXT?e=s.FIELD_TYPE.TEXT:t.type===o.CONFIG_TYPE.BOOLEAN?e=s.FIELD_TYPE.BOOLEAN:t.type===o.CONFIG_TYPE.JSON?e=s.FIELD_TYPE.JSON:t.type===o.CONFIG_TYPE.STRING&&(e=t.values&&t.values.length>0?t.collection?s.FIELD_TYPE.MULTI_SELECT:s.FIELD_TYPE.SELECT:s.FIELD_TYPE.STRING),e}}}]);