graphdb-workbench 3.0.1 → 3.0.2-TR1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{1.4557dfdb926ba6471bb3.bundle.js → 1.39c8f2b09d3018e6a9cd.bundle.js} +1 -1
- package/dist/{10.8a76ef708b5c69241c68.bundle.js → 10.4f80be12b2cd899d4fc2.bundle.js} +1 -1
- package/dist/100.2daf71ab49c93a1c9d40.bundle.js +1 -0
- package/dist/{99.a745a27e01490b0d843d.bundle.js → 101.70d205b9691d74539dd7.bundle.js} +1 -1
- package/dist/{100.c4aaa3d10f570dba12a9.bundle.js → 102.8b6782cd3c24d47c87d2.bundle.js} +1 -1
- package/dist/{101.8f0b38c2e58132599194.bundle.js → 103.ff8e7dd53d94f93552bf.bundle.js} +1 -1
- package/dist/{103.96f2287dde7e4fc25c9d.bundle.js → 104.a1b5b2e868eb117b48ac.bundle.js} +1 -1
- package/dist/{104.ddeb2cb5758d1ed52b33.bundle.js → 105.0121f779d777d869ce4e.bundle.js} +1 -1
- package/dist/{105.e8302c421c3d7b516b4c.bundle.js → 106.55cf93dab531f6120a6e.bundle.js} +1 -1
- package/dist/{106.00a983e1594a051a5fe7.bundle.js → 107.c0d5d1b4a12c8a01745e.bundle.js} +1 -1
- package/dist/{107.7b548755171f42f06352.bundle.js → 108.9ca7ca14da8593ef91ba.bundle.js} +1 -1
- package/dist/{108.160515780d319edefb5c.bundle.js → 109.1c877e801581e1f60bf8.bundle.js} +1 -1
- package/dist/11.cc21bcbc41edfd865a48.bundle.js +1 -0
- package/dist/{109.1da75239f8e2a5d63b23.bundle.js → 110.3740001dabee596bbf71.bundle.js} +1 -1
- package/dist/{110.780a31b32e116f49a75f.bundle.js → 111.f0ae6a0107628aaeef02.bundle.js} +1 -1
- package/dist/{111.7e3057275034cb5dc5a6.bundle.js → 112.ed43d212e04e37907453.bundle.js} +1 -1
- package/dist/{112.22145690dd697aa9275d.bundle.js → 113.0b94d0e087a818cf9d4c.bundle.js} +1 -1
- package/dist/{113.c135232a9177d596406c.bundle.js → 114.88b6c5ce916e956cc2e5.bundle.js} +1 -1
- package/dist/{114.b2c0df64a560a8dd5ae0.bundle.js → 115.3a159adc54ebc83243cd.bundle.js} +1 -1
- package/dist/{115.543de06ecb5553155522.bundle.js → 116.b75b69c7fe15583deb8a.bundle.js} +1 -1
- package/dist/{116.79b9b3abc0b03e8b7924.bundle.js → 117.a3706ff54783c451de62.bundle.js} +1 -1
- package/dist/{117.ae87c77380fb7660d9ec.bundle.js → 118.e93de50f0149eb2931a4.bundle.js} +1 -1
- package/dist/{118.6756956bb51b3350690d.bundle.js → 119.e5733c827c71ba3106fc.bundle.js} +1 -1
- package/dist/12.5d075599ef637022c23c.bundle.js +1 -0
- package/dist/{119.c8e77171125b6497990a.bundle.js → 120.346f38c1b8fa9bb399aa.bundle.js} +1 -1
- package/dist/{120.1484bac063921edb7a2c.bundle.js → 121.0a271d2bfea3fc050225.bundle.js} +1 -1
- package/dist/{121.6a0ffc9dfc3ea14fd0d3.bundle.js → 122.6812fc0e3f6f60eec16d.bundle.js} +1 -1
- package/dist/{122.13363b4c4f89776fa1b5.bundle.js → 123.31d75efb53b4049f1b67.bundle.js} +1 -1
- package/dist/{123.616625d0908d7e6eab3d.bundle.js → 124.2e17f7bde4612462c957.bundle.js} +1 -1
- package/dist/{124.924dce24aad641d1dd23.bundle.js → 125.f74277a2a44949ca0b4c.bundle.js} +1 -1
- package/dist/{125.d86cff2a5cc679dc20d9.bundle.js → 126.63677abd348f7f462e66.bundle.js} +1 -1
- package/dist/{126.ff5a04a468a8a8d1a99a.bundle.js → 127.41cba8bf8e30ac29ab7e.bundle.js} +1 -1
- package/dist/{127.954cf8032872deba10e6.bundle.js → 128.2ec10c750cf6d0f151f4.bundle.js} +1 -1
- package/dist/{128.639a495883f611c4691e.bundle.js → 129.7b10d7005f33d6187a4b.bundle.js} +1 -1
- package/dist/{13.c904bbb863125c4ff6cc.bundle.js → 13.c1f8c588c7fc852bbe1d.bundle.js} +1 -1
- package/dist/{129.5d11264c418527e53342.bundle.js → 130.6eaf3aa6daac5859f7d7.bundle.js} +1 -1
- package/dist/{130.82fe31a14b953086bb45.bundle.js → 131.45ae15011beefb1ec398.bundle.js} +1 -1
- package/dist/{131.e4be75b25c9eb85db5a8.bundle.js → 132.f675fe2fd349527933b3.bundle.js} +1 -1
- package/dist/{132.364bb39217e31f46480f.bundle.js → 133.1efc1419d69e84db2b4b.bundle.js} +1 -1
- package/dist/{133.df86fdb8d83ca7237793.bundle.js → 134.01ec95b828ad09fcb1a9.bundle.js} +1 -1
- package/dist/{134.33804d658ebadcbc3b55.bundle.js → 135.7d15f409bdb1e8630623.bundle.js} +1 -1
- package/dist/{135.797fc168b7a948df2ccb.bundle.js → 136.1ff57ae90902aff352e4.bundle.js} +1 -1
- package/dist/{136.5ca50393ed4761535bfe.bundle.js → 137.044a888e82e4ac13cbed.bundle.js} +1 -1
- package/dist/{137.d8b48c06ecd279c12ca7.bundle.js → 138.f910e9be040100f08326.bundle.js} +1 -1
- package/dist/{138.3bb6b7be471eb2d04c6e.bundle.js → 139.7e7adea811551510d1d4.bundle.js} +1 -1
- package/dist/{14.d0ab3c83926b616e7354.bundle.js → 14.d0c7642a1a7041f50137.bundle.js} +1 -1
- package/dist/{139.ea151aec614a76870451.bundle.js → 140.3e12b1909d34b2b23d66.bundle.js} +1 -1
- package/dist/{140.6583cf41ab8e891ebbb6.bundle.js → 141.022a52911a1fba3e9273.bundle.js} +1 -1
- package/dist/{141.af39fc3a6dc1dafdb5ab.bundle.js → 142.9b8ed6c5c8e7a9f5de47.bundle.js} +1 -1
- package/dist/{142.c2392a48e4d3a2a16866.bundle.js → 143.81cfe46fdf48ae310839.bundle.js} +1 -1
- package/dist/{143.e4511e1698aca68814e3.bundle.js → 144.fbf7737acce465cf274d.bundle.js} +1 -1
- package/dist/{144.f58114954e257cb77bde.bundle.js → 145.72459692d3c167aee55e.bundle.js} +1 -1
- package/dist/{145.d558ac05737ca5ef00a4.bundle.js → 146.e435b2bdae83a56537f6.bundle.js} +1 -1
- package/dist/{146.de12b58d856c54decc0b.bundle.js → 147.f4e3eb741619b49bcc80.bundle.js} +1 -1
- package/dist/{147.6faf4e13462207010d38.bundle.js → 148.44ea646c66b6b0e8f996.bundle.js} +1 -1
- package/dist/{148.25167c5ae125b23811c9.bundle.js → 149.0c8405d83935b512abfb.bundle.js} +1 -1
- package/dist/{15.8ab8b6f8c611ec1dfddc.bundle.js → 15.79a075c0e170b3066b07.bundle.js} +1 -1
- package/dist/{149.9629d0dfe4f62aa15bba.bundle.js → 150.fb80c0c92d602a623c36.bundle.js} +1 -1
- package/dist/{150.c8bf724fbe76d0e0696d.bundle.js → 151.0b79280f2a959473ff16.bundle.js} +1 -1
- package/dist/{151.4970e08b91e9849ae5e3.bundle.js → 152.410c52dad18a5a3961f6.bundle.js} +1 -1
- package/dist/{152.8a1ea0a8d04e0873f67b.bundle.js → 153.cb649018e1db6b8c4f1c.bundle.js} +1 -1
- package/dist/{153.64e4e15ca8abeb5268e3.bundle.js → 154.a96812700b8b52d10e57.bundle.js} +1 -1
- package/dist/160.1e607beff0e4f8e426cf.bundle.js +1 -0
- package/dist/{161.228b61b39d936f8fca31.bundle.js → 161.2a41444b94b2db7dd638.bundle.js} +1 -1
- package/dist/{163.716d49313f3e196497dd.bundle.js → 163.9c8a1cb6d8692b5347a4.bundle.js} +1 -1
- package/dist/{166.31241e54608319e510e2.bundle.js → 166.c08c74fdaa7965adecbc.bundle.js} +1 -1
- package/dist/{17.019de109eebe6b7563fe.bundle.js → 17.e163dfcc19d77667295a.bundle.js} +1 -1
- package/dist/{173.425381e5433b54da911c.bundle.js → 173.4fb35b26d3b118d10626.bundle.js} +1 -1
- package/dist/{175.b94e42f1b1b7479f46ad.bundle.js → 175.ec71d7bdff18c571a78e.bundle.js} +1 -1
- package/dist/{179.63500ae70b7715467e79.bundle.js → 179.be20755cb9848e72b319.bundle.js} +1 -1
- package/dist/{18.6722328814b9fcee2f6e.bundle.js → 18.b09e14d8a204a28fb95b.bundle.js} +1 -1
- package/dist/{180.a91ac4fc484a71bd5ed8.bundle.js → 180.a82dac6c561436705ae7.bundle.js} +1 -1
- package/dist/{19.a0af0ec7c0e4eb7ab20c.bundle.js → 19.407c7beb11ea143e1f9e.bundle.js} +1 -1
- package/dist/{2.354e410d4fb45ab44420.bundle.js → 2.842d68f9e1fac66644aa.bundle.js} +1 -1
- package/dist/{20.b2e6e5248ede44286621.bundle.js → 20.d9c0a2300fac55616a64.bundle.js} +1 -1
- package/dist/{21.6de69abd52835f511f89.bundle.js → 21.db9a15c2ce6264384788.bundle.js} +1 -1
- package/dist/{22.035be7329fd099903c2b.bundle.js → 22.1408d06830b72a459d6a.bundle.js} +1 -1
- package/dist/{23.f499db643c1d187eefe1.bundle.js → 23.e6835ca70f33d8babcca.bundle.js} +1 -1
- package/dist/231.909faa919088245e9988.bundle.js +1 -1
- package/dist/{24.057be6f617f4e3f35691.bundle.js → 24.8fbf33e98e7c306e8ea8.bundle.js} +1 -1
- package/dist/{242.c2143bfd879222a393dc.bundle.js → 242.2aceac5a4d9f377f3553.bundle.js} +1 -1
- package/dist/{243.ed8bd30b9501bcb22fd3.bundle.js → 243.35701551c53ddd41d3e2.bundle.js} +1 -1
- package/dist/{248.35714eeadd519aa9dfcf.bundle.js → 248.b1fb4b93555c3f69bc46.bundle.js} +1 -1
- package/dist/{25.25d1fdcb1cbeafd51681.bundle.js → 25.6f945a6e26e6daa27763.bundle.js} +1 -1
- package/dist/{258.af0b3d78c0f9b4c4b483.bundle.js → 258.fc7172db37e5b0ca1279.bundle.js} +1 -1
- package/dist/{26.3aa8a6a7f10039840838.bundle.js → 26.76be6828c642933221c3.bundle.js} +1 -1
- package/dist/{264.c6d038d027b8f5579b62.bundle.js → 264.8e759dd1686c37c32b07.bundle.js} +1 -1
- package/dist/{287.4f8a30c6c6c72ebafedb.bundle.js → 287.a750fc40fa90418f3d6d.bundle.js} +1 -1
- package/dist/{29.33b92413c2f0a708b821.bundle.js → 29.1f79f4caa66f63bd6611.bundle.js} +1 -1
- package/dist/{3.77b848d2eb7fdb2523b0.bundle.js → 3.33dccf88ff294b9ba7cf.bundle.js} +1 -1
- package/dist/{30.f818533689767fa3e2ca.bundle.js → 30.2125e28509307f3a225f.bundle.js} +1 -1
- package/dist/31.e0747ab3d38bd6efa832.bundle.js +2 -0
- package/dist/{312.0e853d11527c8a2fc070.bundle.js → 312.c03a255fbafa0d4335b7.bundle.js} +1 -1
- package/dist/{32.e14fc108d80a26925f88.bundle.js → 32.14b30077e63f4b1b729a.bundle.js} +1 -1
- package/dist/{322.6524ee61a5bbcdc82bad.bundle.js → 322.34c7ffacecadc1dff436.bundle.js} +1 -1
- package/dist/{33.fec387c3be8b00368957.bundle.js → 33.da597e608351b4872771.bundle.js} +1 -1
- package/dist/{332.2db32da5af5ac8856a0c.bundle.js → 332.eb8ac0b7d982535eb48b.bundle.js} +1 -1
- package/dist/{334.2970372fd546db2cd792.bundle.js → 334.85e45ef3709738a8c800.bundle.js} +1 -1
- package/dist/{335.b445bf889c4bfaa20ded.bundle.js → 335.5a6a3768096f7e02a5a3.bundle.js} +1 -1
- package/dist/{34.61223a86d6cb125fc2c8.bundle.js → 34.51476f9015bca2457953.bundle.js} +1 -1
- package/dist/{348.a113e5a47d253a04ee81.bundle.js → 348.da14c1b3111036fe2e02.bundle.js} +1 -1
- package/dist/{35.1b457bfdeea08b897d25.bundle.js → 35.dec1963ba9e2a21fdbec.bundle.js} +1 -1
- package/dist/{353.8dbc0f6a10d578ed65d8.bundle.js → 353.5ca0dd499b0e4ec5a228.bundle.js} +1 -1
- package/dist/{36.54cce0e26c592b832258.bundle.js → 36.5bdd80f32426b30c458d.bundle.js} +1 -1
- package/dist/{363.7a3d9b6e636d736c57b1.bundle.js → 363.fe7a10fbfe3ad1a31725.bundle.js} +1 -1
- package/dist/{37.be47535106d4b3dbc077.bundle.js → 37.3e74a6a07640c4d8db96.bundle.js} +1 -1
- package/dist/{381.aea7ee474ca60accc01b.bundle.js → 381.7705312c8cedfe733a17.bundle.js} +1 -1
- package/dist/{382.c69f3647cc33ace74db4.bundle.js → 382.3b6533fe63bb7b89d2a6.bundle.js} +1 -1
- package/dist/{385.559499835625e3e755d3.bundle.js → 385.93498ab442f8c50fadbc.bundle.js} +1 -1
- package/dist/{39.051d67965709d49db0ab.bundle.js → 39.8be9b0247c3518abbf8b.bundle.js} +1 -1
- package/dist/{392.96254712f6158ac44044.bundle.js → 392.fd509c86891257f9777f.bundle.js} +1 -1
- package/dist/399.0a3aec07fe2383cc35ba.bundle.js +1 -0
- package/dist/{40.9208517ef50b6f8024c6.bundle.js → 40.2747ad0262dc133c782c.bundle.js} +1 -1
- package/dist/404.163e08fb2eeea2362f8a.bundle.js +1 -0
- package/dist/410.b74d59055b7cf830abe5.bundle.js +1 -0
- package/dist/416.68f6286f80654cdbe4e4.bundle.js +1 -1
- package/dist/417.70adf0a6f0571c394764.bundle.js +1 -1
- package/dist/42.baaa159c3b1e81422600.bundle.js +1 -0
- package/dist/423.6edb13ec0cf08388c947.bundle.js +1 -1
- package/dist/424.725b821051516e73783a.bundle.js +1 -1
- package/dist/425.03fcf969da1a4e92fec3.bundle.js +1 -1
- package/dist/426.aa6924f6f1192d037009.bundle.js +1 -1
- package/dist/427.5c7b72141707b841e8a3.bundle.js +1 -1
- package/dist/428.0d471ce7c68654947c04.bundle.js +1 -1
- package/dist/{43.96e8540045f061114280.bundle.js → 43.46cf7aa71531400f5ce3.bundle.js} +1 -1
- package/dist/443.969280af4067a22d1a8b.bundle.js +1 -1
- package/dist/444.a5971579184b091ed392.bundle.js +1 -1
- package/dist/445.2b20cb9e68a11879f6c4.bundle.js +1 -1
- package/dist/446.fe3cf3d6e288c8c4444b.bundle.js +1 -1
- package/dist/447.d1d078921f6f28e2fa38.bundle.js +1 -1
- package/dist/448.d6c9bed6d99b8b23619f.bundle.js +1 -1
- package/dist/{45.8c13732f2859713c90c4.bundle.js → 45.e79cfcb4606177c83d29.bundle.js} +1 -1
- package/dist/{46.f04ca39b752caadd9714.bundle.js → 46.db4b433aebdbb6965f9d.bundle.js} +1 -1
- package/dist/468.8e259940c62a68ef3055.bundle.js +1 -1
- package/dist/{47.5773e1581c385ba39851.bundle.js → 47.89ad9da6a07545789631.bundle.js} +1 -1
- package/dist/{48.06454bbe08df5938e67a.bundle.js → 48.ba4cec793ef54b1611e5.bundle.js} +1 -1
- package/dist/480.379bf3b338e0a3224a1f.bundle.js +1 -1
- package/dist/481.0387239b174f787e70ea.bundle.js +1 -1
- package/dist/483.c81275cb05dd78ce389f.bundle.js +1 -1
- package/dist/484.25a82c267c3a705d2a65.bundle.js +1 -1
- package/dist/485.91cbfbfd37eccde375c9.bundle.js +1 -1
- package/dist/488.a69dcce23066c0dafdf7.bundle.js +1 -1
- package/dist/489.a976085b601cccf438d4.bundle.js +1 -1
- package/dist/49.ec8921fc54aaae50ca52.bundle.js +1 -0
- package/dist/490.d3e0f3e499b5a24f6808.bundle.js +1 -1
- package/dist/491.62c185868f9d99dd5713.bundle.js +1 -1
- package/dist/5.163df03f5440d982d268.bundle.js +2 -0
- package/dist/50.ee3ed147b2bc2382a0a2.bundle.js +1 -1
- package/dist/{51.676e3d8a0e328ad836ed.bundle.js → 51.014f0ee2c2a7ff9ce3ff.bundle.js} +1 -1
- package/dist/{52.cfdfa7095a554e758861.bundle.js → 52.85c3ec8030d92959e556.bundle.js} +1 -1
- package/dist/{55.fb160be660f713a3d6a1.bundle.js → 55.3262334c9d8a63b347ab.bundle.js} +1 -1
- package/dist/{56.a97521bde50d8e02ab1d.bundle.js → 56.f9d140f83b5462444e57.bundle.js} +1 -1
- package/dist/{57.ec17cacc850ae1904aeb.bundle.js → 57.fcd6814bee867f2345e7.bundle.js} +1 -1
- package/dist/{58.0c8ce6607800bf7ff0ac.bundle.js → 58.914f27e1a230e164d29b.bundle.js} +1 -1
- package/dist/{59.47183b72936629232e7f.bundle.js → 59.a7f0559fb46565813cf0.bundle.js} +1 -1
- package/dist/{6.33f8c6c7e324640238de.bundle.js → 6.0bfc114054ad3b233305.bundle.js} +1 -1
- package/dist/{60.046829a1be3f196bef1c.bundle.js → 60.6c9b4c93b093288c7649.bundle.js} +1 -1
- package/dist/{61.f625328fcc0d35aa07a4.bundle.js → 61.424616e10051d7cdbc93.bundle.js} +1 -1
- package/dist/{62.842d67b8758eed682f2c.bundle.js → 62.c335ec2480066d4422a9.bundle.js} +1 -1
- package/dist/63.e55beded50a778a97299.bundle.js +1 -0
- package/dist/{63.c3630cbfa8f6884a417d.bundle.js → 64.7a62b6f780380840f244.bundle.js} +1 -1
- package/dist/{64.91ba76d42905a3d9afbe.bundle.js → 65.8d5f1b79d228176db399.bundle.js} +1 -1
- package/dist/{65.198a4d69873309746593.bundle.js → 66.75d04ae3be915ecd5afe.bundle.js} +1 -1
- package/dist/{66.b7385a74d4f3287237ba.bundle.js → 67.dbc1e4410498f4ceae46.bundle.js} +1 -1
- package/dist/{67.3488f2543baf36d3c494.bundle.js → 68.aeae93de29be6d346977.bundle.js} +1 -1
- package/dist/{68.4e51b896e74fbd145701.bundle.js → 69.3024e70e93884b7138eb.bundle.js} +1 -1
- package/dist/{69.a2244fec1e7110f5aeec.bundle.js → 70.f982fe4a8c44d2ef72a6.bundle.js} +1 -1
- package/dist/{70.0b30be583854923aadc1.bundle.js → 71.8ffc1c2036362cf40526.bundle.js} +1 -1
- package/dist/{71.24d20933fd9614cf27af.bundle.js → 72.a47d3fdd3239098987a8.bundle.js} +1 -1
- package/dist/{72.5d2f018d17e995bc6455.bundle.js → 73.1d8cf985f584d6a29f1b.bundle.js} +1 -1
- package/dist/{73.3f407c010a17e4a109b9.bundle.js → 74.70762fed64c1503da986.bundle.js} +1 -1
- package/dist/{74.1d496e6a8dc0abfcbe04.bundle.js → 75.e464e055d7b66bf2fc93.bundle.js} +1 -1
- package/dist/76.fc1058890354a7ee6abe.bundle.js +1 -0
- package/dist/{76.9ca923a9265537ac7be4.bundle.js → 77.bf8560beda63d53b83c2.bundle.js} +1 -1
- package/dist/{77.f53fbf119a8b73148a25.bundle.js → 78.eecf35e4f25434df649e.bundle.js} +1 -1
- package/dist/{78.933cb90bda144ed95290.bundle.js → 79.074403a4200f684a0945.bundle.js} +1 -1
- package/dist/{8.3cf83e59a56858648ad9.bundle.js → 8.e3c3c3676785a030527d.bundle.js} +1 -1
- package/dist/{79.6e0224e241895965a9d3.bundle.js → 80.07a80c5fe69c039db15d.bundle.js} +1 -1
- package/dist/{80.f7d6d3108e6d18b96cd7.bundle.js → 81.234a3c0b3136c4a55730.bundle.js} +1 -1
- package/dist/{81.b79dd505cb205eb7eff0.bundle.js → 82.3e71f24921a2283967c3.bundle.js} +1 -1
- package/dist/{82.cd869e55416407b078e0.bundle.js → 83.cf2e3938d315b0470906.bundle.js} +1 -1
- package/dist/{83.b085735389d935aa6f42.bundle.js → 84.c1e18d720b266e35aec2.bundle.js} +1 -1
- package/dist/{84.7f9377fc605aff3f0d48.bundle.js → 85.7dc677e973a2dfcddfea.bundle.js} +1 -1
- package/dist/86.adb4b3504c93eb726fcd.bundle.js +1 -0
- package/dist/{85.8a74811c261c635235f7.bundle.js → 87.ddab9647e5ff9f432212.bundle.js} +1 -1
- package/dist/{86.c491436398aef8142dc3.bundle.js → 88.e04e9207f68a222a8a64.bundle.js} +1 -1
- package/dist/{87.cf9f719c3dd04bc64102.bundle.js → 89.51eac4bd9aa2668b96fb.bundle.js} +1 -1
- package/dist/{88.7d844f12b9d68b0be1d7.bundle.js → 90.ac1501d736615a2bc7f6.bundle.js} +1 -1
- package/dist/{89.2c1bcd6a70ba8769b6b9.bundle.js → 91.4c80dbc7c0af8d2d07f5.bundle.js} +1 -1
- package/dist/{90.b93a0ecac4f5bcfeed0f.bundle.js → 92.69c6a0625b9e94d1a9df.bundle.js} +1 -1
- package/dist/{91.44e1598ed46ac2197521.bundle.js → 93.4e0f1104ab14c3dfae71.bundle.js} +1 -1
- package/dist/{92.e81e734ef32fe8b56d78.bundle.js → 94.62f609daaeaf1e0b9f63.bundle.js} +1 -1
- package/dist/{93.6486890affff9e0f6ca8.bundle.js → 95.2c784e759051491850fb.bundle.js} +1 -1
- package/dist/{94.13212f8f2d50c66cb482.bundle.js → 96.22c66e3781a4afc22d1a.bundle.js} +1 -1
- package/dist/{95.6fe91e68bef2c41f2645.bundle.js → 97.856052734f379717d4cc.bundle.js} +1 -1
- package/dist/{96.4bd66eace72867bf76e1.bundle.js → 98.be86330473bf291530fa.bundle.js} +1 -1
- package/dist/{97.4cfafc4c6cedd50e973e.bundle.js → 99.6af4734887301734ebbe.bundle.js} +1 -1
- package/dist/{bundle.e7ff3a088b4fc9e2ec9e.bundle.js → bundle.6c88507cb6367ac80d16.bundle.js} +19 -19
- package/dist/css/autocomplete.css +5 -0
- package/dist/css/clustermanagement.css +10 -7
- package/dist/i18n/locale-en.json +11 -1
- package/dist/i18n/locale-fr.json +11 -1
- package/dist/index.html +3 -3
- package/dist/js/angular/autocomplete/templates/modal/add-label.html +5 -2
- package/dist/js/angular/clustermanagement/templates/cluster-nodes-configuration.html +16 -7
- package/dist/js/angular/core/directives/autocomplete/templates/autocomplete.html +1 -1
- package/dist/js/angular/core/directives/dynamic-form/templates/dynamic-form.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/shuttle-multiselect/templates/shuttle-multiselect.html +1 -1
- package/dist/js/angular/core/directives/yasgui-component/templates/yasgui-component.html +1 -1
- package/dist/js/angular/core/templates/cookie-policy/cookie-consent.html +1 -1
- package/dist/js/angular/core/templates/cookie-policy/cookie-policy.html +1 -1
- package/dist/js/angular/graphql/templates/create-graphql-endpoint.html +2 -2
- package/dist/js/angular/graphql/templates/graphql-endpoint-management.html +1 -1
- package/dist/js/angular/graphql/templates/graphql-playground.html +1 -1
- package/dist/js/angular/graphql/templates/modal/endpoint-configuration-modal.html +1 -1
- package/dist/js/angular/graphql/templates/modal/endpoint-generation-failure-result-modal.html +1 -1
- package/dist/js/angular/graphql/templates/modal/import-endpoint-definition-modal.html +1 -1
- package/dist/js/angular/security/templates/user.html +2 -2
- package/dist/js/angular/ttyg/templates/agent-list.html +1 -1
- package/dist/js/angular/ttyg/templates/agent-select-menu.html +1 -1
- package/dist/js/angular/ttyg/templates/chat-item-detail.html +1 -1
- package/dist/js/angular/ttyg/templates/chat-list.html +1 -1
- package/dist/js/angular/ttyg/templates/chat-panel.html +1 -1
- package/dist/js/angular/ttyg/templates/modal/agent-instructions-explain-modal.html +1 -1
- package/dist/js/angular/ttyg/templates/modal/agent-settings-modal.html +2 -2
- package/dist/js/angular/ttyg/templates/no-agents-view.html +1 -1
- package/dist/js/angular/ttyg/templates/ttyg.html +1 -1
- package/dist/license-checker.json +4 -4
- 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 +2 -2
- package/dist/pages/jdbc-create.html +1 -1
- package/dist/pages/monitor/backup-and-restore.html +1 -1
- package/dist/pages/monitor/queries.html +1 -1
- 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 +1 -1
- package/dist/pages/sparql-editor.html +1 -1
- package/dist/pages/sparql-template-create.html +1 -1
- package/dist/pages/ux-test1.html +2 -2
- package/dist/pages/webapi.html +2 -2
- package/dist/res/swagger5/index.html +12 -12
- package/package.json +2 -2
- package/dist/102.2b1c8399187ccefe5a4f.bundle.js +0 -1
- package/dist/11.7343b4e08a786f0a1eab.bundle.js +0 -1
- package/dist/12.3669f82ad6489ffeb12b.bundle.js +0 -1
- package/dist/154.89f16e758f1caaae814c.bundle.js +0 -1
- package/dist/160.90a42dd6a992307c602d.bundle.js +0 -1
- package/dist/31.721783158dcfdee0b882.bundle.js +0 -2
- package/dist/399.b13be7ef0c258335c762.bundle.js +0 -1
- package/dist/404.00ef41fe988cd9161359.bundle.js +0 -1
- package/dist/410.a86d6bdafde1b951e239.bundle.js +0 -1
- package/dist/42.0147219d61d3814c266c.bundle.js +0 -1
- package/dist/49.6b885bb67696745b1634.bundle.js +0 -1
- package/dist/5.045fbb4da4ea6659e905.bundle.js +0 -2
- package/dist/75.0e43af19262a978d6aab.bundle.js +0 -1
- package/dist/98.6586c3413d178a0cab8c.bundle.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
(window.webpackJsonp=window.webpackJsonp||[]).push([[50],{304:function(e,t,n){"use strict";n.r(t);var r=n(658),a=n(684),i=n(647),o=n(648);n(15);function s(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return l(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw i}}}}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function c(e,t,n,l,c,d,u,f,h,p,y,v,g){return{restrict:"AE",template:'<div id="classChart"></div>',scope:{classHierarchyData:"=",flattenedClassNames:"=",selectedClass:"=",currentSliderValue:"=",showClassInfoPanel:"=",showExternalElements:"=",hidePrefixes:"=",currentBrowserLimit:"="},link:function(u,m,x){!function(u,m){var x,w,S=d3.pack().size([780,780]),C=d3.scaleLinear().domain([0,4]).range(["hsl(19, 70%, 90%)","hsl(19, 70%, 50%)"]).interpolate(d3.interpolateHcl),E=d3.select("#classChart").insert("svg:svg","h2").attr("viewBox","0 0 800 800").attr("preserveAspectRatio","xMidYMid meet").on("dblclick.zoom",null);function T(){return E.append("svg:g").attrs({id:"main-group",transform:"translate(400,400)"})}function A(){return"true"===y.get(v.CLASS_HIERARCHY_HIDE_PREFIXES)}function R(){var e=o.a.Export.getCSSRules("css/rdf-class-hierarchy-labels.css?v=3.0.1");d3.selectAll("#main-group").append("defs"),$("defs").append('<style type="text/css"><![CDATA['+e+"]]></style>"),d3.selectAll("g").style("opacity",1);var t=o.a.Export.generateBase64ImageSource("#classChart svg");d3.select(this).attrs({href:t,download:"class-hierarchy-"+d.getActiveRepository()+".svg"})}u.hidePrefixes=A();var b,H,I=T();if(!u.classHierarchyData.classCount&&d.getActiveRepository()&&!d.isSystemRepository()){e.loader=!0,e.hierarchyError=!1;var P=y.get("classHierarchy-selectedGraph-".concat(d.getActiveRepository()));n.getClassHierarchyData(null!==P?P.contextID.uri:"").success((function(t,n,r){e.loader=!1,207===n&&f.warning(g.instant("graphexplore.update.diagram"),g.instant("graphexplore.repository.data.changed")),u.classHierarchyData=t,d3.select("#download-svg").on("mouseover",R)})).error((function(t){e.loader=!1,e.hierarchyError=getError(t),f.error(g.instant("graphexplore.error.request.failed",{name:p,error:getError(t)}))}))}var k,L,N,D,F,O,z,U={};function M(n,o,s,d){L&&L(),N&&N(),d3.selectAll("#main-group").remove(),I=T(),a.a.SingleChild.addPlaceholders(n,!0),(w=d3.hierarchy(n)).sum((function(e){return e.size})),k=s||w,S(w);var f,y=w.descendants();k.isInFocusTransitive=!0,a.a.SingleChild.removePlaceholders(y),a.a.SingleChild.centerNodes(y),a.a.SingleChild.makePositionsRelativeToZero(y),x||(x=Object(r.a)().attr("class","d3-tip").customPosition((function(e,t){return{top:"inherit",bottom:l.innerHeight-t.clientY+"px",right:l.innerWidth-t.clientX+"px"}})).html((function(e){return e.data.name})),E.call(x));var v=I.selectAll("circle").data(y).enter().append("g");o.doFade&&v.each((function(e){i.a.Transition.fadeIn(d3.select(this),550)}));var g,m=[],A=v.append("circle").attr("class",(function(e){return e.data.role})).attr("guide-selector",(function(e){return"class-"+e.data.name})).style("fill",(function(e){return e.children?C(e.depth):"#E0D0D0"})).each((function(e){if(e.circle=d3.select(this),e.data.name!==p){var t=e.data.name;m.push({name:t}),U[[t]]=e,e.circle.classed("rdf-class",!0),e.circle.on("mouseover",(function(t){o.noPrefixes||e.textHidden?x.show(e,t):x.hide(e)})),e.circle.on("mouseout",x.hide)}})).on("gdb-focus",(function(e,t){return H(t)})).on("gdb-zoom",(function(e,t){return W(t)}));function R(e){d3.selectAll(".selected").classed("selected",e.selected=!1),e.circle.classed("selected",e.selected=!0),g=e}function P(){u.showClassInfoPanel=!1}m&&(m=_.uniqBy(m,"name"),u.flattenedClassNames=m);var D=i.a.Click.delayDblClick();d3.selectAll(".parent, .topLevelParent, .child, .root").call(D),H=function(e){W(e),e.data.name===p?(P(),d3.selectAll(".selected").classed("selected",!1)):(R(e),u.selectedClass=g,u.showClassInfoPanel=!0,u.$on("sidePanelClosed",(function(t){d3.selectAll(".selected").classed("selected",e.selected=!1)})))},D.on("click",(function(e,t){t.data.id&&l.history.pushState({id:t.data.id},"classHierarchyPage"+t.data.id,"hierarchy#"+t.data.id),x.hide(),H(t)})),D.on("dblclick",(function(t,r){r!==n&&(x.hide(),R(r),e.$broadcast("goToDomainRangeGraphView",g,k),t.stopPropagation())}));var F=0;E.on("wheel",(function(e){x.hide(),e.preventDefault(),e.stopPropagation();var t=(new Date).getTime();if(t-F>100){F=t;var n="";e.deltaY<=-1?n="in":e.deltaY>=1&&(n="out");var r=e.target.__data__;if(r||(r=k),"in"===n){if(r!==k){for(;r.parent&&!r.parent.isInFocusTransitive;)r=r.parent;r.depth<k.depth&&(r=k)}if(r===k&&r.children){for(var a=r.children[0],i=1;i<r.children.length;i++)r.children[i].sortingRank>a.sortingRank&&(a=r.children[i]);a.children&&(r=a)}else r.children||(r=r.parent);W(r,!0)}else"out"===n&&(r=k.parent)&&W(r,!0);k.data.name===p&&l.history.replaceState({id:1},"classHierarchyPage1","hierarchy#1"),V()}}));var $=I.selectAll("text").data(y).enter().append("text").attr("class",(function(e){return e.children&&e.children.length?"label":"label child-label"})).each((function(e){e.textSel=d3.select(this)}));o.noPrefixes?($.each((function(e){var t=e.data.name.indexOf(":");e.data.name.indexOf("http://")>-1?e.noPrefixName=e.data.name:t>-1&&(e.noPrefixName=e.data.name.substring(t+1))})),$.style("font-size",(function(e){return i.a.Text.calcFontSize(e.noPrefixName,e.r)})).text((function(e){return i.a.Text.getTextWithElipsisIfNeeded(e.noPrefixName,e.r/3)}))):$.style("font-size",(function(e){return i.a.Text.calcFontSize(e.data.name,e.r)})).text((function(e){return i.a.Text.getTextWithElipsisIfNeeded(e.data.name,e.r/3)})),$.style("display",(function(e){return e.parent&&e.parent.data===k.data?(e.textHidden=this.textContent.indexOf("...")+3===this.textContent.length,null):(e.textHidden=!0,"none")})),o.doFade&&!o.keepPrevState&&$.each((function(e){i.a.Transition.fadeIn(d3.select(this),550)})),b=function(){function e(e){e&&A.each((function(t){+e===t.data.id&&H(t)}))}var n=t.hash();l.onpopstate=function(t){t.state&&e(t.state.id)},e(n)};var O=I.selectAll("circle, text");function z(e,t){var n=800/e[2];f=e,O.attr("transform",(function(t){return"translate("+(t.x-e[0])*n+","+(t.y-e[1])*n+")"})),A.attr("r",(function(e){return e.r*n})),t&&$.each((function(e){e.data.fullName!==k.data.topLevelParentUri&&k.data.topLevelParentUri!==p||(e.textSel.style("display","none"),k.children&&k.children.length?_.each(k.children,(function(e){e.textSel.style("display","inline")})):k.textSel.style("display","inline"),k.parent&&_.each(k.parent.children,(function(e){e.data.name!==k.data.name&&e.textSel.style("display","inline")})))})),$.style("font-size",(function(e){return o.noPrefixes?i.a.Text.calcFontSize(e.noPrefixName,e.r*n):i.a.Text.calcFontSize(e.data.name,e.r*n)})).text((function(e){return o.noPrefixes?i.a.Text.getTextWithElipsisIfNeeded(e.noPrefixName,e.r*n/3):i.a.Text.getTextWithElipsisIfNeeded(e.data.name,e.r*n/3)}))}function M(e){var t=2*e+20;return 2*e/t<.3&&(t=2*e+2),t}function B(e){!e.isInFocusTransitive&&e.parent&&e.parent.isInFocusTransitive?(e.textHidden=this.textContent.indexOf("...")+3===this.textContent.length,this.style.display=""):(e.textHidden=!0,this.style.display="none")}function W(e,t){if(c((function(){u.showExternalElements=e.data.name===p})),k!==e&&(e.data.id&&l.history.replaceState({id:e.data.id},"classHierarchyPage"+e.data.id,"hierarchy#"+e.data.id),e.children||(e=e.parent,k!==e))){if(t&&(P(),d3.selectAll(".selected").classed("selected",!1)),k.parent)for(var n=k;n;)n.isInFocusTransitive=!1,n=n.parent;for(n=e;n;)n.isInFocusTransitive=!!n.children,n=n.parent;if(2*(k=e).r/(2*k.r+20)<.3||u.currentSliderValue>u.currentBrowserLimit)z([k.x,k.y,M(k.r)]),$.each((function(e){B.call(this,e)}));else d3.transition().duration(h).tween("zoom",(function(e){var t=d3.interpolateZoom(f,[k.x,k.y,M(k.r)]);return function(e){z(t(e))}})).selectAll("text").each(B)}}z([k.x,k.y,M(k.r)],d),L=u.$on("rootFocus",(function(){l.history.pushState({id:1},"classHierarchyPage1","hierarchy#1"),H(w)})),N=u.$on("classSearch",(function(e){H(e)}))}function V(){var t=u.classHierarchyData.classCount,n=y.get(v.CLASS_HIERARCHY_CURRENT_SLIDER_VALUE);(!n||n>t)&&(n=t,y.set(v.CLASS_HIERARCHY_CURRENT_SLIDER_VALUE,n)),e.$broadcast("classCount",t,n)}window.addEventListener("resize",V),window.addEventListener("beforeunload",(function e(){window.removeEventListener("resize",V),window.removeEventListener("beforeunload",e)})),u.$watch("classHierarchyData",(function(){D&&D(),F&&F(),O&&O(),z&&z();var e=A();if(u.classHierarchyData.classCount){var t=function(e,t){var n={keepPrevState:!0,noPrefixes:A()};a=n.noPrefixes,M(r||e,n,k,!0),c((function(){y.set(v.CLASS_HIERARCHY_SWITCH_PREFIXES,t),b()}),70)},n=function(e,n,i){if(e){y.set(v.CLASS_HIERARCHY_CURRENT_SLIDER_VALUE,e),r={name:p,children:[]};for(var l=new Set,c=1;c<=e;c++)l.add(n[c].data.id),n[c].parent===n[0]&&r.children.push(n[c].data);if(function e(t){if(t.children){var n,r=[],a=s(t.children);try{for(a.s();!(n=a.n()).done;){var i=n.value;l.has(i.id)&&r.push($.extend({},i))}}catch(e){a.e(e)}finally{a.f()}t.children=r;var o,c=s(t.children);try{for(c.s();!(o=c.n()).done;){e(o.value)}}catch(e){c.e(e)}finally{c.f()}}}(r),i)a=angular.isUndefined(a)?A():a,M(r,{noPrefixes:a});else t(o)}};V();var r,a,i,o=_.cloneDeep(u.classHierarchyData),l=function(e){return e.descendants().sort((function(e,t){return e.data.sortingRank>t.data.sortingRank?-1:e.data.sortingRank<t.data.sortingRank||e.data.depth>t.data.depth?1:e.data.depth<t.data.depth?-1:0}))}(d3.hierarchy(o)),d=y.get(v.CLASS_HIERARCHY_CURRENT_SLIDER_VALUE);if(d)n(d,l);else{var f={doFade:!0,keepPrevState:!0,noPrefixes:A()};M(o,f),b()}D=u.$watch("hidePrefixes",(function(n){angular.isUndefined(n)||e?e=void 0:c((function(){!function(e){angular.isUndefined(e)||y.set(v.CLASS_HIERARCHY_HIDE_PREFIXES,e)}(n),t(o,!0)}),50)}),!0),F=u.$watch("currentSliderValue",(function(e){n(e,l,!0)}),!0),z=u.$on("onEnterKeypressSearchAction",(function(e){i&&H(i)})),O=u.$on("searchedClass",(function(e,t){(i=U[t.name])&&H(i)}))}}),!0)}(u)}}}angular.module("graphdb.framework.graphexplore.directives.class",["graphdb.framework.graphexplore.controllers.class","graphdb.framework.utils.localstorageadapter"]).constant("ZOOM_DURATION",500).constant("ROOT_OBJ_NAME","RDF Class Hierarchy").directive("rdfClassHierarchy",c),c.$inject=["$rootScope","$location","GraphDataRestService","$window","$timeout","$repositories","$licenseService","toastr","ZOOM_DURATION","ROOT_OBJ_NAME","LocalStorageAdapter","LSKeys","$translate"]},634:function(e,t,n){var r,a;r=[n(644)],void 0===(a=function(){function e(e,t){return e.each((function(){var e=t.apply(this,arguments),n=select(this);for(var r in e)n.attr(r,e[r])}))}function t(e,t){for(var n in t)e.attr(n,t[n]);return e}return"undefined"==typeof d3&&(d3=n(644)),d3.selection.prototype.attrs=function(n){return("function"==typeof n?e:t)(this,n)},d3.selection.prototype.moveToFront=function(){return this.each((function(){d3.select(this.parentNode.appendChild(this))}))},d3.selection.prototype.moveToBack=function(){return this.each((function(){var e=this.parentNode.firstChild;e&&this.parentNode.insertBefore(this,e)}))},d3}.apply(t,r))||(e.exports=a)},647:function(e,t,n){"use strict";n(634);var r=r||{};r.Text=function(){function e(e,t,n,r){n=n||10;var a=t/3;return"string"==typeof e?(a*=10/(e.substring(0,t/3).length+1.5),a+=1,e.match(/[\u0900-\u0DFF\u1100-\u11FF\u2E80-\u2EFF\u3000-\u9FFF]/)&&(a*=.6),a<n&&(a=n),Math.round(a)):(a<n&&(a=n),Math.round(a))}return{calcFontSizeRaw:e,calcFontSize:function(t,n,r,a){return e(t,n,r)+"px"},getTextWithElipsisIfNeeded:function(e,t){return"string"==typeof e&&e.length>t?e.substring(0,t-3)+"...":e}}}(),r.Transition={fadeIn:function(e,t){e.style("opacity",0).transition().duration(t).style("opacity",1)},fadeOut:function(e,t){e.style("opacity",1).transition().duration(t).style("opacity",0)}},r.Click=function(){var e=function(e,n){for(var r,a=1,i=arguments.length;++a<i;)e[r=arguments[a]]=t(e,n,n[r]);return e};function t(e,t,n){return function(){var r=n.apply(t,arguments);return r===t?e:r}}return{delayDblClick:function(){var t=d3.dispatch("click","dblclick");return e((function(e){var n,r=null;e.on("mousedown",(function(){n=d3.pointer(document.body),+new Date})),e.on("mouseup",(function(e,a){var i,o,s;(o=n,s=d3.pointer(document.body),Math.sqrt(Math.pow(o[0]-s[0],2),Math.pow(o[1]-s[1],2))>5)||(r?(window.clearTimeout(r),r=null,t.call("dblclick",e,e,a)):r=window.setTimeout((i=e,function(){t.call("click",i,i,a),r=null}),250))}))}),t,"on")}}}(),t.a=r},648:function(e,t,n){"use strict";n(634);var r=r||{};r.Export={getCSSRules:function(e){var t=$('link[href="'+e+'"]')[0].sheet.rules,n="";return _.each(t,(function(e){n+=e.cssText})),n},generateBase64ImageSource:function(e){e||(e="svg");var t=d3.selectAll(e).attr("version","1.1").attr("xmlns","http://www.w3.org/2000/svg").node().parentNode.innerHTML;return"data:image/svg+xml;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(t)))}},t.a=r},658:function(e,t,n){"use strict";t.a=function(){var e=function(){return"n"},t=function(){return[0,0]},n=function(){return" "},r=u(),a=null,i=null,o=null,s=null;function l(e){var t;a="svg"===(t=(t=e).node()).tagName.toLowerCase()?t:t.ownerSVGElement,i=a.createSVGPoint(),document.body.appendChild(r)}l.show=function(){var r=Array.prototype.slice.call(arguments);r[r.length-1]instanceof SVGElement&&(o=r.pop());var a,i=n.apply(this,r),u=t.apply(this,r),h=e.apply(this,r),p=f(),y=d.length,v=document.documentElement.scrollTop||document.body.scrollTop,g=document.documentElement.scrollLeft||document.body.scrollLeft,m=s.apply(this,r);for(p.html(i).style("opacity",1).style("pointer-events","all");y--;)p.classed(d[y],!1);var x=r.filter((function(e){return e instanceof Event}));return a=c.get(h).apply(this,x),m?Object.keys(m).forEach((function(e){p.style(e,m[e])})):p.classed(h,!0).style("top",a.top+u[0]+v+"px").style("left",a.left+u[1]+g+"px"),l},l.hide=function(){return f().style("opacity",0).style("pointer-events","none"),l},l.attr=function(e,t){if(arguments.length<2&&"string"==typeof e)return f().attr(e);var n=Array.prototype.slice.call(arguments);return d3.selection.prototype.attr.apply(f(),n),l},l.style=function(e,t){if(arguments.length<2&&"string"==typeof e)return f().style(e);var n=Array.prototype.slice.call(arguments);return d3.selection.prototype.style.apply(f(),n),l},l.direction=function(t){return arguments.length?(e=null==t?t:p(t),l):e},l.offset=function(e){return arguments.length?(t=null==e?e:p(e),l):t},l.html=function(e){return arguments.length?(n=null==e?e:p(e),l):n},l.customPosition=function(e){return arguments.length?(s=null==e?e:p(e),l):s},l.destroy=function(){return r&&(f().remove(),r=null),l};var c=new Map(Object.entries({n:function(e){var t=h(e);return{top:t.n.y-r.offsetHeight,left:t.n.x-r.offsetWidth/2}},s:function(e){var t=h(e);return{top:t.s.y,left:t.s.x-r.offsetWidth/2}},e:function(e){var t=h(e);return{top:t.e.y-r.offsetHeight/2,left:t.e.x}},w:function(e){var t=h(e);return{top:t.w.y-r.offsetHeight/2,left:t.w.x-r.offsetWidth}},nw:function(e){var t=h(e);return{top:t.nw.y-r.offsetHeight,left:t.nw.x-r.offsetWidth}},ne:function(e){var t=h(e);return{top:t.ne.y-r.offsetHeight,left:t.ne.x}},sw:function(e){var t=h(e);return{top:t.sw.y,left:t.sw.x-r.offsetWidth}},se:function(e){var t=h(e);return{top:t.se.y,left:t.e.x}}})),d=c.keys();function u(){var e=d3.select(document.createElement("div"));return e.style("position","absolute").style("top",0).style("opacity",0).style("pointer-events","none").style("box-sizing","border-box"),e.node()}function f(){return null===r&&(r=u(),document.body.appendChild(r)),d3.select(r)}function h(e){for(var t=o||e.target;void 0===t.getScreenCTM&&"undefined"===t.parentNode;)t=t.parentNode;var n={},r=t.getScreenCTM(),a=t.getBBox(),s=a.width,l=a.height,c=a.x,d=a.y;return i.x=c,i.y=d,n.nw=i.matrixTransform(r),i.x+=s,n.ne=i.matrixTransform(r),i.y+=l,n.se=i.matrixTransform(r),i.x-=s,n.sw=i.matrixTransform(r),i.y-=l/2,n.w=i.matrixTransform(r),i.x+=s,n.e=i.matrixTransform(r),i.x-=s/2,i.y-=l/2,n.n=i.matrixTransform(r),i.y+=l,n.s=i.matrixTransform(r),n}function p(e){return"function"==typeof e?e:function(){return e}}return l}},684:function(e,t,n){"use strict";var r=r||{};r.SingleChild={addPlaceholders:function e(t,n){if(t.children){for(var r=0;r<t.children.length;r++)e(t.children[r]);if(1===t.children.length){var a=1.2*t.size;n&&(a=.1*t.children[0].size),t.children.push({name:"placeholder",size:a})}}},removePlaceholders:function e(t){for(var n=t.length-1;n>=0;n--){var r=t[n];"placeholder"===r.data.name?t.splice(n,1):r.children&&e(r.children)}},centerNodes:function(e){for(var t=0;t<e.length;t++){var n=e[t];if(n.children&&1===n.children.length){var r=n.x-n.children[0].x;n.children[0].x+=r,a(n.children[0],r)}}function a(e,t){if(e.children)for(var n=0;n<e.children.length;n++)e.children[n].x+=t,a(e.children[n],t)}},makePositionsRelativeToZero:function(e){for(var t=e[0].x,n=e[0].y,r=0;r<e.length;r++){var a=e[r];a.x-=t,a.y-=n}}},t.a=r}}]);
|
|
1
|
+
(window.webpackJsonp=window.webpackJsonp||[]).push([[50],{304:function(e,t,n){"use strict";n.r(t);var r=n(658),a=n(684),i=n(647),o=n(648);n(15);function s(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return l(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw i}}}}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function c(e,t,n,l,c,d,u,f,h,p,y,v,g){return{restrict:"AE",template:'<div id="classChart"></div>',scope:{classHierarchyData:"=",flattenedClassNames:"=",selectedClass:"=",currentSliderValue:"=",showClassInfoPanel:"=",showExternalElements:"=",hidePrefixes:"=",currentBrowserLimit:"="},link:function(u,m,x){!function(u,m){var x,w,S=d3.pack().size([780,780]),C=d3.scaleLinear().domain([0,4]).range(["hsl(19, 70%, 90%)","hsl(19, 70%, 50%)"]).interpolate(d3.interpolateHcl),E=d3.select("#classChart").insert("svg:svg","h2").attr("viewBox","0 0 800 800").attr("preserveAspectRatio","xMidYMid meet").on("dblclick.zoom",null);function T(){return E.append("svg:g").attrs({id:"main-group",transform:"translate(400,400)"})}function A(){return"true"===y.get(v.CLASS_HIERARCHY_HIDE_PREFIXES)}function R(){var e=o.a.Export.getCSSRules("css/rdf-class-hierarchy-labels.css?v=3.0.2-TR1");d3.selectAll("#main-group").append("defs"),$("defs").append('<style type="text/css"><![CDATA['+e+"]]></style>"),d3.selectAll("g").style("opacity",1);var t=o.a.Export.generateBase64ImageSource("#classChart svg");d3.select(this).attrs({href:t,download:"class-hierarchy-"+d.getActiveRepository()+".svg"})}u.hidePrefixes=A();var b,H,I=T();if(!u.classHierarchyData.classCount&&d.getActiveRepository()&&!d.isSystemRepository()){e.loader=!0,e.hierarchyError=!1;var P=y.get("classHierarchy-selectedGraph-".concat(d.getActiveRepository()));n.getClassHierarchyData(null!==P?P.contextID.uri:"").success((function(t,n,r){e.loader=!1,207===n&&f.warning(g.instant("graphexplore.update.diagram"),g.instant("graphexplore.repository.data.changed")),u.classHierarchyData=t,d3.select("#download-svg").on("mouseover",R)})).error((function(t){e.loader=!1,e.hierarchyError=getError(t),f.error(g.instant("graphexplore.error.request.failed",{name:p,error:getError(t)}))}))}var k,L,N,D,F,O,z,U={};function M(n,o,s,d){L&&L(),N&&N(),d3.selectAll("#main-group").remove(),I=T(),a.a.SingleChild.addPlaceholders(n,!0),(w=d3.hierarchy(n)).sum((function(e){return e.size})),k=s||w,S(w);var f,y=w.descendants();k.isInFocusTransitive=!0,a.a.SingleChild.removePlaceholders(y),a.a.SingleChild.centerNodes(y),a.a.SingleChild.makePositionsRelativeToZero(y),x||(x=Object(r.a)().attr("class","d3-tip").customPosition((function(e,t){return{top:"inherit",bottom:l.innerHeight-t.clientY+"px",right:l.innerWidth-t.clientX+"px"}})).html((function(e){return e.data.name})),E.call(x));var v=I.selectAll("circle").data(y).enter().append("g");o.doFade&&v.each((function(e){i.a.Transition.fadeIn(d3.select(this),550)}));var g,m=[],A=v.append("circle").attr("class",(function(e){return e.data.role})).attr("guide-selector",(function(e){return"class-"+e.data.name})).style("fill",(function(e){return e.children?C(e.depth):"#E0D0D0"})).each((function(e){if(e.circle=d3.select(this),e.data.name!==p){var t=e.data.name;m.push({name:t}),U[[t]]=e,e.circle.classed("rdf-class",!0),e.circle.on("mouseover",(function(t){o.noPrefixes||e.textHidden?x.show(e,t):x.hide(e)})),e.circle.on("mouseout",x.hide)}})).on("gdb-focus",(function(e,t){return H(t)})).on("gdb-zoom",(function(e,t){return W(t)}));function R(e){d3.selectAll(".selected").classed("selected",e.selected=!1),e.circle.classed("selected",e.selected=!0),g=e}function P(){u.showClassInfoPanel=!1}m&&(m=_.uniqBy(m,"name"),u.flattenedClassNames=m);var D=i.a.Click.delayDblClick();d3.selectAll(".parent, .topLevelParent, .child, .root").call(D),H=function(e){W(e),e.data.name===p?(P(),d3.selectAll(".selected").classed("selected",!1)):(R(e),u.selectedClass=g,u.showClassInfoPanel=!0,u.$on("sidePanelClosed",(function(t){d3.selectAll(".selected").classed("selected",e.selected=!1)})))},D.on("click",(function(e,t){t.data.id&&l.history.pushState({id:t.data.id},"classHierarchyPage"+t.data.id,"hierarchy#"+t.data.id),x.hide(),H(t)})),D.on("dblclick",(function(t,r){r!==n&&(x.hide(),R(r),e.$broadcast("goToDomainRangeGraphView",g,k),t.stopPropagation())}));var F=0;E.on("wheel",(function(e){x.hide(),e.preventDefault(),e.stopPropagation();var t=(new Date).getTime();if(t-F>100){F=t;var n="";e.deltaY<=-1?n="in":e.deltaY>=1&&(n="out");var r=e.target.__data__;if(r||(r=k),"in"===n){if(r!==k){for(;r.parent&&!r.parent.isInFocusTransitive;)r=r.parent;r.depth<k.depth&&(r=k)}if(r===k&&r.children){for(var a=r.children[0],i=1;i<r.children.length;i++)r.children[i].sortingRank>a.sortingRank&&(a=r.children[i]);a.children&&(r=a)}else r.children||(r=r.parent);W(r,!0)}else"out"===n&&(r=k.parent)&&W(r,!0);k.data.name===p&&l.history.replaceState({id:1},"classHierarchyPage1","hierarchy#1"),V()}}));var $=I.selectAll("text").data(y).enter().append("text").attr("class",(function(e){return e.children&&e.children.length?"label":"label child-label"})).each((function(e){e.textSel=d3.select(this)}));o.noPrefixes?($.each((function(e){var t=e.data.name.indexOf(":");e.data.name.indexOf("http://")>-1?e.noPrefixName=e.data.name:t>-1&&(e.noPrefixName=e.data.name.substring(t+1))})),$.style("font-size",(function(e){return i.a.Text.calcFontSize(e.noPrefixName,e.r)})).text((function(e){return i.a.Text.getTextWithElipsisIfNeeded(e.noPrefixName,e.r/3)}))):$.style("font-size",(function(e){return i.a.Text.calcFontSize(e.data.name,e.r)})).text((function(e){return i.a.Text.getTextWithElipsisIfNeeded(e.data.name,e.r/3)})),$.style("display",(function(e){return e.parent&&e.parent.data===k.data?(e.textHidden=this.textContent.indexOf("...")+3===this.textContent.length,null):(e.textHidden=!0,"none")})),o.doFade&&!o.keepPrevState&&$.each((function(e){i.a.Transition.fadeIn(d3.select(this),550)})),b=function(){function e(e){e&&A.each((function(t){+e===t.data.id&&H(t)}))}var n=t.hash();l.onpopstate=function(t){t.state&&e(t.state.id)},e(n)};var O=I.selectAll("circle, text");function z(e,t){var n=800/e[2];f=e,O.attr("transform",(function(t){return"translate("+(t.x-e[0])*n+","+(t.y-e[1])*n+")"})),A.attr("r",(function(e){return e.r*n})),t&&$.each((function(e){e.data.fullName!==k.data.topLevelParentUri&&k.data.topLevelParentUri!==p||(e.textSel.style("display","none"),k.children&&k.children.length?_.each(k.children,(function(e){e.textSel.style("display","inline")})):k.textSel.style("display","inline"),k.parent&&_.each(k.parent.children,(function(e){e.data.name!==k.data.name&&e.textSel.style("display","inline")})))})),$.style("font-size",(function(e){return o.noPrefixes?i.a.Text.calcFontSize(e.noPrefixName,e.r*n):i.a.Text.calcFontSize(e.data.name,e.r*n)})).text((function(e){return o.noPrefixes?i.a.Text.getTextWithElipsisIfNeeded(e.noPrefixName,e.r*n/3):i.a.Text.getTextWithElipsisIfNeeded(e.data.name,e.r*n/3)}))}function M(e){var t=2*e+20;return 2*e/t<.3&&(t=2*e+2),t}function B(e){!e.isInFocusTransitive&&e.parent&&e.parent.isInFocusTransitive?(e.textHidden=this.textContent.indexOf("...")+3===this.textContent.length,this.style.display=""):(e.textHidden=!0,this.style.display="none")}function W(e,t){if(c((function(){u.showExternalElements=e.data.name===p})),k!==e&&(e.data.id&&l.history.replaceState({id:e.data.id},"classHierarchyPage"+e.data.id,"hierarchy#"+e.data.id),e.children||(e=e.parent,k!==e))){if(t&&(P(),d3.selectAll(".selected").classed("selected",!1)),k.parent)for(var n=k;n;)n.isInFocusTransitive=!1,n=n.parent;for(n=e;n;)n.isInFocusTransitive=!!n.children,n=n.parent;if(2*(k=e).r/(2*k.r+20)<.3||u.currentSliderValue>u.currentBrowserLimit)z([k.x,k.y,M(k.r)]),$.each((function(e){B.call(this,e)}));else d3.transition().duration(h).tween("zoom",(function(e){var t=d3.interpolateZoom(f,[k.x,k.y,M(k.r)]);return function(e){z(t(e))}})).selectAll("text").each(B)}}z([k.x,k.y,M(k.r)],d),L=u.$on("rootFocus",(function(){l.history.pushState({id:1},"classHierarchyPage1","hierarchy#1"),H(w)})),N=u.$on("classSearch",(function(e){H(e)}))}function V(){var t=u.classHierarchyData.classCount,n=y.get(v.CLASS_HIERARCHY_CURRENT_SLIDER_VALUE);(!n||n>t)&&(n=t,y.set(v.CLASS_HIERARCHY_CURRENT_SLIDER_VALUE,n)),e.$broadcast("classCount",t,n)}window.addEventListener("resize",V),window.addEventListener("beforeunload",(function e(){window.removeEventListener("resize",V),window.removeEventListener("beforeunload",e)})),u.$watch("classHierarchyData",(function(){D&&D(),F&&F(),O&&O(),z&&z();var e=A();if(u.classHierarchyData.classCount){var t=function(e,t){var n={keepPrevState:!0,noPrefixes:A()};a=n.noPrefixes,M(r||e,n,k,!0),c((function(){y.set(v.CLASS_HIERARCHY_SWITCH_PREFIXES,t),b()}),70)},n=function(e,n,i){if(e){y.set(v.CLASS_HIERARCHY_CURRENT_SLIDER_VALUE,e),r={name:p,children:[]};for(var l=new Set,c=1;c<=e;c++)l.add(n[c].data.id),n[c].parent===n[0]&&r.children.push(n[c].data);if(function e(t){if(t.children){var n,r=[],a=s(t.children);try{for(a.s();!(n=a.n()).done;){var i=n.value;l.has(i.id)&&r.push($.extend({},i))}}catch(e){a.e(e)}finally{a.f()}t.children=r;var o,c=s(t.children);try{for(c.s();!(o=c.n()).done;){e(o.value)}}catch(e){c.e(e)}finally{c.f()}}}(r),i)a=angular.isUndefined(a)?A():a,M(r,{noPrefixes:a});else t(o)}};V();var r,a,i,o=_.cloneDeep(u.classHierarchyData),l=function(e){return e.descendants().sort((function(e,t){return e.data.sortingRank>t.data.sortingRank?-1:e.data.sortingRank<t.data.sortingRank||e.data.depth>t.data.depth?1:e.data.depth<t.data.depth?-1:0}))}(d3.hierarchy(o)),d=y.get(v.CLASS_HIERARCHY_CURRENT_SLIDER_VALUE);if(d)n(d,l);else{var f={doFade:!0,keepPrevState:!0,noPrefixes:A()};M(o,f),b()}D=u.$watch("hidePrefixes",(function(n){angular.isUndefined(n)||e?e=void 0:c((function(){!function(e){angular.isUndefined(e)||y.set(v.CLASS_HIERARCHY_HIDE_PREFIXES,e)}(n),t(o,!0)}),50)}),!0),F=u.$watch("currentSliderValue",(function(e){n(e,l,!0)}),!0),z=u.$on("onEnterKeypressSearchAction",(function(e){i&&H(i)})),O=u.$on("searchedClass",(function(e,t){(i=U[t.name])&&H(i)}))}}),!0)}(u)}}}angular.module("graphdb.framework.graphexplore.directives.class",["graphdb.framework.graphexplore.controllers.class","graphdb.framework.utils.localstorageadapter"]).constant("ZOOM_DURATION",500).constant("ROOT_OBJ_NAME","RDF Class Hierarchy").directive("rdfClassHierarchy",c),c.$inject=["$rootScope","$location","GraphDataRestService","$window","$timeout","$repositories","$licenseService","toastr","ZOOM_DURATION","ROOT_OBJ_NAME","LocalStorageAdapter","LSKeys","$translate"]},634:function(e,t,n){var r,a;r=[n(644)],void 0===(a=function(){function e(e,t){return e.each((function(){var e=t.apply(this,arguments),n=select(this);for(var r in e)n.attr(r,e[r])}))}function t(e,t){for(var n in t)e.attr(n,t[n]);return e}return"undefined"==typeof d3&&(d3=n(644)),d3.selection.prototype.attrs=function(n){return("function"==typeof n?e:t)(this,n)},d3.selection.prototype.moveToFront=function(){return this.each((function(){d3.select(this.parentNode.appendChild(this))}))},d3.selection.prototype.moveToBack=function(){return this.each((function(){var e=this.parentNode.firstChild;e&&this.parentNode.insertBefore(this,e)}))},d3}.apply(t,r))||(e.exports=a)},647:function(e,t,n){"use strict";n(634);var r=r||{};r.Text=function(){function e(e,t,n,r){n=n||10;var a=t/3;return"string"==typeof e?(a*=10/(e.substring(0,t/3).length+1.5),a+=1,e.match(/[\u0900-\u0DFF\u1100-\u11FF\u2E80-\u2EFF\u3000-\u9FFF]/)&&(a*=.6),a<n&&(a=n),Math.round(a)):(a<n&&(a=n),Math.round(a))}return{calcFontSizeRaw:e,calcFontSize:function(t,n,r,a){return e(t,n,r)+"px"},getTextWithElipsisIfNeeded:function(e,t){return"string"==typeof e&&e.length>t?e.substring(0,t-3)+"...":e}}}(),r.Transition={fadeIn:function(e,t){e.style("opacity",0).transition().duration(t).style("opacity",1)},fadeOut:function(e,t){e.style("opacity",1).transition().duration(t).style("opacity",0)}},r.Click=function(){var e=function(e,n){for(var r,a=1,i=arguments.length;++a<i;)e[r=arguments[a]]=t(e,n,n[r]);return e};function t(e,t,n){return function(){var r=n.apply(t,arguments);return r===t?e:r}}return{delayDblClick:function(){var t=d3.dispatch("click","dblclick");return e((function(e){var n,r=null;e.on("mousedown",(function(){n=d3.pointer(document.body),+new Date})),e.on("mouseup",(function(e,a){var i,o,s;(o=n,s=d3.pointer(document.body),Math.sqrt(Math.pow(o[0]-s[0],2),Math.pow(o[1]-s[1],2))>5)||(r?(window.clearTimeout(r),r=null,t.call("dblclick",e,e,a)):r=window.setTimeout((i=e,function(){t.call("click",i,i,a),r=null}),250))}))}),t,"on")}}}(),t.a=r},648:function(e,t,n){"use strict";n(634);var r=r||{};r.Export={getCSSRules:function(e){var t=$('link[href="'+e+'"]')[0].sheet.rules,n="";return _.each(t,(function(e){n+=e.cssText})),n},generateBase64ImageSource:function(e){e||(e="svg");var t=d3.selectAll(e).attr("version","1.1").attr("xmlns","http://www.w3.org/2000/svg").node().parentNode.innerHTML;return"data:image/svg+xml;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(t)))}},t.a=r},658:function(e,t,n){"use strict";t.a=function(){var e=function(){return"n"},t=function(){return[0,0]},n=function(){return" "},r=u(),a=null,i=null,o=null,s=null;function l(e){var t;a="svg"===(t=(t=e).node()).tagName.toLowerCase()?t:t.ownerSVGElement,i=a.createSVGPoint(),document.body.appendChild(r)}l.show=function(){var r=Array.prototype.slice.call(arguments);r[r.length-1]instanceof SVGElement&&(o=r.pop());var a,i=n.apply(this,r),u=t.apply(this,r),h=e.apply(this,r),p=f(),y=d.length,v=document.documentElement.scrollTop||document.body.scrollTop,g=document.documentElement.scrollLeft||document.body.scrollLeft,m=s.apply(this,r);for(p.html(i).style("opacity",1).style("pointer-events","all");y--;)p.classed(d[y],!1);var x=r.filter((function(e){return e instanceof Event}));return a=c.get(h).apply(this,x),m?Object.keys(m).forEach((function(e){p.style(e,m[e])})):p.classed(h,!0).style("top",a.top+u[0]+v+"px").style("left",a.left+u[1]+g+"px"),l},l.hide=function(){return f().style("opacity",0).style("pointer-events","none"),l},l.attr=function(e,t){if(arguments.length<2&&"string"==typeof e)return f().attr(e);var n=Array.prototype.slice.call(arguments);return d3.selection.prototype.attr.apply(f(),n),l},l.style=function(e,t){if(arguments.length<2&&"string"==typeof e)return f().style(e);var n=Array.prototype.slice.call(arguments);return d3.selection.prototype.style.apply(f(),n),l},l.direction=function(t){return arguments.length?(e=null==t?t:p(t),l):e},l.offset=function(e){return arguments.length?(t=null==e?e:p(e),l):t},l.html=function(e){return arguments.length?(n=null==e?e:p(e),l):n},l.customPosition=function(e){return arguments.length?(s=null==e?e:p(e),l):s},l.destroy=function(){return r&&(f().remove(),r=null),l};var c=new Map(Object.entries({n:function(e){var t=h(e);return{top:t.n.y-r.offsetHeight,left:t.n.x-r.offsetWidth/2}},s:function(e){var t=h(e);return{top:t.s.y,left:t.s.x-r.offsetWidth/2}},e:function(e){var t=h(e);return{top:t.e.y-r.offsetHeight/2,left:t.e.x}},w:function(e){var t=h(e);return{top:t.w.y-r.offsetHeight/2,left:t.w.x-r.offsetWidth}},nw:function(e){var t=h(e);return{top:t.nw.y-r.offsetHeight,left:t.nw.x-r.offsetWidth}},ne:function(e){var t=h(e);return{top:t.ne.y-r.offsetHeight,left:t.ne.x}},sw:function(e){var t=h(e);return{top:t.sw.y,left:t.sw.x-r.offsetWidth}},se:function(e){var t=h(e);return{top:t.se.y,left:t.e.x}}})),d=c.keys();function u(){var e=d3.select(document.createElement("div"));return e.style("position","absolute").style("top",0).style("opacity",0).style("pointer-events","none").style("box-sizing","border-box"),e.node()}function f(){return null===r&&(r=u(),document.body.appendChild(r)),d3.select(r)}function h(e){for(var t=o||e.target;void 0===t.getScreenCTM&&"undefined"===t.parentNode;)t=t.parentNode;var n={},r=t.getScreenCTM(),a=t.getBBox(),s=a.width,l=a.height,c=a.x,d=a.y;return i.x=c,i.y=d,n.nw=i.matrixTransform(r),i.x+=s,n.ne=i.matrixTransform(r),i.y+=l,n.se=i.matrixTransform(r),i.x-=s,n.sw=i.matrixTransform(r),i.y-=l/2,n.w=i.matrixTransform(r),i.x+=s,n.e=i.matrixTransform(r),i.x-=s/2,i.y-=l/2,n.n=i.matrixTransform(r),i.y+=l,n.s=i.matrixTransform(r),n}function p(e){return"function"==typeof e?e:function(){return e}}return l}},684:function(e,t,n){"use strict";var r=r||{};r.SingleChild={addPlaceholders:function e(t,n){if(t.children){for(var r=0;r<t.children.length;r++)e(t.children[r]);if(1===t.children.length){var a=1.2*t.size;n&&(a=.1*t.children[0].size),t.children.push({name:"placeholder",size:a})}}},removePlaceholders:function e(t){for(var n=t.length-1;n>=0;n--){var r=t[n];"placeholder"===r.data.name?t.splice(n,1):r.children&&e(r.children)}},centerNodes:function(e){for(var t=0;t<e.length;t++){var n=e[t];if(n.children&&1===n.children.length){var r=n.x-n.children[0].x;n.children[0].x+=r,a(n.children[0],r)}}function a(e,t){if(e.children)for(var n=0;n<e.children.length;n++)e.children[n].x+=t,a(e.children[n],t)}},makePositionsRelativeToZero:function(e){for(var t=e[0].x,n=e[0].y,r=0;r<e.length;r++){var a=e[r];a.x-=t,a.y-=n}}},t.a=r}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(window.webpackJsonp=window.webpackJsonp||[]).push([[51,76,115,199,248,249],{113:function(t,n,e){"use strict";e.r(n),e.d(n,"resolveGraphqlEndpoint",(function(){return o})),e.d(n,"resolvePlaygroundUrlWithEndpoint",(function(){return s}));var i=e(114),r=e(26),o=function(t,n){return"".concat(r.REPOSITORIES_ENDPOINT,"/").concat(t,"/graphql/").concat(n)},s=function(t){return"".concat(i.endpointUrl.PLAYGROUND,"?endpointId=").concat(t)}},114:function(t,n,e){"use strict";e.r(n),e.d(n,"endpointUrl",(function(){return i}));var i={PLAYGROUND:"graphql/playground",CREATE_ENDPOINT:"graphql/endpoint/create",ENDPOINT_MANAGEMENT:"graphql/endpoints"}},119:function(t,n,e){"use strict";function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function r(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function o(t,n){for(var e=0;e<n.length;e++){var i=n[e];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,a(i.key),i)}}function s(t,n,e){return n&&o(t.prototype,n),e&&o(t,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function u(t,n,e){return(n=a(n))in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}function a(t){var n=function(t,n){if("object"!=i(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,n||"default");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(t)}(t,"string");return"symbol"==i(n)?n:n+""}e.r(n),e.d(n,"EndpointGenerationReportList",(function(){return f})),e.d(n,"EndpointGenerationReport",(function(){return c}));var f=function(){return s((function t(n){r(this,t),u(this,"_reports",void 0),this._reports=n||[]}),[{key:"getReport",value:function(t){return this._reports.find((function(n){return n.endpointId===t}))}},{key:"reports",get:function(){return this._reports},set:function(t){this._reports=t}}])}(),c=function(){return s((function t(n){r(this,t),u(this,"_endpointId",void 0),u(this,"_endpointURI",void 0),u(this,"_active",void 0),u(this,"_default",void 0),u(this,"_label",void 0),u(this,"_description",void 0),u(this,"_lastModified",void 0),u(this,"_objectsCount",void 0),u(this,"_propertiesCount",void 0),u(this,"_warnings",void 0),u(this,"_errors",void 0),u(this,"_messages",void 0),u(this,"_createdSuccessfully",void 0),this._endpointId=n.endpointId||"",this._endpointURI=n.endpointURI||"",this._active=n.active||!1,this._default=n.default||!1,this._label=n.label||"",this._description=n.description||"",this._lastModified=n.lastModified||"",this._objectsCount=n.objectsCount||0,this._propertiesCount=n.propertiesCount||0,this._warnings=n.warnings||0,this._errors=n.errors||0,this._messages=n.messages||[],this._createdSuccessfully=this._active&&0===this._errors}),[{key:"toJSON",value:function(){return{id:this._endpointId,active:this._active,default:this._default,label:this._label,description:this._description,lastModified:this._lastModified,objectsCount:this._objectsCount,propertiesCount:this._propertiesCount,warnings:this._warnings,errors:this._errors,messages:this._messages}}},{key:"endpointId",get:function(){return this._endpointId},set:function(t){this._endpointId=t}},{key:"endpointURI",get:function(){return this._endpointURI},set:function(t){this._endpointURI=t}},{key:"active",get:function(){return this._active},set:function(t){this._active=t}},{key:"default",get:function(){return this._default},set:function(t){this._default=t}},{key:"label",get:function(){return this._label},set:function(t){this._label=t}},{key:"description",get:function(){return this._description},set:function(t){this._description=t}},{key:"lastModified",get:function(){return this._lastModified},set:function(t){this._lastModified=t}},{key:"objectsCount",get:function(){return this._objectsCount},set:function(t){this._objectsCount=t}},{key:"propertiesCount",get:function(){return this._propertiesCount},set:function(t){this._propertiesCount=t}},{key:"warnings",get:function(){return this._warnings},set:function(t){this._warnings=t}},{key:"errors",get:function(){return this._errors},set:function(t){this._errors=t}},{key:"messages",get:function(){return this._messages},set:function(t){this._messages=t}},{key:"createdSuccessfully",get:function(){return this._createdSuccessfully},set:function(t){this._createdSuccessfully=t}}])}()},150:function(t,n,e){"use strict";function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function r(t){return function(t){if(Array.isArray(t))return o(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,n){if(t){if("string"==typeof t)return o(t,n);var e={}.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?o(t,n):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,i=Array(n);e<n;e++)i[e]=t[e];return i}function s(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function u(t,n){for(var e=0;e<n.length;e++){var i=n[e];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,c(i.key),i)}}function a(t,n,e){return n&&u(t.prototype,n),e&&u(t,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function f(t,n,e){return(n=c(n))in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}function c(t){var n=function(t,n){if("object"!=i(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,n||"default");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(t)}(t,"string");return"symbol"==i(n)?n:n+""}e.r(n),e.d(n,"ImportStatus",(function(){return l})),e.d(n,"ImportStatusLabelKeys",(function(){return p})),e.d(n,"ImportStatusToViewMapping",(function(){return d})),e.d(n,"EndpointDefinitionFileList",(function(){return h})),e.d(n,"EndpointDefinitionFile",(function(){return _}));var l={PENDING:"PENDING",SUCCESS:"SUCCESS",FAIL:"FAIL",SKIP:"SKIP"},p=f(f(f(f({},l.PENDING,"graphql.endpoints_management.import_definition_modal.status.pending"),l.SUCCESS,"graphql.endpoints_management.import_definition_modal.status.completed"),l.FAIL,"graphql.endpoints_management.import_definition_modal.status.failed"),l.SKIP,"graphql.endpoints_management.import_definition_modal.status.not_allowed"),d=f(f(f(f({},l.PENDING,"tag-warning"),l.SUCCESS,"tag-success"),l.FAIL,"tag-danger"),l.SKIP,"tag-info"),h=function(){return a((function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];s(this,t),f(this,"_list",void 0),f(this,"_size",void 0),this._list=n,this._size=n.length}),[{key:"processWith",value:function(t){this.list.forEach(t)}},{key:"findDefinitionFileByName",value:function(t){return this.list.find((function(n){return n.file.name===t}))}},{key:"getFileNames",value:function(){return this.list.map((function(t){return t.file.name}))}},{key:"appendFiles",value:function(t){var n;(n=this.list).push.apply(n,r(t)),this._size=this.list.length}},{key:"removeFile",value:function(t){this.list=this.list.filter((function(n){return n.file!==t.file}))}},{key:"size",get:function(){return this._size},set:function(t){this._size=t}},{key:"list",get:function(){return this._list},set:function(t){this._list=t,this._size=t.length}}])}(),_=function(){return a((function t(n,e,i,r){s(this,t),f(this,"_list",void 0),f(this,"_file",void 0),f(this,"_filename",void 0),f(this,"_status",void 0),f(this,"_viewStatus",void 0),f(this,"_statusMessage",void 0),f(this,"_endpointId",void 0),f(this,"_report",void 0),this._file=n,this._status=e,this._viewStatus=d[e],this._statusMessage=i,this._list=r}),[{key:"file",get:function(){return this._file},set:function(t){this._file=t}},{key:"filename",get:function(){return this._filename},set:function(t){this._filename=t}},{key:"status",get:function(){return this._status},set:function(t){this._status=t,this._viewStatus=d[t]}},{key:"viewStatus",get:function(){return this._viewStatus},set:function(t){this._viewStatus=t}},{key:"statusMessage",get:function(){return this._statusMessage},set:function(t){this._statusMessage=t}},{key:"endpointId",get:function(){return this._endpointId},set:function(t){this._endpointId=t}},{key:"report",get:function(){return this._report},set:function(t){this._report=t}},{key:"list",get:function(){return this._list},set:function(t){this._list=t}}])}()},174:function(t,n,e){"use strict";e.r(n),e.d(n,"endpointGenerationReportListMapper",(function(){return o})),e.d(n,"endpointGenerationReportMapper",(function(){return s})),e.d(n,"importEndpointDefinitionReportMapper",(function(){return u}));var i=e(119),r=e(113),o=function(t,n){if(!t)return new i.EndpointGenerationReportList;var e=t.map((function(t){return s(t,n)}));return new i.EndpointGenerationReportList(e)},s=function(t,n){return new i.EndpointGenerationReport({endpointId:t.id,endpointURI:Object(r.resolveGraphqlEndpoint)(n,t.id),active:t.active,default:t.default,label:t.label,description:t.description,lastModified:t.lastModified,objectsCount:t.objectsCount,propertiesCount:t.propertiesCount,warnings:t.warnings,errors:t.errors,messages:t.messages})},u=function(t,n,e){var o,s,u=t.messages?null===(o=t.messages.errors)||void 0===o?void 0:o.length:0,a=t.messages?null===(s=t.messages.warnings)||void 0===s?void 0:s.length:0;return new i.EndpointGenerationReport({endpointId:t.id,endpointURI:Object(r.resolveGraphqlEndpoint)(e,t.id),warnings:a,errors:u,messages:t.messages})}},221:function(t,n,e){"use strict";e.r(n),e.d(n,"fileToImportDefinitionsMapper",(function(){return u})),e.d(n,"fileToImportDefinitionMapper",(function(){return a})),e.d(n,"importEndpointDefinitionListMapper",(function(){return f}));var i=e(150),r=e(174);function o(t){return function(t){if(Array.isArray(t))return s(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,n){if(t){if("string"==typeof t)return s(t,n);var e={}.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?s(t,n):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,i=Array(n);e<n;e++)i[e]=t[e];return i}var u=function(t,n){var e=t.map((function(t){return a(t,n)}));return new i.EndpointDefinitionFileList(e)},a=function(t,n){return new i.EndpointDefinitionFile(t,n,i.ImportStatusLabelKeys[n])},f=function(t,n,e){if(!t||!t.length)return new i.EndpointDefinitionFileList;var s=function(t){var o=t.id,u=t.filename,a=t.status.toUpperCase(),f=e.findDefinitionFileByName(u)||new i.EndpointDefinitionFile;if(f.endpointId=o,f.filename=u,f.status=a,f.statusMessage=i.ImportStatusLabelKeys[a],f.report=Object(r.importEndpointDefinitionReportMapper)(t,o,n),t.subFiles){var c=t.subFiles.map(s);f.list=new i.EndpointDefinitionFileList(c)}return f};return t.forEach(s),new i.EndpointDefinitionFileList(o(e.list))}}}]);
|
|
1
|
+
(window.webpackJsonp=window.webpackJsonp||[]).push([[51,77,116,199,248,249],{113:function(t,n,e){"use strict";e.r(n),e.d(n,"resolveGraphqlEndpoint",(function(){return o})),e.d(n,"resolvePlaygroundUrlWithEndpoint",(function(){return s}));var i=e(114),r=e(26),o=function(t,n){return"".concat(r.REPOSITORIES_ENDPOINT,"/").concat(t,"/graphql/").concat(n)},s=function(t){return"".concat(i.endpointUrl.PLAYGROUND,"?endpointId=").concat(t)}},114:function(t,n,e){"use strict";e.r(n),e.d(n,"endpointUrl",(function(){return i}));var i={PLAYGROUND:"graphql/playground",CREATE_ENDPOINT:"graphql/endpoint/create",ENDPOINT_MANAGEMENT:"graphql/endpoints"}},119:function(t,n,e){"use strict";function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function r(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function o(t,n){for(var e=0;e<n.length;e++){var i=n[e];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,a(i.key),i)}}function s(t,n,e){return n&&o(t.prototype,n),e&&o(t,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function u(t,n,e){return(n=a(n))in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}function a(t){var n=function(t,n){if("object"!=i(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,n||"default");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(t)}(t,"string");return"symbol"==i(n)?n:n+""}e.r(n),e.d(n,"EndpointGenerationReportList",(function(){return f})),e.d(n,"EndpointGenerationReport",(function(){return c}));var f=function(){return s((function t(n){r(this,t),u(this,"_reports",void 0),this._reports=n||[]}),[{key:"getReport",value:function(t){return this._reports.find((function(n){return n.endpointId===t}))}},{key:"reports",get:function(){return this._reports},set:function(t){this._reports=t}}])}(),c=function(){return s((function t(n){r(this,t),u(this,"_endpointId",void 0),u(this,"_endpointURI",void 0),u(this,"_active",void 0),u(this,"_default",void 0),u(this,"_label",void 0),u(this,"_description",void 0),u(this,"_lastModified",void 0),u(this,"_objectsCount",void 0),u(this,"_propertiesCount",void 0),u(this,"_warnings",void 0),u(this,"_errors",void 0),u(this,"_messages",void 0),u(this,"_createdSuccessfully",void 0),this._endpointId=n.endpointId||"",this._endpointURI=n.endpointURI||"",this._active=n.active||!1,this._default=n.default||!1,this._label=n.label||"",this._description=n.description||"",this._lastModified=n.lastModified||"",this._objectsCount=n.objectsCount||0,this._propertiesCount=n.propertiesCount||0,this._warnings=n.warnings||0,this._errors=n.errors||0,this._messages=n.messages||[],this._createdSuccessfully=this._active&&0===this._errors}),[{key:"toJSON",value:function(){return{id:this._endpointId,active:this._active,default:this._default,label:this._label,description:this._description,lastModified:this._lastModified,objectsCount:this._objectsCount,propertiesCount:this._propertiesCount,warnings:this._warnings,errors:this._errors,messages:this._messages}}},{key:"endpointId",get:function(){return this._endpointId},set:function(t){this._endpointId=t}},{key:"endpointURI",get:function(){return this._endpointURI},set:function(t){this._endpointURI=t}},{key:"active",get:function(){return this._active},set:function(t){this._active=t}},{key:"default",get:function(){return this._default},set:function(t){this._default=t}},{key:"label",get:function(){return this._label},set:function(t){this._label=t}},{key:"description",get:function(){return this._description},set:function(t){this._description=t}},{key:"lastModified",get:function(){return this._lastModified},set:function(t){this._lastModified=t}},{key:"objectsCount",get:function(){return this._objectsCount},set:function(t){this._objectsCount=t}},{key:"propertiesCount",get:function(){return this._propertiesCount},set:function(t){this._propertiesCount=t}},{key:"warnings",get:function(){return this._warnings},set:function(t){this._warnings=t}},{key:"errors",get:function(){return this._errors},set:function(t){this._errors=t}},{key:"messages",get:function(){return this._messages},set:function(t){this._messages=t}},{key:"createdSuccessfully",get:function(){return this._createdSuccessfully},set:function(t){this._createdSuccessfully=t}}])}()},151:function(t,n,e){"use strict";function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function r(t){return function(t){if(Array.isArray(t))return o(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,n){if(t){if("string"==typeof t)return o(t,n);var e={}.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?o(t,n):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,i=Array(n);e<n;e++)i[e]=t[e];return i}function s(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function u(t,n){for(var e=0;e<n.length;e++){var i=n[e];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,c(i.key),i)}}function a(t,n,e){return n&&u(t.prototype,n),e&&u(t,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function f(t,n,e){return(n=c(n))in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}function c(t){var n=function(t,n){if("object"!=i(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,n||"default");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(t)}(t,"string");return"symbol"==i(n)?n:n+""}e.r(n),e.d(n,"ImportStatus",(function(){return l})),e.d(n,"ImportStatusLabelKeys",(function(){return p})),e.d(n,"ImportStatusToViewMapping",(function(){return d})),e.d(n,"EndpointDefinitionFileList",(function(){return h})),e.d(n,"EndpointDefinitionFile",(function(){return _}));var l={PENDING:"PENDING",SUCCESS:"SUCCESS",FAIL:"FAIL",SKIP:"SKIP"},p=f(f(f(f({},l.PENDING,"graphql.endpoints_management.import_definition_modal.status.pending"),l.SUCCESS,"graphql.endpoints_management.import_definition_modal.status.completed"),l.FAIL,"graphql.endpoints_management.import_definition_modal.status.failed"),l.SKIP,"graphql.endpoints_management.import_definition_modal.status.not_allowed"),d=f(f(f(f({},l.PENDING,"tag-warning"),l.SUCCESS,"tag-success"),l.FAIL,"tag-danger"),l.SKIP,"tag-info"),h=function(){return a((function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];s(this,t),f(this,"_list",void 0),f(this,"_size",void 0),this._list=n,this._size=n.length}),[{key:"processWith",value:function(t){this.list.forEach(t)}},{key:"findDefinitionFileByName",value:function(t){return this.list.find((function(n){return n.file.name===t}))}},{key:"getFileNames",value:function(){return this.list.map((function(t){return t.file.name}))}},{key:"appendFiles",value:function(t){var n;(n=this.list).push.apply(n,r(t)),this._size=this.list.length}},{key:"removeFile",value:function(t){this.list=this.list.filter((function(n){return n.file!==t.file}))}},{key:"size",get:function(){return this._size},set:function(t){this._size=t}},{key:"list",get:function(){return this._list},set:function(t){this._list=t,this._size=t.length}}])}(),_=function(){return a((function t(n,e,i,r){s(this,t),f(this,"_list",void 0),f(this,"_file",void 0),f(this,"_filename",void 0),f(this,"_status",void 0),f(this,"_viewStatus",void 0),f(this,"_statusMessage",void 0),f(this,"_endpointId",void 0),f(this,"_report",void 0),this._file=n,this._status=e,this._viewStatus=d[e],this._statusMessage=i,this._list=r}),[{key:"file",get:function(){return this._file},set:function(t){this._file=t}},{key:"filename",get:function(){return this._filename},set:function(t){this._filename=t}},{key:"status",get:function(){return this._status},set:function(t){this._status=t,this._viewStatus=d[t]}},{key:"viewStatus",get:function(){return this._viewStatus},set:function(t){this._viewStatus=t}},{key:"statusMessage",get:function(){return this._statusMessage},set:function(t){this._statusMessage=t}},{key:"endpointId",get:function(){return this._endpointId},set:function(t){this._endpointId=t}},{key:"report",get:function(){return this._report},set:function(t){this._report=t}},{key:"list",get:function(){return this._list},set:function(t){this._list=t}}])}()},174:function(t,n,e){"use strict";e.r(n),e.d(n,"endpointGenerationReportListMapper",(function(){return o})),e.d(n,"endpointGenerationReportMapper",(function(){return s})),e.d(n,"importEndpointDefinitionReportMapper",(function(){return u}));var i=e(119),r=e(113),o=function(t,n){if(!t)return new i.EndpointGenerationReportList;var e=t.map((function(t){return s(t,n)}));return new i.EndpointGenerationReportList(e)},s=function(t,n){return new i.EndpointGenerationReport({endpointId:t.id,endpointURI:Object(r.resolveGraphqlEndpoint)(n,t.id),active:t.active,default:t.default,label:t.label,description:t.description,lastModified:t.lastModified,objectsCount:t.objectsCount,propertiesCount:t.propertiesCount,warnings:t.warnings,errors:t.errors,messages:t.messages})},u=function(t,n,e){var o,s,u=t.messages?null===(o=t.messages.errors)||void 0===o?void 0:o.length:0,a=t.messages?null===(s=t.messages.warnings)||void 0===s?void 0:s.length:0;return new i.EndpointGenerationReport({endpointId:t.id,endpointURI:Object(r.resolveGraphqlEndpoint)(e,t.id),warnings:a,errors:u,messages:t.messages})}},221:function(t,n,e){"use strict";e.r(n),e.d(n,"fileToImportDefinitionsMapper",(function(){return u})),e.d(n,"fileToImportDefinitionMapper",(function(){return a})),e.d(n,"importEndpointDefinitionListMapper",(function(){return f}));var i=e(151),r=e(174);function o(t){return function(t){if(Array.isArray(t))return s(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,n){if(t){if("string"==typeof t)return s(t,n);var e={}.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?s(t,n):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,i=Array(n);e<n;e++)i[e]=t[e];return i}var u=function(t,n){var e=t.map((function(t){return a(t,n)}));return new i.EndpointDefinitionFileList(e)},a=function(t,n){return new i.EndpointDefinitionFile(t,n,i.ImportStatusLabelKeys[n])},f=function(t,n,e){if(!t||!t.length)return new i.EndpointDefinitionFileList;var s=function(t){var o=t.id,u=t.filename,a=t.status.toUpperCase(),f=e.findDefinitionFileByName(u)||new i.EndpointDefinitionFile;if(f.endpointId=o,f.filename=u,f.status=a,f.statusMessage=i.ImportStatusLabelKeys[a],f.report=Object(r.importEndpointDefinitionReportMapper)(t,o,n),t.subFiles){var c=t.subFiles.map(s);f.list=new i.EndpointDefinitionFileList(c)}return f};return t.forEach(s),new i.EndpointDefinitionFileList(o(e.list))}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(window.webpackJsonp=window.webpackJsonp||[]).push([[52,
|
|
1
|
+
(window.webpackJsonp=window.webpackJsonp||[]).push([[52,129,287,295,296,327,329,390],{156:function(e,r,n){"use strict";n.r(r),n.d(r,"EventDataType",(function(){return t}));var t={DOWNLOAD_AS:"downloadAs",NOTIFICATION_MESSAGE:"notificationMessage",QUERY:"query",COUNT_QUERY:"countQuery",COUNT_QUERY_RESPONSE:"countQueryResponse",REQUEST_ABORTED:"requestAborted",QUERY_EXECUTED:"queryExecuted",SAVE_QUERY_OPENED:"saveQueryOpened"}},168:function(e,r,n){"use strict";n.r(r),n.d(r,"RouteConstants",(function(){return t}));var t={savedQueryName:"savedQueryName",savedQueryOwner:"owner",query:"query",name:"name",owner:"owner"}},169:function(e,r,n){"use strict";function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,r){for(var n=0;n<r.length;n++){var t=r[n];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(e,i(t.key),t)}}function u(e,r,n){return r&&o(e.prototype,r),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function i(e){var r=function(e,r){if("object"!=t(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,r||"default");if("object"!=t(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(e)}(e,"string");return"symbol"==t(r)?r:r+""}function a(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}n.r(r),n.d(r,"TabQueryModel",(function(){return d}));var d=u((function e(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],u=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];a(this,e),this.queryName=r,this.query=n,this.owner=t,this.isPublic=o,this.readonly=u}))},170:function(e,r,n){"use strict";n.r(r),n.d(r,"QueryType",(function(){return t}));var t={SELECT:"SELECT",CONSTRUCT:"CONSTRUCT",ASK:"ASK",DESCRIBE:"DESCRIBE",INSERT:"INSERT",DELETE:"DELETE",LOAD:"LOAD",CLEAR:"CLEAR",CREATE:"CREATE",DROP:"DROP",COPY:"COPY",MOVE:"MOVE",ADD:"ADD"}},171:function(e,r,n){"use strict";n.r(r),n.d(r,"VIEW_SPARQL_EDITOR",(function(){return t}));var t="graphdb-workbench-sparql-editor"},199:function(e,r,n){"use strict";n.r(r),n.d(r,"buildQueryModel",(function(){return o})),n.d(r,"savedQueriesResponseMapper",(function(){return u})),n.d(r,"savedQueryResponseMapper",(function(){return i})),n.d(r,"queryPayloadFromEvent",(function(){return a}));var t=n(169),o=function(e,r,n,o){var u=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];return new t.TabQueryModel(r,e,n,o,u)},u=function(e,r){if(e&&e.data){if(e.data.map)return e.data.map((function(e){var n=r!==e.owner;return o(e.body,e.name,e.owner,e.shared,n)}));var n=r!==e.data.owner;return[o(e.data.body,e.data.name,e.data.owner,e.data.shared,n)]}return[]},i=function(e,r){var n=u(e,r);return n.length?n[0]:null},a=function(e){return{name:e.detail.queryName,body:e.detail.query,shared:e.detail.isPublic}}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(window.webpackJsonp=window.webpackJsonp||[]).push([[55,
|
|
1
|
+
(window.webpackJsonp=window.webpackJsonp||[]).push([[55,97,297,318,319,320],{104:function(e,t,i){"use strict";i.r(t),i.d(t,"RenderingMode",(function(){return n}));var n={YASGUI:"mode-yasgui",YASQE:"mode-yasqe",YASR:"mode-yasr"}},106:function(e,t,i){"use strict";i.r(t),i.d(t,"SimilarityIndexType",(function(){return n}));var n={TEXT:"text",TEXT_LITERAL:"textLiteral",PREDICATION:"predication",isTextType:function(e){return n.TEXT===e},isTextLiteralType:function(e){return n.TEXT_LITERAL===e},isPredicationType:function(e){return n.PREDICATION===e}}},107:function(e,t,i){"use strict";i.r(t),i.d(t,"SimilarityIndexStatus",(function(){return n}));var n={CREATING:"CREATING",BUILDING:"BUILDING",BUILT:"BUILT",REBUILDING:"REBUILDING",OUTDATED:"OUTDATED",INTERRUPTED:"INTERRUPTED",OBSOLETE:"OBSOLETE",FAILED:"FAILED",isCreatingStatus:function(e){return n.CREATING===e},isBuildingStatus:function(e){return n.BUILDING===e},isBuiltStatus:function(e){return n.BUILT===e},isRebuildingStatus:function(e){return n.REBUILDING===e},isOutdatedStatus:function(e){return n.OUTDATED===e},isInterruptedStatus:function(e){return n.INTERRUPTED===e},isObsoleteStatus:function(e){return n.OBSOLETE===e},isFailedStatus:function(e){return n.FAILED===e}}},110:function(e,t,i){"use strict";i.r(t),i.d(t,"SimilarityIndex",(function(){return y}));var n=i(106),r=i(107);function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,s(n.key),n)}}function s(e){var t=function(e,t){if("object"!=u(e)||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=u(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==u(t)?t:t+""}var y=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.analyzer="",this.infer=!0,this.options="",this.sameAs=!0,this.searchQuery="",this.selectQuery="",this.stopList=void 0,this.name="",this.type=n.SimilarityIndexType.TEXT,this.status=void 0,this.analogicalQuery=void 0,this.inputIndex=void 0,this.isLiteralIndex=""},(t=[{key:"isTextType",value:function(){return n.SimilarityIndexType.isTextType(this.type)}},{key:"isTextLiteralType",value:function(){return n.SimilarityIndexType.isTextLiteralType(this.type)}},{key:"isPredicationType",value:function(){return n.SimilarityIndexType.isPredicationType(this.type)}},{key:"isCreatingStatus",value:function(){return r.SimilarityIndexStatus.isCreatingStatus(this.status)}},{key:"isBuildingStatus",value:function(){return r.SimilarityIndexStatus.isBuildingStatus(this.status)}},{key:"isBuiltStatus",value:function(){return r.SimilarityIndexStatus.isBuiltStatus(this.status)}},{key:"isRebuildingStatus",value:function(){return r.SimilarityIndexStatus.isRebuildingStatus(this.status)}},{key:"isOutdatedStatus",value:function(){return r.SimilarityIndexStatus.isOutdatedStatus(this.status)}},{key:"isInterruptedStatus",value:function(){return r.SimilarityIndexStatus.isInterruptedStatus(this.status)}},{key:"isObsoleteStatus",value:function(){return r.SimilarityIndexStatus.isObsoleteStatus(this.status)}},{key:"isFailedStatus",value:function(){return r.SimilarityIndexStatus.isFailedStatus(this.status)}}])&&a(e.prototype,t),i&&a(e,i),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,i}()},189:function(e,t,i){"use strict";i.r(t),i.d(t,"SimilarityQueryType",(function(){return n}));var n={DATA:"DATA",SEARCH:"SEARCH",ANALOGICAL:"ANALOGICAL"}},355:function(e,t,i){"use strict";i.r(t),i.d(t,"SimilarityIndexInfo",(function(){return o}));var n=i(110),r=i(189),u=i(104);function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,y(n.key),n)}}function y(e){var t=function(e,t){if("object"!=a(e)||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==a(t)?t:t+""}var l=new RegExp("^[a-zA-Z0-9-_]+$"),o=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.similarityIndex=new n.SimilarityIndex,this.isNameExist=!1,this.invalidSelectQueryType=!1,this.invalidSelectQuery=!1,this.invalidSearchQueryType=!1,this.invalidSearchQuery=!1,this.invalidAnalogicalQueryType=!1,this.invalidAnalogicalQuery=!1,this.selectedQueryType=r.SimilarityQueryType.DATA,this.selectedYasguiRenderMode=u.RenderingMode.YASQE},(t=[{key:"setQuery",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,i=t||this.selectedQueryType;r.SimilarityQueryType.DATA!==i?r.SimilarityQueryType.SEARCH!==i?r.SimilarityQueryType.ANALOGICAL===i&&(this.similarityIndex.analogicalQuery=e):this.similarityIndex.searchQuery=e:this.similarityIndex.selectQuery=e}},{key:"getQuery",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,t=e||this.selectedQueryType;switch(t){case r.SimilarityQueryType.DATA:return this.similarityIndex.selectQuery;case r.SimilarityQueryType.SEARCH:return this.similarityIndex.searchQuery;case r.SimilarityQueryType.ANALOGICAL:return this.similarityIndex.analogicalQuery}}},{key:"markInvalidQuery",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=e||this.selectedQueryType;r.SimilarityQueryType.DATA!==i?r.SimilarityQueryType.SEARCH!==i?r.SimilarityQueryType.ANALOGICAL===i&&(this.invalidAnalogicalQuery=t):this.invalidSearchQuery=t:this.invalidSelectQuery=t}},{key:"markInvalidQueryType",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=e||this.selectedQueryType;r.SimilarityQueryType.DATA!==i?r.SimilarityQueryType.SEARCH!==i?r.SimilarityQueryType.ANALOGICAL===i&&(this.invalidAnalogicalQueryType=t):this.invalidSearchQueryType=t:this.invalidSelectQueryType=t}},{key:"setSelectedQueryType",value:function(e){this.selectedQueryType=e}},{key:"getSelectedQueryType",value:function(){return this.selectedQueryType}},{key:"setSelectedYasguiRenderMode",value:function(e){this.selectedYasguiRenderMode=e}},{key:"getSelectedYasguiRenderMode",value:function(){return this.selectedYasguiRenderMode}},{key:"isDataQueryTypeSelected",value:function(){return r.SimilarityQueryType.DATA===this.selectedQueryType}},{key:"isSearchQueryTypeSelected",value:function(){return r.SimilarityQueryType.SEARCH===this.selectedQueryType}},{key:"isAnalogicalQueryTypeSelected",value:function(){return r.SimilarityQueryType.ANALOGICAL===this.selectedQueryType}},{key:"isTextType",value:function(){return this.similarityIndex.isTextType()}},{key:"isPredicationType",value:function(){return this.similarityIndex.isPredicationType()}},{key:"isTextLiteralType",value:function(){return this.similarityIndex.isTextLiteralType()}},{key:"hasName",value:function(){return!!this.similarityIndex.name}},{key:"isNameValid",value:function(){return l.test(this.similarityIndex.name)}},{key:"hasSelectQuery",value:function(){return!!this.similarityIndex.selectQuery}},{key:"hasSearchQuery",value:function(){return!!this.similarityIndex.searchQuery}},{key:"hasAnalogicalQuery",value:function(){return!!this.similarityIndex.analogicalQuery}},{key:"isYasqeRenderMode",value:function(){return u.RenderingMode.YASQE===this.getSelectedYasguiRenderMode()}},{key:"isYasrRenderMode",value:function(){return u.RenderingMode.YASR===this.getSelectedYasguiRenderMode()}},{key:"getName",value:function(){return this.similarityIndex.name}},{key:"setName",value:function(e){this.similarityIndex.name=e}},{key:"setInputIndex",value:function(e){this.similarityIndex.inputIndex=e}},{key:"getInputIndex",value:function(){return this.similarityIndex.inputIndex}},{key:"setLiteralIndex",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.similarityIndex.isLiteralIndex=e}},{key:"getSimilarityIndex",value:function(){return this.similarityIndex}},{key:"setStopList",value:function(e){this.similarityIndex.stopList=e}},{key:"getStopList",value:function(){return this.similarityIndex.stopList}},{key:"setAnalyzer",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"org.apache.lucene.analysis.en.EnglishAnalyzer";this.similarityIndex.analyzer=e}},{key:"getAnalyzer",value:function(){return this.similarityIndex.analyzer}},{key:"setType",value:function(e){this.similarityIndex.type=e}},{key:"getType",value:function(){return this.similarityIndex.type}},{key:"setOptions",value:function(e){this.similarityIndex.options=e}},{key:"getOptions",value:function(){return this.similarityIndex.options}},{key:"getInference",value:function(){return this.similarityIndex.infer}},{key:"getSameAs",value:function(){return this.similarityIndex.sameAs}}])&&s(e.prototype,t),i&&s(e,i),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,i}()}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(window.webpackJsonp=window.webpackJsonp||[]).push([[56,127,321,322,363],{123:function(e,t){angular.module("graphdb.framework.rest.similarity.service",[]).factory("SimilarityRestService",i),i.$inject=["$http","$repositories"];function i(e){return{getIndexes:function(t,i){if(t)return e.get("rest/similarity",{headers:{"X-GraphDB-Repository":t,"X-GraphDB-Repository-Location":i}});return e.get("rest/similarity")},getSearchQueries:function(){return e.get("".concat("rest/similarity","/config"))},rebuildIndex:function(e){return t("PUT",e.name,e.options,e.selectQuery,e.searchQuery,e.analogicalQuery,e.stopList,e.infer,e.sameAs,e.type)},deleteIndex:function(t){return e.delete("".concat("rest/similarity","?name=").concat(t.name))},createIndex:t,getSamples:function(){return e.get("".concat("rest/similarity","/samples"))},getQuery:function(t){return e.get("rest/similarity/query",{params:{name:t.indexName,options:t.indexOptions,stopList:t.indexStopList,selectQuery:t.query,infer:t.queryInference,sameAs:t.querySameAs,type:t.viewType,analyzer:t.indexAnalyzer}})},saveSearchQuery:function(t){return e({method:"put",url:"rest/similarity/search-query",data:t})}};function t(t,i,r,a,n,c,s,o,l,u,y){return e({method:t,url:"".concat("rest/similarity"),noCancelOnRouteChange:!0,data:{name:i,options:r,selectQuery:a,stopList:s,infer:o,sameAs:l,type:u,analyzer:y,searchQuery:n,analogicalQuery:c}})}}},152:function(e,t,i){"use strict";i.r(t),i.d(t,"SimilaritySearchType",(function(){return r}));var r={SEARCH_TERM:"searchTerm",SEARCH_ANALOGICAL:"searchAnalogical",SEARCH_ENTITY:"searchEntity",SEARCH_ENTITY_PREDICATE:"searchEntityPredicate",SEARCH_DOCUMENT:"searchDocumentID",isSearchTermType:function(e){return r.SEARCH_TERM===e},isSearchAnalogicalType:function(e){return r.SEARCH_ANALOGICAL===e},isSearchEntityType:function(e){return r.SEARCH_ENTITY===e},isSearchEntityPredicateType:function(e){return r.SEARCH_ENTITY_PREDICATE===e},isSearchDocumentType:function(e){return r.SEARCH_DOCUMENT===e}}},234:function(e,t,i){"use strict";i.r(t),i.d(t,"SimilarityResultType",(function(){return r}));var r={TERM_RESULT:"termResult",DOCUMENT_RESULT:"documentResult",ENTITY_RESULT:"entityResult",isResultDocumentType:function(e){return r.DOCUMENT_RESULT===e},isResultTermType:function(e){return r.TERM_RESULT===e}}},235:function(e,t,i){"use strict";i.r(t),i.d(t,"SimilaritySearch",(function(){return s}));var r=i(152);function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function n(e,t){for(var i=0;i<t.length;i++){var r=t[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,c(r.key),r)}}function c(e){var t=function(e,t){if("object"!=a(e)||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var r=i.call(e,t||"default");if("object"!=a(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==a(t)?t:t+""}var s=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.type=r.SimilaritySearchType.SEARCH_TERM,this.predicate="",this.termOrSubject=""},(t=[{key:"isSearchAnalogicalType",value:function(){return r.SimilaritySearchType.isSearchAnalogicalType(this.type)}},{key:"isSearchTermType",value:function(){return r.SimilaritySearchType.isSearchTermType(this.type)}},{key:"isSearchEntityType",value:function(){return r.SimilaritySearchType.isSearchEntityType(this.type)}},{key:"isSearchEntityPredicateType",value:function(){return r.SimilaritySearchType.isSearchEntityPredicateType(this.type)}},{key:"isSearchDocumentType",value:function(){return r.SimilaritySearchType.isSearchDocumentType(this.type)}}])&&n(e.prototype,t),i&&n(e,i),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,i}()},369:function(e,t,i){"use strict";i.r(t);i(29),i(60);var r=i(1),a=i(152),n=i(234),c=i(107),s=i(106),o=i(117),l=i(235),u=i(104),y=i(11);function p(e,t,i,p,m,d,S,h,f,T,g,R,v,x,b,I){var E="http://www.ontotext.com/graphdb/similarity/",A="http://www.ontotext.com/graphdb/similarity/psi/",w=A+"any";e.pluginName="similarity",e.pluginIsActive=!0,e.isLoading=!1,e.selectedSimilarityIndex=void 0,e.similarityIndexStatus=c.SimilarityIndexStatus,e.similarityIndexType=s.SimilarityIndexType,e.similaritySearchType=a.SimilaritySearchType,e.searchType=a.SimilaritySearchType.SEARCH_TERM,e.similarityResultType=n.SimilarityResultType,e.resultType=n.SimilarityResultType.TERM_RESULT,e.info=g,e.isGraphDBRepository=void 0,e.canEditRepo=e.canWriteActiveRepo(),e.loadSimilarityIndexesTimer=void 0,e.loadSimilarityIndexes=function(){e.isGraphDBRepository&&e.pluginIsActive&&f.getIndexes().success((function(t){return e.similarityIndexes=Object(o.mapIndexesResponseToSimilarityIndex)(t)})).error((function(e){return i.error(getError(e),v.instant("similarity.could.not.get.indexes.error"))}))},e.reloadSimilarityIndexes=function(){e.loadSimilarityIndexes(),e.loadSimilarityIndexesTimer||(e.loadSimilarityIndexesTimer=t((function(){e.$broadcast("checkIsActive"),"false"!==$("#indexes-table").attr("aria-expanded")&&e.loadSimilarityIndexes()}),5e3))},e.goToSimilarityIndex=function(t){(t.isBuiltStatus()||t.isOutdatedStatus()||t.isRebuildingStatus())&&(e.empty=!0,e.selectedSimilarityIndex!==t&&(e.lastSearch=void 0,e.selectedSimilarityIndex=t),t.isTextType()?e.searchType=a.SimilaritySearchType.SEARCH_TERM:t.isPredicationType()&&(e.searchType=a.SimilaritySearchType.SEARCH_ENTITY),(t.isTextType()||t.isPredicationType())&&$("#indexes-table").collapse("hide"))},e.performSearch=function(t,r,a,n,c){e.isLoading=!0,M(a,r);var s=q(t,r,a,n,c);x.getQueryResult(p.getActiveRepository(),s,"application/x-sparqlstar-results+json, application/sparql-results+json;q=0.9, */*;q=0.8").then((function(e){return Y(e)})).catch((function(e){return i.error(getError(e.data),v.instant("similarity.get.resource.error"))})).finally((function(){return e.isLoading=!1}))},e.viewSearchQuery=function(){var t,i,r=[];i=null==(r=(t=e.lastSearch.isSearchAnalogicalType()?e.selectedSimilarityIndex.analogicalQuery?e.selectedSimilarityIndex.analogicalQuery:e.searchQueries.analogical:e.selectedSimilarityIndex.searchQuery?e.selectedSimilarityIndex.searchQuery:e.searchQueries[e.selectedSimilarityIndex.type]).match(/[a-zA-Z0-9-]+:<http:\/\/www.ontotext.com\/graphdb\/similarity\/instance\/>/))?"similarity-index":r[0].substring(0,r[0].indexOf(":"));var n=t.replace("?index",i+":"+e.selectedSimilarityIndex.name).replace("?query",e.lastSearch.termOrSubject).replace("?searchType",(e.selectedSimilarityIndex.isTextType()?":":"psi:")+(e.lastSearch.isSearchEntityPredicateType()?a.SimilaritySearchType.SEARCH_ENTITY:e.lastSearch.type)).replace("?resultType",e.selectedSimilarityIndex.isTextType()?":"+e.resultType:"psi:entityResult").replace("?parameters",O(e.searchParameters?e.searchParameters:"")).replace("?psiPredicate",e.lastSearch.predicate?L(e.lastSearch.predicate):L(w)).replace("?givenSubject",L(e.analogicalSubject)).replace("?givenObject",L(e.analogicalObject)).replace("?searchSubject",L(e.searchSubject));h.open({templateUrl:"pages/viewQuery.html",controller:"ViewQueryCtrl",resolve:{query:function(){return n}}})},e.deleteSimilarityIndex=function(t){S.openSimpleModal({title:v.instant("common.confirm"),message:v.instant("similarity.delete.index.warning",{name:t.name}),warning:!0}).result.then((function(){f.deleteIndex(t).then((function(){return e.loadSimilarityIndexes()})).catch((function(e){return i.error(getError(e))}))}))},e.viewCreateQuery=function(e){f.getQuery({indexName:e.name,indexOptions:e.options,query:e.selectQuery,indexStopList:e.stopList,queryInference:e.infer,querySameAs:e.sameAs,viewType:e.type,indexAnalyzer:e.analyzer}).success((function(e){h.open({templateUrl:"pages/viewQuery.html",controller:"ViewQueryCtrl",resolve:{query:function(){return e}}})}))},e.rebuildIndex=function(t){t.searchQuery||(t.searchQuery=t.type?e.searchQueries[t.type]:e.searchQueries.text),S.openSimpleModal({title:v.instant("common.confirm"),message:Object(r.decodeHTML)(v.instant("similarity.rebuild.index.warning",{name:t.name})),warning:!0}).result.then((function(){t.status=c.SimilarityIndexStatus.REBUILDING,f.rebuildIndex(t).catch((function(e){return i.error(getError(e))}))}))},e.setPluginIsActive=function(t){e.pluginIsActive=t},e.encodeURIComponent=function(e){return encodeURIComponent(e)},e.copyToClipboardResult=function(e){S.openCopyToClipboardModal(e)},e.trimIRI=function(e){return _.trim(e,"<>")},e.updateSearchType=function(t){e.searchType=t},e.updateResultType=function(t){e.resultType=t},e.editSimilarityIndex=function(e){Q(e)},e.cloneSimilataryIndex=function(e){Q(e,!0)},e.setPsiSubject=function(t){e.psiSubject=t},e.setAnalogicalSubject=function(t){e.analogicalSubject=t},e.setAnalogicalObject=function(t){e.analogicalObject=t};var Q=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i={selectQuery:e.selectQuery,options:e.options,name:e.name,editSearchQuery:!t,infer:e.infer,sameAs:e.sameAs,stopList:e.stopList,type:e.type,analyzer:e.analyzer,searchQuery:e.searchQuery?e.searchQuery:"",analogicalQuery:e.analogicalQuery?e.analogicalQuery:""};d.path("similarity/index/create").search(i)},C=function(){var t=e.getActiveRepository();t&&e.activeRepository!==t&&(e.canEditRepo=e.canWriteActiveRepo(),e.activeRepository=t,e.isGraphDBRepository=P(),e.isGraphDBRepository&&(m.isLicenseValid()&&e.reloadSimilarityIndexes(),j()))},j=function(){f.getSearchQueries().success((function(t){return e.searchQueries=t})).error((function(e){return i.error(getError(e),v.instant("similarity.could.not.get.search.queries.error"))}))},O=function(e){return'"'+e+'"'},L=function(e){return void 0===e||e.startsWith("<<")&&e.endsWith(">>")?e:"<"+e+">"},P=function(){return e.getActiveRepository()&&!e.isActiveRepoOntopType()&&!e.isActiveRepoFedXType()},N=[];N.push(e.$on("repositoryIsSet",C));e.$on("$destroy",(function(){k(),e.loadSimilarityIndexesTimer&&t.cancel(e.loadSimilarityIndexesTimer)}));var k=function(){N.forEach((function(e){return e()}))};N.push(b.onAutocompleteEnabledUpdated((function(t){e.isAutocompleteEnabled=t}))),N.push(b.onSelectedRepositoryIdUpdated((function(t){t?I.getNamespaces(t).then((function(t){e.repositoryNamespaces=t})).catch((function(e){var t=getError(e);i.error(t,v.instant("error.getting.namespaces.for.repo"))})):e.repositoryNamespaces=new y.NamespacesListModel})));N.push(e.$watch("searchType",(function(){e.empty=!0})));var D=e.$watch(e.getActiveRepositoryObject,(function(e){e&&(C(),D())})),q=function(t,i,r,c,s){var o={query:U(e.lastSearch.type),$index:L("http://www.ontotext.com/graphdb/similarity/instance/"+t.name),$query:e.lastSearch.termOrSubject,$searchType:L((e.selectedSimilarityIndex.isTextType()?E:A)+(a.SimilaritySearchType.isSearchEntityPredicateType(r)?a.SimilaritySearchType.SEARCH_ENTITY:r)),$resultType:L(e.selectedSimilarityIndex.isTextType()?E+c:A+n.SimilarityResultType.ENTITY_RESULT),$parameters:O(s)};return a.SimilaritySearchType.isSearchEntityPredicateType(r)&&(o.$psiPredicate=e.lastSearch.predicate?L(e.lastSearch.predicate):L(w)),a.SimilaritySearchType.isSearchAnalogicalType(r)&&(e.searchSubject=i,o.$givenSubject=L(e.analogicalSubject),o.$givenObject=L(e.analogicalObject),o.$searchSubject=L(i)),o},M=function(t,i){e.lastSearch=new l.SimilaritySearch,e.lastSearch.type=t,a.SimilaritySearchType.isSearchEntityPredicateType(t)&&(e.lastSearch.predicate=i),e.lastSearch.termOrSubject=H(e.lastSearch.type,i,e.psiSubject)},U=function(t){return a.SimilaritySearchType.isSearchAnalogicalType(t)?e.selectedSimilarityIndex.analogicalQuery?e.selectedSimilarityIndex.analogicalQuery:e.searchQueries.analogical:e.selectedSimilarityIndex.searchQuery?e.selectedSimilarityIndex.searchQuery:e.searchQueries[e.selectedSimilarityIndex.type]},H=function(e,t,i){var r=t;return a.SimilaritySearchType.isSearchEntityPredicateType(e)&&(r=i),r=a.SimilaritySearchType.isSearchTermType(e)?O(r):L(r)},Y=function(t){e.yasguiConfig={showEditorTabs:!1,showToolbar:!1,showResultTabs:!1,showQueryButton:!1,downloadAsOn:!1,showResultInfo:!1,componentId:"similarity-list-component",maxPersistentResponseSize:0,render:u.RenderingMode.YASR,sparqlResponse:t.data}}}angular.module("graphdb.framework.similarity.controllers.list",["graphdb.core.services.workbench-context","graphdb.framework.core.services.rdf4j.repositories"]).controller("SimilarityCtrl",p),p.$inject=["$scope","$interval","toastr","$repositories","$licenseService","$location","ModalService","$uibModal","SimilarityRestService","AutocompleteRestService","productInfo","RDF4JRepositoriesRestService","$translate","SparqlRestService","WorkbenchContextService","RDF4JRepositoriesService"]},474:function(e,t,i){"use strict";i.r(t);i(10),i(52),i(58),i(123),i(369),i(381),i(167);angular.module("graphdb.framework.similarity",["graphdb.framework.core.controllers","graphdb.framework.core.directives","graphdb.framework.rest.similarity.service","graphdb.framework.similarity.controllers.create","graphdb.framework.similarity.controllers.list","graphdb.framework.core.directives.yasgui-component"])}}]);
|
|
1
|
+
(window.webpackJsonp=window.webpackJsonp||[]).push([[56,128,321,322,363],{124:function(e,t){angular.module("graphdb.framework.rest.similarity.service",[]).factory("SimilarityRestService",i),i.$inject=["$http","$repositories"];function i(e){return{getIndexes:function(t,i){if(t)return e.get("rest/similarity",{headers:{"X-GraphDB-Repository":t,"X-GraphDB-Repository-Location":i}});return e.get("rest/similarity")},getSearchQueries:function(){return e.get("".concat("rest/similarity","/config"))},rebuildIndex:function(e){return t("PUT",e.name,e.options,e.selectQuery,e.searchQuery,e.analogicalQuery,e.stopList,e.infer,e.sameAs,e.type)},deleteIndex:function(t){return e.delete("".concat("rest/similarity","?name=").concat(t.name))},createIndex:t,getSamples:function(){return e.get("".concat("rest/similarity","/samples"))},getQuery:function(t){return e.get("rest/similarity/query",{params:{name:t.indexName,options:t.indexOptions,stopList:t.indexStopList,selectQuery:t.query,infer:t.queryInference,sameAs:t.querySameAs,type:t.viewType,analyzer:t.indexAnalyzer}})},saveSearchQuery:function(t){return e({method:"put",url:"rest/similarity/search-query",data:t})}};function t(t,i,r,a,n,c,s,o,l,u,y){return e({method:t,url:"".concat("rest/similarity"),noCancelOnRouteChange:!0,data:{name:i,options:r,selectQuery:a,stopList:s,infer:o,sameAs:l,type:u,analyzer:y,searchQuery:n,analogicalQuery:c}})}}},153:function(e,t,i){"use strict";i.r(t),i.d(t,"SimilaritySearchType",(function(){return r}));var r={SEARCH_TERM:"searchTerm",SEARCH_ANALOGICAL:"searchAnalogical",SEARCH_ENTITY:"searchEntity",SEARCH_ENTITY_PREDICATE:"searchEntityPredicate",SEARCH_DOCUMENT:"searchDocumentID",isSearchTermType:function(e){return r.SEARCH_TERM===e},isSearchAnalogicalType:function(e){return r.SEARCH_ANALOGICAL===e},isSearchEntityType:function(e){return r.SEARCH_ENTITY===e},isSearchEntityPredicateType:function(e){return r.SEARCH_ENTITY_PREDICATE===e},isSearchDocumentType:function(e){return r.SEARCH_DOCUMENT===e}}},234:function(e,t,i){"use strict";i.r(t),i.d(t,"SimilarityResultType",(function(){return r}));var r={TERM_RESULT:"termResult",DOCUMENT_RESULT:"documentResult",ENTITY_RESULT:"entityResult",isResultDocumentType:function(e){return r.DOCUMENT_RESULT===e},isResultTermType:function(e){return r.TERM_RESULT===e}}},235:function(e,t,i){"use strict";i.r(t),i.d(t,"SimilaritySearch",(function(){return s}));var r=i(153);function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function n(e,t){for(var i=0;i<t.length;i++){var r=t[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,c(r.key),r)}}function c(e){var t=function(e,t){if("object"!=a(e)||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var r=i.call(e,t||"default");if("object"!=a(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==a(t)?t:t+""}var s=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.type=r.SimilaritySearchType.SEARCH_TERM,this.predicate="",this.termOrSubject=""},(t=[{key:"isSearchAnalogicalType",value:function(){return r.SimilaritySearchType.isSearchAnalogicalType(this.type)}},{key:"isSearchTermType",value:function(){return r.SimilaritySearchType.isSearchTermType(this.type)}},{key:"isSearchEntityType",value:function(){return r.SimilaritySearchType.isSearchEntityType(this.type)}},{key:"isSearchEntityPredicateType",value:function(){return r.SimilaritySearchType.isSearchEntityPredicateType(this.type)}},{key:"isSearchDocumentType",value:function(){return r.SimilaritySearchType.isSearchDocumentType(this.type)}}])&&n(e.prototype,t),i&&n(e,i),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,i}()},369:function(e,t,i){"use strict";i.r(t);i(29),i(60);var r=i(1),a=i(153),n=i(234),c=i(107),s=i(106),o=i(117),l=i(235),u=i(104),y=i(11);function p(e,t,i,p,m,d,S,h,f,T,g,R,v,x,b,I){var E="http://www.ontotext.com/graphdb/similarity/",A="http://www.ontotext.com/graphdb/similarity/psi/",w=A+"any";e.pluginName="similarity",e.pluginIsActive=!0,e.isLoading=!1,e.selectedSimilarityIndex=void 0,e.similarityIndexStatus=c.SimilarityIndexStatus,e.similarityIndexType=s.SimilarityIndexType,e.similaritySearchType=a.SimilaritySearchType,e.searchType=a.SimilaritySearchType.SEARCH_TERM,e.similarityResultType=n.SimilarityResultType,e.resultType=n.SimilarityResultType.TERM_RESULT,e.info=g,e.isGraphDBRepository=void 0,e.canEditRepo=e.canWriteActiveRepo(),e.loadSimilarityIndexesTimer=void 0,e.loadSimilarityIndexes=function(){e.isGraphDBRepository&&e.pluginIsActive&&f.getIndexes().success((function(t){return e.similarityIndexes=Object(o.mapIndexesResponseToSimilarityIndex)(t)})).error((function(e){return i.error(getError(e),v.instant("similarity.could.not.get.indexes.error"))}))},e.reloadSimilarityIndexes=function(){e.loadSimilarityIndexes(),e.loadSimilarityIndexesTimer||(e.loadSimilarityIndexesTimer=t((function(){e.$broadcast("checkIsActive"),"false"!==$("#indexes-table").attr("aria-expanded")&&e.loadSimilarityIndexes()}),5e3))},e.goToSimilarityIndex=function(t){(t.isBuiltStatus()||t.isOutdatedStatus()||t.isRebuildingStatus())&&(e.empty=!0,e.selectedSimilarityIndex!==t&&(e.lastSearch=void 0,e.selectedSimilarityIndex=t),t.isTextType()?e.searchType=a.SimilaritySearchType.SEARCH_TERM:t.isPredicationType()&&(e.searchType=a.SimilaritySearchType.SEARCH_ENTITY),(t.isTextType()||t.isPredicationType())&&$("#indexes-table").collapse("hide"))},e.performSearch=function(t,r,a,n,c){e.isLoading=!0,M(a,r);var s=q(t,r,a,n,c);x.getQueryResult(p.getActiveRepository(),s,"application/x-sparqlstar-results+json, application/sparql-results+json;q=0.9, */*;q=0.8").then((function(e){return Y(e)})).catch((function(e){return i.error(getError(e.data),v.instant("similarity.get.resource.error"))})).finally((function(){return e.isLoading=!1}))},e.viewSearchQuery=function(){var t,i,r=[];i=null==(r=(t=e.lastSearch.isSearchAnalogicalType()?e.selectedSimilarityIndex.analogicalQuery?e.selectedSimilarityIndex.analogicalQuery:e.searchQueries.analogical:e.selectedSimilarityIndex.searchQuery?e.selectedSimilarityIndex.searchQuery:e.searchQueries[e.selectedSimilarityIndex.type]).match(/[a-zA-Z0-9-]+:<http:\/\/www.ontotext.com\/graphdb\/similarity\/instance\/>/))?"similarity-index":r[0].substring(0,r[0].indexOf(":"));var n=t.replace("?index",i+":"+e.selectedSimilarityIndex.name).replace("?query",e.lastSearch.termOrSubject).replace("?searchType",(e.selectedSimilarityIndex.isTextType()?":":"psi:")+(e.lastSearch.isSearchEntityPredicateType()?a.SimilaritySearchType.SEARCH_ENTITY:e.lastSearch.type)).replace("?resultType",e.selectedSimilarityIndex.isTextType()?":"+e.resultType:"psi:entityResult").replace("?parameters",O(e.searchParameters?e.searchParameters:"")).replace("?psiPredicate",e.lastSearch.predicate?L(e.lastSearch.predicate):L(w)).replace("?givenSubject",L(e.analogicalSubject)).replace("?givenObject",L(e.analogicalObject)).replace("?searchSubject",L(e.searchSubject));h.open({templateUrl:"pages/viewQuery.html",controller:"ViewQueryCtrl",resolve:{query:function(){return n}}})},e.deleteSimilarityIndex=function(t){S.openSimpleModal({title:v.instant("common.confirm"),message:v.instant("similarity.delete.index.warning",{name:t.name}),warning:!0}).result.then((function(){f.deleteIndex(t).then((function(){return e.loadSimilarityIndexes()})).catch((function(e){return i.error(getError(e))}))}))},e.viewCreateQuery=function(e){f.getQuery({indexName:e.name,indexOptions:e.options,query:e.selectQuery,indexStopList:e.stopList,queryInference:e.infer,querySameAs:e.sameAs,viewType:e.type,indexAnalyzer:e.analyzer}).success((function(e){h.open({templateUrl:"pages/viewQuery.html",controller:"ViewQueryCtrl",resolve:{query:function(){return e}}})}))},e.rebuildIndex=function(t){t.searchQuery||(t.searchQuery=t.type?e.searchQueries[t.type]:e.searchQueries.text),S.openSimpleModal({title:v.instant("common.confirm"),message:Object(r.decodeHTML)(v.instant("similarity.rebuild.index.warning",{name:t.name})),warning:!0}).result.then((function(){t.status=c.SimilarityIndexStatus.REBUILDING,f.rebuildIndex(t).catch((function(e){return i.error(getError(e))}))}))},e.setPluginIsActive=function(t){e.pluginIsActive=t},e.encodeURIComponent=function(e){return encodeURIComponent(e)},e.copyToClipboardResult=function(e){S.openCopyToClipboardModal(e)},e.trimIRI=function(e){return _.trim(e,"<>")},e.updateSearchType=function(t){e.searchType=t},e.updateResultType=function(t){e.resultType=t},e.editSimilarityIndex=function(e){Q(e)},e.cloneSimilataryIndex=function(e){Q(e,!0)},e.setPsiSubject=function(t){e.psiSubject=t},e.setAnalogicalSubject=function(t){e.analogicalSubject=t},e.setAnalogicalObject=function(t){e.analogicalObject=t};var Q=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i={selectQuery:e.selectQuery,options:e.options,name:e.name,editSearchQuery:!t,infer:e.infer,sameAs:e.sameAs,stopList:e.stopList,type:e.type,analyzer:e.analyzer,searchQuery:e.searchQuery?e.searchQuery:"",analogicalQuery:e.analogicalQuery?e.analogicalQuery:""};d.path("similarity/index/create").search(i)},C=function(){var t=e.getActiveRepository();t&&e.activeRepository!==t&&(e.canEditRepo=e.canWriteActiveRepo(),e.activeRepository=t,e.isGraphDBRepository=P(),e.isGraphDBRepository&&(m.isLicenseValid()&&e.reloadSimilarityIndexes(),j()))},j=function(){f.getSearchQueries().success((function(t){return e.searchQueries=t})).error((function(e){return i.error(getError(e),v.instant("similarity.could.not.get.search.queries.error"))}))},O=function(e){return'"'+e+'"'},L=function(e){return void 0===e||e.startsWith("<<")&&e.endsWith(">>")?e:"<"+e+">"},P=function(){return e.getActiveRepository()&&!e.isActiveRepoOntopType()&&!e.isActiveRepoFedXType()},N=[];N.push(e.$on("repositoryIsSet",C));e.$on("$destroy",(function(){k(),e.loadSimilarityIndexesTimer&&t.cancel(e.loadSimilarityIndexesTimer)}));var k=function(){N.forEach((function(e){return e()}))};N.push(b.onAutocompleteEnabledUpdated((function(t){e.isAutocompleteEnabled=t}))),N.push(b.onSelectedRepositoryIdUpdated((function(t){t?I.getNamespaces(t).then((function(t){e.repositoryNamespaces=t})).catch((function(e){var t=getError(e);i.error(t,v.instant("error.getting.namespaces.for.repo"))})):e.repositoryNamespaces=new y.NamespacesListModel})));N.push(e.$watch("searchType",(function(){e.empty=!0})));var D=e.$watch(e.getActiveRepositoryObject,(function(e){e&&(C(),D())})),q=function(t,i,r,c,s){var o={query:U(e.lastSearch.type),$index:L("http://www.ontotext.com/graphdb/similarity/instance/"+t.name),$query:e.lastSearch.termOrSubject,$searchType:L((e.selectedSimilarityIndex.isTextType()?E:A)+(a.SimilaritySearchType.isSearchEntityPredicateType(r)?a.SimilaritySearchType.SEARCH_ENTITY:r)),$resultType:L(e.selectedSimilarityIndex.isTextType()?E+c:A+n.SimilarityResultType.ENTITY_RESULT),$parameters:O(s)};return a.SimilaritySearchType.isSearchEntityPredicateType(r)&&(o.$psiPredicate=e.lastSearch.predicate?L(e.lastSearch.predicate):L(w)),a.SimilaritySearchType.isSearchAnalogicalType(r)&&(e.searchSubject=i,o.$givenSubject=L(e.analogicalSubject),o.$givenObject=L(e.analogicalObject),o.$searchSubject=L(i)),o},M=function(t,i){e.lastSearch=new l.SimilaritySearch,e.lastSearch.type=t,a.SimilaritySearchType.isSearchEntityPredicateType(t)&&(e.lastSearch.predicate=i),e.lastSearch.termOrSubject=H(e.lastSearch.type,i,e.psiSubject)},U=function(t){return a.SimilaritySearchType.isSearchAnalogicalType(t)?e.selectedSimilarityIndex.analogicalQuery?e.selectedSimilarityIndex.analogicalQuery:e.searchQueries.analogical:e.selectedSimilarityIndex.searchQuery?e.selectedSimilarityIndex.searchQuery:e.searchQueries[e.selectedSimilarityIndex.type]},H=function(e,t,i){var r=t;return a.SimilaritySearchType.isSearchEntityPredicateType(e)&&(r=i),r=a.SimilaritySearchType.isSearchTermType(e)?O(r):L(r)},Y=function(t){e.yasguiConfig={showEditorTabs:!1,showToolbar:!1,showResultTabs:!1,showQueryButton:!1,downloadAsOn:!1,showResultInfo:!1,componentId:"similarity-list-component",maxPersistentResponseSize:0,render:u.RenderingMode.YASR,sparqlResponse:t.data}}}angular.module("graphdb.framework.similarity.controllers.list",["graphdb.core.services.workbench-context","graphdb.framework.core.services.rdf4j.repositories"]).controller("SimilarityCtrl",p),p.$inject=["$scope","$interval","toastr","$repositories","$licenseService","$location","ModalService","$uibModal","SimilarityRestService","AutocompleteRestService","productInfo","RDF4JRepositoriesRestService","$translate","SparqlRestService","WorkbenchContextService","RDF4JRepositoriesService"]},474:function(e,t,i){"use strict";i.r(t);i(10),i(52),i(58),i(124),i(369),i(381),i(167);angular.module("graphdb.framework.similarity",["graphdb.framework.core.controllers","graphdb.framework.core.directives","graphdb.framework.rest.similarity.service","graphdb.framework.similarity.controllers.create","graphdb.framework.similarity.controllers.list","graphdb.framework.core.directives.yasgui-component"])}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(window.webpackJsonp=window.webpackJsonp||[]).push([[57,82,96,131,332,333],{108:function(t,e,n){"use strict";function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function r(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,s(i.key),i)}}function s(t){var e=function(t,e){if("object"!=i(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==i(e)?e:e+""}n.r(e),n.d(e,"ChatMessageModel",(function(){return a})),n.d(e,"CHAT_MESSAGE_ROLE",(function(){return o}));var a=function(){return t=function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._id=e.id,this._role=e.role,this._message=e.message,this._timestamp=1e3*e.timestamp},(e=[{key:"id",get:function(){return this._id},set:function(t){this._id=t}},{key:"role",get:function(){return this._role},set:function(t){this._role=t}},{key:"message",get:function(){return this._message},set:function(t){this._message=t}},{key:"timestamp",get:function(){return this._timestamp},set:function(t){this._timestamp=t}}])&&r(t.prototype,e),n&&r(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,n}(),o={USER:"user",ASSISTANT:"assistant"}},112:function(t,e,n){"use strict";n.r(e),n.d(e,"ChatItemModel",(function(){return c})),n.d(e,"ChatItemsListModel",(function(){return h}));var i=n(108);function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,u(i.key),i)}}function o(t,e,n){return e&&a(t.prototype,e),n&&a(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function u(t){var e=function(t,e){if("object"!=r(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==r(e)?e:e+""}var c=function(){return o((function t(e,n){s(this,t),this._chatId=e,this._agentId=void 0,this._question=n,this._answers=[]}),[{key:"chatId",get:function(){return this._chatId},set:function(t){this._chatId=t}},{key:"agentId",get:function(){return this._agentId},set:function(t){this._agentId=t}},{key:"question",get:function(){return this._question},set:function(t){this._question=t}},{key:"answers",get:function(){return this._answers},set:function(t){this._answers=t}},{key:"setQuestionMessage",value:function(t){this._question||(this._question=new i.ChatMessageModel({role:i.CHAT_MESSAGE_ROLE.USER})),this._question.message=t}},{key:"getQuestionMessage",value:function(){return this._question.message}},{key:"toCreateChatRequestPayload",value:function(){return{agentId:this._agentId,question:this._question.message}}},{key:"toAskRequestPayload",value:function(){return{conversationId:this._chatId,agentId:this._agentId,question:this._question.message,tzOffset:-(new Date).getTimezoneOffset()}}},{key:"toExplainResponsePayload",value:function(t){return{conversationId:this._chatId,answerId:t}}}])}(),h=function(){return o((function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];s(this,t),this._items=e}),[{key:"isEmpty",value:function(){return 0===this._items.length}},{key:"appendItem",value:function(t){this._items.push(t)}},{key:"items",get:function(){return this._items},set:function(t){this._items=t||[]}},{key:"getLast",value:function(){if(!this.isEmpty())return this._items[this._items.length-1]}}])}()},135:function(t,e,n){"use strict";n.r(e),n.d(e,"ChatModel",(function(){return h})),n.d(e,"ChatByDayModel",(function(){return f})),n.d(e,"ChatsListModel",(function(){return m}));var i=n(112),r=n(28);function s(t){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,c(i.key),i)}}function u(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function c(t){var e=function(t,e){if("object"!=s(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=s(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==s(e)?e:e+""}var h=function(){function t(e,n){a(this,t),this.hashGenerator=n,this._id=e.id,this._name=e.name,this._timestamp=e.timestamp,this._chatHistory=e.chatHistory||new i.ChatItemsListModel,this.hash=this.generateHash()}return u(t,[{key:"generateHash",value:function(){return this.hashGenerator(JSON.stringify(this))}},{key:"id",get:function(){return this._id},set:function(t){this._id=t}},{key:"name",get:function(){return this._name},set:function(t){this.generateHash(),this._name=t}},{key:"timestamp",get:function(){return this._timestamp},set:function(t){this._timestamp=t}},{key:"chatHistory",get:function(){return this._chatHistory},set:function(t){this._chatHistory=t||new i.ChatItemsListModel}},{key:"toRenameRequestPayload",value:function(){return{name:this._name}}}],[{key:"getEmptyChat",value:function(){return new t({name:"· · ·",timestamp:Math.floor(Date.now()/1e3)},Object(r.md5HashGenerator)())}}])}(),f=function(){return u((function t(e){a(this,t),this._day=e.day,this._timestamp=e.timestamp,this._chats=e.chats}),[{key:"day",get:function(){return this._day},set:function(t){this._day=t}},{key:"timestamp",get:function(){return this._timestamp},set:function(t){this._timestamp=t}},{key:"chats",get:function(){return this._chats},set:function(t){this._chats=t}}])}(),m=function(){return u((function t(e){a(this,t),this._chats=e||[],this._chatsByDay=[],this.sortByTime(),this.updateChatsByDay()}),[{key:"sortByTime",value:function(){this._chats.sort((function(t,e){return e.timestamp-t.timestamp}))}},{key:"updateChatTimestamp",value:function(t,e){var n=this._chats.find((function(e){return e.id===t}));n&&(n.timestamp=e,this.sortByTime(),this.updateChatsByDay())}},{key:"updateChatName",value:function(t,e){var n=this._chats.find((function(e){return e.id===t}));n&&(n.name=e)}},{key:"deleteChat",value:function(t){this._chats=this._chats.filter((function(e){return e.id!==t.id})),this.sortByTime(),this.updateChatsByDay()}},{key:"updateChatsByDay",value:function(){var t=this;this._chatsByDay=[],this._chats.forEach((function(e){var n=new Date(1e3*e.timestamp).toDateString(),i=t._chatsByDay.find((function(t){return t.day===n}));i?i.chats.push(e):t._chatsByDay.push(new f({day:n,timestamp:1e3*e.timestamp,chats:[e]}))}))}},{key:"appendChat",value:function(t){this._chats.push(t),this.sortByTime(),this.updateChatsByDay()}},{key:"replaceChat",value:function(t,e){this._chats=this._chats.map((function(n){return n.id===e.id?t:n})),this.sortByTime(),this.updateChatsByDay()}},{key:"isEmpty",value:function(){return 0===this._chats.length}},{key:"getFirstChat",value:function(){return this._chats[0]}},{key:"deselectAll",value:function(){this._chats.forEach((function(t){t.selected=!1}))}},{key:"selectChat",value:function(t){this.deselectAll(),this._chats.forEach((function(e){e.selected=e.id===t.id}))}},{key:"getChat",value:function(t){return this._chats.find((function(e){return e.id===t}))}},{key:"getNonPersistedChat",value:function(){return this._chats.find((function(t){return!t.id}))}},{key:"renameChat",value:function(t){var e=this._chats.find((function(e){return e.id===t.id}));e&&(e.name=t.name)}},{key:"chats",get:function(){return this._chats},set:function(t){this._chats=t}},{key:"chatsByDay",get:function(){return this._chatsByDay},set:function(t){this._chatsByDay=t}}])}()},148:function(t,e,n){"use strict";function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,o(i.key),i)}}function a(t,e,n){return e&&s(t.prototype,e),n&&s(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function o(t){var e=function(t,e){if("object"!=i(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==i(e)?e:e+""}n.r(e),n.d(e,"ChatAnswerModel",(function(){return u})),n.d(e,"ContinueChatRun",(function(){return c}));var u=function(){return a((function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};r(this,t),this._chatId=e.chatId,this._chatName=e.chatName||"",this._timestamp=e.timestamp,this._messages=e.messages||[],this._continueRunId=e.continueRunId}),[{key:"chatId",get:function(){return this._chatId},set:function(t){this._chatId=t}},{key:"chatName",get:function(){return this._chatName},set:function(t){this._chatName=t}},{key:"timestamp",get:function(){return this._timestamp},set:function(t){this._timestamp=t}},{key:"messages",get:function(){return this._messages},set:function(t){this._messages=t}},{key:"continueRunId",get:function(){return this._continueRunId},set:function(t){this._continueRunId=t}}])}(),c=function(){return a((function t(e,n){r(this,t),this._chatItem=e,this._runId=n}),[{key:"chatId",get:function(){return this._chatItem.chatId}},{key:"toContinueRunRequestPayload",value:function(){return{conversationId:this.chatId,runId:this._runId,agentId:this._chatItem.agentId,tzOffset:-(new Date).getTimezoneOffset()}}}])}()},184:function(t,e,n){"use strict";n.r(e),n.d(e,"chatMessageModelListMapper",(function(){return a})),n.d(e,"chatItemsModelMapper",(function(){return o})),n.d(e,"chatMessageModelMapper",(function(){return u})),n.d(e,"chatAnswerModelMapper",(function(){return c}));var i=n(108),r=n(112),s=n(148),a=function(t){return t?t.map((function(t){return u(t)})):[]},o=function(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=[];return e.forEach((function(e){var s=e.conversationId;i.CHAT_MESSAGE_ROLE.USER===e.role?(t&&n.push(t),t=new r.ChatItemModel(s,u(e))):(t||(t=new r.ChatItemModel(s,null)),t.answers.push(u(e)),t.agentId=e.agentId)})),t&&n.push(t),new r.ChatItemsListModel(n)},u=function(t){if(t)return new i.ChatMessageModel({id:t.id,role:t.role,message:t.message,timestamp:t.timestamp,data:t})},c=function(t){if(t)return new s.ChatAnswerModel({chatId:t.id,chatName:t.name,timestamp:t.timestamp,messages:a(t.messages),continueRunId:t.continueRunId})}},285:function(t,e,n){"use strict";n.r(e),n.d(e,"chatsListMapper",(function(){return u})),n.d(e,"chatModelMapper",(function(){return c}));var i=n(135),r=n(28),s=n(184),a=n(112),o=Object(r.md5HashGenerator)(),u=function(t){if(!t)return new i.ChatsListModel;var e=t.map((function(t){return c(t)}));return new i.ChatsListModel(e)},c=function(t){if(t)return new i.ChatModel({id:t.id,name:t.name,timestamp:t.timestamp,chatHistory:t.messages&&t.messages.length?Object(s.chatItemsModelMapper)(t.messages):new a.ChatItemsListModel},o)}}}]);
|
|
1
|
+
(window.webpackJsonp=window.webpackJsonp||[]).push([[57,83,98,132,332,333],{108:function(t,e,n){"use strict";function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function r(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,s(i.key),i)}}function s(t){var e=function(t,e){if("object"!=i(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==i(e)?e:e+""}n.r(e),n.d(e,"ChatMessageModel",(function(){return a})),n.d(e,"CHAT_MESSAGE_ROLE",(function(){return o}));var a=function(){return t=function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._id=e.id,this._role=e.role,this._message=e.message,this._timestamp=1e3*e.timestamp},(e=[{key:"id",get:function(){return this._id},set:function(t){this._id=t}},{key:"role",get:function(){return this._role},set:function(t){this._role=t}},{key:"message",get:function(){return this._message},set:function(t){this._message=t}},{key:"timestamp",get:function(){return this._timestamp},set:function(t){this._timestamp=t}}])&&r(t.prototype,e),n&&r(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,n}(),o={USER:"user",ASSISTANT:"assistant"}},112:function(t,e,n){"use strict";n.r(e),n.d(e,"ChatItemModel",(function(){return c})),n.d(e,"ChatItemsListModel",(function(){return h}));var i=n(108);function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,u(i.key),i)}}function o(t,e,n){return e&&a(t.prototype,e),n&&a(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function u(t){var e=function(t,e){if("object"!=r(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==r(e)?e:e+""}var c=function(){return o((function t(e,n){s(this,t),this._chatId=e,this._agentId=void 0,this._question=n,this._answers=[]}),[{key:"chatId",get:function(){return this._chatId},set:function(t){this._chatId=t}},{key:"agentId",get:function(){return this._agentId},set:function(t){this._agentId=t}},{key:"question",get:function(){return this._question},set:function(t){this._question=t}},{key:"answers",get:function(){return this._answers},set:function(t){this._answers=t}},{key:"setQuestionMessage",value:function(t){this._question||(this._question=new i.ChatMessageModel({role:i.CHAT_MESSAGE_ROLE.USER})),this._question.message=t}},{key:"getQuestionMessage",value:function(){return this._question.message}},{key:"toCreateChatRequestPayload",value:function(){return{agentId:this._agentId,question:this._question.message}}},{key:"toAskRequestPayload",value:function(){return{conversationId:this._chatId,agentId:this._agentId,question:this._question.message,tzOffset:-(new Date).getTimezoneOffset()}}},{key:"toExplainResponsePayload",value:function(t){return{conversationId:this._chatId,answerId:t}}}])}(),h=function(){return o((function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];s(this,t),this._items=e}),[{key:"isEmpty",value:function(){return 0===this._items.length}},{key:"appendItem",value:function(t){this._items.push(t)}},{key:"items",get:function(){return this._items},set:function(t){this._items=t||[]}},{key:"getLast",value:function(){if(!this.isEmpty())return this._items[this._items.length-1]}}])}()},137:function(t,e,n){"use strict";n.r(e),n.d(e,"ChatModel",(function(){return h})),n.d(e,"ChatByDayModel",(function(){return f})),n.d(e,"ChatsListModel",(function(){return m}));var i=n(112),r=n(28);function s(t){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,c(i.key),i)}}function u(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function c(t){var e=function(t,e){if("object"!=s(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=s(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==s(e)?e:e+""}var h=function(){function t(e,n){a(this,t),this.hashGenerator=n,this._id=e.id,this._name=e.name,this._timestamp=e.timestamp,this._chatHistory=e.chatHistory||new i.ChatItemsListModel,this.hash=this.generateHash()}return u(t,[{key:"generateHash",value:function(){return this.hashGenerator(JSON.stringify(this))}},{key:"id",get:function(){return this._id},set:function(t){this._id=t}},{key:"name",get:function(){return this._name},set:function(t){this.generateHash(),this._name=t}},{key:"timestamp",get:function(){return this._timestamp},set:function(t){this._timestamp=t}},{key:"chatHistory",get:function(){return this._chatHistory},set:function(t){this._chatHistory=t||new i.ChatItemsListModel}},{key:"toRenameRequestPayload",value:function(){return{name:this._name}}}],[{key:"getEmptyChat",value:function(){return new t({name:"· · ·",timestamp:Math.floor(Date.now()/1e3)},Object(r.md5HashGenerator)())}}])}(),f=function(){return u((function t(e){a(this,t),this._day=e.day,this._timestamp=e.timestamp,this._chats=e.chats}),[{key:"day",get:function(){return this._day},set:function(t){this._day=t}},{key:"timestamp",get:function(){return this._timestamp},set:function(t){this._timestamp=t}},{key:"chats",get:function(){return this._chats},set:function(t){this._chats=t}}])}(),m=function(){return u((function t(e){a(this,t),this._chats=e||[],this._chatsByDay=[],this.sortByTime(),this.updateChatsByDay()}),[{key:"sortByTime",value:function(){this._chats.sort((function(t,e){return e.timestamp-t.timestamp}))}},{key:"updateChatTimestamp",value:function(t,e){var n=this._chats.find((function(e){return e.id===t}));n&&(n.timestamp=e,this.sortByTime(),this.updateChatsByDay())}},{key:"updateChatName",value:function(t,e){var n=this._chats.find((function(e){return e.id===t}));n&&(n.name=e)}},{key:"deleteChat",value:function(t){this._chats=this._chats.filter((function(e){return e.id!==t.id})),this.sortByTime(),this.updateChatsByDay()}},{key:"updateChatsByDay",value:function(){var t=this;this._chatsByDay=[],this._chats.forEach((function(e){var n=new Date(1e3*e.timestamp).toDateString(),i=t._chatsByDay.find((function(t){return t.day===n}));i?i.chats.push(e):t._chatsByDay.push(new f({day:n,timestamp:1e3*e.timestamp,chats:[e]}))}))}},{key:"appendChat",value:function(t){this._chats.push(t),this.sortByTime(),this.updateChatsByDay()}},{key:"replaceChat",value:function(t,e){this._chats=this._chats.map((function(n){return n.id===e.id?t:n})),this.sortByTime(),this.updateChatsByDay()}},{key:"isEmpty",value:function(){return 0===this._chats.length}},{key:"getFirstChat",value:function(){return this._chats[0]}},{key:"deselectAll",value:function(){this._chats.forEach((function(t){t.selected=!1}))}},{key:"selectChat",value:function(t){this.deselectAll(),this._chats.forEach((function(e){e.selected=e.id===t.id}))}},{key:"getChat",value:function(t){return this._chats.find((function(e){return e.id===t}))}},{key:"getNonPersistedChat",value:function(){return this._chats.find((function(t){return!t.id}))}},{key:"renameChat",value:function(t){var e=this._chats.find((function(e){return e.id===t.id}));e&&(e.name=t.name)}},{key:"chats",get:function(){return this._chats},set:function(t){this._chats=t}},{key:"chatsByDay",get:function(){return this._chatsByDay},set:function(t){this._chatsByDay=t}}])}()},149:function(t,e,n){"use strict";function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,o(i.key),i)}}function a(t,e,n){return e&&s(t.prototype,e),n&&s(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function o(t){var e=function(t,e){if("object"!=i(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==i(e)?e:e+""}n.r(e),n.d(e,"ChatAnswerModel",(function(){return u})),n.d(e,"ContinueChatRun",(function(){return c}));var u=function(){return a((function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};r(this,t),this._chatId=e.chatId,this._chatName=e.chatName||"",this._timestamp=e.timestamp,this._messages=e.messages||[],this._continueRunId=e.continueRunId}),[{key:"chatId",get:function(){return this._chatId},set:function(t){this._chatId=t}},{key:"chatName",get:function(){return this._chatName},set:function(t){this._chatName=t}},{key:"timestamp",get:function(){return this._timestamp},set:function(t){this._timestamp=t}},{key:"messages",get:function(){return this._messages},set:function(t){this._messages=t}},{key:"continueRunId",get:function(){return this._continueRunId},set:function(t){this._continueRunId=t}}])}(),c=function(){return a((function t(e,n){r(this,t),this._chatItem=e,this._runId=n}),[{key:"chatId",get:function(){return this._chatItem.chatId}},{key:"toContinueRunRequestPayload",value:function(){return{conversationId:this.chatId,runId:this._runId,agentId:this._chatItem.agentId,tzOffset:-(new Date).getTimezoneOffset()}}}])}()},184:function(t,e,n){"use strict";n.r(e),n.d(e,"chatMessageModelListMapper",(function(){return a})),n.d(e,"chatItemsModelMapper",(function(){return o})),n.d(e,"chatMessageModelMapper",(function(){return u})),n.d(e,"chatAnswerModelMapper",(function(){return c}));var i=n(108),r=n(112),s=n(149),a=function(t){return t?t.map((function(t){return u(t)})):[]},o=function(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=[];return e.forEach((function(e){var s=e.conversationId;i.CHAT_MESSAGE_ROLE.USER===e.role?(t&&n.push(t),t=new r.ChatItemModel(s,u(e))):(t||(t=new r.ChatItemModel(s,null)),t.answers.push(u(e)),t.agentId=e.agentId)})),t&&n.push(t),new r.ChatItemsListModel(n)},u=function(t){if(t)return new i.ChatMessageModel({id:t.id,role:t.role,message:t.message,timestamp:t.timestamp,data:t})},c=function(t){if(t)return new s.ChatAnswerModel({chatId:t.id,chatName:t.name,timestamp:t.timestamp,messages:a(t.messages),continueRunId:t.continueRunId})}},285:function(t,e,n){"use strict";n.r(e),n.d(e,"chatsListMapper",(function(){return u})),n.d(e,"chatModelMapper",(function(){return c}));var i=n(137),r=n(28),s=n(184),a=n(112),o=Object(r.md5HashGenerator)(),u=function(t){if(!t)return new i.ChatsListModel;var e=t.map((function(t){return c(t)}));return new i.ChatsListModel(e)},c=function(t){if(t)return new i.ChatModel({id:t.id,name:t.name,timestamp:t.timestamp,chatHistory:t.messages&&t.messages.length?Object(s.chatItemsModelMapper)(t.messages):new a.ChatItemsListModel},o)}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(window.webpackJsonp=window.webpackJsonp||[]).push([[58,
|
|
1
|
+
(window.webpackJsonp=window.webpackJsonp||[]).push([[58,122,168,243,244],{109:function(t,e,n){"use strict";n.r(e),n.d(e,"FIELD_TYPE",(function(){return r}));var r={STRING:"string",TEXT:"text",BOOLEAN:"boolean",JSON:"json",SELECT:"select",MULTI_SELECT:"multi_select"}},148:function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,u(r.key),r)}}function o(t,e,n){return(e=u(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function u(t){var e=function(t,e){if("object"!=r(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==r(e)?e:e+""}n.r(e),n.d(e,"DynamicFormField",(function(){return s}));var s=function(){return t=function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),o(this,"_key",""),o(this,"_label",""),o(this,"_type",""),o(this,"_collection",!1),o(this,"_value",void 0),o(this,"_values",void 0),o(this,"_regex",void 0),o(this,"_required",!1),o(this,"_group",void 0),o(this,"hidden",!1),this._key=e.key,this._label=e.label,this._type=e.type,this._collection=e.collection,this._value=e.value,this._values=e.values,this._regex="string"==typeof e.regex?new RegExp(e.regex):e.regex,this._required=e.required,this._group=e.group,this.hidden=e.hidden},(e=[{key:"key",get:function(){return this._key},set:function(t){this._key=t}},{key:"label",get:function(){return this._label},set:function(t){this._label=t}},{key:"type",get:function(){return this._type},set:function(t){this._type=t}},{key:"collection",get:function(){return this._collection},set:function(t){this._collection=t}},{key:"value",get:function(){return this._value},set:function(t){this._value=t}},{key:"values",get:function(){return this._values},set:function(t){this._values=t}},{key:"regex",get:function(){return this._regex},set:function(t){this._regex="string"==typeof t?new RegExp(t):t}},{key:"required",get:function(){return this._required},set:function(t){this._required=t}},{key:"group",get:function(){return this._group},set:function(t){this._group=t}},{key:"hidden",get:function(){return this._hidden},set:function(t){this._hidden=t}}])&&i(t.prototype,e),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,n}()},173:function(t,e,n){"use strict";n.r(e),n.d(e,"CONFIG_TYPE",(function(){return a})),n.d(e,"GraphqlEndpointConfigurationSettings",(function(){return f}));var r=n(148);function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t){return function(t){if(Array.isArray(t))return u(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return u(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function s(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,c(r.key),r)}}function l(t,e,n){return(e=c(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function c(t){var e=function(t,e){if("object"!=i(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==i(e)?e:e+""}var a={STRING:"string",TEXT:"text",BOOLEAN:"boolean",JSON:"json"},f=function(){return t=function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),l(this,"_settings",void 0),l(this,"_hasSettings",void 0),this._settings=e,this._hasSettings=!!this._settings&&this._settings.models.length>0},(e=[{key:"toFlatJSON",value:function(){var t={},e=function(e){e.collection?t[e.key]=e.value:"select"===e.type?t[e.key]=e.value.value:t[e.key]=e.value};return this._settings.models.forEach((function(t){t instanceof r.DynamicFormField?e(t):[].concat(o(t.fields),o(t.hiddenFields)).forEach(e)})),t}},{key:"hasSettings",get:function(){return this._hasSettings}},{key:"settings",get:function(){return this._settings},set:function(t){this._settings=t,this._hasSettings=this._settings.models.length>0}}])&&s(t.prototype,e),n&&s(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,n}()},213:function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,l(r.key),r)}}function u(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function s(t,e,n){return(e=l(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function l(t){var e=function(t,e){if("object"!=r(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==r(e)?e:e+""}n.r(e),n.d(e,"DynamicFormModel",(function(){return c})),n.d(e,"DynamicFormGroup",(function(){return a}));var c=function(){return u((function t(e){i(this,t),s(this,"_models",[]),this._models=e||[]}),[{key:"models",get:function(){return this._models},set:function(t){this._models=t}}])}(),a=function(){return u((function t(e){i(this,t),s(this,"_groupId",""),s(this,"_fields",[]),s(this,"_hiddenFields",[]),this._fields=e.fields||[],this._hiddenFields=e.hiddenFields||[],this._groupId=e.groupId||""}),[{key:"fields",get:function(){return this._fields},set:function(t){this._fields=t}},{key:"hiddenFields",get:function(){return this._hiddenFields},set:function(t){this._hiddenFields=t}},{key:"groupId",get:function(){return this._groupId},set:function(t){this._groupId=t}}])}()},284:function(t,e,n){"use strict";n.r(e),n.d(e,"dynamicFormModelMapper",(function(){return l}));var r=n(25),i=n(148),o=n(173),u=n(213),s=n(109),l=function(t){if(!t||!t.configs)return new u.DynamicFormModel;var e=a(t.configs);return c(e)},c=function(t){var e=[];return t.forEach((function(t){if(t.group){var n=e.find((function(e){return e.groupId===t.group}));n||(n=new u.DynamicFormGroup({groupId:t.group}),e.push(n)),(t.hidden?n.hiddenFields:n.fields).push(t)}else e.push(t)})),new u.DynamicFormModel(e)},a=function(t){return t.map((function(t){var e=y(t),n=t.values,i=[];return e!==s.FIELD_TYPE.MULTI_SELECT&&e!==s.FIELD_TYPE.SELECT||(n=n.map((function(e){var n=Array.isArray(t.value)&&t.value.indexOf(e)>-1||"string"==typeof t.value&&t.value===e,o=new r.SelectMenuOptionsModel({label:e,value:e,selected:n});return n&&i.push(o),o})),e===s.FIELD_TYPE.SELECT?t.value=i[0]?i[0]:[]:e===s.FIELD_TYPE.MULTI_SELECT&&(t.value=i)),f(t,e,n)}))},f=function(t,e,n){return new i.DynamicFormField({key:t.key,label:t.label,description:t.description,type:e,collection:t.collection||!1,value:t.value,values:n,regex:t.regex,required:t.required||!1,group:t.group,hidden:t.hidden})},y=function(t){var e;return t.type===o.CONFIG_TYPE.TEXT?e=s.FIELD_TYPE.TEXT:t.type===o.CONFIG_TYPE.BOOLEAN?e=s.FIELD_TYPE.BOOLEAN:t.type===o.CONFIG_TYPE.JSON?e=s.FIELD_TYPE.JSON:t.type===o.CONFIG_TYPE.STRING&&(e=t.values&&t.values.length>0?t.collection?s.FIELD_TYPE.MULTI_SELECT:s.FIELD_TYPE.SELECT:s.FIELD_TYPE.STRING),e}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(window.webpackJsonp=window.webpackJsonp||[]).push([[59,
|
|
1
|
+
(window.webpackJsonp=window.webpackJsonp||[]).push([[59,111,170,252,253],{163:function(n,e,t){"use strict";function r(n){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(n)}function o(n,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,i(r.key),r)}}function i(n){var e=function(n,e){if("object"!=r(n)||!n)return n;var t=n[Symbol.toPrimitive];if(void 0!==t){var o=t.call(n,e||"default");if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(n)}(n,"string");return"symbol"==r(e)?e:e+""}t.r(e),t.d(e,"GraphQLPlaygroundComponent",(function(){return a}));var a=function(){return n=function n(e){!function(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n),this.graphQLPlaygroundComponent=e},(e=[{key:"setLanguage",value:function(n){this.graphQLPlaygroundComponent.setLanguage(n)}}])&&o(n.prototype,e),t&&o(n,t),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,e,t}()},196:function(n,e,t){"use strict";var r;function o(n){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(n)}function i(n,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,u(r.key),r)}}function a(n,e,t){return(e=u(e))in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function u(n){var e=function(n,e){if("object"!=o(n)||!n)return n;var t=n[Symbol.toPrimitive];if(void 0!==t){var r=t.call(n,e||"default");if("object"!=o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(n)}(n,"string");return"symbol"==o(e)?e:e+""}t.r(e),t.d(e,"GraphqlPlaygroundDirectiveUtil",(function(){return l}));var l=function(){return n=function n(){!function(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n)},t=[{key:"getGraphqlPlaygroundDirectiveController",value:function(n){var e=angular.element(document.querySelector(n));return angular.element(e).isolateScope()}}],(e=null)&&i(n.prototype,e),t&&i(n,t),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,e,t}();r=l,a(l,"getGraphqlPlaygroundComponent",(function(n){var e=r.getGraphqlPlaygroundDirectiveController(n);if(e)return e.getGraphQLPlaygroundComponent()})),a(l,"getGraphqlPlaygroundComponentAsync",(function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return new Promise((function(t,o){var i=r.getGraphqlPlaygroundComponent(n);i&&t(i);var a=1e3*e|1e3,u=setInterval((function(){(i=r.getGraphqlPlaygroundComponent(n))?(clearInterval(u),t(i)):(a-=100)<0&&(clearInterval(u),console.log("GraphQL Playground component is not found",n),o(new Error("Element is not found: "+n)))}),100)}))}))},197:function(n,e,t){"use strict";t.r(e);var r=t(163);function o(n,e,t,o){return{restrict:"E",templateUrl:"js/angular/core/directives/graphql-playground/templates/graphql-playground.html",scope:{configuration:"="},link:function(i,a,u){i.getGraphQLPlaygroundComponent=function(){return new r.GraphQLPlaygroundComponent(l()[0])},i.abortQuery=function(r){var i=n.getActiveRepository(),a=r.detail.headers["X-GraphDB-Track-Alias"];o.info(e.instant("graphql.playground.message.abort_query")),t.deleteQuery(a,i)};var l=function(){return a.find("graphql-playground-component")}}}}angular.module("graphdb.framework.core.directives.graphql-playground",[]).directive("graphqlPlayground",o),o.$inject=["$repositories","$translate","MonitoringRestService","toastr"]},220:function(n,e,t){"use strict";function r(n){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(n)}function o(n,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,i(r.key),r)}}function i(n){var e=function(n,e){if("object"!=r(n)||!n)return n;var t=n[Symbol.toPrimitive];if(void 0!==t){var o=t.call(n,e||"default");if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(n)}(n,"string");return"symbol"==r(e)?e:e+""}t.r(e),t.d(e,"GraphqlPlaygroundConfig",(function(){return a}));var a=function(){return n=function n(e){!function(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n),this._endpoint=e.endpoint,this._headers=e.headers,this._selectedLanguage=e.selectedLanguage,this._defaultQuery=e.defaultQuery},(e=[{key:"endpoint",get:function(){return this._endpoint},set:function(n){this._endpoint=n}},{key:"headers",get:function(){return this._headers},set:function(n){this._headers=n}},{key:"selectedLanguage",get:function(){return this._selectedLanguage},set:function(n){this._selectedLanguage=n}},{key:"defaultQuery",get:function(){return this._defaultQuery},set:function(n){this._defaultQuery=n}}])&&o(n.prototype,e),t&&o(n,t),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,e,t}()},311:function(n,e,t){"use strict";t.r(e);var r=t(220),o=(t(127),t(197),t(196));function i(n,e,t,i,a,u,l,c){var p=[];n.initialized=!1,n.loadingEndpoints=!1,n.selectedGraphqlEndpoint=void 0,n.graphqlEndpoints=[],n.configuration=void 0,n.getActiveRepositoryNoError=function(){return t.getActiveRepository()},n.onGraphqlEndpointChange=function(n){y(n)};var f=function(n){var e={endpoint:n.replace(/^\//,""),headers:s,selectedLanguage:i.getLanguage(),defaultQuery:"query Object {\n object(limit: 100) {\n id\n }\n}"};return new r.GraphqlPlaygroundConfig(e)},s=function(){var n={"X-GraphDB-Track-Alias":"graphql-playground-query-".concat(performance.now(),"-").concat(Date.now())},e=c.getAuthToken();return e&&(n.Authorization=e),n},g=function(n,e){return n.find((function(n){return n.label===e}))},d=function(t){n.graphqlEndpoints=t,n.selectedGraphqlEndpoint=function(){var t=e.search().endpointId;if(t){var r=g(n.graphqlEndpoints,t);if(r)return r}var o=l.getSelectedEndpoint();if(o){var i=g(n.graphqlEndpoints,o.endpointId);if(i)return i}var a=n.graphqlEndpoints.find((function(n){return n.data.default}));return a||n.graphqlEndpoints[0]}(),n.configuration=f(n.selectedGraphqlEndpoint.value)},y=function(e){var t=f(e.value);n.configuration=new r.GraphqlPlaygroundConfig(t)},h=function(){n.selectedGraphqlEndpoint=void 0,n.graphqlEndpoints=[],n.configuration=void 0};p.push(n.$watch(n.getActiveRepositoryObject,(function(n){n&&v()}))),p.push(n.$on("language-changed",(function(n,e){o.GraphqlPlaygroundDirectiveUtil.getGraphqlPlaygroundComponentAsync("#graphql-playground").then((function(n){n.setLanguage(e.locale)}))}))),n.$on("$destroy",(function(){p.forEach((function(n){return n()}))}));var v=function(){(function(){n.loadingEndpoints=!0;var e=t.getActiveRepository();return u.getEndpointsAsSelectMenuOptions(e).then((function(n){n.length?d(n):h()})).catch((function(n){h(),a.error(getError(n))})).finally((function(){n.loadingEndpoints=!1}))})().finally((function(){n.initialized=!0}))}}angular.module("graphdb.framework.graphql.controllers.graphql-playground-view",["graphdb.framework.core.services.graphql-service","graphdb.framework.core.directives.graphql-playground"]).controller("GraphqlPlaygroundViewCtrl",i),i.$inject=["$scope","$location","$repositories","$languageService","toastr","GraphqlService","GraphqlContextService","AuthTokenService"]}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(window.webpackJsonp=window.webpackJsonp||[]).push([[6,130,382],{128:function(t,e,n){"use strict";n.r(e),n.d(e,"TTYG_ERROR_MSG_LENGTH",(function(){return i})),n.d(e,"AGENTS_FILTER_ALL_KEY",(function(){return s})),n.d(e,"AGENT_OPERATION",(function(){return r}));var i=100,s="ALL",r={CREATE:"create",EDIT:"edit",CLONE:"clone"}},141:function(t,e,n){"use strict";n.r(e),n.d(e,"AgentModel",(function(){return h})),n.d(e,"AgentInstructionsModel",(function(){return l})),n.d(e,"ExtractionMethodModel",(function(){return d})),n.d(e,"AdditionalExtractionMethodsModel",(function(){return f})),n.d(e,"AdditionalExtractionMethodModel",(function(){return _})),n.d(e,"AgentListModel",(function(){return m})),n.d(e,"ExtractionMethod",(function(){return y})),n.d(e,"AdditionalExtractionMethod",(function(){return p})),n.d(e,"AgentListFilterModel",(function(){return x}));var i=n(24),s=n(128);function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,c(i.key),i)}}function u(t,e,n){return e&&a(t.prototype,e),n&&a(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function c(t){var e=function(t,e){if("object"!=r(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==r(e)?e:e+""}var h=function(){return u((function t(e,n){o(this,t),this.hashGenerator=n,this._isDeleted=!1,this._id=e.id,this._name=e.name,this._repositoryId=e.repositoryId,this.isRepositoryDeleted=void 0!==e.isRepositoryDeleted&&e.isRepositoryDeleted,this._model=e.model,this._temperature=e.temperature,this._topP=e.topP,this._seed=e.seed,this._instructions=e.instructions,this._assistantExtractionMethods=e.assistantExtractionMethods,this._additionalExtractionMethods=e.additionalExtractionMethods}),[{key:"isDeleted",get:function(){return this._isDeleted},set:function(t){this._isDeleted=t}},{key:"id",get:function(){return this._id},set:function(t){this._id=t}},{key:"name",get:function(){return this._name},set:function(t){this._name=t}},{key:"repositoryId",get:function(){return this._repositoryId},set:function(t){this._repositoryId=t}},{key:"model",get:function(){return this._model},set:function(t){this._model=t}},{key:"temperature",get:function(){return this._temperature},set:function(t){this._temperature=t}},{key:"topP",get:function(){return this._topP},set:function(t){this._topP=t}},{key:"seed",get:function(){return this._seed},set:function(t){this._seed=t}},{key:"instructions",get:function(){return this._instructions},set:function(t){this._instructions=t}},{key:"assistantExtractionMethods",get:function(){return this._assistantExtractionMethods},set:function(t){this._assistantExtractionMethods=t}},{key:"additionalExtractionMethods",get:function(){return this._additionalExtractionMethods},set:function(t){this._additionalExtractionMethods=t}}])}(),l=function(){return u((function t(e){o(this,t),this._systemInstruction=e.systemInstruction,this._userInstruction=e.userInstruction}),[{key:"systemInstruction",get:function(){return this._systemInstruction},set:function(t){this._systemInstruction=t}},{key:"userInstruction",get:function(){return this._userInstruction},set:function(t){this._userInstruction=t}}])}(),d=function(){return u((function t(e){o(this,t),this._method=e.method,this._addMissingNamespaces=e.addMissingNamespaces,this._ontologyGraph=e.ontologyGraph,this._sparqlQuery=e.sparqlQuery,this._maxNumberOfTriplesPerCall=e.maxNumberOfTriplesPerCall,this._similarityIndex=e.similarityIndex,this._similarityIndexThreshold=e.similarityIndexThreshold,this._queryTemplate=e.queryTemplate,this._retrievalConnectorInstance=e.retrievalConnectorInstance}),[{key:"method",get:function(){return this._method},set:function(t){this._method=t}},{key:"addMissingNamespaces",get:function(){return this._addMissingNamespaces},set:function(t){this._addMissingNamespaces=t}},{key:"sparqlQuery",get:function(){return this._sparqlQuery},set:function(t){this._sparqlQuery=t}},{key:"ontologyGraph",get:function(){return this._ontologyGraph},set:function(t){this._ontologyGraph=t}},{key:"maxNumberOfTriplesPerCall",get:function(){return this._maxNumberOfTriplesPerCall},set:function(t){this._maxNumberOfTriplesPerCall=t}},{key:"similarityIndex",get:function(){return this._similarityIndex},set:function(t){this._similarityIndex=t}},{key:"similarityIndexThreshold",get:function(){return this._similarityIndexThreshold},set:function(t){this._similarityIndexThreshold=t}},{key:"queryTemplate",get:function(){return this._queryTemplate},set:function(t){this._queryTemplate=t}},{key:"retrievalConnectorInstance",get:function(){return this._retrievalConnectorInstance},set:function(t){this._retrievalConnectorInstance=t}}])}(),f=function(){return u((function t(e){o(this,t),this._additionalExtractionMethods=e}),[{key:"additionalExtractionMethods",get:function(){return this._additionalExtractionMethods},set:function(t){this._additionalExtractionMethods=t}}])}(),_=function(){return u((function t(e){o(this,t),this._method=e.method,this._maxNumberOfResultsPerCall=e.maxNumberOfResultsPerCall,this._searchLabelPredicates=e.searchLabelPredicates}),[{key:"method",get:function(){return this._method},set:function(t){this._method=t}},{key:"maxNumberOfResultsPerCall",get:function(){return this._maxNumberOfResultsPerCall},set:function(t){this._maxNumberOfResultsPerCall=t}},{key:"searchLabelPredicates",get:function(){return this._searchLabelPredicates},set:function(t){this._searchLabelPredicates=t}}])}(),m=function(){return u((function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];o(this,t),this._agents=e,this._filterableAgents=Object(i.cloneDeep)(e),this._agentNameByIdMap={},this._initializeAgentNameByIdMap()}),[{key:"_initializeAgentNameByIdMap",value:function(){this._agentNameByIdMap=this._agents.reduce((function(t,e){return t[e.id]=e.name,t}),{})}},{key:"isEmpty",value:function(){return 0===this._agents.length}},{key:"filterByRepository",value:function(t){this._filterableAgents=this._agents.filter((function(e){return t===s.AGENTS_FILTER_ALL_KEY||(e.repositoryId===t?e:void 0)}))}},{key:"getAgent",value:function(t){return this._agents.find((function(e){return e.id===t}))}},{key:"agents",get:function(){return this._agents},set:function(t){this._agents=t}},{key:"filterableAgents",get:function(){return this._filterableAgents},set:function(t){this._filterableAgents=t}},{key:"agentNameByIdMap",get:function(){return Object(i.cloneDeep)(this._agentNameByIdMap)},set:function(t){this._agentNameByIdMap=t}}])}(),y={FTS_SEARCH:"fts_search",SPARQL:"sparql_search",SIMILARITY:"similarity_search",RETRIEVAL:"retrieval_search"},p={IRI_DISCOVERY_SEARCH:"iri_discovery_search",AUTOCOMPLETE_IRI_DISCOVERY_SEARCH:"autocomplete_iri_discovery_search"},x=function(){return u((function t(e,n){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];o(this,t),this._key=e,this._label=n,this._selected=i}),[{key:"key",get:function(){return this._key},set:function(t){this._key=t}},{key:"label",get:function(){return this._label},set:function(t){this._label=t}},{key:"selected",get:function(){return this._selected},set:function(t){this._selected=t}}])}()},287:function(t,e,n){"use strict";n.r(e),n.d(e,"AgentFormModel",(function(){return h})),n.d(e,"ExtractionMethodsFormModel",(function(){return l})),n.d(e,"ExtractionMethodFormModel",(function(){return d})),n.d(e,"AdditionalExtractionMethodsFormModel",(function(){return f})),n.d(e,"AdditionalExtractionMethodFormModel",(function(){return _})),n.d(e,"AgentInstructionsFormModel",(function(){return m}));var i=n(25),s=n(141);function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,c(i.key),i)}}function u(t,e,n){return e&&a(t.prototype,e),n&&a(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function c(t){var e=function(t,e){if("object"!=r(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==r(e)?e:e+""}var h=function(){return u((function t(e){o(this,t),this._id=e&&e.id,this._name=e&&e.name,this._repositoryId=e&&e.repositoryId,this._model=e&&e.model||"gpt-4o",this._temperature=e&&e.temperature||new i.NumericRangeModel({value:.7,minValue:0,maxValue:2,step:.1}),this._topP=e&&e.topP||new i.NumericRangeModel({value:1,minValue:0,maxValue:1,step:.1}),this._seed=e&&e.seed,this._instructions=e&&e.instructions,this._assistantExtractionMethods=e&&e.assistantExtractionMethods||this.getDefaultExtractionMethods(),this._additionalExtractionMethods=e&&e.additionalExtractionMethods||this.getDefaultAdditionalExtractionMethod()}),[{key:"getDefaultExtractionMethods",value:function(){var t=[];return t.push(new d({method:s.ExtractionMethod.SPARQL,ontologyGraph:"http://example.com/swgraph",sparqlQuery:new i.TextFieldModel({value:"select ?s ?p ?o where {?s ?p ?o .}",minLength:1,maxLength:2380}),selected:!1})),t.push(new d({method:s.ExtractionMethod.FTS_SEARCH,maxNumberOfTriplesPerCall:null,selected:!1})),t.push(new d({method:s.ExtractionMethod.SIMILARITY,similarityIndex:null,similarityIndexThreshold:new i.NumericRangeModel({value:.6,minValue:0,maxValue:1,step:.1}),maxNumberOfTriplesPerCall:null,selected:!1})),t.push(new d({method:s.ExtractionMethod.RETRIEVAL,retrievalConnectorInstance:null,maxNumberOfTriplesPerCall:null,queryTemplate:new i.TextFieldModel({value:'{"query": "string"}',minLength:1,maxLength:2380}),selected:!1})),new l(t)}},{key:"getDefaultAdditionalExtractionMethod",value:function(){var t=[];return t.push(new _({method:s.AdditionalExtractionMethod.IRI_DISCOVERY_SEARCH}),new _({method:s.AdditionalExtractionMethod.AUTOCOMPLETE_IRI_DISCOVERY_SEARCH,maxNumberOfResultsPerCall:0,searchLabelPredicates:[]})),new f(t)}},{key:"toPayload",value:function(){return{id:this.id,name:this._name,repositoryId:this._repositoryId,model:this._model,temperature:this._temperature.value,topP:this._topP.value,seed:this._seed,assistantsInstructions:this._instructions.toPayload(),assistantExtractionMethods:this._assistantExtractionMethods.toPayload(),additionalExtractionMethods:this._additionalExtractionMethods.toPayload()}}},{key:"hasExtractionMethodSelected",value:function(){return this._assistantExtractionMethods.extractionMethods.some((function(t){return t.selected}))}},{key:"id",get:function(){return this._id},set:function(t){this._id=t}},{key:"name",get:function(){return this._name},set:function(t){this._name=t}},{key:"repositoryId",get:function(){return this._repositoryId},set:function(t){this._repositoryId=t}},{key:"model",get:function(){return this._model},set:function(t){this._model=t}},{key:"temperature",get:function(){return this._temperature},set:function(t){this._temperature=t}},{key:"topP",get:function(){return this._topP},set:function(t){this._topP=t}},{key:"seed",get:function(){return this._seed},set:function(t){this._seed=t}},{key:"instructions",get:function(){return this._instructions},set:function(t){this._instructions=t}},{key:"assistantExtractionMethods",get:function(){return this._assistantExtractionMethods},set:function(t){this._assistantExtractionMethods=t}},{key:"additionalExtractionMethods",get:function(){return this._additionalExtractionMethods},set:function(t){this._additionalExtractionMethods=t}}])}(),l=function(){return u((function t(e){o(this,t),this._extractionMethods=e}),[{key:"toPayload",value:function(){return this._extractionMethods.filter((function(t){return t.selected})).map((function(t){return t.toPayload()}))}},{key:"findExtractionMethodIndex",value:function(t){return this._extractionMethods.findIndex((function(e){return e.method===t}))}},{key:"setExtractionMethod",value:function(t){var e=this.findExtractionMethodIndex(t.method);-1!==e&&(this._extractionMethods[e]=t)}},{key:"extractionMethods",get:function(){return this._extractionMethods},set:function(t){this._extractionMethods=t}},{key:"getExtractionMethod",value:function(t){return this._extractionMethods.find((function(e){return e.method===t}))}},{key:"getSimilarityExtractionMethod",value:function(){return this.getExtractionMethod(s.ExtractionMethod.SIMILARITY)}},{key:"getRetrievalExtractionMethod",value:function(){return this.getExtractionMethod(s.ExtractionMethod.RETRIEVAL)}},{key:"getFTSSearchExtractionMethod",value:function(){return this.getExtractionMethod(s.ExtractionMethod.FTS_SEARCH)}}])}(),d=function(){return u((function t(e){o(this,t),this._selected=e.selected||!1,this._method=e.method,this._sparqlOption=e.sparqlOption,this._addMissingNamespaces=e.addMissingNamespaces,this._ontologyGraph=e.ontologyGraph,this._sparqlQuery=e.sparqlQuery,this._maxNumberOfTriplesPerCall=e.maxNumberOfTriplesPerCall,this._similarityIndex=e.similarityIndex,this._similarityIndexThreshold=e.similarityIndexThreshold,this._queryTemplate=e.queryTemplate,this._retrievalConnectorInstance=e.retrievalConnectorInstance,this._expanded=void 0!==e.expanded&&e.expanded}),[{key:"toggleCollapse",value:function(){this._expanded=!this._expanded}},{key:"toPayload",value:function(){var t={};return t.method=this._method?this._method:null,"ontologyGraph"===this._sparqlOption?t.ontologyGraph=this._ontologyGraph?this._ontologyGraph:null:"sparqlQuery"===this._sparqlOption&&(t.sparqlQuery=this._sparqlQuery?this._sparqlQuery.value:null),this._method===s.ExtractionMethod.SPARQL&&void 0!==this._addMissingNamespaces&&(t.addMissingNamespaces=this._addMissingNamespaces),this._maxNumberOfTriplesPerCall&&(t.maxNumberOfTriplesPerCall=this._maxNumberOfTriplesPerCall),this._similarityIndex&&(t.similarityIndex=this._similarityIndex),this._similarityIndexThreshold&&this._similarityIndexThreshold.value&&(t.similarityIndexThreshold=parseFloat(this._similarityIndexThreshold.value)),this._queryTemplate&&this._queryTemplate.value&&(t.queryTemplate=this._queryTemplate.value),this._retrievalConnectorInstance&&(t.retrievalConnectorInstance=this._retrievalConnectorInstance),t}},{key:"selected",get:function(){return this._selected},set:function(t){this._selected=t}},{key:"method",get:function(){return this._method},set:function(t){this._method=t}},{key:"sparqlOption",get:function(){return this._sparqlOption},set:function(t){this._sparqlOption=t}},{key:"sparqlQuery",get:function(){return this._sparqlQuery},set:function(t){this._sparqlQuery=t}},{key:"addMissingNamespaces",get:function(){return this._addMissingNamespaces},set:function(t){this._addMissingNamespaces=t}},{key:"ontologyGraph",get:function(){return this._ontologyGraph},set:function(t){this._ontologyGraph=t}},{key:"maxNumberOfTriplesPerCall",get:function(){return this._maxNumberOfTriplesPerCall},set:function(t){this._maxNumberOfTriplesPerCall=t}},{key:"similarityIndex",get:function(){return this._similarityIndex},set:function(t){this._similarityIndex=t}},{key:"similarityIndexThreshold",get:function(){return this._similarityIndexThreshold},set:function(t){this._similarityIndexThreshold=t}},{key:"queryTemplate",get:function(){return this._queryTemplate},set:function(t){this._queryTemplate=t}},{key:"retrievalConnectorInstance",get:function(){return this._retrievalConnectorInstance},set:function(t){this._retrievalConnectorInstance=t}},{key:"expanded",get:function(){return this._expanded},set:function(t){this._expanded=t}}])}(),f=function(){return u((function t(e){o(this,t),this._additionalExtractionMethods=e}),[{key:"toPayload",value:function(){return this._additionalExtractionMethods.filter((function(t){return t.selected})).map((function(t){return t.toPayload()}))}},{key:"findAdditionalExtractionMethod",value:function(t){return this._additionalExtractionMethods.find((function(e){return e.method===t}))}},{key:"setAdditionalExtractionMethod",value:function(t){var e=this;Array.isArray(t)&&t.forEach((function(t){var n=e.findAdditionalExtractionMethod(t._method);n&&(n._selected=t._selected,n._maxNumberOfResultsPerCall=t._maxNumberOfResultsPerCall,n._searchLabelPredicates=t._searchLabelPredicates,n._expanded=t._expanded)}))}},{key:"additionalExtractionMethods",get:function(){return this._additionalExtractionMethods},set:function(t){this._additionalExtractionMethods=t}}])}(),_=function(){return u((function t(e){o(this,t),this._selected=e.selected||!1,this._method=e.method,this._expanded=e.expanded||!1,this._maxNumberOfResultsPerCall=e.maxNumberOfResultsPerCall||null,this._searchLabelPredicates=e._searchLabelPredicates||[]}),[{key:"toPayload",value:function(){var t={},e=this._method===s.AdditionalExtractionMethod.AUTOCOMPLETE_IRI_DISCOVERY_SEARCH;return t.method=this._method,e&&this._maxNumberOfResultsPerCall&&(t.limit=this._maxNumberOfResultsPerCall),e&&this._searchLabelPredicates&&(t.searchLabelPredicates=this._searchLabelPredicates),t}},{key:"selected",get:function(){return this._selected},set:function(t){this._selected=t}},{key:"method",get:function(){return this._method},set:function(t){this._method=t}},{key:"expanded",get:function(){return this._expanded},set:function(t){this._expanded=t}},{key:"toggleCollapse",value:function(){this._expanded=!this._expanded}},{key:"maxNumberOfResultsPerCall",get:function(){return this._maxNumberOfResultsPerCall},set:function(t){this._maxNumberOfResultsPerCall=t}},{key:"searchLabelPredicates",get:function(){return this._searchLabelPredicates},set:function(t){this._searchLabelPredicates=t}}])}(),m=function(){return u((function t(e){o(this,t),this._systemInstruction=e.systemInstruction,this._systemInstructionCopy=e.defaultSystemInstruction,this._userInstruction=e.userInstruction,this._userInstructionCopy=e.defaultUserInstruction}),[{key:"toPayload",value:function(){return{systemInstruction:this._systemInstruction,userInstruction:this._userInstruction}}},{key:"systemInstruction",get:function(){return this._systemInstruction},set:function(t){this._systemInstruction=t}},{key:"systemInstructionCopy",get:function(){return this._systemInstructionCopy},set:function(t){this._systemInstructionCopy=t}},{key:"userInstruction",get:function(){return this._userInstruction},set:function(t){this._userInstruction=t}},{key:"userInstructionCopy",get:function(){return this._userInstructionCopy},set:function(t){this._userInstructionCopy=t}}])}()}}]);
|
|
1
|
+
(window.webpackJsonp=window.webpackJsonp||[]).push([[6,131,382],{129:function(t,e,n){"use strict";n.r(e),n.d(e,"TTYG_ERROR_MSG_LENGTH",(function(){return i})),n.d(e,"AGENTS_FILTER_ALL_KEY",(function(){return s})),n.d(e,"AGENT_OPERATION",(function(){return r}));var i=100,s="ALL",r={CREATE:"create",EDIT:"edit",CLONE:"clone"}},143:function(t,e,n){"use strict";n.r(e),n.d(e,"AgentModel",(function(){return h})),n.d(e,"AgentInstructionsModel",(function(){return l})),n.d(e,"ExtractionMethodModel",(function(){return d})),n.d(e,"AdditionalExtractionMethodsModel",(function(){return f})),n.d(e,"AdditionalExtractionMethodModel",(function(){return _})),n.d(e,"AgentListModel",(function(){return m})),n.d(e,"ExtractionMethod",(function(){return y})),n.d(e,"AdditionalExtractionMethod",(function(){return p})),n.d(e,"AgentListFilterModel",(function(){return x}));var i=n(24),s=n(129);function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,c(i.key),i)}}function u(t,e,n){return e&&a(t.prototype,e),n&&a(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function c(t){var e=function(t,e){if("object"!=r(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==r(e)?e:e+""}var h=function(){return u((function t(e,n){o(this,t),this.hashGenerator=n,this._isDeleted=!1,this._id=e.id,this._name=e.name,this._repositoryId=e.repositoryId,this.isRepositoryDeleted=void 0!==e.isRepositoryDeleted&&e.isRepositoryDeleted,this._model=e.model,this._temperature=e.temperature,this._topP=e.topP,this._seed=e.seed,this._instructions=e.instructions,this._assistantExtractionMethods=e.assistantExtractionMethods,this._additionalExtractionMethods=e.additionalExtractionMethods}),[{key:"isDeleted",get:function(){return this._isDeleted},set:function(t){this._isDeleted=t}},{key:"id",get:function(){return this._id},set:function(t){this._id=t}},{key:"name",get:function(){return this._name},set:function(t){this._name=t}},{key:"repositoryId",get:function(){return this._repositoryId},set:function(t){this._repositoryId=t}},{key:"model",get:function(){return this._model},set:function(t){this._model=t}},{key:"temperature",get:function(){return this._temperature},set:function(t){this._temperature=t}},{key:"topP",get:function(){return this._topP},set:function(t){this._topP=t}},{key:"seed",get:function(){return this._seed},set:function(t){this._seed=t}},{key:"instructions",get:function(){return this._instructions},set:function(t){this._instructions=t}},{key:"assistantExtractionMethods",get:function(){return this._assistantExtractionMethods},set:function(t){this._assistantExtractionMethods=t}},{key:"additionalExtractionMethods",get:function(){return this._additionalExtractionMethods},set:function(t){this._additionalExtractionMethods=t}}])}(),l=function(){return u((function t(e){o(this,t),this._systemInstruction=e.systemInstruction,this._userInstruction=e.userInstruction}),[{key:"systemInstruction",get:function(){return this._systemInstruction},set:function(t){this._systemInstruction=t}},{key:"userInstruction",get:function(){return this._userInstruction},set:function(t){this._userInstruction=t}}])}(),d=function(){return u((function t(e){o(this,t),this._method=e.method,this._addMissingNamespaces=e.addMissingNamespaces,this._ontologyGraph=e.ontologyGraph,this._sparqlQuery=e.sparqlQuery,this._maxNumberOfTriplesPerCall=e.maxNumberOfTriplesPerCall,this._similarityIndex=e.similarityIndex,this._similarityIndexThreshold=e.similarityIndexThreshold,this._queryTemplate=e.queryTemplate,this._retrievalConnectorInstance=e.retrievalConnectorInstance}),[{key:"method",get:function(){return this._method},set:function(t){this._method=t}},{key:"addMissingNamespaces",get:function(){return this._addMissingNamespaces},set:function(t){this._addMissingNamespaces=t}},{key:"sparqlQuery",get:function(){return this._sparqlQuery},set:function(t){this._sparqlQuery=t}},{key:"ontologyGraph",get:function(){return this._ontologyGraph},set:function(t){this._ontologyGraph=t}},{key:"maxNumberOfTriplesPerCall",get:function(){return this._maxNumberOfTriplesPerCall},set:function(t){this._maxNumberOfTriplesPerCall=t}},{key:"similarityIndex",get:function(){return this._similarityIndex},set:function(t){this._similarityIndex=t}},{key:"similarityIndexThreshold",get:function(){return this._similarityIndexThreshold},set:function(t){this._similarityIndexThreshold=t}},{key:"queryTemplate",get:function(){return this._queryTemplate},set:function(t){this._queryTemplate=t}},{key:"retrievalConnectorInstance",get:function(){return this._retrievalConnectorInstance},set:function(t){this._retrievalConnectorInstance=t}}])}(),f=function(){return u((function t(e){o(this,t),this._additionalExtractionMethods=e}),[{key:"additionalExtractionMethods",get:function(){return this._additionalExtractionMethods},set:function(t){this._additionalExtractionMethods=t}}])}(),_=function(){return u((function t(e){o(this,t),this._method=e.method,this._maxNumberOfResultsPerCall=e.maxNumberOfResultsPerCall,this._searchLabelPredicates=e.searchLabelPredicates}),[{key:"method",get:function(){return this._method},set:function(t){this._method=t}},{key:"maxNumberOfResultsPerCall",get:function(){return this._maxNumberOfResultsPerCall},set:function(t){this._maxNumberOfResultsPerCall=t}},{key:"searchLabelPredicates",get:function(){return this._searchLabelPredicates},set:function(t){this._searchLabelPredicates=t}}])}(),m=function(){return u((function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];o(this,t),this._agents=e,this._filterableAgents=Object(i.cloneDeep)(e),this._agentNameByIdMap={},this._initializeAgentNameByIdMap()}),[{key:"_initializeAgentNameByIdMap",value:function(){this._agentNameByIdMap=this._agents.reduce((function(t,e){return t[e.id]=e.name,t}),{})}},{key:"isEmpty",value:function(){return 0===this._agents.length}},{key:"filterByRepository",value:function(t){this._filterableAgents=this._agents.filter((function(e){return t===s.AGENTS_FILTER_ALL_KEY||(e.repositoryId===t?e:void 0)}))}},{key:"getAgent",value:function(t){return this._agents.find((function(e){return e.id===t}))}},{key:"agents",get:function(){return this._agents},set:function(t){this._agents=t}},{key:"filterableAgents",get:function(){return this._filterableAgents},set:function(t){this._filterableAgents=t}},{key:"agentNameByIdMap",get:function(){return Object(i.cloneDeep)(this._agentNameByIdMap)},set:function(t){this._agentNameByIdMap=t}}])}(),y={FTS_SEARCH:"fts_search",SPARQL:"sparql_search",SIMILARITY:"similarity_search",RETRIEVAL:"retrieval_search"},p={IRI_DISCOVERY_SEARCH:"iri_discovery_search",AUTOCOMPLETE_IRI_DISCOVERY_SEARCH:"autocomplete_iri_discovery_search"},x=function(){return u((function t(e,n){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];o(this,t),this._key=e,this._label=n,this._selected=i}),[{key:"key",get:function(){return this._key},set:function(t){this._key=t}},{key:"label",get:function(){return this._label},set:function(t){this._label=t}},{key:"selected",get:function(){return this._selected},set:function(t){this._selected=t}}])}()},287:function(t,e,n){"use strict";n.r(e),n.d(e,"AgentFormModel",(function(){return h})),n.d(e,"ExtractionMethodsFormModel",(function(){return l})),n.d(e,"ExtractionMethodFormModel",(function(){return d})),n.d(e,"AdditionalExtractionMethodsFormModel",(function(){return f})),n.d(e,"AdditionalExtractionMethodFormModel",(function(){return _})),n.d(e,"AgentInstructionsFormModel",(function(){return m}));var i=n(25),s=n(143);function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,c(i.key),i)}}function u(t,e,n){return e&&a(t.prototype,e),n&&a(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function c(t){var e=function(t,e){if("object"!=r(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==r(e)?e:e+""}var h=function(){return u((function t(e){o(this,t),this._id=e&&e.id,this._name=e&&e.name,this._repositoryId=e&&e.repositoryId,this._model=e&&e.model||"gpt-4o",this._temperature=e&&e.temperature||new i.NumericRangeModel({value:.7,minValue:0,maxValue:2,step:.1}),this._topP=e&&e.topP||new i.NumericRangeModel({value:1,minValue:0,maxValue:1,step:.1}),this._seed=e&&e.seed,this._instructions=e&&e.instructions,this._assistantExtractionMethods=e&&e.assistantExtractionMethods||this.getDefaultExtractionMethods(),this._additionalExtractionMethods=e&&e.additionalExtractionMethods||this.getDefaultAdditionalExtractionMethod()}),[{key:"getDefaultExtractionMethods",value:function(){var t=[];return t.push(new d({method:s.ExtractionMethod.SPARQL,ontologyGraph:"http://example.com/swgraph",sparqlQuery:new i.TextFieldModel({value:"select ?s ?p ?o where {?s ?p ?o .}",minLength:1,maxLength:2380}),selected:!1})),t.push(new d({method:s.ExtractionMethod.FTS_SEARCH,maxNumberOfTriplesPerCall:null,selected:!1})),t.push(new d({method:s.ExtractionMethod.SIMILARITY,similarityIndex:null,similarityIndexThreshold:new i.NumericRangeModel({value:.6,minValue:0,maxValue:1,step:.1}),maxNumberOfTriplesPerCall:null,selected:!1})),t.push(new d({method:s.ExtractionMethod.RETRIEVAL,retrievalConnectorInstance:null,maxNumberOfTriplesPerCall:null,queryTemplate:new i.TextFieldModel({value:'{"query": "string"}',minLength:1,maxLength:2380}),selected:!1})),new l(t)}},{key:"getDefaultAdditionalExtractionMethod",value:function(){var t=[];return t.push(new _({method:s.AdditionalExtractionMethod.IRI_DISCOVERY_SEARCH}),new _({method:s.AdditionalExtractionMethod.AUTOCOMPLETE_IRI_DISCOVERY_SEARCH,maxNumberOfResultsPerCall:0,searchLabelPredicates:[]})),new f(t)}},{key:"toPayload",value:function(){return{id:this.id,name:this._name,repositoryId:this._repositoryId,model:this._model,temperature:this._temperature.value,topP:this._topP.value,seed:this._seed,assistantsInstructions:this._instructions.toPayload(),assistantExtractionMethods:this._assistantExtractionMethods.toPayload(),additionalExtractionMethods:this._additionalExtractionMethods.toPayload()}}},{key:"hasExtractionMethodSelected",value:function(){return this._assistantExtractionMethods.extractionMethods.some((function(t){return t.selected}))}},{key:"id",get:function(){return this._id},set:function(t){this._id=t}},{key:"name",get:function(){return this._name},set:function(t){this._name=t}},{key:"repositoryId",get:function(){return this._repositoryId},set:function(t){this._repositoryId=t}},{key:"model",get:function(){return this._model},set:function(t){this._model=t}},{key:"temperature",get:function(){return this._temperature},set:function(t){this._temperature=t}},{key:"topP",get:function(){return this._topP},set:function(t){this._topP=t}},{key:"seed",get:function(){return this._seed},set:function(t){this._seed=t}},{key:"instructions",get:function(){return this._instructions},set:function(t){this._instructions=t}},{key:"assistantExtractionMethods",get:function(){return this._assistantExtractionMethods},set:function(t){this._assistantExtractionMethods=t}},{key:"additionalExtractionMethods",get:function(){return this._additionalExtractionMethods},set:function(t){this._additionalExtractionMethods=t}}])}(),l=function(){return u((function t(e){o(this,t),this._extractionMethods=e}),[{key:"toPayload",value:function(){return this._extractionMethods.filter((function(t){return t.selected})).map((function(t){return t.toPayload()}))}},{key:"findExtractionMethodIndex",value:function(t){return this._extractionMethods.findIndex((function(e){return e.method===t}))}},{key:"setExtractionMethod",value:function(t){var e=this.findExtractionMethodIndex(t.method);-1!==e&&(this._extractionMethods[e]=t)}},{key:"extractionMethods",get:function(){return this._extractionMethods},set:function(t){this._extractionMethods=t}},{key:"getExtractionMethod",value:function(t){return this._extractionMethods.find((function(e){return e.method===t}))}},{key:"getSimilarityExtractionMethod",value:function(){return this.getExtractionMethod(s.ExtractionMethod.SIMILARITY)}},{key:"getRetrievalExtractionMethod",value:function(){return this.getExtractionMethod(s.ExtractionMethod.RETRIEVAL)}},{key:"getFTSSearchExtractionMethod",value:function(){return this.getExtractionMethod(s.ExtractionMethod.FTS_SEARCH)}}])}(),d=function(){return u((function t(e){o(this,t),this._selected=e.selected||!1,this._method=e.method,this._sparqlOption=e.sparqlOption,this._addMissingNamespaces=e.addMissingNamespaces,this._ontologyGraph=e.ontologyGraph,this._sparqlQuery=e.sparqlQuery,this._maxNumberOfTriplesPerCall=e.maxNumberOfTriplesPerCall,this._similarityIndex=e.similarityIndex,this._similarityIndexThreshold=e.similarityIndexThreshold,this._queryTemplate=e.queryTemplate,this._retrievalConnectorInstance=e.retrievalConnectorInstance,this._expanded=void 0!==e.expanded&&e.expanded}),[{key:"toggleCollapse",value:function(){this._expanded=!this._expanded}},{key:"toPayload",value:function(){var t={};return t.method=this._method?this._method:null,"ontologyGraph"===this._sparqlOption?t.ontologyGraph=this._ontologyGraph?this._ontologyGraph:null:"sparqlQuery"===this._sparqlOption&&(t.sparqlQuery=this._sparqlQuery?this._sparqlQuery.value:null),this._method===s.ExtractionMethod.SPARQL&&void 0!==this._addMissingNamespaces&&(t.addMissingNamespaces=this._addMissingNamespaces),this._maxNumberOfTriplesPerCall&&(t.maxNumberOfTriplesPerCall=this._maxNumberOfTriplesPerCall),this._similarityIndex&&(t.similarityIndex=this._similarityIndex),this._similarityIndexThreshold&&this._similarityIndexThreshold.value&&(t.similarityIndexThreshold=parseFloat(this._similarityIndexThreshold.value)),this._queryTemplate&&this._queryTemplate.value&&(t.queryTemplate=this._queryTemplate.value),this._retrievalConnectorInstance&&(t.retrievalConnectorInstance=this._retrievalConnectorInstance),t}},{key:"selected",get:function(){return this._selected},set:function(t){this._selected=t}},{key:"method",get:function(){return this._method},set:function(t){this._method=t}},{key:"sparqlOption",get:function(){return this._sparqlOption},set:function(t){this._sparqlOption=t}},{key:"sparqlQuery",get:function(){return this._sparqlQuery},set:function(t){this._sparqlQuery=t}},{key:"addMissingNamespaces",get:function(){return this._addMissingNamespaces},set:function(t){this._addMissingNamespaces=t}},{key:"ontologyGraph",get:function(){return this._ontologyGraph},set:function(t){this._ontologyGraph=t}},{key:"maxNumberOfTriplesPerCall",get:function(){return this._maxNumberOfTriplesPerCall},set:function(t){this._maxNumberOfTriplesPerCall=t}},{key:"similarityIndex",get:function(){return this._similarityIndex},set:function(t){this._similarityIndex=t}},{key:"similarityIndexThreshold",get:function(){return this._similarityIndexThreshold},set:function(t){this._similarityIndexThreshold=t}},{key:"queryTemplate",get:function(){return this._queryTemplate},set:function(t){this._queryTemplate=t}},{key:"retrievalConnectorInstance",get:function(){return this._retrievalConnectorInstance},set:function(t){this._retrievalConnectorInstance=t}},{key:"expanded",get:function(){return this._expanded},set:function(t){this._expanded=t}}])}(),f=function(){return u((function t(e){o(this,t),this._additionalExtractionMethods=e}),[{key:"toPayload",value:function(){return this._additionalExtractionMethods.filter((function(t){return t.selected})).map((function(t){return t.toPayload()}))}},{key:"findAdditionalExtractionMethod",value:function(t){return this._additionalExtractionMethods.find((function(e){return e.method===t}))}},{key:"setAdditionalExtractionMethod",value:function(t){var e=this;Array.isArray(t)&&t.forEach((function(t){var n=e.findAdditionalExtractionMethod(t._method);n&&(n._selected=t._selected,n._maxNumberOfResultsPerCall=t._maxNumberOfResultsPerCall,n._searchLabelPredicates=t._searchLabelPredicates,n._expanded=t._expanded)}))}},{key:"additionalExtractionMethods",get:function(){return this._additionalExtractionMethods},set:function(t){this._additionalExtractionMethods=t}}])}(),_=function(){return u((function t(e){o(this,t),this._selected=e.selected||!1,this._method=e.method,this._expanded=e.expanded||!1,this._maxNumberOfResultsPerCall=e.maxNumberOfResultsPerCall||null,this._searchLabelPredicates=e._searchLabelPredicates||[]}),[{key:"toPayload",value:function(){var t={},e=this._method===s.AdditionalExtractionMethod.AUTOCOMPLETE_IRI_DISCOVERY_SEARCH;return t.method=this._method,e&&this._maxNumberOfResultsPerCall&&(t.limit=this._maxNumberOfResultsPerCall),e&&this._searchLabelPredicates&&(t.searchLabelPredicates=this._searchLabelPredicates),t}},{key:"selected",get:function(){return this._selected},set:function(t){this._selected=t}},{key:"method",get:function(){return this._method},set:function(t){this._method=t}},{key:"expanded",get:function(){return this._expanded},set:function(t){this._expanded=t}},{key:"toggleCollapse",value:function(){this._expanded=!this._expanded}},{key:"maxNumberOfResultsPerCall",get:function(){return this._maxNumberOfResultsPerCall},set:function(t){this._maxNumberOfResultsPerCall=t}},{key:"searchLabelPredicates",get:function(){return this._searchLabelPredicates},set:function(t){this._searchLabelPredicates=t}}])}(),m=function(){return u((function t(e){o(this,t),this._systemInstruction=e.systemInstruction,this._systemInstructionCopy=e.defaultSystemInstruction,this._userInstruction=e.userInstruction,this._userInstructionCopy=e.defaultUserInstruction}),[{key:"toPayload",value:function(){return{systemInstruction:this._systemInstruction,userInstruction:this._userInstruction}}},{key:"systemInstruction",get:function(){return this._systemInstruction},set:function(t){this._systemInstruction=t}},{key:"systemInstructionCopy",get:function(){return this._systemInstructionCopy},set:function(t){this._systemInstructionCopy=t}},{key:"userInstruction",get:function(){return this._userInstruction},set:function(t){this._userInstruction=t}},{key:"userInstructionCopy",get:function(){return this._userInstructionCopy},set:function(t){this._userInstructionCopy=t}}])}()}}]);
|