graphdb-workbench 2.6.2-TR3 → 2.7.0-TR1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/0.f8a5f6f21a97b0be86e8.bundle.js +25 -0
- package/dist/1.a80e9e26d2d9d2428cfc.bundle.js +1 -0
- package/dist/10.076d8e5f0c554af2b007.bundle.js +1 -0
- package/dist/{102.a57d02f54d23e39ab220.bundle.js → 100.8027bfd4f18acbcc42f2.bundle.js} +1 -1
- package/dist/{103.6edf5a9611097aac7b0e.bundle.js → 101.8c8a1c60883d1e7544ee.bundle.js} +1 -1
- package/dist/{104.30887712ab9f944ce3b5.bundle.js → 102.8f390a439b1166d02dfc.bundle.js} +1 -1
- package/dist/{105.8e0d511b2790a2c7a1f5.bundle.js → 103.72d99ecde3a89fefd670.bundle.js} +1 -1
- package/dist/{106.dfa270c46faceb444b3a.bundle.js → 104.98d56a71a8f6a5ff64ea.bundle.js} +1 -1
- package/dist/{107.7e47259d1a1e92cc684a.bundle.js → 105.12b885c6444a5219c221.bundle.js} +1 -1
- package/dist/{108.9d2fca01799579fd246a.bundle.js → 106.fa5a9881c58561d01fa4.bundle.js} +1 -1
- package/dist/{109.41cc535019ec49b7a449.bundle.js → 107.8f82ac07ee85e2a93ab3.bundle.js} +1 -1
- package/dist/{110.087f1045498ced6386ac.bundle.js → 108.7ff2d5d23bbda4d88a1a.bundle.js} +1 -1
- package/dist/{111.d77e3e60f2db63fcd713.bundle.js → 109.12bd1649904972a98663.bundle.js} +1 -1
- package/dist/11.1e4ce052969da4ec467a.bundle.js +1 -0
- package/dist/{112.6b5fac36fea6ec10ccf7.bundle.js → 110.7300200239d1ee623512.bundle.js} +1 -1
- package/dist/{113.85c3c663f3681b21e49d.bundle.js → 111.f7326ad17e5593c94835.bundle.js} +1 -1
- package/dist/{114.635dc2e74009c95bf91e.bundle.js → 112.a1bd3ac14a4da898cedf.bundle.js} +1 -1
- package/dist/{115.47fe6316b11ce761e8d3.bundle.js → 113.72cf17a0551042b00a02.bundle.js} +1 -1
- package/dist/{116.511ed0fc7766ce1c5dbe.bundle.js → 114.8d19cc8892fdd7942e2f.bundle.js} +1 -1
- package/dist/{117.ff4f162729afc19137ca.bundle.js → 115.3f1cd0e93ad82cf6b69f.bundle.js} +1 -1
- package/dist/{118.ce4cb2610bcae2cec5b4.bundle.js → 116.398b19ec70a01de4ce52.bundle.js} +1 -1
- package/dist/{119.e2a1ccb260af6cddd91c.bundle.js → 117.50681e99e4510072e66b.bundle.js} +1 -1
- package/dist/{120.3be53a400b5e5d0b8bbf.bundle.js → 118.53211c6479737de11ed9.bundle.js} +1 -1
- package/dist/{121.4493eca5616735378bb8.bundle.js → 119.46d22c9bee61ef50c01b.bundle.js} +1 -1
- package/dist/{13.6e2d206f55eeb2c58b2b.bundle.js → 12.129bac1710909d41cca6.bundle.js} +1 -1
- package/dist/{122.d5d3e1f5e5c8f632795f.bundle.js → 120.4307a0113a7a7747b549.bundle.js} +1 -1
- package/dist/{123.eb8114707f15749a90ae.bundle.js → 121.6898eccc1bc8df4a7356.bundle.js} +1 -1
- package/dist/{124.66c3ddc58390694a3a98.bundle.js → 122.26408a7d787f3df0cbc1.bundle.js} +1 -1
- package/dist/{125.48215e946747137bf6c8.bundle.js → 123.6d98d7eb3ef96bf18ba9.bundle.js} +1 -1
- package/dist/{126.119b23fe77d130cd15f2.bundle.js → 124.814396e79ea1528bcadd.bundle.js} +1 -1
- package/dist/{127.8e57d1e19372e120aeba.bundle.js → 125.7704d5ae3e65f0c0ad6b.bundle.js} +1 -1
- package/dist/{128.96d9076518cacd42230d.bundle.js → 126.f2af80207844b711089e.bundle.js} +1 -1
- package/dist/{129.c8071eddb4e6ac450d14.bundle.js → 127.16c1c5b25804ece2d548.bundle.js} +1 -1
- package/dist/{130.4ef543acc845d7dfcc8d.bundle.js → 128.06a583ca14b4ac5e45c4.bundle.js} +1 -1
- package/dist/{131.f41a0b6b9036447b1077.bundle.js → 129.416b64e4acb547f82c63.bundle.js} +1 -1
- package/dist/{14.77134ed08934f63cbe92.bundle.js → 13.c1786f5c6bc2fc087961.bundle.js} +1 -1
- package/dist/{132.3666a6511534abe54b6a.bundle.js → 130.b361c678fba32ac6562d.bundle.js} +1 -1
- package/dist/{133.cb22542677a1fde54231.bundle.js → 131.c15bfec53e85b00cb79d.bundle.js} +1 -1
- package/dist/{134.16abd209e3e07d89821b.bundle.js → 132.7c85f8f58003f9367255.bundle.js} +1 -1
- package/dist/{135.e71755f6f0278b2943d0.bundle.js → 133.8dac84776b4b75744628.bundle.js} +1 -1
- package/dist/{136.81439d8a1b2d7dfed6c7.bundle.js → 134.9abf4e393398c16b91d1.bundle.js} +1 -1
- package/dist/{137.ae6fae38c2b6fd89a566.bundle.js → 135.82bbcf6640611b6575b7.bundle.js} +1 -1
- package/dist/{138.8885afc315c221adb64b.bundle.js → 136.ef28f0472d1ad2a6e134.bundle.js} +1 -1
- package/dist/{139.f02901e6087085176dc7.bundle.js → 137.350affdb671af6d2e2c4.bundle.js} +1 -1
- package/dist/{140.f0e54b9511ca99865d9d.bundle.js → 138.b3e0a5135b7a8e018c36.bundle.js} +1 -1
- package/dist/{141.46aad99634d1bfe2b58a.bundle.js → 139.eb62f21cd8819d9b14a1.bundle.js} +1 -1
- package/dist/{15.81ca8fb02469ee14c5e4.bundle.js → 14.45a9e6ff29ad6e81ad19.bundle.js} +1 -1
- package/dist/{142.d2aaa85171c7449f2f85.bundle.js → 140.ee112c29875667c1d7e2.bundle.js} +1 -1
- package/dist/{143.802e7b37a5e69e8637a2.bundle.js → 141.2eec2e27ea45319bbb3a.bundle.js} +1 -1
- package/dist/{144.5f21450a9ba89abcb82f.bundle.js → 142.b34c2113b75ba79ba9fa.bundle.js} +1 -1
- package/dist/{145.2ea88cbccd93fc9fa454.bundle.js → 143.06a887730c4ffd77ef31.bundle.js} +1 -1
- package/dist/{146.e7b99166958dc75f43e7.bundle.js → 144.94cc1dda9d717a311efa.bundle.js} +1 -1
- package/dist/{147.7abb3c6ae63a13eb61a5.bundle.js → 145.709d02c3b3f4840dbac3.bundle.js} +1 -1
- package/dist/{148.b9aa2392ff5063d92341.bundle.js → 146.76cb9446114fb15dfb10.bundle.js} +1 -1
- package/dist/147.d1fa3c53e209dcd18c8a.bundle.js +1 -0
- package/dist/{150.c1303d8109786b40d21a.bundle.js → 148.d251eeeae9eabc5a1f5c.bundle.js} +1 -1
- package/dist/149.77b13a81a243d0cbf851.bundle.js +1 -0
- package/dist/15.5f4ab7ef2a4a1f63a5d3.bundle.js +3 -0
- package/dist/{152.20fec292fccfef232845.bundle.js → 150.da5edc20217a07cbd434.bundle.js} +1 -1
- package/dist/{153.7413dfe6871e27f43788.bundle.js → 151.478de694bdd11580df33.bundle.js} +1 -1
- package/dist/152.cbd828fe19ae64c49b0e.bundle.js +1 -0
- package/dist/{155.dd57193f58cc7d5262b8.bundle.js → 153.f6ec5262ca4a4bcea081.bundle.js} +1 -1
- package/dist/{156.258d084f62fa73d45ded.bundle.js → 154.3d7ec0e18c461cabfa50.bundle.js} +1 -1
- package/dist/155.10b7182f0ffe111b44a6.bundle.js +1 -0
- package/dist/156.136423ede75b7ba9530f.bundle.js +1 -0
- package/dist/{159.41a2a6b6b485989a9412.bundle.js → 157.d1135728ce0aecb46fc9.bundle.js} +1 -1
- package/dist/158.831bcc3529f40565074f.bundle.js +1 -0
- package/dist/{161.cc79ca9a079e616ba9e6.bundle.js → 159.0d4d2a989dde2c9dcfd4.bundle.js} +1 -1
- package/dist/16.9f9818801f1311d1c548.bundle.js +1 -0
- package/dist/{162.78a734f7eb6bd4583f17.bundle.js → 160.25901e7d1e9efcfddae3.bundle.js} +1 -1
- package/dist/161.9c1a36c4339066cbe68c.bundle.js +1 -0
- package/dist/162.7f586cf25a04e7ba381e.bundle.js +1 -0
- package/dist/163.421bac09e2f119368bbd.bundle.js +1 -0
- package/dist/{166.92928a8fa8ec48d00349.bundle.js → 164.db70768ba152634d38f4.bundle.js} +1 -1
- package/dist/{167.b38a507dbcfd6329cf8c.bundle.js → 165.2c6da80c302eaf4952d0.bundle.js} +1 -1
- package/dist/166.a84c8d69859451341d27.bundle.js +1 -0
- package/dist/167.38ee17542babd745c664.bundle.js +1 -0
- package/dist/{170.8baf5e20de2271caf978.bundle.js → 168.0798f79dab523249695d.bundle.js} +1 -1
- package/dist/{171.a46d6b00949dbdbbc38e.bundle.js → 169.4ca73d7f05d7aa6d01c4.bundle.js} +1 -1
- package/dist/17.2db9b35b1d571bca194e.bundle.js +1 -0
- package/dist/170.2633f8666891a40b3b53.bundle.js +1 -0
- package/dist/{173.d3bbff40e6f45969410d.bundle.js → 171.e9ca43551c64a2c858f8.bundle.js} +1 -1
- package/dist/{174.6d17f7732045b6f182a0.bundle.js → 172.ba0e0a145f135fbd9a1e.bundle.js} +1 -1
- package/dist/{175.7bc87231bd4677800c77.bundle.js → 173.20d9effabf388e9fe531.bundle.js} +1 -1
- package/dist/{176.f7a1a4fdd12ad86f3d08.bundle.js → 174.1fe4bda890247a740083.bundle.js} +1 -1
- package/dist/175.cc6ed7c39b923ddb4299.bundle.js +1 -0
- package/dist/{178.cb8324bb00103fb26cfb.bundle.js → 176.42c031695297c718d8a0.bundle.js} +1 -1
- package/dist/{179.e4bea06f7e407436dce7.bundle.js → 177.439ea942901561f78fed.bundle.js} +1 -1
- package/dist/{180.bd3f5149f861a2586ffb.bundle.js → 178.606f3b4631311006531d.bundle.js} +1 -1
- package/dist/179.dee9298eaff7ca804fe6.bundle.js +1 -0
- package/dist/18.110b6bad3abb9ec5c671.bundle.js +1 -0
- package/dist/180.a9c5282fd00dfa850cd6.bundle.js +1 -0
- package/dist/{183.2f7def34c47fd1bc38b3.bundle.js → 181.405aa12d2c583eaafdf6.bundle.js} +1 -1
- package/dist/{184.a71cd41118f14e2c123f.bundle.js → 182.0274696ee0aa5b6c9451.bundle.js} +1 -1
- package/dist/183.f7e6f9e3a6798dd94e59.bundle.js +1 -0
- package/dist/{186.daffd5d0823f56ba3c54.bundle.js → 184.1dd2b7bd563e12a29962.bundle.js} +1 -1
- package/dist/{187.4b22405c17194851a1e1.bundle.js → 185.dc4d9e470a677e600772.bundle.js} +1 -1
- package/dist/{188.bce7651d7bd1e88d7689.bundle.js → 186.05148d76300df321e18c.bundle.js} +1 -1
- package/dist/187.eda8eee8785b5a0680e0.bundle.js +1 -0
- package/dist/{190.d758ca3d4a14b7273bab.bundle.js → 188.959adc9c56486a452972.bundle.js} +1 -1
- package/dist/{191.8c31e698a482ba52ca82.bundle.js → 189.181e63547567e92848c3.bundle.js} +1 -1
- package/dist/19.14ddd668089c93bf91dd.bundle.js +1 -0
- package/dist/{192.944cc89f4d31c0fd8f79.bundle.js → 190.13acdee1570928f02fa8.bundle.js} +1 -1
- package/dist/{193.fad67143e7b911118459.bundle.js → 191.af624673b174880f5c1a.bundle.js} +1 -1
- package/dist/192.26cade59922d92ea018f.bundle.js +1 -0
- package/dist/{195.7f8774fd8da98c5897a1.bundle.js → 193.dc72498d8f4a9d7694bb.bundle.js} +1 -1
- package/dist/{196.3ab76ea57aaa91d34511.bundle.js → 194.a796f2825127477c20e3.bundle.js} +1 -1
- package/dist/{197.9bbab0d7f35c2b58914f.bundle.js → 195.1e75b696f485c6b6fca4.bundle.js} +1 -1
- package/dist/{198.813986f24f2f7887e738.bundle.js → 196.5805e931460b26ad4a5a.bundle.js} +1 -1
- package/dist/{199.246f0549d7bdf7c18215.bundle.js → 197.f6ca15866fd317ce81c4.bundle.js} +1 -1
- package/dist/{200.20f4846b9ed97b60def3.bundle.js → 198.273fcfd1708f26f56eb6.bundle.js} +1 -1
- package/dist/{201.768937613e43caedd9fc.bundle.js → 199.ec4277183f52085abe9a.bundle.js} +1 -1
- package/dist/2.ea1df8df41e075241261.bundle.js +1 -0
- package/dist/20.a20a894200981942fca3.bundle.js +2 -0
- package/dist/{202.0d38d4ec1e39e8ca91b7.bundle.js → 200.e0205e5c3a9467a40e81.bundle.js} +1 -1
- package/dist/{203.a78dd70f65b08ecb58d2.bundle.js → 201.011b5f45d5d6b139f280.bundle.js} +1 -1
- package/dist/{204.e1f61ba757fbc813e6d4.bundle.js → 202.c8bff57e59aa4e74f303.bundle.js} +1 -1
- package/dist/{205.cc2c5786dff7bf31b08c.bundle.js → 203.5dfadd39e557ac9fef12.bundle.js} +1 -1
- package/dist/{206.dadf18fb31b0533b1696.bundle.js → 204.de79779706e34f5032e1.bundle.js} +1 -1
- package/dist/{207.44dbc18bb4c8fa07cc66.bundle.js → 205.00e8f73b616df868eb88.bundle.js} +1 -1
- package/dist/{208.dda72c8e3795ba716704.bundle.js → 206.2e1e3ae5058b930f4a93.bundle.js} +1 -1
- package/dist/{209.7f8b6e8e2869b51c554c.bundle.js → 207.d6ddbb8616762ae6f0bc.bundle.js} +1 -1
- package/dist/{210.6d601b172d76d9bc2c98.bundle.js → 208.a259b2628c77c1369c03.bundle.js} +1 -1
- package/dist/{211.ad09e493e9be031887e9.bundle.js → 209.42e4738f495c4ed23847.bundle.js} +1 -1
- package/dist/21.b704878037d6479425cd.bundle.js +1 -0
- package/dist/{212.364965f963bcd6331e6f.bundle.js → 210.87d2aa96caac13684413.bundle.js} +1 -1
- package/dist/{213.6c5b540986e7b24a338a.bundle.js → 211.215d0db05ecfa610099f.bundle.js} +1 -1
- package/dist/{214.3c333d59839d2bcd183e.bundle.js → 212.ddf07fc8d94be3b1de66.bundle.js} +1 -1
- package/dist/213.756b724a74b44bc22658.bundle.js +1 -0
- package/dist/{216.acdd4ee62af663ab18a1.bundle.js → 214.f64a23b8b10baf7da42e.bundle.js} +1 -1
- package/dist/{217.38ab6d3450c36fe8104f.bundle.js → 215.765acf141a867d14a124.bundle.js} +1 -1
- package/dist/{218.66399da8a64421df67c1.bundle.js → 216.3cf63784d596d5e235ff.bundle.js} +1 -1
- package/dist/{219.05c3d5e61c9bb4752e5f.bundle.js → 217.b7c16bd69c644e60a512.bundle.js} +1 -1
- package/dist/{220.069190d187dfc576daed.bundle.js → 218.6a59e7090a54cf3ba304.bundle.js} +1 -1
- package/dist/{221.3553362f556124c787a8.bundle.js → 219.e26e1228791c495b6919.bundle.js} +1 -1
- package/dist/22.b8af06e1d2e2790b4913.bundle.js +1 -0
- package/dist/{222.5ec7607217a3cb97b293.bundle.js → 220.b3d650f6f1eb2e793c02.bundle.js} +1 -1
- package/dist/{223.37d133ce14e20b0efe2d.bundle.js → 221.111039bdd9510fe42c27.bundle.js} +1 -1
- package/dist/{224.acc9afbc9e926356519a.bundle.js → 222.8581abbc351680f65d91.bundle.js} +1 -1
- package/dist/{225.ba9860341f9eba2c1f2d.bundle.js → 223.d0dd124a6d5c327a048e.bundle.js} +1 -1
- package/dist/224.8020dda71bb27bfcdf1e.bundle.js +1 -0
- package/dist/{227.357506866df2e0ba1ae1.bundle.js → 225.9af5c19f2995fa34e7a9.bundle.js} +1 -1
- package/dist/{228.21cb62126a898299b993.bundle.js → 226.0ab92e9903e639bb7757.bundle.js} +1 -1
- package/dist/{229.227a956358ad27627e2c.bundle.js → 227.7226c656c94deb5ecc39.bundle.js} +1 -1
- package/dist/{230.215c4242d4a205df5b8e.bundle.js → 228.4be01c45faa3f9de4f7d.bundle.js} +1 -1
- package/dist/{231.fd7222ca89363294fe39.bundle.js → 229.d1f59cee3bba351de770.bundle.js} +1 -1
- package/dist/23.16a255bac64b05ffd556.bundle.js +1 -0
- package/dist/230.e8c36f234b6f71d78bbb.bundle.js +1 -0
- package/dist/{233.007908cb7a913f1554ed.bundle.js → 231.8f202f795b4095f837de.bundle.js} +1 -1
- package/dist/{234.de1618094d091408fd6d.bundle.js → 232.5ec10d79c41f92780934.bundle.js} +1 -1
- package/dist/233.d95f2c134dea315d2dd5.bundle.js +1 -0
- package/dist/{236.ec2ada8b5f2aec3204f5.bundle.js → 234.42a90ae3adfb9726456b.bundle.js} +1 -1
- package/dist/24.266339ad61f39b9af3ef.bundle.js +1 -0
- package/dist/240.e4b59cea005e8dbfae8c.bundle.js +1 -0
- package/dist/{243.36fbc0c96d0a35048949.bundle.js → 241.9694459ea7511e053b62.bundle.js} +1 -1
- package/dist/{244.526affae61c05ae944d3.bundle.js → 242.3c6c65d961f60449357a.bundle.js} +1 -1
- package/dist/{245.feedc08d977143faa08e.bundle.js → 243.8b644222368011005b0f.bundle.js} +1 -1
- package/dist/{246.136fac3b1ce27662490d.bundle.js → 244.cc3ae7b054d800ca9441.bundle.js} +1 -1
- package/dist/{247.71aeac059bcf9ed9b392.bundle.js → 245.586fb24e9ebc1e0b4aa1.bundle.js} +1 -1
- package/dist/{248.94d8fea9b5ce15519623.bundle.js → 246.c84a42b38b0b62993323.bundle.js} +1 -1
- package/dist/{249.234cb407b6a647179cf2.bundle.js → 247.ef30e362546b55a50b5d.bundle.js} +1 -1
- package/dist/{250.3ed03b7e55905888d992.bundle.js → 248.8ed6bbf46c31f0879ff4.bundle.js} +1 -1
- package/dist/{251.efa949bd1ee44f4290ed.bundle.js → 249.860c17921910d1a43d59.bundle.js} +1 -1
- package/dist/25.ec463c78c52442b769e6.bundle.js +1 -0
- package/dist/{252.5705d631c738e4d8e996.bundle.js → 250.da643ae832c27f953e9c.bundle.js} +1 -1
- package/dist/{253.8752156b82db62eb4c92.bundle.js → 251.7fbd911c16728d6a6283.bundle.js} +1 -1
- package/dist/{254.986c95170a74cc76c5e5.bundle.js → 252.981bac730f9bad30f319.bundle.js} +1 -1
- package/dist/{255.53ff457cdf06dc0de427.bundle.js → 253.b942c312689020178c9c.bundle.js} +1 -1
- package/dist/{256.52e7acbbd3e7dde0df9f.bundle.js → 254.076bd5b34a6b7d8e1115.bundle.js} +1 -1
- package/dist/{257.943f597bddc0d65103c5.bundle.js → 255.be03ad6908b6de833d4d.bundle.js} +1 -1
- package/dist/{258.db5554df6956ecfc7dec.bundle.js → 256.7853ca1ab6830c2db508.bundle.js} +1 -1
- package/dist/{259.2c88332b7f1b47935a47.bundle.js → 257.01f4c14c46fd45dd041f.bundle.js} +1 -1
- package/dist/{260.d745422c537bdd9647bb.bundle.js → 258.c8e64e7625859a11b0ff.bundle.js} +1 -1
- package/dist/{261.7efff7f93f61f061f5ca.bundle.js → 259.a385ec73cb11833b4181.bundle.js} +1 -1
- package/dist/{28.2e0277168c8f14f9c085.bundle.js → 26.23c127b8b070837318ee.bundle.js} +1 -1
- package/dist/{262.3b9c687ab8c9b9282f5a.bundle.js → 260.e43175b42d263b985b5d.bundle.js} +1 -1
- package/dist/{263.9c4ce329ffd095c5d1c6.bundle.js → 261.2bae047eebea992be558.bundle.js} +1 -1
- package/dist/{264.0504ff98a1b50e9d2486.bundle.js → 262.8aefecaf7f815b9aff15.bundle.js} +1 -1
- package/dist/{265.a0af2676b1495c6231cc.bundle.js → 263.7136c86d8b49828b6429.bundle.js} +1 -1
- package/dist/{266.31dcc9c203106832e08a.bundle.js → 264.8bf092161a54870bbf74.bundle.js} +1 -1
- package/dist/{267.3befe4deb9b75cd5d7ba.bundle.js → 265.5f62c9c3fb701ddf808b.bundle.js} +1 -1
- package/dist/{268.c7dc883261346f81be82.bundle.js → 266.4e499addd26ce35e55ea.bundle.js} +1 -1
- package/dist/{269.601d4fc4300f4553d75c.bundle.js → 267.5440ae1556b33751d9b2.bundle.js} +1 -1
- package/dist/{270.e9d338a5cf954fbc1f4c.bundle.js → 268.aab6205aa7edb3f09099.bundle.js} +1 -1
- package/dist/{271.a88eeff63bbc87791af0.bundle.js → 269.f5f568e1d425a6244233.bundle.js} +1 -1
- package/dist/{29.128101fabb544e88e448.bundle.js → 27.7ad01538105d957bf331.bundle.js} +1 -1
- package/dist/{272.ddacc590a66bdb0fa651.bundle.js → 270.f82bb4696ccf4b5d7c8d.bundle.js} +1 -1
- package/dist/{273.d45db281162abbe864ae.bundle.js → 271.cc4466626691fe30998d.bundle.js} +1 -1
- package/dist/{274.eca3da80ab4f0b4a3263.bundle.js → 272.cf93def3e2644adf1a28.bundle.js} +1 -1
- package/dist/{275.509ea766eda3bbcf1562.bundle.js → 273.e8fc4ddf2f60ed82a026.bundle.js} +1 -1
- package/dist/{276.f816f19aaa4522373a5f.bundle.js → 274.0cb3918720d8d2ca11b6.bundle.js} +1 -1
- package/dist/{277.6c6b5259fa26936adf41.bundle.js → 275.60e6c15bd57abeb6ee8c.bundle.js} +1 -1
- package/dist/{278.bfc453e4fdb94806e6fc.bundle.js → 276.bbbd6f18f47d5520c905.bundle.js} +1 -1
- package/dist/{279.855b2c767116d91fdc3b.bundle.js → 277.8fc54fd58e012cd1f0aa.bundle.js} +1 -1
- package/dist/{280.95394d461866b83c32b7.bundle.js → 278.e1187ca0bff46b351ad0.bundle.js} +1 -1
- package/dist/{281.fcaf9deb44f93c85ef68.bundle.js → 279.04466635afb6e64d7ac8.bundle.js} +1 -1
- package/dist/28.6a0ab74888dd1f7e8a36.bundle.js +1 -0
- package/dist/{282.bede8a18d3e678b7895d.bundle.js → 280.b3ef6c8c4ee739c49311.bundle.js} +1 -1
- package/dist/{283.bf3ea5f6f6b8406e5401.bundle.js → 281.9daaf64b8f8682b93a32.bundle.js} +1 -1
- package/dist/{284.3f34606cfbcefb0a1a47.bundle.js → 282.2fc89fc2e98da3a8816b.bundle.js} +1 -1
- package/dist/{285.4e95ca9e283ddd26fcbf.bundle.js → 283.931924026819ac1c964b.bundle.js} +1 -1
- package/dist/{286.8c8f50e9844881f0b028.bundle.js → 284.87bc97cb9012c123c2da.bundle.js} +1 -1
- package/dist/{287.23b580771ee0d5e65d41.bundle.js → 285.2bbfda34d1ff62c49207.bundle.js} +1 -1
- package/dist/{288.6cef162ec3cec3cde603.bundle.js → 286.94c2edf183eb0f10c121.bundle.js} +1 -1
- package/dist/{289.c47fa5cd7d5468dce45f.bundle.js → 287.d2daf75cdbbf9dbba651.bundle.js} +1 -1
- package/dist/{290.b9baf8eed99b4447f086.bundle.js → 288.f5b551b80f794c12d977.bundle.js} +1 -1
- package/dist/{291.1e7bf6b667f7698ac645.bundle.js → 289.be491c4f7fc20c217bf5.bundle.js} +1 -1
- package/dist/29.1c0019dcf4a564db7e2d.bundle.js +1 -0
- package/dist/{292.44bcf6642bd3fac703b4.bundle.js → 290.f936f44743450e09683f.bundle.js} +1 -1
- package/dist/{293.184eb39d3229ef066269.bundle.js → 291.b0090e3445f86047db90.bundle.js} +1 -1
- package/dist/{294.338c276decc123976f73.bundle.js → 292.1645ce823b949ee75edd.bundle.js} +1 -1
- package/dist/{295.72eea8b2cf594acd85e6.bundle.js → 293.137bd6dfdeccd10a94de.bundle.js} +1 -1
- package/dist/{296.8f11a500bce671ed75db.bundle.js → 294.42407d707ba4fb8e968c.bundle.js} +1 -1
- package/dist/{297.71b96380e1103cd792d9.bundle.js → 295.919e557a73992b387dd1.bundle.js} +1 -1
- package/dist/{298.39626a266f47903126bf.bundle.js → 296.66ba01ad0a0c3d074e2b.bundle.js} +1 -1
- package/dist/297.827106e11a72d857d710.bundle.js +1 -0
- package/dist/298.245784b3fbd6909cdfc5.bundle.js +1 -0
- package/dist/{301.e9495589c306b342c312.bundle.js → 299.f1d80ccd9e4a78d89129.bundle.js} +1 -1
- package/dist/3.a0968fec6ca583271d28.bundle.js +1 -0
- package/dist/30.307a7732f3e8cbc0f2b7.bundle.js +1 -0
- package/dist/{302.d16e044e23278bf1e922.bundle.js → 300.9bfce907e964f951998b.bundle.js} +1 -1
- package/dist/{303.85715cdc00dfd6ef1521.bundle.js → 301.d83ff23e8ac958e56ea9.bundle.js} +1 -1
- package/dist/{304.e055e669c9bad5898984.bundle.js → 302.367b3dc39da91ac09ff1.bundle.js} +1 -1
- package/dist/31.ad98b4525b6eaedc42d2.bundle.js +1 -0
- package/dist/{34.b03038da5530dcb82c85.bundle.js → 32.cd489c16343f1547e1b9.bundle.js} +1 -1
- package/dist/{36.780bcf12c8d8b5742eac.bundle.js → 33.84fc1d8f87e96b8091b9.bundle.js} +2 -2
- package/dist/{37.2204724b4ae08556283e.bundle.js → 34.f4f7924a61cc4fd163c0.bundle.js} +1 -1
- package/dist/{38.0edff4c7b76c9652f664.bundle.js → 35.d88c2fff2aab2ffddf4f.bundle.js} +1 -1
- package/dist/36.b9b7ecc323336c266691.bundle.js +1 -0
- package/dist/{40.53352fda81f370182e99.bundle.js → 37.b2eacd134bb8dbe31f01.bundle.js} +1 -1
- package/dist/38.d4c45ffb94b7a17c39fd.bundle.js +1 -0
- package/dist/39.ffcd8a113e3c41e7d53e.bundle.js +2 -0
- package/dist/4.116bbd190f1157a6921c.bundle.js +1 -0
- package/dist/{42.6a677110f335d516813b.bundle.js → 40.5ce3ecf428e752325ce0.bundle.js} +1 -1
- package/dist/{43.bcf30fa642d63c585962.bundle.js → 41.15fb8a6b14629c4972f7.bundle.js} +1 -1
- package/dist/{44.f3060f0a04c90bc70a36.bundle.js → 42.0be29705143c0f55754c.bundle.js} +1 -1
- package/dist/{45.001b1bcbff1d7c9b3288.bundle.js → 43.8d65c979cd838b853b63.bundle.js} +1 -1
- package/dist/44.da555f9fb3234433fb89.bundle.js +1 -0
- package/dist/{47.7e030d52af57062c6527.bundle.js → 45.28b8f09d1e9d8863466a.bundle.js} +1 -1
- package/dist/46.e0aaab0275a5daa915fb.bundle.js +1 -0
- package/dist/{49.319507fd2417a71a157e.bundle.js → 47.da00b3e415e6ab3ad844.bundle.js} +1 -1
- package/dist/{50.91efd0f7c94e635eb31b.bundle.js → 48.f96d41ba47116885d216.bundle.js} +1 -1
- package/dist/49.9ebf8108539ce1f8b74d.bundle.js +1 -0
- package/dist/5.c29f8701976d207a6919.bundle.js +1 -0
- package/dist/{52.37332ab2c0675e0a802c.bundle.js → 50.5fd40c34c511dfa22f8b.bundle.js} +1 -1
- package/dist/{53.967c8f3d2a9f33fcfc27.bundle.js → 51.8415a058adc11cbf8a14.bundle.js} +1 -1
- package/dist/{54.07a064723a033340c51b.bundle.js → 52.f9ee6a89efd3a7e9fd51.bundle.js} +1 -1
- package/dist/53.4265bc358bc3b5cca5a4.bundle.js +1 -0
- package/dist/{56.0bfd1ac12b2c5f9116e5.bundle.js → 54.133e728971f89a8e0d3a.bundle.js} +1 -1
- package/dist/{57.19a0ece12b6fb894221d.bundle.js → 55.2b364ea650af300608e0.bundle.js} +1 -1
- package/dist/{58.b741d32027a50f883617.bundle.js → 56.29b48516e2e73a3e1b29.bundle.js} +1 -1
- package/dist/{59.01fd6bb0dea0e31b8c98.bundle.js → 57.6c9af5197688f79e8675.bundle.js} +1 -1
- package/dist/{60.dd84d15683316fe6c548.bundle.js → 58.a9a3c5ffe7f97301a2ec.bundle.js} +1 -1
- package/dist/59.e2de9332456e128e1c3f.bundle.js +1 -0
- package/dist/6.cdc38fb8040caf996003.bundle.js +1 -0
- package/dist/{62.3cda5cf1c8a74f8bccc6.bundle.js → 60.955d8da3c53169d7205d.bundle.js} +1 -1
- package/dist/{63.dbce2c16115eac52fed2.bundle.js → 61.3a20814ff6c5fea702d9.bundle.js} +1 -1
- package/dist/{64.0b46f2876921c15c0f4d.bundle.js → 62.9644e637e02a5770b6a4.bundle.js} +1 -1
- package/dist/{65.4c044f55fb8e826c87a0.bundle.js → 63.6d4a56f723d90ae19555.bundle.js} +1 -1
- package/dist/{66.c8b9472b02654a17b61c.bundle.js → 64.a041a3018736d944e5aa.bundle.js} +1 -1
- package/dist/65.759e83f734aeab0853f8.bundle.js +1 -0
- package/dist/{68.b4bf34276a3cab5e48bf.bundle.js → 66.df1173ecaf2088be36ee.bundle.js} +1 -1
- package/dist/{69.68337b9a2e3104600ff6.bundle.js → 67.e333ec7c96c4980ee2d3.bundle.js} +1 -1
- package/dist/{70.e04eced6ee3b7d712377.bundle.js → 68.ea384709d1399d211cca.bundle.js} +1 -1
- package/dist/{71.0fbdedcc573e4e38ff6a.bundle.js → 69.b968cbe52b7a2acf9e99.bundle.js} +1 -1
- package/dist/7.c985236adfb3c067648d.bundle.js +1 -0
- package/dist/{72.e71caf5330e0c1cece04.bundle.js → 70.c4416409494f2015cc8b.bundle.js} +1 -1
- package/dist/{73.298162fe9ad207efe8a5.bundle.js → 71.3d87735a3b040e7c79ee.bundle.js} +1 -1
- package/dist/{74.b57c202b34d9d8effbcb.bundle.js → 72.a01a5ccb7c26b69292e0.bundle.js} +1 -1
- package/dist/{75.8be72a221b92aa667da7.bundle.js → 73.41d5ad3b863d7a14f5b2.bundle.js} +1 -1
- package/dist/{76.0f45a150d03cf8aeeb9d.bundle.js → 74.bb41ab402efe208fb700.bundle.js} +1 -1
- package/dist/{77.257e393d86a8fb9f2102.bundle.js → 75.af70850bcca5fc42b260.bundle.js} +1 -1
- package/dist/{78.83432ef1cff39b57aa50.bundle.js → 76.0b8b64f67c935c1c3065.bundle.js} +1 -1
- package/dist/{79.74e2421bfb8f6c563a99.bundle.js → 77.a56fde66d77cccc9be38.bundle.js} +1 -1
- package/dist/{80.53a2f5637376be338bb5.bundle.js → 78.ed62d2c25ad804cebcee.bundle.js} +1 -1
- package/dist/79.15e1d5fba56212c7b222.bundle.js +1 -0
- package/dist/8.53ec914a57b159b4b4e0.bundle.js +2 -0
- package/dist/{82.bde6d42f833167581069.bundle.js → 80.57027e2004ec61c9bce6.bundle.js} +1 -1
- package/dist/{83.4bb7fb45433f0902ba64.bundle.js → 81.8fbf589fc278c9fc6cd1.bundle.js} +1 -1
- package/dist/{84.3fe74c343dd811256a58.bundle.js → 82.fd84aea609932f33149e.bundle.js} +1 -1
- package/dist/83.408e04cc00612d0c5034.bundle.js +1 -0
- package/dist/{86.b6a6584bb48c2eba7793.bundle.js → 84.104b360a022a82d3d431.bundle.js} +1 -1
- package/dist/{87.66c82919414d84bf1c91.bundle.js → 85.56e455f5909b8e456315.bundle.js} +1 -1
- package/dist/{88.a54c809c84dbef177321.bundle.js → 86.5ae258f97d33c9e2bac2.bundle.js} +1 -1
- package/dist/{89.08dc723465581d17e18c.bundle.js → 87.78e39a400ef742fdc4f6.bundle.js} +1 -1
- package/dist/{90.82bdd586c3a8e362fd99.bundle.js → 88.6aba71135091bfc9fde7.bundle.js} +1 -1
- package/dist/{91.743cdf86c0680be894c9.bundle.js → 89.82e90b57d9218ee228d1.bundle.js} +1 -1
- package/dist/9.8c444a097dfa1f4fc1d6.bundle.js +1 -0
- package/dist/{92.c68c7391efc7d3b46a0d.bundle.js → 90.e34702a25a740eaa84d9.bundle.js} +1 -1
- package/dist/{93.daf27be7933412f1637f.bundle.js → 91.331fb33f3a30873e5acf.bundle.js} +1 -1
- package/dist/{94.e7ab23159456b757afa9.bundle.js → 92.a807edf9807fae0390f5.bundle.js} +1 -1
- package/dist/{95.522b5e309c1f6989ec42.bundle.js → 93.3836d8bec6b880f5f00f.bundle.js} +1 -1
- package/dist/94.38ac6b17fd2048195b9f.bundle.js +1 -0
- package/dist/{97.f221163ec5e99caa0668.bundle.js → 95.f1a6cb7b5775d3ec0a54.bundle.js} +1 -1
- package/dist/{98.1f20ae086eeefbf60b9f.bundle.js → 96.4799936a1a9981debf12.bundle.js} +1 -1
- package/dist/{99.c4df74a95a465a7bc7e6.bundle.js → 97.ad0efbb2a15caab3900c.bundle.js} +1 -1
- package/dist/98.2f408d915541eb7325f6.bundle.js +1 -0
- package/dist/{101.d85136c82944d96009d8.bundle.js → 99.2edf19df247671ac729e.bundle.js} +1 -1
- package/dist/bundle.6889faeb98ccadaf4971.bundle.js +95 -0
- package/dist/css/bootstrap-graphdb-theme-dark-auto.css +4 -0
- package/dist/css/create-similarity-index.css +0 -4
- package/dist/css/graphs-config.css +0 -4
- package/dist/css/jdbc-create.css +0 -4
- package/dist/css/lib/ontotext-yasgui-web-component.css +0 -4
- package/dist/css/sparql-templates.css +0 -4
- package/dist/css/ux-test1.css +29 -0
- package/dist/i18n/locale-en.json +2 -1
- package/dist/i18n/locale-fr.json +1 -0
- package/dist/index.html +4 -4
- package/dist/js/angular/core/directives/autocomplete/templates/autocomplete.html +1 -1
- package/dist/js/angular/core/directives/operations-statuses-monitor/templates/operations-statuses-monitor.html +1 -1
- package/dist/js/angular/core/directives/rdfresourcesearch/templates/rdfResourceSearchTemplate.html +1 -1
- package/dist/js/angular/core/directives/yasgui-component/templates/yasgui-component.html +1 -1
- package/dist/js/angular/security/templates/user.html +1 -1
- package/dist/license-checker.json +28 -28
- package/dist/{main.d3e9ca1041e746ba3275.bundle.js → main.76ebe9b83ab7126decff.bundle.js} +1 -1
- package/dist/{main.cd9080d130335332d006.css → main.b830c2fc237abd684f41.css} +1 -1
- package/dist/pages/aclmanagement.html +2 -2
- package/dist/pages/autocomplete.html +1 -1
- package/dist/pages/choose-repository-type.html +1 -1
- package/dist/pages/cluster-management/clusterInfo.html +3 -3
- package/dist/pages/create-index.html +1 -1
- package/dist/pages/dependencies.html +1 -1
- package/dist/pages/domainRangeInfo.html +2 -2
- package/dist/pages/edit.html +1 -1
- package/dist/pages/explore.html +1 -1
- package/dist/pages/export.html +1 -1
- package/dist/pages/find.html +1 -1
- package/dist/pages/graph-config/saveGraphConfig.html +8 -8
- package/dist/pages/graphs-visualizations.html +7 -7
- package/dist/pages/guides.html +1 -1
- package/dist/pages/import.html +1 -1
- package/dist/pages/jdbc-create.html +1 -1
- package/dist/pages/monitor/backup-and-restore.html +1 -1
- package/dist/pages/monitor/queries.html +2 -2
- package/dist/pages/monitor/resources.html +1 -1
- package/dist/pages/namespaces.html +2 -2
- package/dist/pages/plugins.html +1 -1
- package/dist/pages/rdfClassHierarchyInfo.html +7 -7
- package/dist/pages/rdfrank.html +2 -2
- package/dist/pages/repositories.html +1 -1
- package/dist/pages/repository.html +1 -1
- package/dist/pages/similarity-indexes.html +15 -14
- package/dist/pages/sparql-editor.html +1 -1
- package/dist/pages/sparql-template-create.html +1 -1
- package/dist/pages/ux-test1.html +366 -7
- package/dist/pages/webapi.html +2 -2
- package/dist/{polyfills-dom.e5e420bcb04603449d09.bundle.js → polyfills-dom.59ab8363dbbecc1db604.bundle.js} +1 -1
- package/dist/res/swagger/index.html +27 -27
- package/dist/{vendor.32f2a17d79d66db88bba.bundle.js → vendor.818dd76a72115a025897.bundle.js} +4 -4
- package/dist/{vendors~polyfills-core-js.efe4b0ec258663b8b247.bundle.js → vendors~polyfills-core-js.f6efd5dde1f7469bf024.bundle.js} +1 -1
- package/package.json +3 -3
- package/dist/0.a3b3bef411c35bdc8be5.bundle.js +0 -25
- package/dist/1.aab0f9b3a664ffdd46a3.bundle.js +0 -1
- package/dist/10.c86a39a390b36ec08b90.bundle.js +0 -1
- package/dist/100.534f37dd58edf9a6d699.bundle.js +0 -1
- package/dist/11.5146ccccd430bce59f6c.bundle.js +0 -7
- package/dist/12.75466fc44ea53c351a67.bundle.js +0 -1
- package/dist/149.c2b7461cdb7018d8a7ac.bundle.js +0 -1
- package/dist/151.b909ba9cb2419e0f91dd.bundle.js +0 -1
- package/dist/154.19d1b00bfc1e419adc42.bundle.js +0 -1
- package/dist/157.60074b591e62c10a77ed.bundle.js +0 -1
- package/dist/158.742c03d8e739b04df049.bundle.js +0 -1
- package/dist/16.af6bc53be819045291bd.bundle.js +0 -3
- package/dist/160.7616cb8b729cfbe229fb.bundle.js +0 -1
- package/dist/163.5dbf48d936a3c831c9b5.bundle.js +0 -1
- package/dist/164.d3220f317e31f573b335.bundle.js +0 -1
- package/dist/165.4b88e7b3b3a273cb4ed1.bundle.js +0 -1
- package/dist/168.c52d0bbbd4224ddadd7c.bundle.js +0 -1
- package/dist/169.f6823be6839682f8586c.bundle.js +0 -1
- package/dist/17.31f5971e39936437eda8.bundle.js +0 -1
- package/dist/172.9b5d17e5c772c53243e9.bundle.js +0 -1
- package/dist/177.1023531c905d87b8a4ac.bundle.js +0 -1
- package/dist/18.a18e024d172531f968fa.bundle.js +0 -1
- package/dist/181.393af0e6c19d537f775b.bundle.js +0 -1
- package/dist/182.9b7c235aa984ad81ab02.bundle.js +0 -1
- package/dist/185.31a5c2ddc3afdffdc9e5.bundle.js +0 -1
- package/dist/189.4456ac2b4559c9c4e808.bundle.js +0 -1
- package/dist/19.ec4fc8946a6edb7dc7c9.bundle.js +0 -1
- package/dist/194.a4f892be39e071e2552a.bundle.js +0 -1
- package/dist/2.907f954e4f9e0697612c.bundle.js +0 -1
- package/dist/20.b6d679aabf452ffe8369.bundle.js +0 -1
- package/dist/21.72126081137288bb650e.bundle.js +0 -1
- package/dist/215.a95cf561d38004eff071.bundle.js +0 -1
- package/dist/22.8ee5985085ab2c4b99f1.bundle.js +0 -2
- package/dist/226.0a305eb2e34c9d3fb3ce.bundle.js +0 -1
- package/dist/23.a5165fa6e171a8db712b.bundle.js +0 -1
- package/dist/232.ddae678620e7c15b8ec4.bundle.js +0 -1
- package/dist/235.97d46a9b6277079ae6cc.bundle.js +0 -1
- package/dist/24.498f1aefa71ceb33d2f8.bundle.js +0 -1
- package/dist/242.3b1c3384513df758e880.bundle.js +0 -1
- package/dist/25.5a98f7b1bf5b195fa51f.bundle.js +0 -1
- package/dist/26.8bd9dc57add455291ab8.bundle.js +0 -1
- package/dist/27.92bfb161b420732902a3.bundle.js +0 -1
- package/dist/299.d3636e77b768f4300e8c.bundle.js +0 -1
- package/dist/3.e877f5e49ef930b8b905.bundle.js +0 -1
- package/dist/30.1ffda412dea3c5f55c24.bundle.js +0 -1
- package/dist/300.c9844b95b03ac7295e4f.bundle.js +0 -1
- package/dist/31.1e6ed4b31ac8c0dc44cd.bundle.js +0 -1
- package/dist/32.08cc7807b71cf869e6e2.bundle.js +0 -1
- package/dist/33.601eab9a8c9d80755599.bundle.js +0 -1
- package/dist/35.d337b2f1aeac7bab3100.bundle.js +0 -2
- package/dist/39.f691f87a4527e58da4a2.bundle.js +0 -1
- package/dist/4.fe432ceb2b88c03018b3.bundle.js +0 -1
- package/dist/41.5a0ecbdf78c48ddce365.bundle.js +0 -1
- package/dist/46.7682ca54e79000d992ab.bundle.js +0 -1
- package/dist/48.669aedf81599ca0aee35.bundle.js +0 -1
- package/dist/5.f58f4e96c07a6a7a0e06.bundle.js +0 -1
- package/dist/51.9696bc200e07cfc15860.bundle.js +0 -1
- package/dist/55.1f556c49966d089af28e.bundle.js +0 -1
- package/dist/6.0685b09a3646005a1521.bundle.js +0 -1
- package/dist/61.2fdefec6b0e4f2f01dc9.bundle.js +0 -1
- package/dist/67.958136cd17ad37887b60.bundle.js +0 -1
- package/dist/7.112cbad7864c8da551d3.bundle.js +0 -1
- package/dist/8.df1e59fdf8864051f4b0.bundle.js +0 -2
- package/dist/81.a48e2d16edd121965d2f.bundle.js +0 -1
- package/dist/85.e34e2854ea217304bf69.bundle.js +0 -1
- package/dist/9.3890e642c0ae619d2c59.bundle.js +0 -1
- package/dist/96.e01346a08ab153a02364.bundle.js +0 -1
- package/dist/bundle.4ff8ba3c9d9d1eac7a29.bundle.js +0 -89
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(window.webpackJsonp=window.webpackJsonp||[]).push([[25,170,189,190,221,233],{123:function(e,t,r){"use strict";r.r(t),r.d(t,"SparqlTemplateError",(function(){return a}));class a extends Error{}},124:function(e,t,r){"use strict";r.r(t),r.d(t,"DEFAULT_SPARQL_QUERY",(function(){return a})),r.d(t,"SparqlTemplateInfo",(function(){return s}));const a="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";class s{constructor(e=a,t=!0,r){this.query=e,this.templateID=r,this.isNewTemplate=t,this.templateExist=!1,this.isValidTemplateId=!0,this.isValidQuery=!0,this.isValidQueryMode=!0}}},196:function(e,t){angular.module("graphdb.framework.rest.sparql-templates.service",[]).factory("SparqlTemplatesRestService",r),r.$inject=["$http"];function r(e){return{getSparqlTemplates:function(t){return e.get(`rest/repositories/${t}/sparql-templates`)},getSparqlTemplate:function(t,r){return e.get(`rest/repositories/${r}/sparql-templates/configuration`,{params:{templateID:t}})},createSparqlTemplate:function(t,r){return e.post(`rest/repositories/${r}/sparql-templates`,{templateID:t.templateID,query:t.query})},updateSparqlTemplate:function(t,r){return e.put(`rest/repositories/${r}/sparql-templates`,t.query,{params:{templateID:t.templateID},headers:{"Content-Type":"text/plain"}})},deleteSparqlTemplate:function(t,r){return e.delete(`rest/repositories/${r}/sparql-templates`,{params:{templateID:t}})}}}},198:function(e,t,r){"use strict";r.r(t);r(7),r(24),r(28),r(64),r(27),r(32);var a=r(0),s=r(124),n=r(123),i=r(62),l=r(61),o=r(14);function p(e,t,r,a,s,n,i){e.pluginName="sparql-template",e.setPluginIsActive=function(t){e.pluginIsActive=t},e.getSparqlTemplates=function(){n.isLicenseValid()&&t.getActiveRepository()&&!t.isActiveRepoOntopType()&&!t.isActiveRepoFedXType()?r.getSparqlTemplates(t.getActiveRepository()).success((function(t){e.sparqlTemplateIds=t})).error((function(e){const t=getError(e);a.error(t,i.instant("sparql.template.get.templates.error"))})):e.sparqlTemplateIds=[]},e.$watch((function(){return t.getActiveRepository()}),(function(){e.getSparqlTemplates()})),e.deleteTemplate=function(n){s.openSimpleModal({title:i.instant("common.warning"),message:i.instant("sparql.template.delete.template.warning",{templateID:n}),warning:!0}).result.then((function(){r.deleteSparqlTemplate(n,t.getActiveRepository()).success((function(){a.success(n,i.instant("sparql.template.delete.template.success")),e.getSparqlTemplates()})).error((function(e){a.error(getError(e),i.instant("sparql.template.delete.template.failure",{templateID:n}))}))}))}}function c(e,t,r,p,c,m,u,d,f,g,q,T,h,I,w,y){e.initialQuery=s.DEFAULT_SPARQL_QUERY,e.sparqlTemplateInfo=new s.SparqlTemplateInfo(e.initialQuery),e.title="",e.saveOrUpdateExecuted=!1,e.isDirty=!1,e.language=y.getLanguage(),e.canEditActiveRepo=!1;let v=!0;e.saveTemplate=function(){e.saveOrUpdateExecuted=!0,$()||C();const t=e.sparqlTemplateInfo.isNewTemplate?S:P;x(e.sparqlTemplateInfo).then(k).then(R).then(Q).then(t).then(M).catch(e=>{e instanceof n.SparqlTemplateError||console.log(e)})},e.isTemplateIdValid=e=>q.isValidIri(e,e.toString()),e.markDirty=()=>{e.isDirty=!0},e.markPristine=()=>{e.isDirty=!1};const E=(t,r=s.DEFAULT_SPARQL_QUERY)=>{e.sparqlTemplateInfo.query=r,e.sparqlTemplateInfo.templateID=V(),e.sparqlTemplateInfo.isNewTemplate=!e.sparqlTemplateInfo.templateID,j(),e.yasguiConfig={showEditorTabs:!1,showToolbar:!1,showResultTabs:!1,showYasqeActionButtons:!1,showYasqeResizer:!1,yasqeActionButtons:o.DISABLE_YASQE_BUTTONS_CONFIGURATION,showQueryButton:!1,initialQuery:e.sparqlTemplateInfo.query,componentId:"sparql-template",prefixes:t,render:l.RenderingMode.YASQE,maxPersistentResponseSize:0,yasqeMode:e.canEditActiveRepo?i.YasqeMode.WRITE:i.YasqeMode.PROTECTED}},S=e=>D(e).then(b).then(A),D=t=>f.getSparqlTemplates(c.getActiveRepository()).then((function(r){return t.templateExist=r.data.find(t=>t===e.sparqlTemplateInfo.templateID),t})).catch((function(e){const t=getError(e);return p.error(t,h.instant("sparql.template.get.templates.error")),Promise.reject(new n.SparqlTemplateError("Failed to retrieve sparql templates."))})),R=e=>U().isQueryValid().then(t=>(e.isValidQuery=t,e.isValidQuery?e:Promise.reject(new n.SparqlTemplateError("Invalid query.")))),$=()=>e.sparqlTemplateInfo.isNewTemplate||e.isDirty,b=e=>new Promise((t,r)=>{if(e.templateExist){const s=Object(a.decodeHTML)(h.instant("sparql.template.existing.template.error",{templateID:e.templateID})),i=h.instant("common.confirm.save");F(i,s,()=>t(e),()=>r(new n.SparqlTemplateError("Save not confirmed.")))}else t(e)});function A(t){return f.createSparqlTemplate(t,c.getActiveRepository()).then((function(){return t.isNewTemplate=!1,e.markPristine(),p.success(t.templateID,h.instant("save.sparql.template.success.msg")),t})).catch((function(e){const r=getError(e);return p.error(r,h.instant("save.sparql.template.failure.msg",{templateID:t.templateID})),Promise.reject(new n.SparqlTemplateError("Failed to save the new template: "+t.templateID))}))}const P=t=>f.updateSparqlTemplate(t,c.getActiveRepository()).then((function(){return t.isNewTemplate=!1,e.markPristine(),p.success(e.sparqlTemplateInfo.templateID,h.instant("update.sparql.template.success.msg")),t})).catch((function(e){const r=getError(e);return p.error(r,h.instant("save.sparql.template.failure.msg",{templateID:t.templateID})),Promise.reject(new n.SparqlTemplateError("Failed to update the template: "+t.templateID))})),k=e=>U().getQuery().then(t=>(e.query=t,e)),Q=e=>U().getQueryMode().then(t=>(e.isValidQueryMode="update"===t,e.isValidQueryMode?e:Promise.reject(new n.SparqlTemplateError("Query mode is not valid.")))),x=t=>new Promise((r,a)=>{t.templateID?(t.isValidTemplateId=e.isTemplateIdValid(t.templateID),t.isValidTemplateId?r(t):a(new n.SparqlTemplateError("Template identifier is not valid."))):a(new n.SparqlTemplateError("A required template identifier is missing."))}),M=()=>{setTimeout((function(){C()}),1e3)},V=()=>{const e=r.hash()||"";return(r.search().templateID||"")+(e?"#"+e:"")},j=()=>{e.title=(e.sparqlTemplateInfo.templateID?h.instant("edit"):h.instant("common.create.btn"))+" "+h.instant("view.sparql.template.title")},C=()=>{r.url("/sparql-templates")},L=(t,r)=>{e.queryIsRunning=t,e.loaderMessage=e.queryIsRunning?r:""},U=()=>o.YasguiComponentDirectiveUtil.getOntotextYasguiElement("#query-editor"),F=(e,t,r,a)=>{T.openSimpleModal({title:e,message:t,warning:!0}).result.then((function(){angular.isFunction(r)&&r()}),(function(){angular.isFunction(a)&&a()}))},N=()=>{window.removeEventListener("beforeunload",O),Y.forEach(e=>e())},O=t=>{e.isDirty&&(t.returnValue=!0)},Y=[];Y.push(e.$on("queryChanged",(t,r)=>{r.dirty?e.markDirty():e.markPristine()})),Y.push(t.$on("$translateChangeSuccess",()=>{e.language=y.getLanguage(),j()})),Y.push(e.$on("$locationChangeStart",(t,a)=>{if(e.isDirty){t.preventDefault();const e=h.instant("common.confirm"),s=h.instant("jdbc.warning.unsaved.changes");F(e,s,()=>{N();const e=r.absUrl().length-r.url().length,t=a.substring(e);r.path(t)})}else N()})),Y.push(w.subscribe("repositoryWillChangeEvent",t=>new Promise((function(r){if(e.sparqlTemplateInfo.isNewTemplate)return void r(t);const a=()=>{e.isDirty=!1,C(),r(t)};if(e.isDirty){const e=()=>{t.cancel=!0,r(t)},s=h.instant("common.confirm"),n=h.instant("jdbc.warning.unsaved.changes");F(s,n,a,e)}else a()})))),Y.push(e.$on("$destroy",N)),window.addEventListener("beforeunload",O);const _=()=>{const t=`${h.instant("common.refreshing.namespaces")}. ${h.instant("common.extra.message")}`;L(!0,t),e.sparqlTemplateInfo.templateID=V();const r=c.getActiveRepository();e.sparqlTemplateInfo.templateID?Promise.all([c.getPrefixes(r),f.getSparqlTemplate(e.sparqlTemplateInfo.templateID,r)]).then(([e,t])=>E(e,t.data)).finally(()=>L(!1)):c.getPrefixes(r).then(e=>E(e)).finally(()=>L(!1))};Y.push(e.$watch(e.getActiveRepositoryObject,t=>{t&&(e.canEditActiveRepo=e.canWriteActiveRepo(),v?(_(),v=!1):C())}))}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",c),p.$inject=["$scope","$repositories","SparqlTemplatesRestService","toastr","ModalService","$licenseService","$translate"],c.$inject=["$scope","$rootScope","$location","toastr","$repositories","$window","$timeout","$interval","SparqlTemplatesRestService","RDF4JRepositoriesRestService","UriUtils","ModalService","$translate","$q","EventEmitterService","$languageService"]},283:function(e,t,r){"use strict";r.r(t);r(7),r(25),r(126),r(24),r(198),r(196),r(27),r(78);angular.module("graphdb.framework.sparql-template",["toastr","ui.bootstrap","graphdb.framework.sparql-template.controllers","graphdb.framework.core.services.repositories","graphdb.framework.core.directives","graphdb.framework.rest.sparql-templates.service","graphdb.framework.utils.uriutils","graphdb.framework.core.directives.yasgui-component"])},62:function(e,t,r){"use strict";r.r(t),r.d(t,"YasqeMode",(function(){return a}));const a={WRITE:"WRITE",READ:"READ",PROTECTED:"PROTECTED"}},64:function(e,t){function r(e,t){return{showToastMessageWithDelay:function(r){return new Promise(a=>{e.success(t.instant(r)),setTimeout(a,200)})}}}angular.module("graphdb.framework.utils.notifications",[]).factory("Notifications",r),r.$inject=["toastr","$translate"]}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(window.webpackJsonp=window.webpackJsonp||[]).push([[26,64,136,163,164,170,233],{158:function(e,r,t){"use strict";t.r(r);t(64),t(10);var s=t(62),a=t(61),i=t(14),n=t(73),o=t(93);function u(e,r,t,u,p,c,d,h,g,y,l,Q,f,m,I,w){let R;e.newConfig=new n.GraphsConfig,e.revertConfig=void 0,e.page=1,e.totalPages=5,e.helpHidden=1===f.get(m.HIDE_GRAPH_CONFIG_HELP),e.isUpdate=!1,e.shared=!1,e.canEditActiveRepo=e.canWriteActiveRepo(),e.samples=[],e.tabConfig={inference:e.newConfig.startQueryIncludeInferred,sameAs:e.newConfig.startQuerySameAs},e.getAutocompletePromise=void 0,e.getNamespacesPromise=void 0,e.tabsViewModel=[{page:1,label:I.instant("starting.point.label"),type:"startGraphQuery"},{page:2,label:I.instant("graph.expansion"),type:"expandQuery"},{page:3,label:I.instant("node.basics"),type:"resourceQuery"},{page:4,label:I.instant("edge.basics"),type:"predicateLabelQuery"},{page:5,label:I.instant("node.extra"),type:"resourcePropertiesQuery"}];const _=y.configName,C=p.getActiveRepository();e.toggleHelp=r=>{void 0===r&&(r=f.get(m.HIDE_GRAPH_CONFIG_HELP)),1!==r?(f.set(m.HIDE_GRAPH_CONFIG_HELP,1),e.helpHidden=!0):(f.set(m.HIDE_GRAPH_CONFIG_HELP,0),e.helpHidden=!1)},e.fixedVisualCallback=(r,t)=>{e.newConfig.startIRI=r,e.newConfig.startIRILabel=t,R=!0},e.isDefaultGraph=e=>e.isDefaultGraph(),e.isUserGraph=e=>!e.isDefaultGraph(),e.getSampleName=(e,r)=>{if(!e)return"";const t=e.getPropertyDescription(r);return t||(e.id?"Copy of "+e.name:e.name)},e.createGraphConfig=e=>{h.createGraphConfig(e).success((async function(){await l.showToastMessageWithDelay("graphexplore.saved.new.config"),t.url("graphs-visualizations")})).error((function(e){u.error(getError(e),I.instant("graphexplore.error.could.not.create"))}))},e.updateGraphConfig=e=>{h.updateGraphConfig(e).success((async function(){await l.showToastMessageWithDelay("graphexplore.saved.config"),t.url("graphs-visualizations")})).error((function(e){u.error(getError(e),I.instant("graphexplore.error.could.not.save"))}))},e.goToPage=r=>{e.page!==r&&M(()=>{e.showEditor(),e.page=r})},e.goToPreviousPage=()=>{e.page>1&&e.goToPage(e.page-1),q()&&(R=!1)},e.goToNextPage=()=>{T(),e.newConfig.isStartMode(n.StartMode.NODE)&&!R||e.goToPage(e.page+1)},e.saveGraphConfig=()=>{T(),q()&&!R||(e.newConfig.startQueryIncludeInferred=e.tabConfig.inference,e.newConfig.startQuerySameAs=e.tabConfig.sameAs,M(()=>{e.newConfig.name?(e.queryEditorIsDirty=!1,e.isUpdate?e.updateGraphConfig(e.newConfig.toSavePayload()):e.createGraphConfig(e.newConfig.toSavePayload())):P(I.instant("graphexplore.provide.config.name"))}))},e.setQuery=async r=>{const t=r||" ";(await E()).setQuery(t),e.markDirty()},e.markDirty=async()=>{if(e.revertConfig){const r=e.revertConfig.getQueryType(e.page),t=await v();e.queryEditorIsDirty=r!==t}},e.showEditor=()=>{e.viewMode="yasr",A(),b()},e.showPreview=()=>{e.viewMode="editor",S()},e.revertEditor=()=>{e.setQuery(e.revertConfig.getQueryType(e.page)),e.queryEditorIsDirty=!1};const E=()=>i.YasguiComponentDirectiveUtil.getOntotextYasguiElementAsync("#query-editor"),S=async(r,t)=>{const s=await E(),a=await s.getQueryType();if(t&&"SELECT"!==a&&"CONSTRUCT"!==a&&"DESCRIBE"!==a)return void u.warning(I.instant("query.editor.warning.msg"));"update"!==await s.getQueryMode()?e.queryIsRunning||(e.viewMode="editor",D()):u.warning(I.instant("cannot.execute.update.error"))},D=async()=>{(await E()).query(a.RenderingMode.YASR)},b=async()=>(await E()).changeRenderMode(a.RenderingMode.YASQE),v=async()=>(await E()).getQuery(),A=async()=>(await E()).abortQuery(),M=async r=>{const t=await(async()=>{const r=await E();let t=await r.getQuery();return t=t.trim(),e.newConfig.updateModel(t,e.page)})();1===e.page?t.isStartMode(n.StartMode.NODE)&&!t.startIRI?P(I.instant("graphexplore.select.start.node")):t.isStartMode(n.StartMode.QUERY)&&!t.startGraphQuery?P(I.instant("graphexplore.provide.query")):t.isStartMode(n.StartMode.QUERY)?L(r,t.startGraphQuery,"graph"):r():2===e.page?L(r,t.expandQuery,"construct",["node"]):3===e.page?L(r,t.resourceQuery,"tuple",["node"],[],["type","label","comment","rank"]):4===e.page?L(r,t.predicateLabelQuery,"tuple",["edge"],["label"]):5===e.page&&L(r,t.resourcePropertiesQuery,"tuple",["node"],["property","value"])},G=()=>{e.tabConfig.inference=e.newConfig.startQueryIncludeInferred,e.tabConfig.sameAs=e.newConfig.startQuerySameAs,e.setQuery(e.newConfig.getQueryType(e.page))},P=e=>{u.warning(e)},x=()=>{e.getAutocompletePromise=g.checkAutocompleteStatus()},L=(e,r,t,s,a,i)=>{r?h.validateQuery(r,t,s,a,i).success(()=>{e()}).error(e=>{P(getError(e))}):e()},T=()=>{q()&&e.$broadcast("addStartFixedNodeAutomatically",{startIRI:e.newConfig.startIRI})},q=()=>1===e.page&&e.newConfig.isStartMode(n.StartMode.NODE),N=()=>{h.getGraphConfigSamples().success((function(r){e.samples=Object(o.mapGraphConfigSamplesToGraphConfigs)(r).filter(r=>!r.id||e.newConfig.id!==r.id||(e.revertConfig=r,!1))})).error((function(e){u.error(getError(e),I.instant("graphexplore.error.graph.configs"))})),x(),e.getNamespacesPromise=Q.getNamespaces(e.getActiveRepository())},Y={endpoint:()=>"/repositories/"+p.getActiveRepository(),showEditorTabs:!1,showToolbar:!1,showResultTabs:!1,showYasqeActionButtons:!1,yasqeActionButtons:i.INFERRED_AND_SAME_AS_BUTTONS_CONFIGURATION,showQueryButton:!1,initialQuery:" ",componentId:"graphs-config",render:a.RenderingMode.YASQE,maxPersistentResponseSize:0,showYasqeResizer:!1,yasqeMode:s.YasqeMode.PROTECTED,infer:e.newConfig.startQueryIncludeInferred,sameAs:e.newConfig.startQuerySameAs},O=(r,t,s)=>{e.queryIsRunning=r},$=()=>{window.removeEventListener("beforeunload",U),H.forEach(e=>e())},U=r=>{e.queryEditorIsDirty&&(r.returnValue=!0)},H=[];H.push(e.$on("autocompleteStatus",x)),H.push(e.$on("$locationChangeStart",(r,s)=>{if(e.queryEditorIsDirty){r.preventDefault();((e,r,t,s)=>{w.openSimpleModal({title:e,message:r,warning:!0}).result.then((function(){angular.isFunction(t)&&t()}),(function(){angular.isFunction(s)&&s()}))})(I.instant("common.confirm"),I.instant("visual.config.warning.unsaved.changes"),()=>{$();const e=t.absUrl().length-t.url().length,r=s.substring(e);t.path(r)})}else $()})),H.push(e.$on("$destroy",$)),H.push(e.$watch(e.getActiveRepositoryObject,()=>{(e.newConfig.isStartMode(n.StartMode.QUERY)||e.page>1)&&(e.viewMode="yasr",A().then(b))})),window.addEventListener("beforeunload",U),e.$watch("newConfig.startMode",e=>{e===n.StartMode.QUERY&&G()}),e.$watch("page",r=>{(e.newConfig.isStartMode(n.StartMode.QUERY)||r>1)&&(e.showEditor(),G())}),p.getPrefixes(C).then(r=>(r=>{const t=e.$watch((function(){return e.getActiveRepositoryObject()}),(function(a){if(a){e.canEditActiveRepo=e.canWriteActiveRepo();const a=angular.extend({},Y,{prefixes:r,yasqeMode:e.canWriteActiveRepo()?s.YasqeMode.WRITE:s.YasqeMode.PROTECTED});e.yasguiConfig=a,t()}}))})(r)).finally(()=>O(!1)),_?(e.isUpdate=!0,h.getConfig(_).then((function(r){e.newConfig=r,N()})).catch(e=>{u.error(getError(e),I.instant("created.connector",{name:_}))})):(e.isUpdate=!1,N()),e.getActiveRepository()&&(O(!0,I.instant("common.refreshing.namespaces"),I.instant("common.extra.message")),p.getPrefixes(p.getActiveRepository()).then(r=>{e.namespaces=r}).catch((function(r){e.repositoryError=getError(r)})).finally((function(){O(!1)})))}angular.module("graphdb.framework.graphexplore.controllers.graphviz.config",["graphdb.framework.utils.notifications","graphdb.framework.utils.localstorageadapter"]).controller("GraphConfigCtrl",u),u.$inject=["$scope","$timeout","$location","toastr","$repositories","SparqlRestService","$filter","GraphConfigRestService","AutocompleteRestService","$routeParams","Notifications","RDF4JRepositoriesRestService","LocalStorageAdapter","LSKeys","$translate","ModalService"]},61:function(e,r,t){"use strict";t.r(r),t.d(r,"RenderingMode",(function(){return s}));const s={YASGUI:"mode-yasgui",YASQE:"mode-yasqe",YASR:"mode-yasr"}},62:function(e,r,t){"use strict";t.r(r),t.d(r,"YasqeMode",(function(){return s}));const s={WRITE:"WRITE",READ:"READ",PROTECTED:"PROTECTED"}},64:function(e,r){function t(e,r){return{showToastMessageWithDelay:function(t){return new Promise(s=>{e.success(r.instant(t)),setTimeout(s,200)})}}}angular.module("graphdb.framework.utils.notifications",[]).factory("Notifications",t),t.$inject=["toastr","$translate"]},73:function(e,r,t){"use strict";t.r(r),t.d(r,"StartMode",(function(){return s})),t.d(r,"GraphsConfig",(function(){return a}));const s={QUERY:"query",NODE:"node",SEARCH:"search"};class a{constructor(e,r,t=s.SEARCH,a,i=!0,n=!0,o,u,p,c,d,h,g,y,l,Q,f,m,I,w,R){this._id=e,this._name=r,this._startMode=t,this._owner=a,this._startQueryIncludeInferred=i,this._startQuerySameAs=n,this._startGraphQuery=o,this._startIRI=u,this._startIRILabel=p,this._expandQuery=c,this._resourceQuery=d,this._predicateLabelQuery=h,this._resourcePropertiesQuery=g,this._shared=y,this._description=l,this._hint=Q,this._startGraphQueryDescription=f,this._expandQueryDescription=m,this._resourceQueryDescription=I,this._predicateLabelQueryDescription=w,this._resourcePropertiesQueryDescription=R}isStartMode(e){return this.startMode===e}isDefaultGraph(){return"Minimal"===this.name||"Advanced"===this.name}getPropertyDescription(e){return this[e+"Description"]}getQueryType(e){let r;return this.isStartMode(s.QUERY)&&1===e?r=this.startGraphQuery:2===e?r=this.expandQuery:3===e?r=this.resourceQuery:4===e?r=this.predicateLabelQuery:5===e&&(r=this.resourcePropertiesQuery),r||""}updateModel(e,r){return this.isStartMode(s.QUERY)&&1===r?this.startGraphQuery=e:2===r?this.expandQuery=e:3===r?this.resourceQuery=e:4===r?this.predicateLabelQuery=e:5===r&&(this.resourcePropertiesQuery=e),this}toSavePayload(){return{id:this.id,name:this.name,startMode:this.startMode,owner:this.owner,startQueryIncludeInferred:this.startQueryIncludeInferred,startQuerySameAs:this.startQuerySameAs,startGraphQuery:this.startGraphQuery,startIRI:this.startIRI,startIRILabel:this.startIRILabel,expandQuery:this.expandQuery,resourceQuery:this.resourceQuery,predicateLabelQuery:this.predicateLabelQuery,resourcePropertiesQuery:this.resourcePropertiesQuery,shared:this.shared,description:this.description,hint:this.hint}}get id(){return this._id}set id(e){this._id=e}get name(){return this._name}set name(e){this._name=e}get startMode(){return this._startMode}set startMode(e){this._startMode=e}get owner(){return this._owner}set owner(e){this._owner=e}get startQueryIncludeInferred(){return this._startQueryIncludeInferred}set startQueryIncludeInferred(e){this._startQueryIncludeInferred=e}get startQuerySameAs(){return this._startQuerySameAs}set startQuerySameAs(e){this._startQuerySameAs=e}get startGraphQuery(){return this._startGraphQuery}set startGraphQuery(e){this._startGraphQuery=e}get startIRI(){return this._startIRI}set startIRI(e){this._startIRI=e}get startIRILabel(){return this._startIRILabel}set startIRILabel(e){this._startIRILabel=e}get expandQuery(){return this._expandQuery}set expandQuery(e){this._expandQuery=e}get resourceQuery(){return this._resourceQuery}set resourceQuery(e){this._resourceQuery=e}get predicateLabelQuery(){return this._predicateLabelQuery}set predicateLabelQuery(e){this._predicateLabelQuery=e}get resourcePropertiesQuery(){return this._resourcePropertiesQuery}set resourcePropertiesQuery(e){this._resourcePropertiesQuery=e}get shared(){return this._shared}set shared(e){this._shared=e}get description(){return this._description}set description(e){this._description=e}get hint(){return this._hint}set hint(e){this._hint=e}get startGraphQueryDescription(){return this._startGraphQueryDescription}set startGraphQueryDescription(e){this._startGraphQueryDescription=e}get expandQueryDescription(){return this._expandQueryDescription}set expandQueryDescription(e){this._expandQueryDescription=e}get resourceQueryDescription(){return this._resourceQueryDescription}set resourceQueryDescription(e){this._resourceQueryDescription=e}get predicateLabelQueryDescription(){return this._predicateLabelQueryDescription}set predicateLabelQueryDescription(e){this._predicateLabelQueryDescription=e}get resourcePropertiesQueryDescription(){return this._resourcePropertiesQueryDescription}set resourcePropertiesQueryDescription(e){this._resourcePropertiesQueryDescription=e}}},93:function(e,r,t){"use strict";t.r(r),t.d(r,"mapGraphsConfigResponseToModel",(function(){return a})),t.d(r,"mapGraphConfigSampleToGraphConfig",(function(){return i})),t.d(r,"mapGraphConfigSamplesToGraphConfigs",(function(){return n}));var s=t(73);const a=e=>new s.GraphsConfig(e.id,e.name,e.startMode,e.owner,e.startQueryIncludeInferred,e.startQuerySameAs,e.startGraphQuery,e.startIRI,e.startIRILabel,e.expandQuery,e.resourceQuery,e.predicateLabelQuery,e.resourcePropertiesQuery,e.shared,e.description,e.hint),i=e=>new s.GraphsConfig(e.id,e.name,e.startMode,e.owner,e.startQueryIncludeInferred,e.startQuerySameAs,e.startGraphQuery,e.startIRI,e.startIRILabel,e.expandQuery,e.resourceQuery,e.predicateLabelQuery,e.resourcePropertiesQuery,e.shared,e.description,e.hint,e.startGraphQueryDescription,e.expandQueryDescription,e.resourceQueryDescription,e.predicateLabelQueryDescription,e.resourcePropertiesQueryDescription),n=e=>e.map(e=>i(e))}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(window.webpackJsonp=window.webpackJsonp||[]).push([[27,207,235],{102:function(e,t,n){"use strict";n.r(t),n.d(t,"removeSpecialChars",(function(){return r})),n.d(t,"toBoolean",(function(){return i}));const r=e=>e.replace(/[()']/g,""),i=e=>"string"==typeof e?"true"===e:Boolean(e)},157:function(e,t,n){"use strict";n.r(t);n(7);var r=n(400),i=n(402),o=(n(10),n(94)),s=n(102);function a(e,t,n,a,c,l,d,u,p,f,h,g,m,y,x,v,I,S,w,k,L,C,b){e.languageChanged=!1,e.propertiesObj={},e.propertiesObj.items=[],e.propertiesQueryObj={},e.propertiesQueryObj.query="",e.propertiesSearchPlaceholder=C.instant("visual.search.instance.placeholder"),e.propertiesNotFiltered=[],e.searchVisible=!1,e.nodeSelected=!1,e.queryResultsMode=!1,e.embedded=f.search().embedded,e.openedNodeInfoPanel=void 0,e.invalidLimit=!1,e.INVALID_LINKS_MSG=C.instant("sidepanel.invalid.limit.links.msg"),e.INVALID_LINKS_TOOLTIP=C.instant("sidepanel.invalid.limit.links.tooltip"),e.datasource=void 0,e.adapterContainer={adapter:{remain:!0}},e.hasInitedRepository=!1,e.defaultSettings={linksLimit:20,includeInferred:!0,sameAsState:!0,languages:["en"],showLinksText:!0,preferredTypes:[],rejectedTypes:[],preferredPredicates:[],rejectedPredicates:["http://dbpedia.org/property/logo","http://dbpedia.org/property/hasPhotoCollection","http://dbpedia.org/property/website","http://dbpedia.org/property/homepage","http://dbpedia.org/ontology/thumbnail","http://xmlns.com/foaf/0.1/depiction","http://xmlns.com/foaf/0.1/homepage","http://xmlns.com/foaf/0.1/mbox","http://dbpedia.org/ontology/wikiPage*","http://dbpedia.org/property/wikiPage*","http://factforge.net/*"],preferredTypesOnly:!1,preferredPredicatesOnly:!1,includeSchema:!0},e.saveSettings=_.cloneDeep(e.defaultSettings),e.defaultGraphConfig={id:"default",name:"Easy graph",startMode:"search"},t.key="",e.onopen=e.onclose=()=>angular.noop(),e.goToHome=()=>{P(),f.url("graphs-visualizations")},e.shouldShowSettings=()=>e.configLoaded&&e.configLoaded.id===e.defaultGraphConfig.id,e.shouldDisableSameAs=()=>{const t=$("#sameAsCheck");return e.settings&&!e.settings.includeInferred&&t.prop("checked")&&(t.prop("checked",!1),e.settings.sameAsState=!1),e.settings&&!e.settings.includeInferred},e.propertiesFilterFunc=t=>t.key.toLowerCase().indexOf(e.propertiesQueryObj.query.toLowerCase())>=0,e.toggleMoreInfo=e=>{angular.element(e.currentTarget).parent().next().toggle(200),angular.element(e.currentTarget).children("span").toggleClass("icon-caret-down").toggleClass("icon-caret-up")},e.copyToClipboard=e=>{m.openCopyToClipboardModal(e)},e.resetSettings=()=>{e.settings=_.cloneDeep(e.defaultSettings),e.validateLinksLimit(),O()},e.changeLimit=t=>{let n=e.settings.linksLimit+t;n<1&&(n=1),n>1e3&&(n=1e3),e.settings.linksLimit=n},e.validateLinksLimit=()=>{e.invalidLimit=!o.NUMBER_PATTERN.test(e.settings.linksLimit)},e.showSettings=()=>{e.showInfoPanel=!0,e.showFilter=!0,e.showNodeInfo=!1,e.showPredicates=!1,e.saveSettings?e.settings=_.cloneDeep(e.saveSettings):e.settings=_.cloneDeep(e.defaultSettings),O()},e.updateSettings=()=>{e.invalidLimit?c.error(e.INVALID_LINKS_TOOLTIP,e.INVALID_LINKS_MSG):(e.saveSettings=e.settings,e.saveSettings.languages=_.map(e.saveSettings.languagesMap,(function(e){return e.text})),e.saveSettings.preferredTypes=_.map(e.saveSettings.preferredTypesMap,(function(e){return e.text})),e.saveSettings.rejectedTypes=_.map(e.saveSettings.rejectedTypesMap,(function(e){return e.text})),e.saveSettings.preferredPredicates=_.map(e.saveSettings.preferredPredicatesMap,(function(e){return e.text})),e.saveSettings.rejectedPredicates=_.map(e.saveSettings.rejectedPredicatesMap,(function(e){return e.text})),e.rootNodeIri?E(e.rootNodeIri):e.queryResultsMode&&f.search().query?G(f.search().query,f.search().sameAs,f.search().inference):"query"===e.configLoaded.startMode&&W(e.configLoaded),M(),e.showInfoPanel=!1,e.showFilter=!1,v.set(I.GRAPHS_VIZ,e.saveSettings))},e.getGraphConfigs=t=>{w.getGraphConfigs().success((function(n){e.graphConfigs=n,t&&t()})).error((function(e){c.error(getError(e),C.instant("graphexplore.error.graph.configs.short.msg"))}))},e.findConfigById=function(t){return t===e.defaultGraphConfig.id?e.defaultGraphConfig:$.grep(e.graphConfigs,(function(e){return e.id===t}))[0]},e.easyGraphSearch=t=>{e.configLoaded=e.defaultGraphConfig,e.openUri(t)},e.deleteConfig=t=>{m.openSimpleModal({title:C.instant("common.confirm"),message:C.instant("graphexplore.delete.graph",{configName:t.name}),warning:!0}).result.then((function(){w.deleteGraphConfig(t).success((function(){e.getGraphConfigs(),e.refreshSavedGraphs()})).error((function(e){c.error(getError(e),C.instant("graphexplore.error.cannot.delete.config"))}))}))},e.goToGraphConfig=e=>{N({config:e.id},{config:e}),P(),W(e)},e.replaceIRIWithPrefix=t=>{const n=e.namespaces,r=_.findLast(n,(function(e){return 0===t.indexOf(e.uri)}));return r?r.prefix+":"+t.substring(r.uri.length):t};const T=[];t.$on("$translateChangeSuccess",(function(){e.INVALID_LINKS_MSG=C.instant("sidepanel.invalid.limit.links.msg"),e.INVALID_LINKS_TOOLTIP=C.instant("sidepanel.invalid.limit.links.tooltip"),e.propertiesSearchPlaceholder=C.instant("visual.search.instance.placeholder")})),e.$on("autocompleteStatus",(function(){ce()})),e.$on("repositoryIsSet",(function(t,n){n.newRepo&&(e.hasInitedRepository=!1),ae(n.newRepo),n.newRepo&&(P(),$(".graph-visualization svg").empty(),f.search().query&&(e.goToHome(),R()))}));T.push(t.$watch(()=>t.key,()=>{q=0,_.each(e.propertiesObj.items,(function(e){t.key>e&&q++})),H++}));T.push(e.$watch("propertiesObj.items",()=>{angular.isDefined(e.propertiesObj.items)&&e.propertiesObj.items.length>0&&l((function(){e.adapterContainer.adapter.reload()}),500)}));e.$on("$destroy",()=>{T.forEach(e=>e())});const N=(t,n)=>{e.embedded&&(t.embedded=!0),f.search(t),f.state(n)},P=()=>{e.searchVisible=!1,e.nodeSelected=!1,e.configLoaded=null,e.queryResultsMode=!1,e.lastSavedGraphName=null,e.lastSavedGraphId=null,e.shared=!1,e.numberOfPinnedNodes=0,K={},Z=0},A=()=>b.isActive()?e.defaultSettings:e.saveSettings,M=()=>{A().showLinksText?d3.selectAll("svg .link-wrapper text").style("display","block"):d3.selectAll("svg .link-wrapper text").style("display","none")},O=()=>{e.settings.languagesMap=_.map(e.settings.languages,(function(e){return{text:e}})),e.settings.preferredTypesMap=_.map(e.settings.preferredTypes,(function(e){return{text:e}})),e.settings.rejectedTypesMap=_.map(e.settings.rejectedTypes,(function(e){return{text:e}})),e.settings.preferredPredicatesMap=_.map(e.settings.preferredPredicates,(function(e){return{text:e}})),e.settings.rejectedPredicatesMap=_.map(e.settings.rejectedPredicates,(function(e){return{text:e}}))},E=()=>{e.rootNodeIri&&e.$broadcast("onRootNodeChange",e.rootNodeIri)},R=()=>{f.search().query?(e.searchVisible=!1,e.queryResultsMode=!0,G(f.search().query,f.search().sameAs,f.search().inference)):e.$on("onRootNodeChange",(function(t,n){e.loading=!0;const r=A();angular.isDefined(n)&&(e.rootNodeIri=n,k.getInstanceNode({iri:n,config:e.configLoaded?e.configLoaded.id:e.defaultGraphConfig.id,languages:e.shouldShowSettings()?r.languages:[],includeInferred:r.includeInferred,sameAsState:r.sameAsState}).then((function(t){e.nodeSelected=!0,e.searchVisible=!1,null===t.data.types&&(t.data.types="greyColor"),se=new oe;const n=se.addNode(t.data,te/2,ne/2);ee=X,Ce(n,!0)})).catch((function(t){e.loading=!1,c.error(getError(t),C.instant("graphexplore.error.could.not.load.graph"))})))})),f.search().uri&&e.openUri(f.search().uri,!0),f.search().saved&&S.getSavedGraph(f.search().saved).success((function(t){e.loadSavedGraph(t)})).error((function(e){const t=getError(e);c.error(t,C.instant("graphexplore.error.could.not.open"))}))},G=(t,n,r)=>{const i=A(),o=void 0===n?i.sameAsState:!0===n,s=void 0===r?i.includeInferred:!0===r;e.loading=!0,k.updateGraph({query:t,linksLimit:i.linksLimit,languages:e.shouldShowSettings()?i.languages:[],includeInferred:s,sameAsState:o}).then((function(e){ke(e)}),(function(t){e.loading=!1,c.error(getError(t.data),C.instant("graphexplore.error.cannot.load.graph"))}))},j=(e,t)=>{const n=e.split(" ");return t?[n[0],n[1],n[2]].join(">"):[n[0],n[2]].join(">")},z=e=>[e.source.iri,e.target.iri].join(">"),D=e=>{if(e.isTriple){const t=document.getElementById(Object(s.removeSpecialChars)(j(e.iri)));if(t&&void 0!==t.__data__.x)return t.__data__.x}return e.x},B=e=>{if(e.isTriple){const t=document.getElementById(Object(s.removeSpecialChars)(j(e.iri)));if(t&&void 0!==t.__data__.y)return t.__data__.y}return e.y},F=e=>{const t=e.trim().split(" ");return`<<<${t[0]}> <${t[1]}> <${t[2]}>>>`},U=e=>{const t=e.source.isTriple?j(e.source.iri,!0):e.source.iri,n=e.target.isTriple?j(e.target.iri,!0):e.target.iri;return Object(s.removeSpecialChars)(`${t}>${n}>marker`)},W=t=>{e.configLoaded=t,"search"===t.startMode?e.searchVisible=!0:"node"===t.startMode&&t.startIRI?l((function(){e.openUri(t.startIRI,!0)}),0):"query"===t.startMode&&t.startGraphQuery&&(e.loading=!0,w.loadGraphForConfig(t,t.startQueryIncludeInferred,A().linksLimit,t.startQuerySameAs).then((function(e){ke(e)}),(function(t){e.loading=!1,c.error(getError(t),C.instant("graphexplore.error.graph.load"))})))},V=function(){var t,n;f.search().config?(t=f.search().config,n=R,t===e.defaultGraphConfig.id?W(e.defaultGraphConfig):w.getConfig(t).then(e=>{W(e),n()}).catch(e=>{c.error(getError(e),C.instant("graphexplore.error.could.not.load.config",{configId:t}))})):f.search().query||f.search().uri?(W(e.defaultGraphConfig),R()):R()};x.onpopstate=function(t){P(),t.state&&(t.state.config?(W(t.state.config),t.state.uri&&e.openUri(t.state.uri,!0)):t.state.savedGraph&&e.loadSavedGraph(t.state.savedGraph,!0))},e.embedded&&(f.search().query||f.search().uri||f.search().config||f.search().saved)&&(e.noGoHome=!0);let q=0,H=0,K={},Z=0;const Q=16,J=d3.zoom().scaleExtent([.5,10]);let Y;const X=d3.zoomIdentity.translate(0,-70).scale(1);J.on("zoom",(function(e){b.isActive()||(ee=e.transform,Y.attr("transform",ee))}));let ee=X;const te=1e3,ne=1e3;let re,ie;function oe(){this.nodes=[],this.links=[],this.tripleNodes=new Map,this.tripleLinksCopy=new Map,this.addNode=function(e,t,n){return e.x=t,e.y=n,this.nodes.push(e),e},this.computeConnectedness=function(){const e={},t={};_.each(this.links,(function(n){const r=n.source.iri,i=n.target.iri,o=_.min([r,i])+"|"+_.max([r,i]);t[o]||(t[o]=1,e[r]=(e[r]||0)+1,e[i]=(e[i]||0)+1)})),_.each(this.links,(function(t){e[t.source.iri]>1&&e[t.target.iri]>1?t.connectedness=Math.min(5,Math.max(e[t.source.iri],e[t.target.iri])-1):t.connectedness=0}))},this.addAndMatchLinks=function(e){const t=this.nodes;Array.prototype.push.apply(this.links,function(e,t){return _.map(e,(function(e){let n,r;n=e.isTripleSource?Ae(e.source):_.find(t,(function(t){return t.iri===e.source})),r=e.isTripleTarget?Ae(e.target):_.find(t,(function(t){return t.iri===e.target}));let i={source:n,target:r,predicates:e.predicates};if(e.isTripleSource||e.isTripleTarget){let e=`${i.source.isTriple?j(i.source.iri):i.source.iri}>${i.target.isTriple?j(i.target.iri):i.target.iri}`;if(se.tripleLinksCopy.has(e)){let t=se.tripleLinksCopy.get(e);return t[0].predicates.push(...i.predicates),t.push(i),se.tripleLinksCopy.set(e,t),null}se.tripleLinksCopy.set(e,[i])}return i}))}(e,t));for(let e of se.tripleLinksCopy.keys())1===se.tripleLinksCopy.get(e).length&&se.tripleLinksCopy.delete(e);this.links=this.links.filter(e=>null!==e),this.computeConnectedness()};const t=function(e,t){return n(e,t).length};function n(e,t){return _.filter(t,(function(t){return t.source.iri===e.iri||t.target.iri===e.iri}))}this.countLinks=t,this.linksTypes=function(e,t){const r=n(e,t),i=_.map(r,(function(t){return t.source.iri===e.iri?t.target.types:t.source.types}));return _.uniq(_.flatten(i))},this.linksPredicates=function(e,t){const r=n(e,t),i=_.map(r,(function(e){return e.predicates}));return _.uniq(_.flatten(i))},this.removeTriples=function(e){let t=[];this.tripleNodes.size>0&&e.forEach(e=>{this.tripleNodes.has(e)&&(this.tripleNodes.delete(e),this.links=_.reject(this.links,(function(n){let r=e.split(">"),i=j(n.source.iri),o=j(n.target.iri);if(i===e&&se.tripleNodes.delete(o)){let e=o.split(">");t.push({source:e[0],target:e[1]})}let s=i===e||o===e||n.source.iri===r[0]&&n.target.iri===r[1];return s&&(se.tripleLinksCopy.delete(`${i}>${o}`),se.tripleLinksCopy.delete(`${o}>${i}`)),s})))}),t.forEach(e=>{this.links=_.reject(this.links,(function(t){return t.source.iri===e.source&&t.target.iri===e.target}))})},this.removeNode=function(n){let r=[];this.links=_.reject(this.links,(function(e){let t=e.source.iri===n.iri||e.target.iri===n.iri;return t&&(e.target.isTriple&&r.push(j(e.target.iri)),e.source.isTriple||e.target.isTriple||r.push([e.source.iri,e.target.iri].join(">"))),t})),this.removeTriples(r);const i=this.links;this.nodes=_.reject(this.nodes,(function(e){return 0===t(e,i)})),0===this.nodes.length&&(e.nodeSelected=!1),this.computeConnectedness()},this.removeNodeLeafLinks=function(e){let r=[],i=this.links;this.links=_.reject(this.links,(function(o){let s=o.source.iri===e.iri&&1===t(o.target,i)&&!o.target.isTriple||o.target.iri===e.iri&&1===t(o.source,i)&&!o.source.isTriple;if(!s){let r;if(o.source.iri!==e.iri||2!==t(o.target,i)||o.target.isTriple?o.target.iri!==e.iri||2!==t(o.source,i)||o.source.isTriple||(r=n(o.source,i)):r=n(o.target,i),!r)return!1;s=(r[0].source.iri===e.iri||r[0].target.iri)&&(r[1].source.iri===e.iri||r[1].target.iri)}return s&&(o.target.isTriple&&r.push(j(o.target.iri)),o.source.isTriple||o.target.isTriple||r.push([o.source.iri,o.target.iri].join(">"))),s})),this.removeTriples(r),i=this.links,this.nodes=_.reject(this.nodes,(function(n){return 0===t(n,i)&&n.iri!==e.iri})),this.computeConnectedness()},this.addTriple=function(e,t,n){e.x=t,e.y=n,e.weight=0;let r=j(e.iri);if(this.tripleNodes.has(r)){let t=this.tripleNodes.get(r);t.push(e),this.tripleNodes.set(r,t)}else e.weight=10,this.tripleNodes.set(r,[e])},this.copyState=function(){const e=_.map(this.nodes,(function(e){return{iri:e.iri,isTriple:e.isTriple,size:e.size,labels:_.cloneDeep(e.labels),types:_.cloneDeep(e.types),rdfRank:e.rdfRank,x:e.x,y:e.y,fixed:e.fixed}})),t=JSON.stringify(Array.from(this.tripleNodes.entries())),n=JSON.stringify(Array.from(this.tripleLinksCopy.entries()));return{nodes:e,links:_.map(this.links,(function(e){return{source:e.source.iri,isTripleSource:e.source.isTriple,target:e.target.iri,isTripleTarget:e.target.isTriple,predicates:e.predicates}})),tripleNodes:t,tripleLinksCopy:n,colorIndex:Z,type2color:K,transform:ee}},this.restoreState=function(t){e.nodeSelected=!0,e.searchVisible=!1,this.nodes=_.cloneDeep(t.nodes),this.tripleNodes=t.tripleNodes?new Map(JSON.parse(t.tripleNodes)):new Map,this.links=[],this.addAndMatchLinks(t.links),this.tripleLinksCopy=t.tripleLinksCopy?new Map(JSON.parse(t.tripleLinksCopy)):new Map,_.each(this.nodes,(function(t){t.fixed&&e.numberOfPinnedNodes++})),angular.isDefined(t.colorIndex)&&angular.isDefined(t.type2color)&&(Z=t.colorIndex,K=_.cloneDeep(t.type2color)),angular.isDefined(t.transform)&&(ee=d3.zoomIdentity.translate(t.transform.x,t.transform.y).scale(t.transform.k)),xe()}}e.datasource={get:function(t,n,r){return g.initLazyList(t,n,r,q,e.propertiesObj.items)},revision:function(){return H}},p.when(h.getPrincipal()).then(t=>(t=>{const n=t.appSettings;e.defaultSettings.includeInferred=n.DEFAULT_INFERENCE,e.defaultSettings.sameAsState=n.DEFAULT_INFERENCE&&n.DEFAULT_SAMEAS,e.defaultSettings.includeSchema=n.DEFAULT_VIS_GRAPH_SCHEMA;const r=v.get(I.GRAPHS_VIZ);if(r&&"object"==typeof r)try{e.saveSettings=r,void 0===e.saveSettings.includeSchema&&(e.saveSettings.includeSchema=e.defaultSettings.includeSchema,e.saveSettings.rejectedPredicates=[...e.saveSettings.rejectedPredicates,...e.defaultSettings.rejectedPredicates].unique())}catch(t){e.saveSettings=_.cloneDeep(e.defaultSettings),v.set(I.GRAPHS_VIZ,e.saveSettings)}else e.saveSettings=_.cloneDeep(e.defaultSettings)})(t)),e.showInfoPanel=!1;let se=new oe;function ae(t){!n.getActiveRepository()||e.hasInitedRepository&&!t||(e.hasInitedRepository=!0,t||e.getGraphConfigs(V),e.getNamespacesPromise=L.getNamespaces(e.getActiveRepository()).success((function(t){const n=_.map(t.results.bindings,(function(e){return{uri:e.namespace.value,prefix:e.prefix.value}}));e.namespaces=_.sortBy(n,(function(e){return e.uri.length})),ce()})).error((function(e){c.error(getError(e),C.instant("graphexplore.error.view.will.not.work"))})))}function ce(){a.isLicenseValid()&&(e.getAutocompletePromise=u.checkAutocompleteStatus())}e.addedTag=function(t){return t.text.indexOf(":")<0?(c.warning(C.instant("graphexplore.absolute.prefixed.iri")),null):(t.text=function(e,t){if(!/^<?(http|urn).*>?/.test(e)){const n=e.split(":"),r=n[0],i=n[1];if(!angular.isUndefined(i)){const e=d.getNamespaceUriForPrefix(t,r);if(e)return e+i}}return e}(t.text,e.namespaces),e.pageslideExpanded=!0,t)},e.validateTag=function(e,t,n){if(e.text.indexOf(":")<0)return n?c.warning(C.instant("graphexplore.absolute.prefixed.iri.option"),t):c.warning(C.instant("graphexplore.absolute.prefixed.iri"),t),!1;const r=e.text.indexOf("*");if(r>=0){if(!n)return c.warning(C.instant("graphexplore.wildcards.not.allowed"),t),!1;if(r<e.text.length-1)return c.warning(C.instant("graphexplore.wildcards.last.char"),t),!1}return!0},e.getTagClass=function(e){return e.endsWith("*")?"tag-item-wildcard":null},e.getActiveRepository=function(){return n.getActiveRepository()},e.isLicenseValid=function(){return a.isLicenseValid()},ae();const le=d3.scaleLinear().domain([0,9]).range(["hsl(0, 100%, 75%)","hsl(360, 90%, 82%)"]).interpolate(d3.interpolateHslLong),de=d3.scaleLinear().domain([0,9]).range(["hsl(180, 50%, 75%)","hsl(540, 40%, 82%)"]).interpolate(d3.interpolateHslLong);e.getColor=function(e){angular.isUndefined(K[e])&&(K[e]=Z,Z++);const t=K[e];return t>39?"#c2c2c2":t%2==0?le(t/2):de(t/2)};const ue=d3.forceX(te/2).strength(.005),pe=d3.forceY(ne/2).strength(.005),fe=d3.forceSimulation().force("x",ue).force("y",pe),he=d3.select(".main-container .graph-visualization").append("svg").attr("viewBox","0 0 "+te+" "+ne).attr("preserveAspectRatio","xMidYMid meet");he.append("rect").attr("width",10*te).attr("height",10*ne).attr("x",-(10*te-te)/2).attr("y",-(10*ne-ne)/2).style("fill","none").style("pointer-events","all").call(J).on("click",(function(e){e.stopPropagation(),be(),fe.stop()}));let ge=0,me=0;const ye=new function(){this.state=!1,this.setLoadingState=function(e){this.state=e},this.getLoadingState=function(){return this.state},this.init=function(e,t){d3.select(t).append("circle").attr("cx",(function(){return e.x})).attr("cy",(function(){return e.y})).attr("class","loader-container").attr("r",(function(){return e.size})).style("fill","fff").style("opacity","0.7"),d3.select(t).append("image").attr("xlink:href","js/angular/templates/loader/ot-loader.svg?v=2.6.2-TR3").attr("x",(function(){return e.x-e.size+5})).attr("y",(function(){return e.y-e.size})).attr("width",(function(){return 2*e.size})).attr("height",(function(){return 2*e.size})).attr("class","node-loader")}};function xe(t){d3.selectAll("svg g").remove(),d3.selectAll(".d3-tip").remove(),d3.selectAll(".menu-events").remove(),Y=he.append("g").attr("class","nodes-container").attr("transform",(function(){return angular.isDefined(ee)&&!t?ee:""}));const n=Object(i.a)().attr("class","d3-tip").customPosition((function(){const e=re.getBoundingClientRect();return{top:e.bottom+10+"px",left:e.left-30+"px"}})).html((function(t){let n="";return t.fixed&&(n+='<i class="icon-pin"></i> '),t.types.length>0?n+=_.join(_.map(t.types,(function(t){return e.replaceIRIWithPrefix(t)}))," · "):n+="<i>No types</i>",n})),o=function(e){let t="";return t+=_.join(_.map(e.predicates,(function(t,n){if(0===n)return Oe(t);if(n<10)return" · "+Oe(t);if(10===n){const t=function(e){return e.predicates.length-10}(e),n=t>1?t+" predicates":t+" predicate";return" · "+C.instant("graphexplore.tip.text",{textToShow:n})}})),""),t};let a;const d=Object(i.a)().attr("class","d3-tip").customPosition((function(e){const t=a.getBoundingClientRect(),n=function(e){const t=o(e),n=document.createElement("canvas").getContext("2d");return n.font="13px Arial",e.predicates.length<10?n.measureText(t).width:n.measureText(t).width/2}(e);return{top:t.top-30+"px",left:t.left-30+"px",width:n+"px"}})).html((function(e){return o(e)}));const u=function(){l.cancel(void 0),l.cancel(ge),re=null,n.hide(),me=l((function(){be()}),500)};he.call(n);he.call(d);let p=he.selectAll(".link"),f=he.selectAll(".node");const h=d3.forceCollide(e=>e.size+5).strength(.5),g=d3.forceManyBody().strength(-300),m=d3.forceCenter(te/2,ne/2);fe.nodes(se.nodes).force("charge",g).force("collide",h).force("center",m).force("link",d3.forceLink(se.links).distance((function(e){return e.source.isTriple||e.target.isTriple?0:function(e){const t=$("<span></span>"),n=e.predicates[0].split("/"),r=n[n.length-1];t.addClass("predicate-text").text(r),$("body").append(t);const i=t.width()+2*e.source.size+2*e.target.size+50;return t.remove(),.75*i}(e)+30*e.connectedness}))),Y.append("defs").selectAll("marker").data(se.links).enter().append("marker").attr("class","arrow-marker").attr("id",(function(e){return U(e)})).attr("viewBox","0 -5 10 10").attr("refX",(function(e){return e.target.isTriple?11:e.target.size+11})).attr("refY",0).attr("markerWidth",10).attr("markerHeight",10).attr("orient","auto").append("path").attr("d","M0,-5L10,0L0,5 L10,0 L0, -5"),p=Y.selectAll(".link").data(se.links).enter().append("g").attr("class","link-wrapper").attr("id",(function(e){return Object(s.removeSpecialChars)(z(e))})).append("line").attr("class","link").style("stroke-width",1).style("fill","transparent").style("marker-end",(function(e){return`url(#${U(e)})`}));const y=Y.selectAll(".link-wrapper").append("text").text((function(e){return Me(e)})).attr("class",(function(e){return e.predicates.length>1||se.tripleNodes.has(z(e))?"predicates":"predicate"})).attr("dy","-0.5em").style("text-anchor","middle").style("display",A().showLinksText?"":"none").on("mouseover",(function(e,t){e.stopPropagation(),function(e,t){l.cancel(void 0);const n=a=e.target;l((function(){a===n&&t.predicates.length>1&&d.show(t,a)}),300)}(e,t)})).on("mouseout",(function(){l.cancel(void 0),a=null,d.hide()})).on("click",(function(t,n){t.stopPropagation(),function(t,n){Pe();const r=z(n);if(1===n.predicates.length&&se.tripleNodes.has(r)){ie=null;const e=se.tripleNodes.get(r)[0];if(Se(e,this,t.button)){const t={};t.iri=e.iri,t.pred=Oe(e.iri.split(" ")[1]),_e(t)}return}!function(t){if(e.showNodeInfo=!1,e.showPredicates=t.predicates.length>1,e.showFilter=!1,e.showInfoPanel=!1,ie===t)return e.showNodeInfo=!1,e.showInfoPanel=!1,void(ie=null);ie=t,e.showPredicates&&(e.predicates=_.map(t.predicates,(function(e){const n=function(e,t){const n=z(t);return se.tripleNodes.has(n)?se.tripleNodes.get(n).findIndex(t=>t.iri.indexOf(e)>=0):-1}(e,t),r=n>-1;return{value:Oe(e),partOfTriple:r,linkId:r?z(t):"",nodeIndex:n}})),e.showInfoPanel=!0)}(n)}(t,n)}));let x,v=0,I=null,S=null;const w=function(t,n,r){let i=r||this.parentNode;Array.isArray(r)&&(i=r[n]);se.countLinks(t,se.links)<=A().linksLimit?Ce(t,!1,i):c.info(C.instant("graphexplore.increase.limit"),C.instant("graphexplore.node.at.max")),e.closeInfoPanel()};function k(e,t){let n,r,i,o,s=!0;if("down"===t)n=2*e.size,r=e.size/3,i=.8,o=.3;else if("down-fixed"===t)n=2*e.size,r=e.size,i=.8,o=.66;else if("up"===t)n=e.size/3,r=2*e.size,i=.3,o=.8;else{if("fixed"!==t)return;n=e.size,i=.66,s=!1}let a=Y.selectAll(".node-wrapper").filter((function(t){return t===e})).append("text").text("").classed("icon-any pinned",!0).style("font-size",n+"px").attr("x",(function(e){return e.x})).attr("y",(function(e){return e.y})).attr("opacity",i);"fixed"!==t&&"down-fixed"!==t||(e.pin=a),s&&(a=a.transition().duration(1e3).style("font-size",(function(){return r+"px"})).attr("opacity",o),"down-fixed"!==t&&a.remove())}const L=d3.drag().subject((function(e){return e})).on("start",(function(e,t){if(b.isActive())return;0===e.sourceEvent.button&&(t.fixedBeforeDrag=t.fixed,t.isBeingDragged=!0,t.beginDragging=!0,be(),d3.select(this).classed("dragging",!0),fe.alphaTarget(.3).restart())})).on("drag",(function(t,n){n.isBeingDragged&&(n.fx=t.x,n.fy=t.y,n.fixed?n.beginDragging&&k(n,"fixed"):(e.numberOfPinnedNodes++,n.fixed=!0,k(n,"down-fixed")),n.pinWasFixed=!0,n.beginDragging=null)})).on("end",(function(e,t){t.isBeingDragged&&(t.pinWasFixed&&(t.pinWasFixed=null,d3.select(".pinned").remove()),t.isBeingDragged=!1,d3.select(this).classed("dragging",!1));fe.alphaTarget(0)}));f=Y.selectAll(".node").data(se.nodes).enter().append("g").attr("class","node-wrapper").attr("id",(function(e){return e.iri})).append("circle").attr("class","node").attr("r",(function(e){return e.size})).style("fill",(function(t){return"greyColor"===t.types?"c2c2c2":e.getColor(t.types[0])})).on("mouseover",(function(t,r){r.isBeingDragged||(l.cancel(me),ge=l(()=>{(function(t,n){if(e.showInfoPanel)return!1;(Ie.closeIcon||Ie.expandIcon||Ie.focusIcon||Ie.copyURIIcon)&&Ie.removeIcons();if(fe.alpha()<.1)return Ie.initIcons(t,n.parentNode),fe.stop(),ve(),!0;return!1})(r,this)&&function(e,t){l.cancel(void 0);const r=re=t.target;l((function(){re===r&&n.show(e,re)}),300)}(r,t)},400))})).on("mouseout",u).on("click",(function(t,n){if(t.button&&0!==t.button)return;const r=this;if(I&&S===r)return l.cancel(I),I=null,void w(n,0,r.parentNode);S=r,u(),e.showPredicates=!1,b.isActive()||(l.cancel(I),I=l((function(){Se(n,r,t),I=null}),540))})).on("touchstart",(e,t)=>function(e){v=0,x=l((function(){v<5&&we(e),x=null}),1e3)}(t)).on("touchmove",(function(){v++})).on("touchend",(function(){l.cancel(x),x=null})).on("contextmenu",(function(t,r){t.shiftKey||(t.preventDefault(),be(),e.closeInfoPanel(),r.fixed?(e.numberOfPinnedNodes--,r.fixed=!1,r.fx=null,r.fy=null,k(r,"up"),fe.alpha(1).restart()):(e.numberOfPinnedNodes++,r.fixed=!0,k(r,"down")),function(e){re&&n.show(e,re)}(r))})).on("gdb-expand-node",(e,t)=>w(t,0,e.srcElement.parentNode)).on("gdb-show-node-info",(e,t)=>Te(t)).call(L);const T=Y.selectAll(".node-wrapper").append("foreignObject").style("pointer-events","none").attr("width",(function(e){return 2*e.size*1.75}));Y.insert("g").attr("class","menu-events"),(e=>{e.each((function(e){e.fontSize=r.a.Text.calcFontSizeRaw(e.labels[0].label,e.size,Q,!0)})).attr("height",(function(e){return 3*e.fontSize})).append("xhtml:div").attr("class","node-label-body").style("font-size",(function(e){return e.fontSize+"px"})).append("xhtml:div").text((function(e){return e.labels[0].label})),l((function(){$(".node-label-body div").each((function(e,t){let n=t.textContent.substring(0,t.textContent.length-1);let r=0;for(;r<200&&(t.scrollHeight>t.clientHeight||t.scrollWidth>t.clientWidth);)n=n.substring(0,n.length-1),t.textContent=n+"…",r++}))}),50)})(T),fe.on("tick",(function(){p.attr("x1",(function(e){return D(e.source)})).attr("y1",(function(e){return B(e.source)})).attr("x2",(function(e){return D(e.target)})).attr("y2",(function(e){return B(e.target)})),y.attr("x",(function(e){let t=D(e.source),n=D(e.target);return e.x=.5*(t+n)})).attr("y",(function(e){let t=B(e.source),n=B(e.target);return e.y=.5*(t+n)})).attr("transform",(function(e){return"rotate("+function(e,t){const n={x:D(e.source),y:B(e.source)},r={x:D(e.target),y:B(e.target)};if(t)return 180*Math.atan2(r.y-n.y,r.x-n.x)/Math.PI;{const e=180*Math.atan2(r.y-n.y,r.x-n.x)/Math.PI;return e<=90&&e>=-90?e:(e>0?-1:1)*(180-Math.abs(e))}}(e,e.direction)+", "+e.x+", "+e.y+")"})),f.attr("cx",(function(e){return e.x})).attr("cy",(function(e){return e.y})),Y.select(".node-loader").attr("x",(function(e){return e.x-e.size+3})).attr("y",(function(e){return e.y-e.size})),Y.select(".loader-container").attr("cx",(function(e){return e.x})).attr("cy",(function(e){return e.y})),T.attr("x",(function(e){return e.x-1.75*e.size})).attr("y",(function(e){return e.y-3*e.fontSize/2})),d3.select(".pinned").attr("x",(function(e){return e.x})).attr("y",(function(e){return e.y})),ve()})),angular.isDefined(ye)&&ye.setLoadingState(!1),e.loading&&(e.loading=!1),d3.selectAll(".link-wrapper").each((function(){const e=$(this).attr("id").split(">")[0],t=$(this).attr("id").split(">")[1];d3.selectAll(".link").each((function(n){const r=Object(s.removeSpecialChars)(n.source.iri),i=Object(s.removeSpecialChars)(n.target.iri);if(r===t&&i===e){let e=r;e+=">",e+=i;const t=document.createTextNode(" ⟶");document.getElementById(e).lastChild.appendChild(t),n.direction="double"}}))})),d3.selectAll(".d3-actions-tip").remove(),fe.alpha(.3).restart()}function ve(){t.d3alpha=fe.alpha()}const Ie=new function(){function n(e,t){return"translate("+(t.x-14+(t.size+15)*Math.cos(e*Math.PI/180-Math.PI/2))+","+(t.y-14+(t.size+15)*Math.sin(e*Math.PI/180-Math.PI/2))+")"}this.closeIcon=void 0,this.expandIcon=void 0,this.collapseIcon=void 0,this.focusIcon=void 0,this.copyURIIcon=void 0,this.actionsTip=void 0,this.removeIcons=function(){this.closeIcon.remove("g"),this.expandIcon&&this.expandIcon.remove("g"),this.collapseIcon&&this.collapseIcon.remove("g"),this.focusIcon.remove("g"),this.copyURIIcon.remove("g"),this.closeIcon=void 0,this.expandIcon=void 0,this.collapseIcon=void 0,this.focusIcon=void 0,this.copyURIIcon=void 0,this.expandedState=!1},this.expandedState=!1,this.initIcons=function(r,o){const s=Object(i.a)().attr("class","d3-tip d3-actions-tip").customPosition((function(e,t){const n=t.target.getBoundingClientRect();return{top:n.top-20+"px",left:n.right+10+"px"}})).html((function(e){return e}));he.call(s);r.isExpanded?(this.collapseIcon=d3.select(".menu-events").append("g").attr("class","collapse-icon").attr("name","collapse").attr("transform",(function(){return n(20,r)})),this.collapseIcon.append("circle").attr("cx",14).attr("cy",14).attr("r",13).style("fill","#eee"),this.collapseIcon.append("path").attr("d","M22.67,12a.59.59,0,0,1-.53.65l-6.88.72H15.2a.59.59,0,0,1-.59-.65l.72-6.88A.58.58,0,0,1,16,5.33a.59.59,0,0,1,.53.65L16,11.11,21.3,5.79a.64.64,0,0,1,.91.91L16.89,12,22,11.49A.59.59,0,0,1,22.67,12ZM12.59,14.75l-6.75.85a.59.59,0,0,0-.51.66.58.58,0,0,0,.66.51l4.95-.62-5.2,5.2a.64.64,0,1,0,.91.91l5.2-5.2L11.23,22a.59.59,0,0,0,.51.66h.07a.59.59,0,0,0,.59-.52l.85-6.75a.59.59,0,0,0-.17-.49A.58.58,0,0,0,12.59,14.75Z").style("fill","var(--primary-color)"),this.collapseIcon.on("click",(function(){var e;(e=r).isExpanded=!1,se.removeNodeLeafLinks(e),xe()})).on("mouseover",(function(e){s.show(this.getAttribute("name"),e),l.cancel(ge),l.cancel(me)})).on("mouseout",(function(){s.hide(),me=l((function(){be()}),500)}))):(this.expandIcon=d3.select(".menu-events").append("g").attr("class","expand-icon").attr("name","expand").attr("transform",(function(){return n(20,r)})),this.expandIcon.append("circle").attr("cx",14).attr("cy",14).attr("r",13).style("fill","#eee"),this.expandIcon.append("path").attr("d","M22.37,6.28l-.72,6.88a.59.59,0,0,1-.59.53H21a.59.59,0,0,1-.53-.65L21,7.9l-5.32,5.32a.64.64,0,0,1-.91-.91L20.1,7,15,7.53a.59.59,0,0,1-.12-1.18l6.88-.72a.59.59,0,0,1,.65.65ZM12.89,20.34,7.95,21l5.2-5.2a.64.64,0,0,0-.91-.91L7,20.05l.62-4.95A.59.59,0,0,0,6.48,15l-.85,6.75a.59.59,0,0,0,.59.67h.07L13,21.52a.59.59,0,1,0-.15-1.18Z").style("fill","var(--primary-color)"),this.expandIcon.on("click",(function(){Ce(r,!1,o)})).on("mouseover",(function(e){s.show(this.getAttribute("name"),e),l.cancel(me),l.cancel(ge)})).on("mouseout",(function(){s.hide(),me=l((function(){be()}),500)}))),this.focusIcon=d3.select(".menu-events").append("g").attr("class","focus-icon").attr("name","focus").attr("transform",(function(){return n(20,r)})),this.focusIcon.append("circle").attr("cx",14).attr("cy",14).attr("r",13).style("fill","#eee"),this.focusIcon.append("path").attr("d","M14.2,23.81a9.8,9.8,0,1,1,6.93-2.87h0A9.74,9.74,0,0,1,14.2,23.81Zm0-18.17a8.37,8.37,0,1,0,5.92,14.29h0A8.37,8.37,0,0,0,14.2,5.64Zm1.42,6.95a2,2,0,1,0,0,2.85A2,2,0,0,0,15.62,12.59Z").style("fill","var(--primary-color)"),this.focusIcon.on("click",(function(){t.$broadcast("onRootNodeChange",r.iri)})).on("mouseover",(function(e){s.show(this.getAttribute("name"),e),l.cancel(me),l.cancel(ge)})).on("mouseout",(function(){s.hide(),me=l((function(){be()}),500)})),this.copyURIIcon=d3.select(".menu-events").append("g").attr("class","icon-link").attr("name","link").attr("transform",(function(){return n(20,r)})),this.copyURIIcon.append("circle").attr("cx",14).attr("cy",14).attr("r",13).style("fill","#eee"),this.copyURIIcon.append("path").attr("d","M 13.457031 10.164062 C 13.648438 10.164062 13.820312 10.242188 13.941406 10.363281 L 15.492188 11.859375 C 15.984375 12.332031 16.292969 12.992188 16.292969 13.714844 C 16.292969 14.441406 15.984375 15.097656 15.492188 15.574219 L 10.394531 20.496094 C 9.902344 20.972656 9.222656 21.265625 8.472656 21.265625 C 7.71875 21.265625 7.039062 20.972656 6.546875 20.496094 L 4.996094 19 C 4.507812 18.523438 4.203125 17.867188 4.203125 17.144531 C 4.203125 16.421875 4.507812 15.765625 4.996094 15.289062 L 7.542969 12.824219 C 7.667969 12.707031 7.84375 12.628906 8.035156 12.628906 C 8.417969 12.628906 8.726562 12.929688 8.726562 13.300781 C 8.726562 13.484375 8.648438 13.652344 8.523438 13.773438 L 5.976562 16.234375 C 5.738281 16.46875 5.589844 16.792969 5.589844 17.148438 C 5.589844 17.503906 5.738281 17.824219 5.976562 18.058594 L 7.527344 19.566406 C 7.773438 19.792969 8.105469 19.929688 8.472656 19.929688 C 8.835938 19.929688 9.167969 19.792969 9.414062 19.566406 L 14.511719 14.644531 C 14.753906 14.410156 14.90625 14.089844 14.90625 13.730469 C 14.90625 13.375 14.753906 13.054688 14.511719 12.820312 L 12.964844 11.324219 C 12.839844 11.203125 12.761719 11.039062 12.761719 10.855469 C 12.761719 10.488281 13.070312 10.1875 13.449219 10.1875 Z M 17.082031 3.976562 C 17.082031 3.976562 17.085938 3.976562 17.085938 3.976562 C 17.824219 3.976562 18.492188 4.261719 18.980469 4.722656 L 20.535156 6.203125 C 21.042969 6.679688 21.355469 7.34375 21.355469 8.082031 C 21.355469 8.792969 21.058594 9.441406 20.582031 9.914062 L 18.0625 12.402344 C 17.9375 12.527344 17.761719 12.605469 17.566406 12.605469 C 17.183594 12.605469 16.875 12.304688 16.875 11.9375 C 16.875 11.753906 16.949219 11.589844 17.070312 11.46875 L 19.605469 8.984375 C 19.847656 8.75 19.996094 8.429688 19.996094 8.070312 C 19.996094 7.714844 19.847656 7.394531 19.605469 7.160156 L 18.019531 5.667969 C 17.773438 5.445312 17.4375 5.304688 17.070312 5.300781 C 16.703125 5.304688 16.367188 5.453125 16.128906 5.691406 L 11.085938 10.667969 C 10.84375 10.898438 10.695312 11.222656 10.695312 11.578125 C 10.695312 11.933594 10.84375 12.257812 11.085938 12.488281 L 12.675781 13.980469 C 12.804688 14.101562 12.882812 14.273438 12.882812 14.457031 C 12.882812 14.828125 12.574219 15.128906 12.191406 15.128906 C 12.003906 15.128906 11.832031 15.054688 11.707031 14.9375 L 10.140625 13.457031 C 9.636719 12.980469 9.324219 12.316406 9.324219 11.582031 C 9.324219 10.863281 9.621094 10.214844 10.101562 9.742188 L 15.140625 4.765625 C 15.625 4.285156 16.304688 3.980469 17.054688 3.976562 Z M 17.082031 3.976562").style("fill","var(--primary-color)"),this.copyURIIcon.on("click",(function(){e.copyToClipboard(r.iri),be(),s.hide()})).on("mouseover",(function(e){s.show("<div style='text-align: center;'><b>Copy to ClipBoard</b><br>"+r.iri+"</div>",e),l.cancel(me),l.cancel(ge)})).on("mouseout",(function(){s.hide(),me=l((function(){be()}),500)})),this.closeIcon=d3.select(".menu-events").append("g").attr("class","close-icon").attr("name","remove").attr("transform",(function(){return n(20,r)})),this.closeIcon.append("circle").attr("cx",14).attr("cy",14).attr("r",13).style("fill","#eee"),this.closeIcon.append("path").attr("d","M14.94,14l5.87-5.87a.66.66,0,1,0-.94-.94L14,13.06,8.13,7.19a.66.66,0,0,0-.94.94L13.06,14,7.19,19.87a.66.66,0,1,0,.94.94L14,14.94l5.87,5.87a.66.66,0,1,0,.94-.94Z").style("fill","var(--primary-color)"),this.closeIcon.on("click",(function(){we(r)})).on("mouseover",(function(e){s.show(this.getAttribute("name"),e),l.cancel(me),l.cancel(ge)})).on("mouseout",(function(){s.hide(),me=l((function(){be()}),500)})),this.animateMenu(r)},this.animateMenu=function(e){const t=d3.easeSin;let r=0;let i=20;this.expandIcon&&this.expandIcon.transition().duration(100).style("opacity",1).ease(t).attr("transform",(function(){return n(i,e)})).delay(r+=35),this.collapseIcon&&this.collapseIcon.transition().duration(100).style("opacity",1).ease(t).attr("transform",(function(){return n(i,e)})).delay(r+=35),this.copyURIIcon.transition().duration(100).style("opacity",1).ease(t).attr("transform",(function(){return i+=30,n(i,e)})).delay(r+=35),this.focusIcon.transition().duration(100).style("opacity",1).ease(t).attr("transform",(function(){return i+=30,n(i,e)})).delay(r+=35),this.closeIcon.transition().duration(100).style("opacity",1).ease(t).attr("transform",(function(){return i+=30,n(i,e)})).delay(r+=35),this.expandedState=!0}};function Se(n,r,i){return e.showInfoPanel=!1,e.showPredicates=!1,e.showNodeInfo=!1,i.shiftKey&&(i.ctrlKey||i.metaKey)?(t.$broadcast("onRootNodeChange",n.iri),!1):i.ctrlKey||i.metaKey?(we(n),!1):void 0!==e.openedNodeInfoPanel&&e.openedNodeInfoPanel===n?(e.pageslideExpanded=!1,e.openedNodeInfoPanel=void 0,!1):(Te(n),!0)}function we(e){se.removeNode(e),xe()}function ke(t){!function(t){e.nodeSelected=!0,null===t.data.types&&(t.data.types="greyColor"),se=new oe,ee=X}(t),Le(t)}function Le(t,n,r){let i=t.data;i=_.filter(i,(function(e){return-1===_.findIndex(se.links,(function(t){return e.source===t.source.iri&&e.target===t.target.iri}))}));const o=[],s=se.tripleLinksCopy.values();for(let e=0;e<se.tripleLinksCopy.size;e++){s.next().value.forEach(e=>{o.push(e)})}i=_.filter(i,(function(e){return-1===_.findIndex(o,(function(t){return e.source===t.source.iri&&e.target===t.target.iri}))})),i=_.filter(i,(function(e){return e.source!==e.target}));const a=((e,t)=>{const n=t.map(t=>t[e]);return t.filter((t,r)=>n.indexOf(t[e])===r)})("iri",_.union(_.flatten(_.map(t.data,(function(e){return[{iri:e.source,isTriple:e.isTripleSource},{iri:e.target,isTriple:e.isTripleTarget}]}))))),l=_.map(se.nodes,(function(e){return{iri:e.iri,isTriple:Boolean(e.isTriple)}})),d=se.tripleNodes.values();for(let e=0;e<se.tripleNodes.size;e++){d.next().value.forEach(e=>{l.push({iri:e.iri,isTriple:e.isTriple})})}const u=_.reject(a,(function(e){return _.some(l,e)}));if(0===u.length)(r||0===i.length)&&c.info(C.instant("graphexplore.error.node.connections")),se.addAndMatchLinks(i),xe();else{const t=[],r=[],o=A();_.forEach(u,(function(n,i){t.push(k.getInstanceNode({iri:n.isTriple?F(n.iri):n.iri,config:e.configLoaded.id,languages:e.shouldShowSettings()?o.languages:[],includeInferred:o.includeInferred,sameAsState:o.sameAsState}).then((function(e){r[i]=e.data})))})),p.all(t).then((function(){_.forEach(r,(function(e,t){const i=2*Math.PI*t/r.length,o=(n?n.x:0)+Math.cos(i)*ne/3,s=(n?n.y:0)+Math.sin(i)*ne/3;e.isTriple?se.addTriple(e,o,s):se.addNode(e,o,s)})),se.addAndMatchLinks(i),n&&(n.isExpanded=!0),xe()}))}}function Ce(t,n,r){if(ye.getLoadingState())return;ye.init(t,r);const i=A(),o=t.iri;k.getInstanceNodeLinks({iri:o,linksLimit:i.linksLimit,includeInferred:i.includeInferred,config:e.configLoaded.id,preferredTypes:e.shouldShowSettings()?i.preferredTypes:[],rejectedTypes:e.shouldShowSettings()?i.rejectedTypes:[],preferredPredicates:e.shouldShowSettings()?i.preferredPredicates:[],rejectedPredicates:e.shouldShowSettings()?i.rejectedPredicates:[],preferredTypesOnly:e.shouldShowSettings()?i.preferredTypesOnly:[],preferredPredicatesOnly:e.shouldShowSettings()?i.preferredPredicatesOnly:[],languages:e.shouldShowSettings()?i.languages:[],sameAsState:i.sameAsState,includeSchema:i.includeSchema}).then((function(e){Le(e,t,n)}),(function(t){const n=getError(t.data);c.error(n,C.instant("graphexplore.error.exploring.node")),e.loading=!1,ye.setLoadingState(!1)}))}function be(){angular.isDefined(Ie)&&Ie.expandedState&&Ie.removeIcons()}function Te(t){fe.stop(),e.openedNodeInfoPanel=t,e.showNodeInfo=!0,e.showFilter=!1,e.showPredicates=!1,e.nodeLabels=t.labels,e.nodeTypes=t.types,e.rdfRank=t.rdfRank,e.nodeIri=t.iri,e.resourceType=t.isTriple?"triple":"uri",e.encodedIri=t.isTriple?encodeURIComponent(F(t.iri)):encodeURIComponent(t.iri),e.showInfoPanel=!0,e.rdfsLabel=t.labels[0].label,e.rdfsComment=t.comment,e.expanded=!1,e.propertiesQueryObj.query="",e.dataNodeKeysQuery="";const n=A();k.getProperties({iri:t.isTriple?F(t.iri):t.iri,config:e.configLoaded.id,languages:e.shouldShowSettings()?n.languages:[],includeInferred:n.includeInferred,sameAsState:n.sameAsState,rejectedPredicates:e.shouldShowSettings()?n.rejectedPredicates:[]}).then((function(t){e.data=_.mapKeys(t.data,(function(t,n){return e.replaceIRIWithPrefix(n)})),e.propertiesObj.items=[],_.forEach(e.data,(function(t,n){e.propertiesObj.items.push({key:n,value:t})})),e.nodeImage=void 0,e.propertiesNotFiltered=e.propertiesObj.items;const n=_.find(e.propertiesObj.items,(function(e){return"image"===e.key}));n&&(e.nodeImage=n.value[0].v),e.propertiesObj.items=_.reject(e.propertiesObj.items,(function(e){return"image"===e.key})),e.propertiesNotFiltered=e.propertiesObj.items}),(function(e){c.warning(getError(e.data),"Error")}))}function _e(e){Ne("predicate","var(--primary-color-dark)",e),Ne("predicates","var(--primary-color-dark)",e);const t=document.getElementsByClassName("link");t&&_.each(t,(function(t){const n=t.__data__;(n.source.iri.indexOf(e.iri)>=0||n.target.iri.indexOf(e.iri)>=0)&&(t.style.stroke="var(--primary-color-dark)",t.style.strokeWidth=4)}));const n=document.getElementsByClassName("arrow-marker");n&&_.each(n,(function(t){const n=t.__data__;(n.source.iri.indexOf(e.iri)>=0||n.target.iri.indexOf(e.iri)>=0)&&(t.style.stroke="var(--primary-color-dark)",t.__data__.target.isTriple||t.setAttribute("refX","23"))}))}function Ne(e,t,n){const r=document.getElementsByClassName(e);r&&_.each(r,(function(e){const r=e.__data__;n?((r.source.iri.indexOf(n.iri)>=0||r.target.iri.indexOf(n.iri)>=0)&&(e.style.fill=t),j(n.iri)===z(r)&&(e.textContent=n.pred,e.style.fill=t),n.oppLinkIRI&&n.oppLinkIRI===z(r)&&(e.textContent=n.oppTriplePred,e.style.fill=t)):(e.style.fill=t,e.textContent=Me(r))}))}function Pe(){_.each(e.predicates,(function(e){const t=document.getElementById(e.linkId+e.nodeIndex);t&&(t.style.fontWeight="normal")}));const t=document.getElementsByClassName("link");t&&_.each(t,(function(e){e.style.stroke="#999",e.style.strokeWidth=1})),Ne("predicate",""),Ne("predicates","");const n=document.getElementsByClassName("arrow-marker");n&&_.each(n,(function(e){e.style.stroke="#999",e.__data__.target.isTriple||e.setAttribute("refX","59")}))}function Ae(e){const t=j(e);if(se.tripleNodes.has(t))return se.tripleNodes.get(t).find(t=>t.iri===e)}function Me(e){return e.predicates.length>1?e.predicates.length+" predicates":Oe(e.predicates[0])}function Oe(t){const n=e.replaceIRIWithPrefix(t);return n.length===t.length?t.split("/")[t.split("/").length-1]:n}e.toggleSidePanel=function(){e.pageslideExpanded=!e.pageslideExpanded},e.closeInfoPanel=function(){e.pageslideExpanded=!1,e.openedNodeInfoPanel=void 0,e.predicates=[],ie=null,l((function(){e.showInfoPanel=!1}))},e.clickLink=function(t){if(se.tripleNodes.has(t.linkId)){Pe();const n=se.tripleNodes.get(t.linkId)[t.nodeIndex];Te(n),e.showPredicates=!0;const r=document.getElementById(t.linkId+t.nodeIndex);r&&(r.style.fontWeight="bold");const i={},o=se.tripleLinksCopy.values();for(let e=0;e<se.tripleLinksCopy.size;e++){const e=o.next().value;e.length>1&&e.every(t=>t.source.iri===n.iri?(i.iri=e[0].source.iri,t.target.isTriple&&(i.oppLinkIRI=j(t.target.iri),i.oppTriplePred=Oe(t.target.iri.split(" ")[1])),i.pred=Oe(n.iri.split(" ")[1]),1===t.predicates.length&&(i.linkPred=t.predicates[0]),!1):t.target.iri!==n.iri||(i.iri=e[0].target.iri,t.source.isTriple&&(i.oppLinkIRI=j(t.source.iri),i.oppTriplePred=Oe(t.source.iri.split(" ")[1])),i.pred=Oe(n.iri.split(" ")[1]),1===t.predicates.length&&(i.linkPred=t.predicates[0]),!1))}i.iri||(i.iri=n.iri,i.pred=Oe(n.iri.split(" ")[1])),_e(i)}},e.splitPredicate=function(e){return e.split("/")[e.split("/").length-1]},e.getActiveRepository=function(){return n.getActiveRepository()},e.isLoadingLocation=function(){return n.isLoadingLocation()},e.hasActiveLocation=function(){return n.hasActiveLocation()},e.rotate=function(e){be();const t=10*(e?1:-1)*Math.PI/180,n=Math.cos(t),r=Math.sin(t),i=te/2,o=ne/2;d3.selectAll(".node-wrapper").each((function(e){e.x=i+(n*(e.x-i)+r*(e.y-o)),e.y=o+(-r*(e.x-i)+n*(e.y-o)),e.fixed&&(e.fx=e.x,e.fy=e.y)})),fe.alpha(1).restart()},e.openUri=function(t,n){if(!n){const n={};e.configLoaded.id!==e.defaultGraphConfig.id&&(n.config=e.configLoaded.id),n.uri=t,N(n,{uri:t,config:e.configLoaded})}e.$broadcast("onRootNodeChange",t)},e.saveOrUpdateGraph=function(){const t=JSON.stringify(se.copyState()),n={id:e.lastSavedGraphId,name:e.lastSavedGraphName,data:t,shared:e.shared};n.id?e.saveGraphModal("update",n):e.saveGraphModal("new",n)},e.renameSavedGraph=function(t){e.saveGraphModal("rename",{id:t.id,name:t.name,config:t.config,shared:t.shared})};const Ee=function(t){S.editSavedGraph(t).success((function(){e.lastSavedGraphName=t.name,e.shared=t.shared,e.refreshSavedGraphs(),c.success(C.instant("graphexplore.saved.graph.was.edited",{name:t.name}))})).error((function(e){const t=getError(e);c.error(t,C.instant("graphexplore.error.cannot.edit"))}))};e.saveGraphModal=function(t,n,r){y.open({templateUrl:"js/angular/graphexplore/templates/modal/save-graph.html",controller:"SaveGraphModalCtrl",resolve:{data:function(){return{mode:t,graph:n,graphExists:r,shared:n.shared}}}}).result.then((function(t){if(t.restart)e.saveGraphModal(t.mode,t.graph,!1);else switch(t.mode){case"new":!function(t){e.configLoaded&&(t.config=e.configLoaded.id),S.addNewSavedGraph(t).success((function(n,r,i){e.lastSavedGraphName=t.name,e.lastSavedGraphId=i()["x-saved-graph-id"],e.shared=t.shared,e.refreshSavedGraphs(),c.success(C.instant("graphexplore.saved.graph",{name:t.name}))})).error((function(n,r){if(422===r)e.saveGraphModal("new",t,!0);else{const e=getError(n);c.error(e,C.instant("graphexplore.error.cannot.create.graph"))}}))}(t.graph);break;case"update":case"rename":Ee(t.graph)}}))},e.refreshSavedGraphs=function(){S.getSavedGraphs().success((function(t){e.savedGraphs=t})).error((function(e){const t=getError(e);c.error(t,C.instant("graphexplore.error.getting.saved.graphs"))}))},e.loadSavedGraph=function(t,n){t.owner?(e.lastSavedGraphName=t.name,e.lastSavedGraphId=t.id,e.shared=t.shared,e.configLoaded=e.findConfigById(t.config)):(e.lastSavedGraphName=null,e.lastSavedGraphId=null,e.shared=t.shared),e.configLoaded||(e.configLoaded=e.defaultGraphConfig),f.url("?saved="+t.id),se.restoreState(JSON.parse(t.data)),n||N({saved:t.id},{savedGraph:t})},e.copyToClipboardSavedGraph=function(t){const n=[location.protocol,"//",location.host,location.pathname,"?saved=",t.id].join("");e.copyToClipboard(n)},e.deleteSavedGraph=function(t){m.openSimpleModal({title:C.instant("common.confirm"),message:C.instant("graphexplore.confirm.delete.graph",{graphName:t.name}),warning:!0}).result.then((function(){!function(t){S.deleteSavedGraph(t).success((function(){e.refreshSavedGraphs(),c.success(C.instant("graphexplore.saved.graph.was.deleted",{name:t.name}))})).error((function(e){const t=getError(e);c.error(t,C.instant("graphexplore.error.cannot.delete"))}))}(t)}))},e.openIRI=function(t,n){return n.shiftKey?e.$broadcast("onRootNodeChange",t):window.open(t,"_blank"),!1},e.togglePinAllNodes=function(){be();const t=angular.isUndefined(e.numberOfPinnedNodes)||e.numberOfPinnedNodes<=0;e.numberOfPinnedNodes=0,d3.selectAll(".node").each((function(n){n.fixed=t,t?(e.numberOfPinnedNodes++,n.fx=n.x,n.fy=n.y):(n.fx=null,n.fy=null)})),fe.alpha(1).restart()},$("body").on("keydown",(function(t){!b.isActive()&&"input"!==t.target.nodeName&&e.nodeSelected&&(37===t.keyCode?e.rotate(!0):39===t.keyCode&&e.rotate(!1))})),e.getLiteralFromPropValue=function(e){return e.substring(e.indexOf(":")+1)}}function c(e,t,n,r){switch(e.mode=n.mode,e.graph=_.cloneDeep(n.graph),e.graphExists=n.graphExists,e.mode){case"new":e.title=r.instant("graphexplore.create.new.graph"),e.okButtonText=r.instant("common.create.btn");break;case"update":e.title=r.instant("graphexplore.update"),e.okButtonText=r.instant("common.save.btn");break;case"rename":e.title=r.instant("graphexplore.rename"),e.okButtonText=r.instant("common.save.btn")}e.ok=function(){e.form.$valid&&t.close({graph:e.graph,mode:e.mode})},e.saveNew=function(){e.graph.name=e.graph.name+" (new)",t.close({graph:e.graph,mode:"new",restart:!0})},e.cancel=function(){t.dismiss("cancel")}}angular.module("graphdb.framework.graphexplore.controllers.graphviz",["ui.scroll.jqlite","ui.scroll","toastr","ui.bootstrap","ngTagsInput","graphdb.framework.utils.localstorageadapter"]).controller("GraphsVisualizationsCtrl",a).controller("SaveGraphModalCtrl",c).config(["$uibTooltipProvider",function(e){e.options({appendToBody:!0})}]),a.$inject=["$scope","$rootScope","$repositories","$licenseService","toastr","$timeout","ClassInstanceDetailsService","AutocompleteRestService","$q","$location","$jwtAuth","UiScrollService","ModalService","$uibModal","$window","LocalStorageAdapter","LSKeys","SavedGraphsRestService","GraphConfigRestService","GraphDataRestService","RDF4JRepositoriesRestService","$translate","GuidesService"],c.$inject=["$scope","$uibModalInstance","data","$translate"]},393:function(e,t,n){var r,i;r=[n(398)],void 0===(i=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(398)),d3.selection.prototype.attrs=function(n){return("function"==typeof n?e:t)(this,n)},d3.selection.prototype.moveToFront=function(){return this.each((function(){d3.select(this.parentNode.appendChild(this))}))},d3.selection.prototype.moveToBack=function(){return this.each((function(){const e=this.parentNode.firstChild;e&&this.parentNode.insertBefore(this,e)}))},d3}.apply(t,r))||(e.exports=i)},400:function(e,t,n){"use strict";n(393);var r=r||{};r.Text=function(){function e(e,t,n,r){n=n||10;var i=t/3;return"string"==typeof e?(i*=10/(e.substring(0,t/3).length+1.5),i+=1,e.match(/[\u0900-\u0DFF\u1100-\u11FF\u2E80-\u2EFF\u3000-\u9FFF]/)&&(i*=.6),i<n&&(i=n),Math.round(i)):(i<n&&(i=n),Math.round(i))}return{calcFontSizeRaw:e,calcFontSize:function(t,n,r,i){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(){const e=function(e,n){let r,i=1,o=arguments.length;for(;++i<o;)r=arguments[i],e[r]=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,i){var o,s,a;(s=n,a=d3.pointer(document.body),Math.sqrt(Math.pow(s[0]-a[0],2),Math.pow(s[1]-a[1],2))>5)||(r?(window.clearTimeout(r),r=null,t.call("dblclick",e,e,i)):r=window.setTimeout((o=e,function(){t.call("click",o,o,i),r=null}),250))}))}),t,"on")}}}(),t.a=r},402:function(e,t,n){"use strict";t.a=function(){var e=function(){return"n"},t=function(){return[0,0]},n=function(){return" "},r=u(),i=null,o=null,s=null,a=null;function c(e){var t;i="svg"===(t=(t=e).node()).tagName.toLowerCase()?t:t.ownerSVGElement,o=i.createSVGPoint(),document.body.appendChild(r)}c.show=function(){var r=Array.prototype.slice.call(arguments);r[r.length-1]instanceof SVGElement&&(s=r.pop());var i,o=n.apply(this,r),u=t.apply(this,r),f=e.apply(this,r),h=p(),g=d.length,m=document.documentElement.scrollTop||document.body.scrollTop,y=document.documentElement.scrollLeft||document.body.scrollLeft,x=a.apply(this,r);for(h.html(o).style("opacity",1).style("pointer-events","all");g--;)h.classed(d[g],!1);const v=r.filter(e=>e instanceof Event);return i=l.get(f).apply(this,v),x?Object.keys(x).forEach((function(e){h.style(e,x[e])})):h.classed(f,!0).style("top",i.top+u[0]+m+"px").style("left",i.left+u[1]+y+"px"),c},c.hide=function(){return p().style("opacity",0).style("pointer-events","none"),c},c.attr=function(e,t){if(arguments.length<2&&"string"==typeof e)return p().attr(e);var n=Array.prototype.slice.call(arguments);return d3.selection.prototype.attr.apply(p(),n),c},c.style=function(e,t){if(arguments.length<2&&"string"==typeof e)return p().style(e);var n=Array.prototype.slice.call(arguments);return d3.selection.prototype.style.apply(p(),n),c},c.direction=function(t){return arguments.length?(e=null==t?t:h(t),c):e},c.offset=function(e){return arguments.length?(t=null==e?e:h(e),c):t},c.html=function(e){return arguments.length?(n=null==e?e:h(e),c):n},c.customPosition=function(e){return arguments.length?(a=null==e?e:h(e),c):a},c.destroy=function(){return r&&(p().remove(),r=null),c};var l=new Map(Object.entries({n:function(e){var t=f(e);return{top:t.n.y-r.offsetHeight,left:t.n.x-r.offsetWidth/2}},s:function(e){var t=f(e);return{top:t.s.y,left:t.s.x-r.offsetWidth/2}},e:function(e){var t=f(e);return{top:t.e.y-r.offsetHeight/2,left:t.e.x}},w:function(e){var t=f(e);return{top:t.w.y-r.offsetHeight/2,left:t.w.x-r.offsetWidth}},nw:function(e){var t=f(e);return{top:t.nw.y-r.offsetHeight,left:t.nw.x-r.offsetWidth}},ne:function(e){var t=f(e);return{top:t.ne.y-r.offsetHeight,left:t.ne.x}},sw:function(e){var t=f(e);return{top:t.sw.y,left:t.sw.x-r.offsetWidth}},se:function(e){var t=f(e);return{top:t.se.y,left:t.e.x}}})),d=l.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 p(){return null===r&&(r=u(),document.body.appendChild(r)),d3.select(r)}function f(e){for(var t=s||e.target;void 0===t.getScreenCTM&&"undefined"===t.parentNode;)t=t.parentNode;var n={},r=t.getScreenCTM(),i=t.getBBox(),a=i.width,c=i.height,l=i.x,d=i.y;return o.x=l,o.y=d,n.nw=o.matrixTransform(r),o.x+=a,n.ne=o.matrixTransform(r),o.y+=c,n.se=o.matrixTransform(r),o.x-=a,n.sw=o.matrixTransform(r),o.y-=c/2,n.w=o.matrixTransform(r),o.x+=a,n.e=o.matrixTransform(r),o.x-=a/2,o.y-=c/2,n.n=o.matrixTransform(r),o.y+=c,n.s=o.matrixTransform(r),n}function h(e){return"function"==typeof e?e:function(){return e}}return c}},94:function(e,t,n){"use strict";n.r(t),n.d(t,"STATIC_RULESETS",(function(){return r})),n.d(t,"REPOSITORY_TYPES",(function(){return i})),n.d(t,"FILENAME_PATTERN",(function(){return o})),n.d(t,"NUMBER_PATTERN",(function(){return s}));const r=[{id:"empty",name:"No inference"},{id:"rdfs-optimized",name:"RDFS (Optimized)"},{id:"rdfs",name:"RDFS"},{id:"rdfsplus-optimized",name:"RDFS-Plus (Optimized)"},{id:"owl-horst-optimized",name:"OWL-Horst (Optimized)"},{id:"owl-horst",name:"OWL-Horst"},{id:"owl2-ql-optimized",name:"OWL2-QL (Optimized)"},{id:"owl2-ql",name:"OWL2-QL"},{id:"owl-max-optimized",name:"OWL-Max (Optimized)"},{id:"owl-max",name:"OWL-Max"},{id:"owl2-rl-optimized",name:"OWL2-RL (Optimized)"},{id:"owl2-rl",name:"OWL2-RL"}],i={graphdbRepo:"graphdb",free:"free",eeWorker:"worker",eeMaster:"master",ontop:"ontop",se:"se",fedx:"fedx"},o=new RegExp("^[a-zA-Z0-9-_]+$"),s=new RegExp("^[0-9]+$")}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(window.webpackJsonp=window.webpackJsonp||[]).push([[299],{380:function(e,p,b){e.exports=b.p+"img/graphdb-small.5f94ee13e65870be1db31bb89e6deded.svg"}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(window.webpackJsonp=window.webpackJsonp||[]).push([[3,17,19,29,60,66,67,69,83,101,151,152,153,154,155,156,157,158,160,161,162,163,164,165,172,191,193,234],{100:function(e,t,n){"use strict";n.r(t),n.d(t,"YasguiPersistenceMigrationService",(function(){return i}));var r=n(72);const s="yagui__"+r.VIEW_SPARQL_EDITOR,a="completed",o="rejected",i=function(){const e=()=>({val:{active:null,tabs:[],tabConfig:{}}}),t=(e,t,n=null)=>{e.val.migration={date:(new Date).toISOString(),status:t,error:n}},n=(e,t)=>{e.val.tabs.push(t)},r=(e,t)=>{e.val.tabConfig[t.id]=t},i=e=>{let t=localStorage.getItem(e);if(t)return t=JSON.parse(t),t},u=e=>{e.val.tabs=e.val.tabs.filter(e=>!e.startsWith("_"))},c=e=>{for(const t in e.val.tabConfig)t.startsWith("_")&&delete e.val.tabConfig[t]},d=(e,t)=>{localStorage.setItem(e,JSON.stringify(t))},l=(e,t)=>`${t} ${e}`,y=()=>Math.random().toString(36).substring(7);return{isMigrationNeeded:()=>{const e=i(s);let t=!1;return e&&(t=e.val.migration&&(e.val.migration.status===a||e.val.migration.status===o)),!(!localStorage.getItem("ls.tabs-state")||t)},revertMigration:()=>{const e=i(s);u(e),c(e),d(s,e)},migrateYasguiPersistence:o=>{let u=i("ls.tabs-state");u=Object.freeze(u);let c=i(s);c||(c=e()),u.map(e=>({id:e.id,name:e.name,yasqe:{value:e.query,sameAs:e.sameAs,infer:e.inference,pageSize:1e3,pageNumber:1},yasr:{response:null,settings:{selectedPlugin:"extended_table",pluginsConfig:{}}},requestConfig:{method:"POST"}})).forEach((e,t)=>{e.id="_"+y(),e.name=e.name||l(t,o),n(c,e.id),r(c,e)}),c.val.active=c.val.tabs[0],t(c,a),d(s,c)},rejectMigration:()=>{const e=i(s);t(e,o),d(s,e)}}}()},61:function(e,t,n){"use strict";n.r(t),n.d(t,"RenderingMode",(function(){return r}));const r={YASGUI:"mode-yasgui",YASQE:"mode-yasqe",YASR:"mode-yasr"}},66:function(e,t,n){"use strict";n.r(t),n.d(t,"EventDataType",(function(){return r}));const r={DOWNLOAD_AS:"downloadAs",NOTIFICATION_MESSAGE:"notificationMessage",QUERY:"query",COUNT_QUERY:"countQuery",COUNT_QUERY_RESPONSE:"countQueryResponse",COUNT_QUERY_ABORTED:"countQueryAborted",QUERY_EXECUTED:"queryExecuted",SAVE_QUERY_OPENED:"saveQueryOpened"}},69:function(e,t,n){"use strict";n.r(t),n.d(t,"RouteConstants",(function(){return r}));const r={savedQueryName:"savedQueryName",savedQueryOwner:"owner",query:"query",name:"name",owner:"owner"}},70:function(e,t,n){"use strict";n.r(t),n.d(t,"TabQueryModel",(function(){return r}));class r{constructor(e,t,n,r=!0){this.queryName=e,this.query=t,this.owner=n,this.isPublic=r}}},71:function(e,t,n){"use strict";n.r(t),n.d(t,"QueryType",(function(){return r}));const r={SELECT:"SELECT",CONSTRUCT:"CONSTRUCT",ASK:"ASK",DESCRIBE:"DESCRIBE",INSERT:"INSERT",DELETE:"DELETE",LOAD:"LOAD",CLEAR:"CLEAR",CREATE:"CREATE",DROP:"DROP",COPY:"COPY",MOVE:"MOVE",ADD:"ADD"}},72:function(e,t,n){"use strict";n.r(t),n.d(t,"VIEW_SPARQL_EDITOR",(function(){return r}));const r="graphdb-workbench-sparql-editor"},78:function(e,t,n){"use strict";n.r(t);n(95),n(96);var r=n(79),s=n(63),a=n(97),o=n(66),i=n(12),u=n(89),c=n(435),d=n(71),l=n(98),y=n(14),p=n(99),g=n(100);function E(e,t,n,E,h,m,T,_,f,v,S,b,C,R,A){return{restrict:"E",templateUrl:"js/angular/core/directives/yasgui-component/templates/yasgui-component.html",scope:{yasguiConfig:"=",afterInit:"&",queryChanged:"&"},link:(E,A,q)=>{E.classToApply=q.class||"";const O=new Map,Q=E.yasguiConfig&&E.yasguiConfig.outputHandlers?new Map(E.yasguiConfig.outputHandlers):new Map;let N=void 0;E.getOntotextYasguiElements=()=>A.find("ontotext-yasgui"),E.getOntotextYasguiElement=()=>new l.YasguiComponent(E.getOntotextYasguiElements()[0]),E.createSavedQuery=e=>{const t=Object(r.queryPayloadFromEvent)(e);C.addNewSavedQuery(t).then(()=>X(t)).catch(B)},E.updateSavedQuery=e=>{const t=Object(r.queryPayloadFromEvent)(e);C.editSavedQuery(t).then(()=>j(t)).catch(B)},E.deleteSavedQuery=e=>{const t=Object(r.queryPayloadFromEvent)(e);C.deleteSavedQuery(t.name).then(()=>{_.success(n.instant("query.editor.delete.saved.query.success.msg",{savedQueryName:t.name}))}).catch(e=>{const t=getError(e);_.error(t,n.instant("query.editor.delete.saved.query.error"))})},E.shareSavedQuery=e=>{const t=Object(r.queryPayloadFromEvent)(e);E.savedQueryConfig={shareQueryLink:R.createShareSavedQueryLink(t.name,t.owner)}},E.shareQuery=e=>{const t=Object(r.queryPayloadFromEvent)(e);E.savedQueryConfig={shareQueryLink:R.createShareQueryLink(t)}},E.queryShareLinkCopied=()=>{_.success(n.instant("modal.ctr.copy.url.success"))},E.loadSavedQueries=()=>{C.getSavedQueries().then(e=>{const t=Object(r.savedQueriesResponseMapper)(e);E.savedQueryConfig={savedQueries:t}}).catch(e=>{const t=getError(e);_.error(t,n.instant("query.editor.get.saved.queries.error"))})},E.saveQueryOpened=e=>{y.YasguiComponentDirectiveUtil.highlightTabName(Object(a.toYasguiOutputModel)(e).getTab())},E.output=e=>{const t=Object(a.toYasguiOutputModel)(e);Q.has(t.TYPE)&&Q.get(t.TYPE)(t)};Q.set(o.EventDataType.QUERY,e=>{const t=e.getPageNumber(),n=e.getPageSize();n&&t&&(e.setOffset((t-1)*(n-1)),e.setLimit(n)),e.setPageNumber(void 0),e.setPageSize(void 0)});Q.set(o.EventDataType.COUNT_QUERY,e=>{e.setPageSize(void 0),e.setPageNumber(void 0),e.setCount(1)});Q.set(o.EventDataType.COUNT_QUERY_RESPONSE,e=>{e.setTotalElements(M(e))});Q.set(o.EventDataType.DOWNLOAD_AS,e=>{const t=O.get(e.pluginName);t&&t(e)});Q.set(o.EventDataType.NOTIFICATION_MESSAGE,e=>{const t=_[e.messageType];Object(s.isFunction)(t)&&t(e.message)});O.set("extended_response",e=>{"application/sparql-results+json"===e.contentType?E.getOntotextYasguiElement().getEmbeddedResultAsJson().then(t=>{const n=JSON.stringify(t,null,"\t");Object(a.downloadAsFile)(I()+"_queryResults.json",e.contentType,n)}):"text/csv"===e.contentType&&E.getOntotextYasguiElement().getEmbeddedResultAsCSV().then(t=>{Object(a.downloadAsFile)(I()+"_queryResults.csv",e.contentType,t)})});O.set(u.YasrPluginName.EXTENDED_TABLE,e=>{const n=e.query,r=e.infer,s=e.sameAs,a=e.contentType,o=m.getAuthToken()||"";y.YasguiComponentDirectiveUtil.getOntotextYasguiElementAsync("#query-editor").then(e=>e.getQueryMode()).then(e=>{const i=t.resolveSparqlEndpoint(e),u=$("#wb-download");u.attr("action",i),$("#wb-download-query").val(n),$("#wb-download-infer").val(r),$("#wb-download-sameAs").val(s),$("#wb-auth-token").val(o),$("#wb-download-accept").val(a),u.submit()})});const P=[],w=()=>E.getOntotextYasguiElement().getQuery().then(e=>{N=JSON.stringify(e)});P.push(E.$watch("yasguiConfig",(r,s)=>{if(!E.ontotextYasguiConfig&&r||r&&!Object(c.isEqual)(r,s)){const s=t.isActiveRepoOntopType(),a={isVirtualRepository:s,infer:s||r.infer,immutableInfer:s,sameAs:s||r.sameAs,immutableSameAs:s,yasqeAutocomplete:{LocalNamesAutocompleter:t=>{const n=e.defer();return z(t,n)}},language:h.getLanguage(),i18n:f.getTranslations(),getRepositoryStatementsCount:V,onQueryAborted:G};if(angular.extend(a,k(),E.yasguiConfig),void 0===a.showQueryButton||a.showQueryButton){const e=a.keyboardShortcutConfiguration||{};e[p.KeyboardShortcutName.EXECUTE_EXPLAIN_PLAN_FOR_QUERY]=!0,e[p.KeyboardShortcutName.EXECUTE_CHAT_GPT_EXPLAIN_PLAN_FOR_QUERY]=!0,a.keyboardShortcutConfiguration=e}else{const e=a.keyboardShortcutConfiguration||{};e[p.KeyboardShortcutName.EXECUTE_QUERY_OR_UPDATE]=!1,e[p.KeyboardShortcutName.EXECUTE_EXPLAIN_PLAN_FOR_QUERY]=!1,e[p.KeyboardShortcutName.EXECUTE_CHAT_GPT_EXPLAIN_PLAN_FOR_QUERY]=!1,e[p.KeyboardShortcutName.CREATE_TAB]=!1,e[p.KeyboardShortcutName.CREATE_SAVE_QUERY]=!1,e[p.KeyboardShortcutName.SWITCH_NEXT_TAB]=!1,e[p.KeyboardShortcutName.SWITCH_PREVIOUS_TAB]=!1,e[p.KeyboardShortcutName.CLOSES_ALL_TABS]=!1,a.keyboardShortcutConfiguration=e}g.YasguiPersistenceMigrationService.isMigrationNeeded()&&g.YasguiPersistenceMigrationService.migrateYasguiPersistence(n.instant("sparql.tab.directive.unnamed.tab.title")),E.ontotextYasguiConfig=a,D(),w().then(()=>{angular.isFunction(E.afterInit)&&E.afterInit()})}}));const Y=()=>{let e;const t=E.getOntotextYasguiElement();t.getQuery().then(t=>(e=JSON.stringify(t),e)).then(C.addKnownPrefixes).then(n=>{e=n.data,t.setQuery(e)}).then(()=>{U(JSON.stringify(e))}).catch(e=>{const t=getError(e);_.error(t,n.instant("common.add.known.prefixes.error"))})},D=()=>{const e=T((function(){const t=E.getOntotextYasguiElements();t&&(t.on("paste.sparqlQuery",".CodeMirror",Y),t.on("keyup.sparqlQuery",".CodeMirror textarea",L),T.cancel(e))}))},L=e=>{E.getOntotextYasguiElement().getQuery().then(e=>{U(JSON.stringify(e))})},U=e=>{E.queryChanged(e),E.$emit("queryChanged",{dirty:N!==e})};P.push(E.$on("language-changed",(function(e,t){E.language=t.locale})));E.$on("$destroy",()=>{P.forEach(e=>e());const e=E.getOntotextYasguiElements();e.off("paste.sparqlQuery"),e.off("keyup.sparqlQuery")});const I=()=>{const e=new Date;return`${e.toLocaleDateString(E.language)}_${e.toLocaleTimeString(E.language)}`},M=e=>{if(e.isResponseNumber())return e.getResponseBody();if(e.isResponseArray()){const t=e.getResponseBody();if(t["http://www.ontotext.com/"])return t["http://www.ontotext.com/"]["http://www.ontotext.com/"][0].value}if(e.hasBindingResponse()){const t=e.getResponseBody();if(t){const e=t.results.bindings[0],n=t.head.vars,r=Object.keys(e).find((function(t){return n.indexOf(t)>-1&&!isNaN(e[t].value)}));if(r.length>0)return e[r].value}}},x=e=>{const n=e.getTab().getYasqe(),r={"Content-Type":"application/x-www-form-urlencoded","X-GraphDB-Local-Consistency":"updating","X-GraphDB-Catch":n.getPageSize()+"; throw","X-GraphDB-Track-Alias":`yasgui-component-${performance.now()}-${Date.now()}`,"X-GraphDB-Repository-Location":t.getActiveRepositoryObject().location,"X-Requested-With":"XMLHttpRequest"},s=m.getAuthToken();s&&(r.Authorization=s);const a=n.getQueryType();return i.QueryMode.UPDATE===n.getQueryMode()?r.Accept="text/plain,/;q=0.9":d.QueryType.CONSTRUCT===a||d.QueryType.DESCRIBE===a?r.Accept="application/x-graphdb-table-results+json, application/rdf+json;q=0.9, */*;q=0.8":r.Accept="application/x-sparqlstar-results+json, application/sparql-results+json;q=0.9, */*;q=0.8",r},k=()=>({showEditorTabs:!0,showToolbar:!0,componentId:"yasgui-component",headers:x,pageSize:1e3,maxPersistentResponseSize:5e5,showResultTabs:!0}),B=e=>{const t=getError(e),r=n.instant("query.editor.create.saved.query.error");_.error(t,r),E.savedQueryConfig=Object(s.merge)({},E.savedQueryConfig,{saveSuccess:!1,errorMessage:[r]})},j=e=>F(n.instant("query.editor.edit.saved.query.success.msg",{name:e.name})),X=e=>F(n.instant("query.editor.save.saved.query.success.msg",{name:e.name})),F=e=>{_.success(e),E.savedQueryConfig=Object(s.merge)({},E.savedQueryConfig,{saveSuccess:!0})},z=(e,t)=>v.getAutocompleteSuggestions(e,t.promise).then((function(e){return t=null,e.data})),V=()=>S.getRepositorySize(t.getActiveRepository()).then(e=>parseInt(e.data)).catch((function(e){const r={repo:t.getActiveRepository(),error:getError(e)};_.warning(n.instant("query.editor.repo.size.error",r))})),G=e=>{if(e){const t=e.url.substring(e.url.lastIndexOf("/")+1),n=e.header["X-GraphDB-Track-Alias"];return b.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","AuthTokenService","$interval","toastr","TranslationService","AutocompleteRestService","RDF4JRepositoriesRestService","MonitoringRestService","SparqlRestService","ShareQueryLinkService","ModalService"]},79:function(e,t,n){"use strict";n.r(t),n.d(t,"buildQueryModel",(function(){return s})),n.d(t,"savedQueriesResponseMapper",(function(){return a})),n.d(t,"savedQueryResponseMapper",(function(){return o})),n.d(t,"queryPayloadFromEvent",(function(){return i}));var r=n(70);const s=(e,t,n,s)=>new r.TabQueryModel(t,e,n,s),a=e=>e&&e.data?e.data.map?e.data.map(e=>s(e.body,e.name,e.owner,e.shared)):[s(e.data.body,e.data.name,e.data.owner,e.data.shared)]:[],o=e=>{const t=a(e);return t.length?t[0]:null},i=e=>({name:e.detail.queryName,body:e.detail.query,shared:e.detail.isPublic})},80:function(e,t,n){"use strict";n.r(t),n.d(t,"EventData",(function(){return r}));class r{constructor(e,t){this.TYPE=e,this.payload=t}}},81:function(e,t,n){"use strict";n.r(t),n.d(t,"QueryRequestEvent",(function(){return r}));class r{constructor(e){this.TYPE=e.TYPE,this.query=e.payload.query,this.queryMode=e.payload.queryMode,this.queryType=e.payload.queryType,this.pageSize=e.payload.pageSize,this.request=e.payload.request}setPageSize(e){this.request._data.pageSize=e}getPageSize(){return this.request._data.pageSize?parseInt(this.request._data.pageSize):void 0}setPageNumber(e){this.request._data.pageNumber=e}getPageNumber(){return this.request._data.pageNumber?parseInt(this.request._data.pageNumber):void 0}setOffset(e){this.request._data.offset=e}setLimit(e){this.request._data.limit=e}}},82:function(e,t,n){"use strict";n.r(t),n.d(t,"CountQueryResponseEvent",(function(){return s}));var r=n(63);class s{constructor(e){this.TYPE=e.TYPE,this.response=e.payload.response}hasResponse(){return this.response&&this.response.body}getResponseBody(){if(this.hasResponse())return this.response.body}isResponseNumber(){return!!this.hasResponse()&&Object(r.isNumber)(this.response.body)}isResponseArray(){return!!this.hasResponse()&&Array.isArray(this.response.body)}getBindings(){if(this.hasResponse())return this.response.body.results.bindings}hasBindingResponse(){return!!this.hasResponse()&&this.response.body.results.bindings[0]}setTotalElements(e){this.response.body.totalElements=e}}},83:function(e,t,n){"use strict";n.r(t),n.d(t,"CountQueryRequestEvent",(function(){return r}));class r{constructor(e){this.TYPE=e.TYPE,this.query=e.payload.query,this.queryMode=e.payload.queryMode,this.queryType=e.payload.queryType,this.pageSize=e.payload.pageSize,this.request=e.payload.request}setPageSize(e){this.request._data.pageSize=e}setPageNumber(e){this.request._data.pageNumber=e}setCount(e){this.request._data.count=e}}},84:function(e,t,n){"use strict";n.r(t),n.d(t,"DownloadAsEvent",(function(){return r}));class r{constructor(e){this.TYPE=e.TYPE,this.contentType=e.payload.value,this.pluginName=e.payload.pluginName,this.query=e.payload.query,this.infer=e.payload.infer,this.sameAs=e.payload.sameAs}}},85:function(e,t,n){"use strict";n.r(t),n.d(t,"NotificationMessageEvent",(function(){return r}));class r{constructor(e){this.TYPE=e.TYPE,this.message=e.payload.message,this.code=e.payload.code,this.messageType=e.payload.messageType}}},86:function(e,t,n){"use strict";n.r(t),n.d(t,"QueryExecutedEvent",(function(){return r}));class r{constructor(e){this.TYPE=e.TYPE,this.duration=e.payload.duration,this.tabId=e.payload.tabId}}},87:function(e,t,n){"use strict";n.r(t),n.d(t,"SaveQueryOpened",(function(){return r}));class r{constructor(e){this.tab=e.payload.tab}getTab(){return this.tab}}},88:function(e,t,n){"use strict";n.r(t),n.d(t,"CountQueryAbortedEvent",(function(){return r}));class r{constructor(e){this.TYPE=e.TYPE,this.request=e.payload}getQueryTrackAlias(){if(this.request&&this.request.response)return this.request.response.header["X-GraphDB-Track-Alias"]}getRepository(){if(this.request&&this.request.response){const e=this.request.response.url;return e.substring(e.lastIndexOf("/")+1)}}}},89:function(e,t,n){"use strict";n.r(t),n.d(t,"YasrPluginName",(function(){return r}));const r={EXTENDED_TABLE:"extended_table",RAW_RESPONSE:"response",TABLE:"table"}},95:function(e,t){function n(e){const t=["en","fr"];let n;return{getTranslations:()=>(n||(n={},t.forEach(t=>n[t]=e.getTranslationTable(t))),n)}}angular.module("graphdb.framework.core.services.translation-service",[]).service("TranslationService",n),n.$inject=["$translate"]},96:function(e,t,n){"use strict";n.r(t);var r=n(69);angular.module("graphdb.framework.sparql-editor.share-query.service",[]).factory("ShareQueryLinkService",(function(){return{createShareSavedQueryLink:function(t,n){let s=`${e()}?${r.RouteConstants.savedQueryName}=${encodeURIComponent(t)}`;null!=n&&(s+=`&${r.RouteConstants.savedQueryOwner}=${encodeURIComponent(n)}`);return s},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("")}}))},97:function(e,t,n){"use strict";n.r(t),n.d(t,"toEventData",(function(){return p})),n.d(t,"toYasguiOutputModel",(function(){return g})),n.d(t,"downloadAsFile",(function(){return E}));var r=n(80),s=n(66),a=n(81),o=n(82),i=n(83),u=n(84),c=n(85),d=n(86),l=n(87),y=n(88);const p=e=>new r.EventData(e.detail.TYPE,e.detail.payload),g=e=>{const t=p(e);switch(t.TYPE){case s.EventDataType.DOWNLOAD_AS:return new u.DownloadAsEvent(t);case s.EventDataType.NOTIFICATION_MESSAGE:return new c.NotificationMessageEvent(t);case s.EventDataType.COUNT_QUERY:return new i.CountQueryRequestEvent(t);case s.EventDataType.COUNT_QUERY_RESPONSE:return new o.CountQueryResponseEvent(t);case s.EventDataType.QUERY:return new a.QueryRequestEvent(t);case s.EventDataType.QUERY_EXECUTED:return new d.QueryExecutedEvent(t);case s.EventDataType.SAVE_QUERY_OPENED:return new l.SaveQueryOpened(t);case s.EventDataType.COUNT_QUERY_ABORTED:return new y.CountQueryAbortedEvent(t);default:return t}},E=(e,t,n)=>{const r=document.createElement("a");r.setAttribute("href",`data:${t};charset=utf-8, + ${encodeURIComponent(n)}`),r.setAttribute("download",e),r.style.display="none",document.body.appendChild(r),r.click(),document.body.removeChild(r)}},98:function(e,t,n){"use strict";n.r(t),n.d(t,"YasguiComponent",(function(){return s}));var r=n(14);n(61);class s{constructor(e=r.YasguiComponentDirectiveUtil.getOntotextYasguiElement("#query-editor")){this.yasguiComponent=e}changeRenderMode(e){return this.yasguiComponent.changeRenderMode(e)}setQuery(e){return this.yasguiComponent.setQuery(e)}query(e){return this.yasguiComponent.query(e)}getQuery(){return this.yasguiComponent.getQuery()}isQueryValid(){return this.yasguiComponent.isQueryValid()}openTab(e){return this.yasguiComponent.openTab(e)}getQueryMode(){return this.yasguiComponent.getQueryMode()}getQueryType(){return this.yasguiComponent.getQueryType()}getEmbeddedResultAsJson(){return this.yasguiComponent.getEmbeddedResultAsJson()}getEmbeddedResultAsCSV(){return this.yasguiComponent.getEmbeddedResultAsCSV()}hideYasqeActionButton(e){return this.yasguiComponent.hideYasqeActionButton(e)}showYasqeActionButton(e){return this.yasguiComponent.showYasqeActionButton(e)}abortQuery(){return this.yasguiComponent.abortQuery()}abortAllCountQuery(){return this.yasguiComponent.abortAllCountQuery()}resetYasrResults(){return this.yasguiComponent.resetResults()}}},99:function(e,t,n){"use strict";n.r(t),n.d(t,"KeyboardShortcutName",(function(){return r}));const r={TRIGGER_AUTOCOMPLETION:"trigger_autocompletion",DELETE_CURRENT_LINE:"delete_current_line",COMMENT_SELECTED_LINE:"comment_selected_line",COPY_LINE_DOWN:"copy_line_down",COPY_LINE_UP:"copy_line_up",AUTO_FORMAT_SELECTED_LINE:"auto_format_selected_line",INDENT_CURRENT_LINE_MORE:"indent_current_line_more",INDENT_CURRENT_LINE_LESS:"indent_current_line_less",EXECUTE_QUERY_OR_UPDATE:"execute_query_or_update",EXECUTE_EXPLAIN_PLAN_FOR_QUERY:"execute_explain_plan_for_query",EXECUTE_CHAT_GPT_EXPLAIN_PLAN_FOR_QUERY:"execute_chat_gpt_explain_plan_for_query",CREATE_TAB:"create_tab",CREATE_SAVE_QUERY:"create_save_query",SWITCH_NEXT_TAB:"switch_next_tab",SWITCH_PREVIOUS_TAB:"switch_previous_tab",CLOSES_ALL_TABS:"closes_all_tabs",FULL_SCREEN:"full_screen",ESC:"esc"}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(window.webpackJsonp=window.webpackJsonp||[]).push([[30,163,164,167,168,170,172],{181:function(t,i,s){"use strict";s.r(i),s.d(i,"YasguiOrientation",(function(){return e}));const e={VERTICAL:"orientation-vertical",HORIZONTAL:"orientation-horizontal"}},182:function(t,i,s){"use strict";s.r(i),s.d(i,"YasguiQueryHttpMethod",(function(){return e}));const e={POST:"POST",GET:"GET"}},250:function(t,i,s){"use strict";s.r(i),s.d(i,"OntotextYasguiConfig",(function(){return u}));var e=s(61),o=s(181),n=s(182),r=s(62),a=s(89);class u{constructor(){this.render=e.RenderingMode.YASGUI,this.orientation=o.YasguiOrientation.VERTICAL,this.showEditorTabs=!0,this.showResultTabs=!0,this.showResultInfo=!0,this.showToolbar=!0,this.showControlBar=!0,this.showQueryButton=!0,this.showQueryLoader=!0,this.endpoint="",this.i18n=void 0,this.method=n.YasguiQueryHttpMethod.GET,this.headers=void 0,this.infer=void 0,this.immutableInfer=void 0,this.sameAs=void 0,this.immutableSameAs=void 0,this.copyEndpointOnNewTab=!0,this.componentId=void 0,this.yasqeMode=r.YasqeMode.WRITE,this.query=void 0,this.initialQuery=void 0,this.defaultTabNameLabelKey=void 0,this.yasqeActionButtons=void 0,this.createShareableLink=null,this.populateFromUrl=!1,this.prefixes=void 0,this.defaultPlugin=a.YasrPluginName.EXTENDED_TABLE,this.pluginOrder=[a.YasrPluginName.EXTENDED_TABLE,a.YasrPluginName.RAW_RESPONSE],this.pluginsConfigurations=void 0,this.pageSize=1e3,this.paginationOn=!0,this.downloadAsOn=!0,this.maxPersistentResponseSize=5e5,this.yasqeAutocomplete=void 0,this.isVirtualRepository=void 0,this.beforeUpdateQuery=void 0,this.getRepositoryStatementsCount=void 0,this.onQueryAborted=void 0,this.yasrToolbarPlugins=void 0,this.getCellContent=(t,i)=>"",this.sparqlResponse=void 0}}},61:function(t,i,s){"use strict";s.r(i),s.d(i,"RenderingMode",(function(){return e}));const e={YASGUI:"mode-yasgui",YASQE:"mode-yasqe",YASR:"mode-yasr"}},62:function(t,i,s){"use strict";s.r(i),s.d(i,"YasqeMode",(function(){return e}));const e={WRITE:"WRITE",READ:"READ",PROTECTED:"PROTECTED"}},89:function(t,i,s){"use strict";s.r(i),s.d(i,"YasrPluginName",(function(){return e}));const e={EXTENDED_TABLE:"extended_table",RAW_RESPONSE:"response",TABLE:"table"}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(window.webpackJsonp=window.webpackJsonp||[]).push([[300],{381:function(a,o,p){a.exports=p.p+"img/ot-loader.258a202708a014a48cfaa50891b58540.svg"}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(window.webpackJsonp=window.webpackJsonp||[]).push([[31,163,164,170,189,190,233],{123:function(e,t,r){"use strict";r.r(t),r.d(t,"SparqlTemplateError",(function(){return a}));class a extends Error{}},124:function(e,t,r){"use strict";r.r(t),r.d(t,"DEFAULT_SPARQL_QUERY",(function(){return a})),r.d(t,"SparqlTemplateInfo",(function(){return n}));const a="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";class n{constructor(e=a,t=!0,r){this.query=e,this.templateID=r,this.isNewTemplate=t,this.templateExist=!1,this.isValidTemplateId=!0,this.isValidQuery=!0,this.isValidQueryMode=!0}}},198:function(e,t,r){"use strict";r.r(t);r(7),r(24),r(28),r(64),r(27),r(32);var a=r(0),n=r(124),s=r(123),i=r(62),o=r(61),l=r(14);function p(e,t,r,a,n,s,i){e.pluginName="sparql-template",e.setPluginIsActive=function(t){e.pluginIsActive=t},e.getSparqlTemplates=function(){s.isLicenseValid()&&t.getActiveRepository()&&!t.isActiveRepoOntopType()&&!t.isActiveRepoFedXType()?r.getSparqlTemplates(t.getActiveRepository()).success((function(t){e.sparqlTemplateIds=t})).error((function(e){const t=getError(e);a.error(t,i.instant("sparql.template.get.templates.error"))})):e.sparqlTemplateIds=[]},e.$watch((function(){return t.getActiveRepository()}),(function(){e.getSparqlTemplates()})),e.deleteTemplate=function(s){n.openSimpleModal({title:i.instant("common.warning"),message:i.instant("sparql.template.delete.template.warning",{templateID:s}),warning:!0}).result.then((function(){r.deleteSparqlTemplate(s,t.getActiveRepository()).success((function(){a.success(s,i.instant("sparql.template.delete.template.success")),e.getSparqlTemplates()})).error((function(e){a.error(getError(e),i.instant("sparql.template.delete.template.failure",{templateID:s}))}))}))}}function c(e,t,r,p,c,m,u,d,f,g,T,q,h,I,y,E){e.initialQuery=n.DEFAULT_SPARQL_QUERY,e.sparqlTemplateInfo=new n.SparqlTemplateInfo(e.initialQuery),e.title="",e.saveOrUpdateExecuted=!1,e.isDirty=!1,e.language=E.getLanguage(),e.canEditActiveRepo=!1;let w=!0;e.saveTemplate=function(){e.saveOrUpdateExecuted=!0,A()||Y();const t=e.sparqlTemplateInfo.isNewTemplate?S:b;M(e.sparqlTemplateInfo).then(Q).then(D).then(x).then(t).then(V).catch(e=>{e instanceof s.SparqlTemplateError||console.log(e)})},e.isTemplateIdValid=e=>T.isValidIri(e,e.toString()),e.markDirty=()=>{e.isDirty=!0},e.markPristine=()=>{e.isDirty=!1};const v=(t,r=n.DEFAULT_SPARQL_QUERY)=>{e.sparqlTemplateInfo.query=r,e.sparqlTemplateInfo.templateID=j(),e.sparqlTemplateInfo.isNewTemplate=!e.sparqlTemplateInfo.templateID,U(),e.yasguiConfig={showEditorTabs:!1,showToolbar:!1,showResultTabs:!1,showYasqeActionButtons:!1,showYasqeResizer:!1,yasqeActionButtons:l.DISABLE_YASQE_BUTTONS_CONFIGURATION,showQueryButton:!1,initialQuery:e.sparqlTemplateInfo.query,componentId:"sparql-template",prefixes:t,render:o.RenderingMode.YASQE,maxPersistentResponseSize:0,yasqeMode:e.canEditActiveRepo?i.YasqeMode.WRITE:i.YasqeMode.PROTECTED}},S=e=>R(e).then($).then(P),R=t=>f.getSparqlTemplates(c.getActiveRepository()).then((function(r){return t.templateExist=r.data.find(t=>t===e.sparqlTemplateInfo.templateID),t})).catch((function(e){const t=getError(e);return p.error(t,h.instant("sparql.template.get.templates.error")),Promise.reject(new s.SparqlTemplateError("Failed to retrieve sparql templates."))})),D=e=>L().isQueryValid().then(t=>(e.isValidQuery=t,e.isValidQuery?e:Promise.reject(new s.SparqlTemplateError("Invalid query.")))),A=()=>e.sparqlTemplateInfo.isNewTemplate||e.isDirty,$=e=>new Promise((t,r)=>{if(e.templateExist){const n=Object(a.decodeHTML)(h.instant("sparql.template.existing.template.error",{templateID:e.templateID})),i=h.instant("common.confirm.save");C(i,n,()=>t(e),()=>r(new s.SparqlTemplateError("Save not confirmed.")))}else t(e)});function P(t){return f.createSparqlTemplate(t,c.getActiveRepository()).then((function(){return t.isNewTemplate=!1,e.markPristine(),p.success(t.templateID,h.instant("save.sparql.template.success.msg")),t})).catch((function(e){const r=getError(e);return p.error(r,h.instant("save.sparql.template.failure.msg",{templateID:t.templateID})),Promise.reject(new s.SparqlTemplateError("Failed to save the new template: "+t.templateID))}))}const b=t=>f.updateSparqlTemplate(t,c.getActiveRepository()).then((function(){return t.isNewTemplate=!1,e.markPristine(),p.success(e.sparqlTemplateInfo.templateID,h.instant("update.sparql.template.success.msg")),t})).catch((function(e){const r=getError(e);return p.error(r,h.instant("save.sparql.template.failure.msg",{templateID:t.templateID})),Promise.reject(new s.SparqlTemplateError("Failed to update the template: "+t.templateID))})),Q=e=>L().getQuery().then(t=>(e.query=t,e)),x=e=>L().getQueryMode().then(t=>(e.isValidQueryMode="update"===t,e.isValidQueryMode?e:Promise.reject(new s.SparqlTemplateError("Query mode is not valid.")))),M=t=>new Promise((r,a)=>{t.templateID?(t.isValidTemplateId=e.isTemplateIdValid(t.templateID),t.isValidTemplateId?r(t):a(new s.SparqlTemplateError("Template identifier is not valid."))):a(new s.SparqlTemplateError("A required template identifier is missing."))}),V=()=>{setTimeout((function(){Y()}),1e3)},j=()=>{const e=r.hash()||"";return(r.search().templateID||"")+(e?"#"+e:"")},U=()=>{e.title=(e.sparqlTemplateInfo.templateID?h.instant("edit"):h.instant("common.create.btn"))+" "+h.instant("view.sparql.template.title")},Y=()=>{r.url("/sparql-templates")},k=(t,r)=>{e.queryIsRunning=t,e.loaderMessage=e.queryIsRunning?r:""},L=()=>l.YasguiComponentDirectiveUtil.getOntotextYasguiElement("#query-editor"),C=(e,t,r,a)=>{q.openSimpleModal({title:e,message:t,warning:!0}).result.then((function(){angular.isFunction(r)&&r()}),(function(){angular.isFunction(a)&&a()}))},F=()=>{window.removeEventListener("beforeunload",N),O.forEach(e=>e())},N=t=>{e.isDirty&&(t.returnValue=!0)},O=[];O.push(e.$on("queryChanged",(t,r)=>{r.dirty?e.markDirty():e.markPristine()})),O.push(t.$on("$translateChangeSuccess",()=>{e.language=E.getLanguage(),U()})),O.push(e.$on("$locationChangeStart",(t,a)=>{if(e.isDirty){t.preventDefault();const e=h.instant("common.confirm"),n=h.instant("jdbc.warning.unsaved.changes");C(e,n,()=>{F();const e=r.absUrl().length-r.url().length,t=a.substring(e);r.path(t)})}else F()})),O.push(y.subscribe("repositoryWillChangeEvent",t=>new Promise((function(r){if(e.sparqlTemplateInfo.isNewTemplate)return void r(t);const a=()=>{e.isDirty=!1,Y(),r(t)};if(e.isDirty){const e=()=>{t.cancel=!0,r(t)},n=h.instant("common.confirm"),s=h.instant("jdbc.warning.unsaved.changes");C(n,s,a,e)}else a()})))),O.push(e.$on("$destroy",F)),window.addEventListener("beforeunload",N);const _=()=>{const t=`${h.instant("common.refreshing.namespaces")}. ${h.instant("common.extra.message")}`;k(!0,t),e.sparqlTemplateInfo.templateID=j();const r=c.getActiveRepository();e.sparqlTemplateInfo.templateID?Promise.all([c.getPrefixes(r),f.getSparqlTemplate(e.sparqlTemplateInfo.templateID,r)]).then(([e,t])=>v(e,t.data)).finally(()=>k(!1)):c.getPrefixes(r).then(e=>v(e)).finally(()=>k(!1))};O.push(e.$watch(e.getActiveRepositoryObject,t=>{t&&(e.canEditActiveRepo=e.canWriteActiveRepo(),w?(_(),w=!1):Y())}))}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",c),p.$inject=["$scope","$repositories","SparqlTemplatesRestService","toastr","ModalService","$licenseService","$translate"],c.$inject=["$scope","$rootScope","$location","toastr","$repositories","$window","$timeout","$interval","SparqlTemplatesRestService","RDF4JRepositoriesRestService","UriUtils","ModalService","$translate","$q","EventEmitterService","$languageService"]},61:function(e,t,r){"use strict";r.r(t),r.d(t,"RenderingMode",(function(){return a}));const a={YASGUI:"mode-yasgui",YASQE:"mode-yasqe",YASR:"mode-yasr"}},62:function(e,t,r){"use strict";r.r(t),r.d(t,"YasqeMode",(function(){return a}));const a={WRITE:"WRITE",READ:"READ",PROTECTED:"PROTECTED"}},64:function(e,t){function r(e,t){return{showToastMessageWithDelay:function(r){return new Promise(a=>{e.success(t.instant(r)),setTimeout(a,200)})}}}angular.module("graphdb.framework.utils.notifications",[]).factory("Notifications",r),r.$inject=["toastr","$translate"]}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(window.webpackJsonp=window.webpackJsonp||[]).push([[32,47,163,164,183,184,185],{107:function(e,i,t){"use strict";t.r(i),t.d(i,"SimilarityQueryType",(function(){return s}));const s={DATA:"DATA",SEARCH:"SEARCH",ANALOGICAL:"ANALOGICAL"}},184:function(e,i,t){"use strict";t.r(i),t.d(i,"SimilarityIndexInfo",(function(){return y}));var s=t(74),r=t(107),a=t(61);const n=new RegExp("^[a-zA-Z0-9-_]+$");class y{constructor(){this.similarityIndex=new s.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=a.RenderingMode.YASQE}setQuery(e,i){const t=i||this.selectedQueryType;r.SimilarityQueryType.DATA!==t?r.SimilarityQueryType.SEARCH!==t?r.SimilarityQueryType.ANALOGICAL===t&&(this.similarityIndex.analogicalQuery=e):this.similarityIndex.searchQuery=e:this.similarityIndex.selectQuery=e}getQuery(e){switch(e||this.selectedQueryType){case r.SimilarityQueryType.DATA:return this.similarityIndex.selectQuery;case r.SimilarityQueryType.SEARCH:return this.similarityIndex.searchQuery;case r.SimilarityQueryType.ANALOGICAL:return this.similarityIndex.analogicalQuery}}markInvalidQuery(e,i=!0){const t=e||this.selectedQueryType;r.SimilarityQueryType.DATA!==t?r.SimilarityQueryType.SEARCH!==t?r.SimilarityQueryType.ANALOGICAL===t&&(this.invalidAnalogicalQuery=i):this.invalidSearchQuery=i:this.invalidSelectQuery=i}markInvalidQueryType(e,i=!0){const t=e||this.selectedQueryType;r.SimilarityQueryType.DATA!==t?r.SimilarityQueryType.SEARCH!==t?r.SimilarityQueryType.ANALOGICAL===t&&(this.invalidAnalogicalQueryType=i):this.invalidSearchQueryType=i:this.invalidSelectQueryType=i}setSelectedQueryType(e){this.selectedQueryType=e}getSelectedQueryType(){return this.selectedQueryType}setSelectedYasguiRenderMode(e){this.selectedYasguiRenderMode=e}getSelectedYasguiRenderMode(){return this.selectedYasguiRenderMode}isDataQueryTypeSelected(){return r.SimilarityQueryType.DATA===this.selectedQueryType}isSearchQueryTypeSelected(){return r.SimilarityQueryType.SEARCH===this.selectedQueryType}isAnalogicalQueryTypeSelected(){return r.SimilarityQueryType.ANALOGICAL===this.selectedQueryType}isTextType(){return this.similarityIndex.isTextType()}isPredicationType(){return this.similarityIndex.isPredicationType()}isTextLiteralType(){return this.similarityIndex.isTextLiteralType()}hasName(){return!!this.similarityIndex.name}isNameValid(){return n.test(this.similarityIndex.name)}hasSelectQuery(){return!!this.similarityIndex.selectQuery}hasSearchQuery(){return!!this.similarityIndex.searchQuery}hasAnalogicalQuery(){return!!this.similarityIndex.analogicalQuery}isYasqeRenderMode(){return a.RenderingMode.YASQE===this.getSelectedYasguiRenderMode()}isYasrRenderMode(){return a.RenderingMode.YASR===this.getSelectedYasguiRenderMode()}getName(){return this.similarityIndex.name}setName(e){this.similarityIndex.name=e}setInputIndex(e){this.similarityIndex.inputIndex=e}getInputIndex(){return this.similarityIndex.inputIndex}setLiteralIndex(e=!1){this.similarityIndex.isLiteralIndex=e}getSimilarityIndex(){return this.similarityIndex}setStopList(e){this.similarityIndex.stopList=e}getStopList(){return this.similarityIndex.stopList}setAnalyzer(e="org.apache.lucene.analysis.en.EnglishAnalyzer"){this.similarityIndex.analyzer=e}getAnalyzer(){return this.similarityIndex.analyzer}setType(e){this.similarityIndex.type=e}getType(){return this.similarityIndex.type}setOptions(e){this.similarityIndex.options=e}getOptions(){return this.similarityIndex.options}getInference(){return this.similarityIndex.infer}getSameAs(){return this.similarityIndex.sameAs}}},61:function(e,i,t){"use strict";t.r(i),t.d(i,"RenderingMode",(function(){return s}));const s={YASGUI:"mode-yasgui",YASQE:"mode-yasqe",YASR:"mode-yasr"}},67:function(e,i,t){"use strict";t.r(i),t.d(i,"SimilarityIndexType",(function(){return s}));const s={TEXT:"text",TEXT_LITERAL:"textLiteral",PREDICATION:"predication",isTextType:e=>s.TEXT===e,isTextLiteralType:e=>s.TEXT_LITERAL===e,isPredicationType:e=>s.PREDICATION===e}},68:function(e,i,t){"use strict";t.r(i),t.d(i,"SimilarityIndexStatus",(function(){return s}));const s={CREATING:"CREATING",BUILDING:"BUILDING",BUILT:"BUILT",REBUILDING:"REBUILDING",OUTDATED:"OUTDATED",INTERRUPTED:"INTERRUPTED",OBSOLETE:"OBSOLETE",FAILED:"FAILED",isCreatingStatus:e=>s.CREATING===e,isBuildingStatus:e=>s.BUILDING===e,isBuiltStatus:e=>s.BUILT===e,isRebuildingStatus:e=>s.REBUILDING===e,isOutdatedStatus:e=>s.OUTDATED===e,isInterruptedStatus:e=>s.INTERRUPTED===e,isObsoleteStatus:e=>s.OBSOLETE===e,isFailedStatus:e=>s.FAILED===e}},74:function(e,i,t){"use strict";t.r(i),t.d(i,"SimilarityIndex",(function(){return a}));var s=t(67),r=t(68);class a{constructor(){this.analyzer="",this.infer=!0,this.options="",this.sameAs=!0,this.searchQuery="",this.selectQuery="",this.stopList=void 0,this.name="",this.type=s.SimilarityIndexType.TEXT,this.status=void 0,this.analogicalQuery=void 0,this.inputIndex=void 0,this.isLiteralIndex=""}isTextType(){return s.SimilarityIndexType.isTextType(this.type)}isTextLiteralType(){return s.SimilarityIndexType.isTextLiteralType(this.type)}isPredicationType(){return s.SimilarityIndexType.isPredicationType(this.type)}isCreatingStatus(){return r.SimilarityIndexStatus.isCreatingStatus(this.status)}isBuildingStatus(){return r.SimilarityIndexStatus.isBuildingStatus(this.status)}isBuiltStatus(){return r.SimilarityIndexStatus.isBuiltStatus(this.status)}isRebuildingStatus(){return r.SimilarityIndexStatus.isRebuildingStatus(this.status)}isOutdatedStatus(){return r.SimilarityIndexStatus.isOutdatedStatus(this.status)}isInterruptedStatus(){return r.SimilarityIndexStatus.isInterruptedStatus(this.status)}isObsoleteStatus(){return r.SimilarityIndexStatus.isObsoleteStatus(this.status)}isFailedStatus(){return r.SimilarityIndexStatus.isFailedStatus(this.status)}}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(window.webpackJsonp=window.webpackJsonp||[]).push([[33,68,186,187,220],{121:function(e,i,t){"use strict";t.r(i),t.d(i,"SimilarityResultType",(function(){return r}));const r={TERM_RESULT:"termResult",DOCUMENT_RESULT:"documentResult",ENTITY_RESULT:"entityResult"}},122:function(e,i,t){"use strict";t.r(i),t.d(i,"SimilaritySearch",(function(){return a}));var r=t(91);class a{constructor(){this.type=r.SimilaritySearchType.SEARCH_TERM,this.predicate="",this.termOrSubject=""}isSearchAnalogicalType(){return r.SimilaritySearchType.isSearchAnalogicalType(this.type)}isSearchTermType(){return r.SimilaritySearchType.isSearchTermType(this.type)}isSearchEntityType(){return r.SimilaritySearchType.isSearchEntityType(this.type)}isSearchEntityPredicateType(){return r.SimilaritySearchType.isSearchEntityPredicateType(this.type)}isSearchDocumentType(){return r.SimilaritySearchType.isSearchDocumentType(this.type)}}},195:function(e,i){angular.module("graphdb.framework.rest.similarity.service",[]).factory("SimilarityRestService",t),t.$inject=["$http","$repositories"];function t(e){return{getIndexes:function(){return e.get("rest/similarity")},getSearchQueries:function(){return e.get("rest/similarity/config")},rebuildIndex:function(e){return i("PUT",e.name,e.options,e.selectQuery,e.searchQuery,e.analogicalQuery,e.stopList,e.infer,e.sameAs,e.type)},deleteIndex:function(i){return e.delete("rest/similarity?name="+i.name)},createIndex:i,getSamples:function(){return e.get("rest/similarity/samples")},getQuery:function(i){return e.get("rest/similarity/query",{params:{name:i.indexName,options:i.indexOptions,stopList:i.indexStopList,selectQuery:i.query,infer:i.queryInference,sameAs:i.querySameAs,type:i.viewType,analyzer:i.indexAnalyzer}})},saveSearchQuery:function(i){return e({method:"put",url:"rest/similarity/search-query",data:i})}};function i(i,t,r,a,s,c,n,l,o,y,p){return e({method:i,url:"rest/similarity",noCancelOnRouteChange:!0,data:{name:t,options:r,selectQuery:a,stopList:n,infer:l,sameAs:o,type:y,analyzer:p,searchQuery:s,analogicalQuery:c}})}}},197:function(e,i,t){"use strict";t.r(i);var r=t(0),a=t(91),s=t(121),c=t(68),n=t(67),l=t(108),o=t(122),y=t(61);function p(e,i,t,p,u,d,S,m,h,T,g,x,I,R){const E="http://www.ontotext.com/graphdb/similarity/",A="http://www.ontotext.com/graphdb/similarity/psi/",b=A+"any";e.pluginName="similarity",e.pluginIsActive=!0,e.isLoading=!1,e.selectedSimilarityIndex=void 0,e.similarityIndexStatus=c.SimilarityIndexStatus,e.similarityIndexType=n.SimilarityIndexType,e.similaritySearchType=a.SimilaritySearchType,e.searchType=a.SimilaritySearchType.SEARCH_TERM,e.similarityResultType=s.SimilarityResultType,e.resultType=s.SimilarityResultType.TERM_RESULT,e.info=g,e.isGraphDBRepository=void 0,e.canEditRepo=e.canWriteActiveRepo(),e.loadSimilarityIndexesTimer=void 0,e.loadSimilarityIndexes=()=>{e.isGraphDBRepository&&e.pluginIsActive&&h.getIndexes().success(i=>e.similarityIndexes=Object(l.mapIndexesResponseToSimilarityIndex)(i)).error(e=>t.error(getError(e),I.instant("similarity.could.not.get.indexes.error")))},e.reloadSimilarityIndexes=()=>{e.loadSimilarityIndexes(),e.loadSimilarityIndexesTimer||(e.loadSimilarityIndexesTimer=i((function(){e.$broadcast("checkIsActive"),"false"!==$("#indexes-table").attr("aria-expanded")&&e.loadSimilarityIndexes()}),5e3))},e.goToSimilarityIndex=i=>{(i.isBuiltStatus()||i.isOutdatedStatus()||i.isRebuildingStatus())&&(e.empty=!0,e.selectedSimilarityIndex!==i&&(e.lastSearch=void 0,e.selectedSimilarityIndex=i),i.isTextType()?e.searchType=a.SimilaritySearchType.SEARCH_TERM:i.isPredicationType()&&(e.searchType=a.SimilaritySearchType.SEARCH_ENTITY),(i.isTextType()||i.isPredicationType())&&$("#indexes-table").collapse("hide"))},e.performSearch=(i,r,a,s,c)=>{e.isLoading=!0,N(a,r);const n=q(i,r,a,s,c);R.getQueryResult(p.getActiveRepository(),n,"application/x-sparqlstar-results+json, application/sparql-results+json;q=0.9, */*;q=0.8").then(e=>D(e)).catch(e=>t.error(getError(e.data),I.instant("similarity.get.resource.error"))).finally(()=>e.isLoading=!1)},e.viewSearchQuery=()=>{let i;i=e.lastSearch.isSearchAnalogicalType()?e.selectedSimilarityIndex.analogicalQuery?e.selectedSimilarityIndex.analogicalQuery:e.searchQueries.analogical:e.selectedSimilarityIndex.searchQuery?e.selectedSimilarityIndex.searchQuery:e.searchQueries[e.selectedSimilarityIndex.type];let t=[],r="";t=i.match(/[a-zA-Z0-9-]+:<http:\/\/www.ontotext.com\/graphdb\/similarity\/instance\/>/),r=null==t?"similarity-index":t[0].substring(0,t[0].indexOf(":"));const s=i.replace("?index",r+":"+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",Q(e.searchParameters?e.searchParameters:"")).replace("?psiPredicate",e.lastSearch.predicate?C(e.lastSearch.predicate):C(b)).replace("?givenSubject",C(e.analogicalSubject)).replace("?givenObject",C(e.analogicalObject)).replace("?searchSubject",C(e.searchSubject));m.open({templateUrl:"pages/viewQuery.html",controller:"ViewQueryCtrl",resolve:{query:()=>s}})},e.deleteSimilarityIndex=i=>{S.openSimpleModal({title:I.instant("common.confirm"),message:I.instant("similarity.delete.index.warning",{name:i.name}),warning:!0}).result.then((function(){h.deleteIndex(i).then(()=>e.loadSimilarityIndexes()).catch(e=>t.error(getError(e)))}))},e.viewCreateQuery=e=>{h.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(e=>{m.open({templateUrl:"pages/viewQuery.html",controller:"ViewQueryCtrl",resolve:{query:()=>e}})})},e.rebuildIndex=i=>{i.searchQuery||(i.searchQuery=i.type?e.searchQueries[i.type]:e.searchQueries.text),S.openSimpleModal({title:I.instant("common.confirm"),message:Object(r.decodeHTML)(I.instant("similarity.rebuild.index.warning",{name:i.name})),warning:!0}).result.then(()=>{i.status=c.SimilarityIndexStatus.REBUILDING,h.rebuildIndex(i).catch(e=>t.error(getError(e)))})},e.setPluginIsActive=i=>{e.pluginIsActive=i},e.encodeURIComponent=e=>encodeURIComponent(e),e.copyToClipboardResult=e=>{S.openCopyToClipboardModal(e)},e.trimIRI=e=>_.trim(e,"<>"),e.updateSearchType=i=>{e.searchType=i},e.editSimilarityIndex=e=>{f(e)},e.cloneSimilataryIndex=e=>{f(e,!0)},e.setPsiSubject=i=>{e.psiSubject=i},e.setAnalogicalSubject=i=>{e.analogicalSubject=i},e.setAnalogicalObject=i=>{e.analogicalObject=i};const f=(e,i=!1)=>{const t={selectQuery:e.selectQuery,options:e.options,name:e.name,editSearchQuery:!i,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(t)},w=()=>{const i=e.getActiveRepository();i&&e.activeRepository!==i&&(e.canEditRepo=e.canWriteActiveRepo(),e.activeRepository=i,e.isGraphDBRepository=j(),e.isGraphDBRepository&&(u.isLicenseValid()&&e.reloadSimilarityIndexes(),v()))},v=()=>{h.getSearchQueries().success(i=>e.searchQueries=i).error(e=>t.error(getError(e),I.instant("similarity.could.not.get.search.queries.error")))},Q=e=>'"'+e+'"',C=e=>void 0===e||e.startsWith("<<")&&e.endsWith(">>")?e:"<"+e+">",j=()=>e.getActiveRepository()&&!e.isActiveRepoOntopType()&&!e.isActiveRepoFedXType(),O=[];O.push(e.$on("repositoryIsSet",w));e.$on("$destroy",()=>{L(),e.loadSimilarityIndexesTimer&&i.cancel(e.loadSimilarityIndexesTimer)});const L=()=>{O.forEach(e=>e())};O.push(e.$on("autocompleteStatus",()=>{u.isLicenseValid()&&(e.getAutocompletePromise=T.checkAutocompleteStatus())}));O.push(e.$watch("searchType",()=>{e.empty=!0}));const P=e.$watch(e.getActiveRepositoryObject,e=>{e&&(w(),P())}),q=(i,t,r,c,n)=>{const l={query:H(e.lastSearch.type),$index:C("http://www.ontotext.com/graphdb/similarity/instance/"+i.name),$query:e.lastSearch.termOrSubject,$searchType:C((e.selectedSimilarityIndex.isTextType()?E:A)+(a.SimilaritySearchType.isSearchEntityPredicateType(r)?a.SimilaritySearchType.SEARCH_ENTITY:r)),$resultType:C(e.selectedSimilarityIndex.isTextType()?E+c:A+s.SimilarityResultType.ENTITY_RESULT),$parameters:Q(n)};return a.SimilaritySearchType.isSearchEntityPredicateType(r)&&(l.$psiPredicate=e.lastSearch.predicate?C(e.lastSearch.predicate):C(b)),a.SimilaritySearchType.isSearchAnalogicalType(r)&&(e.searchSubject=t,l.$givenSubject=C(e.analogicalSubject),l.$givenObject=C(e.analogicalObject),l.$searchSubject=C(t)),l},N=(i,t)=>{e.lastSearch=new o.SimilaritySearch,e.lastSearch.type=i,a.SimilaritySearchType.isSearchEntityPredicateType(i)&&(e.lastSearch.predicate=t),e.lastSearch.termOrSubject=M(e.lastSearch.type,t,e.psiSubject)},H=i=>{let t;return t=a.SimilaritySearchType.isSearchAnalogicalType(i)?e.selectedSimilarityIndex.analogicalQuery?e.selectedSimilarityIndex.analogicalQuery:e.searchQueries.analogical:e.selectedSimilarityIndex.searchQuery?e.selectedSimilarityIndex.searchQuery:e.searchQueries[e.selectedSimilarityIndex.type],t},M=(e,i,t)=>{let r=i;return r=a.SimilaritySearchType.isSearchEntityPredicateType(e)?t:a.SimilaritySearchType.isSearchTermType(e)?Q(r):C(r),r},D=i=>{e.yasguiConfig={showEditorTabs:!1,showToolbar:!1,showResultTabs:!1,showQueryButton:!1,downloadAsOn:!1,showResultInfo:!1,componentId:"similarity-list-component",maxPersistentResponseSize:0,render:y.RenderingMode.YASR,sparqlResponse:i.data}}}angular.module("graphdb.framework.similarity.controllers.list",[]).controller("SimilarityCtrl",p),p.$inject=["$scope","$interval","toastr","$repositories","$licenseService","$location","ModalService","$uibModal","SimilarityRestService","AutocompleteRestService","productInfo","RDF4JRepositoriesRestService","$translate","SparqlRestService"]},279:function(e,i,t){"use strict";t.r(i);t(7),t(25),t(30),t(195),t(197),t(204),t(78);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"])},91:function(e,i,t){"use strict";t.r(i),t.d(i,"SimilaritySearchType",(function(){return r}));const r={SEARCH_TERM:"searchTerm",SEARCH_ANALOGICAL:"searchAnalogical",SEARCH_ENTITY:"searchEntity",SEARCH_ENTITY_PREDICATE:"searchEntityPredicate",SEARCH_DOCUMENT:"searchDocumentID",isSearchTermType:e=>r.SEARCH_TERM===e,isSearchAnalogicalType:e=>r.SEARCH_ANALOGICAL===e,isSearchEntityType:e=>r.SEARCH_ENTITY===e,isSearchEntityPredicateType:e=>r.SEARCH_ENTITY_PREDICATE===e,isSearchDocumentType:e=>r.SEARCH_DOCUMENT===e}}}]);
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
(window.webpackJsonp=window.webpackJsonp||[]).push([[35],{418:function(t,e){
|
|
2
|
-
/*! ngTagsInput v3.2.0 License: MIT */!function(){"use strict";var t=8,e=9,i=13,n=27,s=32,o=38,r=40,a=37,l=39,h=46,u=188,c=9007199254740991,p=["text","email","url"],d=angular.module("ngTagsInput",[]);d.directive("tagsInput",["$timeout","$document","$window","$q","tagsInputConfig","tiUtil",function(e,n,o,r,d,g){function f(t,e,i,n){var s,o,a,l,h={};return s=function(e){return g.safeToString(e[t.displayProperty])},o=function(e,i){e[t.displayProperty]=i},a=function(e){var n=s(e),o=n&&n.length>=t.minLength&&n.length<=t.maxLength&&t.allowedTagsPattern.test(n)&&!g.findInObjectArray(h.items,e,t.keyProperty||t.displayProperty);return r.when(o&&i({$tag:e})).then(g.promisifyValue)},l=function(t){return r.when(n({$tag:t})).then(g.promisifyValue)},h.items=[],h.addText=function(t){var e={};return o(e,t),h.add(e)},h.add=function(i){var n=s(i);return t.replaceSpacesWithDashes&&(n=g.replaceSpacesWithDashes(n)),o(i,n),a(i).then((function(){h.items.push(i),e.trigger("tag-added",{$tag:i})})).catch((function(){n&&e.trigger("invalid-tag",{$tag:i})}))},h.remove=function(t){var i=h.items[t];return l(i).then((function(){return h.items.splice(t,1),h.clearSelection(),e.trigger("tag-removed",{$tag:i}),i}))},h.select=function(t){0>t?t=h.items.length-1:t>=h.items.length&&(t=0),h.index=t,h.selected=h.items[t]},h.selectPrior=function(){h.select(--h.index)},h.selectNext=function(){h.select(++h.index)},h.removeSelected=function(){return h.remove(h.index)},h.clearSelection=function(){h.selected=null,h.index=-1},h.getItems=function(){return t.useStrings?h.items.map(s):h.items},h.clearSelection(),h}function m(t){return-1!==p.indexOf(t)}return{restrict:"E",require:"ngModel",scope:{tags:"=ngModel",text:"=?",templateScope:"=?",tagClass:"&",onTagAdding:"&",onTagAdded:"&",onInvalidTag:"&",onTagRemoving:"&",onTagRemoved:"&",onTagClicked:"&"},replace:!1,transclude:!0,templateUrl:"ngTagsInput/tags-input.html",controller:["$scope","$attrs","$element",function(t,e,i){t.events=g.simplePubSub(),d.load("tagsInput",t,e,{template:[String,"ngTagsInput/tag-item.html"],type:[String,"text",m],placeholder:[String,"Add a tag"],tabindex:[Number,null],removeTagSymbol:[String,String.fromCharCode(215)],replaceSpacesWithDashes:[Boolean,!0],minLength:[Number,3],maxLength:[Number,c],addOnEnter:[Boolean,!0],addOnSpace:[Boolean,!1],addOnComma:[Boolean,!0],addOnBlur:[Boolean,!0],addOnPaste:[Boolean,!1],pasteSplitPattern:[RegExp,/,/],allowedTagsPattern:[RegExp,/.+/],enableEditingLastTag:[Boolean,!1],minTags:[Number,0],maxTags:[Number,c],displayProperty:[String,"text"],keyProperty:[String,""],allowLeftoverText:[Boolean,!1],addFromAutocompleteOnly:[Boolean,!1],spellcheck:[Boolean,!0],useStrings:[Boolean,!1]}),t.tagList=new f(t.options,t.events,g.handleUndefinedResult(t.onTagAdding,!0),g.handleUndefinedResult(t.onTagRemoving,!0)),this.registerAutocomplete=function(){return i.find("input"),{addTag:function(e){return t.tagList.add(e)},getTags:function(){return t.tagList.items},getCurrentTagText:function(){return t.newTag.text()},getOptions:function(){return t.options},getTemplateScope:function(){return t.templateScope},on:function(e,i){return t.events.on(e,i,!0),this}}},this.registerTagItem=function(){return{getOptions:function(){return t.options},removeTag:function(e){t.disabled||t.tagList.remove(e)}}}}],link:function(r,c,p,d){var f,m,b=[i,u,s,t,h,a,l],v=r.tagList,y=r.events,x=r.options,w=c.find("input"),S=["minTags","maxTags","allowLeftoverText"];f=function(){d.$setValidity("maxTags",v.items.length<=x.maxTags),d.$setValidity("minTags",v.items.length>=x.minTags),d.$setValidity("leftoverText",!(!r.hasFocus&&!x.allowLeftoverText)||!r.newTag.text())},m=function(){e((function(){w[0].focus()}))},d.$isEmpty=function(t){return!t||!t.length},r.newTag={text:function(t){return angular.isDefined(t)?(r.text=t,void y.trigger("input-change",t)):r.text||""},invalid:null},r.track=function(t){return t[x.keyProperty||x.displayProperty]},r.getTagClass=function(t,e){var i=t===v.selected;return[r.tagClass({$tag:t,$index:e,$selected:i}),{selected:i}]},r.$watch("tags",(function(t){if(t){if(v.items=g.makeObjectArray(t,x.displayProperty),x.useStrings)return;r.tags=v.items}else v.items=[]})),r.$watch("tags.length",(function(){f(),d.$validate()})),p.$observe("disabled",(function(t){r.disabled=t})),r.eventHandlers={input:{keydown:function(t){y.trigger("input-keydown",t)},focus:function(){r.hasFocus||(r.hasFocus=!0,y.trigger("input-focus"))},blur:function(){e((function(){var t=n.prop("activeElement"),e=t===w[0],i=c[0].contains(t);(e||!i)&&(r.hasFocus=!1,y.trigger("input-blur"))}))},paste:function(t){t.getTextData=function(){var e=t.clipboardData||t.originalEvent&&t.originalEvent.clipboardData;return e?e.getData("text/plain"):o.clipboardData.getData("Text")},y.trigger("input-paste",t)}},host:{click:function(){r.disabled||m()}},tag:{click:function(t){y.trigger("tag-clicked",{$tag:t})}}},y.on("tag-added",r.onTagAdded).on("invalid-tag",r.onInvalidTag).on("tag-removed",r.onTagRemoved).on("tag-clicked",r.onTagClicked).on("tag-added",(function(){r.newTag.text("")})).on("tag-added tag-removed",(function(){r.tags=v.getItems(),d.$setDirty(),m()})).on("invalid-tag",(function(){r.newTag.invalid=!0})).on("option-change",(function(t){-1!==S.indexOf(t.name)&&f()})).on("input-change",(function(){v.clearSelection(),r.newTag.invalid=null})).on("input-focus",(function(){c.triggerHandler("focus"),d.$setValidity("leftoverText",!0)})).on("input-blur",(function(){x.addOnBlur&&!x.addFromAutocompleteOnly&&v.addText(r.newTag.text()),c.triggerHandler("blur"),f()})).on("input-keydown",(function(e){var n,o,c,p,d=e.keyCode,f={};g.isModifierOn(e)||-1===b.indexOf(d)||(f[i]=x.addOnEnter,f[u]=x.addOnComma,f[s]=x.addOnSpace,n=!x.addFromAutocompleteOnly&&f[d],o=(d===t||d===h)&&v.selected,p=d===t&&0===r.newTag.text().length&&x.enableEditingLastTag,c=(d===t||d===a||d===l)&&0===r.newTag.text().length&&!x.enableEditingLastTag,n?v.addText(r.newTag.text()):p?(v.selectPrior(),v.removeSelected().then((function(t){t&&r.newTag.text(t[x.displayProperty])}))):o?v.removeSelected():c&&(d===a||d===t?v.selectPrior():d===l&&v.selectNext()),(n||c||o||p)&&e.preventDefault())})).on("input-paste",(function(t){if(x.addOnPaste){var e=t.getTextData().split(x.pasteSplitPattern);e.length>1&&(e.forEach((function(t){v.addText(t)})),t.preventDefault())}}))}}}]),d.directive("tiTagItem",["tiUtil",function(t){return{restrict:"E",require:"^tagsInput",template:'<ng-include src="$$template"></ng-include>',scope:{$scope:"=scope",data:"="},link:function(e,i,n,s){var o=s.registerTagItem(),r=o.getOptions();e.$$template=r.template,e.$$removeTagSymbol=r.removeTagSymbol,e.$getDisplayText=function(){return t.safeToString(e.data[r.displayProperty])},e.$removeTag=function(){o.removeTag(e.$index)},e.$watch("$parent.$index",(function(t){e.$index=t}))}}}]),d.directive("autoComplete",["$document","$timeout","$sce","$q","tagsInputConfig","tiUtil",function(t,s,a,l,h,u){function c(t,e,i){var n,s,o,r={};return o=function(){return e.tagsInput.keyProperty||e.tagsInput.displayProperty},n=function(t,i){return t.filter((function(t){return!u.findInObjectArray(i,t,o(),(function(t,i){return e.tagsInput.replaceSpacesWithDashes&&(t=u.replaceSpacesWithDashes(t),i=u.replaceSpacesWithDashes(i)),u.defaultComparer(t,i)}))}))},r.reset=function(){s=null,r.items=[],r.visible=!1,r.index=-1,r.selected=null,r.query=null},r.show=function(){e.selectFirstMatch?r.select(0):r.selected=null,r.visible=!0},r.load=u.debounce((function(i,a){r.query=i;var h=l.when(t({$query:i}));s=h,h.then((function(t){h===s&&(t=u.makeObjectArray(t.data||t,o()),t=n(t,a),r.items=t.slice(0,e.maxResultsToShow),r.items.length>0?r.show():r.reset())}))}),e.debounceDelay),r.selectNext=function(){r.select(++r.index)},r.selectPrior=function(){r.select(--r.index)},r.select=function(t){0>t?t=r.items.length-1:t>=r.items.length&&(t=0),r.index=t,r.selected=r.items[t],i.trigger("suggestion-selected",t)},r.reset(),r}return{restrict:"E",require:"^tagsInput",scope:{source:"&",matchClass:"&"},templateUrl:"ngTagsInput/auto-complete.html",controller:["$scope","$element","$attrs",function(t,e,i){t.events=u.simplePubSub(),h.load("autoComplete",t,i,{template:[String,"ngTagsInput/auto-complete-match.html"],debounceDelay:[Number,100],minLength:[Number,3],highlightMatchedText:[Boolean,!0],maxResultsToShow:[Number,10],loadOnDownArrow:[Boolean,!1],loadOnEmpty:[Boolean,!1],loadOnFocus:[Boolean,!1],selectFirstMatch:[Boolean,!0],displayProperty:[String,""]}),t.suggestionList=new c(t.source,t.options,t.events),this.registerAutocompleteMatch=function(){return{getOptions:function(){return t.options},getQuery:function(){return t.suggestionList.query}}}}],link:function(t,s,a,l){var h,c=[i,e,n,o,r],p=t.suggestionList,d=l.registerAutocomplete(),g=t.options,f=t.events;g.tagsInput=d.getOptions(),h=function(t){return t&&t.length>=g.minLength||!t&&g.loadOnEmpty},t.templateScope=d.getTemplateScope(),t.addSuggestionByIndex=function(e){p.select(e),t.addSuggestion()},t.addSuggestion=function(){var t=!1;return p.selected&&(d.addTag(angular.copy(p.selected)),p.reset(),t=!0),t},t.track=function(t){return t[g.tagsInput.keyProperty||g.tagsInput.displayProperty]},t.getSuggestionClass=function(e,i){var n=e===p.selected;return[t.matchClass({$match:e,$index:i,$selected:n}),{selected:n}]},d.on("tag-added tag-removed invalid-tag input-blur",(function(){p.reset()})).on("input-change",(function(t){h(t)?p.load(t,d.getTags()):p.reset()})).on("input-focus",(function(){var t=d.getCurrentTagText();g.loadOnFocus&&h(t)&&p.load(t,d.getTags())})).on("input-keydown",(function(s){var a=s.keyCode,l=!1;if(!u.isModifierOn(s)&&-1!==c.indexOf(a))return p.visible?a===r?(p.selectNext(),l=!0):a===o?(p.selectPrior(),l=!0):a===n?(p.reset(),l=!0):(a===i||a===e)&&(l=t.addSuggestion()):a===r&&t.options.loadOnDownArrow&&(p.load(d.getCurrentTagText(),d.getTags()),l=!0),l?(s.preventDefault(),s.stopImmediatePropagation(),!1):void 0})),f.on("suggestion-selected",(function(t){!function(t,e){var i=t.find("li").eq(e),n=i.parent(),s=i.prop("offsetTop"),o=i.prop("offsetHeight"),r=n.prop("clientHeight"),a=n.prop("scrollTop");a>s?n.prop("scrollTop",s):s+o>r+a&&n.prop("scrollTop",s+o-r)}(s,t)}))}}}]),d.directive("tiAutocompleteMatch",["$sce","tiUtil",function(t,e){return{restrict:"E",require:"^autoComplete",template:'<ng-include src="$$template"></ng-include>',scope:{$scope:"=scope",data:"="},link:function(i,n,s,o){var r=o.registerAutocompleteMatch(),a=r.getOptions();i.$$template=a.template,i.$index=i.$parent.$index,i.$highlight=function(i){return a.highlightMatchedText&&(i=e.safeHighlight(i,r.getQuery())),t.trustAsHtml(i)},i.$getDisplayText=function(){return e.safeToString(i.data[a.displayProperty||a.tagsInput.displayProperty])}}}}]),d.directive("tiTranscludeAppend",(function(){return function(t,e,i,n,s){s((function(t){e.append(t)}))}})),d.directive("tiAutosize",["tagsInputConfig",function(t){return{restrict:"A",require:"ngModel",link:function(e,i,n,s){var o,r,a=t.getTextAutosizeThreshold();(o=angular.element('<span class="input"></span>')).css("display","none").css("visibility","hidden").css("width","auto").css("white-space","pre"),i.parent().append(o),r=function(t){var e,s=t;return angular.isString(s)&&0===s.length&&(s=n.placeholder),s&&(o.text(s),o.css("display",""),e=o.prop("offsetWidth"),o.css("display","none")),i.css("width",e?e+a+"px":""),t},s.$parsers.unshift(r),s.$formatters.unshift(r),n.$observe("placeholder",(function(t){s.$modelValue||r(t)}))}}}]),d.directive("tiBindAttrs",(function(){return function(t,e,i){t.$watch(i.tiBindAttrs,(function(t){angular.forEach(t,(function(t,e){i.$set(e,t)}))}),!0)}})),d.provider("tagsInputConfig",(function(){var t={},e={},i=3;this.setDefaults=function(e,i){return t[e]=i,this},this.setActiveInterpolation=function(t,i){return e[t]=i,this},this.setTextAutosizeThreshold=function(t){return i=t,this},this.$get=["$interpolate",function(n){var s={};return s[String]=function(t){return t},s[Number]=function(t){return parseInt(t,10)},s[Boolean]=function(t){return"true"===t.toLowerCase()},s[RegExp]=function(t){return new RegExp(t)},{load:function(i,o,r,a){var l=function(){return!0};o.options={},angular.forEach(a,(function(a,h){var u,c,p,d,g,f;u=a[0],c=a[1],p=a[2]||l,d=s[u],g=function(){var e=t[i]&&t[i][h];return angular.isDefined(e)?e:c},f=function(t){o.options[h]=t&&p(t)?d(t):g()},e[i]&&e[i][h]?r.$observe(h,(function(t){f(t),o.events.trigger("option-change",{name:h,newValue:t})})):f(r[h]&&n(r[h])(o.$parent))}))},getTextAutosizeThreshold:function(){return i}}}]})),d.factory("tiUtil",["$timeout","$q",function(t,e){var i={debounce:function(e,i){var n;return function(){var s=arguments;t.cancel(n),n=t((function(){e.apply(null,s)}),i)}},makeObjectArray:function(t,e){if(!angular.isArray(t)||0===t.length||angular.isObject(t[0]))return t;var i=[];return t.forEach((function(t){var n={};n[e]=t,i.push(n)})),i},findInObjectArray:function(t,e,n,s){var o=null;return s=s||i.defaultComparer,t.some((function(t){return s(t[n],e[n])?(o=t,!0):void 0})),o},defaultComparer:function(t,e){return i.safeToString(t).toLowerCase()===i.safeToString(e).toLowerCase()},safeHighlight:function(t,e){if(t=i.encodeHTML(t),!(e=i.encodeHTML(e)))return t;var n=new RegExp("&[^;]+;|"+function(t){return t.replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1")}(e),"gi");return t.replace(n,(function(t){return t.toLowerCase()===e.toLowerCase()?"<em>"+t+"</em>":t}))},safeToString:function(t){return angular.isUndefined(t)||null==t?"":t.toString().trim()},encodeHTML:function(t){return i.safeToString(t).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")},handleUndefinedResult:function(t,e){return function(){var i=t.apply(null,arguments);return angular.isUndefined(i)?e:i}},replaceSpacesWithDashes:function(t){return i.safeToString(t).replace(/\s/g,"-")},isModifierOn:function(t){return t.shiftKey||t.ctrlKey||t.altKey||t.metaKey},promisifyValue:function(t){return t=!!angular.isUndefined(t)||t,e[t?"when":"reject"]()},simplePubSub:function(){var t={};return{on:function(e,i,n){return e.split(" ").forEach((function(e){t[e]||(t[e]=[]),(n?[].unshift:[].push).call(t[e],i)})),this},trigger:function(e,n){return(t[e]||[]).every((function(t){return i.handleUndefinedResult(t,!0)(n)})),this}}}};return i}]),d.run(["$templateCache",function(t){t.put("ngTagsInput/tags-input.html",'<div class="host" tabindex="-1" ng-click="eventHandlers.host.click()" ti-transclude-append><div class="tags" ng-class="{focused: hasFocus}"><ul class="tag-list"><li class="tag-item" ng-repeat="tag in tagList.items track by track(tag)" ng-class="getTagClass(tag, $index)" ng-click="eventHandlers.tag.click(tag)"><ti-tag-item scope="templateScope" data="::tag"></ti-tag-item></li></ul><input class="input" autocomplete="off" ng-model="newTag.text" ng-model-options="{getterSetter: true}" ng-keydown="eventHandlers.input.keydown($event)" ng-focus="eventHandlers.input.focus($event)" ng-blur="eventHandlers.input.blur($event)" ng-paste="eventHandlers.input.paste($event)" ng-trim="false" ng-class="{\'invalid-tag\': newTag.invalid}" ng-disabled="disabled" ti-bind-attrs="{type: options.type, placeholder: options.placeholder, tabindex: options.tabindex, spellcheck: options.spellcheck}" ti-autosize></div></div>'),t.put("ngTagsInput/tag-item.html",'<span ng-bind="$getDisplayText()"></span> <a class="remove-button" ng-click="$removeTag()" ng-bind="::$$removeTagSymbol"></a>'),t.put("ngTagsInput/auto-complete.html",'<div class="autocomplete" ng-if="suggestionList.visible"><ul class="suggestion-list"><li class="suggestion-item" ng-repeat="item in suggestionList.items track by track(item)" ng-class="getSuggestionClass(item, $index)" ng-click="addSuggestionByIndex($index)" ng-mouseenter="suggestionList.select($index)"><ti-autocomplete-match scope="templateScope" data="::item"></ti-autocomplete-match></li></ul></div>'),t.put("ngTagsInput/auto-complete-match.html",'<span ng-bind-html="$highlight($getDisplayText())"></span>')}])}()},610:function(t,e){!function(){"use strict";function t(e){return(t="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})(e)}function e(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var i=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=i){var n,s,o,r,a=[],l=!0,h=!1;try{if(o=(i=i.call(t)).next,0===e){if(Object(i)!==i)return;l=!1}else for(;!(l=(n=o.call(i)).done)&&(a.push(n.value),a.length!==e);l=!0);}catch(t){h=!0,s=t}finally{try{if(!l&&null!=i.return&&(r=i.return(),Object(r)!==r))return}finally{if(h)throw s}}return a}}(t,e)||function(t,e){if(t){if("string"==typeof t)return i(t,e);var n=Object.prototype.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)?i(t,e):void 0}}(t,e)||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 i(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}function n(e,i){for(var n=0;n<i.length;n++){var s=i[n];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(e,(void 0,o=function(e,i){if("object"!==t(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var s=n.call(e,i);if("object"!==t(s))return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(s.key,"string"),"symbol"===t(o)?o:String(o)),s)}var o}var s=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}var i,s;return i=t,(s=[{key:"registerFor",value:function(t){var i,n,s,o;function r(t,i,n){var s=t[0],r=e({top:["scrollTop","pageYOffset","scrollLeft"],left:["scrollLeft","pageXOffset","scrollTop"]}[i],3),a=r[0],l=r[1],h=r[2],u=void 0!==n;return o(s)?u?s.scrollTo(t[h].call(t),n):l in s?s[l]:s.document.documentElement[a]:(u&&(s[a]=n),s[a])}function a(t,n,r){var a,l=function(t,n){var r,a,l,h,u,c,p,d,g,f;if(o(t))return{base:r=document.documentElement[{height:"clientHeight",width:"clientWidth"}[n]],padding:0,border:0,margin:0};var m=e({width:[t.offsetWidth,"Left","Right"],height:[t.offsetHeight,"Top","Bottom"]}[n],3);return r=m[0],p=m[1],d=m[2],c=s(t),g=i(t,c["padding"+p])||0,f=i(t,c["padding"+d])||0,a=i(t,c["border"+p+"Width"])||0,l=i(t,c["border"+d+"Width"])||0,h=c["margin"+p],u=c["margin"+d],{base:r,padding:g+f,border:a+l,margin:(i(t,h)||0)+(i(t,u)||0)}}(t,n);return l.base>0?{base:l.base-l.padding-l.border,outer:l.base,outerfull:l.base+l.margin}[r]:(((a=s(t)[n])<0||null===a)&&(a=t.style[n]||0),{base:(a=parseFloat(a)||0)-l.padding-l.border,outer:a,outerfull:a+l.padding+l.border+l.margin}[r])}return n=angular.element.prototype.css,t.prototype.css=function(t,e){var i=this[0];if(i&&3!==i.nodeType&&8!==i.nodeType&&i.style)return n.call(this,t,e)},o=function(t){return t&&t.document&&t.location&&t.alert&&t.setInterval},window.getComputedStyle?(s=function(t){return window.getComputedStyle(t,null)},i=function(t,e){return parseFloat(e)}):(s=function(t){return t.currentStyle},i=function(t,e){var i,n,s,o,r;return new RegExp("^("+/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source+")(?!px)[a-z%]+$","i").test(e)?(i=(r=t.style).left,o=(s=t.runtimeStyle)&&s.left,s&&(s.left=r.left),r.left=e,n=r.pixelLeft,r.left=i,o&&(s.left=o),n):parseFloat(e)}),angular.forEach({before:function(t){var e,i,n,s,o,r;if(i=this[0],(e=(o=this.parent()).contents())[0]===i)return o.prepend(t);for(n=s=1,r=e.length-1;1<=r?s<=r:s>=r;n=1<=r?++s:--s)if(e[n]===i)return void angular.element(e[n-1]).after(t);throw new Error("invalid DOM structure "+i.outerHTML)},height:function(t){return void 0!==t?(angular.isNumber(t)&&(t+="px"),n.call(this,"height",t)):a(this[0],"height","base")},outerHeight:function(t){return a(this[0],"height",t?"outerfull":"outer")},outerWidth:function(t){return a(this[0],"width",t?"outerfull":"outer")},offset:function(t){var e,i,n={top:0,left:0},s=this[0],o=s&&s.ownerDocument;if(arguments.length){if(void 0===t)return this;throw new Error("offset setter method is not implemented")}if(o)return e=o.documentElement,null!=s.getBoundingClientRect&&(n=s.getBoundingClientRect()),i=o.defaultView||o.parentWindow,{top:n.top+(i.pageYOffset||e.scrollTop)-(e.clientTop||0),left:n.left+(i.pageXOffset||e.scrollLeft)-(e.clientLeft||0)}},scrollTop:function(t){return r(this,"top",t)},scrollLeft:function(t){return r(this,"left",t)}},(function(e,i){if(!t.prototype[i])return t.prototype[i]=e}))}}])&&n(i.prototype,s),Object.defineProperty(i,"prototype",{writable:!1}),t}();function o(t){return(o="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 i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,(void 0,s=function(t,e){if("object"!==o(t)||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var n=i.call(t,e);if("object"!==o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(n.key,"string"),"symbol"===o(s)?s:String(s)),n)}var s}var a="ng-ui-scroll-hide",l=function(){function t(e,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.$animate=e.has&&e.has("$animate")?e.get("$animate"):null,this.isAngularVersionLessThen1_3=1===angular.version.major&&angular.version.minor<3,this.$q=i}var e,i,n;return e=t,n=[{key:"addCSSRules",value:function(){var t,e="."+a,i="display: none",n=document.styleSheets[0];try{t=n.cssRules.length}catch(e){t=0}"insertRule"in n?n.insertRule(e+"{"+i+"}",t):"addRule"in n&&n.addRule(e,i,t)}}],(i=[{key:"hideElement",value:function(t){t.element.addClass(a)}},{key:"showElement",value:function(t){t.element.removeClass(a)}},{key:"insertElement",value:function(t,e){return e.after(t),[]}},{key:"removeElement",value:function(t){return t.element.remove(),t.scope.$destroy(),[]}},{key:"insertElementAnimated",value:function(t,e){if(!this.$animate)return this.insertElement(t,e);if(this.isAngularVersionLessThen1_3){var i=this.$q.defer();return this.$animate.enter(t,null,e,(function(){return i.resolve()})),[i.promise]}return[this.$animate.enter(t,null,e)]}},{key:"removeElementAnimated",value:function(t){if(!this.$animate)return this.removeElement(t);if(this.isAngularVersionLessThen1_3){var e=this.$q.defer();return this.$animate.leave(t.element,(function(){return t.scope.$destroy(),e.resolve()})),[e.promise]}return[this.$animate.leave(t.element).then((function(){return t.scope.$destroy()}))]}}])&&r(e.prototype,i),n&&r(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}(),h="prepend",u="append",c="insert",p="remove",d="none";function g(t,e,i){var n=Object.create(Array.prototype);return angular.extend(n,{size:e,reset:function(t){n.remove(0,n.length),n.eof=!1,n.bof=!1,n.first=t,n.next=t,n.minIndex=t,n.maxIndex=t,n.minIndexUser=null,n.maxIndexUser=null},append:function(t){t.forEach((function(t){++n.next,n.insert(u,t)})),n.maxIndex=n.eof?n.next-1:Math.max(n.next-1,n.maxIndex)},prepend:function(t,e){t.reverse().forEach((function(t){e?++n.next:--n.first,n.insert(h,t)})),n.minIndex=n.bof?n.minIndex=n.first:Math.min(n.first,n.minIndex)},insert:function(t,e,i){var s={item:e};if(t%1==0)s.op=c,n.splice(t,0,s),i?n.first--:n.next++;else switch(s.op=t,t){case u:n.push(s);break;case h:n.unshift(s)}},remove:function(e,i){if(angular.isNumber(e)){for(var s=e;s<i;s++)t.removeElement(n[s]);return n.splice(e,i-e)}return n.splice(n.indexOf(e),1),e.shiftTop&&n.first===this.getAbsMinIndex()?this.incrementMinIndex():this.decrementMaxIndex(),e.shiftTop?n.first++:n.next--,n.length||(n.minIndex=Math.min(n.maxIndex,n.minIndex)),t.removeElementAnimated(e)},incrementMinIndex:function(){if(null!==n.minIndexUser){if(n.minIndex>n.minIndexUser)return void n.minIndexUser++;n.minIndex===n.minIndexUser&&n.minIndexUser++}n.minIndex++},decrementMaxIndex:function(){null!==n.maxIndexUser&&n.maxIndex<=n.maxIndexUser&&n.maxIndexUser--,n.maxIndex--},getAbsMinIndex:function(){return null!==n.minIndexUser?Math.min(n.minIndexUser,n.minIndex):n.minIndex},getAbsMaxIndex:function(){return null!==n.maxIndexUser?Math.max(n.maxIndexUser,n.maxIndex):n.maxIndex},effectiveHeight:function(t){if(!t.length)return 0;var e=Number.MAX_VALUE,i=Number.NEGATIVE_INFINITY;return t.forEach((function(t){t.element[0].offsetParent&&(e=Math.min(e,t.element.offset().top),i=Math.max(i,t.element.offset().top+t.element.outerHeight(!0)))})),Math.max(0,i-e)},getItems:function(){return n.filter((function(t){return t.op===d}))},getFirstItem:function(){var t=n.getItems();return t.length?t[0].item:null},getLastItem:function(){var t=n.getItems();return t.length?t[t.length-1].item:null}}),n.reset(i),n}function f(t){return(f="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 m(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function b(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,(void 0,s=function(t,e){if("object"!==f(t)||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var n=i.call(t,e);if("object"!==f(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(n.key,"string"),"symbol"===f(s)?s:String(s)),n)}var s}function v(t,e,i){return e&&b(t.prototype,e),i&&b(t,i),Object.defineProperty(t,"prototype",{writable:!1}),t}var y=function(){function t(){m(this,t)}return v(t,[{key:"add",value:function(t){for(var e=this.length-1;e>=0;e--)if(this[e].index===t.scope.$index)return void(this[e].height=t.element.outerHeight());this.push({index:t.scope.$index,height:t.element.outerHeight()}),this.sort((function(t,e){return t.index<e.index?-1:t.index>e.index?1:0}))}},{key:"remove",value:function(t,e){for(var i=t%1==0?t:t.scope.$index,n=t%1==0?e:t.shiftTop,s=this.length-1;s>=0;s--)if(this[s].index===i){this.splice(s,1);break}if(!n)for(var o=this.length-1;o>=0;o--)this[o].index>i&&this[o].index--}},{key:"clear",value:function(){this.length=0}}]),t}();function x(){var t=[];return t.push.apply(t,arguments),Object.setPrototypeOf(t,x.prototype),t}x.prototype=Object.create(Array.prototype),Object.getOwnPropertyNames(y.prototype).forEach((function(t){return x.prototype[t]=y.prototype[t]}));var w=function(){function t(e){m(this,t),this.element=function(t){if(t.nodeType!==Node.ELEMENT_NODE)throw new Error("ui-scroll directive requires an Element node for templating the view");var e;switch(t.tagName.toLowerCase()){case"dl":throw new Error("ui-scroll directive does not support <".concat(t.tagName,"> as a repeating tag: ").concat(t.outerHTML));case"tr":e=angular.element("<table><tr><td><div></div></td></tr></table>").find("tr");break;case"li":e=angular.element("<li></li>");break;default:e=angular.element("<div></div>")}return e}(e),this.cache=new x}return v(t,[{key:"height",value:function(){return this.element.height.apply(this.element,arguments)}}]),t}();function S(t,e,i,n,s,o){var r=null,a=null,l=n&&n.viewport?n.viewport:angular.element(window),h=n&&n.container?n.container:void 0,u=n&&n.scope?n.scope:s;function c(){return l.outerHeight()*o}return l.css({"overflow-anchor":"none","overflow-y":"auto",display:"block"}),angular.extend(l,{getScope:function(){return u},createPaddingElements:function(t){r=new w(t),a=new w(t),i.before(r.element),i.after(a.element),r.height(0),a.height(0)},applyContainerStyle:function(){return!h||(h!==l&&l.css("height",window.getComputedStyle(h[0]).height),l.height()>0)},bottomDataPos:function(){var t=l[0].scrollHeight;return(t=null!=t?t:l[0].document.documentElement.scrollHeight)-a.height()},topDataPos:function(){return r.height()},bottomVisiblePos:function(){return l.scrollTop()+l.outerHeight()},topVisiblePos:function(){return l.scrollTop()},insertElement:function(e,i){return t.insertElement(e,i||r.element)},insertElementAnimated:function(e,i){return t.insertElementAnimated(e,i||r.element)},shouldLoadBottom:function(){return!e.eof&&l.bottomDataPos()<l.bottomVisiblePos()+c()},clipBottom:function(){for(var t=0,i=0,n=0,s=l.bottomDataPos()-l.bottomVisiblePos()-c(),o=e.length-1;o>=0&&!(i+(n=e[o].element.outerHeight(!0))>s);o--)a.cache.add(e[o]),i+=n,t++;t>0&&(e.eof=!1,e.remove(e.length-t,e.length),e.next-=t,l.adjustPaddings())},shouldLoadTop:function(){return!e.bof&&l.topDataPos()>l.topVisiblePos()-c()},clipTop:function(){for(var t=0,i=0,n=0,s=l.topVisiblePos()-l.topDataPos()-c(),o=0;o<e.length&&!(i+(n=e[o].element.outerHeight(!0))>s);o++)r.cache.add(e[o]),i+=n,t++;t>0&&(r.height(r.height()+i),e.bof=!1,e.remove(0,t),e.first+=t)},adjustPaddings:function(){if(e.length){var t=e.reduce((function(t,e){return t+e.element.outerHeight(!0)}),0),i=0,n=0;r.cache.forEach((function(t){t.index<e.first&&(i+=t.height,n++)}));var s=0,o=0;a.cache.forEach((function(t){t.index>=e.next&&(s+=t.height,o++)}));var l=(t+i+s)/(n+o+e.length),h=null!==e.minIndexUser&&e.minIndex>e.minIndexUser,u=null!==e.maxIndexUser&&e.maxIndex<e.maxIndexUser,c=h?(e.minIndex-e.minIndexUser)*l:0,p=u?(e.maxIndexUser-e.maxIndex)*l:0;r.height(i+c),a.height(s+p)}},onAfterMinIndexSet:function(t){if(null!==e.minIndexUser&&e.minIndex>e.minIndexUser){var i=r.height()-t;for(l.scrollTop(l.scrollTop()+i);(i-=l.scrollTop())>0;)a.height(a.height()+i),l.scrollTop(l.scrollTop()+i)}},onAfterPrepend:function(t){if(t.prepended.length){var i=e.effectiveHeight(t.prepended),n=r.height()-i;if(n>=0)r.height(n);else{var s=l.scrollTop(),o=s-n;l.synthetic={previous:s,next:o},r.height(0),l.scrollTop(o)}}},resetTopPadding:function(){r.height(0),r.cache.clear()},resetBottomPadding:function(){a.height(0),a.cache.clear()},removeCacheItem:function(t,e){r.cache.remove(t,e),a.cache.remove(t,e)},removeItem:function(t){return this.removeCacheItem(t),e.remove(t)}}),l}function T(t){return(T="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 L(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,(void 0,s=function(t,e){if("object"!==T(t)||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var n=i.call(t,e);if("object"!==T(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(n.key,"string"),"symbol"===T(s)?s:String(s)),n)}var s}var V=function(){function t(e,i,n,s,o,r,a){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.$parse=i,this.$attr=n,this.viewport=s,this.buffer=o,this.doAdjust=r,this.reload=a,this.isLoading=!1,this.disabled=!1;var l=s.getScope();this.startScope=l.$parent?l:e,this.publicContext={},this.assignAdapter(n.adapter),this.generatePublicContext()}var e,i;return e=t,(i=[{key:"assignAdapter",value:function(t){if(t&&(t=t.replace(/^\s+|\s+$/gm,""))){var e;try{this.$parse(t).assign(this.startScope,{}),e=this.$parse(t)(this.startScope)}catch(e){throw e.message="Angular ui-scroll Adapter assignment exception.\n"+"Can't parse \"".concat(t,'" expression.\n')+e.message,e}angular.extend(e,this.publicContext),this.publicContext=e}}},{key:"generatePublicContext",value:function(){for(var t=this,e=["reload","applyUpdates","append","prepend","isBOF","isEOF","isEmpty"],i=e.length-1;i>=0;i--)this.publicContext[e[i]]=this[e[i]].bind(this);for(var n=["isLoading","topVisible","topVisibleElement","topVisibleScope","bottomVisible","bottomVisibleElement","bottomVisibleScope"],s=function(e){var i,s=t.$attr[n[e]];Object.defineProperty(t,n[e],{get:function(){return i},set:function(o){i=o,t.publicContext[n[e]]=o,s&&t.$parse(s).assign(t.startScope,o)}})},o=n.length-1;o>=0;o--)s(o);for(var r=["bufferFirst","bufferLast","bufferLength"],a=function(e){Object.defineProperty(t.publicContext,r[e],{get:function(){return t[r[e]]}})},l=r.length-1;l>=0;l--)a(l);Object.defineProperty(this.publicContext,"disabled",{get:function(){return t.disabled},set:function(e){return(t.disabled=e)?null:t.doAdjust()}})}},{key:"loading",value:function(t){this.isLoading=t}},{key:"isBOF",value:function(){return this.buffer.bof}},{key:"isEOF",value:function(){return this.buffer.eof}},{key:"isEmpty",value:function(){return!this.buffer.length}},{key:"bufferLength",get:function(){return this.buffer.getItems().length}},{key:"bufferFirst",get:function(){return this.buffer.getFirstItem()}},{key:"bufferLast",get:function(){return this.buffer.getLastItem()}},{key:"append",value:function(t){this.buffer.append(t),this.doAdjust(),this.viewport.clipTop(),this.viewport.clipBottom()}},{key:"prepend",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.buffer.prepend(t,e.immutableTop),this.doAdjust(),this.viewport.clipTop(),this.viewport.clipBottom()}},{key:"applyUpdates",value:function(t,e,i){"function"==typeof t?this.applyUpdatesFunc(t,e):this.applyUpdatesIndex(t,e,i),this.doAdjust()}},{key:"applyUpdatesFunc",value:function(t){var e=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.buffer.slice(0).forEach((function(n){e.applyUpdate(n,t(n.item,n.scope,n.element),i)}))}},{key:"applyUpdatesIndex",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(t%1!=0)throw new Error("applyUpdates - "+t+" is not a valid index (should be an integer)");var n=t-this.buffer.first;n>=0&&n<this.buffer.length?this.applyUpdate(this.buffer[n],e,i):t>=this.buffer.getAbsMinIndex()&&t<=this.buffer.getAbsMaxIndex()&&angular.isArray(e)&&!e.length&&(this.viewport.removeCacheItem(t,!i.immutableTop&&t===this.buffer.minIndex),i.immutableTop||t!==this.buffer.getAbsMinIndex()?this.buffer.decrementMaxIndex():this.buffer.incrementMinIndex())}},{key:"applyUpdate",value:function(t,e){var i=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(angular.isArray(e)){var s=this.buffer.indexOf(t);e.reverse().some((function(e){return e===t.item}))||(t.op=p,n.immutableTop||e.length||(0===s&&this.buffer.bof||0!==s&&this.buffer[s-1].shiftTop)&&(t.shiftTop=!0)),e.forEach((function(e){e===t.item?s--:i.buffer.insert(s+1,e,!n.immutableTop&&-1===s)}))}}},{key:"calculateProperties",value:function(){for(var t=null,e=0,i=!1,n=!1,s=this.buffer.length,o=0;o<s;o++){var r=this.buffer[o],a=r.element.offset().top;if(t!==a){var l=r.element.outerHeight(!0),h=this.viewport.topDataPos()+e+l;!i&&h>this.viewport.topVisiblePos()&&(i=!0,this.topVisible=r.item,this.topVisibleElement=r.element,this.topVisibleScope=r.scope),!n&&(h>=this.viewport.bottomVisiblePos()||o===s-1&&this.isEOF())&&(n=!0,this.bottomVisible=r.item,this.bottomVisibleElement=r.element,this.bottomVisibleScope=r.scope),e+=l}if(t=a,i&&n)break}}}])&&L(e.prototype,i),Object.defineProperty(e,"prototype",{writable:!1}),t}();angular.module("ui.scroll",[]).constant("JQLiteExtras",s).run(["JQLiteExtras",function(t){var e=angular.element;!(window.jQuery&&e.fn&&e.fn.jquery)&&(new t).registerFor(e),l.addCSSRules()}]).directive("uiScrollViewport",(function(){return{restrict:"A",controller:["$scope","$element",function(t,e){var i=this;return this.container=e,this.viewport=e,this.scope=t,angular.forEach(e.children(),(function(t){"tbody"===t.tagName.toLowerCase()&&(i.viewport=angular.element(t))})),this}]}})).directive("uiScroll",["$log","$injector","$rootScope","$timeout","$interval","$q","$parse",function(t,e,i,n,s,o,r){return{require:["?^uiScrollViewport"],restrict:"A",transclude:"element",priority:1e3,terminal:!0,link:function(t,a,f,m,b){var v=f.uiScroll.match(/^\s*(\w+)\s+in\s+([(\w|\$)\.]+)\s*$/);if(!v)throw new Error("Expected uiScroll in form of '_item_ in _datasource_' but got '"+f.uiScroll+"'");function y(t,e,i){return i||(t=null===t?e:Math.floor(t)),isNaN(t)?e:t}function x(e,i,n){return y(r(e)(t),i,n)}var w,T,L=null,H=v[1],k=v[2],E=m[0],P=Math.max(3,x(f.bufferSize,10)),z=Math.max(.3,x(f.padding,.5,!0)),A=(w=f.handleInertia,!0,"boolean"!=typeof(T=r(w)(t))||T),$=x(f.startIndex,1),B=0,I=[],C=new l(e,o),O=new g(C,P,$),R=new S(C,O,a,E,i,z),M=new V(t,r,f,R,O,Z,(function(){K(),R.resetTopPadding(),R.resetBottomPadding(),arguments.length&&($=y(arguments[0],1,!1)),O.reset($),j(L,"minIndex"),j(L,"maxIndex"),Z()}));E&&(E.adapter=M);var D=function(){return"[object Object]"===Object.prototype.toString.call(L)&&"function"==typeof L.get};if(L=r(k)(t),!D()&&(L=e.get(k),!D()))throw new Error(k+" is not a valid datasource");var F=[];function j(t,e){var i;angular.isNumber(t[e])&&(i=t[e],angular.isNumber(i)&&(F=F.filter((function(t){return t.id!==e}))).push({id:e,run:function(){return t[e]=i}}))}function U(t,e,i){var n,s=Object.getOwnPropertyDescriptor(t,e);s&&(s.set||s.get)||(j(t,e),Object.defineProperty(t,e,{set:function(s){if(n=s,!I.length||O.length){O[i]=s;var o=R.topDataPos();R.adjustPaddings(),"minIndex"===e&&R.onAfterMinIndexSet(o)}else j(t,e)},get:function(){return n}}))}U(L,"minIndex","minIndexUser"),U(L,"maxIndex","maxIndexUser");var N=2!==L.get.length?function(t){return L.get(O.next,P,t)}:function(t){L.get({index:O.next,append:O.length?O[O.length-1].item:void 0,count:P},t)},W=2!==L.get.length?function(t){return L.get(O.first-P,P,t)}:function(t){L.get({index:O.first-P,prepend:O.length?O[0].item:void 0,count:P},t)};function q(e){return e&&e!==B||t.$$destroyed}function K(){R.off("resize",it),R.off("scroll",it)}function G(t){return t.element.height()&&t.element[0].offsetParent}function _(t,e){X(t,e,R.insertElement),G(t)||(t.unregisterVisibilityWatcher=t.scope.$watch((function(){return function(t){G(t)&&(O.forEach((function(t){"function"==typeof t.unregisterVisibilityWatcher&&(t.unregisterVisibilityWatcher(),delete t.unregisterVisibilityWatcher)})),I.length||n((function(){return Z()})))}(t)}))),C.hideElement(t)}function X(t,e,i){var n=null,s=e>0?O[e-1].element:void 0;if(b((function(e,o){n=i(e,s),t.element=e,t.scope=o,o[H]=t.item})),M.transform){var o=t.scope.uiScrollTdInitializer;o&&o.linking?M.transform(t.scope,t.element):t.scope.uiScrollTdInitializer={onLink:function(){return M.transform(t.scope,t.element)},scope:t.scope}}return n}function Y(t,e){e.animated.length?o.all(e.animated).then((function(){R.adjustPaddings(),Z(t)})):R.adjustPaddings()}function Q(t,e){R.shouldLoadBottom()?(!e||O.effectiveHeight(e.inserted)>0)&&1===I.push(!0)&&(M.loading(!0),et(t)):R.shouldLoadTop()&&(!e||O.effectiveHeight(e.prepended)>0||I[0])&&1===I.push(!1)&&(M.loading(!0),et(t))}function J(){var e,n,s,o,r=(e=[],n=[],s=[],o=[],O.forEach((function(t,i){switch(t.op){case h:n.unshift(t);break;case u:_(t,i),t.op=d,o.push(t);break;case c:e=e.concat(X(t,i,R.insertElementAnimated)),t.op=d,o.push(t);break;case p:s.push(t)}})),s.forEach((function(t){return e=e.concat(R.removeItem(t))})),n.length&&n.forEach((function(t){_(t),t.op=d})),O.forEach((function(t,e){return t.scope.$index=O.first+e})),{prepended:n,removed:s,inserted:o,animated:e});return!t.$$phase&&!i.$$phase&&t.$digest(),r.inserted.forEach((function(t){return C.showElement(t)})),r.prepended.forEach((function(t){return C.showElement(t)})),r}function Z(t){t||(I=[],t=++B);var e=J();q(t)||(Y(t,e),Q(t),I.length||M.calculateProperties())}function tt(t){var e=J();R.onAfterPrepend(e),q(t)||(Y(t,e),F.forEach((function(t){return t.run()})),F=[],Q(t,e),I.shift(),I.length?et(t):(M.loading(!1),R.on("resize",it),R.on("scroll",it),M.calculateProperties()))}function et(t){I[0]?O.length&&!R.shouldLoadBottom()?tt(t):N((function(e){q(t)||(e.length<P&&(O.eof=!0),e.length>0&&(R.clipTop(),O.append(e)),tt(t))})):O.length&&!R.shouldLoadTop()?tt(t):W((function(e){q(t)||(e.length<P&&(O.bof=!0),e.length>0&&(O.length&&R.clipBottom(),O.prepend(e)),tt(t))}))}function it(){A&&function(){if(R.synthetic){var t=R.synthetic.previous,e=R.synthetic.next;if(R.scrollTop()!==e)return requestAnimationFrame((function(){var i=R.scrollTop(),n=t-i;n>0?R.scrollTop(e-n):R.scrollTop(e),R.synthetic=null})),!0;R.synthetic=null}}()||i.$$phase||M.isLoading||M.disabled||(Q(B),I.length?K():(M.calculateProperties(),!t.$$phase&&t.$digest()))}function nt(t){if(!M.disabled){var e=R[0].scrollTop,i=R[0].scrollHeight-R[0].clientHeight;(0===e&&!O.bof||e===i&&!O.eof)&&t.preventDefault()}}b((function(t,e){R.createPaddingElements(t[0]),e.$destroy(),t.remove()})),t.$on("$destroy",(function(){K(),R.off("mousewheel",nt)})),R.on("mousewheel",nt),function(){var t=0;if(R.applyContainerStyle())Z();else var e=s((function(){if(t++,R.applyContainerStyle()&&(s.cancel(e),Z()),50*t>=500)throw s.cancel(e),Error("ui-scroll directive requires a viewport with non-zero height in ".concat(500,"ms"))}),50)}()}}}])}()},611:function(t,e){!function(){"use strict";angular.module("ui.scroll.jqlite",[])}()},612:function(t,e,i){var n,s,o;/*! angularjs-slider - v7.1.0 - (c) Rafal Zajac <rzajac@gmail.com>, Valentin Hervieu <valentin@hervi.eu>, Jussi Saarivirta <jusasi@gmail.com>, Angelin Sirbu <angelin.sirbu@gmail.com> - https://github.com/angular-slider/angularjs-slider - 2022-05-26 */!function(r,a){"use strict";s=[i(450)],void 0===(o="function"==typeof(n=function(t){var e=t.module("rzSlider",[]).factory("RzSliderOptions",(function(){var e={floor:0,ceil:null,step:1,precision:0,minRange:null,maxRange:null,restrictedRange:null,skipRestrictedRangesWithArrowKeys:null,pushRange:!1,minLimit:null,maxLimit:null,id:null,translate:null,getLegend:null,stepsArray:null,bindIndexForStepsArray:!1,draggableRange:!1,draggableRangeOnly:!1,showSelectionBar:!1,showSelectionBarEnd:!1,showSelectionBarFromValue:null,showOuterSelectionBars:!1,hidePointerLabels:!1,hideLimitLabels:!1,autoHideLimitLabels:!0,readOnly:!1,disabled:!1,interval:350,showTicks:!1,showTicksValues:!1,ticksArray:null,ticksTooltip:null,ticksValuesTooltip:null,vertical:!1,getSelectionBarColor:null,getTickColor:null,getPointerColor:null,keyboardSupport:!0,scale:1,enforceStep:!0,enforceRange:!1,noSwitching:!1,onlyBindHandles:!1,disableAnimation:!1,onStart:null,onChange:null,onEnd:null,rightToLeft:!1,reversedControls:!1,boundPointerLabels:!0,mergeRangeLabelsIfSame:!1,labelOverlapSeparator:" - ",customTemplateScope:null,logScale:!1,customValueToPosition:null,customPositionToValue:null,selectionBarGradient:null,ariaLabel:null,ariaLabelledBy:null,ariaLabelHigh:null,ariaLabelledByHigh:null},i={},n={options:function(e){t.extend(i,e)},getOptions:function(n){return t.extend({},e,i,n)}};return n})).factory("rzThrottle",["$timeout",function(t){return function(e,i,n){var s,o,r,a=Date.now||function(){return(new Date).getTime()},l=null,h=0;n=n||{};var u=function(){h=a(),l=null,r=e.apply(s,o),s=o=null};return function(){var c=a(),p=i-(c-h);return s=this,o=arguments,0>=p?(t.cancel(l),l=null,h=c,r=e.apply(s,o),s=o=null):l||!1===n.trailing||(l=t(u,p)),r}}}]).factory("RzSlider",["$timeout","$document","$window","$compile","RzSliderOptions","rzThrottle",function(e,i,n,s,o,r){var a=function(t,e){this.scope=t,this.lowValue=0,this.highValue=0,this.sliderElem=e,this.range=void 0!==this.scope.rzSliderModel&&void 0!==this.scope.rzSliderHigh,this.dragging={active:!1,value:0,difference:0,position:0,lowLimit:0,highLimit:0},this.positionProperty="left",this.dimensionProperty="width",this.handleHalfDim=0,this.maxPos=0,this.precision=0,this.step=1,this.tracking="",this.minValue=0,this.maxValue=0,this.valueRange=0,this.intermediateTicks=!1,this.initHasRun=!1,this.firstKeyDown=!1,this.internalChange=!1,this.cmbLabelShown=!1,this.currentFocusElement=null,this.moving=!1,this.fullBar=null,this.selBar=null,this.minH=null,this.maxH=null,this.flrLab=null,this.ceilLab=null,this.minLab=null,this.maxLab=null,this.cmbLab=null,this.ticks=null,this.init()};return a.prototype={init:function(){var e,i,s=this,o=function(){s.calcViewDimensions()};this.applyOptions(),this.syncLowValue(),this.range&&this.syncHighValue(),this.initElemHandles(),this.manageElementsStyle(),this.setDisabledState(),this.calcViewDimensions(),this.setMinAndMax(),this.updateRestrictionBar(),this.addAccessibility(),this.updateCeilLab(),this.updateFloorLab(),this.initHandles(),this.manageEventsBindings(),this.scope.$on("reCalcViewDimensions",o),t.element(n).on("resize",o),this.initHasRun=!0,this.options.disableAnimation&&this.sliderElem.addClass("noanimate"),e=r((function(){s.onLowHandleChange()}),s.options.interval),i=r((function(){s.onHighHandleChange()}),s.options.interval),this.scope.$on("rzSliderForceRender",(function(){s.resetLabelsValue(),e(),s.range&&i(),s.resetSlider()})),this.scope.$watchCollection("rzSliderOptions()",(function(t,e){t!==e&&(s.applyOptions(),s.syncLowValue(),s.range&&s.syncHighValue(),s.resetSlider())})),this.scope.$watch("rzSliderModel",(function(t,i){s.internalChange||t!==i&&e()})),this.scope.$watch("rzSliderHigh",(function(t,e){s.internalChange||t!==e&&(null!=t&&i(),(s.range&&null==t||!s.range&&null!=t)&&(s.applyOptions(),s.resetSlider()))})),this.scope.$on("$destroy",(function(){s.unbindEvents(),t.element(n).off("resize",o),s.currentFocusElement=null}))},findStepIndex:function(e){for(var i=0,n=0;n<this.options.stepsArray.length;n++){var s=this.options.stepsArray[n];if(s===e){i=n;break}if(t.isDate(s)){if(s.getTime()===e.getTime()){i=n;break}}else if(t.isObject(s)&&(t.isDate(s.value)&&s.value.getTime()===e.getTime()||s.value===e)){i=n;break}}return i},syncLowValue:function(){this.options.stepsArray?this.options.bindIndexForStepsArray?this.lowValue=this.scope.rzSliderModel:this.lowValue=this.findStepIndex(this.scope.rzSliderModel):this.lowValue=this.scope.rzSliderModel},syncHighValue:function(){this.options.stepsArray?this.options.bindIndexForStepsArray?this.highValue=this.scope.rzSliderHigh:this.highValue=this.findStepIndex(this.scope.rzSliderHigh):this.highValue=this.scope.rzSliderHigh},getStepValue:function(e){var i=this.options.stepsArray[e];return t.isDate(i)?i:t.isObject(i)?i.value:i},applyLowValue:function(){this.options.stepsArray?this.options.bindIndexForStepsArray?this.scope.rzSliderModel=this.lowValue:this.scope.rzSliderModel=this.getStepValue(this.lowValue):this.scope.rzSliderModel=this.lowValue},applyHighValue:function(){this.options.stepsArray?this.options.bindIndexForStepsArray?this.scope.rzSliderHigh=this.highValue:this.scope.rzSliderHigh=this.getStepValue(this.highValue):this.scope.rzSliderHigh=this.highValue},onLowHandleChange:function(){this.syncLowValue(),this.range&&this.syncHighValue(),this.setMinAndMax(),this.updateLowHandle(this.valueToPosition(this.lowValue)),this.updateSelectionBar(),this.updateTicksScale(),this.updateAriaAttributes(),this.range&&this.updateCmbLabel()},onHighHandleChange:function(){this.syncLowValue(),this.syncHighValue(),this.setMinAndMax(),this.updateHighHandle(this.valueToPosition(this.highValue)),this.updateSelectionBar(),this.updateTicksScale(),this.updateCmbLabel(),this.updateAriaAttributes()},applyOptions:function(){var e;e=this.scope.rzSliderOptions?this.scope.rzSliderOptions():{},this.options=o.getOptions(e),this.options.step<=0&&(this.options.step=1),this.range=void 0!==this.scope.rzSliderModel&&void 0!==this.scope.rzSliderHigh,this.options.draggableRange=this.range&&this.options.draggableRange,this.options.draggableRangeOnly=this.range&&this.options.draggableRangeOnly,this.options.draggableRangeOnly&&(this.options.draggableRange=!0),this.options.showTicks=this.options.showTicks||this.options.showTicksValues||!!this.options.ticksArray,this.scope.showTicks=this.options.showTicks,(t.isNumber(this.options.showTicks)||this.options.ticksArray)&&(this.intermediateTicks=!0),this.options.showSelectionBar=this.options.showSelectionBar||this.options.showSelectionBarEnd||null!==this.options.showSelectionBarFromValue,this.options.stepsArray?this.parseStepsArray():(this.options.translate?this.customTrFn=this.options.translate:this.customTrFn=function(t){return String(t)},this.getLegend=this.options.getLegend),this.options.vertical?(this.positionProperty="bottom",this.dimensionProperty="height"):(this.positionProperty="left",this.dimensionProperty="width"),this.options.customTemplateScope&&(this.scope.custom=this.options.customTemplateScope)},parseStepsArray:function(){this.options.floor=0,this.options.ceil=this.options.stepsArray.length-1,this.options.step=1,this.options.translate?this.customTrFn=this.options.translate:this.customTrFn=function(t){return this.options.bindIndexForStepsArray?this.getStepValue(t):t},this.getLegend=function(e){var i=this.options.stepsArray[e];return t.isObject(i)?i.legend:null}},resetSlider:function(){this.resetLabelsValue(),this.manageElementsStyle(),this.addAccessibility(),this.setMinAndMax(),this.updateCeilLab(),this.updateFloorLab(),this.unbindEvents(),this.manageEventsBindings(),this.setDisabledState(),this.calcViewDimensions(),this.updateRestrictionBar(),this.refocusPointerIfNeeded()},refocusPointerIfNeeded:function(){this.currentFocusElement&&(this.onPointerFocus(this.currentFocusElement.pointer,this.currentFocusElement.ref),this.focusElement(this.currentFocusElement.pointer))},ensureRestrictedBarIsArray:function(e){var i=t.element(e);if(this.restrictedBar=[],this.options.restrictedRange){this.options.restrictedRange=Array.isArray(this.options.restrictedRange)?this.options.restrictedRange:[this.options.restrictedRange],this.restrictedBar[0]=i;for(var n=e.parentElement,s=1;s<this.options.restrictedRange.length;s++){var o=document.createElement("span");o.setAttribute("class","rz-bar-wrapper"),o.innerHTML='<span class="rz-bar rz-restricted" ng-style="restrictionStyle"></span>',n.appendChild(o),this.restrictedBar[s]=t.element(o)}}else e.style.visibility="hidden",this.restrictedBar=null},initElemHandles:function(){t.forEach(this.sliderElem.children(),(function(e,i){var n=t.element(e);switch(i){case 0:this.leftOutSelBar=n;break;case 1:this.rightOutSelBar=n;break;case 2:this.fullBar=n;break;case 3:this.selBar=n;break;case 4:this.ensureRestrictedBarIsArray(e);break;case 5:this.minH=n;break;case 6:this.maxH=n;break;case 7:this.flrLab=n;break;case 8:this.ceilLab=n;break;case 9:this.minLab=n;break;case 10:this.maxLab=n;break;case 11:this.cmbLab=n;break;case 12:this.ticks=n}}),this),this.selBar.rzsp=0,this.minH.rzsp=0,this.maxH.rzsp=0,this.flrLab.rzsp=0,this.ceilLab.rzsp=0,this.minLab.rzsp=0,this.maxLab.rzsp=0,this.cmbLab.rzsp=0},manageElementsStyle:function(){this.range?this.maxH.css("display",""):this.maxH.css("display","none"),this.alwaysHide(this.flrLab,this.options.showTicksValues||this.options.hideLimitLabels),this.alwaysHide(this.ceilLab,this.options.showTicksValues||this.options.hideLimitLabels);var t=this.options.showTicksValues&&!this.intermediateTicks;for(var e in this.alwaysHide(this.minLab,t||this.options.hidePointerLabels),this.alwaysHide(this.maxLab,t||!this.range||this.options.hidePointerLabels),this.alwaysHide(this.cmbLab,t||!this.range||this.options.hidePointerLabels),this.alwaysHide(this.selBar,!this.range&&!this.options.showSelectionBar),this.alwaysHide(this.leftOutSelBar,!this.range||!this.options.showOuterSelectionBars),this.restrictedBar)this.restrictedBar[e]&&this.alwaysHide(this.restrictedBar[e],!this.options.restrictedRange[e]);this.alwaysHide(this.rightOutSelBar,!this.range||!this.options.showOuterSelectionBars),this.range&&this.options.showOuterSelectionBars&&this.fullBar.addClass("rz-transparent"),this.options.vertical?this.sliderElem.addClass("rz-vertical"):this.sliderElem.removeClass("rz-vertical"),this.options.draggableRange?this.selBar.addClass("rz-draggable"):this.selBar.removeClass("rz-draggable"),this.intermediateTicks&&this.options.showTicksValues&&this.ticks.addClass("rz-ticks-values-under")},alwaysHide:function(t,e){t.rzAlwaysHide=e,e?this.hideEl(t):this.showEl(t)},manageEventsBindings:function(){this.options.disabled||this.options.readOnly?this.unbindEvents():this.bindEvents()},setDisabledState:function(){this.options.disabled?this.sliderElem.attr("disabled","disabled"):this.sliderElem.attr("disabled",null)},resetLabelsValue:function(){this.minLab.rzsv=void 0,this.maxLab.rzsv=void 0,this.flrLab.rzsv=void 0,this.ceilLab.rzsv=void 0,this.cmbLab.rzsv=void 0,this.resetPosition(this.flrLab),this.resetPosition(this.ceilLab),this.resetPosition(this.cmbLab),this.resetPosition(this.minLab),this.resetPosition(this.maxLab)},initHandles:function(){this.updateLowHandle(this.valueToPosition(this.lowValue)),this.range&&this.updateHighHandle(this.valueToPosition(this.highValue)),this.updateSelectionBar(),this.range&&this.updateCmbLabel(),this.updateTicksScale()},translateFn:function(t,e,i,n){n=void 0===n||n;var s="",o=!1,r=e.hasClass("no-label-injection");n?(this.options.stepsArray&&!this.options.bindIndexForStepsArray&&(t=this.getStepValue(t)),s=String(this.customTrFn(t,this.options.id,i))):s=String(t),(void 0===e.rzsv||e.rzsv.length!==s.length||e.rzsv.length>0&&0===e.rzsd)&&(o=!0,e.rzsv=s),r||e.html(s),this.scope[i+"Label"]=s,o&&this.getDimension(e)},setMinAndMax:function(){if(this.step=+this.options.step,this.precision=+this.options.precision,this.minValue=this.options.floor,this.options.logScale&&0===this.minValue)throw Error("Can't use floor=0 with logarithmic scale");this.options.enforceStep&&(this.lowValue=this.roundStep(this.lowValue),this.range&&(this.highValue=this.roundStep(this.highValue))),null!=this.options.ceil?this.maxValue=this.options.ceil:this.maxValue=this.options.ceil=this.range?this.highValue:this.lowValue,this.options.enforceRange&&(this.lowValue=this.sanitizeValue(this.lowValue),this.range&&(this.highValue=this.sanitizeValue(this.highValue))),this.applyLowValue(),this.range&&this.applyHighValue(),this.valueRange=this.maxValue-this.minValue},addAccessibility:function(){this.minH.attr("role","slider"),this.updateAriaAttributes(),!this.options.keyboardSupport||this.options.readOnly||this.options.disabled?this.minH.attr("tabindex",""):this.minH.attr("tabindex","0"),this.options.vertical?this.minH.attr("aria-orientation","vertical"):this.minH.attr("aria-orientation","horizontal"),this.options.ariaLabel?this.minH.attr("aria-label",this.options.ariaLabel):this.options.ariaLabelledBy&&this.minH.attr("aria-labelledby",this.options.ariaLabelledBy),this.range&&(this.maxH.attr("role","slider"),!this.options.keyboardSupport||this.options.readOnly||this.options.disabled?this.maxH.attr("tabindex",""):this.maxH.attr("tabindex","0"),this.options.vertical?this.maxH.attr("aria-orientation","vertical"):this.maxH.attr("aria-orientation","horizontal"),this.options.ariaLabelHigh?this.maxH.attr("aria-label",this.options.ariaLabelHigh):this.options.ariaLabelledByHigh&&this.maxH.attr("aria-labelledby",this.options.ariaLabelledByHigh))},updateAriaAttributes:function(){this.minH.attr({"aria-valuenow":this.scope.rzSliderModel,"aria-valuetext":this.customTrFn(this.scope.rzSliderModel,this.options.id,"model"),"aria-valuemin":this.minValue,"aria-valuemax":this.maxValue}),this.range&&this.maxH.attr({"aria-valuenow":this.scope.rzSliderHigh,"aria-valuetext":this.customTrFn(this.scope.rzSliderHigh,this.options.id,"high"),"aria-valuemin":this.minValue,"aria-valuemax":this.maxValue})},calcViewDimensions:function(){var t=this.getDimension(this.minH);if(this.handleHalfDim=t/2,this.barDimension=this.getDimension(this.fullBar),this.maxPos=this.barDimension-t,this.getDimension(this.sliderElem),this.sliderElem.rzsp=this.sliderElem[0].getBoundingClientRect()[this.positionProperty],this.initHasRun){this.updateFloorLab(),this.updateCeilLab(),this.initHandles();var i=this;e((function(){i.updateTicksScale()}))}},updateTicksScale:function(){if(this.options.showTicks){var e=this.options.ticksArray||this.getTicksArray(),i=this.options.vertical?"translateY":"translateX",n=this;this.options.rightToLeft&&e.reverse(),this.scope.ticks=e.map((function(e){var s=null;t.isObject(e)&&(s=e.legend,e=e.value);var o=n.valueToPosition(e);n.options.vertical&&(o=n.maxPos-o);var r=i+"("+Math.round(o)+"px)",a={legend:s,selected:n.isTickSelected(e),style:{"-webkit-transform":r,"-moz-transform":r,"-o-transform":r,"-ms-transform":r,transform:r}};return a.selected&&n.options.getSelectionBarColor&&(a.style["background-color"]=n.getSelectionBarColor()),!a.selected&&n.options.getTickColor&&(a.style["background-color"]=n.getTickColor(e)),n.options.ticksTooltip&&(a.tooltip=n.options.ticksTooltip(e),a.tooltipPlacement=n.options.vertical?"right":"top"),(!0===n.options.showTicksValues||e%n.options.showTicksValues==0)&&(a.value=n.getDisplayValue(e,"tick-value"),n.options.ticksValuesTooltip&&(a.valueTooltip=n.options.ticksValuesTooltip(e),a.valueTooltipPlacement=n.options.vertical?"right":"top")),n.getLegend&&((s=n.getLegend(e,n.options.id))&&(a.legend=s)),a}))}},getTicksArray:function(){var t=this.step,e=[];this.intermediateTicks&&(t=this.options.showTicks);for(var i=this.minValue;i<=this.maxValue;i+=t)e.push(i);return e},isTickSelected:function(t){if(!this.range)if(null!==this.options.showSelectionBarFromValue){var e=this.options.showSelectionBarFromValue;if(this.lowValue>e&&t>=e&&t<=this.lowValue)return!0;if(this.lowValue<e&&e>=t&&t>=this.lowValue)return!0}else if(this.options.showSelectionBarEnd){if(t>=this.lowValue)return!0}else if(this.options.showSelectionBar&&t<=this.lowValue)return!0;return!!(this.range&&t>=this.lowValue&&t<=this.highValue)},updateFloorLab:function(){this.translateFn(this.minValue,this.flrLab,"floor"),this.getDimension(this.flrLab);var t=this.options.rightToLeft?this.barDimension-this.flrLab.rzsd:0;this.setPosition(this.flrLab,t)},updateCeilLab:function(){this.translateFn(this.maxValue,this.ceilLab,"ceil"),this.getDimension(this.ceilLab);var t=this.options.rightToLeft?0:this.barDimension-this.ceilLab.rzsd;this.setPosition(this.ceilLab,t)},updateHandles:function(t,e){"lowValue"===t?this.updateLowHandle(e):this.updateHighHandle(e),this.updateSelectionBar(),this.updateTicksScale(),this.range&&this.updateCmbLabel()},getHandleLabelPos:function(t,e){var i=this[t].rzsd,n=e-i/2+this.handleHalfDim,s=this.barDimension-i;return this.options.boundPointerLabels?this.options.rightToLeft&&"minLab"===t||!this.options.rightToLeft&&"maxLab"===t?Math.min(n,s):Math.min(Math.max(n,0),s):n},updateLowHandle:function(t){if(this.setPosition(this.minH,t),this.translateFn(this.lowValue,this.minLab,"model"),this.setPosition(this.minLab,this.getHandleLabelPos("minLab",t)),this.options.getPointerColor){var e=this.getPointerColor("min");this.scope.minPointerStyle={backgroundColor:e}}this.options.autoHideLimitLabels&&this.shFloorCeil()},updateHighHandle:function(t){if(this.setPosition(this.maxH,t),this.translateFn(this.highValue,this.maxLab,"high"),this.setPosition(this.maxLab,this.getHandleLabelPos("maxLab",t)),this.options.getPointerColor){var e=this.getPointerColor("max");this.scope.maxPointerStyle={backgroundColor:e}}this.options.autoHideLimitLabels&&this.shFloorCeil()},shFloorCeil:function(){if(!this.options.hidePointerLabels){var t=!1,e=!1,i=this.isLabelBelowFloorLab(this.minLab),n=this.isLabelAboveCeilLab(this.minLab),s=this.isLabelAboveCeilLab(this.maxLab),o=this.isLabelBelowFloorLab(this.cmbLab),r=this.isLabelAboveCeilLab(this.cmbLab);if(i?(t=!0,this.hideEl(this.flrLab)):(t=!1,this.showEl(this.flrLab)),n?(e=!0,this.hideEl(this.ceilLab)):(e=!1,this.showEl(this.ceilLab)),this.range){var a=this.cmbLabelShown?r:s,l=this.cmbLabelShown?o:i;a?this.hideEl(this.ceilLab):e||this.showEl(this.ceilLab),l?this.hideEl(this.flrLab):t||this.showEl(this.flrLab)}}},isLabelBelowFloorLab:function(t){var e=this.options.rightToLeft,i=t.rzsp,n=t.rzsd,s=this.flrLab.rzsp,o=this.flrLab.rzsd;return e?i+n>=s-2:s+o+2>=i},isLabelAboveCeilLab:function(t){var e=this.options.rightToLeft,i=t.rzsp,n=t.rzsd,s=this.ceilLab.rzsp,o=this.ceilLab.rzsd;return e?s+o+2>=i:i+n>=s-2},updateRestrictionBar:function(){var t=0,e=0;if(this.options.restrictedRange)for(var i in this.options.restrictedRange=Array.isArray(this.options.restrictedRange)?this.options.restrictedRange:[this.options.restrictedRange],this.options.restrictedRange){var n=this.valueToPosition(this.options.restrictedRange[i].from),s=this.valueToPosition(this.options.restrictedRange[i].to);e=Math.abs(s-n),t=this.options.rightToLeft?s+this.handleHalfDim:n+this.handleHalfDim,this.setDimension(this.restrictedBar[i],e),this.setPosition(this.restrictedBar[i],t)}},updateSelectionBar:function(){var t=0,e=0,i=this.options.rightToLeft?!this.options.showSelectionBarEnd:this.options.showSelectionBarEnd,n=this.options.rightToLeft?this.maxH.rzsp+this.handleHalfDim:this.minH.rzsp+this.handleHalfDim;if(this.range)e=Math.abs(this.maxH.rzsp-this.minH.rzsp),t=n;else if(null!==this.options.showSelectionBarFromValue){var s=this.options.showSelectionBarFromValue,o=this.valueToPosition(s);(this.options.rightToLeft?this.lowValue<=s:this.lowValue>s)?(e=this.minH.rzsp-o,t=o+this.handleHalfDim):(e=o-this.minH.rzsp,t=this.minH.rzsp+this.handleHalfDim)}else i?(e=Math.abs(this.maxPos-this.minH.rzsp)+this.handleHalfDim,t=this.minH.rzsp+this.handleHalfDim):(e=this.minH.rzsp+this.handleHalfDim,t=0);if(this.setDimension(this.selBar,e),this.setPosition(this.selBar,t),this.range&&this.options.showOuterSelectionBars&&(this.options.rightToLeft?(this.setDimension(this.rightOutSelBar,t),this.setPosition(this.rightOutSelBar,0),this.setDimension(this.leftOutSelBar,this.getDimension(this.fullBar)-(t+e)),this.setPosition(this.leftOutSelBar,t+e)):(this.setDimension(this.leftOutSelBar,t),this.setPosition(this.leftOutSelBar,0),this.setDimension(this.rightOutSelBar,this.getDimension(this.fullBar)-(t+e)),this.setPosition(this.rightOutSelBar,t+e))),this.options.getSelectionBarColor){var r=this.getSelectionBarColor();this.scope.barStyle={backgroundColor:r}}else if(this.options.selectionBarGradient){var a=null!==this.options.showSelectionBarFromValue?this.valueToPosition(this.options.showSelectionBarFromValue):0,l=a-t>0^i,h=this.options.vertical?l?"bottom":"top":l?"left":"right";this.scope.barStyle={backgroundImage:"linear-gradient(to "+h+", "+this.options.selectionBarGradient.from+" 0%,"+this.options.selectionBarGradient.to+" 100%)"},this.options.vertical?(this.scope.barStyle.backgroundPosition="center "+(a+e+t+(l?-this.handleHalfDim:0))+"px",this.scope.barStyle.backgroundSize="100% "+(this.barDimension-this.handleHalfDim)+"px"):(this.scope.barStyle.backgroundPosition=a-t+(l?this.handleHalfDim:0)+"px center",this.scope.barStyle.backgroundSize=this.barDimension-this.handleHalfDim+"px 100%")}},getSelectionBarColor:function(){return this.range?this.options.getSelectionBarColor(this.scope.rzSliderModel,this.scope.rzSliderHigh):this.options.getSelectionBarColor(this.scope.rzSliderModel)},getPointerColor:function(t){return"max"===t?this.options.getPointerColor(this.scope.rzSliderHigh,t):this.options.getPointerColor(this.scope.rzSliderModel,t)},getTickColor:function(t){return this.options.getTickColor(t)},updateCmbLabel:function(){if(this.options.rightToLeft?this.minLab.rzsp-this.minLab.rzsd-10<=this.maxLab.rzsp:this.minLab.rzsp+this.minLab.rzsd+10>=this.maxLab.rzsp){var t,e=this.getDisplayValue(this.lowValue,"model"),i=this.getDisplayValue(this.highValue,"high");t=this.options.mergeRangeLabelsIfSame&&e===i?e:this.options.rightToLeft?i+this.options.labelOverlapSeparator+e:e+this.options.labelOverlapSeparator+i,this.translateFn(t,this.cmbLab,"cmb",!1);var n=this.options.boundPointerLabels?Math.min(Math.max(this.selBar.rzsp+this.selBar.rzsd/2-this.cmbLab.rzsd/2,0),this.barDimension-this.cmbLab.rzsd):this.selBar.rzsp+this.selBar.rzsd/2-this.cmbLab.rzsd/2;this.setPosition(this.cmbLab,n),this.cmbLabelShown=!0,this.hideEl(this.minLab),this.hideEl(this.maxLab),this.showEl(this.cmbLab)}else this.cmbLabelShown=!1,this.updateHighHandle(this.valueToPosition(this.highValue)),this.updateLowHandle(this.valueToPosition(this.lowValue)),this.showEl(this.maxLab),this.showEl(this.minLab),this.hideEl(this.cmbLab);this.options.autoHideLimitLabels&&this.shFloorCeil()},getDisplayValue:function(t,e){return this.options.stepsArray&&!this.options.bindIndexForStepsArray&&(t=this.getStepValue(t)),this.customTrFn(t,this.options.id,e)},roundStep:function(t,e){var i=e||this.step,n=parseFloat((t-this.minValue)/i).toPrecision(12);return n=Math.round(+n)*i,+(this.minValue+n).toFixed(this.precision)},hideEl:function(t){return t.css({visibility:"hidden"})},showEl:function(t){return t.rzAlwaysHide?t:t.css({visibility:"visible"})},setPosition:function(t,e){t.rzsp=e;var i={};return i[this.positionProperty]=Math.round(e)+"px",t.css(i),e},resetPosition:function(t){t.css({left:null,bottom:null})},getDimension:function(t){var e=t[0].getBoundingClientRect();return this.options.vertical?t.rzsd=(e.bottom-e.top)*this.options.scale:t.rzsd=(e.right-e.left)*this.options.scale,t.rzsd},setDimension:function(t,e){t.rzsd=e;var i={};return i[this.dimensionProperty]=Math.round(e)+"px",t.css(i),e},sanitizeValue:function(t){return Math.min(Math.max(t,this.minValue),this.maxValue)},valueToPosition:function(t){var e=this.linearValueToPosition;this.options.customValueToPosition?e=this.options.customValueToPosition:this.options.logScale&&(e=this.logValueToPosition);var i=e(t=this.sanitizeValue(t),this.minValue,this.maxValue)||0;return this.options.rightToLeft&&(i=1-i),i*this.maxPos},linearValueToPosition:function(t,e,i){return(t-e)/(i-e)},logValueToPosition:function(t,e,i){return((t=Math.log(t))-(e=Math.log(e)))/((i=Math.log(i))-e)},positionToValue:function(t){var e=t/this.maxPos;this.options.rightToLeft&&(e=1-e);var i=this.linearPositionToValue;return this.options.customPositionToValue?i=this.options.customPositionToValue:this.options.logScale&&(i=this.logPositionToValue),i(e,this.minValue,this.maxValue)||0},linearPositionToValue:function(t,e,i){return t*(i-e)+e},logPositionToValue:function(t,e,i){e=Math.log(e);var n=t*((i=Math.log(i))-e)+e;return Math.exp(n)},getEventAttr:function(t,e){return void 0===t.originalEvent?t[e]:t.originalEvent[e]},getEventXY:function(t,e){var i=this.options.vertical?"clientY":"clientX";if(void 0!==t[i])return t[i];var n=this.getEventAttr(t,"touches");if(void 0!==e)for(var s=0;s<n.length;s++)if(n[s].identifier===e)return n[s][i];return n[0][i]},getEventPosition:function(t,e){var i=this.sliderElem.rzsp;return(this.options.vertical?-this.getEventXY(t,e)+i:this.getEventXY(t,e)-i)*this.options.scale-this.handleHalfDim},getEventNames:function(t){var e={moveEvent:"",endEvent:""};return this.getEventAttr(t,"touches")?(e.moveEvent="touchmove",e.endEvent="touchend"):(e.moveEvent="mousemove",e.endEvent="mouseup"),e},getNearestHandle:function(t){if(!this.range)return this.minH;var e=this.getEventPosition(t),i=Math.abs(e-this.minH.rzsp),n=Math.abs(e-this.maxH.rzsp);return n>i?this.minH:i>n?this.maxH:this.options.rightToLeft?e>this.minH.rzsp?this.minH:this.maxH:e<this.minH.rzsp?this.minH:this.maxH},focusElement:function(t){t[0].focus()},bindEvents:function(){var e,i,n;this.options.draggableRange?(e="rzSliderDrag",i=this.onDragStart,n=this.onDragMove):(e="lowValue",i=this.onStart,n=this.onMove),this.options.onlyBindHandles||(this.selBar.on("mousedown",t.bind(this,i,null,e)),this.selBar.on("mousedown",t.bind(this,n,this.selBar))),this.options.draggableRangeOnly?(this.minH.on("mousedown",t.bind(this,i,null,e)),this.maxH.on("mousedown",t.bind(this,i,null,e))):(this.minH.on("mousedown",t.bind(this,this.onStart,this.minH,"lowValue")),this.range&&this.maxH.on("mousedown",t.bind(this,this.onStart,this.maxH,"highValue")),this.options.onlyBindHandles||(this.fullBar.on("mousedown",t.bind(this,this.onStart,null,null)),this.fullBar.on("mousedown",t.bind(this,this.onMove,this.fullBar)),this.ticks.on("mousedown",t.bind(this,this.onStart,null,null)),this.ticks.on("mousedown",t.bind(this,this.onTickClick,this.ticks)))),this.options.onlyBindHandles||(this.selBar.on("touchstart",t.bind(this,i,null,e)),this.selBar.on("touchstart",t.bind(this,n,this.selBar))),this.options.draggableRangeOnly?(this.minH.on("touchstart",t.bind(this,i,null,e)),this.maxH.on("touchstart",t.bind(this,i,null,e))):(this.minH.on("touchstart",t.bind(this,this.onStart,this.minH,"lowValue")),this.range&&this.maxH.on("touchstart",t.bind(this,this.onStart,this.maxH,"highValue")),this.options.onlyBindHandles||(this.fullBar.on("touchstart",t.bind(this,this.onStart,null,null)),this.fullBar.on("touchstart",t.bind(this,this.onMove,this.fullBar)),this.ticks.on("touchstart",t.bind(this,this.onStart,null,null)),this.ticks.on("touchstart",t.bind(this,this.onTickClick,this.ticks)))),this.options.keyboardSupport&&(this.minH.on("focus",t.bind(this,this.onPointerFocus,this.minH,"lowValue")),this.range&&this.maxH.on("focus",t.bind(this,this.onPointerFocus,this.maxH,"highValue")))},unbindEvents:function(){this.minH.off(),this.maxH.off(),this.fullBar.off(),this.selBar.off(),this.ticks.off()},onStart:function(e,n,s){var o,r,a=this.getEventNames(s);s.stopPropagation(),s.preventDefault(),this.calcViewDimensions(),e?this.tracking=n:(e=this.getNearestHandle(s),this.tracking=e===this.minH?"lowValue":"highValue"),e.addClass("rz-active"),this.options.keyboardSupport&&this.focusElement(e),o=t.bind(this,this.dragging.active?this.onDragMove:this.onMove,e),r=t.bind(this,this.onEnd,o),i.on(a.moveEvent,o),i.on(a.endEvent,r),this.endHandlerToBeRemovedOnEnd=r,this.callOnStart();var l=this.getEventAttr(s,"changedTouches");l&&(this.touchId||(this.isDragging=!0,this.touchId=l[0].identifier))},onMove:function(e,i,n){this.options.disableAnimation||this.moving&&this.sliderElem.addClass("noanimate"),this.moving=!0;var s,o=this.getEventAttr(i,"changedTouches");if(o)for(var r=0;r<o.length;r++)if(o[r].identifier===this.touchId){s=o[r];break}if(!o||s){var a,l=this.getEventPosition(i,s?s.identifier:void 0),h=this.options.rightToLeft?this.minValue:this.maxValue,u=this.options.rightToLeft?this.maxValue:this.minValue;0>=l?a=u:l>=this.maxPos?a=h:(a=this.positionToValue(l),a=n&&t.isNumber(this.options.showTicks)?this.roundStep(a,this.options.showTicks):this.roundStep(a)),this.positionTrackingHandle(a)}},onEnd:function(t,e){this.moving=!1,this.options.disableAnimation||this.sliderElem.removeClass("noanimate");var n=this.getEventAttr(e,"changedTouches");if(!n||n[0].identifier===this.touchId){this.isDragging=!1,this.touchId=null,this.options.keyboardSupport||(this.minH.removeClass("rz-active"),this.maxH.removeClass("rz-active"),this.tracking=""),this.dragging.active=!1;var s=this.getEventNames(e);i.off(s.moveEvent,t),i.off(s.endEvent,this.endHandlerToBeRemovedOnEnd),this.endHandlerToBeRemovedOnEnd=null,this.callOnEnd()}},onTickClick:function(t,e){this.onMove(t,e,!0)},onPointerFocus:function(e,i){this.tracking=i,e.one("blur",t.bind(this,this.onPointerBlur,e)),e.on("keydown",t.bind(this,this.onKeyboardEvent)),e.on("keyup",t.bind(this,this.onKeyUp)),this.firstKeyDown=!0,e.addClass("rz-active"),this.currentFocusElement={pointer:e,ref:i}},onKeyUp:function(){this.firstKeyDown=!0,this.callOnEnd()},onPointerBlur:function(t){t.off("keydown"),t.off("keyup"),t.removeClass("rz-active"),this.isDragging||(this.tracking="",this.currentFocusElement=null)},skipRestrictedRanges:function(t,e){if(this.options.restrictedRange&&Array.isArray(this.options.restrictedRange))for(var i in this.options.restrictedRange){var n=this.options.restrictedRange[i];if(0===n.from&&0===e&&[37,40].includes(t)||n.to>=this.options.restrictedRange[this.options.restrictedRange.length-1].to&&e>=this.options.restrictedRange[this.options.restrictedRange.length-1].to&&[38,39].includes(t))return e;n.to>e&&e>n.from&&(e=Math.abs(n.to-e)>Math.abs(n.from-e)?n.to:n.from)}return e},getKeyActions:function(t){var e=t+this.step,i=t-this.step,n=t+this.valueRange/10,s=t-this.valueRange/10;this.options.reversedControls&&(e=t-this.step,i=t+this.step,n=t-this.valueRange/10,s=t+this.valueRange/10);var o={UP:e,DOWN:i,LEFT:i,RIGHT:e,PAGEUP:n,PAGEDOWN:s,HOME:this.options.reversedControls?this.maxValue:this.minValue,END:this.options.reversedControls?this.minValue:this.maxValue};return this.options.rightToLeft&&(o.LEFT=e,o.RIGHT=i,this.options.vertical&&(o.UP=i,o.DOWN=e)),o},onKeyboardEvent:function(t){var i=t.keyCode||t.which,n=this[this.tracking],s=this.getKeyActions(n)[{38:"UP",40:"DOWN",37:"LEFT",39:"RIGHT",33:"PAGEUP",34:"PAGEDOWN",36:"HOME",35:"END"}[i]];if(null!=s&&""!==this.tracking){t.preventDefault(),this.firstKeyDown&&(this.firstKeyDown=!1,this.callOnStart());var o=this;e((function(){var t=o.roundStep(o.sanitizeValue(s));if(t=o.options.skipRestrictedRangesWithArrowKeys?o.skipRestrictedRanges(i,t):t,o.options.draggableRangeOnly){var e,n,r=o.highValue-o.lowValue;"lowValue"===o.tracking?(e=t,(n=t+r)>o.maxValue&&(e=(n=o.maxValue)-r)):(n=t,(e=t-r)<o.minValue&&(n=(e=o.minValue)+r)),o.positionTrackingBar(e,n)}else o.positionTrackingHandle(t)}))}},onDragStart:function(t,e,i){var n=this.getEventPosition(i);this.dragging={active:!0,value:this.positionToValue(n),difference:this.highValue-this.lowValue,lowLimit:this.options.rightToLeft?this.minH.rzsp-n:n-this.minH.rzsp,highLimit:this.options.rightToLeft?n-this.maxH.rzsp:this.maxH.rzsp-n},this.onStart(t,e,i)},getValue:function(t,e,i,n){var s,o=this.options.rightToLeft;return s="min"===t?i?n?o?this.minValue:this.maxValue-this.dragging.difference:o?this.maxValue-this.dragging.difference:this.minValue:o?this.positionToValue(e+this.dragging.lowLimit):this.positionToValue(e-this.dragging.lowLimit):i?n?o?this.minValue+this.dragging.difference:this.maxValue:o?this.maxValue:this.minValue+this.dragging.difference:o?this.positionToValue(e+this.dragging.lowLimit)+this.dragging.difference:this.positionToValue(e-this.dragging.lowLimit)+this.dragging.difference,this.roundStep(s)},onDragMove:function(t,e){this.options.disableAnimation||this.moving&&this.sliderElem.addClass("noanimate"),this.moving=!0;var i,n,s,o,r,a,l,h,u=this.getEventPosition(e);if(this.options.rightToLeft?(s=this.dragging.lowLimit,o=this.dragging.highLimit,l=this.maxH,h=this.minH):(s=this.dragging.highLimit,o=this.dragging.lowLimit,l=this.minH,h=this.maxH),r=o>=u,a=u>=this.maxPos-s,r){if(0===l.rzsp)return;i=this.getValue("min",u,!0,!1),n=this.getValue("max",u,!0,!1)}else if(a){if(h.rzsp===this.maxPos)return;n=this.getValue("max",u,!0,!0),i=this.getValue("min",u,!0,!0)}else i=this.getValue("min",u,!1),n=this.getValue("max",u,!1);this.positionTrackingBar(i,n)},positionTrackingBar:function(t,e){null!=this.options.minLimit&&t<this.options.minLimit&&(e=(t=this.options.minLimit)+this.dragging.difference),null!=this.options.maxLimit&&e>this.options.maxLimit&&(t=(e=this.options.maxLimit)-this.dragging.difference),this.lowValue=t,this.highValue=e,this.applyLowValue(),this.range&&this.applyHighValue(),this.applyModel(!0),this.updateHandles("lowValue",this.valueToPosition(t)),this.updateHandles("highValue",this.valueToPosition(e))},positionTrackingHandle:function(t){var e=!1;t=this.applyMinMaxLimit(t),t=this.applyRestrictedRange(t),this.range&&(this.options.pushRange?(t=this.applyPushRange(t),e=!0):(this.options.noSwitching&&("lowValue"===this.tracking&&t>this.highValue?t=this.applyMinMaxRange(this.highValue):"highValue"===this.tracking&&t<this.lowValue&&(t=this.applyMinMaxRange(this.lowValue))),t=this.applyMinMaxRange(t),"lowValue"===this.tracking&&t>this.highValue?(this.lowValue=this.highValue,this.applyLowValue(),this.applyModel(),this.updateHandles(this.tracking,this.maxH.rzsp),this.updateAriaAttributes(),this.tracking="highValue",this.minH.removeClass("rz-active"),this.maxH.addClass("rz-active"),this.options.keyboardSupport&&this.focusElement(this.maxH),e=!0):"highValue"===this.tracking&&t<this.lowValue&&(this.highValue=this.lowValue,this.applyHighValue(),this.applyModel(),this.updateHandles(this.tracking,this.minH.rzsp),this.updateAriaAttributes(),this.tracking="lowValue",this.maxH.removeClass("rz-active"),this.minH.addClass("rz-active"),this.options.keyboardSupport&&this.focusElement(this.minH),e=!0))),this[this.tracking]!==t&&(this[this.tracking]=t,"lowValue"===this.tracking?this.applyLowValue():this.applyHighValue(),this.applyModel(),this.updateHandles(this.tracking,this.valueToPosition(t)),this.updateAriaAttributes(),e=!0),e&&this.applyModel(!0)},applyMinMaxLimit:function(t){return null!=this.options.minLimit&&t<this.options.minLimit?this.options.minLimit:null!=this.options.maxLimit&&t>this.options.maxLimit?this.options.maxLimit:t},applyMinMaxRange:function(t){var e="lowValue"===this.tracking?this.highValue:this.lowValue,i=Math.abs(t-e);return null!=this.options.minRange&&i<this.options.minRange?"lowValue"===this.tracking?this.highValue-this.options.minRange:this.lowValue+this.options.minRange:null!=this.options.maxRange&&i>this.options.maxRange?"lowValue"===this.tracking?this.highValue-this.options.maxRange:this.lowValue+this.options.maxRange:t},applyRestrictedRange:function(t){for(var e in this.options.restrictedRange)if(null!=this.options.restrictedRange[e]&&t>this.options.restrictedRange[e].from&&t<this.options.restrictedRange[e].to){var i=(this.options.restrictedRange[e].to-this.options.restrictedRange[e].from)/2;if("lowValue"===this.tracking)return t>this.options.restrictedRange[e].from+i?this.options.restrictedRange[e].to:this.options.restrictedRange[e].from;if("highValue"===this.tracking)return t<this.options.restrictedRange[e].to-i?this.options.restrictedRange[e].from:this.options.restrictedRange[e].to}return t},applyPushRange:function(t){var e="lowValue"===this.tracking?this.highValue-t:t-this.lowValue,i=null!==this.options.minRange?this.options.minRange:this.options.step,n=this.options.maxRange;return i>e?("lowValue"===this.tracking?(this.highValue=Math.min(t+i,this.maxValue),t=this.highValue-i,this.applyHighValue(),this.updateHandles("highValue",this.valueToPosition(this.highValue))):(this.lowValue=Math.max(t-i,this.minValue),t=this.lowValue+i,this.applyLowValue(),this.updateHandles("lowValue",this.valueToPosition(this.lowValue))),this.updateAriaAttributes()):null!==n&&e>n&&("lowValue"===this.tracking?(this.highValue=t+n,this.applyHighValue(),this.updateHandles("highValue",this.valueToPosition(this.highValue))):(this.lowValue=t-n,this.applyLowValue(),this.updateHandles("lowValue",this.valueToPosition(this.lowValue))),this.updateAriaAttributes()),t},applyModel:function(t){this.internalChange=!0,this.scope.$apply(),t&&this.callOnChange(),this.internalChange=!1},callOnStart:function(){if(this.options.onStart){var t=this,e="lowValue"===this.tracking?"min":"max";this.scope.$evalAsync((function(){t.options.onStart(t.options.id,t.scope.rzSliderModel,t.scope.rzSliderHigh,e)}))}},callOnChange:function(){if(this.options.onChange){var t=this,e="lowValue"===this.tracking?"min":"max";this.scope.$evalAsync((function(){t.options.onChange(t.options.id,t.scope.rzSliderModel,t.scope.rzSliderHigh,e)}))}},callOnEnd:function(){if(this.options.onEnd){var t=this,e="lowValue"===this.tracking?"min":"max";this.scope.$evalAsync((function(){t.options.onEnd(t.options.id,t.scope.rzSliderModel,t.scope.rzSliderHigh,e)}))}this.scope.$emit("slideEnded")}},a}]).directive("rzslider",["RzSlider",function(t){return{restrict:"AE",replace:!0,scope:{rzSliderModel:"=?",rzSliderHigh:"=?",rzSliderOptions:"&?",rzSliderTplUrl:"@"},templateUrl:function(t,e){return e.rzSliderTplUrl||"rzSliderTpl.html"},link:function(e,i){e.slider=new t(e,i)}}}]);return e.run(["$templateCache",function(t){t.put("rzSliderTpl.html",'<div class=rzslider><span class="rz-bar-wrapper rz-left-out-selection"><span class=rz-bar></span></span> <span class="rz-bar-wrapper rz-right-out-selection"><span class=rz-bar></span></span> <span class=rz-bar-wrapper><span class=rz-bar></span></span> <span class=rz-bar-wrapper><span class="rz-bar rz-selection" ng-style=barStyle></span></span> <span class=rz-bar-wrapper><span class="rz-bar rz-restricted" ng-style=restrictionStyle></span></span> <span class="rz-pointer rz-pointer-min" ng-style=minPointerStyle></span> <span class="rz-pointer rz-pointer-max" ng-style=maxPointerStyle></span> <span class="rz-bubble rz-limit rz-floor"></span> <span class="rz-bubble rz-limit rz-ceil"></span> <span class="rz-bubble rz-model-value"></span> <span class="rz-bubble rz-model-high"></span> <span class=rz-bubble></span><ul ng-show=showTicks class=rz-ticks><li ng-repeat="t in ticks track by $index" class=rz-tick ng-class="{\'rz-selected\': t.selected}" ng-style=t.style ng-attr-uib-tooltip="{{ t.tooltip }}" ng-attr-tooltip-placement={{t.tooltipPlacement}} ng-attr-tooltip-append-to-body="{{ t.tooltip ? true : undefined}}"><span ng-if="t.value != null" class=rz-tick-value ng-attr-uib-tooltip="{{ t.valueTooltip }}" ng-attr-tooltip-placement={{t.valueTooltipPlacement}}>{{ t.value }}</span> <span ng-if="t.legend != null" class=rz-tick-legend>{{ t.legend }}</span></li></ul></div>')}]),e.name})?n.apply(e,s):n)||(t.exports=o)}()}}]);
|